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