1. 1 : (function(root, factory) {
  2. 2 : if (typeof define === 'function' && define.amd) {
  3. 3 : // AMD. Register as an anonymous module.
  4. 4 : define(['ApiClient'], factory);
  5. 5 : } else if (typeof module === 'object' && module.exports) {
  6. 6 : // CommonJS-like environments that support module.exports, like Node.
  7. 7 : module.exports = factory(require('../ApiClient'));
  8. 8 : } else {
  9. 9 : // Browser globals (root is window)
  10. 10 : if (!root.OrbipayPaymentsapiClient) {
  11. 11 : root.OrbipayPaymentsapiClient = {};
  12. 12 : }
  13. 13 : root.OrbipayPaymentsapiClient.AddressVo = factory(root.OrbipayPaymentsapiClient.ApiClient);
  14. 14 : }
  15. 15 : }(this, function(ApiClient) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The AddressVo model module.
  23. 23 : * @module models/AddressVo
  24. 24 : */
  25. 25 :
  26. 26 : /**
  27. 27 : * <h3 style="color:red"> This class subject to change without prior notice, Please dont use this class directly. </h3>
  28. 28 :
  29. 29 : * Constructs a new <code>AddressVo</code>.
  30. 30 : * @alias module:models/AddressVo
  31. 31 : * @class
  32. 32 : */
  33. 33 : var exports = function() {
  34. 34 : var _this = this;
  35. 35 :
  36. 36 :
  37. 37 :
  38. 38 :
  39. 39 :
  40. 40 :
  41. 41 :
  42. 42 :
  43. 43 : };
  44. 44 :
  45. 45 : /**
  46. 46 : * Constructs a <code>AddressVo</code> from a plain JavaScript object, optionally creating a new instance.
  47. 47 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  48. 48 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  49. 49 : * @param {module:models/AddressVo} obj Optional instance to populate.
  50. 50 : * @return {module:models/AddressVo} The populated <code>AddressVo</code> instance.
  51. 51 : */
  52. 52 : exports.constructFromObject = function(data, obj) {
  53. 53 : if (data) {
  54. 54 : obj = obj || new exports();
  55. 55 :
  56. 56 : if (data.hasOwnProperty('address_line1')) {
  57. 57 : obj['address_line1'] = ApiClient.convertToType(data['address_line1'], 'String');
  58. 58 : }
  59. 59 : if (data.hasOwnProperty('address_line2')) {
  60. 60 : obj['address_line2'] = ApiClient.convertToType(data['address_line2'], 'String');
  61. 61 : }
  62. 62 : if (data.hasOwnProperty('address_city')) {
  63. 63 : obj['address_city'] = ApiClient.convertToType(data['address_city'], 'String');
  64. 64 : }
  65. 65 : if (data.hasOwnProperty('address_state')) {
  66. 66 : obj['address_state'] = ApiClient.convertToType(data['address_state'], 'String');
  67. 67 : }
  68. 68 : if (data.hasOwnProperty('address_country')) {
  69. 69 : obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String');
  70. 70 : }
  71. 71 : if (data.hasOwnProperty('address_zip1')) {
  72. 72 : obj['address_zip1'] = ApiClient.convertToType(data['address_zip1'], 'String');
  73. 73 : }
  74. 74 : if (data.hasOwnProperty('address_zip2')) {
  75. 75 : obj['address_zip2'] = ApiClient.convertToType(data['address_zip2'], 'String');
  76. 76 : }
  77. 77 : }
  78. 78 : return obj;
  79. 79 : };
  80. 80 :
  81. 81 : /**
  82. 82 : * Line one of the address.
  83. 83 : * @member {String} address_line1
  84. 84 : */
  85. 85 : exports.prototype['address_line1'] = undefined;
  86. 86 : /**
  87. 87 : * Line two of the address.
  88. 88 : * @member {String} address_line2
  89. 89 : */
  90. 90 : exports.prototype['address_line2'] = undefined;
  91. 91 : /**
  92. 92 : * City of the address.
  93. 93 : * @member {String} address_city
  94. 94 : */
  95. 95 : exports.prototype['address_city'] = undefined;
  96. 96 : /**
  97. 97 : * The state or province code as per ISO_3166-2.
  98. 98 : * @member {String} address_state
  99. 99 : */
  100. 100 : exports.prototype['address_state'] = undefined;
  101. 101 : /**
  102. 102 : * The 3 letter country code as per ISO 3166-1 (alpha-3).
  103. 103 : * @member {String} address_country
  104. 104 : */
  105. 105 : exports.prototype['address_country'] = undefined;
  106. 106 : /**
  107. 107 : * The first part of the postal code for the address as per the system followed in the appropriate country where it belongs.
  108. 108 : * @member {String} address_zip1
  109. 109 : */
  110. 110 : exports.prototype['address_zip1'] = undefined;
  111. 111 : /**
  112. 112 : * The 4 digit add-on code used, in addition to the 5 digit postal code, by the US Postal Service.
  113. 113 : * @member {String} address_zip2
  114. 114 : */
  115. 115 : exports.prototype['address_zip2'] = undefined;
  116. 116 :
  117. 117 :
  118. 118 :
  119. 119 : return exports;
  120. 120 : }));
  121. 121 :
  122. 122 :