Schema model for a campaign voucher.
Name | Type | Description | Notes |
---|---|---|---|
type | str | Type of voucher. | [optional] |
discount | Discount | [optional] | |
gift | Gift | [optional] | |
loyalty_card | CampaignLoyaltyCard | [optional] | |
redemption | CampaignVoucherRedemption | [optional] | |
code_config | CodeConfig | ||
is_referral_code | bool | Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`. | [optional] |
start_date | datetime | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is inactive before this date. | [optional] |
expiration_date | datetime | Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is inactive after this date. | [optional] |
validity_timeframe | ValidityTimeframe | [optional] | |
validity_day_of_week | List[int] | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
validity_hours | ValidityHours | [optional] |