Schema to update a discount.
Field | Type | Required | Description |
---|---|---|---|
metadata |
Dict[str, models.DiscountUpdateMetadata] | ➖ | N/A |
name |
OptionalNullable[str] | ➖ | N/A |
code |
OptionalNullable[str] | ➖ | N/A |
starts_at |
date | ➖ | N/A |
ends_at |
date | ➖ | N/A |
max_redemptions |
OptionalNullable[int] | ➖ | N/A |
duration |
OptionalNullable[models.DiscountDuration] | ➖ | N/A |
duration_in_months |
OptionalNullable[int] | ➖ | N/A |
type |
OptionalNullable[models.DiscountType] | ➖ | N/A |
amount |
OptionalNullable[int] | ➖ | N/A |
currency |
OptionalNullable[str] | ➖ | N/A |
basis_points |
OptionalNullable[int] | ➖ | N/A |
products |
List[str] | ➖ | N/A |