export default SimpleVoucher;
/**
* The SimpleVoucher model module.
* @module model/SimpleVoucher
*/
declare class SimpleVoucher {
/**
* 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 SimpleVoucher 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 {SimpleVoucher} [obj] Optional instance to populate.
* @returns {SimpleVoucher} The populated SimpleVoucher instance.
*/
static constructFromObject(data: Partial, obj?: SimpleVoucher): SimpleVoucher;
/**
* Validates the JSON data with respect to SimpleVoucher.
* @param {Partial} data The plain JavaScript object bearing properties of interest.
* @returns {boolean} to indicate whether the JSON data is valid with respect to SimpleVoucher.
*/
static validateJSON(data: Partial): boolean;
id: string | undefined;
code: string | undefined;
gift: Gift | undefined;
discount: Discount | undefined;
loyalty_card: SimpleLoyaltyCard | undefined;
type: (keyof typeof SimpleVoucher.TypeEnum) | undefined;
campaign: string | undefined;
campaign_id: string | undefined;
is_referral_code: boolean | undefined;
holder_id: string | undefined;
referrer_id: string | undefined;
category_id: string | undefined;
categories: Array | undefined;
active: boolean | undefined;
created_at: Date | undefined;
updated_at: Date | undefined;
redemption: SimpleVoucherRedemption | undefined;
start_date: Date | undefined;
expiration_date: Date | undefined;
metadata: any | undefined;
object: (keyof typeof SimpleVoucher.ObjectEnum) | undefined;
}
declare namespace SimpleVoucher {
namespace TypeEnum {
let DISCOUNT_VOUCHER: string;
let LOYALTY_CARD: string;
let GIFT_VOUCHER: string;
}
namespace ObjectEnum {
let voucher: string;
}
}
import Gift from './Gift';
import Discount from './Discount';
import SimpleLoyaltyCard from './SimpleLoyaltyCard';
import Category from './Category';
import SimpleVoucherRedemption from './SimpleVoucherRedemption';