Refactored model/OfferShippingCharge.
This commit is contained in:
parent
d4f6695395
commit
b06045ed3e
|
|
@ -67,6 +67,7 @@ import { OfferConditionNote } from "./model/OfferConditionNote";
|
||||||
import { OfferCount } from "./model/OfferCount";
|
import { OfferCount } from "./model/OfferCount";
|
||||||
import { OfferPrice } from "./model/OfferPrice";
|
import { OfferPrice } from "./model/OfferPrice";
|
||||||
import { OfferSavings } from "./model/OfferSavings";
|
import { OfferSavings } from "./model/OfferSavings";
|
||||||
|
import { OfferShippingCharge } from "./model/OfferShippingCharge";
|
||||||
import { OfferSubCondition } from "./model/OfferSubCondition";
|
import { OfferSubCondition } from "./model/OfferSubCondition";
|
||||||
import { OfferSummary } from "./model/OfferSummary";
|
import { OfferSummary } from "./model/OfferSummary";
|
||||||
import { PartnerType } from "./model/PartnerType";
|
import { PartnerType } from "./model/PartnerType";
|
||||||
|
|
|
||||||
|
|
@ -21,46 +21,40 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function(root, factory) {
|
/**
|
||||||
if (typeof define === 'function' && define.amd) {
|
* The OfferShippingCharge model module.
|
||||||
// AMD. Register as an anonymous module.
|
* @module model/OfferShippingCharge
|
||||||
define(['ApiClient'], factory);
|
* @version 1.0.0
|
||||||
} 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.OfferShippingCharge = factory(root.ProductAdvertisingAPIv1.ApiClient);
|
|
||||||
}
|
|
||||||
}(this, function(ApiClient) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import { ApiClient } from "../ApiClient";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>OfferShippingCharge</code>.
|
||||||
|
* @alias module:model/OfferShippingCharge
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
export class OfferShippingCharge {
|
||||||
/**
|
/**
|
||||||
* The OfferShippingCharge model module.
|
* @member {Number} Amount
|
||||||
* @module model/OfferShippingCharge
|
|
||||||
* @version 1.0.0
|
|
||||||
*/
|
*/
|
||||||
|
public Amount?: number;
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>OfferShippingCharge</code>.
|
* @member {String} Currency
|
||||||
* @alias module:model/OfferShippingCharge
|
|
||||||
* @class
|
|
||||||
*/
|
*/
|
||||||
var exports = function() {
|
public Currency?: string;
|
||||||
var _this = this;
|
/**
|
||||||
|
* @member {String} DisplayAmount
|
||||||
|
*/
|
||||||
|
public DisplayAmount?: string;
|
||||||
|
/**
|
||||||
|
* @member {Boolean} IsRateTaxInclusive
|
||||||
|
*/
|
||||||
};
|
public IsRateTaxInclusive?: boolean;
|
||||||
|
/**
|
||||||
|
* @member {String} Type
|
||||||
|
*/
|
||||||
|
public Type?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>OfferShippingCharge</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>OfferShippingCharge</code> from a plain JavaScript object, optionally creating a new instance.
|
||||||
|
|
@ -69,53 +63,26 @@
|
||||||
* @param {module:model/OfferShippingCharge} obj Optional instance to populate.
|
* @param {module:model/OfferShippingCharge} obj Optional instance to populate.
|
||||||
* @return {module:model/OfferShippingCharge} The populated <code>OfferShippingCharge</code> instance.
|
* @return {module:model/OfferShippingCharge} The populated <code>OfferShippingCharge</code> instance.
|
||||||
*/
|
*/
|
||||||
exports.constructFromObject = function(data, obj) {
|
public static constructFromObject(data: any, obj?: OfferShippingCharge) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new exports();
|
obj = obj || new OfferShippingCharge();
|
||||||
|
|
||||||
if (data.hasOwnProperty('Amount')) {
|
if (data.hasOwnProperty('Amount')) {
|
||||||
obj['Amount'] = ApiClient.convertToType(data['Amount'], 'Number');
|
obj.Amount = ApiClient.convertToType(data['Amount'], 'Number');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Currency')) {
|
if (data.hasOwnProperty('Currency')) {
|
||||||
obj['Currency'] = ApiClient.convertToType(data['Currency'], 'String');
|
obj.Currency = ApiClient.convertToType(data['Currency'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('DisplayAmount')) {
|
if (data.hasOwnProperty('DisplayAmount')) {
|
||||||
obj['DisplayAmount'] = ApiClient.convertToType(data['DisplayAmount'], 'String');
|
obj.DisplayAmount = ApiClient.convertToType(data['DisplayAmount'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('IsRateTaxInclusive')) {
|
if (data.hasOwnProperty('IsRateTaxInclusive')) {
|
||||||
obj['IsRateTaxInclusive'] = ApiClient.convertToType(data['IsRateTaxInclusive'], 'Boolean');
|
obj.IsRateTaxInclusive = ApiClient.convertToType(data['IsRateTaxInclusive'], 'Boolean');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('Type')) {
|
if (data.hasOwnProperty('Type')) {
|
||||||
obj['Type'] = ApiClient.convertToType(data['Type'], 'String');
|
obj.Type = ApiClient.convertToType(data['Type'], 'String');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
/**
|
|
||||||
* @member {Number} Amount
|
|
||||||
*/
|
|
||||||
exports.prototype['Amount'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Currency
|
|
||||||
*/
|
|
||||||
exports.prototype['Currency'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} DisplayAmount
|
|
||||||
*/
|
|
||||||
exports.prototype['DisplayAmount'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {Boolean} IsRateTaxInclusive
|
|
||||||
*/
|
|
||||||
exports.prototype['IsRateTaxInclusive'] = undefined;
|
|
||||||
/**
|
|
||||||
* @member {String} Type
|
|
||||||
*/
|
|
||||||
exports.prototype['Type'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return exports;
|
|
||||||
}));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user