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

Coverage/reseller and nobroker role #74

Merged
merged 10 commits into from
Feb 5, 2021

Conversation

NemanjaStefanovic
Copy link
Contributor

Added checks for reseller and nobroker role.
I split it up in 2 commits (moving 2 ifs and extending for new checks)

Closes #72

@lukehesluke
Copy link
Contributor

lukehesluke commented Nov 5, 2020

There looks to be one error:

Screenshot 2020-11-05 at 19 24 34

Customer is expected - even when brokerRole is ResellerBroker - at C2

@civsiv
Copy link
Contributor

civsiv commented Feb 1, 2021

Works locally against openactive/openactive-test-suite#293 (however having issues with CI, so not merged)

Copy link
Contributor

@nickevansuk nickevansuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor suggestion

// Throw error on incomplete customer details if C2, P or B
if (stage != FlowStage.C1 && (order.Customer == null || string.IsNullOrWhiteSpace(order.Customer.Email)))
{
// Unless it's B when the Broker isn't a ResellerBroker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Unless it's B when the Broker isn't a ResellerBroker
// Unless it's B, P or C2 when the Broker isn't a ResellerBroker

@civsiv civsiv merged commit ea510b2 into master Feb 5, 2021
@civsiv civsiv deleted the coverage/reseller-and-nobroker-role branch February 5, 2021 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reseller-broker and no-broker
4 participants