trebol-ecommerce / api

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

Include price of product at transaction time in the details #24

Closed bglamadrid closed 2 years ago

bglamadrid commented 2 years ago

When a Sell transaction is created, its Sell Details can each refer to a Product with a given price at a given time. But while the prices for those Products are subject to change over time, the prices stated in the details should not. The Sell Detail model can highly benefit from adding a property that acts as a "snapshot" of the item's price at the time the transaction was made.

Originally posted by @bglamadrid in https://github.com/trebol-ecommerce/trebol-api/issues/16#issuecomment-910732277