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/AuditInfoVo', 'models/CustomerAccountSnapshotResponse', 'models/CustomerSnapshotResponse', 'models/FeeResponse', 'models/FundingAccountSnapshotResponse', 'models/PaymentNetworkResponseVo', 'models/PaymentScheduleVo'], 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('./AuditInfoVo'), require('./CustomerAccountSnapshotResponse'), require('./CustomerSnapshotResponse'), require('./FeeResponse'), require('./FundingAccountSnapshotResponse'), require('./PaymentNetworkResponseVo'), require('./PaymentScheduleVo'));
  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.PaymentSetupResponseCgen = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.AuditInfoVo, root.OrbipayPaymentsapiClient.CustomerAccountSnapshotResponse, root.OrbipayPaymentsapiClient.CustomerSnapshotResponse, root.OrbipayPaymentsapiClient.FeeResponse, root.OrbipayPaymentsapiClient.FundingAccountSnapshotResponse, root.OrbipayPaymentsapiClient.PaymentNetworkResponseVo, root.OrbipayPaymentsapiClient.PaymentScheduleVo);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, AuditInfoVo, CustomerAccountSnapshotResponse, CustomerSnapshotResponse, FeeResponse, FundingAccountSnapshotResponse, PaymentNetworkResponseVo, PaymentScheduleVo) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The PaymentSetupResponseCgen model module.
  23. 23 : * @module models/PaymentSetupResponseCgen
  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>PaymentSetupResponseCgen</code>.
  30. 30 : * @alias module:models/PaymentSetupResponseCgen
  31. 31 : * @class
  32. 32 : */
  33. 33 : var exports = function() {
  34. 34 : var _this = this;
  35. 35 :
  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 :
  51. 51 :
  52. 52 :
  53. 53 :
  54. 54 :
  55. 55 :
  56. 56 :
  57. 57 :
  58. 58 : };
  59. 59 :
  60. 60 : /**
  61. 61 : * Constructs a <code>PaymentSetupResponseCgen</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/PaymentSetupResponseCgen} obj Optional instance to populate.
  65. 65 : * @return {module:models/PaymentSetupResponseCgen} The populated <code>PaymentSetupResponseCgen</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('id')) {
  72. 72 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  73. 73 : }
  74. 74 : if (data.hasOwnProperty('url')) {
  75. 75 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  76. 76 : }
  77. 77 : if (data.hasOwnProperty('fee')) {
  78. 78 : obj['fee'] = FeeResponse.constructFromObject(data['fee']);
  79. 79 : }
  80. 80 : if (data.hasOwnProperty('status')) {
  81. 81 : obj['status'] = ApiClient.convertToType(data['status'], 'String');
  82. 82 : }
  83. 83 : if (data.hasOwnProperty('payment_method')) {
  84. 84 : obj['payment_method'] = ApiClient.convertToType(data['payment_method'], 'String');
  85. 85 : }
  86. 86 : if (data.hasOwnProperty('payment_setup_schedule_type')) {
  87. 87 : obj['payment_setup_schedule_type'] = ApiClient.convertToType(data['payment_setup_schedule_type'], 'String');
  88. 88 : }
  89. 89 : if (data.hasOwnProperty('confirmation_number')) {
  90. 90 : obj['confirmation_number'] = ApiClient.convertToType(data['confirmation_number'], 'String');
  91. 91 : }
  92. 92 : if (data.hasOwnProperty('custom_fields')) {
  93. 93 : obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], {'String': 'String'});
  94. 94 : }
  95. 95 : if (data.hasOwnProperty('currency_code3d')) {
  96. 96 : obj['currency_code3d'] = ApiClient.convertToType(data['currency_code3d'], 'String');
  97. 97 : }
  98. 98 : if (data.hasOwnProperty('amount')) {
  99. 99 : obj['amount'] = ApiClient.convertToType(data['amount'], 'String');
  100. 100 : }
  101. 101 : if (data.hasOwnProperty('card_cvv_number')) {
  102. 102 : obj['card_cvv_number'] = ApiClient.convertToType(data['card_cvv_number'], 'String');
  103. 103 : }
  104. 104 : if (data.hasOwnProperty('next_payment_date')) {
  105. 105 : obj['next_payment_date'] = ApiClient.convertToType(data['next_payment_date'], 'String');
  106. 106 : }
  107. 107 : if (data.hasOwnProperty('payment_setup_reference')) {
  108. 108 : obj['payment_setup_reference'] = ApiClient.convertToType(data['payment_setup_reference'], 'String');
  109. 109 : }
  110. 110 : if (data.hasOwnProperty('payment_schedule')) {
  111. 111 : obj['payment_schedule'] = PaymentScheduleVo.constructFromObject(data['payment_schedule']);
  112. 112 : }
  113. 113 : if (data.hasOwnProperty('payment_setup_entry_date')) {
  114. 114 : obj['payment_setup_entry_date'] = ApiClient.convertToType(data['payment_setup_entry_date'], 'String');
  115. 115 : }
  116. 116 : if (data.hasOwnProperty('comments')) {
  117. 117 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  118. 118 : }
  119. 119 : if (data.hasOwnProperty('deleted')) {
  120. 120 : obj['deleted'] = ApiClient.convertToType(data['deleted'], 'String');
  121. 121 : }
  122. 122 : if (data.hasOwnProperty('customer')) {
  123. 123 : obj['customer'] = CustomerSnapshotResponse.constructFromObject(data['customer']);
  124. 124 : }
  125. 125 : if (data.hasOwnProperty('funding_account')) {
  126. 126 : obj['funding_account'] = FundingAccountSnapshotResponse.constructFromObject(data['funding_account']);
  127. 127 : }
  128. 128 : if (data.hasOwnProperty('customer_account')) {
  129. 129 : obj['customer_account'] = CustomerAccountSnapshotResponse.constructFromObject(data['customer_account']);
  130. 130 : }
  131. 131 : if (data.hasOwnProperty('payment_network_response')) {
  132. 132 : obj['payment_network_response'] = PaymentNetworkResponseVo.constructFromObject(data['payment_network_response']);
  133. 133 : }
  134. 134 : if (data.hasOwnProperty('audit_info')) {
  135. 135 : obj['audit_info'] = AuditInfoVo.constructFromObject(data['audit_info']);
  136. 136 : }
  137. 137 : }
  138. 138 : return obj;
  139. 139 : };
  140. 140 :
  141. 141 : /**
  142. 142 : * The unique identifier assigned by Orbipay to the payment setup.
  143. 143 : * @member {String} id
  144. 144 : */
  145. 145 : exports.prototype['id'] = undefined;
  146. 146 : /**
  147. 147 : * This URL fetches the details of payment setup.
  148. 148 : * @member {String} url
  149. 149 : */
  150. 150 : exports.prototype['url'] = undefined;
  151. 151 : /**
  152. 152 : * @member {module:models/FeeResponse} fee
  153. 153 : */
  154. 154 : exports.prototype['fee'] = undefined;
  155. 155 : /**
  156. 156 : * The status of the payment.
  157. 157 : * @member {module:models/PaymentSetupResponseCgen.StatusEnum} status
  158. 158 : */
  159. 159 : exports.prototype['status'] = undefined;
  160. 160 : /**
  161. 161 : * The fulfillment method for the payment.
  162. 162 : * @member {module:models/PaymentSetupResponseCgen.PaymentMethodEnum} payment_method
  163. 163 : */
  164. 164 : exports.prototype['payment_method'] = undefined;
  165. 165 : /**
  166. 166 : * The schedule type for the payment setup.
  167. 167 : * @member {module:models/PaymentSetupResponseCgen.PaymentSetupScheduleTypeEnum} payment_setup_schedule_type
  168. 168 : */
  169. 169 : exports.prototype['payment_setup_schedule_type'] = undefined;
  170. 170 : /**
  171. 171 : * The confirmation number or reference provided to the customer for the payment setup.
  172. 172 : * @member {String} confirmation_number
  173. 173 : */
  174. 174 : exports.prototype['confirmation_number'] = undefined;
  175. 175 : /**
  176. 176 : * The additional information or meta-information that Orbipay can accept, maintain and transmit back to the client. The custom fields need to be configured with Orbipay before they can be accepted. Orbipay 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. Only the custom fields enabled for the client, in Orbipay, would be accepted in the requests.
  177. 177 : * @member {Object.<String, String>} custom_fields
  178. 178 : */
  179. 179 : exports.prototype['custom_fields'] = undefined;
  180. 180 : /**
  181. 181 : * The three-letter currency code in the ISO4217 format, in uppercase, for the card account. It must be a currency supported by Orbipay. This defaults to USD.
  182. 182 : * @member {String} currency_code3d
  183. 183 : */
  184. 184 : exports.prototype['currency_code3d'] = undefined;
  185. 185 : /**
  186. 186 : * The amount being paid. In case the payment_amount_type is 'discounted_amount', 'penalty_amount' or 'other', the amount needs to be specified. In other cases, this is derived from the payment_amount_type.
  187. 187 : * @member {String} amount
  188. 188 : */
  189. 189 : exports.prototype['amount'] = undefined;
  190. 190 : /**
  191. 191 : * This is never returned by Orbipay. This needs to be passed to Orbipay when making or editing a payment setup with a card funding account.
  192. 192 : * @member {String} card_cvv_number
  193. 193 : */
  194. 194 : exports.prototype['card_cvv_number'] = undefined;
  195. 195 : /**
  196. 196 : * The date on which the payment is scheduled to be made. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
  197. 197 : * @member {String} next_payment_date
  198. 198 : */
  199. 199 : exports.prototype['next_payment_date'] = undefined;
  200. 200 : /**
  201. 201 : * The unique identifier in the client system for the payment setup.
  202. 202 : * @member {String} payment_setup_reference
  203. 203 : */
  204. 204 : exports.prototype['payment_setup_reference'] = undefined;
  205. 205 : /**
  206. 206 : * @member {module:models/PaymentScheduleVo} payment_schedule
  207. 207 : */
  208. 208 : exports.prototype['payment_schedule'] = undefined;
  209. 209 : /**
  210. 210 : * The date on which the payment setup is captured in Orbipay. It must be in ISO8601 full-date format, namely, YYYY-MM-DD.
  211. 211 : * @member {String} payment_setup_entry_date
  212. 212 : */
  213. 213 : exports.prototype['payment_setup_entry_date'] = undefined;
  214. 214 : /**
  215. 215 : * 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 (Orbipay) is not responsible for the security of any sensitive information that may be passed as part of the memo.
  216. 216 : * @member {String} comments
  217. 217 : */
  218. 218 : exports.prototype['comments'] = undefined;
  219. 219 : /**
  220. 220 : * The status of payment which says whether the payment is deleted or not
  221. 221 : * @member {String} deleted
  222. 222 : */
  223. 223 : exports.prototype['deleted'] = undefined;
  224. 224 : /**
  225. 225 : * @member {module:models/CustomerSnapshotResponse} customer
  226. 226 : */
  227. 227 : exports.prototype['customer'] = undefined;
  228. 228 : /**
  229. 229 : * @member {module:models/FundingAccountSnapshotResponse} funding_account
  230. 230 : */
  231. 231 : exports.prototype['funding_account'] = undefined;
  232. 232 : /**
  233. 233 : * @member {module:models/CustomerAccountSnapshotResponse} customer_account
  234. 234 : */
  235. 235 : exports.prototype['customer_account'] = undefined;
  236. 236 : /**
  237. 237 : * @member {module:models/PaymentNetworkResponseVo} payment_network_response
  238. 238 : */
  239. 239 : exports.prototype['payment_network_response'] = undefined;
  240. 240 : /**
  241. 241 : * @member {module:models/AuditInfoVo} audit_info
  242. 242 : */
  243. 243 : exports.prototype['audit_info'] = undefined;
  244. 244 :
  245. 245 :
  246. 246 : /**
  247. 247 : * Allowed values for the <code>status</code> property.
  248. 248 : * @enum {String}
  249. 249 : * @readonly
  250. 250 : */
  251. 251 : exports.StatusEnum = {
  252. 252 : /**
  253. 253 : * value: "scheduled"
  254. 254 : * @const
  255. 255 : */
  256. 256 : "scheduled": "scheduled",
  257. 257 : /**
  258. 258 : * value: "cancelled"
  259. 259 : * @const
  260. 260 : */
  261. 261 : "cancelled": "cancelled",
  262. 262 : /**
  263. 263 : * value: "processing"
  264. 264 : * @const
  265. 265 : */
  266. 266 : "processing": "processing",
  267. 267 : /**
  268. 268 : * value: "processed"
  269. 269 : * @const
  270. 270 : */
  271. 271 : "processed": "processed",
  272. 272 : /**
  273. 273 : * value: "returned"
  274. 274 : * @const
  275. 275 : */
  276. 276 : "returned": "returned",
  277. 277 : /**
  278. 278 : * value: "declined"
  279. 279 : * @const
  280. 280 : */
  281. 281 : "declined": "declined",
  282. 282 : /**
  283. 283 : * value: "disputed"
  284. 284 : * @const
  285. 285 : */
  286. 286 : "disputed": "disputed",
  287. 287 : /**
  288. 288 : * value: "refunded"
  289. 289 : * @const
  290. 290 : */
  291. 291 : "refunded": "refunded" };
  292. 292 :
  293. 293 : /**
  294. 294 : * Allowed values for the <code>payment_method</code> property.
  295. 295 : * @enum {String}
  296. 296 : * @readonly
  297. 297 : */
  298. 298 : exports.PaymentMethodEnum = {
  299. 299 : /**
  300. 300 : * value: "ach"
  301. 301 : * @const
  302. 302 : */
  303. 303 : "ach": "ach",
  304. 304 : /**
  305. 305 : * value: "check"
  306. 306 : * @const
  307. 307 : */
  308. 308 : "check": "check",
  309. 309 : /**
  310. 310 : * value: "visa_debit"
  311. 311 : * @const
  312. 312 : */
  313. 313 : "visa_debit": "visa_debit",
  314. 314 : /**
  315. 315 : * value: "pinless_debit"
  316. 316 : * @const
  317. 317 : */
  318. 318 : "pinless_debit": "pinless_debit",
  319. 319 : /**
  320. 320 : * value: "master_debit"
  321. 321 : * @const
  322. 322 : */
  323. 323 : "master_debit": "master_debit",
  324. 324 : /**
  325. 325 : * value: "amex_credit"
  326. 326 : * @const
  327. 327 : */
  328. 328 : "amex_credit": "amex_credit",
  329. 329 : /**
  330. 330 : * value: "discover_credit"
  331. 331 : * @const
  332. 332 : */
  333. 333 : "discover_credit": "discover_credit",
  334. 334 : /**
  335. 335 : * value: "visa_credit"
  336. 336 : * @const
  337. 337 : */
  338. 338 : "visa_credit": "visa_credit",
  339. 339 : /**
  340. 340 : * value: "master_credit"
  341. 341 : * @const
  342. 342 : */
  343. 343 : "master_credit": "master_credit",
  344. 344 : /**
  345. 345 : * value: "cash"
  346. 346 : * @const
  347. 347 : */
  348. 348 : "cash": "cash",
  349. 349 : /**
  350. 350 : * value: "discover_debit"
  351. 351 : * @const
  352. 352 : */
  353. 353 : "discover_debit": "discover_debit" };
  354. 354 :
  355. 355 : /**
  356. 356 : * Allowed values for the <code>payment_setup_schedule_type</code> property.
  357. 357 : * @enum {String}
  358. 358 : * @readonly
  359. 359 : */
  360. 360 : exports.PaymentSetupScheduleTypeEnum = {
  361. 361 : /**
  362. 362 : * value: "variable_recurring_enrollment"
  363. 363 : * @const
  364. 364 : */
  365. 365 : "variable_recurring_enrollment": "variable_recurring_enrollment",
  366. 366 : /**
  367. 367 : * value: "autopay_enrollment"
  368. 368 : * @const
  369. 369 : */
  370. 370 : "autopay_enrollment": "autopay_enrollment",
  371. 371 : /**
  372. 372 : * value: "payment_plan"
  373. 373 : * @const
  374. 374 : */
  375. 375 : "payment_plan": "payment_plan" };
  376. 376 :
  377. 377 :
  378. 378 : return exports;
  379. 379 : }));
  380. 380 :
  381. 381 :