text: /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
  /* 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 OrderAddress model module.
  * @module models/OrderAddress
  * @version 20.4
  */
  export default class OrderAddress {
      /**
      * Constructs a new <code>OrderAddress</code>.
      * Document representing an order address.
      * @alias module:models/OrderAddress
      * @class
      */
  
      constructor() {
  
  
  
  
  
  
  
  
      }
  
      /**
      * Constructs a <code>OrderAddress</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/OrderAddress} obj Optional instance to populate.
      * @return {module:models/OrderAddress} The populated <code>OrderAddress</code> instance.
      */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new OrderAddress()
  
  
  
  
  
              if (data.hasOwnProperty('address1')) {
                  obj.address1 = ApiClient.convertToType(data.address1, 'String')
              }
              if (data.hasOwnProperty('address2')) {
                  obj.address2 = ApiClient.convertToType(data.address2, 'String')
              }
              if (data.hasOwnProperty('city')) {
                  obj.city = ApiClient.convertToType(data.city, 'String')
              }
              if (data.hasOwnProperty('company_name')) {
                  obj.company_name = ApiClient.convertToType(data.company_name, 'String')
              }
              if (data.hasOwnProperty('country_code')) {
                  obj.country_code = ApiClient.convertToType(data.country_code, 'String')
              }
              if (data.hasOwnProperty('first_name')) {
                  obj.first_name = ApiClient.convertToType(data.first_name, 'String')
              }
              if (data.hasOwnProperty('full_name')) {
                  obj.full_name = ApiClient.convertToType(data.full_name, 'String')
              }
              if (data.hasOwnProperty('id')) {
                  obj.id = ApiClient.convertToType(data.id, 'String')
              }
              if (data.hasOwnProperty('job_title')) {
                  obj.job_title = ApiClient.convertToType(data.job_title, 'String')
              }
              if (data.hasOwnProperty('last_name')) {
                  obj.last_name = ApiClient.convertToType(data.last_name, 'String')
              }
              if (data.hasOwnProperty('phone')) {
                  obj.phone = ApiClient.convertToType(data.phone, 'String')
              }
              if (data.hasOwnProperty('post_box')) {
                  obj.post_box = ApiClient.convertToType(data.post_box, 'String')
              }
              if (data.hasOwnProperty('postal_code')) {
                  obj.postal_code = ApiClient.convertToType(data.postal_code, 'String')
              }
              if (data.hasOwnProperty('salutation')) {
                  obj.salutation = ApiClient.convertToType(data.salutation, 'String')
              }
              if (data.hasOwnProperty('second_name')) {
                  obj.second_name = ApiClient.convertToType(data.second_name, 'String')
              }
              if (data.hasOwnProperty('state_code')) {
                  obj.state_code = ApiClient.convertToType(data.state_code, 'String')
              }
              if (data.hasOwnProperty('suffix')) {
                  obj.suffix = ApiClient.convertToType(data.suffix, 'String')
              }
              if (data.hasOwnProperty('suite')) {
                  obj.suite = ApiClient.convertToType(data.suite, 'String')
              }
              if (data.hasOwnProperty('title')) {
                  obj.title = ApiClient.convertToType(data.title, 'String')
              }
          }
          return obj
      }
  
      /**
      * The first address.
      * @member {String} address1
      */
      address1 = undefined;
      /**
      * The second address.
      * @member {String} address2
      */
      address2 = undefined;
      /**
      * The city.
      * @member {String} city
      */
      city = undefined;
      /**
      * The company name.
      * @member {String} company_name
      */
      company_name = undefined;
      /**
      * The two-letter ISO 3166-1 (Alpha-2) country code.
      * @member {module:models/OrderAddress.CountryCodeEnum} country_code
      */
      country_code = undefined;
      /**
      * The first name.
      * @member {String} first_name
      */
      first_name = undefined;
      /**
      * The full name.
      * @member {String} full_name
      */
      full_name = undefined;
      /**
      * Id used to identify this address
      * @member {String} id
      */
      id = undefined;
      /**
      * The job title.
      * @member {String} job_title
      */
      job_title = undefined;
      /**
      * The last name.
      * @member {String} last_name
      */
      last_name = undefined;
      /**
      * The phone number.
      * @member {String} phone
      */
      phone = undefined;
      /**
      * The post box.
      * @member {String} post_box
      */
      post_box = undefined;
      /**
      * The postal code.
      * @member {String} postal_code
      */
      postal_code = undefined;
      /**
      * The salutation.
      * @member {String} salutation
      */
      salutation = undefined;
      /**
      * The second name.
      * @member {String} second_name
      */
      second_name = undefined;
      /**
      * The state code.
      * @member {String} state_code
      */
      state_code = undefined;
      /**
      * The suffix.
      * @member {String} suffix
      */
      suffix = undefined;
      /**
      * The suite.
      * @member {String} suite
      */
      suite = undefined;
      /**
      * The title.
      * @member {String} title
      */
      title = undefined;
  
  
  
  
  
  
      /**
      * Allowed values for the <code>country_code</code> property.
      * @enum {String}
      * @readonly
      */
      static CountryCodeEnum = {
  
          /**
           * value: "US"
           * @const
           */
          US: 'US',
  
          /**
           * value: "FR"
           * @const
           */
          FR: 'FR',
  
          /**
           * value: "IT"
           * @const
           */
          IT: 'IT',
  
          /**
           * value: "JP"
           * @const
           */
          JP: 'JP',
  
          /**
           * value: "CN"
           * @const
           */
          CN: 'CN',
  
          /**
           * value: "GB"
           * @const
           */
          GB: 'GB'
      };
  
  
  
  }
  
  
  