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