-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: Elaborate on all TODOs #672
Conversation
it('should include an orderProposalVersion, of the form {orderId}/versions/{versionUuid}', () => { | ||
const { uuid } = defaultFlowStageParams; | ||
expect(bookRecipe.p.getOutput().httpResponse.body).to.have.property('orderProposalVersion') | ||
.which.matches(RegExp(`${uuid}/versions/.+`)); | ||
}); | ||
// TODO does validator check that full Seller details are included in the seller response? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does
@@ -26,6 +26,9 @@ function (configuration, orderItemCriteriaList, featureIsImplemented, logger, de | |||
FlowStageUtils.describeRunAndCheckIsSuccessfulAndValid(c2, () => { | |||
it('should include expected customer details', () => { | |||
const apiResponseJson = c2.getStage('c2').getOutput().httpResponse.body; | |||
if (defaultFlowStageParams.customer['@type'] !== 'Person') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required due to improving the customer
type to also support Organization
@@ -6,7 +6,6 @@ | |||
* @typedef {import('./assert-opportunity-capacity').AssertOpportunityCapacityFlowStageType} AssertOpportunityCapacityFlowStageType | |||
*/ | |||
|
|||
// TODO construct this class using the generic FlowStageRun (e.g. with inheritance), rather than have it be a bespoke thing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really seem that important now that it's been a while
@@ -399,19 +406,13 @@ function createMissingPaymentReconciliationDetailsBReq(data) { | |||
*/ | |||
function createIncorrectReconciliationDetails(data) { | |||
const req = createStandardPaidBReq(data); | |||
// @ts-ignore // TODO: Figure out why req.payment isn't recognised here?! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type was updated above to fix this issue
Closes #667
The approach I've taken: