export default LoyaltiesCreateCampaignRequestBody;
/**
* The LoyaltiesCreateCampaignRequestBody model module.
* @module model/LoyaltiesCreateCampaignRequestBody
*/
declare class LoyaltiesCreateCampaignRequestBody {
/**
* 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): void;
/**
* Constructs a LoyaltiesCreateCampaignRequestBody 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 {LoyaltiesCreateCampaignRequestBody} [obj] Optional instance to populate.
* @returns {LoyaltiesCreateCampaignRequestBody} The populated LoyaltiesCreateCampaignRequestBody instance.
*/
static constructFromObject(data: Partial, obj?: LoyaltiesCreateCampaignRequestBody): LoyaltiesCreateCampaignRequestBody;
/**
* Validates the JSON data with respect to LoyaltiesCreateCampaignRequestBody.
* @param {Partial} data The plain JavaScript object bearing properties of interest.
* @returns {boolean} to indicate whether the JSON data is valid with respect to LoyaltiesCreateCampaignRequestBody.
*/
static validateJSON(data: Partial): boolean;
name: string | undefined;
description: string | undefined;
type: (keyof typeof LoyaltiesCreateCampaignRequestBody.TypeEnum) | undefined;
join_once: boolean | undefined;
auto_join: boolean | undefined;
use_voucher_metadata_schema: boolean | undefined;
vouchers_count: number | undefined;
start_date: Date | undefined;
expiration_date: Date | undefined;
validity_timeframe: ValidityTimeframe | undefined;
validity_day_of_week: (Array) | undefined;
validity_hours: ValidityHours | undefined;
activity_duration_after_publishing: string | undefined;
category_id: string | undefined;
category: string | undefined;
metadata: any | undefined;
access_settings: AccessSettings | undefined;
campaign_type: (keyof typeof LoyaltiesCreateCampaignRequestBody.CampaignTypeEnum) | undefined;
voucher: CampaignLoyaltyVoucher | undefined;
}
declare namespace LoyaltiesCreateCampaignRequestBody {
namespace TypeEnum {
let AUTO_UPDATE: string;
let STATIC: string;
let STANDALONE: 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;
};
namespace CampaignTypeEnum {
let LOYALTY_PROGRAM: string;
}
}
import ValidityTimeframe from './ValidityTimeframe';
import ValidityHours from './ValidityHours';
import AccessSettings from './AccessSettings';
import CampaignLoyaltyVoucher from './CampaignLoyaltyVoucher';