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', 'models/AddressVo', 'models/AuditInfoVo'], 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'), require('./AddressVo'), require('./AuditInfoVo'));
  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.SimplePaymentCustomerResponse = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AddressVo, root.OrbipayPaymentsapiClient.AuditInfoVo);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, AddressVo, AuditInfoVo) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The SimplePaymentCustomerResponse model module.
  23. 23 : * @module models/SimplePaymentCustomerResponse
  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>SimplePaymentCustomerResponse</code>.
  30. 30 : * @alias module:models/SimplePaymentCustomerResponse
  31. 31 : * @class
  32. 32 : * @param id {String} The unique identifier assigned by EBPP to the customer.
  33. 33 : * @param status {module:models/SimplePaymentCustomerResponse.StatusEnum} The status of the customer in EBPP.
  34. 34 : */
  35. 35 : var exports = function(id, status) {
  36. 36 : var _this = this;
  37. 37 :
  38. 38 :
  39. 39 :
  40. 40 :
  41. 41 :
  42. 42 :
  43. 43 :
  44. 44 :
  45. 45 :
  46. 46 :
  47. 47 :
  48. 48 :
  49. 49 :
  50. 50 :
  51. 51 :
  52. 52 :
  53. 53 : _this['id'] = id;
  54. 54 : _this['status'] = status;
  55. 55 :
  56. 56 :
  57. 57 :
  58. 58 : };
  59. 59 :
  60. 60 : /**
  61. 61 : * Constructs a <code>SimplePaymentCustomerResponse</code> from a plain JavaScript object, optionally creating a new instance.
  62. 62 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  63. 63 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  64. 64 : * @param {module:models/SimplePaymentCustomerResponse} obj Optional instance to populate.
  65. 65 : * @return {module:models/SimplePaymentCustomerResponse} The populated <code>SimplePaymentCustomerResponse</code> instance.
  66. 66 : */
  67. 67 : exports.constructFromObject = function(data, obj) {
  68. 68 : if (data) {
  69. 69 : obj = obj || new exports();
  70. 70 :
  71. 71 : if (data.hasOwnProperty('first_name')) {
  72. 72 : obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String');
  73. 73 : }
  74. 74 : if (data.hasOwnProperty('last_name')) {
  75. 75 : obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String');
  76. 76 : }
  77. 77 : if (data.hasOwnProperty('middle_name')) {
  78. 78 : obj['middle_name'] = ApiClient.convertToType(data['middle_name'], 'String');
  79. 79 : }
  80. 80 : if (data.hasOwnProperty('gender')) {
  81. 81 : obj['gender'] = ApiClient.convertToType(data['gender'], 'String');
  82. 82 : }
  83. 83 : if (data.hasOwnProperty('date_of_birth')) {
  84. 84 : obj['date_of_birth'] = ApiClient.convertToType(data['date_of_birth'], 'String');
  85. 85 : }
  86. 86 : if (data.hasOwnProperty('ssn')) {
  87. 87 : obj['ssn'] = ApiClient.convertToType(data['ssn'], 'String');
  88. 88 : }
  89. 89 : if (data.hasOwnProperty('locale')) {
  90. 90 : obj['locale'] = ApiClient.convertToType(data['locale'], 'String');
  91. 91 : }
  92. 92 : if (data.hasOwnProperty('email')) {
  93. 93 : obj['email'] = ApiClient.convertToType(data['email'], 'String');
  94. 94 : }
  95. 95 : if (data.hasOwnProperty('registered_email')) {
  96. 96 : obj['registered_email'] = ApiClient.convertToType(data['registered_email'], 'String');
  97. 97 : }
  98. 98 : if (data.hasOwnProperty('home_phone')) {
  99. 99 : obj['home_phone'] = ApiClient.convertToType(data['home_phone'], 'String');
  100. 100 : }
  101. 101 : if (data.hasOwnProperty('work_phone')) {
  102. 102 : obj['work_phone'] = ApiClient.convertToType(data['work_phone'], 'String');
  103. 103 : }
  104. 104 : if (data.hasOwnProperty('mobile_phone')) {
  105. 105 : obj['mobile_phone'] = ApiClient.convertToType(data['mobile_phone'], 'String');
  106. 106 : }
  107. 107 : if (data.hasOwnProperty('address')) {
  108. 108 : obj['address'] = AddressVo.constructFromObject(data['address']);
  109. 109 : }
  110. 110 : if (data.hasOwnProperty('custom_fields')) {
  111. 111 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  112. 112 : }
  113. 113 : if (data.hasOwnProperty('customer_reference')) {
  114. 114 : obj['customer_reference'] = ApiClient.convertToType(data['customer_reference'], 'String');
  115. 115 : }
  116. 116 : if (data.hasOwnProperty('id')) {
  117. 117 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  118. 118 : }
  119. 119 : if (data.hasOwnProperty('status')) {
  120. 120 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  121. 121 : }
  122. 122 : if (data.hasOwnProperty('url')) {
  123. 123 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  124. 124 : }
  125. 125 : if (data.hasOwnProperty('audit_info')) {
  126. 126 : obj['audit_info'] = AuditInfoVo.constructFromObject(data['audit_info']);
  127. 127 : }
  128. 128 : if (data.hasOwnProperty('comments')) {
  129. 129 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  130. 130 : }
  131. 131 : }
  132. 132 : return obj;
  133. 133 : };
  134. 134 :
  135. 135 : /**
  136. 136 : * The first name of the customer.
  137. 137 : * @member {String} first_name
  138. 138 : */
  139. 139 : exports.prototype['first_name'] = undefined;
  140. 140 : /**
  141. 141 : * The last name of the customer.
  142. 142 : * @member {String} last_name
  143. 143 : */
  144. 144 : exports.prototype['last_name'] = undefined;
  145. 145 : /**
  146. 146 : * The middle name of the customer.
  147. 147 : * @member {String} middle_name
  148. 148 : */
  149. 149 : exports.prototype['middle_name'] = undefined;
  150. 150 : /**
  151. 151 : * The gender of the customer.
  152. 152 : * @member {module:models/SimplePaymentCustomerResponse.GenderEnum} gender
  153. 153 : */
  154. 154 : exports.prototype['gender'] = undefined;
  155. 155 : /**
  156. 156 : * The date of birth of the customer. It should be in the full-date format as per ISO8601, namely, YYYY-MM-DD.
  157. 157 : * @member {String} date_of_birth
  158. 158 : */
  159. 159 : exports.prototype['date_of_birth'] = undefined;
  160. 160 : /**
  161. 161 : * The SSN of the customer if the account holder is an individual or the tax ID, if the customer is a business.
  162. 162 : * @member {String} ssn
  163. 163 : */
  164. 164 : exports.prototype['ssn'] = undefined;
  165. 165 : /**
  166. 166 : * The language in which the customer wants the alerts and notifications from EBPP. This is to be specified in the format,<br><i>< <b>ISO-639-1 language code</b> >_< <b>ISO ALPHA-2 Country Code</b> ></i>.<br> For e.g., <b>en_US</b> indicates the language preference as US English, which is also the default value.
  167. 167 : * @member {String} locale
  168. 168 : */
  169. 169 : exports.prototype['locale'] = undefined;
  170. 170 : /**
  171. 171 : * 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.
  172. 172 : * @member {String} email
  173. 173 : */
  174. 174 : exports.prototype['email'] = undefined;
  175. 175 : /**
  176. 176 : * The email address of the customer registered with the client. This may be used to uniquely identify the customer if the client is set up accordingly in EBPP.
  177. 177 : * @member {String} registered_email
  178. 178 : */
  179. 179 : exports.prototype['registered_email'] = undefined;
  180. 180 : /**
  181. 181 : * The home phone number of the customer.
  182. 182 : * @member {String} home_phone
  183. 183 : */
  184. 184 : exports.prototype['home_phone'] = undefined;
  185. 185 : /**
  186. 186 : * The work phone number of the customer.
  187. 187 : * @member {String} work_phone
  188. 188 : */
  189. 189 : exports.prototype['work_phone'] = undefined;
  190. 190 : /**
  191. 191 : * The mobile phone number of the customer.
  192. 192 : * @member {String} mobile_phone
  193. 193 : */
  194. 194 : exports.prototype['mobile_phone'] = undefined;
  195. 195 : /**
  196. 196 : * @member {module:models/AddressVo} address
  197. 197 : */
  198. 198 : exports.prototype['address'] = undefined;
  199. 199 : /**
  200. 200 : * The additional information or meta-information that EBPP can accept, maintain and transmit back to the client. The custom fields need to be configured with EBPP before they can be accepted. EBPP would reject custom fields that are not pre-configured. Please contact <a href = \"mailto: support@billerpayments.com\">support@billerpayments.com</a> for more information on configuring and using custom fields.
  201. 201 : * @member {Object.<String, String>} custom_fields
  202. 202 : */
  203. 203 : exports.prototype['custom_fields'] = undefined;
  204. 204 : /**
  205. 205 : * The unique identifier in the client system for the customer.
  206. 206 : * @member {String} customer_reference
  207. 207 : */
  208. 208 : exports.prototype['customer_reference'] = undefined;
  209. 209 : /**
  210. 210 : * The unique identifier assigned by EBPP to the customer.
  211. 211 : * @member {String} id
  212. 212 : */
  213. 213 : exports.prototype['id'] = undefined;
  214. 214 : /**
  215. 215 : * The status of the customer in EBPP.
  216. 216 : * @member {module:models/SimplePaymentCustomerResponse.StatusEnum} status
  217. 217 : */
  218. 218 : exports.prototype['status'] = undefined;
  219. 219 : /**
  220. 220 : * This URL fetches the Customer details.
  221. 221 : * @member {String} url
  222. 222 : */
  223. 223 : exports.prototype['url'] = undefined;
  224. 224 : /**
  225. 225 : * @member {module:models/AuditInfoVo} audit_info
  226. 226 : */
  227. 227 : exports.prototype['audit_info'] = undefined;
  228. 228 : /**
  229. 229 : * Comments that can be used to recollect the operation performed on the resource object. API clients need to ensure that no sensitive information is passed in the memo. Alacriti (EBPP) is not responsible for the security of any sensitive information that may be passed as part of the memo.
  230. 230 : * @member {String} comments
  231. 231 : */
  232. 232 : exports.prototype['comments'] = undefined;
  233. 233 :
  234. 234 :
  235. 235 : /**
  236. 236 : * Allowed values for the <code>gender</code> property.
  237. 237 : * @enum {String}
  238. 238 : * @readonly
  239. 239 : */
  240. 240 : exports.GenderEnum = {
  241. 241 : /**
  242. 242 : * value: "male"
  243. 243 : * @const
  244. 244 : */
  245. 245 : "male": "male",
  246. 246 : /**
  247. 247 : * value: "female"
  248. 248 : * @const
  249. 249 : */
  250. 250 : "female": "female" };
  251. 251 :
  252. 252 : /**
  253. 253 : * Allowed values for the <code>status</code> property.
  254. 254 : * @enum {String}
  255. 255 : * @readonly
  256. 256 : */
  257. 257 : exports.StatusEnum = {
  258. 258 : /**
  259. 259 : * value: "active"
  260. 260 : * @const
  261. 261 : */
  262. 262 : "active": "active",
  263. 263 : /**
  264. 264 : * value: "disabled"
  265. 265 : * @const
  266. 266 : */
  267. 267 : "disabled": "disabled",
  268. 268 : /**
  269. 269 : * value: "voluntary_cancellation"
  270. 270 : * @const
  271. 271 : */
  272. 272 : "voluntary_cancellation": "voluntary_cancellation",
  273. 273 : /**
  274. 274 : * value: "revoked"
  275. 275 : * @const
  276. 276 : */
  277. 277 : "revoked": "revoked",
  278. 278 : /**
  279. 279 : * value: "suspended"
  280. 280 : * @const
  281. 281 : */
  282. 282 : "suspended": "suspended",
  283. 283 : /**
  284. 284 : * value: "inactive"
  285. 285 : * @const
  286. 286 : */
  287. 287 : "inactive": "inactive" };
  288. 288 :
  289. 289 :
  290. 290 : return exports;
  291. 291 : }));
  292. 292 :
  293. 293 :