/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**
* Shop API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 20.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient'
/**
* The ShippingPromotion model module.
* @module models/ShippingPromotion
* @version 20.4
*/
export default class ShippingPromotion {
/**
* Constructs a new <code>ShippingPromotion</code>.
* Document representing a shipping promotion.
* @alias module:models/ShippingPromotion
* @class
*/
constructor() {
}
/**
* Constructs a <code>ShippingPromotion</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:models/ShippingPromotion} obj Optional instance to populate.
* @return {module:models/ShippingPromotion} The populated <code>ShippingPromotion</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ShippingPromotion()
if (data.hasOwnProperty('callout_msg')) {
obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String')
}
if (data.hasOwnProperty('link')) {
obj.link = ApiClient.convertToType(data.link, 'String')
}
if (data.hasOwnProperty('promotion_id')) {
obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String')
}
if (data.hasOwnProperty('promotion_name')) {
obj.promotion_name = ApiClient.convertToType(data.promotion_name, 'String')
}
}
return obj
}
/**
* The localized call-out message of the promotion.
* @member {String} callout_msg
*/
callout_msg = undefined;
/**
* The URL addressing the promotion.
* @member {String} link
*/
link = undefined;
/**
* The unique id of the promotion.
* @member {String} promotion_id
*/
promotion_id = undefined;
/**
* The localized promotion name.
* @member {String} promotion_name
*/
promotion_name = undefined;
}