From 718ae979cfbb5afbc65ea3716b074d1da05ef9c7 Mon Sep 17 00:00:00 2001 From: Yixue Chang Date: Wed, 5 Aug 2026 14:27:56 +0800 Subject: [PATCH] release v1.41.0 --- .openapi-generator/FILES | 3 + README.md | 7 +- api/openapi.yaml | 204 +++-- build.gradle | 2 +- build.sbt | 2 +- docs/AddressesEventData.md | 3 +- docs/BalanceUpdateInfoEventData.md | 3 +- docs/ChainsEventData.md | 3 +- docs/ComplianceDispositionUpdateEventData.md | 3 +- .../ComplianceKyaScreeningsUpdateEventData.md | 3 +- .../ComplianceKytScreeningsUpdateEventData.md | 3 +- docs/CreatePaymentOrderRequest.md | 6 +- docs/DevelopersWebhooksApi.md | 4 +- docs/FiatTransactionEventData.md | 3 +- docs/MPCVaultEventData.md | 3 +- docs/Merchant.md | 2 +- docs/Order.md | 8 +- docs/OrganizationEventData.md | 3 +- docs/PaymentAccountBalanceUpdateEventData.md | 3 +- docs/PaymentAddressUpdateEventData.md | 3 +- docs/PaymentApi.md | 2 +- docs/PaymentBulkSendEvent.md | 3 +- docs/PaymentBulkSendItemEvent.md | 58 ++ docs/PaymentOrderEventData.md | 11 +- docs/PaymentPayoutEvent.md | 3 +- docs/PaymentPayoutParam.md | 2 +- docs/PaymentPayoutRecipientInfo.md | 6 +- docs/PaymentRefundEventData.md | 3 +- docs/PaymentSettlementEvent.md | 3 +- docs/PaymentTransactionEventData.md | 3 +- docs/ReportExportFormat.md | 2 + docs/SuspendedTokenEventData.md | 3 +- docs/TSSRequestWebhookEventData.md | 3 +- docs/TokenListingEventData.md | 3 +- docs/TokensEventData.md | 3 +- docs/TransactionWebhookEventData.md | 3 +- docs/WalletInfoEventData.md | 3 +- docs/WebhookEventData.md | 19 +- docs/WebhookEventDataType.md | 3 +- docs/WebhookEventType.md | 2 + pom.xml | 4 +- src/main/java/com/cobo/waas2/ApiClient.java | 2 +- .../java/com/cobo/waas2/Configuration.java | 2 +- src/main/java/com/cobo/waas2/JSON.java | 3 + .../java/com/cobo/waas2/api/PaymentApi.java | 6 +- .../cobo/waas2/model/AddressesEventData.java | 6 +- .../model/BalanceUpdateInfoEventData.java | 6 +- .../com/cobo/waas2/model/ChainsEventData.java | 6 +- .../ComplianceDispositionUpdateEventData.java | 6 +- ...omplianceKyaScreeningsUpdateEventData.java | 6 +- ...omplianceKytScreeningsUpdateEventData.java | 6 +- .../model/CreatePaymentOrderRequest.java | 6 +- .../waas2/model/FiatTransactionEventData.java | 6 +- .../cobo/waas2/model/MPCVaultEventData.java | 6 +- .../java/com/cobo/waas2/model/Merchant.java | 2 +- src/main/java/com/cobo/waas2/model/Order.java | 8 +- .../waas2/model/OrganizationEventData.java | 6 +- .../PaymentAccountBalanceUpdateEventData.java | 6 +- .../model/PaymentAddressUpdateEventData.java | 6 +- .../waas2/model/PaymentBulkSendEvent.java | 6 +- .../model/PaymentBulkSendExecutionMode.java | 2 +- .../waas2/model/PaymentBulkSendItemEvent.java | 806 ++++++++++++++++++ .../waas2/model/PaymentOrderEventData.java | 14 +- .../cobo/waas2/model/PaymentPayoutEvent.java | 6 +- .../cobo/waas2/model/PaymentPayoutParam.java | 2 +- .../model/PaymentPayoutRecipientInfo.java | 6 +- .../waas2/model/PaymentRefundEventData.java | 6 +- .../waas2/model/PaymentSettlementEvent.java | 6 +- .../model/PaymentTransactionEventData.java | 6 +- .../cobo/waas2/model/ReportExportFormat.java | 6 +- .../waas2/model/SuspendedTokenEventData.java | 6 +- .../model/TSSRequestWebhookEventData.java | 6 +- .../waas2/model/TokenListingEventData.java | 6 +- .../com/cobo/waas2/model/TokensEventData.java | 6 +- .../model/TransactionWebhookEventData.java | 6 +- .../cobo/waas2/model/WalletInfoEventData.java | 6 +- .../cobo/waas2/model/WebhookEventData.java | 72 +- .../waas2/model/WebhookEventDataType.java | 6 +- .../cobo/waas2/model/WebhookEventType.java | 2 + .../com/cobo/waas2/api/PaymentApiTest.java | 2 +- .../model/PaymentBulkSendItemEventTest.java | 160 ++++ .../waas2/model/WebhookEventDataTest.java | 34 + 82 files changed, 1500 insertions(+), 186 deletions(-) create mode 100644 docs/PaymentBulkSendItemEvent.md create mode 100644 src/main/java/com/cobo/waas2/model/PaymentBulkSendItemEvent.java create mode 100644 src/test/java/com/cobo/waas2/model/PaymentBulkSendItemEventTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 1ec4e826..8720997d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -459,6 +459,7 @@ docs/PaymentBulkSend.md docs/PaymentBulkSendEvent.md docs/PaymentBulkSendExecutionMode.md docs/PaymentBulkSendItem.md +docs/PaymentBulkSendItemEvent.md docs/PaymentBulkSendItemStatus.md docs/PaymentBulkSendItemValidationStatus.md docs/PaymentBulkSendStatus.md @@ -1387,6 +1388,7 @@ src/main/java/com/cobo/waas2/model/PaymentBulkSend.java src/main/java/com/cobo/waas2/model/PaymentBulkSendEvent.java src/main/java/com/cobo/waas2/model/PaymentBulkSendExecutionMode.java src/main/java/com/cobo/waas2/model/PaymentBulkSendItem.java +src/main/java/com/cobo/waas2/model/PaymentBulkSendItemEvent.java src/main/java/com/cobo/waas2/model/PaymentBulkSendItemStatus.java src/main/java/com/cobo/waas2/model/PaymentBulkSendItemValidationStatus.java src/main/java/com/cobo/waas2/model/PaymentBulkSendStatus.java @@ -2263,6 +2265,7 @@ src/test/java/com/cobo/waas2/model/PaymentBalanceFlowDirectionTest.java src/test/java/com/cobo/waas2/model/PaymentBridgeStatusTest.java src/test/java/com/cobo/waas2/model/PaymentBulkSendEventTest.java src/test/java/com/cobo/waas2/model/PaymentBulkSendExecutionModeTest.java +src/test/java/com/cobo/waas2/model/PaymentBulkSendItemEventTest.java src/test/java/com/cobo/waas2/model/PaymentBulkSendItemStatusTest.java src/test/java/com/cobo/waas2/model/PaymentBulkSendItemTest.java src/test/java/com/cobo/waas2/model/PaymentBulkSendItemValidationStatusTest.java diff --git a/README.md b/README.md index 655cab11..08d8ba10 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Add this dependency to your project's POM: com.cobo.waas2 cobo-waas2 - 1.40.0 + 1.41.0 compile ``` @@ -67,7 +67,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.cobo.waas2:cobo-waas2:1.40.0" + implementation "com.cobo.waas2:cobo-waas2:1.41.0" } ``` @@ -95,7 +95,7 @@ mvn clean package Then manually install the following JARs: -* `target/cobo-waas2-1.40.0.jar` +* `target/cobo-waas2-1.41.0.jar` * `target/lib/*.jar` ## Getting Started @@ -907,6 +907,7 @@ Class | Method | HTTP request | Description - [PaymentBulkSendEvent](docs/PaymentBulkSendEvent.md) - [PaymentBulkSendExecutionMode](docs/PaymentBulkSendExecutionMode.md) - [PaymentBulkSendItem](docs/PaymentBulkSendItem.md) + - [PaymentBulkSendItemEvent](docs/PaymentBulkSendItemEvent.md) - [PaymentBulkSendItemStatus](docs/PaymentBulkSendItemStatus.md) - [PaymentBulkSendItemValidationStatus](docs/PaymentBulkSendItemValidationStatus.md) - [PaymentBulkSendStatus](docs/PaymentBulkSendStatus.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index a1d5b61a..5a171886 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10449,6 +10449,17 @@ paths: post: description: | This operation creates a pay-in order. + + Before you can call this operation, make sure the following prerequisites are met: + + - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. + - `merchant_id` references a merchant that already exists and is owned by your organization. + + Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). + + + This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). + operationId: create_payment_order requestBody: $ref: '#/components/requestBodies/createPaymentOrderBody' @@ -28343,7 +28354,8 @@ components: - `PaymentSettlement`: The payment settlement event data.\n- `PaymentTransaction`:\ \ The payment transaction event data.\n- `PaymentAddressUpdate`: The top-up\ \ address update event data.\n- `PaymentPayout`: The payment payout event\ - \ data.\n- `PaymentBulkSend`: The payment bulk send event data.\n- `PaymentAccountBalanceUpdate`:\ + \ data.\n- `PaymentBulkSend`: The payment bulk send event data.\n- `PaymentBulkSendItem`:\ + \ The payment bulk send item event data.\n- `PaymentAccountBalanceUpdate`:\ \ The Payments account balance updated event data, including account information\ \ and balance change details.\n- `BalanceUpdateInfo`: The balance update\ \ event data.\n- `SuspendedToken`: The token suspension event data.\n\ @@ -28367,6 +28379,7 @@ components: - PaymentAddressUpdate - PaymentPayout - PaymentBulkSend + - PaymentBulkSendItem - PaymentAccountBalanceUpdate - BalanceUpdateInfo - SuspendedToken @@ -28400,6 +28413,7 @@ components: PaymentAddressUpdate: '#/components/schemas/PaymentAddressUpdateEventData' PaymentPayout: '#/components/schemas/PaymentPayoutEvent' PaymentBulkSend: '#/components/schemas/PaymentBulkSendEvent' + PaymentBulkSendItem: '#/components/schemas/PaymentBulkSendItemEvent' PaymentAccountBalanceUpdate: '#/components/schemas/PaymentAccountBalanceUpdateEventData' ComplianceDisposition: '#/components/schemas/ComplianceDispositionUpdateEventData' ComplianceKytScreenings: '#/components/schemas/ComplianceKytScreeningsUpdateEventData' @@ -28425,6 +28439,7 @@ components: - $ref: '#/components/schemas/PaymentAddressUpdateEventData' - $ref: '#/components/schemas/PaymentPayoutEvent' - $ref: '#/components/schemas/PaymentBulkSendEvent' + - $ref: '#/components/schemas/PaymentBulkSendItemEvent' - $ref: '#/components/schemas/PaymentAccountBalanceUpdateEventData' - $ref: '#/components/schemas/ComplianceDispositionUpdateEventData' - $ref: '#/components/schemas/ComplianceKytScreeningsUpdateEventData' @@ -28831,6 +28846,40 @@ components: - $ref: '#/components/schemas/WebhookEventDataType' - $ref: '#/components/schemas/PaymentBulkSend' title: Payment Bulk Send Event Data + PaymentBulkSendItemEvent: + allOf: + - $ref: '#/components/schemas/WebhookEventDataType' + - $ref: '#/components/schemas/PaymentBulkSendItem' + - properties: + bulk_send_id: + description: The bulk send ID that this item belongs to. + example: 123e4567-e89b-12d3-a456-426614174003 + type: string + request_id: + description: The request ID of the bulk send batch. + example: 123e457-e89b-12d3-a456-426614174004 + type: string + source_account: + description: The source account ID of the bulk send batch. + example: M1001 + type: string + created_timestamp: + description: "The created time of the bulk send item, represented as a\ + \ UNIX timestamp in seconds." + example: 1744689600 + type: integer + updated_timestamp: + description: "The updated time of the bulk send item, represented as a\ + \ UNIX timestamp in seconds." + example: 1744689600 + type: integer + required: + - bulk_send_id + - created_timestamp + - source_account + - updated_timestamp + type: object + title: Payment Bulk Send Item Event Data PaymentAccountBalanceUpdateEventData: allOf: - $ref: '#/components/schemas/WebhookEventDataType' @@ -28988,6 +29037,7 @@ components: - payment.subscription.status.updated - payment.charge.status.updated - payment.bulk_send.status.updated + - payment.bulk_send.item.status.updated - payment.transaction.external.created - payment.transaction.external.completed - payment.transaction.settlement_network.created @@ -33264,10 +33314,12 @@ components: - `CSV`: The report will be exported as a CSV file. - `XLSX`: The report will be exported as an XLSX file. - `ZIP`: The report will be exported as a ZIP file which contains multiple files. + - `PDF`: The report will be exported as a PDF file, only supported for balance snapshot report. enum: - CSV - XLSX - ZIP + - PDF example: CSV type: string Report: @@ -33422,7 +33474,7 @@ components: name: Merchant-1 created_timestamp: 1744689600 merchant_id: "1" - developer_fee_rate: "0.01" + developer_fee_rate: "0.015" properties: merchant_id: description: The merchant ID. @@ -33438,8 +33490,15 @@ components: format: uuid type: string developer_fee_rate: - description: The developer fee rate applied to this merchant. - example: "0.01" + description: | + The merchant-level fee fraction applied specifically to Top-up-mode deposits. The value can range from `0` through `1` and can contain up to four decimal places. For example, `0.015` represents 1.5%. An absent or cleared value is treated as zero, so no developer fee is charged on Top-up deposits. + + An update applies only to subsequent Top-up deposits and is not retroactive to deposits that have already been processed. The developer share is rounded down to the token's precision. + + This rate does not combine with a Payment Order's `fee_amount`. Order-mode and Top-up-mode deposits use separate, mutually exclusive settlement paths, so there is no calculation order or precedence between the two fees. + + For configuration and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants), [Payment collection in order mode](https://www.cobo.com/payments/en/guides/create-orders), and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). + example: "0.015" type: string wallet_setup: $ref: '#/components/schemas/WalletSetup' @@ -33530,13 +33589,13 @@ components: failed_reason: Rejected by signer Cobo TSS status: Submitted amount_tolerance: "0.5" - fee_amount: "2.00" + fee_amount: "2" token_id: token_id updated_timestamp: 1744689600 received_token_amount: "103.0305" order_amount: order_amount - merchant_order_code: M20240201001 - psp_order_code: P20240201001 + merchant_order_code: merchant-inv-55231 + psp_order_code: psp-order-20240601-00789 currency: currency payable_currency: ETH_USDT payable_amount: "103.03" @@ -33545,7 +33604,12 @@ components: status: Pending properties: order_id: - description: The order ID. + description: | + The unique identifier of the payment order. Cobo assigns this ID when the payment order is created — when that happens depends on which pay-in method you use. + + For the direct method, `Create pay-in order` creates the order synchronously and returns `order_id` in the response immediately. + + For the payment link method, `Create order link` returns only the hosted link details and does not create an order, so `order_id` does not exist yet at that point. `order_id` becomes available only after the payer opens the hosted payment page, selects the payment token and blockchain network, and submits the order — Cobo creates the order and assigns `order_id` at that moment, not when the link itself was generated. example: "5001" type: string merchant_id: @@ -33553,14 +33617,17 @@ components: example: "1001" type: string merchant_order_code: - description: A unique reference code assigned by the merchant to identify - this order in their system. - example: M20240201001 + description: "The downstream merchant's order reference, exactly as you\ + \ supplied it in `merchant_order_code` when creating the order, if you\ + \ provided one. Present only when a `merchant_order_code` was included\ + \ at order creation." + example: merchant-inv-55231 type: string psp_order_code: - description: A unique reference code assigned by the developer to identify - this order in their system. - example: P20240201001 + description: "The order identifier for your own internal business order,\ + \ exactly as you supplied it in `psp_order_code` when creating the order.\ + \ This value is unique within your Cobo organization." + example: psp-order-20240601-00789 type: string pricing_currency: description: The pricing currency of the order. @@ -33572,9 +33639,13 @@ components: example: "100.00" type: string fee_amount: - description: The developer fee for the order. It is added to the base amount - to determine the final charge. - example: "2.00" + description: | + The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. + + When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. + + For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). + example: "2" type: string payable_currency: description: The ID of the cryptocurrency used for payment. @@ -37602,19 +37673,28 @@ components: currency: USD properties: address: - description: The recipient's wallet address where the payout will be sent. + description: "The recipient's cryptocurrency address. Use an address that\ + \ you have registered as a destination and that has been approved for\ + \ payouts. Call [List destination entries](https://www.cobo.com/payments/en/api-references/payment/list-destination-entries)\ + \ with `entry_type` set to `Address` to retrieve your registered wallet\ + \ addresses and each address's `chain_id`. A destination entry returns\ + \ the `address` and its `chain_id`, not a `token_id` -- confirm that the\ + \ network indicated by `chain_id` matches the network encoded in the `token_id`\ + \ you use, since an address on the wrong network for that token cannot\ + \ complete the transfer." example: 0x9876543210abcdef1234567890abcdef12345678 type: string token_id: - description: | - The token ID for the cryptocurrency to be sent to the recipient. - - If `recipient_info.token_id` is on a different chain than `payout_param.token_id`, the token will be automatically bridged to the chain specified in `recipient_info.token_id`. + description: "The cryptocurrency ID of the token to send (for example, `ETH_USDT`,\ + \ `TRON_USDT`). When this token ID and the `token_id` in `payout_params`\ + \ represent the same token on different chains, Cobo automatically executes\ + \ a cross-chain transfer. You can retrieve the full list of supported\ + \ token IDs by calling [List supported tokens](https://www.cobo.com/payments/en/api-references/payment/list-supported-tokens)." example: TRON_USDT type: string currency: - description: The fiat currency of the bank account to which the payout will - be sent. + description: The fiat currency of the bank account selected in `bank_account_id` + -- the two must match. This endpoint currently accepts only `USD`. example: USD type: string bank_account_id: @@ -37643,7 +37723,7 @@ components: type: string amount: description: | - The payout cryptocurrency amount. + The payout amount, provided as a decimal string. You can include up to two nonzero digits after the decimal point; trailing zeros beyond that (for example, `100.500`) are accepted, but a value with more than two nonzero fractional digits (for example, `100.567`) is rejected with an invalid amount format error instead of being rounded. example: "500.00" type: string required: @@ -37851,9 +37931,23 @@ components: type: string PaymentBulkSendExecutionMode: description: | - The execution mode of the bulk send. - - `Strict`: The bulk send is executed in strict mode. All-or-nothing is enforced at the validation stage: if any item fails validation, the entire batch is rejected and no items are sent. Note that this all-or-nothing guarantee applies at validation only, not at execution. After validation passes, individual items may still be rejected by risk control or fail during on-chain execution, which can result in a `PartiallyCompleted` bulk send status. - - `Partial`: The bulk send is executed in partial mode, which means some bulk send items can be successfully executed and some can be failed. + Specifies how the batch handles item-level validation failures. The required + `execution_mode` field is a string enum and must be set to either `Strict` or + `Partial`; no default is applied if you omit it. It is not a `strict_mode` + boolean flag. + + - `Strict`: If any item in the batch fails validation, no items are executed. + Every item is marked `NotExecuted`, and the batch fails. The batch also + fails in `Strict` mode if the fund sweep needed to fund it only partially + completes. + - `Partial`: Item validation failures are isolated to the affected items. + Failed items are marked `NotExecuted`, while all other validated items in + the batch continue to be processed normally. + + Use `Partial` when one item's validation failure should not block the rest of + the batch. Because outcomes can differ by item, check each item's result and + `validation_status` individually instead of assuming that a batch-level + outcome applies to every item. enum: - Strict - Partial @@ -45238,14 +45332,14 @@ components: name: Merchant-1 created_timestamp: 1744689600 merchant_id: "1" - developer_fee_rate: "0.01" + developer_fee_rate: "0.015" - wallet_id: 123e4567-e89b-12d3-a456-426614174001 updated_timestamp: 1744689600 wallet_setup: Shared name: Merchant-1 created_timestamp: 1744689600 merchant_id: "1" - developer_fee_rate: "0.01" + developer_fee_rate: "0.015" properties: data: items: @@ -45626,13 +45720,13 @@ components: failed_reason: Rejected by signer Cobo TSS status: Submitted amount_tolerance: "0.5" - fee_amount: "2.00" + fee_amount: "2" token_id: token_id updated_timestamp: 1744689600 received_token_amount: "103.0305" order_amount: order_amount - merchant_order_code: M20240201001 - psp_order_code: P20240201001 + merchant_order_code: merchant-inv-55231 + psp_order_code: psp-order-20240601-00789 currency: currency payable_currency: ETH_USDT payable_amount: "103.03" @@ -45709,13 +45803,13 @@ components: failed_reason: Rejected by signer Cobo TSS status: Submitted amount_tolerance: "0.5" - fee_amount: "2.00" + fee_amount: "2" token_id: token_id updated_timestamp: 1744689600 received_token_amount: "103.0305" order_amount: order_amount - merchant_order_code: M20240201001 - psp_order_code: P20240201001 + merchant_order_code: merchant-inv-55231 + psp_order_code: psp-order-20240601-00789 currency: currency payable_currency: ETH_USDT payable_amount: "103.03" @@ -45737,14 +45831,26 @@ components: example: "1001" type: string merchant_order_code: - description: A unique reference code assigned by the merchant to identify - this order in their system. - example: M20240201001 + description: "An optional reference for the order maintained by a downstream\ + \ merchant you serve — for example, when you are a payment service provider\ + \ (PSP) processing pay-in orders on behalf of merchants. Set this field\ + \ only when such a downstream merchant supplies its own order reference\ + \ that is distinct from your internal `psp_order_code`. Omit this field\ + \ if you are collecting payment directly as the merchant, with no separate\ + \ downstream merchant reference to track." + example: merchant-inv-55231 type: string psp_order_code: - description: A unique reference code assigned by the developer to identify - this order in their system. - example: P20240201001 + description: "The order identifier for your own internal business order.\ + \ Set this to the order reference you use internally to identify this\ + \ pay-in — for example, an order or transaction ID from your own order-management\ + \ system. This value must be unique within your Cobo organization: Cobo\ + \ enforces uniqueness on `psp_order_code`, so reusing a code already associated\ + \ with an existing order in your organization is rejected. If a downstream\ + \ merchant you serve supplies its own separate order reference, record\ + \ that in `merchant_order_code` instead — `psp_order_code` always identifies\ + \ your own order, not the merchant's." + example: psp-order-20240601-00789 type: string pricing_currency: description: "The pricing currency that denominates `pricing_amount` and\ @@ -45760,13 +45866,13 @@ components: example: "100.00" type: string fee_amount: - description: "The developer fee for the order. It is added to the base amount\ - \ (`pricing_amount`) to determine the final charge. For example, if `pricing_amount`\ - \ is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged\ - \ \"102.00\" in total, with \"100.00\" being settled to the merchant account\ - \ and \"2.00\" settled to the developer account. Values must be greater\ - \ than or equal to 0 and contain two decimal places." - example: "2.00" + description: | + The order-level developer charge deducted from the payment collected for this order and credited to your developer balance. Both `0` and positive values are valid. A value of `0` means that no developer fee is taken and the merchant receives the full collected amount. + + When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. + + For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). + example: "2" type: string payable_currency: description: | diff --git a/build.gradle b/build.gradle index 56746869..ffc5cf9b 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' group = 'com.cobo.waas2' -version = '1.40.0' +version = '1.41.0' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 94c29d6d..026df975 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.cobo.waas2", name := "cobo-waas2", - version := "1.40.0", + version := "1.41.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AddressesEventData.md b/docs/AddressesEventData.md index b4bf4b0d..ef193c62 100644 --- a/docs/AddressesEventData.md +++ b/docs/AddressesEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**addresses** | [**List<AddressesEventDataAllOfAddresses>**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional] | @@ -31,6 +31,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/BalanceUpdateInfoEventData.md b/docs/BalanceUpdateInfoEventData.md index f8198edb..0e7aac58 100644 --- a/docs/BalanceUpdateInfoEventData.md +++ b/docs/BalanceUpdateInfoEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**tokenId** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | | |**address** | **String** | The wallet address. | | |**walletUuid** | **UUID** | The wallet ID. | | @@ -35,6 +35,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/ChainsEventData.md b/docs/ChainsEventData.md index 94bc70be..688c5557 100644 --- a/docs/ChainsEventData.md +++ b/docs/ChainsEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**chains** | [**List<ChainInfo>**](ChainInfo.md) | The enabled chains. | | |**walletType** | **WalletType** | | [optional] | |**walletSubtypes** | **List<WalletSubtype>** | | [optional] | @@ -33,6 +33,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/ComplianceDispositionUpdateEventData.md b/docs/ComplianceDispositionUpdateEventData.md index 7533a792..ae55c2fb 100644 --- a/docs/ComplianceDispositionUpdateEventData.md +++ b/docs/ComplianceDispositionUpdateEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **UUID** | The transaction ID. | | |**dispositionType** | **DispositionType** | | | |**dispositionStatus** | **DispositionStatus** | | | @@ -36,6 +36,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/ComplianceKyaScreeningsUpdateEventData.md b/docs/ComplianceKyaScreeningsUpdateEventData.md index 1f61af5b..d3169dab 100644 --- a/docs/ComplianceKyaScreeningsUpdateEventData.md +++ b/docs/ComplianceKyaScreeningsUpdateEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**screeningId** | **UUID** | The unique system-generated identifier for this screening request (UUID format, fixed 36 characters). | | |**address** | **String** | The screened blockchain address. | | |**chainId** | **String** | The chain identifier. | | @@ -36,6 +36,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/ComplianceKytScreeningsUpdateEventData.md b/docs/ComplianceKytScreeningsUpdateEventData.md index f811d12a..6f1727ba 100644 --- a/docs/ComplianceKytScreeningsUpdateEventData.md +++ b/docs/ComplianceKytScreeningsUpdateEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **UUID** | The transaction ID. | | |**transactionType** | **KytScreeningsTransactionType** | | | |**reviewStatus** | **ReviewStatusType** | | | @@ -35,6 +35,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/CreatePaymentOrderRequest.md b/docs/CreatePaymentOrderRequest.md index c03d39b7..555d4c5c 100644 --- a/docs/CreatePaymentOrderRequest.md +++ b/docs/CreatePaymentOrderRequest.md @@ -8,11 +8,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**merchantId** | **String** | The merchant ID. | | -|**merchantOrderCode** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional] | -|**pspOrderCode** | **String** | A unique reference code assigned by the developer to identify this order in their system. | | +|**merchantOrderCode** | **String** | An optional reference for the order maintained by a downstream merchant you serve — for example, when you are a payment service provider (PSP) processing pay-in orders on behalf of merchants. Set this field only when such a downstream merchant supplies its own order reference that is distinct from your internal `psp_order_code`. Omit this field if you are collecting payment directly as the merchant, with no separate downstream merchant reference to track. | [optional] | +|**pspOrderCode** | **String** | The order identifier for your own internal business order. Set this to the order reference you use internally to identify this pay-in — for example, an order or transaction ID from your own order-management system. This value must be unique within your Cobo organization: Cobo enforces uniqueness on `psp_order_code`, so reusing a code already associated with an existing order in your organization is rejected. If a downstream merchant you serve supplies its own separate order reference, record that in `merchant_order_code` instead — `psp_order_code` always identifies your own order, not the merchant's. | | |**pricingCurrency** | **String** | The pricing currency that denominates `pricing_amount` and `fee_amount`. If left empty, both values will be denominated in `payable_currency`. Currently, For a complete list of supported currencies, see [Supported chains and tokens](https://www.cobo.com//payments/en/guides/supported-chains-and-tokens#pricing-currency). | [optional] | |**pricingAmount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`). Values must be greater than `0` and contain two decimal places. | [optional] | -|**feeAmount** | **String** | The developer fee for the order. It is added to the base amount (`pricing_amount`) to determine the final charge. For example, if `pricing_amount` is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant account and \"2.00\" settled to the developer account. Values must be greater than or equal to 0 and contain two decimal places. | | +|**feeAmount** | **String** | The order-level developer charge deducted from the payment collected for this order and credited to your developer balance. Both `0` and positive values are valid. A value of `0` means that no developer fee is taken and the merchant receives the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). | | |**payableCurrency** | **String** | The ID of the cryptocurrency used for payment. Supported values: - 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` | | |**payableAmount** | **String** | The total amount the payer needs to pay, denominated in the specified `payable_currency`. If this field is left blank, the system will automatically calculate the amount at order creation using the following formula: (`pricing_amount` + `fee_amount`) / current exchange rate. Values must be greater than 0 and contain two decimal places. | [optional] | |**expiredIn** | **Integer** | The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to `1800`, the order will expire in 30 minutes. Must be greater than zero and cannot exceed 3 hours (10800 seconds). After expiration: - The order status becomes final and cannot be changed - The `received_token_amount` field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance. - A late payment will trigger a `transactionLate` webhook event. | [optional] | diff --git a/docs/DevelopersWebhooksApi.md b/docs/DevelopersWebhooksApi.md index 48ef2d9a..24b29d69 100644 --- a/docs/DevelopersWebhooksApi.md +++ b/docs/DevelopersWebhooksApi.md @@ -273,7 +273,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **status** | [**WebhookEndpointStatus**](.md)| | [optional] [enum: STATUS_ACTIVE, STATUS_INACTIVE, STATUS_PENDING_ACTIVE, STATUS_PENDING_INACTIVE, STATUS_PENDING_UPDATE, STATUS_REJECT_ACTIVE] | -| **eventType** | [**WebhookEventType**](.md)| | [optional] [enum: wallets.transaction.created, wallets.transaction.updated, wallets.transaction.failed, wallets.transaction.succeeded, wallets.mpc.tss_request.created, wallets.mpc.tss_request.updated, wallets.mpc.tss_request.failed, wallets.mpc.tss_request.succeeded, wallets.addresses.created, wallets.created, wallets.updated, wallets.token_listing.failed, wallets.token_listing.succeeded, mpc_vaults.created, mpc_vaults.updated, mpc_vaults.deleted, organizations.updated, fee_station.transaction.created, fee_station.transaction.updated, fee_station.transaction.failed, fee_station.transaction.succeeded, fee_station.fiat_transaction.created, wallet.token.enabled, wallet.chain.enabled, wallet.mpc.balance.updated, wallet.web3.balance.updated, wallet.token.disabled, wallet.chain.disabled, token.suspended.deposit, token.suspended.withdraw, payment.transaction.created, payment.transaction.late, payment.transaction.completed, payment.transaction.held, payment.transaction.failed, payment.account.balance.updated, payment.status.updated, payment.order.status.updated, payment.refund.status.updated, payment.settlement.status.updated, payment.payout.status.updated, payment.address.updated, payment.subscription.status.updated, payment.charge.status.updated, payment.bulk_send.status.updated, payment.transaction.external.created, payment.transaction.external.completed, payment.transaction.settlement_network.created, payment.transaction.settlement_network.completed, compliance.disposition.status.updated, compliance.kyt.screenings.status.updated, compliance.kya.screenings.status.updated] | +| **eventType** | [**WebhookEventType**](.md)| | [optional] [enum: wallets.transaction.created, wallets.transaction.updated, wallets.transaction.failed, wallets.transaction.succeeded, wallets.mpc.tss_request.created, wallets.mpc.tss_request.updated, wallets.mpc.tss_request.failed, wallets.mpc.tss_request.succeeded, wallets.addresses.created, wallets.created, wallets.updated, wallets.token_listing.failed, wallets.token_listing.succeeded, mpc_vaults.created, mpc_vaults.updated, mpc_vaults.deleted, organizations.updated, fee_station.transaction.created, fee_station.transaction.updated, fee_station.transaction.failed, fee_station.transaction.succeeded, fee_station.fiat_transaction.created, wallet.token.enabled, wallet.chain.enabled, wallet.mpc.balance.updated, wallet.web3.balance.updated, wallet.token.disabled, wallet.chain.disabled, token.suspended.deposit, token.suspended.withdraw, payment.transaction.created, payment.transaction.late, payment.transaction.completed, payment.transaction.held, payment.transaction.failed, payment.account.balance.updated, payment.status.updated, payment.order.status.updated, payment.refund.status.updated, payment.settlement.status.updated, payment.payout.status.updated, payment.address.updated, payment.subscription.status.updated, payment.charge.status.updated, payment.bulk_send.status.updated, payment.bulk_send.item.status.updated, payment.transaction.external.created, payment.transaction.external.completed, payment.transaction.settlement_network.created, payment.transaction.settlement_network.completed, compliance.disposition.status.updated, compliance.kyt.screenings.status.updated, compliance.kya.screenings.status.updated] | | **limit** | **Integer**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10] | | **before** | **String**| 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. | [optional] | | **after** | **String**| 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. | [optional] | @@ -491,7 +491,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **endpointId** | **UUID**| The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). | | | **status** | [**WebhookEventStatus**](.md)| | [optional] [enum: Success, Retrying, Failed] | -| **type** | [**WebhookEventType**](.md)| | [optional] [enum: wallets.transaction.created, wallets.transaction.updated, wallets.transaction.failed, wallets.transaction.succeeded, wallets.mpc.tss_request.created, wallets.mpc.tss_request.updated, wallets.mpc.tss_request.failed, wallets.mpc.tss_request.succeeded, wallets.addresses.created, wallets.created, wallets.updated, wallets.token_listing.failed, wallets.token_listing.succeeded, mpc_vaults.created, mpc_vaults.updated, mpc_vaults.deleted, organizations.updated, fee_station.transaction.created, fee_station.transaction.updated, fee_station.transaction.failed, fee_station.transaction.succeeded, fee_station.fiat_transaction.created, wallet.token.enabled, wallet.chain.enabled, wallet.mpc.balance.updated, wallet.web3.balance.updated, wallet.token.disabled, wallet.chain.disabled, token.suspended.deposit, token.suspended.withdraw, payment.transaction.created, payment.transaction.late, payment.transaction.completed, payment.transaction.held, payment.transaction.failed, payment.account.balance.updated, payment.status.updated, payment.order.status.updated, payment.refund.status.updated, payment.settlement.status.updated, payment.payout.status.updated, payment.address.updated, payment.subscription.status.updated, payment.charge.status.updated, payment.bulk_send.status.updated, payment.transaction.external.created, payment.transaction.external.completed, payment.transaction.settlement_network.created, payment.transaction.settlement_network.completed, compliance.disposition.status.updated, compliance.kyt.screenings.status.updated, compliance.kya.screenings.status.updated] | +| **type** | [**WebhookEventType**](.md)| | [optional] [enum: wallets.transaction.created, wallets.transaction.updated, wallets.transaction.failed, wallets.transaction.succeeded, wallets.mpc.tss_request.created, wallets.mpc.tss_request.updated, wallets.mpc.tss_request.failed, wallets.mpc.tss_request.succeeded, wallets.addresses.created, wallets.created, wallets.updated, wallets.token_listing.failed, wallets.token_listing.succeeded, mpc_vaults.created, mpc_vaults.updated, mpc_vaults.deleted, organizations.updated, fee_station.transaction.created, fee_station.transaction.updated, fee_station.transaction.failed, fee_station.transaction.succeeded, fee_station.fiat_transaction.created, wallet.token.enabled, wallet.chain.enabled, wallet.mpc.balance.updated, wallet.web3.balance.updated, wallet.token.disabled, wallet.chain.disabled, token.suspended.deposit, token.suspended.withdraw, payment.transaction.created, payment.transaction.late, payment.transaction.completed, payment.transaction.held, payment.transaction.failed, payment.account.balance.updated, payment.status.updated, payment.order.status.updated, payment.refund.status.updated, payment.settlement.status.updated, payment.payout.status.updated, payment.address.updated, payment.subscription.status.updated, payment.charge.status.updated, payment.bulk_send.status.updated, payment.bulk_send.item.status.updated, payment.transaction.external.created, payment.transaction.external.completed, payment.transaction.settlement_network.created, payment.transaction.settlement_network.completed, compliance.disposition.status.updated, compliance.kyt.screenings.status.updated, compliance.kya.screenings.status.updated] | | **limit** | **Integer**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10] | | **before** | **String**| 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. | [optional] | | **after** | **String**| 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. | [optional] | diff --git a/docs/FiatTransactionEventData.md b/docs/FiatTransactionEventData.md index 3b2d2198..d10548f0 100644 --- a/docs/FiatTransactionEventData.md +++ b/docs/FiatTransactionEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **String** | The transaction ID. | | |**mainTransactionId** | **UUID** | The UUID of the parent (main) transaction that this record is associated with. Set only when the current record is a gas/fee transaction initiated by FeeStation; omit for main transactions. | [optional] | |**transactionType** | **FeeStationFiatTransactionType** | | | @@ -39,6 +39,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/MPCVaultEventData.md b/docs/MPCVaultEventData.md index 34d36680..0ac3afe6 100644 --- a/docs/MPCVaultEventData.md +++ b/docs/MPCVaultEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**vaultId** | **String** | The vault ID. | [optional] | |**projectId** | **String** | The project ID. | [optional] | |**name** | **String** | The vault name. | [optional] | @@ -36,6 +36,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/Merchant.md b/docs/Merchant.md index 2c328aff..8925cf01 100644 --- a/docs/Merchant.md +++ b/docs/Merchant.md @@ -10,7 +10,7 @@ |**merchantId** | **String** | The merchant ID. | | |**name** | **String** | The merchant name. | | |**walletId** | **UUID** | This field has been deprecated. | | -|**developerFeeRate** | **String** | The developer fee rate applied to this merchant. | [optional] | +|**developerFeeRate** | **String** | The merchant-level fee fraction applied specifically to Top-up-mode deposits. The value can range from `0` through `1` and can contain up to four decimal places. For example, `0.015` represents 1.5%. An absent or cleared value is treated as zero, so no developer fee is charged on Top-up deposits. An update applies only to subsequent Top-up deposits and is not retroactive to deposits that have already been processed. The developer share is rounded down to the token's precision. This rate does not combine with a Payment Order's `fee_amount`. Order-mode and Top-up-mode deposits use separate, mutually exclusive settlement paths, so there is no calculation order or precedence between the two fees. For configuration and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants), [Payment collection in order mode](https://www.cobo.com/payments/en/guides/create-orders), and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). | [optional] | |**walletSetup** | **WalletSetup** | | [optional] | |**createdTimestamp** | **Integer** | The creation time of the merchant, represented as a UNIX timestamp in seconds. | [optional] | |**updatedTimestamp** | **Integer** | The last update time of the merchant, represented as a UNIX timestamp in seconds. | [optional] | diff --git a/docs/Order.md b/docs/Order.md index 7e78cde9..0b8510a7 100644 --- a/docs/Order.md +++ b/docs/Order.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**orderId** | **String** | The order ID. | | +|**orderId** | **String** | The unique identifier of the payment order. Cobo assigns this ID when the payment order is created — when that happens depends on which pay-in method you use. For the direct method, `Create pay-in order` creates the order synchronously and returns `order_id` in the response immediately. For the payment link method, `Create order link` returns only the hosted link details and does not create an order, so `order_id` does not exist yet at that point. `order_id` becomes available only after the payer opens the hosted payment page, selects the payment token and blockchain network, and submits the order — Cobo creates the order and assigns `order_id` at that moment, not when the link itself was generated. | | |**merchantId** | **String** | The merchant ID. | [optional] | -|**merchantOrderCode** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional] | -|**pspOrderCode** | **String** | A unique reference code assigned by the developer to identify this order in their system. | | +|**merchantOrderCode** | **String** | The downstream merchant's order reference, exactly as you supplied it in `merchant_order_code` when creating the order, if you provided one. Present only when a `merchant_order_code` was included at order creation. | [optional] | +|**pspOrderCode** | **String** | The order identifier for your own internal business order, exactly as you supplied it in `psp_order_code` when creating the order. This value is unique within your Cobo organization. | | |**pricingCurrency** | **String** | The pricing currency of the order. | [optional] | |**pricingAmount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`). | [optional] | -|**feeAmount** | **String** | The developer fee for the order. It is added to the base amount to determine the final charge. | | +|**feeAmount** | **String** | The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). | | |**payableCurrency** | **String** | The ID of the cryptocurrency used for payment. | [optional] | |**chainId** | **String** | The ID of the blockchain network where the payment transaction should be made. | | |**payableAmount** | **String** | The cryptocurrency amount to be paid for this order. | | diff --git a/docs/OrganizationEventData.md b/docs/OrganizationEventData.md index 3698be94..15f72776 100644 --- a/docs/OrganizationEventData.md +++ b/docs/OrganizationEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**orgId** | **UUID** | The organization ID. | [optional] | |**name** | **String** | The organization name. | [optional] | @@ -32,6 +32,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentAccountBalanceUpdateEventData.md b/docs/PaymentAccountBalanceUpdateEventData.md index 3db19a91..e3959b25 100644 --- a/docs/PaymentAccountBalanceUpdateEventData.md +++ b/docs/PaymentAccountBalanceUpdateEventData.md @@ -8,7 +8,7 @@ This event occurs when the available balance of a Payments account changes for a | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**sourceAccount** | **String** | The source account of the balance change. This field uses the same semantics as `source_account` in [List balance changes](https://www.cobo.com/developers/v2/api-references/payment/list-balance-changes). - When the account is a merchant account, this is the merchant ID (merchant code), which you can retrieve by calling [List all merchants](https://www.cobo.com/developers/v2/api-references/payment/list-all-merchants). - When the account is the developer account, use `developer`. | | |**sourceId** | **String** | The source ID of the balance change. | | |**sourceType** | **PaymentBalanceChangeSourceType** | | | @@ -43,6 +43,7 @@ This event occurs when the available balance of a Payments account changes for a | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentAddressUpdateEventData.md b/docs/PaymentAddressUpdateEventData.md index b2f73a8e..041dccb5 100644 --- a/docs/PaymentAddressUpdateEventData.md +++ b/docs/PaymentAddressUpdateEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**customPayerId** | **String** | A unique identifier assigned by the developer to track and identify individual payers in their system. | | |**payerId** | **String** | A unique identifier assigned by Cobo to track and identify individual payers. | | |**merchantId** | **String** | The merchant ID. | [optional] | @@ -36,6 +36,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentApi.md b/docs/PaymentApi.md index 1cbd98c1..ac64e59b 100644 --- a/docs/PaymentApi.md +++ b/docs/PaymentApi.md @@ -905,7 +905,7 @@ public class Example { Create pay-in order -This operation creates a pay-in order. +This operation creates a pay-in order. Before you can call this operation, make sure the following prerequisites are met: - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. - `merchant_id` references a merchant that already exists and is owned by your organization. Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). <Note> This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). </Note> ### Example ```java diff --git a/docs/PaymentBulkSendEvent.md b/docs/PaymentBulkSendEvent.md index fd1b3e1e..bbd58f3c 100644 --- a/docs/PaymentBulkSendEvent.md +++ b/docs/PaymentBulkSendEvent.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**bulkSendId** | **String** | The bulk send ID. | | |**requestId** | **String** | The request ID. | [optional] | |**sourceAccount** | **String** | The source account from which the bulk send will be made. - If the source account is a merchant account, provide the merchant's ID (e.g., \"M1001\"). - If the source account is the developer account, use the string `\"developer\"`. | | @@ -40,6 +40,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentBulkSendItemEvent.md b/docs/PaymentBulkSendItemEvent.md new file mode 100644 index 00000000..2d7b49e3 --- /dev/null +++ b/docs/PaymentBulkSendItemEvent.md @@ -0,0 +1,58 @@ + + +# PaymentBulkSendItemEvent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**bulkSendItemId** | **String** | The bulk send item ID. | | +|**tokenId** | **String** | The token ID of the cryptocurrency to be sent to the recipient. | | +|**receivingAddress** | **String** | The receiving address. | | +|**amount** | **String** | The amount of the cryptocurrency to be sent to the recipient. | | +|**description** | **String** | A note or comment about the bulk send item. | [optional] | +|**txHash** | **String** | The transaction hash of the bulk send item. | [optional] | +|**status** | **PaymentBulkSendItemStatus** | | | +|**validationStatus** | **PaymentBulkSendItemValidationStatus** | | | +|**failedReason** | **String** | The reason why the bulk send item failed. | [optional] | +|**bulkSendId** | **String** | The bulk send ID that this item belongs to. | | +|**requestId** | **String** | The request ID of the bulk send batch. | [optional] | +|**sourceAccount** | **String** | The source account ID of the bulk send batch. | | +|**createdTimestamp** | **Integer** | The created time of the bulk send item, represented as a UNIX timestamp in seconds. | | +|**updatedTimestamp** | **Integer** | The updated time of the bulk send item, represented as a UNIX timestamp in seconds. | | + + + +## Enum: DataTypeEnum + +| Name | Value | +|---- | -----| +| TRANSACTION | "Transaction" | +| TSSREQUEST | "TSSRequest" | +| ADDRESSES | "Addresses" | +| WALLETINFO | "WalletInfo" | +| MPCVAULT | "MPCVault" | +| CHAINS | "Chains" | +| TOKENS | "Tokens" | +| TOKENLISTING | "TokenListing" | +| PAYMENTORDER | "PaymentOrder" | +| PAYMENTREFUND | "PaymentRefund" | +| PAYMENTSETTLEMENT | "PaymentSettlement" | +| PAYMENTTRANSACTION | "PaymentTransaction" | +| PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | +| PAYMENTPAYOUT | "PaymentPayout" | +| PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | +| PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | +| BALANCEUPDATEINFO | "BalanceUpdateInfo" | +| SUSPENDEDTOKEN | "SuspendedToken" | +| COMPLIANCEDISPOSITION | "ComplianceDisposition" | +| COMPLIANCEKYTSCREENINGS | "ComplianceKytScreenings" | +| COMPLIANCEKYASCREENINGS | "ComplianceKyaScreenings" | +| ORGANIZATION | "Organization" | +| FIATTRANSACTION | "FiatTransaction" | + + + diff --git a/docs/PaymentOrderEventData.md b/docs/PaymentOrderEventData.md index 432853dd..55db8757 100644 --- a/docs/PaymentOrderEventData.md +++ b/docs/PaymentOrderEventData.md @@ -7,14 +7,14 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | -|**orderId** | **String** | The order ID. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**orderId** | **String** | The unique identifier of the payment order. Cobo assigns this ID when the payment order is created — when that happens depends on which pay-in method you use. For the direct method, `Create pay-in order` creates the order synchronously and returns `order_id` in the response immediately. For the payment link method, `Create order link` returns only the hosted link details and does not create an order, so `order_id` does not exist yet at that point. `order_id` becomes available only after the payer opens the hosted payment page, selects the payment token and blockchain network, and submits the order — Cobo creates the order and assigns `order_id` at that moment, not when the link itself was generated. | | |**merchantId** | **String** | The merchant ID. | [optional] | -|**merchantOrderCode** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional] | -|**pspOrderCode** | **String** | A unique reference code assigned by the developer to identify this order in their system. | | +|**merchantOrderCode** | **String** | The downstream merchant's order reference, exactly as you supplied it in `merchant_order_code` when creating the order, if you provided one. Present only when a `merchant_order_code` was included at order creation. | [optional] | +|**pspOrderCode** | **String** | The order identifier for your own internal business order, exactly as you supplied it in `psp_order_code` when creating the order. This value is unique within your Cobo organization. | | |**pricingCurrency** | **String** | The pricing currency of the order. | [optional] | |**pricingAmount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`). | [optional] | -|**feeAmount** | **String** | The developer fee for the order. It is added to the base amount to determine the final charge. | | +|**feeAmount** | **String** | The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). | | |**payableCurrency** | **String** | The ID of the cryptocurrency used for payment. | [optional] | |**chainId** | **String** | The ID of the blockchain network where the payment transaction should be made. | | |**payableAmount** | **String** | The cryptocurrency amount to be paid for this order. | | @@ -53,6 +53,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentPayoutEvent.md b/docs/PaymentPayoutEvent.md index ab190b24..bfad0e13 100644 --- a/docs/PaymentPayoutEvent.md +++ b/docs/PaymentPayoutEvent.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**payoutId** | **String** | The payout ID generated by Cobo. | | |**requestId** | **String** | The request ID provided by you when creating the payout. | | |**payoutChannel** | **PayoutChannel** | | | @@ -45,6 +45,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentPayoutParam.md b/docs/PaymentPayoutParam.md index dc4fcd3a..01490da2 100644 --- a/docs/PaymentPayoutParam.md +++ b/docs/PaymentPayoutParam.md @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**tokenId** | **String** | The ID of the cryptocurrency you want to pay out. Specify this field when `payout_channel` is set to `Crypto`. Supported values: - 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` | | -|**amount** | **String** | The payout cryptocurrency amount. | | +|**amount** | **String** | The payout amount, provided as a decimal string. You can include up to two nonzero digits after the decimal point; trailing zeros beyond that (for example, `100.500`) are accepted, but a value with more than two nonzero fractional digits (for example, `100.567`) is rejected with an invalid amount format error instead of being rounded. | | diff --git a/docs/PaymentPayoutRecipientInfo.md b/docs/PaymentPayoutRecipientInfo.md index e3a0788c..5bf534ae 100644 --- a/docs/PaymentPayoutRecipientInfo.md +++ b/docs/PaymentPayoutRecipientInfo.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**address** | **String** | The recipient's wallet address where the payout will be sent. | [optional] | -|**tokenId** | **String** | The token ID for the cryptocurrency to be sent to the recipient. If `recipient_info.token_id` is on a different chain than `payout_param.token_id`, the token will be automatically bridged to the chain specified in `recipient_info.token_id`. | [optional] | -|**currency** | **String** | The fiat currency of the bank account to which the payout will be sent. | [optional] | +|**address** | **String** | The recipient's cryptocurrency address. Use an address that you have registered as a destination and that has been approved for payouts. Call [List destination entries](https://www.cobo.com/payments/en/api-references/payment/list-destination-entries) with `entry_type` set to `Address` to retrieve your registered wallet addresses and each address's `chain_id`. A destination entry returns the `address` and its `chain_id`, not a `token_id` -- confirm that the network indicated by `chain_id` matches the network encoded in the `token_id` you use, since an address on the wrong network for that token cannot complete the transfer. | [optional] | +|**tokenId** | **String** | The cryptocurrency ID of the token to send (for example, `ETH_USDT`, `TRON_USDT`). When this token ID and the `token_id` in `payout_params` represent the same token on different chains, Cobo automatically executes a cross-chain transfer. You can retrieve the full list of supported token IDs by calling [List supported tokens](https://www.cobo.com/payments/en/api-references/payment/list-supported-tokens). | [optional] | +|**currency** | **String** | The fiat currency of the bank account selected in `bank_account_id` -- the two must match. This endpoint currently accepts only `USD`. | [optional] | |**bankAccountId** | **UUID** | The ID of the bank account to which the payout will be sent. This field is required only when the payout channel is `OffRamp`. You can retrieve the bank account ID by calling [List destination entries](https://www.cobo.com/payments/en/api-references/payment/list-destination-entries). | [optional] | |**transferViaVa** | **Boolean** | For OffRamp payout, whether the payout is transferred to a registered bank account via a virtual account (VA) or directly. - `true`: The payout is transferred to a registered bank account via a VA (virtual account). - `false`: The payout is transferred directly to a registered bank account. | [optional] | diff --git a/docs/PaymentRefundEventData.md b/docs/PaymentRefundEventData.md index 3abf7e8d..4e1b5f46 100644 --- a/docs/PaymentRefundEventData.md +++ b/docs/PaymentRefundEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**requestId** | **String** | The request ID provided by you when creating the refund request. | [optional] | |**refundId** | **String** | The refund order ID. | | |**orderId** | **String** | The ID of the pay-in order corresponding to this refund. | [optional] | @@ -49,6 +49,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentSettlementEvent.md b/docs/PaymentSettlementEvent.md index 5e4618b8..392b6e4a 100644 --- a/docs/PaymentSettlementEvent.md +++ b/docs/PaymentSettlementEvent.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**settlementRequestId** | **String** | The settlement request ID generated by Cobo. | | |**requestId** | **String** | The request ID provided by you when creating the settlement request. | | |**status** | **SettleRequestStatus** | | | @@ -43,6 +43,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/PaymentTransactionEventData.md b/docs/PaymentTransactionEventData.md index c7f88bd7..69de82df 100644 --- a/docs/PaymentTransactionEventData.md +++ b/docs/PaymentTransactionEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **UUID** | The transaction ID. | | |**coboId** | **String** | The Cobo ID, which can be used to track a transaction. | [optional] | |**requestId** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. | [optional] | @@ -69,6 +69,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/ReportExportFormat.md b/docs/ReportExportFormat.md index 4df7fe7b..f37270fd 100644 --- a/docs/ReportExportFormat.md +++ b/docs/ReportExportFormat.md @@ -11,5 +11,7 @@ * `ZIP` (value: `"ZIP"`) +* `PDF` (value: `"PDF"`) + diff --git a/docs/SuspendedTokenEventData.md b/docs/SuspendedTokenEventData.md index c020e973..100d0748 100644 --- a/docs/SuspendedTokenEventData.md +++ b/docs/SuspendedTokenEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**tokenIds** | **String** | A list of token IDs, separated by comma. | | |**operationType** | **SuspendedTokenOperationType** | | | @@ -32,6 +32,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/TSSRequestWebhookEventData.md b/docs/TSSRequestWebhookEventData.md index 2df2db11..e9cda710 100644 --- a/docs/TSSRequestWebhookEventData.md +++ b/docs/TSSRequestWebhookEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**tssRequestId** | **String** | The TSS request ID. | [optional] | |**sourceKeyShareHolderGroup** | [**SourceGroup**](SourceGroup.md) | | [optional] | |**targetKeyShareHolderGroupId** | **String** | The target key share holder group ID. | [optional] | @@ -37,6 +37,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/TokenListingEventData.md b/docs/TokenListingEventData.md index 244afc2d..f6b39b54 100644 --- a/docs/TokenListingEventData.md +++ b/docs/TokenListingEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**requestId** | **String** | The unique identifier of the token listing request. | | |**chainId** | **String** | The ID of the blockchain where the token is deployed. | | |**contractAddress** | **String** | The token's contract address on the specified blockchain. | | @@ -41,6 +41,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/TokensEventData.md b/docs/TokensEventData.md index af85a786..00ac8587 100644 --- a/docs/TokensEventData.md +++ b/docs/TokensEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**tokens** | [**List<TokenInfo>**](TokenInfo.md) | The enabled tokens. | | |**walletType** | **WalletType** | | [optional] | |**walletSubtypes** | **List<WalletSubtype>** | | [optional] | @@ -33,6 +33,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/TransactionWebhookEventData.md b/docs/TransactionWebhookEventData.md index 683d9428..85be53c5 100644 --- a/docs/TransactionWebhookEventData.md +++ b/docs/TransactionWebhookEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **UUID** | The transaction ID. | | |**coboId** | **String** | The Cobo ID, which can be used to track a transaction. | [optional] | |**requestId** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. | [optional] | @@ -61,6 +61,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/WalletInfoEventData.md b/docs/WalletInfoEventData.md index a2e339c9..5f025596 100644 --- a/docs/WalletInfoEventData.md +++ b/docs/WalletInfoEventData.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**wallet** | [**WalletInfo**](WalletInfo.md) | | [optional] | @@ -31,6 +31,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/WebhookEventData.md b/docs/WebhookEventData.md index 7df868e1..ee11ee53 100644 --- a/docs/WebhookEventData.md +++ b/docs/WebhookEventData.md @@ -7,15 +7,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | |**transactionId** | **String** | The transaction ID. | | |**coboId** | **String** | The Cobo ID, which can be used to track a transaction. | [optional] | -|**requestId** | **String** | The request ID. | | +|**requestId** | **String** | The request ID of the bulk send batch. | | |**walletId** | **String** | For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source. | | |**type** | **TransactionType** | | [optional] | |**status** | [**StatusEnum**](#StatusEnum) | The status of the fiat transaction. Possible values include: - `Created`: The transaction has been created. - `Succeeded`: The transaction has been completed successfully. | | |**subStatus** | **TransactionSubStatus** | | [optional] | -|**failedReason** | **String** | The reason why the bulk send failed. | [optional] | +|**failedReason** | **String** | The reason why the bulk send item failed. | [optional] | |**chainId** | **String** | The chain identifier. | | |**tokenId** | **String** | The token ID of the balance change. | | |**assetId** | **String** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional] | @@ -32,7 +32,7 @@ |**rawTxInfo** | [**TransactionRawTxInfo**](TransactionRawTxInfo.md) | | [optional] | |**replacement** | [**TransactionReplacement**](TransactionReplacement.md) | | [optional] | |**category** | **List<String>** | A custom transaction category for you to identify your transfers more easily. | [optional] | -|**description** | **String** | The description for the entire bulk send batch. | [optional] | +|**description** | **String** | A note or comment about the bulk send item. | [optional] | |**isLoop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional] | |**coboCategory** | **List<String>** | The Cobo category of the transaction. | [optional] | |**extra** | **List<String>** | A list of JSON-encoded strings containing structured, business-specific extra information for the transaction. Each item corresponds to a specific data type, indicated by the `extra_type` field in the JSON object (for example, \"BabylonBusinessInfo\", \"BtcAddressInfo\"). | [optional] | @@ -63,11 +63,11 @@ |**operationType** | **SuspendedTokenOperationType** | | | |**orderId** | **String** | The pay-in order ID. | | |**merchantId** | **String** | The merchant ID. | [optional] | -|**merchantOrderCode** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional] | +|**merchantOrderCode** | **String** | The downstream merchant's order reference, exactly as you supplied it in `merchant_order_code` when creating the order, if you provided one. Present only when a `merchant_order_code` was included at order creation. | [optional] | |**pspOrderCode** | **String** | A unique reference code assigned by the developer to identify this order in their system. | | |**pricingCurrency** | **String** | The pricing currency of the order. | [optional] | |**pricingAmount** | **String** | The base amount of the order, excluding the developer fee (specified in `fee_amount`). | [optional] | -|**feeAmount** | **String** | The developer fee for the order. It is added to the base amount to determine the final charge. | | +|**feeAmount** | **String** | The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). | | |**payableCurrency** | **String** | The ID of the cryptocurrency used for payment. | [optional] | |**payableAmount** | **String** | The cryptocurrency amount to be paid for this order. | | |**exchangeRate** | **String** | The exchange rate between `payable_currency` and `pricing_currency`, calculated as (`pricing_amount` + `fee_amount`) / `payable_amount`. <Note>This field is only returned when `payable_amount` was not provided in the order creation request. </Note> | | @@ -108,8 +108,12 @@ |**actualPayoutAmount** | **String** | - For `Crypto` payouts: The amount of cryptocurrency sent to the recipient's address, denominated in the token specified in `recipient_info.token_id`. - For `OffRamp` payouts: The amount of fiat currency sent to the recipient's bank account, denominated in the currency specified in `recipient_info.currency`. (Note: The actual amount received may be lower due to additional bank transfer fees.) | [optional] | |**commissionFees** | [**List<CommissionFee>**](CommissionFee.md) | The commission fees. Not returned when no fee has been incurred, the actual charged amounts once incurred, or `0` if refunded. | [optional] | |**remark** | **String** | A note or comment about the payout. | [optional] | -|**bulkSendId** | **String** | The bulk send ID. | | +|**bulkSendId** | **String** | The bulk send ID that this item belongs to. | | |**executionMode** | **PaymentBulkSendExecutionMode** | | | +|**bulkSendItemId** | **String** | The bulk send item ID. | | +|**receivingAddress** | **String** | The receiving address. | | +|**txHash** | **String** | The transaction hash of the bulk send item. | [optional] | +|**validationStatus** | **PaymentBulkSendItemValidationStatus** | | | |**sourceId** | **String** | The source ID of the balance change. | | |**sourceType** | **PaymentBalanceChangeSourceType** | | | |**amountRaw** | **String** | The balance change amount in the token's decimal precision, represented as a numeric string. | | @@ -153,6 +157,7 @@ | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/WebhookEventDataType.md b/docs/WebhookEventDataType.md index d25877ab..30c15386 100644 --- a/docs/WebhookEventDataType.md +++ b/docs/WebhookEventDataType.md @@ -8,7 +8,7 @@ The data type of the event. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | +|**dataType** | [**DataTypeEnum**](#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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. | | @@ -31,6 +31,7 @@ The data type of the event. | PAYMENTADDRESSUPDATE | "PaymentAddressUpdate" | | PAYMENTPAYOUT | "PaymentPayout" | | PAYMENTBULKSEND | "PaymentBulkSend" | +| PAYMENTBULKSENDITEM | "PaymentBulkSendItem" | | PAYMENTACCOUNTBALANCEUPDATE | "PaymentAccountBalanceUpdate" | | BALANCEUPDATEINFO | "BalanceUpdateInfo" | | SUSPENDEDTOKEN | "SuspendedToken" | diff --git a/docs/WebhookEventType.md b/docs/WebhookEventType.md index f1547600..6fac647e 100644 --- a/docs/WebhookEventType.md +++ b/docs/WebhookEventType.md @@ -95,6 +95,8 @@ * `PAYMENT_BULK_SEND_STATUS_UPDATED` (value: `"payment.bulk_send.status.updated"`) +* `PAYMENT_BULK_SEND_ITEM_STATUS_UPDATED` (value: `"payment.bulk_send.item.status.updated"`) + * `PAYMENT_TRANSACTION_EXTERNAL_CREATED` (value: `"payment.transaction.external.created"`) * `PAYMENT_TRANSACTION_EXTERNAL_COMPLETED` (value: `"payment.transaction.external.completed"`) diff --git a/pom.xml b/pom.xml index e3c411dd..0c8d5e19 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ cobo-waas2 jar cobo-waas2 - 1.40.0 + 1.41.0 https://github.com/CoboGlobal/cobo-waas2-java-sdk Cobo WaaS 2.0 Java SDK @@ -55,7 +55,7 @@ org.sonatype.central central-publishing-maven-plugin - 0.11.0 + 0.5.0 true central diff --git a/src/main/java/com/cobo/waas2/ApiClient.java b/src/main/java/com/cobo/waas2/ApiClient.java index ef51984e..ee7c1451 100644 --- a/src/main/java/com/cobo/waas2/ApiClient.java +++ b/src/main/java/com/cobo/waas2/ApiClient.java @@ -197,7 +197,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("cobo-waas2-java-sdk/1.40.0"); + setUserAgent("cobo-waas2-java-sdk/1.41.0"); authentications = new HashMap(); } diff --git a/src/main/java/com/cobo/waas2/Configuration.java b/src/main/java/com/cobo/waas2/Configuration.java index 5d9bf358..c8f02718 100644 --- a/src/main/java/com/cobo/waas2/Configuration.java +++ b/src/main/java/com/cobo/waas2/Configuration.java @@ -16,7 +16,7 @@ comments = "Generator version: 7.6.0" ) public class Configuration { - public static final String VERSION = "1.40.0"; + public static final String VERSION = "1.41.0"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/cobo/waas2/JSON.java b/src/main/java/com/cobo/waas2/JSON.java index aa90b5c1..6d10b41d 100644 --- a/src/main/java/com/cobo/waas2/JSON.java +++ b/src/main/java/com/cobo/waas2/JSON.java @@ -769,6 +769,7 @@ public Class getClassForElement classByDiscriminatorValue.put("PaymentAccountBalanceUpdate", com.cobo.waas2.model.PaymentAccountBalanceUpdateEventData.class); classByDiscriminatorValue.put("PaymentAddressUpdate", com.cobo.waas2.model.PaymentAddressUpdateEventData.class); classByDiscriminatorValue.put("PaymentBulkSend", com.cobo.waas2.model.PaymentBulkSendEvent.class); + classByDiscriminatorValue.put("PaymentBulkSendItem", com.cobo.waas2.model.PaymentBulkSendItemEvent.class); classByDiscriminatorValue.put("PaymentOrder", com.cobo.waas2.model.PaymentOrderEventData.class); classByDiscriminatorValue.put("PaymentPayout", com.cobo.waas2.model.PaymentPayoutEvent.class); classByDiscriminatorValue.put("PaymentRefund", com.cobo.waas2.model.PaymentRefundEventData.class); @@ -792,6 +793,7 @@ public Class getClassForElement classByDiscriminatorValue.put("PaymentAccountBalanceUpdateEventData", com.cobo.waas2.model.PaymentAccountBalanceUpdateEventData.class); classByDiscriminatorValue.put("PaymentAddressUpdateEventData", com.cobo.waas2.model.PaymentAddressUpdateEventData.class); classByDiscriminatorValue.put("PaymentBulkSendEvent", com.cobo.waas2.model.PaymentBulkSendEvent.class); + classByDiscriminatorValue.put("PaymentBulkSendItemEvent", com.cobo.waas2.model.PaymentBulkSendItemEvent.class); classByDiscriminatorValue.put("PaymentOrderEventData", com.cobo.waas2.model.PaymentOrderEventData.class); classByDiscriminatorValue.put("PaymentPayoutEvent", com.cobo.waas2.model.PaymentPayoutEvent.class); classByDiscriminatorValue.put("PaymentRefundEventData", com.cobo.waas2.model.PaymentRefundEventData.class); @@ -1218,6 +1220,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentBulkSend.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentBulkSendEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentBulkSendItem.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentBulkSendItemEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentEstimateFee.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentEstimateFee201Response.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new com.cobo.waas2.model.PaymentEstimateFeeRequest.CustomTypeAdapterFactory()); diff --git a/src/main/java/com/cobo/waas2/api/PaymentApi.java b/src/main/java/com/cobo/waas2/api/PaymentApi.java index 8d36c2cb..48f069f0 100644 --- a/src/main/java/com/cobo/waas2/api/PaymentApi.java +++ b/src/main/java/com/cobo/waas2/api/PaymentApi.java @@ -1588,7 +1588,7 @@ private okhttp3.Call createPaymentOrderValidateBeforeCall(CreatePaymentOrderRequ /** * Create pay-in order - * This operation creates a pay-in order. + * This operation creates a pay-in order. Before you can call this operation, make sure the following prerequisites are met: - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. - `merchant_id` references a merchant that already exists and is owned by your organization. Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). <Note> This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). </Note> * @param createPaymentOrderRequest The request body to create a pay-in order. (optional) * @return Order * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1607,7 +1607,7 @@ public Order createPaymentOrder(CreatePaymentOrderRequest createPaymentOrderRequ /** * Create pay-in order - * This operation creates a pay-in order. + * This operation creates a pay-in order. Before you can call this operation, make sure the following prerequisites are met: - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. - `merchant_id` references a merchant that already exists and is owned by your organization. Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). <Note> This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). </Note> * @param createPaymentOrderRequest The request body to create a pay-in order. (optional) * @return ApiResponse<Order> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1627,7 +1627,7 @@ public ApiResponse createPaymentOrderWithHttpInfo(CreatePaymentOrderReque /** * Create pay-in order (asynchronously) - * This operation creates a pay-in order. + * This operation creates a pay-in order. Before you can call this operation, make sure the following prerequisites are met: - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. - `merchant_id` references a merchant that already exists and is owned by your organization. Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). <Note> This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). </Note> * @param createPaymentOrderRequest The request body to create a pay-in order. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/src/main/java/com/cobo/waas2/model/AddressesEventData.java b/src/main/java/com/cobo/waas2/model/AddressesEventData.java index fc08a960..99d83a0f 100644 --- a/src/main/java/com/cobo/waas2/model/AddressesEventData.java +++ b/src/main/java/com/cobo/waas2/model/AddressesEventData.java @@ -56,7 +56,7 @@ ) public class AddressesEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -90,6 +90,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -166,7 +168,7 @@ public AddressesEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/BalanceUpdateInfoEventData.java b/src/main/java/com/cobo/waas2/model/BalanceUpdateInfoEventData.java index 0b3bcbd8..aab7f563 100644 --- a/src/main/java/com/cobo/waas2/model/BalanceUpdateInfoEventData.java +++ b/src/main/java/com/cobo/waas2/model/BalanceUpdateInfoEventData.java @@ -55,7 +55,7 @@ ) public class BalanceUpdateInfoEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -89,6 +89,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -181,7 +183,7 @@ public BalanceUpdateInfoEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/ChainsEventData.java b/src/main/java/com/cobo/waas2/model/ChainsEventData.java index 7d0b9ee5..7eb8a712 100644 --- a/src/main/java/com/cobo/waas2/model/ChainsEventData.java +++ b/src/main/java/com/cobo/waas2/model/ChainsEventData.java @@ -58,7 +58,7 @@ ) public class ChainsEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -92,6 +92,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -176,7 +178,7 @@ public ChainsEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/ComplianceDispositionUpdateEventData.java b/src/main/java/com/cobo/waas2/model/ComplianceDispositionUpdateEventData.java index a0408649..cab2fd64 100644 --- a/src/main/java/com/cobo/waas2/model/ComplianceDispositionUpdateEventData.java +++ b/src/main/java/com/cobo/waas2/model/ComplianceDispositionUpdateEventData.java @@ -56,7 +56,7 @@ ) public class ComplianceDispositionUpdateEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -90,6 +90,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -186,7 +188,7 @@ public ComplianceDispositionUpdateEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/ComplianceKyaScreeningsUpdateEventData.java b/src/main/java/com/cobo/waas2/model/ComplianceKyaScreeningsUpdateEventData.java index d902c034..80acd458 100644 --- a/src/main/java/com/cobo/waas2/model/ComplianceKyaScreeningsUpdateEventData.java +++ b/src/main/java/com/cobo/waas2/model/ComplianceKyaScreeningsUpdateEventData.java @@ -55,7 +55,7 @@ ) public class ComplianceKyaScreeningsUpdateEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -89,6 +89,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -185,7 +187,7 @@ public ComplianceKyaScreeningsUpdateEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/ComplianceKytScreeningsUpdateEventData.java b/src/main/java/com/cobo/waas2/model/ComplianceKytScreeningsUpdateEventData.java index ef91a80a..f3c65a70 100644 --- a/src/main/java/com/cobo/waas2/model/ComplianceKytScreeningsUpdateEventData.java +++ b/src/main/java/com/cobo/waas2/model/ComplianceKytScreeningsUpdateEventData.java @@ -57,7 +57,7 @@ ) public class ComplianceKytScreeningsUpdateEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -91,6 +91,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -183,7 +185,7 @@ public ComplianceKytScreeningsUpdateEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/CreatePaymentOrderRequest.java b/src/main/java/com/cobo/waas2/model/CreatePaymentOrderRequest.java index c54553df..628dde0d 100644 --- a/src/main/java/com/cobo/waas2/model/CreatePaymentOrderRequest.java +++ b/src/main/java/com/cobo/waas2/model/CreatePaymentOrderRequest.java @@ -140,7 +140,7 @@ public CreatePaymentOrderRequest merchantOrderCode(String merchantOrderCode) { } /** - * A unique reference code assigned by the merchant to identify this order in their system. + * An optional reference for the order maintained by a downstream merchant you serve — for example, when you are a payment service provider (PSP) processing pay-in orders on behalf of merchants. Set this field only when such a downstream merchant supplies its own order reference that is distinct from your internal `psp_order_code`. Omit this field if you are collecting payment directly as the merchant, with no separate downstream merchant reference to track. * @return merchantOrderCode **/ @javax.annotation.Nullable @@ -159,7 +159,7 @@ public CreatePaymentOrderRequest pspOrderCode(String pspOrderCode) { } /** - * A unique reference code assigned by the developer to identify this order in their system. + * The order identifier for your own internal business order. Set this to the order reference you use internally to identify this pay-in — for example, an order or transaction ID from your own order-management system. This value must be unique within your Cobo organization: Cobo enforces uniqueness on `psp_order_code`, so reusing a code already associated with an existing order in your organization is rejected. If a downstream merchant you serve supplies its own separate order reference, record that in `merchant_order_code` instead — `psp_order_code` always identifies your own order, not the merchant's. * @return pspOrderCode **/ @javax.annotation.Nonnull @@ -216,7 +216,7 @@ public CreatePaymentOrderRequest feeAmount(String feeAmount) { } /** - * The developer fee for the order. It is added to the base amount (`pricing_amount`) to determine the final charge. For example, if `pricing_amount` is \"100.00\" and `fee_amount` is \"2.00\", the payer will be charged \"102.00\" in total, with \"100.00\" being settled to the merchant account and \"2.00\" settled to the developer account. Values must be greater than or equal to 0 and contain two decimal places. + * The order-level developer charge deducted from the payment collected for this order and credited to your developer balance. Both `0` and positive values are valid. A value of `0` means that no developer fee is taken and the merchant receives the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). * @return feeAmount **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/FiatTransactionEventData.java b/src/main/java/com/cobo/waas2/model/FiatTransactionEventData.java index c722fb80..d3c22fde 100644 --- a/src/main/java/com/cobo/waas2/model/FiatTransactionEventData.java +++ b/src/main/java/com/cobo/waas2/model/FiatTransactionEventData.java @@ -57,7 +57,7 @@ ) public class FiatTransactionEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -91,6 +91,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -251,7 +253,7 @@ public FiatTransactionEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/MPCVaultEventData.java b/src/main/java/com/cobo/waas2/model/MPCVaultEventData.java index e1310284..c3cb97ff 100644 --- a/src/main/java/com/cobo/waas2/model/MPCVaultEventData.java +++ b/src/main/java/com/cobo/waas2/model/MPCVaultEventData.java @@ -57,7 +57,7 @@ ) public class MPCVaultEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -91,6 +91,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -187,7 +189,7 @@ public MPCVaultEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/Merchant.java b/src/main/java/com/cobo/waas2/model/Merchant.java index c2d0212c..9159f129 100644 --- a/src/main/java/com/cobo/waas2/model/Merchant.java +++ b/src/main/java/com/cobo/waas2/model/Merchant.java @@ -148,7 +148,7 @@ public Merchant developerFeeRate(String developerFeeRate) { } /** - * The developer fee rate applied to this merchant. + * The merchant-level fee fraction applied specifically to Top-up-mode deposits. The value can range from `0` through `1` and can contain up to four decimal places. For example, `0.015` represents 1.5%. An absent or cleared value is treated as zero, so no developer fee is charged on Top-up deposits. An update applies only to subsequent Top-up deposits and is not retroactive to deposits that have already been processed. The developer share is rounded down to the token's precision. This rate does not combine with a Payment Order's `fee_amount`. Order-mode and Top-up-mode deposits use separate, mutually exclusive settlement paths, so there is no calculation order or precedence between the two fees. For configuration and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants), [Payment collection in order mode](https://www.cobo.com/payments/en/guides/create-orders), and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). * @return developerFeeRate **/ @javax.annotation.Nullable diff --git a/src/main/java/com/cobo/waas2/model/Order.java b/src/main/java/com/cobo/waas2/model/Order.java index 9c636b6b..bff1961b 100644 --- a/src/main/java/com/cobo/waas2/model/Order.java +++ b/src/main/java/com/cobo/waas2/model/Order.java @@ -158,7 +158,7 @@ public Order orderId(String orderId) { } /** - * The order ID. + * The unique identifier of the payment order. Cobo assigns this ID when the payment order is created — when that happens depends on which pay-in method you use. For the direct method, `Create pay-in order` creates the order synchronously and returns `order_id` in the response immediately. For the payment link method, `Create order link` returns only the hosted link details and does not create an order, so `order_id` does not exist yet at that point. `order_id` becomes available only after the payer opens the hosted payment page, selects the payment token and blockchain network, and submits the order — Cobo creates the order and assigns `order_id` at that moment, not when the link itself was generated. * @return orderId **/ @javax.annotation.Nonnull @@ -196,7 +196,7 @@ public Order merchantOrderCode(String merchantOrderCode) { } /** - * A unique reference code assigned by the merchant to identify this order in their system. + * The downstream merchant's order reference, exactly as you supplied it in `merchant_order_code` when creating the order, if you provided one. Present only when a `merchant_order_code` was included at order creation. * @return merchantOrderCode **/ @javax.annotation.Nullable @@ -215,7 +215,7 @@ public Order pspOrderCode(String pspOrderCode) { } /** - * A unique reference code assigned by the developer to identify this order in their system. + * The order identifier for your own internal business order, exactly as you supplied it in `psp_order_code` when creating the order. This value is unique within your Cobo organization. * @return pspOrderCode **/ @javax.annotation.Nonnull @@ -272,7 +272,7 @@ public Order feeAmount(String feeAmount) { } /** - * The developer fee for the order. It is added to the base amount to determine the final charge. + * The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). * @return feeAmount **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/OrganizationEventData.java b/src/main/java/com/cobo/waas2/model/OrganizationEventData.java index 482b9b11..92b4a14d 100644 --- a/src/main/java/com/cobo/waas2/model/OrganizationEventData.java +++ b/src/main/java/com/cobo/waas2/model/OrganizationEventData.java @@ -54,7 +54,7 @@ ) public class OrganizationEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -88,6 +88,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -168,7 +170,7 @@ public OrganizationEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentAccountBalanceUpdateEventData.java b/src/main/java/com/cobo/waas2/model/PaymentAccountBalanceUpdateEventData.java index 7c5e8675..e26914fd 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentAccountBalanceUpdateEventData.java +++ b/src/main/java/com/cobo/waas2/model/PaymentAccountBalanceUpdateEventData.java @@ -55,7 +55,7 @@ ) public class PaymentAccountBalanceUpdateEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -89,6 +89,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -209,7 +211,7 @@ public PaymentAccountBalanceUpdateEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentAddressUpdateEventData.java b/src/main/java/com/cobo/waas2/model/PaymentAddressUpdateEventData.java index a5007a8f..10de6863 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentAddressUpdateEventData.java +++ b/src/main/java/com/cobo/waas2/model/PaymentAddressUpdateEventData.java @@ -53,7 +53,7 @@ ) public class PaymentAddressUpdateEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -87,6 +87,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -183,7 +185,7 @@ public PaymentAddressUpdateEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentBulkSendEvent.java b/src/main/java/com/cobo/waas2/model/PaymentBulkSendEvent.java index 6e876802..fb21efec 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentBulkSendEvent.java +++ b/src/main/java/com/cobo/waas2/model/PaymentBulkSendEvent.java @@ -56,7 +56,7 @@ ) public class PaymentBulkSendEvent { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -90,6 +90,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -202,7 +204,7 @@ public PaymentBulkSendEvent dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentBulkSendExecutionMode.java b/src/main/java/com/cobo/waas2/model/PaymentBulkSendExecutionMode.java index 02a9dad5..41f1910d 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentBulkSendExecutionMode.java +++ b/src/main/java/com/cobo/waas2/model/PaymentBulkSendExecutionMode.java @@ -22,7 +22,7 @@ import com.google.gson.stream.JsonWriter; /** - * The execution mode of the bulk send. - `Strict`: The bulk send is executed in strict mode. All-or-nothing is enforced at the validation stage: if any item fails validation, the entire batch is rejected and no items are sent. Note that this all-or-nothing guarantee applies at validation only, not at execution. After validation passes, individual items may still be rejected by risk control or fail during on-chain execution, which can result in a `PartiallyCompleted` bulk send status. - `Partial`: The bulk send is executed in partial mode, which means some bulk send items can be successfully executed and some can be failed. + * Specifies how the batch handles item-level validation failures. The required `execution_mode` field is a string enum and must be set to either `Strict` or `Partial`; no default is applied if you omit it. It is not a `strict_mode` boolean flag. - `Strict`: If any item in the batch fails validation, no items are executed. Every item is marked `NotExecuted`, and the batch fails. The batch also fails in `Strict` mode if the fund sweep needed to fund it only partially completes. - `Partial`: Item validation failures are isolated to the affected items. Failed items are marked `NotExecuted`, while all other validated items in the batch continue to be processed normally. Use `Partial` when one item's validation failure should not block the rest of the batch. Because outcomes can differ by item, check each item's result and `validation_status` individually instead of assuming that a batch-level outcome applies to every item. */ @JsonAdapter(PaymentBulkSendExecutionMode.Adapter.class) public enum PaymentBulkSendExecutionMode { diff --git a/src/main/java/com/cobo/waas2/model/PaymentBulkSendItemEvent.java b/src/main/java/com/cobo/waas2/model/PaymentBulkSendItemEvent.java new file mode 100644 index 00000000..d694124a --- /dev/null +++ b/src/main/java/com/cobo/waas2/model/PaymentBulkSendItemEvent.java @@ -0,0 +1,806 @@ +/* + * Cobo Wallet as a Service 2.0 + * + * Contact: help@cobo.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.cobo.waas2.model; + +import java.util.Objects; +import com.cobo.waas2.model.PaymentBulkSendItemStatus; +import com.cobo.waas2.model.PaymentBulkSendItemValidationStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.cobo.waas2.JSON; + +/** + * PaymentBulkSendItemEvent + */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.6.0" +) +public class PaymentBulkSendItemEvent { + /** + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + */ + @JsonAdapter(DataTypeEnum.Adapter.class) + public enum DataTypeEnum { + TRANSACTION("Transaction"), + + TSSREQUEST("TSSRequest"), + + ADDRESSES("Addresses"), + + WALLETINFO("WalletInfo"), + + MPCVAULT("MPCVault"), + + CHAINS("Chains"), + + TOKENS("Tokens"), + + TOKENLISTING("TokenListing"), + + PAYMENTORDER("PaymentOrder"), + + PAYMENTREFUND("PaymentRefund"), + + PAYMENTSETTLEMENT("PaymentSettlement"), + + PAYMENTTRANSACTION("PaymentTransaction"), + + PAYMENTADDRESSUPDATE("PaymentAddressUpdate"), + + PAYMENTPAYOUT("PaymentPayout"), + + PAYMENTBULKSEND("PaymentBulkSend"), + + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), + + BALANCEUPDATEINFO("BalanceUpdateInfo"), + + SUSPENDEDTOKEN("SuspendedToken"), + + COMPLIANCEDISPOSITION("ComplianceDisposition"), + + COMPLIANCEKYTSCREENINGS("ComplianceKytScreenings"), + + COMPLIANCEKYASCREENINGS("ComplianceKyaScreenings"), + + ORGANIZATION("Organization"), + + FIATTRANSACTION("FiatTransaction"); + + private String value; + + DataTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DataTypeEnum fromValue(String value) { + for (DataTypeEnum b : DataTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DataTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DataTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DataTypeEnum.fromValue(value); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + DataTypeEnum.fromValue(value); + } + } + + public static final String SERIALIZED_NAME_DATA_TYPE = "data_type"; + @SerializedName(SERIALIZED_NAME_DATA_TYPE) + private DataTypeEnum dataType; + + public static final String SERIALIZED_NAME_BULK_SEND_ITEM_ID = "bulk_send_item_id"; + @SerializedName(SERIALIZED_NAME_BULK_SEND_ITEM_ID) + private String bulkSendItemId; + + public static final String SERIALIZED_NAME_TOKEN_ID = "token_id"; + @SerializedName(SERIALIZED_NAME_TOKEN_ID) + private String tokenId; + + public static final String SERIALIZED_NAME_RECEIVING_ADDRESS = "receiving_address"; + @SerializedName(SERIALIZED_NAME_RECEIVING_ADDRESS) + private String receivingAddress; + + public static final String SERIALIZED_NAME_AMOUNT = "amount"; + @SerializedName(SERIALIZED_NAME_AMOUNT) + private String amount; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_TX_HASH = "tx_hash"; + @SerializedName(SERIALIZED_NAME_TX_HASH) + private String txHash; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private PaymentBulkSendItemStatus status; + + public static final String SERIALIZED_NAME_VALIDATION_STATUS = "validation_status"; + @SerializedName(SERIALIZED_NAME_VALIDATION_STATUS) + private PaymentBulkSendItemValidationStatus validationStatus; + + public static final String SERIALIZED_NAME_FAILED_REASON = "failed_reason"; + @SerializedName(SERIALIZED_NAME_FAILED_REASON) + private String failedReason; + + public static final String SERIALIZED_NAME_BULK_SEND_ID = "bulk_send_id"; + @SerializedName(SERIALIZED_NAME_BULK_SEND_ID) + private String bulkSendId; + + public static final String SERIALIZED_NAME_REQUEST_ID = "request_id"; + @SerializedName(SERIALIZED_NAME_REQUEST_ID) + private String requestId; + + public static final String SERIALIZED_NAME_SOURCE_ACCOUNT = "source_account"; + @SerializedName(SERIALIZED_NAME_SOURCE_ACCOUNT) + private String sourceAccount; + + public static final String SERIALIZED_NAME_CREATED_TIMESTAMP = "created_timestamp"; + @SerializedName(SERIALIZED_NAME_CREATED_TIMESTAMP) + private Integer createdTimestamp; + + public static final String SERIALIZED_NAME_UPDATED_TIMESTAMP = "updated_timestamp"; + @SerializedName(SERIALIZED_NAME_UPDATED_TIMESTAMP) + private Integer updatedTimestamp; + + public PaymentBulkSendItemEvent() { + } + + public PaymentBulkSendItemEvent dataType(DataTypeEnum dataType) { + this.dataType = dataType; + return this; + } + + /** + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * @return dataType + **/ + @javax.annotation.Nonnull + public DataTypeEnum getDataType() { + return dataType; + } + + public void setDataType(DataTypeEnum dataType) { + this.dataType = dataType; + } + + + public PaymentBulkSendItemEvent bulkSendItemId(String bulkSendItemId) { + this.bulkSendItemId = bulkSendItemId; + return this; + } + + /** + * The bulk send item ID. + * @return bulkSendItemId + **/ + @javax.annotation.Nonnull + public String getBulkSendItemId() { + return bulkSendItemId; + } + + public void setBulkSendItemId(String bulkSendItemId) { + this.bulkSendItemId = bulkSendItemId; + } + + + public PaymentBulkSendItemEvent tokenId(String tokenId) { + this.tokenId = tokenId; + return this; + } + + /** + * The token ID of the cryptocurrency to be sent to the recipient. + * @return tokenId + **/ + @javax.annotation.Nonnull + public String getTokenId() { + return tokenId; + } + + public void setTokenId(String tokenId) { + this.tokenId = tokenId; + } + + + public PaymentBulkSendItemEvent receivingAddress(String receivingAddress) { + this.receivingAddress = receivingAddress; + return this; + } + + /** + * The receiving address. + * @return receivingAddress + **/ + @javax.annotation.Nonnull + public String getReceivingAddress() { + return receivingAddress; + } + + public void setReceivingAddress(String receivingAddress) { + this.receivingAddress = receivingAddress; + } + + + public PaymentBulkSendItemEvent amount(String amount) { + this.amount = amount; + return this; + } + + /** + * The amount of the cryptocurrency to be sent to the recipient. + * @return amount + **/ + @javax.annotation.Nonnull + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + + public PaymentBulkSendItemEvent description(String description) { + this.description = description; + return this; + } + + /** + * A note or comment about the bulk send item. + * @return description + **/ + @javax.annotation.Nullable + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + public PaymentBulkSendItemEvent txHash(String txHash) { + this.txHash = txHash; + return this; + } + + /** + * The transaction hash of the bulk send item. + * @return txHash + **/ + @javax.annotation.Nullable + public String getTxHash() { + return txHash; + } + + public void setTxHash(String txHash) { + this.txHash = txHash; + } + + + public PaymentBulkSendItemEvent status(PaymentBulkSendItemStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nonnull + public PaymentBulkSendItemStatus getStatus() { + return status; + } + + public void setStatus(PaymentBulkSendItemStatus status) { + this.status = status; + } + + + public PaymentBulkSendItemEvent validationStatus(PaymentBulkSendItemValidationStatus validationStatus) { + this.validationStatus = validationStatus; + return this; + } + + /** + * Get validationStatus + * @return validationStatus + **/ + @javax.annotation.Nonnull + public PaymentBulkSendItemValidationStatus getValidationStatus() { + return validationStatus; + } + + public void setValidationStatus(PaymentBulkSendItemValidationStatus validationStatus) { + this.validationStatus = validationStatus; + } + + + public PaymentBulkSendItemEvent failedReason(String failedReason) { + this.failedReason = failedReason; + return this; + } + + /** + * The reason why the bulk send item failed. + * @return failedReason + **/ + @javax.annotation.Nullable + public String getFailedReason() { + return failedReason; + } + + public void setFailedReason(String failedReason) { + this.failedReason = failedReason; + } + + + public PaymentBulkSendItemEvent bulkSendId(String bulkSendId) { + this.bulkSendId = bulkSendId; + return this; + } + + /** + * The bulk send ID that this item belongs to. + * @return bulkSendId + **/ + @javax.annotation.Nonnull + public String getBulkSendId() { + return bulkSendId; + } + + public void setBulkSendId(String bulkSendId) { + this.bulkSendId = bulkSendId; + } + + + public PaymentBulkSendItemEvent requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * The request ID of the bulk send batch. + * @return requestId + **/ + @javax.annotation.Nullable + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + + public PaymentBulkSendItemEvent sourceAccount(String sourceAccount) { + this.sourceAccount = sourceAccount; + return this; + } + + /** + * The source account ID of the bulk send batch. + * @return sourceAccount + **/ + @javax.annotation.Nonnull + public String getSourceAccount() { + return sourceAccount; + } + + public void setSourceAccount(String sourceAccount) { + this.sourceAccount = sourceAccount; + } + + + public PaymentBulkSendItemEvent createdTimestamp(Integer createdTimestamp) { + this.createdTimestamp = createdTimestamp; + return this; + } + + /** + * The created time of the bulk send item, represented as a UNIX timestamp in seconds. + * @return createdTimestamp + **/ + @javax.annotation.Nonnull + public Integer getCreatedTimestamp() { + return createdTimestamp; + } + + public void setCreatedTimestamp(Integer createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + + public PaymentBulkSendItemEvent updatedTimestamp(Integer updatedTimestamp) { + this.updatedTimestamp = updatedTimestamp; + return this; + } + + /** + * The updated time of the bulk send item, represented as a UNIX timestamp in seconds. + * @return updatedTimestamp + **/ + @javax.annotation.Nonnull + public Integer getUpdatedTimestamp() { + return updatedTimestamp; + } + + public void setUpdatedTimestamp(Integer updatedTimestamp) { + this.updatedTimestamp = updatedTimestamp; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PaymentBulkSendItemEvent instance itself + */ + public PaymentBulkSendItemEvent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentBulkSendItemEvent paymentBulkSendItemEvent = (PaymentBulkSendItemEvent) o; + return Objects.equals(this.dataType, paymentBulkSendItemEvent.dataType) && + Objects.equals(this.bulkSendItemId, paymentBulkSendItemEvent.bulkSendItemId) && + Objects.equals(this.tokenId, paymentBulkSendItemEvent.tokenId) && + Objects.equals(this.receivingAddress, paymentBulkSendItemEvent.receivingAddress) && + Objects.equals(this.amount, paymentBulkSendItemEvent.amount) && + Objects.equals(this.description, paymentBulkSendItemEvent.description) && + Objects.equals(this.txHash, paymentBulkSendItemEvent.txHash) && + Objects.equals(this.status, paymentBulkSendItemEvent.status) && + Objects.equals(this.validationStatus, paymentBulkSendItemEvent.validationStatus) && + Objects.equals(this.failedReason, paymentBulkSendItemEvent.failedReason) && + Objects.equals(this.bulkSendId, paymentBulkSendItemEvent.bulkSendId) && + Objects.equals(this.requestId, paymentBulkSendItemEvent.requestId) && + Objects.equals(this.sourceAccount, paymentBulkSendItemEvent.sourceAccount) && + Objects.equals(this.createdTimestamp, paymentBulkSendItemEvent.createdTimestamp) && + Objects.equals(this.updatedTimestamp, paymentBulkSendItemEvent.updatedTimestamp)&& + Objects.equals(this.additionalProperties, paymentBulkSendItemEvent.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(dataType, bulkSendItemId, tokenId, receivingAddress, amount, description, txHash, status, validationStatus, failedReason, bulkSendId, requestId, sourceAccount, createdTimestamp, updatedTimestamp, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentBulkSendItemEvent {\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append(" bulkSendItemId: ").append(toIndentedString(bulkSendItemId)).append("\n"); + sb.append(" tokenId: ").append(toIndentedString(tokenId)).append("\n"); + sb.append(" receivingAddress: ").append(toIndentedString(receivingAddress)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" txHash: ").append(toIndentedString(txHash)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" validationStatus: ").append(toIndentedString(validationStatus)).append("\n"); + sb.append(" failedReason: ").append(toIndentedString(failedReason)).append("\n"); + sb.append(" bulkSendId: ").append(toIndentedString(bulkSendId)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" sourceAccount: ").append(toIndentedString(sourceAccount)).append("\n"); + sb.append(" createdTimestamp: ").append(toIndentedString(createdTimestamp)).append("\n"); + sb.append(" updatedTimestamp: ").append(toIndentedString(updatedTimestamp)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data_type"); + openapiFields.add("bulk_send_item_id"); + openapiFields.add("token_id"); + openapiFields.add("receiving_address"); + openapiFields.add("amount"); + openapiFields.add("description"); + openapiFields.add("tx_hash"); + openapiFields.add("status"); + openapiFields.add("validation_status"); + openapiFields.add("failed_reason"); + openapiFields.add("bulk_send_id"); + openapiFields.add("request_id"); + openapiFields.add("source_account"); + openapiFields.add("created_timestamp"); + openapiFields.add("updated_timestamp"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("data_type"); + openapiRequiredFields.add("bulk_send_item_id"); + openapiRequiredFields.add("token_id"); + openapiRequiredFields.add("receiving_address"); + openapiRequiredFields.add("amount"); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("validation_status"); + openapiRequiredFields.add("bulk_send_id"); + openapiRequiredFields.add("source_account"); + openapiRequiredFields.add("created_timestamp"); + openapiRequiredFields.add("updated_timestamp"); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PaymentBulkSendItemEvent + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PaymentBulkSendItemEvent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PaymentBulkSendItemEvent is not found in the empty JSON string", PaymentBulkSendItemEvent.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PaymentBulkSendItemEvent.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("data_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `data_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("data_type").toString())); + } + // validate the required field `data_type` + DataTypeEnum.validateJsonElement(jsonObj.get("data_type")); + if (!jsonObj.get("bulk_send_item_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `bulk_send_item_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bulk_send_item_id").toString())); + } + if (!jsonObj.get("token_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `token_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token_id").toString())); + } + if (!jsonObj.get("receiving_address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `receiving_address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("receiving_address").toString())); + } + if (!jsonObj.get("amount").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `amount` to be a primitive type in the JSON string but got `%s`", jsonObj.get("amount").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("tx_hash") != null && !jsonObj.get("tx_hash").isJsonNull()) && !jsonObj.get("tx_hash").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tx_hash` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tx_hash").toString())); + } + // validate the required field `status` + PaymentBulkSendItemStatus.validateJsonElement(jsonObj.get("status")); + // validate the required field `validation_status` + PaymentBulkSendItemValidationStatus.validateJsonElement(jsonObj.get("validation_status")); + if ((jsonObj.get("failed_reason") != null && !jsonObj.get("failed_reason").isJsonNull()) && !jsonObj.get("failed_reason").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `failed_reason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failed_reason").toString())); + } + if (!jsonObj.get("bulk_send_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `bulk_send_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bulk_send_id").toString())); + } + if ((jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonNull()) && !jsonObj.get("request_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `request_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request_id").toString())); + } + if (!jsonObj.get("source_account").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `source_account` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_account").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PaymentBulkSendItemEvent.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PaymentBulkSendItemEvent' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PaymentBulkSendItemEvent.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PaymentBulkSendItemEvent value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() == null) + obj.addProperty(entry.getKey(), (String) null); + else if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public PaymentBulkSendItemEvent read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + PaymentBulkSendItemEvent instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PaymentBulkSendItemEvent given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentBulkSendItemEvent + * @throws IOException if the JSON string is invalid with respect to PaymentBulkSendItemEvent + */ + public static PaymentBulkSendItemEvent fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PaymentBulkSendItemEvent.class); + } + + /** + * Convert an instance of PaymentBulkSendItemEvent to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/cobo/waas2/model/PaymentOrderEventData.java b/src/main/java/com/cobo/waas2/model/PaymentOrderEventData.java index 9425f9cc..07c224e7 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentOrderEventData.java +++ b/src/main/java/com/cobo/waas2/model/PaymentOrderEventData.java @@ -58,7 +58,7 @@ ) public class PaymentOrderEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -92,6 +92,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -256,7 +258,7 @@ public PaymentOrderEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull @@ -275,7 +277,7 @@ public PaymentOrderEventData orderId(String orderId) { } /** - * The order ID. + * The unique identifier of the payment order. Cobo assigns this ID when the payment order is created — when that happens depends on which pay-in method you use. For the direct method, `Create pay-in order` creates the order synchronously and returns `order_id` in the response immediately. For the payment link method, `Create order link` returns only the hosted link details and does not create an order, so `order_id` does not exist yet at that point. `order_id` becomes available only after the payer opens the hosted payment page, selects the payment token and blockchain network, and submits the order — Cobo creates the order and assigns `order_id` at that moment, not when the link itself was generated. * @return orderId **/ @javax.annotation.Nonnull @@ -313,7 +315,7 @@ public PaymentOrderEventData merchantOrderCode(String merchantOrderCode) { } /** - * A unique reference code assigned by the merchant to identify this order in their system. + * The downstream merchant's order reference, exactly as you supplied it in `merchant_order_code` when creating the order, if you provided one. Present only when a `merchant_order_code` was included at order creation. * @return merchantOrderCode **/ @javax.annotation.Nullable @@ -332,7 +334,7 @@ public PaymentOrderEventData pspOrderCode(String pspOrderCode) { } /** - * A unique reference code assigned by the developer to identify this order in their system. + * The order identifier for your own internal business order, exactly as you supplied it in `psp_order_code` when creating the order. This value is unique within your Cobo organization. * @return pspOrderCode **/ @javax.annotation.Nonnull @@ -389,7 +391,7 @@ public PaymentOrderEventData feeAmount(String feeAmount) { } /** - * The developer fee for the order. It is added to the base amount to determine the final charge. + * The order-level developer charge credited to your developer balance when the order settles. A value of `0` means that no developer fee was charged and the merchant was credited with the full collected amount. When the collected payment exactly matches the payable amount, the merchant balance is credited with the payable amount minus `fee_amount`, and your developer balance is credited with `fee_amount`. For example, for a payable amount of `104.08` and a `fee_amount` of `2`, the merchant receives `102.08` and you receive `2`. For related fee settings and settlement details, see [Merchant management](https://www.cobo.com/payments/en/guides/merchants) and [Accounts and fund allocation](https://www.cobo.com/payments/en/guides/amounts-and-balances). * @return feeAmount **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentPayoutEvent.java b/src/main/java/com/cobo/waas2/model/PaymentPayoutEvent.java index 106d44fb..31336089 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentPayoutEvent.java +++ b/src/main/java/com/cobo/waas2/model/PaymentPayoutEvent.java @@ -61,7 +61,7 @@ ) public class PaymentPayoutEvent { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -95,6 +95,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -227,7 +229,7 @@ public PaymentPayoutEvent dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentPayoutParam.java b/src/main/java/com/cobo/waas2/model/PaymentPayoutParam.java index 03d1d203..db2be6e7 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentPayoutParam.java +++ b/src/main/java/com/cobo/waas2/model/PaymentPayoutParam.java @@ -88,7 +88,7 @@ public PaymentPayoutParam amount(String amount) { } /** - * The payout cryptocurrency amount. + * The payout amount, provided as a decimal string. You can include up to two nonzero digits after the decimal point; trailing zeros beyond that (for example, `100.500`) are accepted, but a value with more than two nonzero fractional digits (for example, `100.567`) is rejected with an invalid amount format error instead of being rounded. * @return amount **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentPayoutRecipientInfo.java b/src/main/java/com/cobo/waas2/model/PaymentPayoutRecipientInfo.java index b128de41..83362dff 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentPayoutRecipientInfo.java +++ b/src/main/java/com/cobo/waas2/model/PaymentPayoutRecipientInfo.java @@ -82,7 +82,7 @@ public PaymentPayoutRecipientInfo address(String address) { } /** - * The recipient's wallet address where the payout will be sent. + * The recipient's cryptocurrency address. Use an address that you have registered as a destination and that has been approved for payouts. Call [List destination entries](https://www.cobo.com/payments/en/api-references/payment/list-destination-entries) with `entry_type` set to `Address` to retrieve your registered wallet addresses and each address's `chain_id`. A destination entry returns the `address` and its `chain_id`, not a `token_id` -- confirm that the network indicated by `chain_id` matches the network encoded in the `token_id` you use, since an address on the wrong network for that token cannot complete the transfer. * @return address **/ @javax.annotation.Nullable @@ -101,7 +101,7 @@ public PaymentPayoutRecipientInfo tokenId(String tokenId) { } /** - * The token ID for the cryptocurrency to be sent to the recipient. If `recipient_info.token_id` is on a different chain than `payout_param.token_id`, the token will be automatically bridged to the chain specified in `recipient_info.token_id`. + * The cryptocurrency ID of the token to send (for example, `ETH_USDT`, `TRON_USDT`). When this token ID and the `token_id` in `payout_params` represent the same token on different chains, Cobo automatically executes a cross-chain transfer. You can retrieve the full list of supported token IDs by calling [List supported tokens](https://www.cobo.com/payments/en/api-references/payment/list-supported-tokens). * @return tokenId **/ @javax.annotation.Nullable @@ -120,7 +120,7 @@ public PaymentPayoutRecipientInfo currency(String currency) { } /** - * The fiat currency of the bank account to which the payout will be sent. + * The fiat currency of the bank account selected in `bank_account_id` -- the two must match. This endpoint currently accepts only `USD`. * @return currency **/ @javax.annotation.Nullable diff --git a/src/main/java/com/cobo/waas2/model/PaymentRefundEventData.java b/src/main/java/com/cobo/waas2/model/PaymentRefundEventData.java index 803aa676..d3df224d 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentRefundEventData.java +++ b/src/main/java/com/cobo/waas2/model/PaymentRefundEventData.java @@ -59,7 +59,7 @@ ) public class PaymentRefundEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -93,6 +93,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -241,7 +243,7 @@ public PaymentRefundEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentSettlementEvent.java b/src/main/java/com/cobo/waas2/model/PaymentSettlementEvent.java index 0cf731fb..6e5535f8 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentSettlementEvent.java +++ b/src/main/java/com/cobo/waas2/model/PaymentSettlementEvent.java @@ -61,7 +61,7 @@ ) public class PaymentSettlementEvent { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -95,6 +95,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -219,7 +221,7 @@ public PaymentSettlementEvent dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/PaymentTransactionEventData.java b/src/main/java/com/cobo/waas2/model/PaymentTransactionEventData.java index e6d98344..04eb4453 100644 --- a/src/main/java/com/cobo/waas2/model/PaymentTransactionEventData.java +++ b/src/main/java/com/cobo/waas2/model/PaymentTransactionEventData.java @@ -69,7 +69,7 @@ ) public class PaymentTransactionEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -103,6 +103,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -331,7 +333,7 @@ public PaymentTransactionEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/ReportExportFormat.java b/src/main/java/com/cobo/waas2/model/ReportExportFormat.java index c59341e2..02bd5cdb 100644 --- a/src/main/java/com/cobo/waas2/model/ReportExportFormat.java +++ b/src/main/java/com/cobo/waas2/model/ReportExportFormat.java @@ -22,7 +22,7 @@ import com.google.gson.stream.JsonWriter; /** - * The format of the report. - `CSV`: The report will be exported as a CSV file. - `XLSX`: The report will be exported as an XLSX file. - `ZIP`: The report will be exported as a ZIP file which contains multiple files. + * The format of the report. - `CSV`: The report will be exported as a CSV file. - `XLSX`: The report will be exported as an XLSX file. - `ZIP`: The report will be exported as a ZIP file which contains multiple files. - `PDF`: The report will be exported as a PDF file, only supported for balance snapshot report. */ @JsonAdapter(ReportExportFormat.Adapter.class) public enum ReportExportFormat { @@ -32,7 +32,9 @@ public enum ReportExportFormat { XLSX("XLSX"), - ZIP("ZIP"); + ZIP("ZIP"), + + PDF("PDF"); private String value; diff --git a/src/main/java/com/cobo/waas2/model/SuspendedTokenEventData.java b/src/main/java/com/cobo/waas2/model/SuspendedTokenEventData.java index 4b52aae4..a24ec9cd 100644 --- a/src/main/java/com/cobo/waas2/model/SuspendedTokenEventData.java +++ b/src/main/java/com/cobo/waas2/model/SuspendedTokenEventData.java @@ -54,7 +54,7 @@ ) public class SuspendedTokenEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -88,6 +88,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -168,7 +170,7 @@ public SuspendedTokenEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/TSSRequestWebhookEventData.java b/src/main/java/com/cobo/waas2/model/TSSRequestWebhookEventData.java index 70b15742..32f9b463 100644 --- a/src/main/java/com/cobo/waas2/model/TSSRequestWebhookEventData.java +++ b/src/main/java/com/cobo/waas2/model/TSSRequestWebhookEventData.java @@ -56,7 +56,7 @@ ) public class TSSRequestWebhookEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -90,6 +90,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -190,7 +192,7 @@ public TSSRequestWebhookEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/TokenListingEventData.java b/src/main/java/com/cobo/waas2/model/TokenListingEventData.java index 84ed8153..b0c25b54 100644 --- a/src/main/java/com/cobo/waas2/model/TokenListingEventData.java +++ b/src/main/java/com/cobo/waas2/model/TokenListingEventData.java @@ -58,7 +58,7 @@ ) public class TokenListingEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -92,6 +92,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -208,7 +210,7 @@ public TokenListingEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/TokensEventData.java b/src/main/java/com/cobo/waas2/model/TokensEventData.java index 572c7e1e..b3f00d28 100644 --- a/src/main/java/com/cobo/waas2/model/TokensEventData.java +++ b/src/main/java/com/cobo/waas2/model/TokensEventData.java @@ -58,7 +58,7 @@ ) public class TokensEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -92,6 +92,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -176,7 +178,7 @@ public TokensEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/TransactionWebhookEventData.java b/src/main/java/com/cobo/waas2/model/TransactionWebhookEventData.java index d48cf753..35ee8b9c 100644 --- a/src/main/java/com/cobo/waas2/model/TransactionWebhookEventData.java +++ b/src/main/java/com/cobo/waas2/model/TransactionWebhookEventData.java @@ -68,7 +68,7 @@ ) public class TransactionWebhookEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -102,6 +102,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -298,7 +300,7 @@ public TransactionWebhookEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/WalletInfoEventData.java b/src/main/java/com/cobo/waas2/model/WalletInfoEventData.java index bdd57600..cca2117f 100644 --- a/src/main/java/com/cobo/waas2/model/WalletInfoEventData.java +++ b/src/main/java/com/cobo/waas2/model/WalletInfoEventData.java @@ -54,7 +54,7 @@ ) public class WalletInfoEventData { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -88,6 +88,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -164,7 +166,7 @@ public WalletInfoEventData dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/WebhookEventData.java b/src/main/java/com/cobo/waas2/model/WebhookEventData.java index fc830060..0fbf1c8e 100644 --- a/src/main/java/com/cobo/waas2/model/WebhookEventData.java +++ b/src/main/java/com/cobo/waas2/model/WebhookEventData.java @@ -37,6 +37,8 @@ import com.cobo.waas2.model.PaymentBalanceFlowDirection; import com.cobo.waas2.model.PaymentBulkSendEvent; import com.cobo.waas2.model.PaymentBulkSendExecutionMode; +import com.cobo.waas2.model.PaymentBulkSendItemEvent; +import com.cobo.waas2.model.PaymentBulkSendItemValidationStatus; import com.cobo.waas2.model.PaymentOrderEventData; import com.cobo.waas2.model.PaymentPayoutEvent; import com.cobo.waas2.model.PaymentPayoutItem; @@ -153,6 +155,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { final TypeAdapter adapterPaymentAddressUpdateEventData = gson.getDelegateAdapter(this, TypeToken.get(PaymentAddressUpdateEventData.class)); final TypeAdapter adapterPaymentPayoutEvent = gson.getDelegateAdapter(this, TypeToken.get(PaymentPayoutEvent.class)); final TypeAdapter adapterPaymentBulkSendEvent = gson.getDelegateAdapter(this, TypeToken.get(PaymentBulkSendEvent.class)); + final TypeAdapter adapterPaymentBulkSendItemEvent = gson.getDelegateAdapter(this, TypeToken.get(PaymentBulkSendItemEvent.class)); final TypeAdapter adapterPaymentAccountBalanceUpdateEventData = gson.getDelegateAdapter(this, TypeToken.get(PaymentAccountBalanceUpdateEventData.class)); final TypeAdapter adapterComplianceDispositionUpdateEventData = gson.getDelegateAdapter(this, TypeToken.get(ComplianceDispositionUpdateEventData.class)); final TypeAdapter adapterComplianceKytScreeningsUpdateEventData = gson.getDelegateAdapter(this, TypeToken.get(ComplianceKytScreeningsUpdateEventData.class)); @@ -270,6 +273,12 @@ public void write(JsonWriter out, WebhookEventData value) throws IOException { elementAdapter.write(out, element); return; } + // check if the actual instance is of the type `PaymentBulkSendItemEvent` + if (value.getActualInstance() instanceof PaymentBulkSendItemEvent) { + JsonElement element = adapterPaymentBulkSendItemEvent.toJsonTree((PaymentBulkSendItemEvent)value.getActualInstance()); + elementAdapter.write(out, element); + return; + } // check if the actual instance is of the type `PaymentAccountBalanceUpdateEventData` if (value.getActualInstance() instanceof PaymentAccountBalanceUpdateEventData) { JsonElement element = adapterPaymentAccountBalanceUpdateEventData.toJsonTree((PaymentAccountBalanceUpdateEventData)value.getActualInstance()); @@ -306,7 +315,7 @@ public void write(JsonWriter out, WebhookEventData value) throws IOException { elementAdapter.write(out, element); return; } - throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData"); + throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData"); } @Override @@ -371,6 +380,10 @@ public WebhookEventData read(JsonReader in) throws IOException { deserialized = adapterPaymentBulkSendEvent.fromJsonTree(jsonObject); newWebhookEventData.setActualInstance(deserialized); return newWebhookEventData; + case "PaymentBulkSendItem": + deserialized = adapterPaymentBulkSendItemEvent.fromJsonTree(jsonObject); + newWebhookEventData.setActualInstance(deserialized); + return newWebhookEventData; case "PaymentOrder": deserialized = adapterPaymentOrderEventData.fromJsonTree(jsonObject); newWebhookEventData.setActualInstance(deserialized); @@ -463,6 +476,10 @@ public WebhookEventData read(JsonReader in) throws IOException { deserialized = adapterPaymentBulkSendEvent.fromJsonTree(jsonObject); newWebhookEventData.setActualInstance(deserialized); return newWebhookEventData; + case "PaymentBulkSendItemEvent": + deserialized = adapterPaymentBulkSendItemEvent.fromJsonTree(jsonObject); + newWebhookEventData.setActualInstance(deserialized); + return newWebhookEventData; case "PaymentOrderEventData": deserialized = adapterPaymentOrderEventData.fromJsonTree(jsonObject); newWebhookEventData.setActualInstance(deserialized); @@ -508,7 +525,7 @@ public WebhookEventData read(JsonReader in) throws IOException { newWebhookEventData.setActualInstance(deserialized); return newWebhookEventData; default: - log.log(Level.WARNING, String.format("Failed to lookup discriminator value `%s` for WebhookEventData. Possible values: Addresses BalanceUpdateInfo Chains ComplianceDisposition ComplianceKyaScreenings ComplianceKytScreenings FiatTransaction MPCVault Organization PaymentAccountBalanceUpdate PaymentAddressUpdate PaymentBulkSend PaymentOrder PaymentPayout PaymentRefund PaymentSettlement PaymentTransaction SuspendedToken TSSRequest TokenListing Tokens Transaction WalletInfo AddressesEventData BalanceUpdateInfoEventData ChainsEventData ComplianceDispositionUpdateEventData ComplianceKyaScreeningsUpdateEventData ComplianceKytScreeningsUpdateEventData FiatTransactionEventData MPCVaultEventData OrganizationEventData PaymentAccountBalanceUpdateEventData PaymentAddressUpdateEventData PaymentBulkSendEvent PaymentOrderEventData PaymentPayoutEvent PaymentRefundEventData PaymentSettlementEvent PaymentTransactionEventData SuspendedTokenEventData TSSRequestWebhookEventData TokenListingEventData TokensEventData TransactionWebhookEventData WalletInfoEventData", jsonObject.get("data_type").getAsString())); + log.log(Level.WARNING, String.format("Failed to lookup discriminator value `%s` for WebhookEventData. Possible values: Addresses BalanceUpdateInfo Chains ComplianceDisposition ComplianceKyaScreenings ComplianceKytScreenings FiatTransaction MPCVault Organization PaymentAccountBalanceUpdate PaymentAddressUpdate PaymentBulkSend PaymentBulkSendItem PaymentOrder PaymentPayout PaymentRefund PaymentSettlement PaymentTransaction SuspendedToken TSSRequest TokenListing Tokens Transaction WalletInfo AddressesEventData BalanceUpdateInfoEventData ChainsEventData ComplianceDispositionUpdateEventData ComplianceKyaScreeningsUpdateEventData ComplianceKytScreeningsUpdateEventData FiatTransactionEventData MPCVaultEventData OrganizationEventData PaymentAccountBalanceUpdateEventData PaymentAddressUpdateEventData PaymentBulkSendEvent PaymentBulkSendItemEvent PaymentOrderEventData PaymentPayoutEvent PaymentRefundEventData PaymentSettlementEvent PaymentTransactionEventData SuspendedTokenEventData TSSRequestWebhookEventData TokenListingEventData TokensEventData TransactionWebhookEventData WalletInfoEventData", jsonObject.get("data_type").getAsString())); } } @@ -720,6 +737,18 @@ public WebhookEventData read(JsonReader in) throws IOException { errorMessages.add(String.format("Deserialization for PaymentBulkSendEvent failed with `%s`.", e.getMessage())); log.log(Level.FINER, "Input data does not match schema 'PaymentBulkSendEvent'", e); } + // deserialize PaymentBulkSendItemEvent + try { + // validate the JSON object to see if any exception is thrown + PaymentBulkSendItemEvent.validateJsonElement(jsonElement); + actualAdapter = adapterPaymentBulkSendItemEvent; + match++; + log.log(Level.FINER, "Input data matches schema 'PaymentBulkSendItemEvent'"); + } catch (Exception e) { + // deserialization failed, continue + errorMessages.add(String.format("Deserialization for PaymentBulkSendItemEvent failed with `%s`.", e.getMessage())); + log.log(Level.FINER, "Input data does not match schema 'PaymentBulkSendItemEvent'", e); + } // deserialize PaymentAccountBalanceUpdateEventData try { // validate the JSON object to see if any exception is thrown @@ -872,6 +901,11 @@ public WebhookEventData(PaymentBulkSendEvent o) { setActualInstance(o); } + public WebhookEventData(PaymentBulkSendItemEvent o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public WebhookEventData(PaymentOrderEventData o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -945,6 +979,7 @@ public WebhookEventData(WalletInfoEventData o) { schemas.put("PaymentAddressUpdateEventData", PaymentAddressUpdateEventData.class); schemas.put("PaymentPayoutEvent", PaymentPayoutEvent.class); schemas.put("PaymentBulkSendEvent", PaymentBulkSendEvent.class); + schemas.put("PaymentBulkSendItemEvent", PaymentBulkSendItemEvent.class); schemas.put("PaymentAccountBalanceUpdateEventData", PaymentAccountBalanceUpdateEventData.class); schemas.put("ComplianceDispositionUpdateEventData", ComplianceDispositionUpdateEventData.class); schemas.put("ComplianceKytScreeningsUpdateEventData", ComplianceKytScreeningsUpdateEventData.class); @@ -961,7 +996,7 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData + * AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData * * It could be an instance of the 'oneOf' schemas. */ @@ -1052,6 +1087,11 @@ public void setActualInstance(Object instance) { return; } + if (instance instanceof PaymentBulkSendItemEvent) { + super.setActualInstance(instance); + return; + } + if (instance instanceof PaymentAccountBalanceUpdateEventData) { super.setActualInstance(instance); return; @@ -1082,14 +1122,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData"); + throw new RuntimeException("Invalid instance type. Must be AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData"); } /** * Get the actual instance, which can be the following: - * AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData + * AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData * - * @return The actual instance (AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData) + * @return The actual instance (AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData) */ @SuppressWarnings("unchecked") @Override @@ -1267,6 +1307,16 @@ public PaymentPayoutEvent getPaymentPayoutEvent() throws ClassCastException { public PaymentBulkSendEvent getPaymentBulkSendEvent() throws ClassCastException { return (PaymentBulkSendEvent)super.getActualInstance(); } + /** + * Get the actual instance of `PaymentBulkSendItemEvent`. If the actual instance is not `PaymentBulkSendItemEvent`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `PaymentBulkSendItemEvent` + * @throws ClassCastException if the instance is not `PaymentBulkSendItemEvent` + */ + public PaymentBulkSendItemEvent getPaymentBulkSendItemEvent() throws ClassCastException { + return (PaymentBulkSendItemEvent)super.getActualInstance(); + } /** * Get the actual instance of `PaymentAccountBalanceUpdateEventData`. If the actual instance is not `PaymentAccountBalanceUpdateEventData`, * the ClassCastException will be thrown. @@ -1474,6 +1524,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti errorMessages.add(String.format("Deserialization for PaymentBulkSendEvent failed with `%s`.", e.getMessage())); // continue to the next one } + // validate the json string with PaymentBulkSendItemEvent + try { + PaymentBulkSendItemEvent.validateJsonElement(jsonElement); + validCount++; + } catch (Exception e) { + errorMessages.add(String.format("Deserialization for PaymentBulkSendItemEvent failed with `%s`.", e.getMessage())); + // continue to the next one + } // validate the json string with PaymentAccountBalanceUpdateEventData try { PaymentAccountBalanceUpdateEventData.validateJsonElement(jsonElement); @@ -1523,7 +1581,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti // continue to the next one } if (validCount != 1) { - // throw new IOException(String.format("The JSON string is invalid for WebhookEventData with oneOf schemas: AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); + // throw new IOException(String.format("The JSON string is invalid for WebhookEventData with oneOf schemas: AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentBulkSendItemEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString())); } } diff --git a/src/main/java/com/cobo/waas2/model/WebhookEventDataType.java b/src/main/java/com/cobo/waas2/model/WebhookEventDataType.java index fae09ba6..65c7e4cd 100644 --- a/src/main/java/com/cobo/waas2/model/WebhookEventDataType.java +++ b/src/main/java/com/cobo/waas2/model/WebhookEventDataType.java @@ -53,7 +53,7 @@ ) public class WebhookEventDataType { /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. */ @JsonAdapter(DataTypeEnum.Adapter.class) public enum DataTypeEnum { @@ -87,6 +87,8 @@ public enum DataTypeEnum { PAYMENTBULKSEND("PaymentBulkSend"), + PAYMENTBULKSENDITEM("PaymentBulkSendItem"), + PAYMENTACCOUNTBALANCEUPDATE("PaymentAccountBalanceUpdate"), BALANCEUPDATEINFO("BalanceUpdateInfo"), @@ -159,7 +161,7 @@ public WebhookEventDataType dataType(DataTypeEnum dataType) { } /** - * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. + * The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentBulkSendItem`: The payment bulk send item event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. * @return dataType **/ @javax.annotation.Nonnull diff --git a/src/main/java/com/cobo/waas2/model/WebhookEventType.java b/src/main/java/com/cobo/waas2/model/WebhookEventType.java index 8ec0cf35..87e924eb 100644 --- a/src/main/java/com/cobo/waas2/model/WebhookEventType.java +++ b/src/main/java/com/cobo/waas2/model/WebhookEventType.java @@ -118,6 +118,8 @@ public enum WebhookEventType { PAYMENT_BULK_SEND_STATUS_UPDATED("payment.bulk_send.status.updated"), + PAYMENT_BULK_SEND_ITEM_STATUS_UPDATED("payment.bulk_send.item.status.updated"), + PAYMENT_TRANSACTION_EXTERNAL_CREATED("payment.transaction.external.created"), PAYMENT_TRANSACTION_EXTERNAL_COMPLETED("payment.transaction.external.completed"), diff --git a/src/test/java/com/cobo/waas2/api/PaymentApiTest.java b/src/test/java/com/cobo/waas2/api/PaymentApiTest.java index c4b89de1..524be736 100644 --- a/src/test/java/com/cobo/waas2/api/PaymentApiTest.java +++ b/src/test/java/com/cobo/waas2/api/PaymentApiTest.java @@ -308,7 +308,7 @@ public void createOrderLinkTest() throws ApiException { /** * Create pay-in order * - * This operation creates a pay-in order. + * This operation creates a pay-in order. Before you can call this operation, make sure the following prerequisites are met: - [Payments onboarding](https://www.cobo.com/payments/en/guides/preparation) is complete, so your organization's payment developer account is active. - `merchant_id` references a merchant that already exists and is owned by your organization. Completing Payments onboarding automatically provisions a default merchant for your organization, which you can use directly as the `merchant_id` value. To create additional merchants, call [Create merchant](https://www.cobo.com/payments/en/api-references/payment/create-merchant). <Note> This operation does not independently check merchant KYB, merchant activation or status, merchant configuration, or whether a developer-fee configuration record exists for the merchant. These checks are not substitutes for completing organization-level Payments onboarding — if your organization's payment developer account is not active, the request fails regardless of merchant state. For more information, refer to [Merchants](https://www.cobo.com/payments/en/guides/merchants) and [Error codes and status codes](https://www.cobo.com/payments/en/guides/error-codes#general-api-errors). </Note> * * @throws ApiException if the Api call fails */ diff --git a/src/test/java/com/cobo/waas2/model/PaymentBulkSendItemEventTest.java b/src/test/java/com/cobo/waas2/model/PaymentBulkSendItemEventTest.java new file mode 100644 index 00000000..657a1441 --- /dev/null +++ b/src/test/java/com/cobo/waas2/model/PaymentBulkSendItemEventTest.java @@ -0,0 +1,160 @@ +/* + * Cobo Wallet as a Service 2.0 + * + * Contact: help@cobo.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.cobo.waas2.model; + +import com.cobo.waas2.model.PaymentBulkSendItemStatus; +import com.cobo.waas2.model.PaymentBulkSendItemValidationStatus; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PaymentBulkSendItemEvent + */ +public class PaymentBulkSendItemEventTest { + private final PaymentBulkSendItemEvent model = new PaymentBulkSendItemEvent(); + + /** + * Model tests for PaymentBulkSendItemEvent + */ + @Test + public void testPaymentBulkSendItemEvent() { + // TODO: test PaymentBulkSendItemEvent + } + + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } + + /** + * Test the property 'bulkSendItemId' + */ + @Test + public void bulkSendItemIdTest() { + // TODO: test bulkSendItemId + } + + /** + * Test the property 'tokenId' + */ + @Test + public void tokenIdTest() { + // TODO: test tokenId + } + + /** + * Test the property 'receivingAddress' + */ + @Test + public void receivingAddressTest() { + // TODO: test receivingAddress + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'txHash' + */ + @Test + public void txHashTest() { + // TODO: test txHash + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'validationStatus' + */ + @Test + public void validationStatusTest() { + // TODO: test validationStatus + } + + /** + * Test the property 'failedReason' + */ + @Test + public void failedReasonTest() { + // TODO: test failedReason + } + + /** + * Test the property 'bulkSendId' + */ + @Test + public void bulkSendIdTest() { + // TODO: test bulkSendId + } + + /** + * Test the property 'requestId' + */ + @Test + public void requestIdTest() { + // TODO: test requestId + } + + /** + * Test the property 'sourceAccount' + */ + @Test + public void sourceAccountTest() { + // TODO: test sourceAccount + } + + /** + * Test the property 'createdTimestamp' + */ + @Test + public void createdTimestampTest() { + // TODO: test createdTimestamp + } + + /** + * Test the property 'updatedTimestamp' + */ + @Test + public void updatedTimestampTest() { + // TODO: test updatedTimestamp + } + +} diff --git a/src/test/java/com/cobo/waas2/model/WebhookEventDataTest.java b/src/test/java/com/cobo/waas2/model/WebhookEventDataTest.java index 63d03648..38c895d1 100644 --- a/src/test/java/com/cobo/waas2/model/WebhookEventDataTest.java +++ b/src/test/java/com/cobo/waas2/model/WebhookEventDataTest.java @@ -36,6 +36,8 @@ import com.cobo.waas2.model.PaymentBalanceFlowDirection; import com.cobo.waas2.model.PaymentBulkSendEvent; import com.cobo.waas2.model.PaymentBulkSendExecutionMode; +import com.cobo.waas2.model.PaymentBulkSendItemEvent; +import com.cobo.waas2.model.PaymentBulkSendItemValidationStatus; import com.cobo.waas2.model.PaymentOrderEventData; import com.cobo.waas2.model.PaymentPayoutEvent; import com.cobo.waas2.model.PaymentPayoutItem; @@ -925,6 +927,38 @@ public void executionModeTest() { // TODO: test executionMode } + /** + * Test the property 'bulkSendItemId' + */ + @Test + public void bulkSendItemIdTest() { + // TODO: test bulkSendItemId + } + + /** + * Test the property 'receivingAddress' + */ + @Test + public void receivingAddressTest() { + // TODO: test receivingAddress + } + + /** + * Test the property 'txHash' + */ + @Test + public void txHashTest() { + // TODO: test txHash + } + + /** + * Test the property 'validationStatus' + */ + @Test + public void validationStatusTest() { + // TODO: test validationStatus + } + /** * Test the property 'sourceId' */