@cobo/cobo-waas2 1.34.0 → 1.36.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 (71) hide show
  1. package/README.md +28 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/PaymentApi.js +126 -91
  4. package/dist/api/TravelRuleApi.js +293 -6
  5. package/dist/index.js +133 -7
  6. package/dist/model/AddressVerification.js +172 -0
  7. package/dist/model/AddressVerificationDetail.js +204 -0
  8. package/dist/model/AddressVerificationDetailSatoshiTestDetail.js +299 -0
  9. package/dist/model/AddressVerificationDetailSignatureDetail.js +172 -0
  10. package/dist/model/AddressVerificationMethod.js +61 -0
  11. package/dist/model/AddressVerificationStatus.js +66 -0
  12. package/dist/model/ApprovalUserDetail.js +9 -0
  13. package/dist/model/{UpdateBankAccountByIdRequest.js → CancelSatoshiTestChallengeRequest.js} +31 -28
  14. package/dist/model/ChainInfo.js +13 -0
  15. package/dist/model/CreateBulkSendRequest.js +13 -0
  16. package/dist/model/CreateSatoshiTestChallengeRequest.js +176 -0
  17. package/dist/model/GetTransactionLimitation200Response.js +10 -1
  18. package/dist/model/ListAddressVerifications200Response.js +147 -0
  19. package/dist/model/ListBulkSends200Response.js +123 -0
  20. package/dist/model/ListPayerTransactions200Response.js +123 -0
  21. package/dist/model/ListTopUpPayers200ResponseDataInner.js +14 -1
  22. package/dist/model/OrderLinkBusinessInfo.js +2 -2
  23. package/dist/model/OriginalMainGroupHandling.js +61 -0
  24. package/dist/model/PaymentBulkSend.js +13 -0
  25. package/dist/model/PaymentBulkSendEvent.js +18 -0
  26. package/dist/model/SatoshiTestCancelResult.js +144 -0
  27. package/dist/model/SatoshiTestChallenge.js +239 -0
  28. package/dist/model/SatoshiTestChallengeAction.js +61 -0
  29. package/dist/model/SatoshiTestChallengeStatus.js +81 -0
  30. package/dist/model/SignatureChallenge.js +137 -0
  31. package/dist/model/SignatureDetail.js +146 -0
  32. package/dist/model/TransactionCoboCategory.js +20 -0
  33. package/dist/model/TravelRuleTransactionType.js +61 -0
  34. package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +9 -0
  35. package/dist/model/WebhookEventData.js +1 -1
  36. package/dist/model/WebhookEventType.js +5 -0
  37. package/docs/AddressVerification.md +14 -0
  38. package/docs/AddressVerificationDetail.md +16 -0
  39. package/docs/AddressVerificationDetailSatoshiTestDetail.md +19 -0
  40. package/docs/AddressVerificationDetailSignatureDetail.md +12 -0
  41. package/docs/AddressVerificationMethod.md +12 -0
  42. package/docs/AddressVerificationStatus.md +14 -0
  43. package/docs/ApprovalUserDetail.md +1 -0
  44. package/docs/CancelSatoshiTestChallengeRequest.md +9 -0
  45. package/docs/ChainInfo.md +1 -0
  46. package/docs/CreateBulkSendRequest.md +1 -0
  47. package/docs/CreateSatoshiTestChallengeRequest.md +14 -0
  48. package/docs/GetTransactionLimitation200Response.md +2 -1
  49. package/docs/ListAddressVerifications200Response.md +10 -0
  50. package/docs/ListBulkSends200Response.md +10 -0
  51. package/docs/ListPayerTransactions200Response.md +10 -0
  52. package/docs/ListTopUpPayers200ResponseDataInner.md +2 -1
  53. package/docs/OrderLinkBusinessInfo.md +1 -1
  54. package/docs/OriginalMainGroupHandling.md +12 -0
  55. package/docs/PaymentApi.md +107 -83
  56. package/docs/PaymentBulkSend.md +1 -0
  57. package/docs/PaymentBulkSendEvent.md +1 -0
  58. package/docs/SatoshiTestCancelResult.md +21 -0
  59. package/docs/SatoshiTestChallenge.md +19 -0
  60. package/docs/SatoshiTestChallengeAction.md +12 -0
  61. package/docs/SatoshiTestChallengeStatus.md +20 -0
  62. package/docs/SignatureChallenge.md +11 -0
  63. package/docs/SignatureDetail.md +12 -0
  64. package/docs/TransactionCoboCategory.md +8 -0
  65. package/docs/TravelRuleApi.md +325 -1
  66. package/docs/TravelRuleTransactionType.md +12 -0
  67. package/docs/UpdateKeyShareHolderGroupByIdRequest.md +1 -0
  68. package/docs/WebhookEventData.md +1 -1
  69. package/docs/WebhookEventType.md +2 -0
  70. package/package.json +1 -1
  71. package/docs/UpdateBankAccountByIdRequest.md +0 -9
package/README.md CHANGED
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: v2
18
- - Package version: 1.34.0
18
+ - Package version: 1.36.0
19
19
  - Generator version: 7.6.0
20
20
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
21
21
  For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -162,9 +162,9 @@ Class | Method | HTTP request | Description
162
162
  *CoboWaas2.PaymentApi* | [**getSettlementInfoByIds**](docs/PaymentApi.md#getSettlementInfoByIds) | **GET** /payments/settlement_info | Get withdrawable balances
163
163
  *CoboWaas2.PaymentApi* | [**getTopUpAddress**](docs/PaymentApi.md#getTopUpAddress) | **GET** /payments/topup/address | Create/Get top-up address
164
164
  *CoboWaas2.PaymentApi* | [**listAllocationItems**](docs/PaymentApi.md#listAllocationItems) | **GET** /payments/allocation_items | List all allocation items
165
- *CoboWaas2.PaymentApi* | [**listBankAccounts**](docs/PaymentApi.md#listBankAccounts) | **GET** /payments/bank_accounts | List all bank accounts
166
165
  *CoboWaas2.PaymentApi* | [**listBatchAllocations**](docs/PaymentApi.md#listBatchAllocations) | **GET** /payments/batch_allocations | List all batch allocations
167
166
  *CoboWaas2.PaymentApi* | [**listBulkSendItems**](docs/PaymentApi.md#listBulkSendItems) | **GET** /payments/bulk_sends/{bulk_send_id}/items | List bulk send items
167
+ *CoboWaas2.PaymentApi* | [**listBulkSends**](docs/PaymentApi.md#listBulkSends) | **GET** /payments/bulk_sends | List bulk sends
168
168
  *CoboWaas2.PaymentApi* | [**listCounterparties**](docs/PaymentApi.md#listCounterparties) | **GET** /payments/counterparty | List all counterparties
169
169
  *CoboWaas2.PaymentApi* | [**listCounterpartyEntries**](docs/PaymentApi.md#listCounterpartyEntries) | **GET** /payments/counterparty_entry | List counterparty entries
170
170
  *CoboWaas2.PaymentApi* | [**listCryptoAddresses**](docs/PaymentApi.md#listCryptoAddresses) | **GET** /payments/crypto_addresses | List crypto addresses
@@ -173,6 +173,7 @@ Class | Method | HTTP request | Description
173
173
  *CoboWaas2.PaymentApi* | [**listForcedSweepRequests**](docs/PaymentApi.md#listForcedSweepRequests) | **GET** /payments/force_sweep_requests | List forced sweeps
174
174
  *CoboWaas2.PaymentApi* | [**listMerchantBalances**](docs/PaymentApi.md#listMerchantBalances) | **GET** /payments/balance/merchants | List merchant balances
175
175
  *CoboWaas2.PaymentApi* | [**listMerchants**](docs/PaymentApi.md#listMerchants) | **GET** /payments/merchants | List all merchants
176
+ *CoboWaas2.PaymentApi* | [**listPayerTransactions**](docs/PaymentApi.md#listPayerTransactions) | **GET** /payments/topup/payers/transactions | List payer transactions
176
177
  *CoboWaas2.PaymentApi* | [**listPaymentOrders**](docs/PaymentApi.md#listPaymentOrders) | **GET** /payments/orders | List all pay-in orders
177
178
  *CoboWaas2.PaymentApi* | [**listPaymentSupportedTokens**](docs/PaymentApi.md#listPaymentSupportedTokens) | **GET** /payments/supported_tokens | List supported tokens
178
179
  *CoboWaas2.PaymentApi* | [**listPaymentWalletBalances**](docs/PaymentApi.md#listPaymentWalletBalances) | **GET** /payments/balance/payment_wallets | List payment wallet balances
@@ -183,7 +184,6 @@ Class | Method | HTTP request | Description
183
184
  *CoboWaas2.PaymentApi* | [**listTopUpPayers**](docs/PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
184
185
  *CoboWaas2.PaymentApi* | [**paymentEstimateFee**](docs/PaymentApi.md#paymentEstimateFee) | **POST** /payments/estimate_fee | Estimate fees
185
186
  *CoboWaas2.PaymentApi* | [**triggerTestPaymentsWebhookEvent**](docs/PaymentApi.md#triggerTestPaymentsWebhookEvent) | **POST** /payments/webhooks/trigger | Trigger test webhook event
186
- *CoboWaas2.PaymentApi* | [**updateBankAccountById**](docs/PaymentApi.md#updateBankAccountById) | **PUT** /payments/bank_accounts/{bank_account_id} | Update bank account
187
187
  *CoboWaas2.PaymentApi* | [**updateCounterparty**](docs/PaymentApi.md#updateCounterparty) | **PUT** /payments/counterparty/{counterparty_id} | Update counterparty
188
188
  *CoboWaas2.PaymentApi* | [**updateDestination**](docs/PaymentApi.md#updateDestination) | **PUT** /payments/destination/{destination_id} | Update destination
189
189
  *CoboWaas2.PaymentApi* | [**updateDestinationEntry**](docs/PaymentApi.md#updateDestinationEntry) | **PUT** /payments/destination_entry/{destination_entry_id} | Update destination entry
@@ -262,7 +262,13 @@ Class | Method | HTTP request | Description
262
262
  *CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
263
263
  *CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
264
264
  *CoboWaas2.TransactionsApi* | [**speedupTransactionById**](docs/TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
265
+ *CoboWaas2.TravelRuleApi* | [**cancelSatoshiTestChallenge**](docs/TravelRuleApi.md#cancelSatoshiTestChallenge) | **POST** /travel_rule/satoshi_test/challenge/cancel | Cancel Satoshi Test challenge
266
+ *CoboWaas2.TravelRuleApi* | [**createSatoshiTestChallenge**](docs/TravelRuleApi.md#createSatoshiTestChallenge) | **POST** /travel_rule/satoshi_test/challenge | Create Satoshi Test challenge
267
+ *CoboWaas2.TravelRuleApi* | [**getAddressVerification**](docs/TravelRuleApi.md#getAddressVerification) | **GET** /travel_rule/address_verifications/{verification_id} | Get address verification
268
+ *CoboWaas2.TravelRuleApi* | [**getSatoshiTestChallenge**](docs/TravelRuleApi.md#getSatoshiTestChallenge) | **GET** /travel_rule/satoshi_test/challenge/status | Get Satoshi Test challenge
269
+ *CoboWaas2.TravelRuleApi* | [**getSignatureChallenge**](docs/TravelRuleApi.md#getSignatureChallenge) | **GET** /travel_rule/signature_challenge | Get self-custody signature challenge
265
270
  *CoboWaas2.TravelRuleApi* | [**getTransactionLimitation**](docs/TravelRuleApi.md#getTransactionLimitation) | **GET** /travel_rule/transaction/limitation | Retrieve transaction limitations
271
+ *CoboWaas2.TravelRuleApi* | [**listAddressVerifications**](docs/TravelRuleApi.md#listAddressVerifications) | **GET** /travel_rule/address_verifications | List address verifications
266
272
  *CoboWaas2.TravelRuleApi* | [**listSupportedCountries**](docs/TravelRuleApi.md#listSupportedCountries) | **GET** /travel_rule/transaction/countries | List supported countries
267
273
  *CoboWaas2.TravelRuleApi* | [**submitDepositTravelRuleInfo**](docs/TravelRuleApi.md#submitDepositTravelRuleInfo) | **POST** /travel_rule/transaction/deposit/travel_rule_info | Submit Travel Rule information for deposits
268
274
  *CoboWaas2.TravelRuleApi* | [**submitWithdrawTravelRuleInfo**](docs/TravelRuleApi.md#submitWithdrawTravelRuleInfo) | **POST** /travel_rule/transaction/withdraw/travel_rule_info | Submit Travel Rule information for withdrawals
@@ -342,6 +348,12 @@ Class | Method | HTTP request | Description
342
348
  - [CoboWaas2.AddressTransferDestination](docs/AddressTransferDestination.md)
343
349
  - [CoboWaas2.AddressTransferDestinationAccountOutput](docs/AddressTransferDestinationAccountOutput.md)
344
350
  - [CoboWaas2.AddressTransferDestinationUtxoOutputsInner](docs/AddressTransferDestinationUtxoOutputsInner.md)
351
+ - [CoboWaas2.AddressVerification](docs/AddressVerification.md)
352
+ - [CoboWaas2.AddressVerificationDetail](docs/AddressVerificationDetail.md)
353
+ - [CoboWaas2.AddressVerificationDetailSatoshiTestDetail](docs/AddressVerificationDetailSatoshiTestDetail.md)
354
+ - [CoboWaas2.AddressVerificationDetailSignatureDetail](docs/AddressVerificationDetailSignatureDetail.md)
355
+ - [CoboWaas2.AddressVerificationMethod](docs/AddressVerificationMethod.md)
356
+ - [CoboWaas2.AddressVerificationStatus](docs/AddressVerificationStatus.md)
345
357
  - [CoboWaas2.AddressesEventData](docs/AddressesEventData.md)
346
358
  - [CoboWaas2.AddressesEventDataAllOfAddresses](docs/AddressesEventDataAllOfAddresses.md)
347
359
  - [CoboWaas2.AllocationItem](docs/AllocationItem.md)
@@ -401,6 +413,7 @@ Class | Method | HTTP request | Description
401
413
  - [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
402
414
  - [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
403
415
  - [CoboWaas2.CallbackMessage](docs/CallbackMessage.md)
416
+ - [CoboWaas2.CancelSatoshiTestChallengeRequest](docs/CancelSatoshiTestChallengeRequest.md)
404
417
  - [CoboWaas2.ChainInfo](docs/ChainInfo.md)
405
418
  - [CoboWaas2.ChainsEventData](docs/ChainsEventData.md)
406
419
  - [CoboWaas2.ChangeGuardPubkey200Response](docs/ChangeGuardPubkey200Response.md)
@@ -470,6 +483,7 @@ Class | Method | HTTP request | Description
470
483
  - [CoboWaas2.CreateRefundRequest](docs/CreateRefundRequest.md)
471
484
  - [CoboWaas2.CreateReportRequest](docs/CreateReportRequest.md)
472
485
  - [CoboWaas2.CreateSafeWalletParams](docs/CreateSafeWalletParams.md)
486
+ - [CoboWaas2.CreateSatoshiTestChallengeRequest](docs/CreateSatoshiTestChallengeRequest.md)
473
487
  - [CoboWaas2.CreateSettlement](docs/CreateSettlement.md)
474
488
  - [CoboWaas2.CreateSettlementRequestRequest](docs/CreateSettlementRequestRequest.md)
475
489
  - [CoboWaas2.CreateSmartContractWalletParams](docs/CreateSmartContractWalletParams.md)
@@ -634,6 +648,7 @@ Class | Method | HTTP request | Description
634
648
  - [CoboWaas2.LinkDisplayInfo](docs/LinkDisplayInfo.md)
635
649
  - [CoboWaas2.ListAddressBalancesByToken200Response](docs/ListAddressBalancesByToken200Response.md)
636
650
  - [CoboWaas2.ListAddressBooks200Response](docs/ListAddressBooks200Response.md)
651
+ - [CoboWaas2.ListAddressVerifications200Response](docs/ListAddressVerifications200Response.md)
637
652
  - [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
638
653
  - [CoboWaas2.ListAllocationItems200Response](docs/ListAllocationItems200Response.md)
639
654
  - [CoboWaas2.ListApprovalRequests200Response](docs/ListApprovalRequests200Response.md)
@@ -646,6 +661,7 @@ Class | Method | HTTP request | Description
646
661
  - [CoboWaas2.ListBabylonStakingRegistrations200Response](docs/ListBabylonStakingRegistrations200Response.md)
647
662
  - [CoboWaas2.ListBatchAllocations200Response](docs/ListBatchAllocations200Response.md)
648
663
  - [CoboWaas2.ListBulkSendItems200Response](docs/ListBulkSendItems200Response.md)
664
+ - [CoboWaas2.ListBulkSends200Response](docs/ListBulkSends200Response.md)
649
665
  - [CoboWaas2.ListCallbackMessages200Response](docs/ListCallbackMessages200Response.md)
650
666
  - [CoboWaas2.ListCounterparties200Response](docs/ListCounterparties200Response.md)
651
667
  - [CoboWaas2.ListCounterpartyEntries200Response](docs/ListCounterpartyEntries200Response.md)
@@ -661,6 +677,7 @@ Class | Method | HTTP request | Description
661
677
  - [CoboWaas2.ListMerchants200Response](docs/ListMerchants200Response.md)
662
678
  - [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
663
679
  - [CoboWaas2.ListMpcVaults200Response](docs/ListMpcVaults200Response.md)
680
+ - [CoboWaas2.ListPayerTransactions200Response](docs/ListPayerTransactions200Response.md)
664
681
  - [CoboWaas2.ListPaymentOrders200Response](docs/ListPaymentOrders200Response.md)
665
682
  - [CoboWaas2.ListPaymentWalletBalances200Response](docs/ListPaymentWalletBalances200Response.md)
666
683
  - [CoboWaas2.ListPayouts200Response](docs/ListPayouts200Response.md)
@@ -722,6 +739,7 @@ Class | Method | HTTP request | Description
722
739
  - [CoboWaas2.OrderLinkBusinessInfoPayableAmountsInner](docs/OrderLinkBusinessInfoPayableAmountsInner.md)
723
740
  - [CoboWaas2.OrderStatus](docs/OrderStatus.md)
724
741
  - [CoboWaas2.OrgInfo](docs/OrgInfo.md)
742
+ - [CoboWaas2.OriginalMainGroupHandling](docs/OriginalMainGroupHandling.md)
725
743
  - [CoboWaas2.OtcFee](docs/OtcFee.md)
726
744
  - [CoboWaas2.Pagination](docs/Pagination.md)
727
745
  - [CoboWaas2.PayerAccount](docs/PayerAccount.md)
@@ -805,6 +823,10 @@ Class | Method | HTTP request | Description
805
823
  - [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
806
824
  - [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
807
825
  - [CoboWaas2.SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
826
+ - [CoboWaas2.SatoshiTestCancelResult](docs/SatoshiTestCancelResult.md)
827
+ - [CoboWaas2.SatoshiTestChallenge](docs/SatoshiTestChallenge.md)
828
+ - [CoboWaas2.SatoshiTestChallengeAction](docs/SatoshiTestChallengeAction.md)
829
+ - [CoboWaas2.SatoshiTestChallengeStatus](docs/SatoshiTestChallengeStatus.md)
808
830
  - [CoboWaas2.Scopes](docs/Scopes.md)
809
831
  - [CoboWaas2.SelectedEntityType](docs/SelectedEntityType.md)
810
832
  - [CoboWaas2.SelfCustodyWallet](docs/SelfCustodyWallet.md)
@@ -814,6 +836,8 @@ Class | Method | HTTP request | Description
814
836
  - [CoboWaas2.SettlementDetail](docs/SettlementDetail.md)
815
837
  - [CoboWaas2.SettlementInfo](docs/SettlementInfo.md)
816
838
  - [CoboWaas2.SettlementType](docs/SettlementType.md)
839
+ - [CoboWaas2.SignatureChallenge](docs/SignatureChallenge.md)
840
+ - [CoboWaas2.SignatureDetail](docs/SignatureDetail.md)
817
841
  - [CoboWaas2.SkipCheckType](docs/SkipCheckType.md)
818
842
  - [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
819
843
  - [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
@@ -1088,6 +1112,7 @@ Class | Method | HTTP request | Description
1088
1112
  - [CoboWaas2.TravelRuleDepositNaturalEntity](docs/TravelRuleDepositNaturalEntity.md)
1089
1113
  - [CoboWaas2.TravelRuleDepositRequest](docs/TravelRuleDepositRequest.md)
1090
1114
  - [CoboWaas2.TravelRuleDepositRequestTravelRuleInfo](docs/TravelRuleDepositRequestTravelRuleInfo.md)
1115
+ - [CoboWaas2.TravelRuleTransactionType](docs/TravelRuleTransactionType.md)
1091
1116
  - [CoboWaas2.TravelRuleWithdrawExchangesOrVASP](docs/TravelRuleWithdrawExchangesOrVASP.md)
1092
1117
  - [CoboWaas2.TravelRuleWithdrawExchangesOrVASPEntityInfo](docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md)
1093
1118
  - [CoboWaas2.TravelRuleWithdrawLegalEntity](docs/TravelRuleWithdrawLegalEntity.md)
@@ -1102,7 +1127,6 @@ Class | Method | HTTP request | Description
1102
1127
  - [CoboWaas2.UTXO](docs/UTXO.md)
1103
1128
  - [CoboWaas2.UnfreezeDisposition](docs/UnfreezeDisposition.md)
1104
1129
  - [CoboWaas2.UpdateAddressBookParam](docs/UpdateAddressBookParam.md)
1105
- - [CoboWaas2.UpdateBankAccountByIdRequest](docs/UpdateBankAccountByIdRequest.md)
1106
1130
  - [CoboWaas2.UpdateCounterpartyRequest](docs/UpdateCounterpartyRequest.md)
1107
1131
  - [CoboWaas2.UpdateCustodialWalletParams](docs/UpdateCustodialWalletParams.md)
1108
1132
  - [CoboWaas2.UpdateDestinationBankAccount](docs/UpdateDestinationBankAccount.md)
package/dist/ApiClient.js CHANGED
@@ -102,7 +102,7 @@ var ApiClient = /*#__PURE__*/function () {
102
102
  * @default {}
103
103
  */
104
104
  this.defaultHeaders = {
105
- 'User-Agent': 'cobo-waas2-js-sdk/1.34.0'
105
+ 'User-Agent': 'cobo-waas2-js-sdk/1.36.0'
106
106
  };
107
107
 
108
108
  /**
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AcquiringType = _interopRequireDefault(require("../model/AcquiringType"));
9
- var _BankAccount = _interopRequireDefault(require("../model/BankAccount"));
10
9
  var _BankAccountStatus = _interopRequireDefault(require("../model/BankAccountStatus"));
11
10
  var _BatchAllocation = _interopRequireDefault(require("../model/BatchAllocation"));
12
11
  var _BatchAllocationDetail = _interopRequireDefault(require("../model/BatchAllocationDetail"));
@@ -56,6 +55,7 @@ var _Link = _interopRequireDefault(require("../model/Link"));
56
55
  var _ListAllocationItems200Response = _interopRequireDefault(require("../model/ListAllocationItems200Response"));
57
56
  var _ListBatchAllocations200Response = _interopRequireDefault(require("../model/ListBatchAllocations200Response"));
58
57
  var _ListBulkSendItems200Response = _interopRequireDefault(require("../model/ListBulkSendItems200Response"));
58
+ var _ListBulkSends200Response = _interopRequireDefault(require("../model/ListBulkSends200Response"));
59
59
  var _ListCounterparties200Response = _interopRequireDefault(require("../model/ListCounterparties200Response"));
60
60
  var _ListCounterpartyEntries200Response = _interopRequireDefault(require("../model/ListCounterpartyEntries200Response"));
61
61
  var _ListDestinationEntries200Response = _interopRequireDefault(require("../model/ListDestinationEntries200Response"));
@@ -63,6 +63,7 @@ var _ListDestinations200Response = _interopRequireDefault(require("../model/List
63
63
  var _ListForcedSweepRequests200Response = _interopRequireDefault(require("../model/ListForcedSweepRequests200Response"));
64
64
  var _ListMerchantBalances200Response = _interopRequireDefault(require("../model/ListMerchantBalances200Response"));
65
65
  var _ListMerchants200Response = _interopRequireDefault(require("../model/ListMerchants200Response"));
66
+ var _ListPayerTransactions200Response = _interopRequireDefault(require("../model/ListPayerTransactions200Response"));
66
67
  var _ListPaymentOrders200Response = _interopRequireDefault(require("../model/ListPaymentOrders200Response"));
67
68
  var _ListPaymentWalletBalances200Response = _interopRequireDefault(require("../model/ListPaymentWalletBalances200Response"));
68
69
  var _ListPayouts200Response = _interopRequireDefault(require("../model/ListPayouts200Response"));
@@ -88,7 +89,6 @@ var _SupportedToken = _interopRequireDefault(require("../model/SupportedToken"))
88
89
  var _TopUpAddress = _interopRequireDefault(require("../model/TopUpAddress"));
89
90
  var _TriggerTestPaymentWebhookEventResponse = _interopRequireDefault(require("../model/TriggerTestPaymentWebhookEventResponse"));
90
91
  var _TriggerTestPaymentsWebhookEventRequest = _interopRequireDefault(require("../model/TriggerTestPaymentsWebhookEventRequest"));
91
- var _UpdateBankAccountByIdRequest = _interopRequireDefault(require("../model/UpdateBankAccountByIdRequest"));
92
92
  var _UpdateCounterpartyRequest = _interopRequireDefault(require("../model/UpdateCounterpartyRequest"));
93
93
  var _UpdateDestinationEntry200Response = _interopRequireDefault(require("../model/UpdateDestinationEntry200Response"));
94
94
  var _UpdateDestinationEntryRequest = _interopRequireDefault(require("../model/UpdateDestinationEntryRequest"));
@@ -1982,7 +1982,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
1982
1982
  * Create/Get top-up address
1983
1983
  * This operation creates or retrieves a unique top-up address for a payer. In the request, you need to provide the `custom_payer_id` parameter to identify the payer in your system and link them to the top-up address. - If no address exists for the payer on the specified chain, a new address will be created and returned. - If an address already exists for the payer on the specified chain, the existing address details will be returned. You can also provide the `merchant_id` parameter to specify the merchant to which the payer belongs. If not provided, the default merchant will be used.
1984
1984
  * @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
1985
- * @param {String} custom_payer_id A unique identifier to track and identify individual payers in your system.
1985
+ * @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
1986
1986
  * @param {Object} opts Optional parameters
1987
1987
  * @param {String} [merchant_id] The merchant ID.
1988
1988
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TopUpAddress} and HTTP response
@@ -2022,7 +2022,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2022
2022
  * Create/Get top-up address
2023
2023
  * This operation creates or retrieves a unique top-up address for a payer. In the request, you need to provide the `custom_payer_id` parameter to identify the payer in your system and link them to the top-up address. - If no address exists for the payer on the specified chain, a new address will be created and returned. - If an address already exists for the payer on the specified chain, the existing address details will be returned. You can also provide the `merchant_id` parameter to specify the merchant to which the payer belongs. If not provided, the default merchant will be used.
2024
2024
  * @param {String} token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2025
- * @param {String} custom_payer_id A unique identifier to track and identify individual payers in your system.
2025
+ * @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
2026
2026
  * @param {Object} opts Optional parameters
2027
2027
  * @param {String} opts.merchant_id The merchant ID.
2028
2028
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TopUpAddress}
@@ -2096,42 +2096,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2096
2096
  });
2097
2097
  }
2098
2098
 
2099
- /**
2100
- * List all bank accounts
2101
- * <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
2102
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/BankAccount>} and HTTP response
2103
- */
2104
- }, {
2105
- key: "listBankAccountsWithHttpInfo",
2106
- value: function listBankAccountsWithHttpInfo() {
2107
- var postBody = null;
2108
- if (postBody && postBody.toJSON) {
2109
- postBody = postBody.toJSON();
2110
- }
2111
- var pathParams = {};
2112
- var queryParams = {};
2113
- var headerParams = {};
2114
- var formParams = {};
2115
- var authNames = ['OAuth2', 'CoboAuth'];
2116
- var contentTypes = [];
2117
- var accepts = ['application/json'];
2118
- var returnType = [_BankAccount["default"]];
2119
- return this.apiClient.callApi('/payments/bank_accounts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2120
- }
2121
-
2122
- /**
2123
- * List all bank accounts
2124
- * <Note>This operation has been deprecated. Please use [List counterparty entries](https://www.cobo.com/payments/en/api-references/payment/list-counterparty-entries) instead.</Note> This operation retrieves the information of all bank accounts registered.
2125
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/BankAccount>}
2126
- */
2127
- }, {
2128
- key: "listBankAccounts",
2129
- value: function listBankAccounts() {
2130
- return this.listBankAccountsWithHttpInfo().then(function (response_and_data) {
2131
- return response_and_data.data;
2132
- });
2133
- }
2134
-
2135
2099
  /**
2136
2100
  * List all batch allocations
2137
2101
  * This operation retrieves the information of all batch allocations.
@@ -2241,6 +2205,58 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2241
2205
  });
2242
2206
  }
2243
2207
 
2208
+ /**
2209
+ * List bulk sends
2210
+ * This operation retrieves the list of bulk sends.
2211
+ * @param {Object} opts Optional parameters
2212
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2213
+ * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2214
+ * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2215
+ * @param {String} [request_id] The request ID.
2216
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBulkSends200Response} and HTTP response
2217
+ */
2218
+ }, {
2219
+ key: "listBulkSendsWithHttpInfo",
2220
+ value: function listBulkSendsWithHttpInfo(opts) {
2221
+ opts = opts || {};
2222
+ var postBody = null;
2223
+ if (postBody && postBody.toJSON) {
2224
+ postBody = postBody.toJSON();
2225
+ }
2226
+ var pathParams = {};
2227
+ var queryParams = {
2228
+ 'limit': opts['limit'],
2229
+ 'before': opts['before'],
2230
+ 'after': opts['after'],
2231
+ 'request_id': opts['request_id']
2232
+ };
2233
+ var headerParams = {};
2234
+ var formParams = {};
2235
+ var authNames = ['OAuth2', 'CoboAuth'];
2236
+ var contentTypes = [];
2237
+ var accepts = ['application/json'];
2238
+ var returnType = _ListBulkSends200Response["default"];
2239
+ return this.apiClient.callApi('/payments/bulk_sends', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2240
+ }
2241
+
2242
+ /**
2243
+ * List bulk sends
2244
+ * This operation retrieves the list of bulk sends.
2245
+ * @param {Object} opts Optional parameters
2246
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2247
+ * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2248
+ * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2249
+ * @param {String} opts.request_id The request ID.
2250
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBulkSends200Response}
2251
+ */
2252
+ }, {
2253
+ key: "listBulkSends",
2254
+ value: function listBulkSends(opts) {
2255
+ return this.listBulkSendsWithHttpInfo(opts).then(function (response_and_data) {
2256
+ return response_and_data.data;
2257
+ });
2258
+ }
2259
+
2244
2260
  /**
2245
2261
  * List all counterparties
2246
2262
  * This operation retrieves the information of all counterparties. You can filter the results by using a keyword for fuzzy search on counterparty names.
@@ -2694,6 +2710,74 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
2694
2710
  });
2695
2711
  }
2696
2712
 
2713
+ /**
2714
+ * List payer transactions
2715
+ * This operation retrieves on-chain transactions related to a specific top-up payer. You need to specify `custom_payer_id`, which is the merchant-defined customer identifier used when creating top-up addresses. <Note>This operation is applicable to the top-up scenario only.</Note> For more information, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
2716
+ * @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
2717
+ * @param {Object} opts Optional parameters
2718
+ * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
2719
+ * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2720
+ * @param {String} [after] A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2721
+ * @param {String} [merchant_id] The merchant ID.
2722
+ * @param {String} [token_id] The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2723
+ * @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
2724
+ * @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
2725
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPayerTransactions200Response} and HTTP response
2726
+ */
2727
+ }, {
2728
+ key: "listPayerTransactionsWithHttpInfo",
2729
+ value: function listPayerTransactionsWithHttpInfo(custom_payer_id, opts) {
2730
+ opts = opts || {};
2731
+ var postBody = null;
2732
+ if (postBody && postBody.toJSON) {
2733
+ postBody = postBody.toJSON();
2734
+ }
2735
+ // verify the required parameter 'custom_payer_id' is set
2736
+ if (custom_payer_id === undefined || custom_payer_id === null) {
2737
+ throw new Error("Missing the required parameter 'custom_payer_id' when calling listPayerTransactions");
2738
+ }
2739
+ var pathParams = {};
2740
+ var queryParams = {
2741
+ 'limit': opts['limit'],
2742
+ 'before': opts['before'],
2743
+ 'after': opts['after'],
2744
+ 'merchant_id': opts['merchant_id'],
2745
+ 'custom_payer_id': custom_payer_id,
2746
+ 'token_id': opts['token_id'],
2747
+ 'transaction_hashes': opts['transaction_hashes'],
2748
+ 'transaction_ids': opts['transaction_ids']
2749
+ };
2750
+ var headerParams = {};
2751
+ var formParams = {};
2752
+ var authNames = ['OAuth2', 'CoboAuth'];
2753
+ var contentTypes = [];
2754
+ var accepts = ['application/json'];
2755
+ var returnType = _ListPayerTransactions200Response["default"];
2756
+ return this.apiClient.callApi('/payments/topup/payers/transactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
2757
+ }
2758
+
2759
+ /**
2760
+ * List payer transactions
2761
+ * This operation retrieves on-chain transactions related to a specific top-up payer. You need to specify `custom_payer_id`, which is the merchant-defined customer identifier used when creating top-up addresses. <Note>This operation is applicable to the top-up scenario only.</Note> For more information, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
2762
+ * @param {String} custom_payer_id Unique customer identifier on the merchant side, used to allocate a dedicated top-up address
2763
+ * @param {Object} opts Optional parameters
2764
+ * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
2765
+ * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
2766
+ * @param {String} opts.after A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.
2767
+ * @param {String} opts.merchant_id The merchant ID.
2768
+ * @param {String} opts.token_id The token ID, which is a unique identifier that specifies both the blockchain network and cryptocurrency token in the format `{CHAIN}_{TOKEN}`. Supported values include: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
2769
+ * @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
2770
+ * @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
2771
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPayerTransactions200Response}
2772
+ */
2773
+ }, {
2774
+ key: "listPayerTransactions",
2775
+ value: function listPayerTransactions(custom_payer_id, opts) {
2776
+ return this.listPayerTransactionsWithHttpInfo(custom_payer_id, opts).then(function (response_and_data) {
2777
+ return response_and_data.data;
2778
+ });
2779
+ }
2780
+
2697
2781
  /**
2698
2782
  * List all pay-in orders
2699
2783
  * This operation retrieves the information of all pay-in orders. You can filter the result by merchant ID.
@@ -3054,7 +3138,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3054
3138
 
3055
3139
  /**
3056
3140
  * List payers
3057
- * This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
3141
+ * This operation retrieves the information of all payers. You can filter the result by merchant ID and payer_id. <Note>The `transactions` field in the response returns up to the latest 200 transactions only. This field will be removed in a future version. To paginate through payer transactions, use [List payer transactions](https://www.cobo.com/payments/en/guides/overview).</Note>
3058
3142
  * @param {Object} opts Optional parameters
3059
3143
  * @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
3060
3144
  * @param {String} [before] A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3090,7 +3174,7 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3090
3174
 
3091
3175
  /**
3092
3176
  * List payers
3093
- * This operation retrieves the information of all payers under a merchant. You can filter the result by the payer ID.
3177
+ * This operation retrieves the information of all payers. You can filter the result by merchant ID and payer_id. <Note>The `transactions` field in the response returns up to the latest 200 transactions only. This field will be removed in a future version. To paginate through payer transactions, use [List payer transactions](https://www.cobo.com/payments/en/guides/overview).</Note>
3094
3178
  * @param {Object} opts Optional parameters
3095
3179
  * @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
3096
3180
  * @param {String} opts.before A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.
@@ -3189,55 +3273,6 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
3189
3273
  });
3190
3274
  }
3191
3275
 
3192
- /**
3193
- * Update bank account
3194
- * <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
3195
- * @param {String} bank_account_id The bank account ID.
3196
- * @param {Object} opts Optional parameters
3197
- * @param {module:model/UpdateBankAccountByIdRequest} [UpdateBankAccountByIdRequest] The request body for updating an existing bank account.
3198
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BankAccount} and HTTP response
3199
- */
3200
- }, {
3201
- key: "updateBankAccountByIdWithHttpInfo",
3202
- value: function updateBankAccountByIdWithHttpInfo(bank_account_id, opts) {
3203
- opts = opts || {};
3204
- var postBody = opts['UpdateBankAccountByIdRequest'];
3205
- if (postBody && postBody.toJSON) {
3206
- postBody = postBody.toJSON();
3207
- }
3208
- // verify the required parameter 'bank_account_id' is set
3209
- if (bank_account_id === undefined || bank_account_id === null) {
3210
- throw new Error("Missing the required parameter 'bank_account_id' when calling updateBankAccountById");
3211
- }
3212
- var pathParams = {
3213
- 'bank_account_id': bank_account_id
3214
- };
3215
- var queryParams = {};
3216
- var headerParams = {};
3217
- var formParams = {};
3218
- var authNames = ['OAuth2', 'CoboAuth'];
3219
- var contentTypes = ['application/json'];
3220
- var accepts = ['application/json'];
3221
- var returnType = _BankAccount["default"];
3222
- return this.apiClient.callApi('/payments/bank_accounts/{bank_account_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
3223
- }
3224
-
3225
- /**
3226
- * Update bank account
3227
- * <Note>This operation has been deprecated.</Note> This operation updates the information of an existing bank account.
3228
- * @param {String} bank_account_id The bank account ID.
3229
- * @param {Object} opts Optional parameters
3230
- * @param {module:model/UpdateBankAccountByIdRequest} opts.UpdateBankAccountByIdRequest The request body for updating an existing bank account.
3231
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BankAccount}
3232
- */
3233
- }, {
3234
- key: "updateBankAccountById",
3235
- value: function updateBankAccountById(bank_account_id, opts) {
3236
- return this.updateBankAccountByIdWithHttpInfo(bank_account_id, opts).then(function (response_and_data) {
3237
- return response_and_data.data;
3238
- });
3239
- }
3240
-
3241
3276
  /**
3242
3277
  * Update counterparty
3243
3278
  * This operation updates the information of a specified counterparty.