@cobo/cobo-waas2 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +45 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +6 -6
  4. package/dist/api/FeeStationApi.js +47 -4
  5. package/dist/api/PaymentApi.js +194 -47
  6. package/dist/api/SwapsApi.js +374 -0
  7. package/dist/api/TransactionsApi.js +4 -4
  8. package/dist/index.js +224 -14
  9. package/dist/model/AddressInfo.js +13 -0
  10. package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
  11. package/dist/model/BridgingFee.js +136 -0
  12. package/dist/model/CommissionFee.js +110 -0
  13. package/dist/model/ContractCallDestination.js +48 -8
  14. package/dist/model/ContractCallDestinationType.js +5 -0
  15. package/dist/model/CreateMerchantRequest.js +13 -6
  16. package/dist/model/CreatePaymentOrderRequest.js +14 -1
  17. package/dist/model/CreateSettlement.js +2 -2
  18. package/dist/model/CreateSettlementRequestRequest.js +39 -0
  19. package/dist/model/CreateSwapActivityRequest.js +193 -0
  20. package/dist/model/CustodialTransferDestination.js +1 -1
  21. package/dist/model/EstimateContractCallFeeParams.js +1 -1
  22. package/dist/model/EstimateFeeParams.js +1 -1
  23. package/dist/model/EstimateTransferFeeParams.js +1 -1
  24. package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
  25. package/dist/model/EstimatedEvmLegacyFee.js +1 -1
  26. package/dist/model/EstimatedFILFee.js +1 -1
  27. package/dist/model/EstimatedFixedFee.js +1 -1
  28. package/dist/model/EstimatedSOLFee.js +1 -1
  29. package/dist/model/EstimatedUtxoFee.js +1 -1
  30. package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
  31. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
  32. package/dist/model/FeeStationGasStationType.js +61 -0
  33. package/dist/model/ListSwapActivities200Response.js +123 -0
  34. package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
  35. package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
  36. package/dist/model/Merchant.js +9 -0
  37. package/dist/model/MerchantBalance.js +3 -3
  38. package/dist/model/MessageSignDestination.js +8 -70
  39. package/dist/model/OtcFee.js +123 -0
  40. package/dist/model/PaymentEstimateFee.js +125 -0
  41. package/dist/model/PaymentEstimateFee201Response.js +107 -0
  42. package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
  43. package/dist/model/PaymentEstimatedFee.js +173 -0
  44. package/dist/model/PaymentFeeType.js +71 -0
  45. package/dist/model/PaymentRefundEventData.js +22 -2
  46. package/dist/model/PaymentSettlementEvent.js +62 -6
  47. package/dist/model/PspBalance.js +3 -3
  48. package/dist/model/Refund.js +17 -1
  49. package/dist/model/SettleRequestStatus.js +5 -0
  50. package/dist/model/Settlement.js +45 -3
  51. package/dist/model/SettlementDetail.js +33 -1
  52. package/dist/model/SettlementInfo.js +7 -7
  53. package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
  54. package/dist/model/SolContractCallDestination.js +30 -0
  55. package/dist/model/StellarContractCallContractParam.js +164 -0
  56. package/dist/model/StellarContractCallContractType.js +56 -0
  57. package/dist/model/StellarContractCallDestination.js +125 -0
  58. package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
  59. package/dist/model/StellarContractCallTrustLineParam.js +133 -0
  60. package/dist/model/SupportedToken.js +9 -0
  61. package/dist/model/SwapActivity.js +9 -9
  62. package/dist/model/SwapActivityApprovers.js +1 -1
  63. package/dist/model/SwapActivityDetail.js +34 -18
  64. package/dist/model/SwapActivitySigners.js +2 -2
  65. package/dist/model/SwapActivityTimeline.js +5 -5
  66. package/dist/model/SwapEstimateFee.js +147 -0
  67. package/dist/model/SwapQuote.js +18 -31
  68. package/dist/model/SwapReceivingTransaction.js +133 -0
  69. package/dist/model/SwapToken.js +9 -9
  70. package/dist/model/TransactionCoboCategory.js +5 -0
  71. package/dist/model/TransactionDestination.js +48 -8
  72. package/dist/model/TransactionDestinationType.js +5 -0
  73. package/dist/model/TransactionEvmEip1559Fee.js +1 -1
  74. package/dist/model/TransactionEvmLegacyFee.js +1 -1
  75. package/dist/model/TransactionFILFee.js +1 -1
  76. package/dist/model/TransactionFixedFee.js +1 -1
  77. package/dist/model/TransactionFuelingInfo.js +13 -0
  78. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  79. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  80. package/dist/model/TransactionRequestFILFee.js +1 -1
  81. package/dist/model/TransactionRequestSOLFee.js +1 -1
  82. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  83. package/dist/model/TransactionSOLFee.js +1 -1
  84. package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
  85. package/dist/model/TransactionSolContractDestination.js +30 -0
  86. package/dist/model/TransactionStellarContractParam.js +164 -0
  87. package/dist/model/TransactionStellarContractType.js +56 -0
  88. package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
  89. package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
  90. package/dist/model/TransactionStellarTrustLineParam.js +133 -0
  91. package/dist/model/TransactionUtxoFee.js +1 -1
  92. package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
  93. package/dist/model/UpdateTopUpAddress.js +4 -6
  94. package/dist/model/WalletSetup.js +66 -0
  95. package/dist/model/WebhookEventData.js +19 -1
  96. package/docs/AddressBooksApi.md +3 -3
  97. package/docs/AddressInfo.md +1 -0
  98. package/docs/AddressesEventDataAllOfAddresses.md +1 -0
  99. package/docs/BridgingFee.md +11 -0
  100. package/docs/CommissionFee.md +9 -0
  101. package/docs/ContractCallDestination.md +2 -0
  102. package/docs/ContractCallDestinationType.md +2 -0
  103. package/docs/CreateMerchantRequest.md +2 -1
  104. package/docs/CreatePaymentOrderRequest.md +2 -1
  105. package/docs/CreateSettlement.md +2 -2
  106. package/docs/CreateSettlementRequestRequest.md +3 -0
  107. package/docs/CreateSwapActivityRequest.md +15 -0
  108. package/docs/EstimateContractCallFeeParams.md +1 -1
  109. package/docs/EstimateFeeParams.md +1 -1
  110. package/docs/EstimateTransferFeeParams.md +1 -1
  111. package/docs/FeeStationApi.md +53 -0
  112. package/docs/FeeStationCheckFeeStationUsage.md +14 -0
  113. package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
  114. package/docs/FeeStationGasStationType.md +12 -0
  115. package/docs/ListSwapActivities200Response.md +10 -0
  116. package/docs/ListSwapEnabledTokens200Response.md +10 -0
  117. package/docs/ListTopUpPayerAccounts200Response.md +10 -0
  118. package/docs/Merchant.md +1 -0
  119. package/docs/MerchantBalance.md +3 -3
  120. package/docs/MessageSignDestination.md +0 -1
  121. package/docs/OtcFee.md +10 -0
  122. package/docs/PaymentApi.md +196 -21
  123. package/docs/PaymentEstimateFee.md +10 -0
  124. package/docs/PaymentEstimateFee201Response.md +9 -0
  125. package/docs/PaymentEstimateFeeRequest.md +10 -0
  126. package/docs/PaymentEstimatedFee.md +13 -0
  127. package/docs/PaymentFeeType.md +16 -0
  128. package/docs/PaymentRefundEventData.md +2 -1
  129. package/docs/PaymentSettlementEvent.md +6 -3
  130. package/docs/PspBalance.md +3 -3
  131. package/docs/Refund.md +2 -1
  132. package/docs/SettleRequestStatus.md +2 -0
  133. package/docs/Settlement.md +6 -3
  134. package/docs/SettlementDetail.md +3 -1
  135. package/docs/SettlementInfo.md +6 -6
  136. package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
  137. package/docs/SolContractCallDestination.md +1 -0
  138. package/docs/StellarContractCallContractParam.md +11 -0
  139. package/docs/StellarContractCallContractType.md +10 -0
  140. package/docs/StellarContractCallDestination.md +10 -0
  141. package/docs/StellarContractCallTrustLineOperationType.md +10 -0
  142. package/docs/StellarContractCallTrustLineParam.md +11 -0
  143. package/docs/SupportedToken.md +1 -0
  144. package/docs/SwapActivity.md +9 -9
  145. package/docs/SwapActivityDetail.md +10 -9
  146. package/docs/SwapActivitySigners.md +1 -1
  147. package/docs/SwapActivityTimeline.md +3 -3
  148. package/docs/SwapEstimateFee.md +12 -0
  149. package/docs/SwapQuote.md +10 -11
  150. package/docs/SwapReceivingTransaction.md +11 -0
  151. package/docs/SwapToken.md +6 -6
  152. package/docs/SwapsApi.md +356 -0
  153. package/docs/TransactionCoboCategory.md +2 -0
  154. package/docs/TransactionDestination.md +2 -0
  155. package/docs/TransactionDestinationType.md +2 -0
  156. package/docs/TransactionFuelingInfo.md +1 -0
  157. package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
  158. package/docs/TransactionSolContractDestination.md +1 -0
  159. package/docs/TransactionStellarContractParam.md +11 -0
  160. package/docs/TransactionStellarContractType.md +10 -0
  161. package/docs/TransactionStellarDestination.md +10 -0
  162. package/docs/TransactionStellarTrustLineOperationType.md +10 -0
  163. package/docs/TransactionStellarTrustLineParam.md +11 -0
  164. package/docs/TransactionsApi.md +2 -2
  165. package/docs/UpdateBankAccountByIdRequest.md +9 -0
  166. package/docs/UpdateTopUpAddress.md +1 -1
  167. package/docs/WalletSetup.md +14 -0
  168. package/docs/WebhookEventData.md +4 -1
  169. package/package.json +1 -1
  170. package/docs/BTCEIP191MessageSignDestination.md +0 -10
  171. package/docs/RawMessageSignDestination.md +0 -10
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _MessageSignDestinationType = _interopRequireDefault(require("./MessageSignDestinationType"));
8
+ var _PaymentEstimateFee = _interopRequireDefault(require("./PaymentEstimateFee"));
9
+ var _PaymentFeeType = _interopRequireDefault(require("./PaymentFeeType"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
12
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -26,20 +27,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
27
  *
27
28
  */
28
29
  /**
29
- * The RawMessageSignDestination model module.
30
- * @module model/RawMessageSignDestination
30
+ * The PaymentEstimateFeeRequest model module.
31
+ * @module model/PaymentEstimateFeeRequest
31
32
  */
32
- var RawMessageSignDestination = /*#__PURE__*/function () {
33
+ var PaymentEstimateFeeRequest = /*#__PURE__*/function () {
33
34
  /**
34
- * Constructs a new <code>RawMessageSignDestination</code>.
35
- * The information about the destination &#x60;Raw_Message_Signature&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
36
- * @alias module:model/RawMessageSignDestination
37
- * @param destination_type {module:model/MessageSignDestinationType}
38
- * @param msg_hash {String} Message hash to be signed, in hexadecimal format.
35
+ * Constructs a new <code>PaymentEstimateFeeRequest</code>.
36
+ * @alias module:model/PaymentEstimateFeeRequest
37
+ * @param estimate_fees {Array.<module:model/PaymentEstimateFee>}
39
38
  */
40
- function RawMessageSignDestination(destination_type, msg_hash) {
41
- _classCallCheck(this, RawMessageSignDestination);
42
- RawMessageSignDestination.initialize(this, destination_type, msg_hash);
39
+ function PaymentEstimateFeeRequest(estimate_fees) {
40
+ _classCallCheck(this, PaymentEstimateFeeRequest);
41
+ PaymentEstimateFeeRequest.initialize(this, estimate_fees);
43
42
  }
44
43
 
45
44
  /**
@@ -47,45 +46,44 @@ var RawMessageSignDestination = /*#__PURE__*/function () {
47
46
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
47
  * Only for internal use.
49
48
  */
50
- return _createClass(RawMessageSignDestination, null, [{
49
+ return _createClass(PaymentEstimateFeeRequest, null, [{
51
50
  key: "initialize",
52
- value: function initialize(obj, destination_type, msg_hash) {
53
- obj['destination_type'] = destination_type;
54
- obj['msg_hash'] = msg_hash;
51
+ value: function initialize(obj, estimate_fees) {
52
+ obj['estimate_fees'] = estimate_fees;
55
53
  }
56
54
 
57
55
  /**
58
- * Constructs a <code>RawMessageSignDestination</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Constructs a <code>PaymentEstimateFeeRequest</code> from a plain JavaScript object, optionally creating a new instance.
59
57
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
58
  * @param {Object} data The plain JavaScript object bearing properties of interest.
61
- * @param {module:model/RawMessageSignDestination} obj Optional instance to populate.
62
- * @return {module:model/RawMessageSignDestination} The populated <code>RawMessageSignDestination</code> instance.
59
+ * @param {module:model/PaymentEstimateFeeRequest} obj Optional instance to populate.
60
+ * @return {module:model/PaymentEstimateFeeRequest} The populated <code>PaymentEstimateFeeRequest</code> instance.
63
61
  */
64
62
  }, {
65
63
  key: "constructFromObject",
66
64
  value: function constructFromObject(data, obj) {
67
65
  if (data) {
68
- obj = obj || new RawMessageSignDestination();
69
- if (data.hasOwnProperty('destination_type')) {
70
- obj['destination_type'] = _MessageSignDestinationType["default"].constructFromObject(data['destination_type']);
66
+ obj = obj || new PaymentEstimateFeeRequest();
67
+ if (data.hasOwnProperty('fee_type')) {
68
+ obj['fee_type'] = _PaymentFeeType["default"].constructFromObject(data['fee_type']);
71
69
  }
72
- if (data.hasOwnProperty('msg_hash')) {
73
- obj['msg_hash'] = _ApiClient["default"].convertToType(data['msg_hash'], 'String');
70
+ if (data.hasOwnProperty('estimate_fees')) {
71
+ obj['estimate_fees'] = _ApiClient["default"].convertToType(data['estimate_fees'], [_PaymentEstimateFee["default"]]);
74
72
  }
75
73
  }
76
74
  return obj;
77
75
  }
78
76
 
79
77
  /**
80
- * Validates the JSON data with respect to <code>RawMessageSignDestination</code>.
78
+ * Validates the JSON data with respect to <code>PaymentEstimateFeeRequest</code>.
81
79
  * @param {Object} data The plain JavaScript object bearing properties of interest.
82
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RawMessageSignDestination</code>.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentEstimateFeeRequest</code>.
83
81
  */
84
82
  }, {
85
83
  key: "validateJSON",
86
84
  value: function validateJSON(data) {
87
85
  // check to make sure all required properties are present in the JSON string
88
- var _iterator = _createForOfIteratorHelper(RawMessageSignDestination.RequiredProperties),
86
+ var _iterator = _createForOfIteratorHelper(PaymentEstimateFeeRequest.RequiredProperties),
89
87
  _step;
90
88
  try {
91
89
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -94,29 +92,45 @@ var RawMessageSignDestination = /*#__PURE__*/function () {
94
92
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
95
93
  }
96
94
  }
97
- // ensure the json data is a string
98
95
  } catch (err) {
99
96
  _iterator.e(err);
100
97
  } finally {
101
98
  _iterator.f();
102
99
  }
103
- if (data['msg_hash'] && !(typeof data['msg_hash'] === 'string' || data['msg_hash'] instanceof String)) {
104
- throw new Error("Expected the field `msg_hash` to be a primitive type in the JSON string but got " + data['msg_hash']);
100
+ if (data['estimate_fees']) {
101
+ // data not null
102
+ // ensure the json data is an array
103
+ if (!Array.isArray(data['estimate_fees'])) {
104
+ throw new Error("Expected the field `estimate_fees` to be an array in the JSON data but got " + data['estimate_fees']);
105
+ }
106
+ // validate the optional field `estimate_fees` (array)
107
+ var _iterator2 = _createForOfIteratorHelper(data['estimate_fees']),
108
+ _step2;
109
+ try {
110
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
111
+ var item = _step2.value;
112
+ _PaymentEstimateFee["default"].validateJSON(item);
113
+ }
114
+ } catch (err) {
115
+ _iterator2.e(err);
116
+ } finally {
117
+ _iterator2.f();
118
+ }
119
+ ;
105
120
  }
106
121
  return true;
107
122
  }
108
123
  }]);
109
124
  }();
110
- RawMessageSignDestination.RequiredProperties = ["destination_type", "msg_hash"];
125
+ PaymentEstimateFeeRequest.RequiredProperties = ["estimate_fees"];
111
126
 
112
127
  /**
113
- * @member {module:model/MessageSignDestinationType} destination_type
128
+ * @member {module:model/PaymentFeeType} fee_type
114
129
  */
115
- RawMessageSignDestination.prototype['destination_type'] = undefined;
130
+ PaymentEstimateFeeRequest.prototype['fee_type'] = undefined;
116
131
 
117
132
  /**
118
- * Message hash to be signed, in hexadecimal format.
119
- * @member {String} msg_hash
133
+ * @member {Array.<module:model/PaymentEstimateFee>} estimate_fees
120
134
  */
121
- RawMessageSignDestination.prototype['msg_hash'] = undefined;
122
- var _default = exports["default"] = RawMessageSignDestination;
135
+ PaymentEstimateFeeRequest.prototype['estimate_fees'] = undefined;
136
+ var _default = exports["default"] = PaymentEstimateFeeRequest;
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _BridgingFee = _interopRequireDefault(require("./BridgingFee"));
9
+ var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
10
+ var _OtcFee = _interopRequireDefault(require("./OtcFee"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
15
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
21
+ * Cobo Wallet as a Service 2.0
22
+ *
23
+ * Contact: help@cobo.com
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The PaymentEstimatedFee model module.
32
+ * @module model/PaymentEstimatedFee
33
+ */
34
+ var PaymentEstimatedFee = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>PaymentEstimatedFee</code>.
37
+ * @alias module:model/PaymentEstimatedFee
38
+ * @param token_id {String} The ID of the cryptocurrency you want to payment.
39
+ * @param amount {String} The payment amount.
40
+ */
41
+ function PaymentEstimatedFee(token_id, amount) {
42
+ _classCallCheck(this, PaymentEstimatedFee);
43
+ PaymentEstimatedFee.initialize(this, token_id, amount);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(PaymentEstimatedFee, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, token_id, amount) {
54
+ obj['token_id'] = token_id;
55
+ obj['amount'] = amount;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>PaymentEstimatedFee</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/PaymentEstimatedFee} obj Optional instance to populate.
63
+ * @return {module:model/PaymentEstimatedFee} The populated <code>PaymentEstimatedFee</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new PaymentEstimatedFee();
70
+ if (data.hasOwnProperty('token_id')) {
71
+ obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('amount')) {
74
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('commission_fee')) {
77
+ obj['commission_fee'] = _CommissionFee["default"].constructFromObject(data['commission_fee']);
78
+ }
79
+ if (data.hasOwnProperty('bridging_fee')) {
80
+ obj['bridging_fee'] = _BridgingFee["default"].constructFromObject(data['bridging_fee']);
81
+ }
82
+ if (data.hasOwnProperty('otc_fee')) {
83
+ obj['otc_fee'] = _OtcFee["default"].constructFromObject(data['otc_fee']);
84
+ }
85
+ }
86
+ return obj;
87
+ }
88
+
89
+ /**
90
+ * Validates the JSON data with respect to <code>PaymentEstimatedFee</code>.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentEstimatedFee</code>.
93
+ */
94
+ }, {
95
+ key: "validateJSON",
96
+ value: function validateJSON(data) {
97
+ // check to make sure all required properties are present in the JSON string
98
+ var _iterator = _createForOfIteratorHelper(PaymentEstimatedFee.RequiredProperties),
99
+ _step;
100
+ try {
101
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
102
+ var property = _step.value;
103
+ if (!data.hasOwnProperty(property)) {
104
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
105
+ }
106
+ }
107
+ // ensure the json data is a string
108
+ } catch (err) {
109
+ _iterator.e(err);
110
+ } finally {
111
+ _iterator.f();
112
+ }
113
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
114
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
115
+ }
116
+ // ensure the json data is a string
117
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
118
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
119
+ }
120
+ // validate the optional field `commission_fee`
121
+ if (data['commission_fee']) {
122
+ // data not null
123
+ if (!!_CommissionFee["default"].validateJSON) {
124
+ _CommissionFee["default"].validateJSON(data['commission_fee']);
125
+ }
126
+ }
127
+ // validate the optional field `bridging_fee`
128
+ if (data['bridging_fee']) {
129
+ // data not null
130
+ if (!!_BridgingFee["default"].validateJSON) {
131
+ _BridgingFee["default"].validateJSON(data['bridging_fee']);
132
+ }
133
+ }
134
+ // validate the optional field `otc_fee`
135
+ if (data['otc_fee']) {
136
+ // data not null
137
+ if (!!_OtcFee["default"].validateJSON) {
138
+ _OtcFee["default"].validateJSON(data['otc_fee']);
139
+ }
140
+ }
141
+ return true;
142
+ }
143
+ }]);
144
+ }();
145
+ PaymentEstimatedFee.RequiredProperties = ["token_id", "amount"];
146
+
147
+ /**
148
+ * The ID of the cryptocurrency you want to payment.
149
+ * @member {String} token_id
150
+ */
151
+ PaymentEstimatedFee.prototype['token_id'] = undefined;
152
+
153
+ /**
154
+ * The payment amount.
155
+ * @member {String} amount
156
+ */
157
+ PaymentEstimatedFee.prototype['amount'] = undefined;
158
+
159
+ /**
160
+ * @member {module:model/CommissionFee} commission_fee
161
+ */
162
+ PaymentEstimatedFee.prototype['commission_fee'] = undefined;
163
+
164
+ /**
165
+ * @member {module:model/BridgingFee} bridging_fee
166
+ */
167
+ PaymentEstimatedFee.prototype['bridging_fee'] = undefined;
168
+
169
+ /**
170
+ * @member {module:model/OtcFee} otc_fee
171
+ */
172
+ PaymentEstimatedFee.prototype['otc_fee'] = undefined;
173
+ var _default = exports["default"] = PaymentEstimatedFee;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class PaymentFeeType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PaymentFeeType = exports["default"] = /*#__PURE__*/function () {
31
+ function PaymentFeeType() {
32
+ _classCallCheck(this, PaymentFeeType);
33
+ /**
34
+ * value: "Order"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Order", "Order");
38
+ /**
39
+ * value: "Refund"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "Refund", "Refund");
43
+ /**
44
+ * value: "CryptoSettlement"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "CryptoSettlement", "CryptoSettlement");
48
+ /**
49
+ * value: "OffRampSettlement"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "OffRampSettlement", "OffRampSettlement");
53
+ /**
54
+ * value: "unknown_default_open_api"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
58
+ }
59
+ return _createClass(PaymentFeeType, null, [{
60
+ key: "constructFromObject",
61
+ value:
62
+ /**
63
+ * Returns a <code>PaymentFeeType</code> enum value from a Javascript object name.
64
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
65
+ * @return {module:model/PaymentFeeType} The enum <code>PaymentFeeType</code> value.
66
+ */
67
+ function constructFromObject(object) {
68
+ return object;
69
+ }
70
+ }]);
71
+ }();
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CommissionFee = _interopRequireDefault(require("./CommissionFee"));
8
9
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
9
10
  var _Refund = _interopRequireDefault(require("./Refund"));
10
11
  var _RefundStatus = _interopRequireDefault(require("./RefundStatus"));
@@ -139,6 +140,9 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
139
140
  if (data.hasOwnProperty('merchant_fee_token_id')) {
140
141
  obj['merchant_fee_token_id'] = _ApiClient["default"].convertToType(data['merchant_fee_token_id'], 'String');
141
142
  }
143
+ if (data.hasOwnProperty('commission_fee')) {
144
+ obj['commission_fee'] = _CommissionFee["default"].constructFromObject(data['commission_fee']);
145
+ }
142
146
  }
143
147
  return obj;
144
148
  }
@@ -235,6 +239,13 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
235
239
  if (data['merchant_fee_token_id'] && !(typeof data['merchant_fee_token_id'] === 'string' || data['merchant_fee_token_id'] instanceof String)) {
236
240
  throw new Error("Expected the field `merchant_fee_token_id` to be a primitive type in the JSON string but got " + data['merchant_fee_token_id']);
237
241
  }
242
+ // validate the optional field `commission_fee`
243
+ if (data['commission_fee']) {
244
+ // data not null
245
+ if (!!_CommissionFee["default"].validateJSON) {
246
+ _CommissionFee["default"].validateJSON(data['commission_fee']);
247
+ }
248
+ }
238
249
  return true;
239
250
  }
240
251
  }]);
@@ -318,7 +329,7 @@ PaymentRefundEventData.prototype['created_timestamp'] = undefined;
318
329
  PaymentRefundEventData.prototype['updated_timestamp'] = undefined;
319
330
 
320
331
  /**
321
- * The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
332
+ * The initiator of this settlement request. Can return either an API key or the Payments App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payments API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payments App using the App ID.
322
333
  * @member {String} initiator
323
334
  */
324
335
  PaymentRefundEventData.prototype['initiator'] = undefined;
@@ -347,6 +358,11 @@ PaymentRefundEventData.prototype['merchant_fee_amount'] = undefined;
347
358
  */
348
359
  PaymentRefundEventData.prototype['merchant_fee_token_id'] = undefined;
349
360
 
361
+ /**
362
+ * @member {module:model/CommissionFee} commission_fee
363
+ */
364
+ PaymentRefundEventData.prototype['commission_fee'] = undefined;
365
+
350
366
  // Implement WebhookEventDataType interface:
351
367
  /**
352
368
  * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
@@ -413,7 +429,7 @@ _Refund["default"].prototype['created_timestamp'] = undefined;
413
429
  */
414
430
  _Refund["default"].prototype['updated_timestamp'] = undefined;
415
431
  /**
416
- * The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
432
+ * The initiator of this settlement request. Can return either an API key or the Payments App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payments API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payments App using the App ID.
417
433
  * @member {String} initiator
418
434
  */
419
435
  _Refund["default"].prototype['initiator'] = undefined;
@@ -437,6 +453,10 @@ _Refund["default"].prototype['merchant_fee_amount'] = undefined;
437
453
  * @member {String} merchant_fee_token_id
438
454
  */
439
455
  _Refund["default"].prototype['merchant_fee_token_id'] = undefined;
456
+ /**
457
+ * @member {module:model/CommissionFee} commission_fee
458
+ */
459
+ _Refund["default"].prototype['commission_fee'] = undefined;
440
460
 
441
461
  /**
442
462
  * Allowed values for the <code>data_type</code> property.
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AcquiringType = _interopRequireDefault(require("./AcquiringType"));
9
+ var _BankAccount = _interopRequireDefault(require("./BankAccount"));
9
10
  var _PayoutChannel = _interopRequireDefault(require("./PayoutChannel"));
10
11
  var _SettleRequestStatus = _interopRequireDefault(require("./SettleRequestStatus"));
11
12
  var _Settlement = _interopRequireDefault(require("./Settlement"));
@@ -116,6 +117,15 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
116
117
  if (data.hasOwnProperty('settlement_type')) {
117
118
  obj['settlement_type'] = _SettlementType["default"].constructFromObject(data['settlement_type']);
118
119
  }
120
+ if (data.hasOwnProperty('currency')) {
121
+ obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
122
+ }
123
+ if (data.hasOwnProperty('received_amount_fiat')) {
124
+ obj['received_amount_fiat'] = _ApiClient["default"].convertToType(data['received_amount_fiat'], 'String');
125
+ }
126
+ if (data.hasOwnProperty('bank_account')) {
127
+ obj['bank_account'] = _BankAccount["default"].constructFromObject(data['bank_account']);
128
+ }
119
129
  }
120
130
  return obj;
121
131
  }
@@ -180,6 +190,21 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
180
190
  if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
181
191
  throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
182
192
  }
193
+ // ensure the json data is a string
194
+ if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
195
+ throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
196
+ }
197
+ // ensure the json data is a string
198
+ if (data['received_amount_fiat'] && !(typeof data['received_amount_fiat'] === 'string' || data['received_amount_fiat'] instanceof String)) {
199
+ throw new Error("Expected the field `received_amount_fiat` to be a primitive type in the JSON string but got " + data['received_amount_fiat']);
200
+ }
201
+ // validate the optional field `bank_account`
202
+ if (data['bank_account']) {
203
+ // data not null
204
+ if (!!_BankAccount["default"].validateJSON) {
205
+ _BankAccount["default"].validateJSON(data['bank_account']);
206
+ }
207
+ }
183
208
  return true;
184
209
  }
185
210
  }]);
@@ -215,19 +240,19 @@ PaymentSettlementEvent.prototype['status'] = undefined;
215
240
  PaymentSettlementEvent.prototype['settlements'] = undefined;
216
241
 
217
242
  /**
218
- * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
243
+ * The created time of the settlement request, represented as a UNIX timestamp in seconds.
219
244
  * @member {Number} created_timestamp
220
245
  */
221
246
  PaymentSettlementEvent.prototype['created_timestamp'] = undefined;
222
247
 
223
248
  /**
224
- * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
249
+ * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
225
250
  * @member {Number} updated_timestamp
226
251
  */
227
252
  PaymentSettlementEvent.prototype['updated_timestamp'] = undefined;
228
253
 
229
254
  /**
230
- * The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
255
+ * The initiator of this settlement request. Can return either an API key or the Payments App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payments API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payments App using the App ID.
231
256
  * @member {String} initiator
232
257
  */
233
258
  PaymentSettlementEvent.prototype['initiator'] = undefined;
@@ -247,6 +272,23 @@ PaymentSettlementEvent.prototype['payout_channel'] = undefined;
247
272
  */
248
273
  PaymentSettlementEvent.prototype['settlement_type'] = undefined;
249
274
 
275
+ /**
276
+ * The fiat currency for the settlement request.
277
+ * @member {String} currency
278
+ */
279
+ PaymentSettlementEvent.prototype['currency'] = undefined;
280
+
281
+ /**
282
+ * The received fiat amount of this settlement request.
283
+ * @member {String} received_amount_fiat
284
+ */
285
+ PaymentSettlementEvent.prototype['received_amount_fiat'] = undefined;
286
+
287
+ /**
288
+ * @member {module:model/BankAccount} bank_account
289
+ */
290
+ PaymentSettlementEvent.prototype['bank_account'] = undefined;
291
+
250
292
  // Implement WebhookEventDataType interface:
251
293
  /**
252
294
  * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
@@ -273,17 +315,17 @@ _Settlement["default"].prototype['status'] = undefined;
273
315
  */
274
316
  _Settlement["default"].prototype['settlements'] = undefined;
275
317
  /**
276
- * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
318
+ * The created time of the settlement request, represented as a UNIX timestamp in seconds.
277
319
  * @member {Number} created_timestamp
278
320
  */
279
321
  _Settlement["default"].prototype['created_timestamp'] = undefined;
280
322
  /**
281
- * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
323
+ * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
282
324
  * @member {Number} updated_timestamp
283
325
  */
284
326
  _Settlement["default"].prototype['updated_timestamp'] = undefined;
285
327
  /**
286
- * The initiator of this settlement request. Can return either an API key or the Payment Management App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payment API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payment Management App using the App ID.
328
+ * The initiator of this settlement request. Can return either an API key or the Payments App's ID. - Format `api_key_<API_KEY>`: Indicates the settlement request was initiated via the Payments API using the API key. - Format `app_<APP_ID>`: Indicates the settlement request was initiated through the Payments App using the App ID.
287
329
  * @member {String} initiator
288
330
  */
289
331
  _Settlement["default"].prototype['initiator'] = undefined;
@@ -299,6 +341,20 @@ _Settlement["default"].prototype['payout_channel'] = undefined;
299
341
  * @member {module:model/SettlementType} settlement_type
300
342
  */
301
343
  _Settlement["default"].prototype['settlement_type'] = undefined;
344
+ /**
345
+ * The fiat currency for the settlement request.
346
+ * @member {String} currency
347
+ */
348
+ _Settlement["default"].prototype['currency'] = undefined;
349
+ /**
350
+ * The received fiat amount of this settlement request.
351
+ * @member {String} received_amount_fiat
352
+ */
353
+ _Settlement["default"].prototype['received_amount_fiat'] = undefined;
354
+ /**
355
+ * @member {module:model/BankAccount} bank_account
356
+ */
357
+ _Settlement["default"].prototype['bank_account'] = undefined;
302
358
 
303
359
  /**
304
360
  * Allowed values for the <code>data_type</code> property.
@@ -150,7 +150,7 @@ PspBalance.prototype['token_id'] = undefined;
150
150
  PspBalance.prototype['developer_fee_amount'] = undefined;
151
151
 
152
152
  /**
153
- * The total amount of the token that has been settled from the developer's balance.
153
+ * The total amount of the token that has been paid out from the developer's balance.
154
154
  * @member {String} settled_amount
155
155
  */
156
156
  PspBalance.prototype['settled_amount'] = undefined;
@@ -162,13 +162,13 @@ PspBalance.prototype['settled_amount'] = undefined;
162
162
  PspBalance.prototype['refunded_amount'] = undefined;
163
163
 
164
164
  /**
165
- * The total balance of the token for the developer.
165
+ * The total balance of the token available for payout or refund for the developer. `total_balance` = `developer_fee_amount` - `settled_amount` - `refunded_amount` For more information, please refer to [Amounts and Balances](/v2_cn/payments/amounts-and-balances)
166
166
  * @member {String} total_balance
167
167
  */
168
168
  PspBalance.prototype['total_balance'] = undefined;
169
169
 
170
170
  /**
171
- * The balance available for settlement or refund, in the specified cryptocurrency.
171
+ * This field has been deprecated.
172
172
  * @member {String} available_balance
173
173
  */
174
174
  PspBalance.prototype['available_balance'] = undefined;