export default EarningRuleLoyalty;
/**
* The EarningRuleLoyalty model module.
* @module model/EarningRuleLoyalty
*/
declare class EarningRuleLoyalty {
/**
* 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 EarningRuleLoyalty 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 {EarningRuleLoyalty} [obj] Optional instance to populate.
* @returns {EarningRuleLoyalty} The populated EarningRuleLoyalty instance.
*/
static constructFromObject(data: Partial, obj?: EarningRuleLoyalty): EarningRuleLoyalty;
/**
* Validates the JSON data with respect to EarningRuleLoyalty.
* @param {Partial} data The plain JavaScript object bearing properties of interest.
* @returns {boolean} to indicate whether the JSON data is valid with respect to EarningRuleLoyalty.
*/
static validateJSON(data: Partial): boolean;
type: (keyof typeof EarningRuleLoyalty.TypeEnum) | undefined;
points: number | undefined;
points_formula: string | undefined;
calculation_type: (keyof typeof EarningRuleLoyalty.CalculationTypeEnum) | undefined;
order: EarningRuleLoyaltyOrder | undefined;
order_items: EarningRuleLoyaltyOrderItems | undefined;
customer: EarningRuleLoyaltyCustomer | undefined;
custom_event: EarningRuleLoyaltyCustomEvent | undefined;
}
declare namespace EarningRuleLoyalty {
namespace TypeEnum {
let FIXED: string;
let PROPORTIONAL: string;
}
namespace CalculationTypeEnum {
let ORDER_AMOUNT: string;
let ORDER_TOTAL_AMOUNT: string;
let ORDER_METADATA: string;
let ORDER_ITEMS_QUANTITY: string;
let ORDER_ITEMS_AMOUNT: string;
let ORDER_ITEMS_SUBTOTAL_AMOUNT: string;
let CUSTOMER_METADATA: string;
let CUSTOM_EVENT_METADATA: string;
}
}
import EarningRuleLoyaltyOrder from './EarningRuleLoyaltyOrder';
import EarningRuleLoyaltyOrderItems from './EarningRuleLoyaltyOrderItems';
import EarningRuleLoyaltyCustomer from './EarningRuleLoyaltyCustomer';
import EarningRuleLoyaltyCustomEvent from './EarningRuleLoyaltyCustomEvent';