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/FundingAccountSnapshotResponse', 'models/SourcePaymentCustomer', 'models/SourcePaymentCustomerAccount'], 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('./FundingAccountSnapshotResponse'), require('./SourcePaymentCustomer'), require('./SourcePaymentCustomerAccount'));
  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.SourcePayment = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.FundingAccountSnapshotResponse, root.OrbipayPaymentsapiClient.SourcePaymentCustomer, root.OrbipayPaymentsapiClient.SourcePaymentCustomerAccount);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, FundingAccountSnapshotResponse, SourcePaymentCustomer, SourcePaymentCustomerAccount) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The SourcePayment model module.
  23. 23 : * @module models/SourcePayment
  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>SourcePayment</code>.
  30. 30 : * @alias module:models/SourcePayment
  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 : * Constructs a <code>SourcePayment</code> from a plain JavaScript object, optionally creating a new instance.
  45. 45 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  46. 46 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  47. 47 : * @param {module:models/SourcePayment} obj Optional instance to populate.
  48. 48 : * @return {module:models/SourcePayment} The populated <code>SourcePayment</code> instance.
  49. 49 : */
  50. 50 : exports.constructFromObject = function(data, obj) {
  51. 51 : if (data) {
  52. 52 : obj = obj || new exports();
  53. 53 :
  54. 54 : if (data.hasOwnProperty('id')) {
  55. 55 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  56. 56 : }
  57. 57 : if (data.hasOwnProperty('url')) {
  58. 58 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  59. 59 : }
  60. 60 : if (data.hasOwnProperty('customer')) {
  61. 61 : obj['customer'] = SourcePaymentCustomer.constructFromObject(data['customer']);
  62. 62 : }
  63. 63 : if (data.hasOwnProperty('customer_account')) {
  64. 64 : obj['customer_account'] = SourcePaymentCustomerAccount.constructFromObject(data['customer_account']);
  65. 65 : }
  66. 66 : if (data.hasOwnProperty('funding_account')) {
  67. 67 : obj['funding_account'] = FundingAccountSnapshotResponse.constructFromObject(data['funding_account']);
  68. 68 : }
  69. 69 : }
  70. 70 : return obj;
  71. 71 : };
  72. 72 :
  73. 73 : /**
  74. 74 : * @member {String} id
  75. 75 : */
  76. 76 : exports.prototype['id'] = undefined;
  77. 77 : /**
  78. 78 : * This URL fetches the details of source payment.
  79. 79 : * @member {String} url
  80. 80 : */
  81. 81 : exports.prototype['url'] = undefined;
  82. 82 : /**
  83. 83 : * @member {module:models/SourcePaymentCustomer} customer
  84. 84 : */
  85. 85 : exports.prototype['customer'] = undefined;
  86. 86 : /**
  87. 87 : * @member {module:models/SourcePaymentCustomerAccount} customer_account
  88. 88 : */
  89. 89 : exports.prototype['customer_account'] = undefined;
  90. 90 : /**
  91. 91 : * @member {module:models/FundingAccountSnapshotResponse} funding_account
  92. 92 : */
  93. 93 : exports.prototype['funding_account'] = undefined;
  94. 94 :
  95. 95 :
  96. 96 :
  97. 97 : return exports;
  98. 98 : }));
  99. 99 :
  100. 100 :