@cobo/cobo-waas2 1.16.0 → 1.18.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 (214) hide show
  1. package/README.md +46 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/PreRequestScript.js +27 -33
  4. package/dist/api/AppWorkflowsApi.js +22 -22
  5. package/dist/api/FeeStationApi.js +2 -2
  6. package/dist/api/OAuthApi.js +93 -6
  7. package/dist/api/OrganizationsApi.js +79 -0
  8. package/dist/api/PaymentApi.js +265 -55
  9. package/dist/api/TransactionsApi.js +2 -2
  10. package/dist/api/WalletsApi.js +11 -8
  11. package/dist/index.js +252 -14
  12. package/dist/model/Account.js +174 -0
  13. package/dist/model/AcquiringType.js +61 -0
  14. package/dist/model/AddressTransferDestination.js +2 -2
  15. package/dist/model/AddressesEventData.js +8 -3
  16. package/dist/model/AppWorkflow.js +7 -7
  17. package/dist/model/AppWorkflowField.js +5 -5
  18. package/dist/model/AppWorkflowPolicy.js +1 -1
  19. package/dist/model/ApprovalEntry.js +1 -1
  20. package/dist/model/ApprovalRequest.js +5 -3
  21. package/dist/model/ApprovalRequestDetail.js +2 -1
  22. package/dist/model/ApprovalUser.js +4 -4
  23. package/dist/model/BalanceUpdateInfo.js +170 -0
  24. package/dist/model/BalanceUpdateInfoEventData.js +297 -0
  25. package/dist/model/BankAccount.js +2 -2
  26. package/dist/model/ChainInfo.js +1 -1
  27. package/dist/model/ChainsEventData.js +8 -3
  28. package/dist/model/CreateApprovalRequest201Response.js +2 -1
  29. package/dist/model/CreateMerchantRequest.js +13 -0
  30. package/dist/model/CreatePaymentOrderRequest.js +14 -5
  31. package/dist/model/CreateRefundRequest.js +41 -8
  32. package/dist/model/CreateSettlement.js +28 -12
  33. package/dist/model/CreateSettlementRequestRequest.js +27 -0
  34. package/dist/model/CryptoAddress.js +171 -0
  35. package/dist/model/CustodialTransferDestination.js +137 -0
  36. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  37. package/dist/model/EstimateFeeParams.js +1 -1
  38. package/dist/model/EstimatedFILFee.js +170 -0
  39. package/dist/model/EstimatedFILFeeSlow.js +186 -0
  40. package/dist/model/EstimatedFee.js +68 -12
  41. package/dist/model/EstimatedSOLFee.js +170 -0
  42. package/dist/model/EstimatedSOLFeeSlow.js +184 -0
  43. package/dist/model/ExchangePermissionToken201Response.js +122 -0
  44. package/dist/model/{CreateBankAccountRequest.js → ExchangePermissionTokenRequest.js} +30 -28
  45. package/dist/model/FILBase.js +88 -0
  46. package/dist/model/FILPrice.js +114 -0
  47. package/dist/model/FeeType.js +10 -0
  48. package/dist/model/GetExchangeRate200Response.js +2 -2
  49. package/dist/model/GraphQLError.js +135 -0
  50. package/dist/model/GraphQLErrorLocationsInner.js +92 -0
  51. package/dist/model/{TransactionMessageSignBTCEIP191Destination.js → GraphQLRequest.js} +49 -36
  52. package/dist/model/GraphQLResponse.js +119 -0
  53. package/dist/model/ListTopUpPayers200Response.js +123 -0
  54. package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
  55. package/dist/model/MPCVaultEventData.js +8 -3
  56. package/dist/model/Merchant.js +15 -2
  57. package/dist/model/Order.js +16 -7
  58. package/dist/model/PayerAccount.js +189 -0
  59. package/dist/model/PaymentOrderEventData.js +33 -15
  60. package/dist/model/PaymentRefundEventData.js +66 -11
  61. package/dist/model/PaymentSettlementEvent.js +14 -9
  62. package/dist/model/PayoutChannel.js +61 -0
  63. package/dist/model/PolicyAction.js +1 -1
  64. package/dist/model/PolicyActionContent.js +6 -4
  65. package/dist/model/PolicyCondition.js +5 -5
  66. package/dist/model/RefreshPermissionTokenRequest.js +110 -0
  67. package/dist/model/Refund.js +39 -4
  68. package/dist/model/RefundStatus.js +5 -0
  69. package/dist/model/RequestApproval.js +9 -9
  70. package/dist/model/RevokeApprovalRequest201Response.js +2 -1
  71. package/dist/model/RevokeApprovalRequestRequest.js +2 -2
  72. package/dist/model/SOLBase.js +101 -0
  73. package/dist/model/SOLComputeUnit.js +101 -0
  74. package/dist/model/Settlement.js +3 -3
  75. package/dist/model/SettlementDetail.js +24 -6
  76. package/dist/model/SettlementInfo.js +11 -2
  77. package/dist/model/SupportedToken.js +222 -0
  78. package/dist/model/SwapActivityDetail.js +30 -0
  79. package/dist/model/SwapActivitySigners.js +110 -0
  80. package/dist/model/SwapQuote.js +17 -4
  81. package/dist/model/SwapSingingStatus.js +71 -0
  82. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  83. package/dist/model/TokenListingEventData.js +8 -3
  84. package/dist/model/TokensEventData.js +8 -3
  85. package/dist/model/TopUpAddress.js +230 -0
  86. package/dist/model/TransactionCoboCategory.js +20 -0
  87. package/dist/model/TransactionDestination.js +14 -38
  88. package/dist/model/TransactionDestinationType.js +5 -0
  89. package/dist/model/TransactionEvmCalldataInfo.js +1 -1
  90. package/dist/model/TransactionFILFee.js +229 -0
  91. package/dist/model/TransactionFee.js +107 -9
  92. package/dist/model/TransactionRequestFILFee.js +186 -0
  93. package/dist/model/TransactionRequestFee.js +89 -9
  94. package/dist/model/TransactionRequestSOLFee.js +168 -0
  95. package/dist/model/TransactionSOLFee.js +229 -0
  96. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  97. package/dist/model/TransactionTransferToWalletDestination.js +2 -2
  98. package/dist/model/TransactionWebhookEventData.js +8 -3
  99. package/dist/model/TransferDestination.js +44 -16
  100. package/dist/model/TransferDestinationType.js +5 -0
  101. package/dist/model/UpdateMerchantByIdRequest.js +13 -0
  102. package/dist/model/UpdateRefundByIdRequest.js +110 -0
  103. package/dist/model/UpdateTopUpAddress.js +141 -0
  104. package/dist/model/WalletInfoEventData.js +8 -3
  105. package/dist/model/WebhookEvent.js +2 -2
  106. package/dist/model/WebhookEventData.js +83 -13
  107. package/dist/model/WebhookEventDataType.js +7 -2
  108. package/dist/model/WebhookEventLog.js +2 -2
  109. package/dist/model/WebhookEventType.js +15 -0
  110. package/docs/Account.md +14 -0
  111. package/docs/AcquiringType.md +12 -0
  112. package/docs/AddressTransferDestination.md +2 -2
  113. package/docs/AddressesEventData.md +3 -1
  114. package/docs/AppWorkflow.md +3 -3
  115. package/docs/AppWorkflowField.md +2 -2
  116. package/docs/AppWorkflowsApi.md +12 -12
  117. package/docs/ApprovalRequest.md +2 -2
  118. package/docs/ApprovalRequestDetail.md +1 -1
  119. package/docs/ApprovalUser.md +2 -2
  120. package/docs/BalanceUpdateInfo.md +13 -0
  121. package/docs/BalanceUpdateInfoEventData.md +47 -0
  122. package/docs/BankAccount.md +2 -2
  123. package/docs/ChainInfo.md +1 -1
  124. package/docs/ChainsEventData.md +3 -1
  125. package/docs/CreateApprovalRequest201Response.md +1 -1
  126. package/docs/CreateMerchantRequest.md +1 -0
  127. package/docs/CreatePaymentOrderRequest.md +2 -1
  128. package/docs/CreateRefundRequest.md +5 -2
  129. package/docs/CreateSettlement.md +7 -6
  130. package/docs/CreateSettlementRequestRequest.md +3 -0
  131. package/docs/CryptoAddress.md +14 -0
  132. package/docs/CustodialTransferDestination.md +11 -0
  133. package/docs/EstimateContractCallFeeParams.md +1 -1
  134. package/docs/EstimateFeeParams.md +1 -1
  135. package/docs/EstimatedFILFee.md +13 -0
  136. package/docs/EstimatedFILFeeSlow.md +12 -0
  137. package/docs/EstimatedFee.md +3 -3
  138. package/docs/EstimatedSOLFee.md +13 -0
  139. package/docs/EstimatedSOLFeeSlow.md +12 -0
  140. package/docs/ExchangePermissionToken201Response.md +12 -0
  141. package/docs/ExchangePermissionTokenRequest.md +9 -0
  142. package/docs/FILBase.md +9 -0
  143. package/docs/FILPrice.md +11 -0
  144. package/docs/FeeStationApi.md +1 -1
  145. package/docs/FeeType.md +4 -0
  146. package/docs/GetExchangeRate200Response.md +1 -1
  147. package/docs/GraphQLError.md +11 -0
  148. package/docs/GraphQLErrorLocationsInner.md +10 -0
  149. package/docs/GraphQLRequest.md +11 -0
  150. package/docs/GraphQLResponse.md +10 -0
  151. package/docs/ListTopUpPayers200Response.md +10 -0
  152. package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
  153. package/docs/MPCVaultEventData.md +3 -1
  154. package/docs/Merchant.md +3 -2
  155. package/docs/OAuthApi.md +102 -0
  156. package/docs/Order.md +6 -5
  157. package/docs/OrganizationsApi.md +55 -0
  158. package/docs/PayerAccount.md +14 -0
  159. package/docs/PaymentApi.md +247 -29
  160. package/docs/PaymentOrderEventData.md +9 -6
  161. package/docs/PaymentRefundEventData.md +10 -5
  162. package/docs/PaymentSettlementEvent.md +6 -4
  163. package/docs/PayoutChannel.md +12 -0
  164. package/docs/PolicyActionContent.md +4 -4
  165. package/docs/PolicyCondition.md +2 -2
  166. package/docs/RefreshPermissionTokenRequest.md +9 -0
  167. package/docs/Refund.md +7 -4
  168. package/docs/RefundStatus.md +2 -0
  169. package/docs/RequestApproval.md +4 -4
  170. package/docs/RevokeApprovalRequest201Response.md +1 -1
  171. package/docs/RevokeApprovalRequestRequest.md +1 -1
  172. package/docs/SOLBase.md +10 -0
  173. package/docs/SOLComputeUnit.md +10 -0
  174. package/docs/Settlement.md +3 -3
  175. package/docs/SettlementDetail.md +8 -6
  176. package/docs/SettlementInfo.md +3 -2
  177. package/docs/SupportedToken.md +17 -0
  178. package/docs/SwapActivityDetail.md +1 -0
  179. package/docs/SwapActivitySigners.md +11 -0
  180. package/docs/SwapQuote.md +3 -2
  181. package/docs/SwapSingingStatus.md +16 -0
  182. package/docs/TSSRequestWebhookEventData.md +3 -1
  183. package/docs/TokenListingEventData.md +3 -1
  184. package/docs/TokensEventData.md +3 -1
  185. package/docs/TopUpAddress.md +18 -0
  186. package/docs/TransactionCoboCategory.md +8 -0
  187. package/docs/TransactionDestination.md +2 -2
  188. package/docs/TransactionDestinationType.md +2 -0
  189. package/docs/TransactionEvmCalldataInfo.md +1 -1
  190. package/docs/TransactionFILFee.md +16 -0
  191. package/docs/TransactionFee.md +8 -1
  192. package/docs/TransactionRequestFILFee.md +13 -0
  193. package/docs/TransactionRequestFee.md +5 -1
  194. package/docs/TransactionRequestSOLFee.md +12 -0
  195. package/docs/TransactionSOLFee.md +16 -0
  196. package/docs/TransactionTransferToAddressDestination.md +2 -2
  197. package/docs/TransactionTransferToWalletDestination.md +1 -1
  198. package/docs/TransactionWebhookEventData.md +3 -1
  199. package/docs/TransactionsApi.md +1 -1
  200. package/docs/TransferDestination.md +3 -3
  201. package/docs/TransferDestinationType.md +2 -0
  202. package/docs/UpdateMerchantByIdRequest.md +1 -0
  203. package/docs/UpdateRefundByIdRequest.md +9 -0
  204. package/docs/UpdateTopUpAddress.md +11 -0
  205. package/docs/WalletInfoEventData.md +3 -1
  206. package/docs/WalletsApi.md +6 -4
  207. package/docs/WebhookEvent.md +1 -1
  208. package/docs/WebhookEventData.md +14 -5
  209. package/docs/WebhookEventDataType.md +3 -1
  210. package/docs/WebhookEventLog.md +1 -1
  211. package/docs/WebhookEventType.md +6 -0
  212. package/package.json +1 -1
  213. package/docs/CreateBankAccountRequest.md +0 -9
  214. package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Order = _interopRequireDefault(require("./Order"));
9
9
  var _OrderStatus = _interopRequireDefault(require("./OrderStatus"));
10
10
  var _PaymentTransaction = _interopRequireDefault(require("./PaymentTransaction"));
11
+ var _SettleStatus = _interopRequireDefault(require("./SettleStatus"));
11
12
  var _WebhookEventDataType = _interopRequireDefault(require("./WebhookEventDataType"));
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
14
  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); }
@@ -38,10 +39,10 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
38
39
  * @alias module:model/PaymentOrderEventData
39
40
  * @implements module:model/WebhookEventDataType
40
41
  * @implements module:model/Order
41
- * @param data_type {module:model/PaymentOrderEventData.DataTypeEnum} 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.
42
+ * @param data_type {module:model/PaymentOrderEventData.DataTypeEnum} 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
42
43
  * @param order_id {String} The order ID.
43
- * @param token_id {String} The ID of the cryptocurrency used for payment.
44
- * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made.
44
+ * @param token_id {String} The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
45
+ * @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
45
46
  * @param payable_amount {String} The cryptocurrency amount to be paid for this order.
46
47
  * @param receive_address {String} The recipient wallet address to be used for the payment transaction.
47
48
  * @param currency {String} The fiat currency of the order.
@@ -153,6 +154,9 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
153
154
  if (data.hasOwnProperty('transactions')) {
154
155
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
155
156
  }
157
+ if (data.hasOwnProperty('settlement_status')) {
158
+ obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
159
+ }
156
160
  }
157
161
  return obj;
158
162
  }
@@ -264,7 +268,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
264
268
  PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "token_id", "chain_id", "payable_amount", "receive_address", "currency", "order_amount", "fee_amount", "exchange_rate", "psp_order_code", "status", "received_token_amount"];
265
269
 
266
270
  /**
267
- * 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.
271
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
268
272
  * @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
269
273
  */
270
274
  PaymentOrderEventData.prototype['data_type'] = undefined;
@@ -282,13 +286,13 @@ PaymentOrderEventData.prototype['order_id'] = undefined;
282
286
  PaymentOrderEventData.prototype['merchant_id'] = undefined;
283
287
 
284
288
  /**
285
- * The ID of the cryptocurrency used for payment.
289
+ * The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
286
290
  * @member {String} token_id
287
291
  */
288
292
  PaymentOrderEventData.prototype['token_id'] = undefined;
289
293
 
290
294
  /**
291
- * The ID of the blockchain network where the payment transaction should be made.
295
+ * The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
292
296
  * @member {String} chain_id
293
297
  */
294
298
  PaymentOrderEventData.prototype['chain_id'] = undefined;
@@ -359,26 +363,31 @@ PaymentOrderEventData.prototype['status'] = undefined;
359
363
  PaymentOrderEventData.prototype['received_token_amount'] = undefined;
360
364
 
361
365
  /**
362
- * The created time of the order, represented as a UNIX timestamp in seconds.
366
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
363
367
  * @member {Number} created_timestamp
364
368
  */
365
369
  PaymentOrderEventData.prototype['created_timestamp'] = undefined;
366
370
 
367
371
  /**
368
- * The updated time of the order, represented as a UNIX timestamp in seconds.
372
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
369
373
  * @member {Number} updated_timestamp
370
374
  */
371
375
  PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
372
376
 
373
377
  /**
374
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
378
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
375
379
  * @member {Array.<module:model/PaymentTransaction>} transactions
376
380
  */
377
381
  PaymentOrderEventData.prototype['transactions'] = undefined;
378
382
 
383
+ /**
384
+ * @member {module:model/SettleStatus} settlement_status
385
+ */
386
+ PaymentOrderEventData.prototype['settlement_status'] = undefined;
387
+
379
388
  // Implement WebhookEventDataType interface:
380
389
  /**
381
- * 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.
390
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
382
391
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
383
392
  */
384
393
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -394,12 +403,12 @@ _Order["default"].prototype['order_id'] = undefined;
394
403
  */
395
404
  _Order["default"].prototype['merchant_id'] = undefined;
396
405
  /**
397
- * The ID of the cryptocurrency used for payment.
406
+ * The ID of the cryptocurrency used for payment. Supported tokens: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
398
407
  * @member {String} token_id
399
408
  */
400
409
  _Order["default"].prototype['token_id'] = undefined;
401
410
  /**
402
- * The ID of the blockchain network where the payment transaction should be made.
411
+ * The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
403
412
  * @member {String} chain_id
404
413
  */
405
414
  _Order["default"].prototype['chain_id'] = undefined;
@@ -458,20 +467,24 @@ _Order["default"].prototype['status'] = undefined;
458
467
  */
459
468
  _Order["default"].prototype['received_token_amount'] = undefined;
460
469
  /**
461
- * The created time of the order, represented as a UNIX timestamp in seconds.
470
+ * The creation time of the order, represented as a UNIX timestamp in seconds.
462
471
  * @member {Number} created_timestamp
463
472
  */
464
473
  _Order["default"].prototype['created_timestamp'] = undefined;
465
474
  /**
466
- * The updated time of the order, represented as a UNIX timestamp in seconds.
475
+ * The last update time of the order, represented as a UNIX timestamp in seconds.
467
476
  * @member {Number} updated_timestamp
468
477
  */
469
478
  _Order["default"].prototype['updated_timestamp'] = undefined;
470
479
  /**
471
- * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
480
+ * An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
472
481
  * @member {Array.<module:model/PaymentTransaction>} transactions
473
482
  */
474
483
  _Order["default"].prototype['transactions'] = undefined;
484
+ /**
485
+ * @member {module:model/SettleStatus} settlement_status
486
+ */
487
+ _Order["default"].prototype['settlement_status'] = undefined;
475
488
 
476
489
  /**
477
490
  * Allowed values for the <code>data_type</code> property.
@@ -519,6 +532,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
519
532
  * @const
520
533
  */
521
534
  "TokenListing": "TokenListing",
535
+ /**
536
+ * value: "BalanceUpdateInfo"
537
+ * @const
538
+ */
539
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
522
540
  /**
523
541
  * value: "PaymentOrder"
524
542
  * @const
@@ -39,7 +39,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
39
39
  * @alias module:model/PaymentRefundEventData
40
40
  * @implements module:model/WebhookEventDataType
41
41
  * @implements module:model/Refund
42
- * @param data_type {module:model/PaymentRefundEventData.DataTypeEnum} 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.
42
+ * @param data_type {module:model/PaymentRefundEventData.DataTypeEnum} 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
43
43
  * @param refund_id {String} The refund order ID.
44
44
  * @param token_id {String} The ID of the cryptocurrency used for refund.
45
45
  * @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
@@ -130,6 +130,15 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
130
130
  if (data.hasOwnProperty('transactions')) {
131
131
  obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
132
132
  }
133
+ if (data.hasOwnProperty('charge_merchant_fee')) {
134
+ obj['charge_merchant_fee'] = _ApiClient["default"].convertToType(data['charge_merchant_fee'], 'Boolean');
135
+ }
136
+ if (data.hasOwnProperty('merchant_fee_amount')) {
137
+ obj['merchant_fee_amount'] = _ApiClient["default"].convertToType(data['merchant_fee_amount'], 'String');
138
+ }
139
+ if (data.hasOwnProperty('merchant_fee_token_id')) {
140
+ obj['merchant_fee_token_id'] = _ApiClient["default"].convertToType(data['merchant_fee_token_id'], 'String');
141
+ }
133
142
  }
134
143
  return obj;
135
144
  }
@@ -218,6 +227,14 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
218
227
  }
219
228
  ;
220
229
  }
230
+ // ensure the json data is a string
231
+ if (data['merchant_fee_amount'] && !(typeof data['merchant_fee_amount'] === 'string' || data['merchant_fee_amount'] instanceof String)) {
232
+ throw new Error("Expected the field `merchant_fee_amount` to be a primitive type in the JSON string but got " + data['merchant_fee_amount']);
233
+ }
234
+ // ensure the json data is a string
235
+ if (data['merchant_fee_token_id'] && !(typeof data['merchant_fee_token_id'] === 'string' || data['merchant_fee_token_id'] instanceof String)) {
236
+ 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
+ }
221
238
  return true;
222
239
  }
223
240
  }]);
@@ -225,7 +242,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
225
242
  PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
226
243
 
227
244
  /**
228
- * 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.
245
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
229
246
  * @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
230
247
  */
231
248
  PaymentRefundEventData.prototype['data_type'] = undefined;
@@ -243,7 +260,7 @@ PaymentRefundEventData.prototype['request_id'] = undefined;
243
260
  PaymentRefundEventData.prototype['refund_id'] = undefined;
244
261
 
245
262
  /**
246
- * The order ID corresponding to this refund.
263
+ * The ID of the pay-in order corresponding to this refund.
247
264
  * @member {String} order_id
248
265
  */
249
266
  PaymentRefundEventData.prototype['order_id'] = undefined;
@@ -289,19 +306,19 @@ PaymentRefundEventData.prototype['status'] = undefined;
289
306
  PaymentRefundEventData.prototype['refund_type'] = undefined;
290
307
 
291
308
  /**
292
- * The created time of the refund order, represented as a UNIX timestamp in seconds.
309
+ * The creation time of the refund order, represented as a UNIX timestamp in seconds.
293
310
  * @member {Number} created_timestamp
294
311
  */
295
312
  PaymentRefundEventData.prototype['created_timestamp'] = undefined;
296
313
 
297
314
  /**
298
- * The updated time of the refund order, represented as a UNIX timestamp in seconds.
315
+ * The last update time of the refund order, represented as a UNIX timestamp in seconds.
299
316
  * @member {Number} updated_timestamp
300
317
  */
301
318
  PaymentRefundEventData.prototype['updated_timestamp'] = undefined;
302
319
 
303
320
  /**
304
- * The initiator of this refund order, usually the user's API key.
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.
305
322
  * @member {String} initiator
306
323
  */
307
324
  PaymentRefundEventData.prototype['initiator'] = undefined;
@@ -312,9 +329,27 @@ PaymentRefundEventData.prototype['initiator'] = undefined;
312
329
  */
313
330
  PaymentRefundEventData.prototype['transactions'] = undefined;
314
331
 
332
+ /**
333
+ * Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee.
334
+ * @member {Boolean} charge_merchant_fee
335
+ */
336
+ PaymentRefundEventData.prototype['charge_merchant_fee'] = undefined;
337
+
338
+ /**
339
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`.
340
+ * @member {String} merchant_fee_amount
341
+ */
342
+ PaymentRefundEventData.prototype['merchant_fee_amount'] = undefined;
343
+
344
+ /**
345
+ * The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
346
+ * @member {String} merchant_fee_token_id
347
+ */
348
+ PaymentRefundEventData.prototype['merchant_fee_token_id'] = undefined;
349
+
315
350
  // Implement WebhookEventDataType interface:
316
351
  /**
317
- * 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.
352
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
318
353
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
319
354
  */
320
355
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -330,7 +365,7 @@ _Refund["default"].prototype['request_id'] = undefined;
330
365
  */
331
366
  _Refund["default"].prototype['refund_id'] = undefined;
332
367
  /**
333
- * The order ID corresponding to this refund.
368
+ * The ID of the pay-in order corresponding to this refund.
334
369
  * @member {String} order_id
335
370
  */
336
371
  _Refund["default"].prototype['order_id'] = undefined;
@@ -368,17 +403,17 @@ _Refund["default"].prototype['status'] = undefined;
368
403
  */
369
404
  _Refund["default"].prototype['refund_type'] = undefined;
370
405
  /**
371
- * The created time of the refund order, represented as a UNIX timestamp in seconds.
406
+ * The creation time of the refund order, represented as a UNIX timestamp in seconds.
372
407
  * @member {Number} created_timestamp
373
408
  */
374
409
  _Refund["default"].prototype['created_timestamp'] = undefined;
375
410
  /**
376
- * The updated time of the refund order, represented as a UNIX timestamp in seconds.
411
+ * The last update time of the refund order, represented as a UNIX timestamp in seconds.
377
412
  * @member {Number} updated_timestamp
378
413
  */
379
414
  _Refund["default"].prototype['updated_timestamp'] = undefined;
380
415
  /**
381
- * The initiator of this refund order, usually the user's API key.
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.
382
417
  * @member {String} initiator
383
418
  */
384
419
  _Refund["default"].prototype['initiator'] = undefined;
@@ -387,6 +422,21 @@ _Refund["default"].prototype['initiator'] = undefined;
387
422
  * @member {Array.<module:model/PaymentTransaction>} transactions
388
423
  */
389
424
  _Refund["default"].prototype['transactions'] = undefined;
425
+ /**
426
+ * Whether to charge developer fee to the merchant for the refund. - `true`: The fee amount (specified in `merchant_fee_amount`) will be deducted from the merchant's balance and added to the developer's balance - `false`: The merchant is not charged any developer fee.
427
+ * @member {Boolean} charge_merchant_fee
428
+ */
429
+ _Refund["default"].prototype['charge_merchant_fee'] = undefined;
430
+ /**
431
+ * The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by `merchant_fee_token_id`. This is only applicable if `charge_merchant_fee` is set to `true`.
432
+ * @member {String} merchant_fee_amount
433
+ */
434
+ _Refund["default"].prototype['merchant_fee_amount'] = undefined;
435
+ /**
436
+ * The ID of the cryptocurrency used for the developer fee. This is only applicable if `charge_merchant_fee` is set to true.
437
+ * @member {String} merchant_fee_token_id
438
+ */
439
+ _Refund["default"].prototype['merchant_fee_token_id'] = undefined;
390
440
 
391
441
  /**
392
442
  * Allowed values for the <code>data_type</code> property.
@@ -434,6 +484,11 @@ PaymentRefundEventData['DataTypeEnum'] = {
434
484
  * @const
435
485
  */
436
486
  "TokenListing": "TokenListing",
487
+ /**
488
+ * value: "BalanceUpdateInfo"
489
+ * @const
490
+ */
491
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
437
492
  /**
438
493
  * value: "PaymentOrder"
439
494
  * @const
@@ -38,7 +38,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
38
38
  * @alias module:model/PaymentSettlementEvent
39
39
  * @implements module:model/WebhookEventDataType
40
40
  * @implements module:model/Settlement
41
- * @param data_type {module:model/PaymentSettlementEvent.DataTypeEnum} 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.
41
+ * @param data_type {module:model/PaymentSettlementEvent.DataTypeEnum} 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
42
42
  * @param settlement_request_id {String} The settlement request ID generated by Cobo.
43
43
  * @param request_id {String} The request ID provided by you when creating the settlement request.
44
44
  * @param status {module:model/SettleRequestStatus}
@@ -175,7 +175,7 @@ var PaymentSettlementEvent = /*#__PURE__*/function () {
175
175
  PaymentSettlementEvent.RequiredProperties = ["data_type", "settlement_request_id", "request_id", "status", "settlements"];
176
176
 
177
177
  /**
178
- * 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.
178
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
179
179
  * @member {module:model/PaymentSettlementEvent.DataTypeEnum} data_type
180
180
  */
181
181
  PaymentSettlementEvent.prototype['data_type'] = undefined;
@@ -203,26 +203,26 @@ PaymentSettlementEvent.prototype['status'] = undefined;
203
203
  PaymentSettlementEvent.prototype['settlements'] = undefined;
204
204
 
205
205
  /**
206
- * The created time of the settlement request, represented as a UNIX timestamp in seconds.
206
+ * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
207
207
  * @member {Number} created_timestamp
208
208
  */
209
209
  PaymentSettlementEvent.prototype['created_timestamp'] = undefined;
210
210
 
211
211
  /**
212
- * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
212
+ * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
213
213
  * @member {Number} updated_timestamp
214
214
  */
215
215
  PaymentSettlementEvent.prototype['updated_timestamp'] = undefined;
216
216
 
217
217
  /**
218
- * The initiator of this settlement request, usually the user's API key.
218
+ * 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.
219
219
  * @member {String} initiator
220
220
  */
221
221
  PaymentSettlementEvent.prototype['initiator'] = undefined;
222
222
 
223
223
  // Implement WebhookEventDataType interface:
224
224
  /**
225
- * 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.
225
+ * 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. - `BalanceUpdateInfo`: The balance update event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data.
226
226
  * @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
227
227
  */
228
228
  _WebhookEventDataType["default"].prototype['data_type'] = undefined;
@@ -246,17 +246,17 @@ _Settlement["default"].prototype['status'] = undefined;
246
246
  */
247
247
  _Settlement["default"].prototype['settlements'] = undefined;
248
248
  /**
249
- * The created time of the settlement request, represented as a UNIX timestamp in seconds.
249
+ * The creation time of the settlement request, represented as a UNIX timestamp in seconds.
250
250
  * @member {Number} created_timestamp
251
251
  */
252
252
  _Settlement["default"].prototype['created_timestamp'] = undefined;
253
253
  /**
254
- * The updated time of the settlement request, represented as a UNIX timestamp in seconds.
254
+ * The last update time of the settlement request, represented as a UNIX timestamp in seconds.
255
255
  * @member {Number} updated_timestamp
256
256
  */
257
257
  _Settlement["default"].prototype['updated_timestamp'] = undefined;
258
258
  /**
259
- * The initiator of this settlement request, usually the user's API key.
259
+ * 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.
260
260
  * @member {String} initiator
261
261
  */
262
262
  _Settlement["default"].prototype['initiator'] = undefined;
@@ -307,6 +307,11 @@ PaymentSettlementEvent['DataTypeEnum'] = {
307
307
  * @const
308
308
  */
309
309
  "TokenListing": "TokenListing",
310
+ /**
311
+ * value: "BalanceUpdateInfo"
312
+ * @const
313
+ */
314
+ "BalanceUpdateInfo": "BalanceUpdateInfo",
310
315
  /**
311
316
  * value: "PaymentOrder"
312
317
  * @const
@@ -0,0 +1,61 @@
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 PayoutChannel.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var PayoutChannel = exports["default"] = /*#__PURE__*/function () {
31
+ function PayoutChannel() {
32
+ _classCallCheck(this, PayoutChannel);
33
+ /**
34
+ * value: "Crypto"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Crypto", "Crypto");
38
+ /**
39
+ * value: "OffRamp"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "OffRamp", "OffRamp");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(PayoutChannel, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>PayoutChannel</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/PayoutChannel} The enum <code>PayoutChannel</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var PolicyAction = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>PolicyAction</code>.
36
- * The information of an app workflow policy action, content is valuable when action_type is Quorum.
36
+ * The action to be executed when the policy conditions are satisfied.
37
37
  * @alias module:model/PolicyAction
38
38
  * @param action_type {module:model/PolicyActionType}
39
39
  */
@@ -31,9 +31,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  var PolicyActionContent = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>PolicyActionContent</code>.
34
- * The information of an app workflow policy quorum action content.
34
+ * The definition of the quorum action. This property is applicable only when &#x60;action_type&#x60; is &#x60;Quorum&#x60;.
35
35
  * @alias module:model/PolicyActionContent
36
- * @param type {module:model/PolicyActionContent.TypeEnum} The quorum action content type. Possible values include: - `FULL_APPROVAL`: The content type is approved by all persons. - `PART_APPROVAL`: The content type is approved by some persons.
36
+ * @param type {module:model/PolicyActionContent.TypeEnum} The quorum type. Possible values include: - `FULL_APPROVAL`: Requires approval from all participants. - `PART_APPROVAL`: Requires approval from a specified number of participants.
37
37
  */
38
38
  function PolicyActionContent(type) {
39
39
  _classCallCheck(this, PolicyActionContent);
@@ -121,23 +121,25 @@ var PolicyActionContent = /*#__PURE__*/function () {
121
121
  PolicyActionContent.RequiredProperties = ["type"];
122
122
 
123
123
  /**
124
- * The quorum action content type. Possible values include: - `FULL_APPROVAL`: The content type is approved by all persons. - `PART_APPROVAL`: The content type is approved by some persons.
124
+ * The quorum type. Possible values include: - `FULL_APPROVAL`: Requires approval from all participants. - `PART_APPROVAL`: Requires approval from a specified number of participants.
125
125
  * @member {module:model/PolicyActionContent.TypeEnum} type
126
126
  */
127
127
  PolicyActionContent.prototype['type'] = undefined;
128
128
 
129
129
  /**
130
+ * The roles included in the quorum. Possible values include `admin`, `spender`, `operator`, and `approver`.
130
131
  * @member {Array.<String>} roles
131
132
  */
132
133
  PolicyActionContent.prototype['roles'] = undefined;
133
134
 
134
135
  /**
136
+ * The ID of the users included in the quorum.
135
137
  * @member {Array.<String>} user_ids
136
138
  */
137
139
  PolicyActionContent.prototype['user_ids'] = undefined;
138
140
 
139
141
  /**
140
- * The number of persons need approved, such as 2.
142
+ * The number of approvers required to meet the quorum.
141
143
  * @member {Number} threshold
142
144
  */
143
145
  PolicyActionContent.prototype['threshold'] = undefined;
@@ -33,11 +33,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var PolicyCondition = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>PolicyCondition</code>.
36
- * The information of an app workflow policy condition.
36
+ * A condition that defines under what circumstances the policy’s action should be triggered.
37
37
  * @alias module:model/PolicyCondition
38
- * @param field {String} The app workflow field name.
38
+ * @param field {String} The field name.
39
39
  * @param value_type {module:model/PolicyFieldValueType}
40
- * @param value {String} The app workflow field value.
40
+ * @param value {String} The field value.
41
41
  * @param operator {module:model/PolicyFieldOperator}
42
42
  */
43
43
  function PolicyCondition(field, value_type, value, operator) {
@@ -125,7 +125,7 @@ var PolicyCondition = /*#__PURE__*/function () {
125
125
  PolicyCondition.RequiredProperties = ["field", "value_type", "value", "operator"];
126
126
 
127
127
  /**
128
- * The app workflow field name.
128
+ * The field name.
129
129
  * @member {String} field
130
130
  */
131
131
  PolicyCondition.prototype['field'] = undefined;
@@ -136,7 +136,7 @@ PolicyCondition.prototype['field'] = undefined;
136
136
  PolicyCondition.prototype['value_type'] = undefined;
137
137
 
138
138
  /**
139
- * The app workflow field value.
139
+ * The field value.
140
140
  * @member {String} value
141
141
  */
142
142
  PolicyCondition.prototype['value'] = undefined;