export default RewardsCreateResponseBody; /** * The RewardsCreateResponseBody model module. * @module model/RewardsCreateResponseBody */ declare class RewardsCreateResponseBody { /** * 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, object: any): void; /** * Constructs a RewardsCreateResponseBody 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 {RewardsCreateResponseBody} [obj] Optional instance to populate. * @returns {RewardsCreateResponseBody} The populated RewardsCreateResponseBody instance. */ static constructFromObject(data: Partial, obj?: RewardsCreateResponseBody): RewardsCreateResponseBody; /** * Validates the JSON data with respect to RewardsCreateResponseBody. * @param {Partial} data The plain JavaScript object bearing properties of interest. * @returns {boolean} to indicate whether the JSON data is valid with respect to RewardsCreateResponseBody. */ static validateJSON(data: Partial): boolean; /** * Constructs a new RewardsCreateResponseBody. * Response body schema for **POST** `v1/rewards`. * @alias RewardsCreateResponseBody * @param {RewardsCreateResponseBody.ObjectEnum} object The type of the object represented by the JSON. This object stores information about the reward. */ constructor(object: { /** * value: "reward" * @constant */ reward: string; }); id: string | undefined; name: string | undefined; stock: number | undefined; redeemed: number | undefined; attributes: RewardsCreateResponseBodyAttributes | undefined; metadata: any | undefined; type: (keyof typeof RewardsCreateResponseBody.TypeEnum) | undefined; parameters: RewardType | undefined; created_at: Date | undefined; updated_at: Date | undefined; object: (keyof typeof RewardsCreateResponseBody.ObjectEnum); } declare namespace RewardsCreateResponseBody { let RequiredProperties: string[]; namespace TypeEnum { let CAMPAIGN: string; let COIN: string; let MATERIAL: string; } namespace ObjectEnum { let reward: string; } } import RewardsCreateResponseBodyAttributes from './RewardsCreateResponseBodyAttributes'; import RewardType from './RewardType';