Compare commits
4 Commits
b06045ed3e
...
3b8db03f08
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b8db03f08 | |||
| 0680f01ed6 | |||
| fc62a9b22f | |||
| 570324c315 |
|
|
@ -64,8 +64,12 @@ import { MultiValuedAttribute } from "./model/MultiValuedAttribute";
|
|||
import { OfferAvailability } from "./model/OfferAvailability";
|
||||
import { OfferCondition } from "./model/OfferCondition";
|
||||
import { OfferConditionNote } from "./model/OfferConditionNote";
|
||||
import { OfferDeliveryInfo } from "./model/OfferDeliveryInfo";
|
||||
import { OfferCount } from "./model/OfferCount";
|
||||
import { OfferMerchantInfo } from "./model/OfferMerchantInfo";
|
||||
import { OfferLoyaltyPoints } from "./model/OfferLoyaltyPoints";
|
||||
import { OfferPrice } from "./model/OfferPrice";
|
||||
import { OfferProgramEligibility } from "./model/OfferProgramEligibility";
|
||||
import { OfferSavings } from "./model/OfferSavings";
|
||||
import { OfferShippingCharge } from "./model/OfferShippingCharge";
|
||||
import { OfferSubCondition } from "./model/OfferSubCondition";
|
||||
|
|
|
|||
|
|
@ -15,51 +15,43 @@
|
|||
* permissions and limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
/**
|
||||
* ProductAdvertisingAPI
|
||||
* https://webservices.amazon.com/paapi5/documentation/index.html
|
||||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient', 'model/OfferShippingCharge'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'), require('./OfferShippingCharge'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferDeliveryInfo = factory(root.ProductAdvertisingAPIv1.ApiClient, root.ProductAdvertisingAPIv1.OfferShippingCharge);
|
||||
}
|
||||
}(this, function(ApiClient, OfferShippingCharge) {
|
||||
'use strict';
|
||||
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
import { OfferShippingCharge } from "./OfferShippingCharge";
|
||||
|
||||
/**
|
||||
* The OfferDeliveryInfo model module.
|
||||
* @module model/OfferDeliveryInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferDeliveryInfo</code>.
|
||||
* @alias module:model/OfferDeliveryInfo
|
||||
* @class
|
||||
*/
|
||||
export class OfferDeliveryInfo {
|
||||
/**
|
||||
* The OfferDeliveryInfo model module.
|
||||
* @module model/OfferDeliveryInfo
|
||||
* @version 1.0.0
|
||||
* @member {Boolean} IsAmazonFulfilled
|
||||
*/
|
||||
|
||||
public IsAmazonFulfilled?: boolean;
|
||||
/**
|
||||
* Constructs a new <code>OfferDeliveryInfo</code>.
|
||||
* @alias module:model/OfferDeliveryInfo
|
||||
* @class
|
||||
* @member {Boolean} IsFreeShippingEligible
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public IsFreeShippingEligible?: boolean;
|
||||
/**
|
||||
* @member {Boolean} IsPrimeEligible
|
||||
*/
|
||||
public IsPrimeEligible?: boolean;
|
||||
/**
|
||||
* @member {Array.<module:model/OfferShippingCharge>} ShippingCharges
|
||||
*/
|
||||
public ShippingCharges?: OfferShippingCharge[];
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferDeliveryInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -68,46 +60,23 @@
|
|||
* @param {module:model/OfferDeliveryInfo} obj Optional instance to populate.
|
||||
* @return {module:model/OfferDeliveryInfo} The populated <code>OfferDeliveryInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferDeliveryInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferDeliveryInfo();
|
||||
|
||||
if (data.hasOwnProperty('IsAmazonFulfilled')) {
|
||||
obj['IsAmazonFulfilled'] = ApiClient.convertToType(data['IsAmazonFulfilled'], 'Boolean');
|
||||
obj.IsAmazonFulfilled = ApiClient.convertToType(data['IsAmazonFulfilled'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('IsFreeShippingEligible')) {
|
||||
obj['IsFreeShippingEligible'] = ApiClient.convertToType(data['IsFreeShippingEligible'], 'Boolean');
|
||||
obj.IsFreeShippingEligible = ApiClient.convertToType(data['IsFreeShippingEligible'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('IsPrimeEligible')) {
|
||||
obj['IsPrimeEligible'] = ApiClient.convertToType(data['IsPrimeEligible'], 'Boolean');
|
||||
obj.IsPrimeEligible = ApiClient.convertToType(data['IsPrimeEligible'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('ShippingCharges')) {
|
||||
obj['ShippingCharges'] = ApiClient.convertToType(data['ShippingCharges'], [OfferShippingCharge]);
|
||||
obj.ShippingCharges = ApiClient.convertToType(data['ShippingCharges'], [OfferShippingCharge]);
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Boolean} IsAmazonFulfilled
|
||||
*/
|
||||
exports.prototype['IsAmazonFulfilled'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} IsFreeShippingEligible
|
||||
*/
|
||||
exports.prototype['IsFreeShippingEligible'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} IsPrimeEligible
|
||||
*/
|
||||
exports.prototype['IsPrimeEligible'] = undefined;
|
||||
/**
|
||||
* @member {Array.<module:model/OfferShippingCharge>} ShippingCharges
|
||||
*/
|
||||
exports.prototype['ShippingCharges'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,42 +21,24 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferLoyaltyPoints = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferLoyaltyPoints model module.
|
||||
* @module model/OfferLoyaltyPoints
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferLoyaltyPoints</code>.
|
||||
* @alias module:model/OfferLoyaltyPoints
|
||||
* @class
|
||||
*/
|
||||
export class OfferLoyaltyPoints {
|
||||
/**
|
||||
* The OfferLoyaltyPoints model module.
|
||||
* @module model/OfferLoyaltyPoints
|
||||
* @version 1.0.0
|
||||
* @member {Number} Points
|
||||
*/
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferLoyaltyPoints</code>.
|
||||
* @alias module:model/OfferLoyaltyPoints
|
||||
* @class
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
};
|
||||
public Points?: number;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferLoyaltyPoints</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -65,25 +47,14 @@
|
|||
* @param {module:model/OfferLoyaltyPoints} obj Optional instance to populate.
|
||||
* @return {module:model/OfferLoyaltyPoints} The populated <code>OfferLoyaltyPoints</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferLoyaltyPoints) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferLoyaltyPoints();
|
||||
|
||||
if (data.hasOwnProperty('Points')) {
|
||||
obj['Points'] = ApiClient.convertToType(data['Points'], 'Number');
|
||||
obj.Points = ApiClient.convertToType(data['Points'], 'Number');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Number} Points
|
||||
*/
|
||||
exports.prototype['Points'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,46 +21,40 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferMerchantInfo = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferMerchantInfo model module.
|
||||
* @module model/OfferMerchantInfo
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferMerchantInfo</code>.
|
||||
* @alias module:model/OfferMerchantInfo
|
||||
* @class
|
||||
*/
|
||||
export class OfferMerchantInfo {
|
||||
/**
|
||||
* The OfferMerchantInfo model module.
|
||||
* @module model/OfferMerchantInfo
|
||||
* @version 1.0.0
|
||||
* @member {String} DefaultShippingCountry
|
||||
*/
|
||||
|
||||
public DefaultShippingCountry?: string;
|
||||
/**
|
||||
* Constructs a new <code>OfferMerchantInfo</code>.
|
||||
* @alias module:model/OfferMerchantInfo
|
||||
* @class
|
||||
* @member {Number} FeedbackCount
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
public FeedbackCount?: number;
|
||||
/**
|
||||
* @member {Number} FeedbackRating
|
||||
*/
|
||||
public FeedbackRating?: number;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
public Id?: string;
|
||||
/**
|
||||
* @member {String} Name
|
||||
*/
|
||||
public Name?: string;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferMerchantInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -69,53 +63,26 @@
|
|||
* @param {module:model/OfferMerchantInfo} obj Optional instance to populate.
|
||||
* @return {module:model/OfferMerchantInfo} The populated <code>OfferMerchantInfo</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferMerchantInfo) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferMerchantInfo();
|
||||
|
||||
if (data.hasOwnProperty('DefaultShippingCountry')) {
|
||||
obj['DefaultShippingCountry'] = ApiClient.convertToType(data['DefaultShippingCountry'], 'String');
|
||||
obj.DefaultShippingCountry = ApiClient.convertToType(data['DefaultShippingCountry'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('FeedbackCount')) {
|
||||
obj['FeedbackCount'] = ApiClient.convertToType(data['FeedbackCount'], 'Number');
|
||||
obj.FeedbackCount = ApiClient.convertToType(data['FeedbackCount'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('FeedbackRating')) {
|
||||
obj['FeedbackRating'] = ApiClient.convertToType(data['FeedbackRating'], 'Number');
|
||||
obj.FeedbackRating = ApiClient.convertToType(data['FeedbackRating'], 'Number');
|
||||
}
|
||||
if (data.hasOwnProperty('Id')) {
|
||||
obj['Id'] = ApiClient.convertToType(data['Id'], 'String');
|
||||
obj.Id = ApiClient.convertToType(data['Id'], 'String');
|
||||
}
|
||||
if (data.hasOwnProperty('Name')) {
|
||||
obj['Name'] = ApiClient.convertToType(data['Name'], 'String');
|
||||
obj.Name = ApiClient.convertToType(data['Name'], 'String');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {String} DefaultShippingCountry
|
||||
*/
|
||||
exports.prototype['DefaultShippingCountry'] = undefined;
|
||||
/**
|
||||
* @member {Number} FeedbackCount
|
||||
*/
|
||||
exports.prototype['FeedbackCount'] = undefined;
|
||||
/**
|
||||
* @member {Number} FeedbackRating
|
||||
*/
|
||||
exports.prototype['FeedbackRating'] = undefined;
|
||||
/**
|
||||
* @member {String} Id
|
||||
*/
|
||||
exports.prototype['Id'] = undefined;
|
||||
/**
|
||||
* @member {String} Name
|
||||
*/
|
||||
exports.prototype['Name'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,43 +21,28 @@
|
|||
*
|
||||
*/
|
||||
|
||||
(function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['ApiClient'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.ProductAdvertisingAPIv1) {
|
||||
root.ProductAdvertisingAPIv1 = {};
|
||||
}
|
||||
root.ProductAdvertisingAPIv1.OfferProgramEligibility = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
||||
}
|
||||
}(this, function(ApiClient) {
|
||||
'use strict';
|
||||
|
||||
|
||||
/**
|
||||
* The OfferProgramEligibility model module.
|
||||
* @module model/OfferProgramEligibility
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
import { ApiClient } from "../ApiClient";
|
||||
|
||||
/**
|
||||
* Constructs a new <code>OfferProgramEligibility</code>.
|
||||
* @alias module:model/OfferProgramEligibility
|
||||
* @class
|
||||
*/
|
||||
export class OfferProgramEligibility {
|
||||
/**
|
||||
* The OfferProgramEligibility model module.
|
||||
* @module model/OfferProgramEligibility
|
||||
* @version 1.0.0
|
||||
* @member {Boolean} IsPrimeExclusive
|
||||
*/
|
||||
|
||||
public IsPrimeExclusive?: boolean;
|
||||
/**
|
||||
* Constructs a new <code>OfferProgramEligibility</code>.
|
||||
* @alias module:model/OfferProgramEligibility
|
||||
* @class
|
||||
* @member {Boolean} IsPrimePantry
|
||||
*/
|
||||
var exports = function() {
|
||||
var _this = this;
|
||||
|
||||
|
||||
|
||||
};
|
||||
public IsPrimePantry?: boolean;
|
||||
|
||||
/**
|
||||
* Constructs a <code>OfferProgramEligibility</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
|
|
@ -66,32 +51,17 @@
|
|||
* @param {module:model/OfferProgramEligibility} obj Optional instance to populate.
|
||||
* @return {module:model/OfferProgramEligibility} The populated <code>OfferProgramEligibility</code> instance.
|
||||
*/
|
||||
exports.constructFromObject = function(data, obj) {
|
||||
public static constructFromObject(data: any, obj?: OfferProgramEligibility) {
|
||||
if (data) {
|
||||
obj = obj || new exports();
|
||||
obj = obj || new OfferProgramEligibility();
|
||||
|
||||
if (data.hasOwnProperty('IsPrimeExclusive')) {
|
||||
obj['IsPrimeExclusive'] = ApiClient.convertToType(data['IsPrimeExclusive'], 'Boolean');
|
||||
obj.IsPrimeExclusive = ApiClient.convertToType(data['IsPrimeExclusive'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('IsPrimePantry')) {
|
||||
obj['IsPrimePantry'] = ApiClient.convertToType(data['IsPrimePantry'], 'Boolean');
|
||||
obj.IsPrimePantry = ApiClient.convertToType(data['IsPrimePantry'], 'Boolean');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {Boolean} IsPrimeExclusive
|
||||
*/
|
||||
exports.prototype['IsPrimeExclusive'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} IsPrimePantry
|
||||
*/
|
||||
exports.prototype['IsPrimePantry'] = undefined;
|
||||
|
||||
|
||||
|
||||
return exports;
|
||||
}));
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user