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.FeeResponse = 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 FeeResponse model module.
  23. 23 : * @module models/FeeResponse
  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>FeeResponse</code>.
  30. 30 : * @alias module:models/FeeResponse
  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 : * Constructs a <code>FeeResponse</code> from a plain JavaScript object, optionally creating a new instance.
  44. 44 : * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
  45. 45 : * @param {Object} data The plain JavaScript object bearing properties of interest.
  46. 46 : * @param {module:models/FeeResponse} obj Optional instance to populate.
  47. 47 : * @return {module:models/FeeResponse} The populated <code>FeeResponse</code> instance.
  48. 48 : */
  49. 49 : exports.constructFromObject = function(data, obj) {
  50. 50 : if (data) {
  51. 51 : obj = obj || new exports();
  52. 52 :
  53. 53 : if (data.hasOwnProperty('fee_type')) {
  54. 54 : obj['fee_type'] = ApiClient.convertToType(data['fee_type'], 'String');
  55. 55 : }
  56. 56 : if (data.hasOwnProperty('fee_amount')) {
  57. 57 : obj['fee_amount'] = ApiClient.convertToType(data['fee_amount'], 'String');
  58. 58 : }
  59. 59 : if (data.hasOwnProperty('id')) {
  60. 60 : obj['id'] = ApiClient.convertToType(data['id'], 'String');
  61. 61 : }
  62. 62 : if (data.hasOwnProperty('url')) {
  63. 63 : obj['url'] = ApiClient.convertToType(data['url'], 'String');
  64. 64 : }
  65. 65 : }
  66. 66 : return obj;
  67. 67 : };
  68. 68 :
  69. 69 : /**
  70. 70 : * The way the fee is being charged to the customer. Fee could be added to the amount being paid, or, it could be charged separately by the biller. The fee_type would default to add_to_principal if the fee is not configured for the client in EBPP.
  71. 71 : * @member {module:models/FeeResponse.FeeTypeEnum} fee_type
  72. 72 : */
  73. 73 : exports.prototype['fee_type'] = undefined;
  74. 74 : /**
  75. 75 : * The fee amount upto 2 decimal places.
  76. 76 : * @member {String} fee_amount
  77. 77 : */
  78. 78 : exports.prototype['fee_amount'] = undefined;
  79. 79 : /**
  80. 80 : * The unique identifier assigned by EBPP to the fee. In case of split fee.
  81. 81 : * @member {String} id
  82. 82 : */
  83. 83 : exports.prototype['id'] = undefined;
  84. 84 : /**
  85. 85 : * This URL fetches the details of fee as a payment resource. In case of split fee.
  86. 86 : * @member {String} url
  87. 87 : */
  88. 88 : exports.prototype['url'] = undefined;
  89. 89 :
  90. 90 :
  91. 91 : /**
  92. 92 : * Allowed values for the <code>fee_type</code> property.
  93. 93 : * @enum {String}
  94. 94 : * @readonly
  95. 95 : */
  96. 96 : exports.FeeTypeEnum = {
  97. 97 : /**
  98. 98 : * value: "add_to_principal"
  99. 99 : * @const
  100. 100 : */
  101. 101 : "add_to_principal": "add_to_principal",
  102. 102 : /**
  103. 103 : * value: "bill_separately"
  104. 104 : * @const
  105. 105 : */
  106. 106 : "bill_separately": "bill_separately" };
  107. 107 :
  108. 108 :
  109. 109 : return exports;
  110. 110 : }));
  111. 111 :
  112. 112 :