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.FundingAccountSnapshotResponse = 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 FundingAccountSnapshotResponse model module.
  23. 23 : * @module models/FundingAccountSnapshotResponse
  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>FundingAccountSnapshotResponse</code>.
  30. 30 : * The customer&#39;s funding account with which the payment is being made.
  31. 31 : * @alias module:models/FundingAccountSnapshotResponse
  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 : * Constructs a <code>FundingAccountSnapshotResponse</code> from a plain JavaScript object, optionally creating a new instance.
  49. 49 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  50. 50 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  51. 51 : * @param {module:models/FundingAccountSnapshotResponse} obj Optional instance to populate.
  52. 52 : * @return {module:models/FundingAccountSnapshotResponse} The populated <code>FundingAccountSnapshotResponse</code> instance.
  53. 53 : */
  54. 54 : exports.constructFromObject = function(data, obj) {
  55. 55 : if (data) {
  56. 56 : obj = obj || new exports();
  57. 57 :
  58. 58 : if (data.hasOwnProperty('id')) {
  59. 59 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  60. 60 : }
  61. 61 : if (data.hasOwnProperty('url')) {
  62. 62 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  63. 63 : }
  64. 64 : if (data.hasOwnProperty('account_number')) {
  65. 65 : obj['account_number'] = ApiClient.convertToType(data['account_number'], 'String');
  66. 66 : }
  67. 67 : if (data.hasOwnProperty('account_type')) {
  68. 68 : obj['account_type'] = ApiClient.convertToType(data['account_type'], 'String');
  69. 69 : }
  70. 70 : if (data.hasOwnProperty('account_subtype')) {
  71. 71 : obj['account_subtype'] = ApiClient.convertToType(data['account_subtype'], 'String');
  72. 72 : }
  73. 73 : if (data.hasOwnProperty('aba_routing_number')) {
  74. 74 : obj['aba_routing_number'] = ApiClient.convertToType(data['aba_routing_number'], 'String');
  75. 75 : }
  76. 76 : if (data.hasOwnProperty('issuer_name')) {
  77. 77 : obj['issuer_name'] = ApiClient.convertToType(data['issuer_name'], 'String');
  78. 78 : }
  79. 79 : if (data.hasOwnProperty('nickname')) {
  80. 80 : obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String');
  81. 81 : }
  82. 82 : }
  83. 83 : return obj;
  84. 84 : };
  85. 85 :
  86. 86 : /**
  87. 87 : * Id is a unique identifier assigned to the account in EBPP.
  88. 88 : * @member {String} id
  89. 89 : */
  90. 90 : exports.prototype['id'] = undefined;
  91. 91 : /**
  92. 92 : * This URL fetches the funding account details.
  93. 93 : * @member {String} url
  94. 94 : */
  95. 95 : exports.prototype['url'] = undefined;
  96. 96 : /**
  97. 97 : * The number or reference that a customer uses to identify the funding account.
  98. 98 : * @member {String} account_number
  99. 99 : */
  100. 100 : exports.prototype['account_number'] = undefined;
  101. 101 : /**
  102. 102 : * The type of the funding account.
  103. 103 : * @member {module:models/FundingAccountSnapshotResponse.AccountTypeEnum} account_type
  104. 104 : */
  105. 105 : exports.prototype['account_type'] = undefined;
  106. 106 : /**
  107. 107 : * The sub type of the funding account. This is derived by EBPP in the case of card funding accounts. It needs to be passed when adding or editing a DDA/bank account.
  108. 108 : * @member {module:models/FundingAccountSnapshotResponse.AccountSubtypeEnum} account_subtype
  109. 109 : */
  110. 110 : exports.prototype['account_subtype'] = undefined;
  111. 111 : /**
  112. 112 : * The ABA/Routing number for the bank account.
  113. 113 : * @member {String} aba_routing_number
  114. 114 : */
  115. 115 : exports.prototype['aba_routing_number'] = undefined;
  116. 116 : /**
  117. 117 : * The name of the authority that has issued the account. This is relevant only in the case of bank accounts.
  118. 118 : * @member {String} issuer_name
  119. 119 : */
  120. 120 : exports.prototype['issuer_name'] = undefined;
  121. 121 : /**
  122. 122 : * The nickname by which a customer might want to identify the account.
  123. 123 : * @member {String} nickname
  124. 124 : */
  125. 125 : exports.prototype['nickname'] = undefined;
  126. 126 :
  127. 127 :
  128. 128 : /**
  129. 129 : * Allowed values for the <code>account_type</code> property.
  130. 130 : * @enum {String}
  131. 131 : * @readonly
  132. 132 : */
  133. 133 : exports.AccountTypeEnum = {
  134. 134 : /**
  135. 135 : * value: "bank"
  136. 136 : * @const
  137. 137 : */
  138. 138 : "bank": "bank",
  139. 139 : /**
  140. 140 : * value: "debit_card"
  141. 141 : * @const
  142. 142 : */
  143. 143 : "debit_card": "debit_card",
  144. 144 : /**
  145. 145 : * value: "credit_card"
  146. 146 : * @const
  147. 147 : */
  148. 148 : "credit_card": "credit_card" };
  149. 149 :
  150. 150 : /**
  151. 151 : * Allowed values for the <code>account_subtype</code> property.
  152. 152 : * @enum {String}
  153. 153 : * @readonly
  154. 154 : */
  155. 155 : exports.AccountSubtypeEnum = {
  156. 156 : /**
  157. 157 : * value: "savings"
  158. 158 : * @const
  159. 159 : */
  160. 160 : "savings": "savings",
  161. 161 : /**
  162. 162 : * value: "checking"
  163. 163 : * @const
  164. 164 : */
  165. 165 : "checking": "checking",
  166. 166 : /**
  167. 167 : * value: "money_market"
  168. 168 : * @const
  169. 169 : */
  170. 170 : "money_market": "money_market",
  171. 171 : /**
  172. 172 : * value: "visa_credit"
  173. 173 : * @const
  174. 174 : */
  175. 175 : "visa_credit": "visa_credit",
  176. 176 : /**
  177. 177 : * value: "mastercard_credit"
  178. 178 : * @const
  179. 179 : */
  180. 180 : "mastercard_credit": "mastercard_credit",
  181. 181 : /**
  182. 182 : * value: "american_express_credit"
  183. 183 : * @const
  184. 184 : */
  185. 185 : "american_express_credit": "american_express_credit",
  186. 186 : /**
  187. 187 : * value: "discover_credit"
  188. 188 : * @const
  189. 189 : */
  190. 190 : "discover_credit": "discover_credit",
  191. 191 : /**
  192. 192 : * value: "visa_debit"
  193. 193 : * @const
  194. 194 : */
  195. 195 : "visa_debit": "visa_debit",
  196. 196 : /**
  197. 197 : * value: "mastercard_debit"
  198. 198 : * @const
  199. 199 : */
  200. 200 : "mastercard_debit": "mastercard_debit",
  201. 201 : /**
  202. 202 : * value: "discover_debit"
  203. 203 : * @const
  204. 204 : */
  205. 205 : "discover_debit": "discover_debit" };
  206. 206 :
  207. 207 :
  208. 208 : return exports;
  209. 209 : }));
  210. 210 :
  211. 211 :