export default BundleIdentifiedItem; /** * The BundleIdentifiedItem model module. * @module model/BundleIdentifiedItem */ declare class BundleIdentifiedItem { /** * 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, id: any, object: any, itemIndex: any, itemQuantity: any): void; /** * Constructs a BundleIdentifiedItem 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 {BundleIdentifiedItem} [obj] Optional instance to populate. * @returns {BundleIdentifiedItem} The populated BundleIdentifiedItem instance. */ static constructFromObject(data: Partial, obj?: BundleIdentifiedItem): BundleIdentifiedItem; /** * Validates the JSON data with respect to BundleIdentifiedItem. * @param {Partial} data The plain JavaScript object bearing properties of interest. * @returns {boolean} to indicate whether the JSON data is valid with respect to BundleIdentifiedItem. */ static validateJSON(data: Partial): boolean; /** * Constructs a new BundleIdentifiedItem. * Determines a product from the customer's order items that meets bundle conditions. * @alias BundleIdentifiedItem * @param {String} id Unique identifier of the product or SKU that meets the bundle condition. This is an ID assigned by Voucherify. * @param {BundleIdentifiedItem.ObjectEnum} object Determines the type of the object that meets the bundle condition. * @param {Number} itemIndex Number assigned to the order line item in accordance with the order sent in the request. It starts with `0` for the first order line item in the request. * @param {Number} itemQuantity Quantity of items that meet the bundle conditions. If the quantity in the order is higher than the quantity required by the bundle, this returns only the number that meets the bundle. For example, if the bundle requires `5` coffees, but the order includes `10` coffees, `item_quantity` returns `5`. */ constructor(id: string, object: { /** * value: "product" * @constant */ product: string; /** * value: "sku" * @constant */ sku: string; }, itemIndex: number, itemQuantity: number); id: string; object: (keyof typeof BundleIdentifiedItem.ObjectEnum); item_index: number; item_quantity: number; } declare namespace BundleIdentifiedItem { let RequiredProperties: string[]; namespace ObjectEnum { let product: string; let sku: string; } }