Discount document (Shop API 19.3)

Document representing a discount that was either optionally applied when creating a custom price adjustment or applied by the promotion engine. The property type is mandatory; the properties amount and priceBookId are used only in association with specific types. Some examples:
Property Type Constraints Description
amount Decimal   The amount that is used with the amount and fixed price types.
percentage Decimal   The percentage that is used with percentage types.
price_book_id String   The price book id that is used with some types.
type Enum {percentage, fixed_price, amount, free, price_book_price, bonus, total_fixed_price, bonus_choice, percentage_off_options} mandatory=true, nullable=false The type of discount.