export default CampaignVoucher; /** * The CampaignVoucher model module. * @module model/CampaignVoucher */ declare class CampaignVoucher { /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ static initialize(obj: any, codeConfig: any): void; /** * Constructs a CampaignVoucher from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Partial} data The plain JavaScript object bearing properties of interest. * @param {CampaignVoucher} [obj] Optional instance to populate. * @returns {CampaignVoucher} The populated CampaignVoucher instance. */ static constructFromObject(data: Partial, obj?: CampaignVoucher): CampaignVoucher; /** * Validates the JSON data with respect to CampaignVoucher. * @param {Partial} data The plain JavaScript object bearing properties of interest. * @returns {boolean} to indicate whether the JSON data is valid with respect to CampaignVoucher. */ static validateJSON(data: Partial): boolean; /** * Constructs a new CampaignVoucher. * Schema model for a campaign voucher. * @alias CampaignVoucher * @param {CodeConfig} codeConfig */ constructor(codeConfig: CodeConfig); type: string | undefined; discount: Discount | undefined; gift: Gift | undefined; loyalty_card: CampaignLoyaltyCard | undefined; redemption: CampaignVoucherRedemption | undefined; code_config: CodeConfig; is_referral_code: boolean | undefined; start_date: Date | undefined; expiration_date: Date | undefined; validity_timeframe: ValidityTimeframe | undefined; validity_day_of_week: (Array) | undefined; validity_hours: ValidityHours | undefined; } declare namespace CampaignVoucher { let RequiredProperties: string[]; let ValidityDayOfWeekEnum: { /** * value: 0 * @constant */ "0": number; /** * value: 1 * @constant */ "1": number; /** * value: 2 * @constant */ "2": number; /** * value: 3 * @constant */ "3": number; /** * value: 4 * @constant */ "4": number; /** * value: 5 * @constant */ "5": number; /** * value: 6 * @constant */ "6": number; }; } import Discount from './Discount'; import Gift from './Gift'; import CampaignLoyaltyCard from './CampaignLoyaltyCard'; import CampaignVoucherRedemption from './CampaignVoucherRedemption'; import CodeConfig from './CodeConfig'; import ValidityTimeframe from './ValidityTimeframe'; import ValidityHours from './ValidityHours';