UNPKG

xi_sdk_resellers

Version:

Ingram Micro - Xvantage Integration (XI) Node.Js Server-side SDK.

360 lines (326 loc) 15.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * XI Sdk Resellers * For Resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ /** * The ProductDetailResponseIndicators model module. * @module model/ProductDetailResponseIndicators * @version 1.0.0 */ var ProductDetailResponseIndicators = /*#__PURE__*/function () { /** * Constructs a new <code>ProductDetailResponseIndicators</code>. * @alias module:model/ProductDetailResponseIndicators */ function ProductDetailResponseIndicators() { _classCallCheck(this, ProductDetailResponseIndicators); ProductDetailResponseIndicators.initialize(this); } /** * 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. */ return _createClass(ProductDetailResponseIndicators, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>ProductDetailResponseIndicators</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/ProductDetailResponseIndicators} obj Optional instance to populate. * @return {module:model/ProductDetailResponseIndicators} The populated <code>ProductDetailResponseIndicators</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new ProductDetailResponseIndicators(); if (data.hasOwnProperty('hasWarranty')) { obj['hasWarranty'] = _ApiClient["default"].convertToType(data['hasWarranty'], 'Boolean'); } if (data.hasOwnProperty('isNewProduct')) { obj['isNewProduct'] = _ApiClient["default"].convertToType(data['isNewProduct'], 'Boolean'); } if (data.hasOwnProperty('HasReturnLimits')) { obj['HasReturnLimits'] = _ApiClient["default"].convertToType(data['HasReturnLimits'], 'Boolean'); } if (data.hasOwnProperty('IsBackOrderAllowed')) { obj['IsBackOrderAllowed'] = _ApiClient["default"].convertToType(data['IsBackOrderAllowed'], 'Boolean'); } if (data.hasOwnProperty('isShippedFromPartner')) { obj['isShippedFromPartner'] = _ApiClient["default"].convertToType(data['isShippedFromPartner'], 'Boolean'); } if (data.hasOwnProperty('isReplacementProduct')) { obj['isReplacementProduct'] = _ApiClient["default"].convertToType(data['isReplacementProduct'], 'Boolean'); } if (data.hasOwnProperty('isDirectship')) { obj['isDirectship'] = _ApiClient["default"].convertToType(data['isDirectship'], 'Boolean'); } if (data.hasOwnProperty('isDownloadable')) { obj['isDownloadable'] = _ApiClient["default"].convertToType(data['isDownloadable'], 'Boolean'); } if (data.hasOwnProperty('isDigitalType')) { obj['isDigitalType'] = _ApiClient["default"].convertToType(data['isDigitalType'], 'Boolean'); } if (data.hasOwnProperty('skuType')) { obj['skuType'] = _ApiClient["default"].convertToType(data['skuType'], 'String'); } if (data.hasOwnProperty('hasStdSpecialPrice')) { obj['hasStdSpecialPrice'] = _ApiClient["default"].convertToType(data['hasStdSpecialPrice'], 'Boolean'); } if (data.hasOwnProperty('hasAcopSpecialPrice')) { obj['hasAcopSpecialPrice'] = _ApiClient["default"].convertToType(data['hasAcopSpecialPrice'], 'Boolean'); } if (data.hasOwnProperty('hasAcopQuantityBreak')) { obj['hasAcopQuantityBreak'] = _ApiClient["default"].convertToType(data['hasAcopQuantityBreak'], 'Boolean'); } if (data.hasOwnProperty('hasStdWebDiscount')) { obj['hasStdWebDiscount'] = _ApiClient["default"].convertToType(data['hasStdWebDiscount'], 'Boolean'); } if (data.hasOwnProperty('hasSpecialBid')) { obj['hasSpecialBid'] = _ApiClient["default"].convertToType(data['hasSpecialBid'], 'Boolean'); } if (data.hasOwnProperty('isExportableToCountry')) { obj['isExportableToCountry'] = _ApiClient["default"].convertToType(data['isExportableToCountry'], 'Boolean'); } if (data.hasOwnProperty('isDiscontinuedProduct')) { obj['isDiscontinuedProduct'] = _ApiClient["default"].convertToType(data['isDiscontinuedProduct'], 'Boolean'); } if (data.hasOwnProperty('isRefurbishedProduct')) { obj['isRefurbishedProduct'] = _ApiClient["default"].convertToType(data['isRefurbishedProduct'], 'Boolean'); } if (data.hasOwnProperty('isReturnableProduct')) { obj['isReturnableProduct'] = _ApiClient["default"].convertToType(data['isReturnableProduct'], 'Boolean'); } if (data.hasOwnProperty('isIngramShip')) { obj['isIngramShip'] = _ApiClient["default"].convertToType(data['isIngramShip'], 'Boolean'); } if (data.hasOwnProperty('isEnduserRequired')) { obj['isEnduserRequired'] = _ApiClient["default"].convertToType(data['isEnduserRequired'], 'Boolean'); } if (data.hasOwnProperty('isHeavyWeight')) { obj['isHeavyWeight'] = _ApiClient["default"].convertToType(data['isHeavyWeight'], 'Boolean'); } if (data.hasOwnProperty('hasLtl')) { obj['hasLtl'] = _ApiClient["default"].convertToType(data['hasLtl'], 'Boolean'); } if (data.hasOwnProperty('isClearanceProduct')) { obj['isClearanceProduct'] = _ApiClient["default"].convertToType(data['isClearanceProduct'], 'Boolean'); } if (data.hasOwnProperty('hasBundle')) { obj['hasBundle'] = _ApiClient["default"].convertToType(data['hasBundle'], 'Boolean'); } if (data.hasOwnProperty('isOversizeProduct')) { obj['isOversizeProduct'] = _ApiClient["default"].convertToType(data['isOversizeProduct'], 'Boolean'); } if (data.hasOwnProperty('isPreorderProduct')) { obj['isPreorderProduct'] = _ApiClient["default"].convertToType(data['isPreorderProduct'], 'Boolean'); } if (data.hasOwnProperty('isLicenseProduct')) { obj['isLicenseProduct'] = _ApiClient["default"].convertToType(data['isLicenseProduct'], 'Boolean'); } if (data.hasOwnProperty('isDirectshipOrderable')) { obj['isDirectshipOrderable'] = _ApiClient["default"].convertToType(data['isDirectshipOrderable'], 'Boolean'); } if (data.hasOwnProperty('isServiceSku')) { obj['isServiceSku'] = _ApiClient["default"].convertToType(data['isServiceSku'], 'Boolean'); } if (data.hasOwnProperty('isConfigurable')) { obj['isConfigurable'] = _ApiClient["default"].convertToType(data['isConfigurable'], 'Boolean'); } } return obj; } /** * Validates the JSON data with respect to <code>ProductDetailResponseIndicators</code>. * @param {Object} data The plain JavaScript object bearing properties of interest. * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProductDetailResponseIndicators</code>. */ }, { key: "validateJSON", value: function validateJSON(data) { // ensure the json data is a string if (data['skuType'] && !(typeof data['skuType'] === 'string' || data['skuType'] instanceof String)) { throw new Error("Expected the field `skuType` to be a primitive type in the JSON string but got " + data['skuType']); } return true; } }]); }(); /** * Boolean that indicates whether product has a warranty. * @member {Boolean} hasWarranty */ ProductDetailResponseIndicators.prototype['hasWarranty'] = undefined; /** * Boolean that indicates whether it’s a new product. * @member {Boolean} isNewProduct */ ProductDetailResponseIndicators.prototype['isNewProduct'] = undefined; /** * Boolean that indicates whether there is any limit to return the product. * @member {Boolean} HasReturnLimits */ ProductDetailResponseIndicators.prototype['HasReturnLimits'] = undefined; /** * Boolean that indicates whether back order is allowed for the product. * @member {Boolean} IsBackOrderAllowed */ ProductDetailResponseIndicators.prototype['IsBackOrderAllowed'] = undefined; /** * Boolean that indicates whether product is shipped from the partner. * @member {Boolean} isShippedFromPartner */ ProductDetailResponseIndicators.prototype['isShippedFromPartner'] = undefined; /** * Boolean that indicates whether product is a replacement product. * @member {Boolean} isReplacementProduct */ ProductDetailResponseIndicators.prototype['isReplacementProduct'] = undefined; /** * Boolean that indicates whether it’s a direct ship product. * @member {Boolean} isDirectship */ ProductDetailResponseIndicators.prototype['isDirectship'] = undefined; /** * Boolean that indicates whether product is downloadable. * @member {Boolean} isDownloadable */ ProductDetailResponseIndicators.prototype['isDownloadable'] = undefined; /** * Boolean that indicates whether it’s a digital product. * @member {Boolean} isDigitalType */ ProductDetailResponseIndicators.prototype['isDigitalType'] = undefined; /** * skutype * @member {String} skuType */ ProductDetailResponseIndicators.prototype['skuType'] = undefined; /** * Boolean that indicates whether product has any standard special price. * @member {Boolean} hasStdSpecialPrice */ ProductDetailResponseIndicators.prototype['hasStdSpecialPrice'] = undefined; /** * Boolean that indicates whether product has any ACOP special price. * @member {Boolean} hasAcopSpecialPrice */ ProductDetailResponseIndicators.prototype['hasAcopSpecialPrice'] = undefined; /** * Boolean that indicates whether product has any ACOP quantity break. * @member {Boolean} hasAcopQuantityBreak */ ProductDetailResponseIndicators.prototype['hasAcopQuantityBreak'] = undefined; /** * Boolean that indicates whether product has any standard web discount. * @member {Boolean} hasStdWebDiscount */ ProductDetailResponseIndicators.prototype['hasStdWebDiscount'] = undefined; /** * Boolean that indicates whether product has any special bid. * @member {Boolean} hasSpecialBid */ ProductDetailResponseIndicators.prototype['hasSpecialBid'] = undefined; /** * Boolean that indicates whether product is exportable. * @member {Boolean} isExportableToCountry */ ProductDetailResponseIndicators.prototype['isExportableToCountry'] = undefined; /** * Boolean that indicates whether it’s a discontinued product. * @member {Boolean} isDiscontinuedProduct */ ProductDetailResponseIndicators.prototype['isDiscontinuedProduct'] = undefined; /** * Boolean that indicates whether product is refurbished. * @member {Boolean} isRefurbishedProduct */ ProductDetailResponseIndicators.prototype['isRefurbishedProduct'] = undefined; /** * Boolean that indicates if the product can be returned. * @member {Boolean} isReturnableProduct */ ProductDetailResponseIndicators.prototype['isReturnableProduct'] = undefined; /** * Boolean that indicates whether it’s a Ingram shipped product. * @member {Boolean} isIngramShip */ ProductDetailResponseIndicators.prototype['isIngramShip'] = undefined; /** * Do vendor requires Enduser name required to create an order. * @member {Boolean} isEnduserRequired */ ProductDetailResponseIndicators.prototype['isEnduserRequired'] = undefined; /** * Boolean that indicates whether it’s heavy weight product. * @member {Boolean} isHeavyWeight */ ProductDetailResponseIndicators.prototype['isHeavyWeight'] = undefined; /** * Boolean that indicates whether it hasLtl or not. * @member {Boolean} hasLtl */ ProductDetailResponseIndicators.prototype['hasLtl'] = undefined; /** * Boolean that indicates whether it’s clearnce product. * @member {Boolean} isClearanceProduct */ ProductDetailResponseIndicators.prototype['isClearanceProduct'] = undefined; /** * Boolean that indicates whether it’s a bundled product. * @member {Boolean} hasBundle */ ProductDetailResponseIndicators.prototype['hasBundle'] = undefined; /** * Boolean that indicates whether it’s oversized product. * @member {Boolean} isOversizeProduct */ ProductDetailResponseIndicators.prototype['isOversizeProduct'] = undefined; /** * Boolean that indicates whether it’s a preorder product. * @member {Boolean} isPreorderProduct */ ProductDetailResponseIndicators.prototype['isPreorderProduct'] = undefined; /** * Boolean that indicates whether it’s a licened product. * @member {Boolean} isLicenseProduct */ ProductDetailResponseIndicators.prototype['isLicenseProduct'] = undefined; /** * Boolean that indicates whether product is directship orderable. * @member {Boolean} isDirectshipOrderable */ ProductDetailResponseIndicators.prototype['isDirectshipOrderable'] = undefined; /** * Boolean that indicates whether product is service SKU. * @member {Boolean} isServiceSku */ ProductDetailResponseIndicators.prototype['isServiceSku'] = undefined; /** * Boolean that indicates whether product is configurable. * @member {Boolean} isConfigurable */ ProductDetailResponseIndicators.prototype['isConfigurable'] = undefined; var _default = exports["default"] = ProductDetailResponseIndicators;