This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What should be the shapes of the request and response data for the FAS | |
# endpoint that exposes confirmations to orders_service? | |
# The example options below assume that an activity can have both shipment and | |
# receipt confirmations, but the options are still valid if that isn't true. | |
# Shape of request data | |
# ----------------------------- | |
# Option: Single list | |
[activity_1_id, activity_2_id, activity_3_id] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getOrderCopyWithItems(items, order) { | |
return { | |
...order, | |
items: [...order.items, ...items], | |
} | |
} |