Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (17 loc) · 2.12 KB

CampaignsImportVoucherItem.md

File metadata and controls

20 lines (17 loc) · 2.12 KB

VoucherifySdk::CampaignsImportVoucherItem

Properties

Name Type Description Notes
code String Unique custom voucher code.
type String Type of voucher. [optional]
redemption CampaignsImportVoucherItemRedemption [optional]
active Boolean A flag to toggle the voucher on or off. You can disable a voucher even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an active voucher - `false` indicates an inactive voucher [optional]
metadata Object The metadata object stores all custom attributes assigned to the voucher. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format. [optional]
category String The category assigned to the campaign. Either pass this parameter OR the `category_id`. [optional]
start_date Time Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is inactive before this date. [optional]
validity_timeframe CampaignBaseValidityTimeframe [optional]
validity_day_of_week Array<Integer> Integer array corresponding to the particular days of the week in which the campaign is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday [optional]
additional_info String An optional field to keep any extra textual information about the code such as a code description and details. [optional]
discount Discount [optional]
gift Gift [optional]
loyalty_card CampaignsImportVoucherLoyaltyCard [optional]