Skip to content

Instantly share code, notes, and snippets.

@dyackson
dyackson / examples.ex
Last active April 21, 2021 15:24
Options for structure of request/response for FAS's /list/confirmations endpoint
# 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]
@dyackson
dyackson / initial.js
Last active February 17, 2019 23:17
Initial 2-param function
function getOrderCopyWithItems(items, order) {
return {
...order,
items: [...order.items, ...items],
}
}