Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPR API - trigger UI to prompt acceptance of new service agreement terms version #17336

Closed
mstanton1 opened this issue Aug 8, 2023 · 1 comment
Assignees
Labels

Comments

@mstanton1
Copy link
Collaborator

mstanton1 commented Aug 8, 2023

For qualified supplier/manufacturer users, conditionally add a acceptTermsRequired flag to the PPR API GET /ppr/api/v1/user-profile response.

  • Check the token roles.
  • Create a query to verify the user has accepted the latest terms.
  • Inject a new acceptAgreementRequired boolean property set to true if the user has not accepted the latest service agreement version.

The new user profile property is absent if the user is not an MHR qualified supplier/manufacturer.
Example PPR API GET/mhr/api/v1/user-profile response:
{
"defaultDropDowns": true,
"defaultTableFilters": true,
"paymentConfirmationDialog": true,
"selectConfirmationDialog": true
}

The new property is present if the user is an MHR qualified supplier/manufacturer.
Example acceptance not required PPR API GET/mhr/api/v1/user-profile response:
{
"acceptAgreementRequired": false,
"defaultDropDowns": true,
"defaultTableFilters": true,
"paymentConfirmationDialog": true,
"selectConfirmationDialog": true
}
Example acceptance required PPR API GET/mhr/api/v1/user-profile response:
{
"acceptAgreementRequired": true,
"defaultDropDowns": true,
"defaultTableFilters": true,
"paymentConfirmationDialog": true,
"selectConfirmationDialog": true
}

@doug-lovett doug-lovett changed the title API - trigger UI to prompt acceptance of new terms version PPR API - trigger UI to prompt acceptance of new terms version Aug 8, 2023
@doug-lovett doug-lovett self-assigned this Aug 14, 2023
@doug-lovett doug-lovett changed the title PPR API - trigger UI to prompt acceptance of new terms version PPR API - trigger UI to prompt acceptance of new service agreement terms version Aug 14, 2023
@doug-lovett
Copy link
Collaborator

Unit tested in DEV with 3026, manually set acceptAgreementRequired to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants