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

feat: change requests to accept IdReferences #113

Merged
merged 8 commits into from
Apr 24, 2021

Conversation

civsiv
Copy link
Contributor

@civsiv civsiv commented Apr 22, 2021

@@ -117,11 +117,13 @@ public void SetResponseOrderItemAsSkeleton()
public void SetResponseOrderItem(OrderItem item, SellerIdComponents sellerId, StoreBookingFlowContext flowContext)
{
if (item == null) throw new ArgumentNullException(nameof(item));
if (item?.OrderedItem.Object?.Id != RequestOrderItem?.OrderedItem.Object?.Id)
var requestOrderItemId = RequestOrderItem?.OrderedItem.Object != null ? RequestOrderItem.OrderedItem.Object.Id : RequestOrderItem?.OrderedItem.IdReference;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OrderedItemId/AcceptedOfferId can still be an object because the proposal flow creates a full Order object.

Copy link
Contributor

Choose a reason for hiding this comment

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

So it turns out the proposal flow creates this internally, so was able to remove

@nickevansuk nickevansuk merged commit ec62e20 into master Apr 24, 2021
@nickevansuk nickevansuk deleted the coverage/id-reference branch April 24, 2021 15:43
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.

2 participants