For #23 I forgot something important. These metadata additions to Sell entity are meant to be read-only, and only fetched when calling /data/sales APIs, which requires proper auth. But customers may need to review their transactions after completion, and that's why the Receipt entity was created.
In short, all new metadata included in Sell must be included in Receipt too. Same goes for their SellDetail and ReceiptDetail children.
Note that Receipt had an amount property, which equals Sell's totalValue. It should renamed to match.
For #23 I forgot something important. These metadata additions to
Sell
entity are meant to be read-only, and only fetched when calling/data/sales
APIs, which requires proper auth. But customers may need to review their transactions after completion, and that's why theReceipt
entity was created. In short, all new metadata included inSell
must be included inReceipt
too. Same goes for theirSellDetail
andReceiptDetail
children. Note thatReceipt
had anamount
property, which equals Sell'stotalValue
. It should renamed to match.