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