trebol-ecommerce / api

eCommerce web service REST specification
GNU General Public License v3.0
0 stars 0 forks source link

Include latest changes to Sell/SellDetail entity into Receipt/ReceiptDetail #40

Closed bglamadrid closed 2 years ago

bglamadrid commented 2 years ago

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.