export default SimpleRedemption;
/**
* The SimpleRedemption model module.
* @module model/SimpleRedemption
*/
declare class SimpleRedemption {
/**
* 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 SimpleRedemption 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 {SimpleRedemption} [obj] Optional instance to populate.
* @returns {SimpleRedemption} The populated SimpleRedemption instance.
*/
static constructFromObject(data: Partial, obj?: SimpleRedemption): SimpleRedemption;
/**
* Validates the JSON data with respect to SimpleRedemption.
* @param {Partial} data The plain JavaScript object bearing properties of interest.
* @returns {boolean} to indicate whether the JSON data is valid with respect to SimpleRedemption.
*/
static validateJSON(data: Partial): boolean;
id: string | undefined;
customer_id: string | undefined;
tracking_id: string | undefined;
date: Date | undefined;
amount: number | undefined;
order: SimpleOrder | undefined;
reward: SimpleRedemptionRewardResult | undefined;
customer: SimpleCustomer | undefined;
result: (keyof typeof SimpleRedemption.ResultEnum) | undefined;
status: (keyof typeof SimpleRedemption.StatusEnum) | undefined;
voucher: SimpleVoucher | undefined;
promotion_tier: SimplePromotionTier | undefined;
redemption: string | undefined;
metadata: any | undefined;
failure_code: string | undefined;
failure_message: string | undefined;
reason: string | undefined;
channel: SimpleRedemptionChannel | undefined;
object: string | undefined;
}
declare namespace SimpleRedemption {
namespace ResultEnum {
let SUCCESS: string;
let FAILURE: string;
}
let StatusEnum: {
/**
* value: "SUCCEEDED"
* @constant
*/
SUCCEEDED: string;
/**
* value: "FAILED"
* @constant
*/
FAILED: string;
/**
* value: "ROLLED BACK"
* @constant
*/
"ROLLED BACK": string;
};
}
import SimpleOrder from './SimpleOrder';
import SimpleRedemptionRewardResult from './SimpleRedemptionRewardResult';
import SimpleCustomer from './SimpleCustomer';
import SimpleVoucher from './SimpleVoucher';
import SimplePromotionTier from './SimplePromotionTier';
import SimpleRedemptionChannel from './SimpleRedemptionChannel';