Closed turbo-ele closed 7 years ago
In this PR, addon-prices are introduced to products api. Before this PR you were able to define prices for Product-Addon relations but could not derive them through an API call.
yourdomain.com/admin/api/products/id
... addons: [ { ... addonPrices: [ { id: 1 currency: { id: 2 name: "Euro" number: "978" code: "EUR" }, price: 11 priceFormatted: "11,00" } ] } ]
createAddonProductApiEntity
ProductFactory
What's in this PR?
In this PR, addon-prices are introduced to products api. Before this PR you were able to define prices for Product-Addon relations but could not derive them through an API call.
Example Usage
yourdomain.com/admin/api/products/id
BC Breaks/Deprecations
createAddonProductApiEntity
ProductFactory
to be passed to the constructor.