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/FundingAccountMinimalRequest', 'models/PaymentScheduleMinimalRequest'], 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('./FundingAccountMinimalRequest'), require('./PaymentScheduleMinimalRequest'));
  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.UpdatePaymentSetupRequest = factory(root.OrbipayPaymentsapiClient.ApiClient, root.OrbipayPaymentsapiClient.FundingAccountMinimalRequest, root.OrbipayPaymentsapiClient.PaymentScheduleMinimalRequest);
  14. 14 : }
  15. 15 : }(this, function(ApiClient, FundingAccountMinimalRequest, PaymentScheduleMinimalRequest) {
  16. 16 : 'use strict';
  17. 17 :
  18. 18 :
  19. 19 :
  20. 20 :
  21. 21 : /**
  22. 22 : * The UpdatePaymentSetupRequest model module.
  23. 23 : * @module models/UpdatePaymentSetupRequest
  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>UpdatePaymentSetupRequest</code>.
  30. 30 : * @alias module:models/UpdatePaymentSetupRequest
  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 : * Constructs a <code>UpdatePaymentSetupRequest</code> from a plain JavaScript object, optionally creating a new instance.
  43. 43 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  44. 44 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  45. 45 : * @param {module:models/UpdatePaymentSetupRequest} obj Optional instance to populate.
  46. 46 : * @return {module:models/UpdatePaymentSetupRequest} The populated <code>UpdatePaymentSetupRequest</code> instance.
  47. 47 : */
  48. 48 : exports.constructFromObject = function(data, obj) {
  49. 49 : if (data) {
  50. 50 : obj = obj || new exports();
  51. 51 :
  52. 52 : if (data.hasOwnProperty('funding_account')) {
  53. 53 : obj['funding_account'] = FundingAccountMinimalRequest.constructFromObject(data['funding_account']);
  54. 54 : }
  55. 55 : if (data.hasOwnProperty('payment_schedule')) {
  56. 56 : obj['payment_schedule'] = PaymentScheduleMinimalRequest.constructFromObject(data['payment_schedule']);
  57. 57 : }
  58. 58 : if (data.hasOwnProperty('comments')) {
  59. 59 : obj['comments'] = ApiClient.convertToType(data['comments'], 'String');
  60. 60 : }
  61. 61 : }
  62. 62 : return obj;
  63. 63 : };
  64. 64 :
  65. 65 : /**
  66. 66 : * @member {module:models/FundingAccountMinimalRequest} funding_account
  67. 67 : */
  68. 68 : exports.prototype['funding_account'] = undefined;
  69. 69 : /**
  70. 70 : * @member {module:models/PaymentScheduleMinimalRequest} payment_schedule
  71. 71 : */
  72. 72 : exports.prototype['payment_schedule'] = undefined;
  73. 73 : /**
  74. 74 : * Comments that can be used to recollect the operation performed on the resource object.
  75. 75 : * @member {String} comments
  76. 76 : */
  77. 77 : exports.prototype['comments'] = undefined;
  78. 78 :
  79. 79 :
  80. 80 :
  81. 81 : return exports;
  82. 82 : }));
  83. 83 :
  84. 84 :