- 1 :
(function(root, factory) {
- 2 :
if (typeof define === 'function' && define.amd) {
- 3 :
// AMD. Register as an anonymous module.
- 4 :
define(['ApiClient', 'models/AddressVo'], 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'), require('./AddressVo'));
- 8 :
} else {
- 9 :
// Browser globals (root is window)
- 10 :
if (!root.OrbipayPaymentsapiClient) {
- 11 :
root.OrbipayPaymentsapiClient = {};
- 12 :
}
- 13 :
root.OrbipayPaymentsapiClient.CustomerSnapshotResponse = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo);
- 14 :
}
- 15 :
}(this, function(ApiClient, AddressVo) {
- 16 :
'use strict';
- 17 :
- 18 :
- 19 :
- 20 :
- 21 :
/**
- 22 :
* The CustomerSnapshotResponse model module.
- 23 :
* @module models/CustomerSnapshotResponse
- 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>CustomerSnapshotResponse</code>.
- 30 :
* The customer making the payment
- 31 :
* @alias module:models/CustomerSnapshotResponse
- 32 :
* @class
- 33 :
*/
- 34 :
var exports = function() {
- 35 :
var _this = this;
- 36 :
- 37 :
- 38 :
- 39 :
- 40 :
- 41 :
- 42 :
- 43 :
- 44 :
- 45 :
- 46 :
};
- 47 :
- 48 :
/**
- 49 :
* Constructs a <code>CustomerSnapshotResponse</code> from a plain JavaScript object, optionally creating a new instance.
- 50 :
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
- 51 :
* @param {Object} data The plain JavaScript object bearing properties of interest.
- 52 :
* @param {module:models/CustomerSnapshotResponse} obj Optional instance to populate.
- 53 :
* @return {module:models/CustomerSnapshotResponse} The populated <code>CustomerSnapshotResponse</code> instance.
- 54 :
*/
- 55 :
exports.constructFromObject = function(data, obj) {
- 56 :
if (data) {
- 57 :
obj = obj || new exports();
- 58 :
- 59 :
if (data.hasOwnProperty('id')) {
- 60 :
obj['id'] = ApiClient.convertToType(data['id'], 'String');
- 61 :
}
- 62 :
if (data.hasOwnProperty('url')) {
- 63 :
obj['url'] = ApiClient.convertToType(data['url'], 'String');
- 64 :
}
- 65 :
if (data.hasOwnProperty('customer_reference')) {
- 66 :
obj['customer_reference'] = ApiClient.convertToType(data['customer_reference'], 'String');
- 67 :
}
- 68 :
if (data.hasOwnProperty('first_name')) {
- 69 :
obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String');
- 70 :
}
- 71 :
if (data.hasOwnProperty('last_name')) {
- 72 :
obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String');
- 73 :
}
- 74 :
if (data.hasOwnProperty('middle_name')) {
- 75 :
obj['middle_name'] = ApiClient.convertToType(data['middle_name'], 'String');
- 76 :
}
- 77 :
if (data.hasOwnProperty('email')) {
- 78 :
obj['email'] = ApiClient.convertToType(data['email'], 'String');
- 79 :
}
- 80 :
if (data.hasOwnProperty('home_phone')) {
- 81 :
obj['home_phone'] = ApiClient.convertToType(data['home_phone'], 'String');
- 82 :
}
- 83 :
if (data.hasOwnProperty('address')) {
- 84 :
obj['address'] = AddressVo.constructFromObject(data['address']);
- 85 :
}
- 86 :
}
- 87 :
return obj;
- 88 :
};
- 89 :
- 90 :
/**
- 91 :
* The unique identifier assigned by EBPP to the customer.
- 92 :
* @member {String} id
- 93 :
*/
- 94 :
exports.prototype['id'] = undefined;
- 95 :
/**
- 96 :
* The URL that can be used to fetch the details of the customer.
- 97 :
* @member {String} url
- 98 :
*/
- 99 :
exports.prototype['url'] = undefined;
- 100 :
/**
- 101 :
* The unique identifier in the client system for the customer.
- 102 :
* @member {String} customer_reference
- 103 :
*/
- 104 :
exports.prototype['customer_reference'] = undefined;
- 105 :
/**
- 106 :
* The first name of the customer.
- 107 :
* @member {String} first_name
- 108 :
*/
- 109 :
exports.prototype['first_name'] = undefined;
- 110 :
/**
- 111 :
* The last name of the customer.
- 112 :
* @member {String} last_name
- 113 :
*/
- 114 :
exports.prototype['last_name'] = undefined;
- 115 :
/**
- 116 :
* The middle initial of the customer.
- 117 :
* @member {String} middle_name
- 118 :
*/
- 119 :
exports.prototype['middle_name'] = undefined;
- 120 :
/**
- 121 :
* The email address of the customer to which notifications from EBPP will be sent. This will default to the registered_email while creating a customer.
- 122 :
* @member {String} email
- 123 :
*/
- 124 :
exports.prototype['email'] = undefined;
- 125 :
/**
- 126 :
* The home phone number of the customer.
- 127 :
* @member {String} home_phone
- 128 :
*/
- 129 :
exports.prototype['home_phone'] = undefined;
- 130 :
/**
- 131 :
* @member {module:models/AddressVo} address
- 132 :
*/
- 133 :
exports.prototype['address'] = undefined;
- 134 :
- 135 :
- 136 :
- 137 :
return exports;
- 138 :
}));
- 139 :
- 140 :