export default Reward;
/**
* The Reward model module.
* @module model/Reward
*/
declare class Reward {
/**
* 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 Reward 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 {Reward} [obj] Optional instance to populate.
* @returns {Reward} The populated Reward instance.
*/
static constructFromObject(data: Partial, obj?: Reward): Reward;
/**
* Validates the JSON data with respect to Reward.
* @param {Partial} data The plain JavaScript object bearing properties of interest.
* @returns {boolean} to indicate whether the JSON data is valid with respect to Reward.
*/
static validateJSON(data: Partial): boolean;
/**
* Constructs a new Reward.
* @alias Reward
* @param {Reward.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: RewardAttributes | undefined;
metadata: any | undefined;
type: (keyof typeof Reward.TypeEnum) | undefined;
parameters: RewardType | undefined;
created_at: Date | undefined;
updated_at: Date | undefined;
object: (keyof typeof Reward.ObjectEnum);
}
declare namespace Reward {
let RequiredProperties: string[];
namespace TypeEnum {
let CAMPAIGN: string;
let COIN: string;
let MATERIAL: string;
}
namespace ObjectEnum {
let reward: string;
}
}
import RewardAttributes from './RewardAttributes';
import RewardType from './RewardType';