@cobo/cobo-waas2 1.26.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +2 -2
- package/dist/api/AutoSweepApi.js +4 -4
- package/dist/api/DevelopersWebhooksApi.js +2 -2
- package/dist/api/OAuthApi.js +4 -4
- package/dist/api/PaymentApi.js +1847 -294
- package/dist/api/StakingsApi.js +44 -2
- package/dist/api/SwapsApi.js +2 -2
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +14 -14
- package/dist/index.js +420 -7
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AllocationRecord.js +193 -0
- package/dist/model/AllocationRequest.js +167 -0
- package/dist/model/BabylonCreateStakingExpansion.js +157 -0
- package/dist/model/BabylonStakeExtra.js +26 -0
- package/dist/model/BabylonStakingRegistration.js +1 -1
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BankAccountStatus.js +66 -0
- package/dist/model/BatchAllocation.js +190 -0
- package/dist/model/BatchAllocationDetail.js +188 -0
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +8 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +8 -3
- package/dist/model/ContractCallDestination.js +72 -10
- package/dist/model/ContractCallDestinationType.js +10 -0
- package/dist/model/CosmosContractCallDestination.js +0 -13
- package/dist/model/Counterparty.js +195 -0
- package/dist/model/CounterpartyDetail.js +228 -0
- package/dist/model/CounterpartyType.js +61 -0
- package/dist/model/CounterpartyWalletAddressDetail.js +192 -0
- package/dist/model/CreateBatchAllocationRequest.js +142 -0
- package/dist/model/CreateCounterpartyRequest.js +193 -0
- package/dist/model/CreateCounterpartyWalletAddressRequest.js +140 -0
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateDestinationBankAccount.js +257 -0
- package/dist/model/CreateDestinationBankAccountRequest.js +272 -0
- package/dist/model/CreateDestinationRequest.js +235 -0
- package/dist/model/CreateDestinationWalletAddressRequest.js +140 -0
- package/dist/model/CreateExchangeWalletParams.js +2 -2
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePaymentOrderRequest.js +115 -68
- package/dist/model/CreatePayoutRequest.js +192 -0
- package/dist/model/CreateRefundRequest.js +3 -3
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSettlement.js +14 -1
- package/dist/model/CreateSettlementRequestRequest.js +1 -1
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +12 -0
- package/dist/model/{ReceivedAmountPerAddress.js → CreateWalletAddress.js} +31 -32
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/DeleteCounterparty200Response.js +110 -0
- package/dist/model/DeleteCounterpartyWalletAddress200Response.js +110 -0
- package/dist/model/DeleteDestination200Response.js +110 -0
- package/dist/model/DeleteDestinationBankAccount200Response.js +110 -0
- package/dist/model/DeleteDestinationWalletAddress200Response.js +110 -0
- package/dist/model/Destination.js +208 -0
- package/dist/model/DestinationBankAccount.js +301 -0
- package/dist/model/DestinationBankAccountDetail.js +394 -0
- package/dist/model/DestinationDetail.js +272 -0
- package/dist/model/DestinationType.js +61 -0
- package/dist/model/DestinationWalletAddressDetail.js +205 -0
- package/dist/model/EnableDestinationWhitelistRequest.js +106 -0
- package/dist/model/EvmContractCallDestination.js +2 -2
- package/dist/model/ExchangeRate.js +140 -0
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/IntermediaryBankInfo.js +140 -0
- package/dist/model/Link.js +4 -4
- package/dist/model/LinkDisplayInfo.js +15 -2
- package/dist/model/ListAllocations200Response.js +123 -0
- package/dist/model/ListBatchAllocations200Response.js +123 -0
- package/dist/model/ListCounterparties200Response.js +123 -0
- package/dist/model/ListCounterpartyWalletAddress200Response.js +123 -0
- package/dist/model/ListDestinationBankAccounts200Response.js +123 -0
- package/dist/model/ListDestinationWalletAddresses200Response.js +123 -0
- package/dist/model/ListDestinations200Response.js +123 -0
- package/dist/model/ListPayoutItems200Response.js +123 -0
- package/dist/model/ListPayouts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/MerchantBalance.js +28 -2
- package/dist/model/Order.js +135 -102
- package/dist/model/OrderLinkBusinessInfo.js +151 -87
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +125 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentAllocationAmount.js +125 -0
- package/dist/model/PaymentOrderEventData.js +198 -145
- package/dist/model/PaymentPayout.js +250 -0
- package/dist/model/PaymentPayoutDetail.js +248 -0
- package/dist/model/PaymentPayoutEvent.js +433 -0
- package/dist/model/PaymentPayoutItem.js +298 -0
- package/dist/model/PaymentPayoutItemDetail.js +298 -0
- package/dist/model/PaymentPayoutItemStatus.js +76 -0
- package/dist/model/PaymentPayoutParam.js +165 -0
- package/dist/model/PaymentPayoutStatus.js +81 -0
- package/dist/model/PaymentRefundEventData.js +8 -3
- package/dist/model/PaymentSettlementEvent.js +8 -3
- package/dist/model/PaymentSourceType.js +61 -0
- package/dist/model/PaymentTransaction.js +32 -0
- package/dist/model/PaymentTransactionEventData.js +10 -5
- package/dist/model/PspBalance.js +28 -2
- package/dist/model/QueryDestinationWhitelistEnabled200Response.js +106 -0
- package/dist/model/RefundLinkBusinessInfo.js +6 -6
- package/dist/model/SettlementDetail.js +13 -0
- package/dist/model/Stakings.js +33 -6
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +1 -1
- package/dist/model/SwapActivityDetail.js +2 -2
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionCosmosContractDestination.js +0 -13
- package/dist/model/TransactionDestination.js +38 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionTronContractDestination.js +150 -0
- package/dist/model/TransactionWebhookEventData.js +10 -5
- package/dist/model/TronContractCallDestination.js +150 -0
- package/dist/model/UpdateCounterpartyByIdRequest.js +160 -0
- package/dist/model/UpdateDestinationBankAccount.js +257 -0
- package/dist/model/UpdateDestinationByIdRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +151 -0
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +107 -43
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressesEventData.md +3 -1
- package/docs/AllocationRecord.md +15 -0
- package/docs/AllocationRequest.md +13 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/BabylonCreateStakingExpansion.md +12 -0
- package/docs/BabylonStakeExtra.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BankAccountStatus.md +14 -0
- package/docs/BatchAllocation.md +14 -0
- package/docs/BatchAllocationDetail.md +14 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/ComplianceDispositionUpdateEventData.md +3 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +3 -1
- package/docs/ContractCallDestination.md +3 -2
- package/docs/ContractCallDestinationType.md +4 -0
- package/docs/CosmosContractCallDestination.md +0 -1
- package/docs/Counterparty.md +16 -0
- package/docs/CounterpartyDetail.md +17 -0
- package/docs/CounterpartyType.md +12 -0
- package/docs/CounterpartyWalletAddressDetail.md +15 -0
- package/docs/CreateBatchAllocationRequest.md +10 -0
- package/docs/CreateCounterpartyRequest.md +14 -0
- package/docs/CreateCounterpartyWalletAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateDestinationBankAccount.md +19 -0
- package/docs/CreateDestinationBankAccountRequest.md +20 -0
- package/docs/CreateDestinationRequest.md +16 -0
- package/docs/CreateDestinationWalletAddressRequest.md +11 -0
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateKeyShareHolder.md +1 -1
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +15 -11
- package/docs/CreatePayoutRequest.md +14 -0
- package/docs/CreateRefundRequest.md +3 -3
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSettlement.md +2 -1
- package/docs/CreateSettlementRequestRequest.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateStakeActivityExtra.md +2 -0
- package/docs/CreateWalletAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -1
- package/docs/DeleteCounterparty200Response.md +9 -0
- package/docs/DeleteCounterpartyWalletAddress200Response.md +9 -0
- package/docs/DeleteDestination200Response.md +9 -0
- package/docs/DeleteDestinationBankAccount200Response.md +9 -0
- package/docs/DeleteDestinationWalletAddress200Response.md +9 -0
- package/docs/Destination.md +17 -0
- package/docs/DestinationBankAccount.md +23 -0
- package/docs/DestinationBankAccountDetail.md +30 -0
- package/docs/DestinationDetail.md +19 -0
- package/docs/DestinationType.md +12 -0
- package/docs/DestinationWalletAddressDetail.md +16 -0
- package/docs/DevelopersWebhooksApi.md +1 -1
- package/docs/EnableDestinationWhitelistRequest.md +9 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeRate.md +11 -0
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/IntermediaryBankInfo.md +11 -0
- package/docs/Link.md +2 -2
- package/docs/LinkDisplayInfo.md +3 -2
- package/docs/ListAllocations200Response.md +10 -0
- package/docs/ListBatchAllocations200Response.md +10 -0
- package/docs/ListCounterparties200Response.md +10 -0
- package/docs/ListCounterpartyWalletAddress200Response.md +10 -0
- package/docs/ListDestinationBankAccounts200Response.md +10 -0
- package/docs/ListDestinationWalletAddresses200Response.md +10 -0
- package/docs/ListDestinations200Response.md +10 -0
- package/docs/ListPayoutItems200Response.md +10 -0
- package/docs/ListPayouts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/MerchantBalance.md +4 -2
- package/docs/OAuthApi.md +2 -2
- package/docs/Order.md +16 -13
- package/docs/OrderLinkBusinessInfo.md +11 -7
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentAllocationAmount.md +10 -0
- package/docs/PaymentApi.md +2153 -395
- package/docs/PaymentOrderEventData.md +19 -14
- package/docs/PaymentPayout.md +19 -0
- package/docs/PaymentPayoutDetail.md +19 -0
- package/docs/PaymentPayoutEvent.md +65 -0
- package/docs/PaymentPayoutItem.md +22 -0
- package/docs/PaymentPayoutItemDetail.md +22 -0
- package/docs/PaymentPayoutItemStatus.md +18 -0
- package/docs/PaymentPayoutParam.md +13 -0
- package/docs/PaymentPayoutStatus.md +20 -0
- package/docs/PaymentRefundEventData.md +3 -1
- package/docs/PaymentSettlementEvent.md +3 -1
- package/docs/PaymentSourceType.md +12 -0
- package/docs/PaymentTransaction.md +2 -0
- package/docs/PaymentTransactionEventData.md +4 -2
- package/docs/PspBalance.md +4 -2
- package/docs/QueryDestinationWhitelistEnabled200Response.md +9 -0
- package/docs/RefundLinkBusinessInfo.md +4 -4
- package/docs/SettlementDetail.md +1 -0
- package/docs/Stakings.md +2 -1
- package/docs/StakingsApi.md +54 -1
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +1 -1
- package/docs/SwapActivityDetail.md +1 -1
- package/docs/SwapsApi.md +1 -1
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokensEventData.md +3 -1
- package/docs/Transaction.md +1 -1
- package/docs/TransactionCosmosContractDestination.md +0 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionTronContractDestination.md +12 -0
- package/docs/TransactionWebhookEventData.md +4 -2
- package/docs/TransactionsApi.md +3 -3
- package/docs/TronContractCallDestination.md +12 -0
- package/docs/UpdateCounterpartyByIdRequest.md +13 -0
- package/docs/UpdateDestinationBankAccount.md +19 -0
- package/docs/UpdateDestinationByIdRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +12 -0
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +7 -7
- package/docs/WebhookEventData.md +22 -14
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/docs/ReceivedAmountPerAddress.md +0 -10
|
@@ -39,25 +39,22 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/PaymentOrderEventData
|
|
40
40
|
* @implements module:model/WebhookEventDataType
|
|
41
41
|
* @implements module:model/Order
|
|
42
|
-
* @param data_type {module:model/PaymentOrderEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
42
|
+
* @param data_type {module:model/PaymentOrderEventData.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `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. - `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.
|
|
43
43
|
* @param order_id {String} The order ID.
|
|
44
|
-
* @param
|
|
45
|
-
* @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
|
|
46
|
-
* @param payable_amount {String} The cryptocurrency amount to be paid for this order.
|
|
47
|
-
* @param receive_address {String} The recipient wallet address to be used for the payment transaction.
|
|
48
|
-
* @param currency {String} The fiat currency of the order.
|
|
49
|
-
* @param order_amount {String} The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
|
|
44
|
+
* @param psp_order_code {String} A unique reference code assigned by the developer to identify this order in their system.
|
|
50
45
|
* @param fee_amount {String} The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
|
|
46
|
+
* @param chain_id {String} The ID of the blockchain network where the payment transaction should be made.
|
|
47
|
+
* @param payable_amount {String} The cryptocurrency amount to be paid for this order.
|
|
51
48
|
* @param exchange_rate {String} The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
|
|
52
|
-
* @param
|
|
49
|
+
* @param receive_address {String} The recipient wallet address to be used for the payment transaction.
|
|
53
50
|
* @param status {module:model/OrderStatus}
|
|
54
51
|
* @param received_token_amount {String} The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT).
|
|
55
52
|
*/
|
|
56
|
-
function PaymentOrderEventData(data_type, order_id,
|
|
53
|
+
function PaymentOrderEventData(data_type, order_id, psp_order_code, fee_amount, chain_id, payable_amount, exchange_rate, receive_address, status, received_token_amount) {
|
|
57
54
|
_classCallCheck(this, PaymentOrderEventData);
|
|
58
55
|
_WebhookEventDataType["default"].initialize(this, data_type);
|
|
59
|
-
_Order["default"].initialize(this, order_id,
|
|
60
|
-
PaymentOrderEventData.initialize(this, data_type, order_id,
|
|
56
|
+
_Order["default"].initialize(this, order_id, psp_order_code, fee_amount, chain_id, payable_amount, exchange_rate, receive_address, status, received_token_amount);
|
|
57
|
+
PaymentOrderEventData.initialize(this, data_type, order_id, psp_order_code, fee_amount, chain_id, payable_amount, exchange_rate, receive_address, status, received_token_amount);
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
/**
|
|
@@ -67,18 +64,15 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
67
64
|
*/
|
|
68
65
|
return _createClass(PaymentOrderEventData, null, [{
|
|
69
66
|
key: "initialize",
|
|
70
|
-
value: function initialize(obj, data_type, order_id,
|
|
67
|
+
value: function initialize(obj, data_type, order_id, psp_order_code, fee_amount, chain_id, payable_amount, exchange_rate, receive_address, status, received_token_amount) {
|
|
71
68
|
obj['data_type'] = data_type;
|
|
72
69
|
obj['order_id'] = order_id;
|
|
73
|
-
obj['
|
|
70
|
+
obj['psp_order_code'] = psp_order_code;
|
|
71
|
+
obj['fee_amount'] = fee_amount;
|
|
74
72
|
obj['chain_id'] = chain_id;
|
|
75
73
|
obj['payable_amount'] = payable_amount;
|
|
76
|
-
obj['receive_address'] = receive_address;
|
|
77
|
-
obj['currency'] = currency;
|
|
78
|
-
obj['order_amount'] = order_amount;
|
|
79
|
-
obj['fee_amount'] = fee_amount;
|
|
80
74
|
obj['exchange_rate'] = exchange_rate;
|
|
81
|
-
obj['
|
|
75
|
+
obj['receive_address'] = receive_address;
|
|
82
76
|
obj['status'] = status;
|
|
83
77
|
obj['received_token_amount'] = received_token_amount;
|
|
84
78
|
}
|
|
@@ -106,38 +100,38 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
106
100
|
if (data.hasOwnProperty('merchant_id')) {
|
|
107
101
|
obj['merchant_id'] = _ApiClient["default"].convertToType(data['merchant_id'], 'String');
|
|
108
102
|
}
|
|
109
|
-
if (data.hasOwnProperty('
|
|
110
|
-
obj['
|
|
111
|
-
}
|
|
112
|
-
if (data.hasOwnProperty('chain_id')) {
|
|
113
|
-
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
114
|
-
}
|
|
115
|
-
if (data.hasOwnProperty('payable_amount')) {
|
|
116
|
-
obj['payable_amount'] = _ApiClient["default"].convertToType(data['payable_amount'], 'String');
|
|
103
|
+
if (data.hasOwnProperty('merchant_order_code')) {
|
|
104
|
+
obj['merchant_order_code'] = _ApiClient["default"].convertToType(data['merchant_order_code'], 'String');
|
|
117
105
|
}
|
|
118
|
-
if (data.hasOwnProperty('
|
|
119
|
-
obj['
|
|
106
|
+
if (data.hasOwnProperty('psp_order_code')) {
|
|
107
|
+
obj['psp_order_code'] = _ApiClient["default"].convertToType(data['psp_order_code'], 'String');
|
|
120
108
|
}
|
|
121
|
-
if (data.hasOwnProperty('
|
|
122
|
-
obj['
|
|
109
|
+
if (data.hasOwnProperty('pricing_currency')) {
|
|
110
|
+
obj['pricing_currency'] = _ApiClient["default"].convertToType(data['pricing_currency'], 'String');
|
|
123
111
|
}
|
|
124
|
-
if (data.hasOwnProperty('
|
|
125
|
-
obj['
|
|
112
|
+
if (data.hasOwnProperty('pricing_amount')) {
|
|
113
|
+
obj['pricing_amount'] = _ApiClient["default"].convertToType(data['pricing_amount'], 'String');
|
|
126
114
|
}
|
|
127
115
|
if (data.hasOwnProperty('fee_amount')) {
|
|
128
116
|
obj['fee_amount'] = _ApiClient["default"].convertToType(data['fee_amount'], 'String');
|
|
129
117
|
}
|
|
118
|
+
if (data.hasOwnProperty('payable_currency')) {
|
|
119
|
+
obj['payable_currency'] = _ApiClient["default"].convertToType(data['payable_currency'], 'String');
|
|
120
|
+
}
|
|
121
|
+
if (data.hasOwnProperty('chain_id')) {
|
|
122
|
+
obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
|
|
123
|
+
}
|
|
124
|
+
if (data.hasOwnProperty('payable_amount')) {
|
|
125
|
+
obj['payable_amount'] = _ApiClient["default"].convertToType(data['payable_amount'], 'String');
|
|
126
|
+
}
|
|
130
127
|
if (data.hasOwnProperty('exchange_rate')) {
|
|
131
128
|
obj['exchange_rate'] = _ApiClient["default"].convertToType(data['exchange_rate'], 'String');
|
|
132
129
|
}
|
|
133
|
-
if (data.hasOwnProperty('
|
|
134
|
-
obj['
|
|
135
|
-
}
|
|
136
|
-
if (data.hasOwnProperty('merchant_order_code')) {
|
|
137
|
-
obj['merchant_order_code'] = _ApiClient["default"].convertToType(data['merchant_order_code'], 'String');
|
|
130
|
+
if (data.hasOwnProperty('amount_tolerance')) {
|
|
131
|
+
obj['amount_tolerance'] = _ApiClient["default"].convertToType(data['amount_tolerance'], 'String');
|
|
138
132
|
}
|
|
139
|
-
if (data.hasOwnProperty('
|
|
140
|
-
obj['
|
|
133
|
+
if (data.hasOwnProperty('receive_address')) {
|
|
134
|
+
obj['receive_address'] = _ApiClient["default"].convertToType(data['receive_address'], 'String');
|
|
141
135
|
}
|
|
142
136
|
if (data.hasOwnProperty('status')) {
|
|
143
137
|
obj['status'] = _OrderStatus["default"].constructFromObject(data['status']);
|
|
@@ -145,6 +139,9 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
145
139
|
if (data.hasOwnProperty('received_token_amount')) {
|
|
146
140
|
obj['received_token_amount'] = _ApiClient["default"].convertToType(data['received_token_amount'], 'String');
|
|
147
141
|
}
|
|
142
|
+
if (data.hasOwnProperty('expired_at')) {
|
|
143
|
+
obj['expired_at'] = _ApiClient["default"].convertToType(data['expired_at'], 'Number');
|
|
144
|
+
}
|
|
148
145
|
if (data.hasOwnProperty('created_timestamp')) {
|
|
149
146
|
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
150
147
|
}
|
|
@@ -154,12 +151,18 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
154
151
|
if (data.hasOwnProperty('transactions')) {
|
|
155
152
|
obj['transactions'] = _ApiClient["default"].convertToType(data['transactions'], [_PaymentTransaction["default"]]);
|
|
156
153
|
}
|
|
154
|
+
if (data.hasOwnProperty('currency')) {
|
|
155
|
+
obj['currency'] = _ApiClient["default"].convertToType(data['currency'], 'String');
|
|
156
|
+
}
|
|
157
|
+
if (data.hasOwnProperty('order_amount')) {
|
|
158
|
+
obj['order_amount'] = _ApiClient["default"].convertToType(data['order_amount'], 'String');
|
|
159
|
+
}
|
|
160
|
+
if (data.hasOwnProperty('token_id')) {
|
|
161
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
162
|
+
}
|
|
157
163
|
if (data.hasOwnProperty('settlement_status')) {
|
|
158
164
|
obj['settlement_status'] = _SettleStatus["default"].constructFromObject(data['settlement_status']);
|
|
159
165
|
}
|
|
160
|
-
if (data.hasOwnProperty('amount_tolerance')) {
|
|
161
|
-
obj['amount_tolerance'] = _ApiClient["default"].convertToType(data['amount_tolerance'], 'String');
|
|
162
|
-
}
|
|
163
166
|
}
|
|
164
167
|
return obj;
|
|
165
168
|
}
|
|
@@ -200,44 +203,48 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
200
203
|
throw new Error("Expected the field `merchant_id` to be a primitive type in the JSON string but got " + data['merchant_id']);
|
|
201
204
|
}
|
|
202
205
|
// ensure the json data is a string
|
|
203
|
-
if (data['
|
|
204
|
-
throw new Error("Expected the field `
|
|
206
|
+
if (data['merchant_order_code'] && !(typeof data['merchant_order_code'] === 'string' || data['merchant_order_code'] instanceof String)) {
|
|
207
|
+
throw new Error("Expected the field `merchant_order_code` to be a primitive type in the JSON string but got " + data['merchant_order_code']);
|
|
205
208
|
}
|
|
206
209
|
// ensure the json data is a string
|
|
207
|
-
if (data['
|
|
208
|
-
throw new Error("Expected the field `
|
|
210
|
+
if (data['psp_order_code'] && !(typeof data['psp_order_code'] === 'string' || data['psp_order_code'] instanceof String)) {
|
|
211
|
+
throw new Error("Expected the field `psp_order_code` to be a primitive type in the JSON string but got " + data['psp_order_code']);
|
|
209
212
|
}
|
|
210
213
|
// ensure the json data is a string
|
|
211
|
-
if (data['
|
|
212
|
-
throw new Error("Expected the field `
|
|
214
|
+
if (data['pricing_currency'] && !(typeof data['pricing_currency'] === 'string' || data['pricing_currency'] instanceof String)) {
|
|
215
|
+
throw new Error("Expected the field `pricing_currency` to be a primitive type in the JSON string but got " + data['pricing_currency']);
|
|
213
216
|
}
|
|
214
217
|
// ensure the json data is a string
|
|
215
|
-
if (data['
|
|
216
|
-
throw new Error("Expected the field `
|
|
218
|
+
if (data['pricing_amount'] && !(typeof data['pricing_amount'] === 'string' || data['pricing_amount'] instanceof String)) {
|
|
219
|
+
throw new Error("Expected the field `pricing_amount` to be a primitive type in the JSON string but got " + data['pricing_amount']);
|
|
217
220
|
}
|
|
218
221
|
// ensure the json data is a string
|
|
219
|
-
if (data['
|
|
220
|
-
throw new Error("Expected the field `
|
|
222
|
+
if (data['fee_amount'] && !(typeof data['fee_amount'] === 'string' || data['fee_amount'] instanceof String)) {
|
|
223
|
+
throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
|
|
221
224
|
}
|
|
222
225
|
// ensure the json data is a string
|
|
223
|
-
if (data['
|
|
224
|
-
throw new Error("Expected the field `
|
|
226
|
+
if (data['payable_currency'] && !(typeof data['payable_currency'] === 'string' || data['payable_currency'] instanceof String)) {
|
|
227
|
+
throw new Error("Expected the field `payable_currency` to be a primitive type in the JSON string but got " + data['payable_currency']);
|
|
225
228
|
}
|
|
226
229
|
// ensure the json data is a string
|
|
227
|
-
if (data['
|
|
228
|
-
throw new Error("Expected the field `
|
|
230
|
+
if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
|
|
231
|
+
throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
|
|
232
|
+
}
|
|
233
|
+
// ensure the json data is a string
|
|
234
|
+
if (data['payable_amount'] && !(typeof data['payable_amount'] === 'string' || data['payable_amount'] instanceof String)) {
|
|
235
|
+
throw new Error("Expected the field `payable_amount` to be a primitive type in the JSON string but got " + data['payable_amount']);
|
|
229
236
|
}
|
|
230
237
|
// ensure the json data is a string
|
|
231
238
|
if (data['exchange_rate'] && !(typeof data['exchange_rate'] === 'string' || data['exchange_rate'] instanceof String)) {
|
|
232
239
|
throw new Error("Expected the field `exchange_rate` to be a primitive type in the JSON string but got " + data['exchange_rate']);
|
|
233
240
|
}
|
|
234
241
|
// ensure the json data is a string
|
|
235
|
-
if (data['
|
|
236
|
-
throw new Error("Expected the field `
|
|
242
|
+
if (data['amount_tolerance'] && !(typeof data['amount_tolerance'] === 'string' || data['amount_tolerance'] instanceof String)) {
|
|
243
|
+
throw new Error("Expected the field `amount_tolerance` to be a primitive type in the JSON string but got " + data['amount_tolerance']);
|
|
237
244
|
}
|
|
238
245
|
// ensure the json data is a string
|
|
239
|
-
if (data['
|
|
240
|
-
throw new Error("Expected the field `
|
|
246
|
+
if (data['receive_address'] && !(typeof data['receive_address'] === 'string' || data['receive_address'] instanceof String)) {
|
|
247
|
+
throw new Error("Expected the field `receive_address` to be a primitive type in the JSON string but got " + data['receive_address']);
|
|
241
248
|
}
|
|
242
249
|
// ensure the json data is a string
|
|
243
250
|
if (data['received_token_amount'] && !(typeof data['received_token_amount'] === 'string' || data['received_token_amount'] instanceof String)) {
|
|
@@ -265,17 +272,25 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
265
272
|
;
|
|
266
273
|
}
|
|
267
274
|
// ensure the json data is a string
|
|
268
|
-
if (data['
|
|
269
|
-
throw new Error("Expected the field `
|
|
275
|
+
if (data['currency'] && !(typeof data['currency'] === 'string' || data['currency'] instanceof String)) {
|
|
276
|
+
throw new Error("Expected the field `currency` to be a primitive type in the JSON string but got " + data['currency']);
|
|
277
|
+
}
|
|
278
|
+
// ensure the json data is a string
|
|
279
|
+
if (data['order_amount'] && !(typeof data['order_amount'] === 'string' || data['order_amount'] instanceof String)) {
|
|
280
|
+
throw new Error("Expected the field `order_amount` to be a primitive type in the JSON string but got " + data['order_amount']);
|
|
281
|
+
}
|
|
282
|
+
// ensure the json data is a string
|
|
283
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
284
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
270
285
|
}
|
|
271
286
|
return true;
|
|
272
287
|
}
|
|
273
288
|
}]);
|
|
274
289
|
}();
|
|
275
|
-
PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "
|
|
290
|
+
PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "psp_order_code", "fee_amount", "chain_id", "payable_amount", "exchange_rate", "receive_address", "status", "received_token_amount"];
|
|
276
291
|
|
|
277
292
|
/**
|
|
278
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
293
|
+
* 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. - `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.
|
|
279
294
|
* @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
|
|
280
295
|
*/
|
|
281
296
|
PaymentOrderEventData.prototype['data_type'] = undefined;
|
|
@@ -293,70 +308,70 @@ PaymentOrderEventData.prototype['order_id'] = undefined;
|
|
|
293
308
|
PaymentOrderEventData.prototype['merchant_id'] = undefined;
|
|
294
309
|
|
|
295
310
|
/**
|
|
296
|
-
*
|
|
297
|
-
* @member {String}
|
|
311
|
+
* A unique reference code assigned by the merchant to identify this order in their system.
|
|
312
|
+
* @member {String} merchant_order_code
|
|
298
313
|
*/
|
|
299
|
-
PaymentOrderEventData.prototype['
|
|
314
|
+
PaymentOrderEventData.prototype['merchant_order_code'] = undefined;
|
|
300
315
|
|
|
301
316
|
/**
|
|
302
|
-
*
|
|
303
|
-
* @member {String}
|
|
317
|
+
* A unique reference code assigned by the developer to identify this order in their system.
|
|
318
|
+
* @member {String} psp_order_code
|
|
304
319
|
*/
|
|
305
|
-
PaymentOrderEventData.prototype['
|
|
320
|
+
PaymentOrderEventData.prototype['psp_order_code'] = undefined;
|
|
306
321
|
|
|
307
322
|
/**
|
|
308
|
-
* The
|
|
309
|
-
* @member {String}
|
|
323
|
+
* The fiat currency of the order.
|
|
324
|
+
* @member {String} pricing_currency
|
|
310
325
|
*/
|
|
311
|
-
PaymentOrderEventData.prototype['
|
|
326
|
+
PaymentOrderEventData.prototype['pricing_currency'] = undefined;
|
|
312
327
|
|
|
313
328
|
/**
|
|
314
|
-
* The
|
|
315
|
-
* @member {String}
|
|
329
|
+
* The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
|
|
330
|
+
* @member {String} pricing_amount
|
|
316
331
|
*/
|
|
317
|
-
PaymentOrderEventData.prototype['
|
|
332
|
+
PaymentOrderEventData.prototype['pricing_amount'] = undefined;
|
|
318
333
|
|
|
319
334
|
/**
|
|
320
|
-
* The fiat currency
|
|
321
|
-
* @member {String}
|
|
335
|
+
* The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
|
|
336
|
+
* @member {String} fee_amount
|
|
322
337
|
*/
|
|
323
|
-
PaymentOrderEventData.prototype['
|
|
338
|
+
PaymentOrderEventData.prototype['fee_amount'] = undefined;
|
|
324
339
|
|
|
325
340
|
/**
|
|
326
|
-
* The
|
|
327
|
-
* @member {String}
|
|
341
|
+
* The ID of the cryptocurrency used for payment.
|
|
342
|
+
* @member {String} payable_currency
|
|
328
343
|
*/
|
|
329
|
-
PaymentOrderEventData.prototype['
|
|
344
|
+
PaymentOrderEventData.prototype['payable_currency'] = undefined;
|
|
330
345
|
|
|
331
346
|
/**
|
|
332
|
-
* The
|
|
333
|
-
* @member {String}
|
|
347
|
+
* The ID of the blockchain network where the payment transaction should be made.
|
|
348
|
+
* @member {String} chain_id
|
|
334
349
|
*/
|
|
335
|
-
PaymentOrderEventData.prototype['
|
|
350
|
+
PaymentOrderEventData.prototype['chain_id'] = undefined;
|
|
336
351
|
|
|
337
352
|
/**
|
|
338
|
-
* The
|
|
339
|
-
* @member {String}
|
|
353
|
+
* The cryptocurrency amount to be paid for this order.
|
|
354
|
+
* @member {String} payable_amount
|
|
340
355
|
*/
|
|
341
|
-
PaymentOrderEventData.prototype['
|
|
356
|
+
PaymentOrderEventData.prototype['payable_amount'] = undefined;
|
|
342
357
|
|
|
343
358
|
/**
|
|
344
|
-
* The
|
|
345
|
-
* @member {
|
|
359
|
+
* The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
|
|
360
|
+
* @member {String} exchange_rate
|
|
346
361
|
*/
|
|
347
|
-
PaymentOrderEventData.prototype['
|
|
362
|
+
PaymentOrderEventData.prototype['exchange_rate'] = undefined;
|
|
348
363
|
|
|
349
364
|
/**
|
|
350
|
-
*
|
|
351
|
-
* @member {String}
|
|
365
|
+
* Allowed amount deviation.
|
|
366
|
+
* @member {String} amount_tolerance
|
|
352
367
|
*/
|
|
353
|
-
PaymentOrderEventData.prototype['
|
|
368
|
+
PaymentOrderEventData.prototype['amount_tolerance'] = undefined;
|
|
354
369
|
|
|
355
370
|
/**
|
|
356
|
-
*
|
|
357
|
-
* @member {String}
|
|
371
|
+
* The recipient wallet address to be used for the payment transaction.
|
|
372
|
+
* @member {String} receive_address
|
|
358
373
|
*/
|
|
359
|
-
PaymentOrderEventData.prototype['
|
|
374
|
+
PaymentOrderEventData.prototype['receive_address'] = undefined;
|
|
360
375
|
|
|
361
376
|
/**
|
|
362
377
|
* @member {module:model/OrderStatus} status
|
|
@@ -370,37 +385,55 @@ PaymentOrderEventData.prototype['status'] = undefined;
|
|
|
370
385
|
PaymentOrderEventData.prototype['received_token_amount'] = undefined;
|
|
371
386
|
|
|
372
387
|
/**
|
|
373
|
-
* The
|
|
388
|
+
* The expiration time of the pay-in order, represented as a UNIX timestamp in seconds.
|
|
389
|
+
* @member {Number} expired_at
|
|
390
|
+
*/
|
|
391
|
+
PaymentOrderEventData.prototype['expired_at'] = undefined;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* The created time of the order, represented as a UNIX timestamp in seconds.
|
|
374
395
|
* @member {Number} created_timestamp
|
|
375
396
|
*/
|
|
376
397
|
PaymentOrderEventData.prototype['created_timestamp'] = undefined;
|
|
377
398
|
|
|
378
399
|
/**
|
|
379
|
-
* The
|
|
400
|
+
* The updated time of the order, represented as a UNIX timestamp in seconds.
|
|
380
401
|
* @member {Number} updated_timestamp
|
|
381
402
|
*/
|
|
382
403
|
PaymentOrderEventData.prototype['updated_timestamp'] = undefined;
|
|
383
404
|
|
|
384
405
|
/**
|
|
385
|
-
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the
|
|
406
|
+
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
|
|
386
407
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
387
408
|
*/
|
|
388
409
|
PaymentOrderEventData.prototype['transactions'] = undefined;
|
|
389
410
|
|
|
390
411
|
/**
|
|
391
|
-
*
|
|
412
|
+
* The fiat currency of the order.
|
|
413
|
+
* @member {String} currency
|
|
392
414
|
*/
|
|
393
|
-
PaymentOrderEventData.prototype['
|
|
415
|
+
PaymentOrderEventData.prototype['currency'] = undefined;
|
|
394
416
|
|
|
395
417
|
/**
|
|
396
|
-
* The
|
|
397
|
-
* @member {String}
|
|
418
|
+
* The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
|
|
419
|
+
* @member {String} order_amount
|
|
398
420
|
*/
|
|
399
|
-
PaymentOrderEventData.prototype['
|
|
421
|
+
PaymentOrderEventData.prototype['order_amount'] = undefined;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The ID of the cryptocurrency used for payment.
|
|
425
|
+
* @member {String} token_id
|
|
426
|
+
*/
|
|
427
|
+
PaymentOrderEventData.prototype['token_id'] = undefined;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @member {module:model/SettleStatus} settlement_status
|
|
431
|
+
*/
|
|
432
|
+
PaymentOrderEventData.prototype['settlement_status'] = undefined;
|
|
400
433
|
|
|
401
434
|
// Implement WebhookEventDataType interface:
|
|
402
435
|
/**
|
|
403
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data.
|
|
436
|
+
* 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. - `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.
|
|
404
437
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
405
438
|
*/
|
|
406
439
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -416,60 +449,60 @@ _Order["default"].prototype['order_id'] = undefined;
|
|
|
416
449
|
*/
|
|
417
450
|
_Order["default"].prototype['merchant_id'] = undefined;
|
|
418
451
|
/**
|
|
419
|
-
*
|
|
420
|
-
* @member {String}
|
|
421
|
-
*/
|
|
422
|
-
_Order["default"].prototype['token_id'] = undefined;
|
|
423
|
-
/**
|
|
424
|
-
* The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
|
|
425
|
-
* @member {String} chain_id
|
|
426
|
-
*/
|
|
427
|
-
_Order["default"].prototype['chain_id'] = undefined;
|
|
428
|
-
/**
|
|
429
|
-
* The cryptocurrency amount to be paid for this order.
|
|
430
|
-
* @member {String} payable_amount
|
|
452
|
+
* A unique reference code assigned by the merchant to identify this order in their system.
|
|
453
|
+
* @member {String} merchant_order_code
|
|
431
454
|
*/
|
|
432
|
-
_Order["default"].prototype['
|
|
455
|
+
_Order["default"].prototype['merchant_order_code'] = undefined;
|
|
433
456
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @member {String}
|
|
457
|
+
* A unique reference code assigned by the developer to identify this order in their system.
|
|
458
|
+
* @member {String} psp_order_code
|
|
436
459
|
*/
|
|
437
|
-
_Order["default"].prototype['
|
|
460
|
+
_Order["default"].prototype['psp_order_code'] = undefined;
|
|
438
461
|
/**
|
|
439
462
|
* The fiat currency of the order.
|
|
440
|
-
* @member {String}
|
|
463
|
+
* @member {String} pricing_currency
|
|
441
464
|
*/
|
|
442
|
-
_Order["default"].prototype['
|
|
465
|
+
_Order["default"].prototype['pricing_currency'] = undefined;
|
|
443
466
|
/**
|
|
444
467
|
* The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
|
|
445
|
-
* @member {String}
|
|
468
|
+
* @member {String} pricing_amount
|
|
446
469
|
*/
|
|
447
|
-
_Order["default"].prototype['
|
|
470
|
+
_Order["default"].prototype['pricing_amount'] = undefined;
|
|
448
471
|
/**
|
|
449
472
|
* The developer fee for the order in fiat currency. It is added to the base amount (`order_amount`) to determine the final charge.
|
|
450
473
|
* @member {String} fee_amount
|
|
451
474
|
*/
|
|
452
475
|
_Order["default"].prototype['fee_amount'] = undefined;
|
|
476
|
+
/**
|
|
477
|
+
* The ID of the cryptocurrency used for payment.
|
|
478
|
+
* @member {String} payable_currency
|
|
479
|
+
*/
|
|
480
|
+
_Order["default"].prototype['payable_currency'] = undefined;
|
|
481
|
+
/**
|
|
482
|
+
* The ID of the blockchain network where the payment transaction should be made.
|
|
483
|
+
* @member {String} chain_id
|
|
484
|
+
*/
|
|
485
|
+
_Order["default"].prototype['chain_id'] = undefined;
|
|
486
|
+
/**
|
|
487
|
+
* The cryptocurrency amount to be paid for this order.
|
|
488
|
+
* @member {String} payable_amount
|
|
489
|
+
*/
|
|
490
|
+
_Order["default"].prototype['payable_amount'] = undefined;
|
|
453
491
|
/**
|
|
454
492
|
* The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD.
|
|
455
493
|
* @member {String} exchange_rate
|
|
456
494
|
*/
|
|
457
495
|
_Order["default"].prototype['exchange_rate'] = undefined;
|
|
458
496
|
/**
|
|
459
|
-
*
|
|
460
|
-
* @member {
|
|
461
|
-
*/
|
|
462
|
-
_Order["default"].prototype['expired_at'] = undefined;
|
|
463
|
-
/**
|
|
464
|
-
* A unique reference code assigned by the merchant to identify this order in their system.
|
|
465
|
-
* @member {String} merchant_order_code
|
|
497
|
+
* Allowed amount deviation.
|
|
498
|
+
* @member {String} amount_tolerance
|
|
466
499
|
*/
|
|
467
|
-
_Order["default"].prototype['
|
|
500
|
+
_Order["default"].prototype['amount_tolerance'] = undefined;
|
|
468
501
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @member {String}
|
|
502
|
+
* The recipient wallet address to be used for the payment transaction.
|
|
503
|
+
* @member {String} receive_address
|
|
471
504
|
*/
|
|
472
|
-
_Order["default"].prototype['
|
|
505
|
+
_Order["default"].prototype['receive_address'] = undefined;
|
|
473
506
|
/**
|
|
474
507
|
* @member {module:model/OrderStatus} status
|
|
475
508
|
*/
|
|
@@ -480,29 +513,44 @@ _Order["default"].prototype['status'] = undefined;
|
|
|
480
513
|
*/
|
|
481
514
|
_Order["default"].prototype['received_token_amount'] = undefined;
|
|
482
515
|
/**
|
|
483
|
-
* The
|
|
516
|
+
* The expiration time of the pay-in order, represented as a UNIX timestamp in seconds.
|
|
517
|
+
* @member {Number} expired_at
|
|
518
|
+
*/
|
|
519
|
+
_Order["default"].prototype['expired_at'] = undefined;
|
|
520
|
+
/**
|
|
521
|
+
* The created time of the order, represented as a UNIX timestamp in seconds.
|
|
484
522
|
* @member {Number} created_timestamp
|
|
485
523
|
*/
|
|
486
524
|
_Order["default"].prototype['created_timestamp'] = undefined;
|
|
487
525
|
/**
|
|
488
|
-
* The
|
|
526
|
+
* The updated time of the order, represented as a UNIX timestamp in seconds.
|
|
489
527
|
* @member {Number} updated_timestamp
|
|
490
528
|
*/
|
|
491
529
|
_Order["default"].prototype['updated_timestamp'] = undefined;
|
|
492
530
|
/**
|
|
493
|
-
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the
|
|
531
|
+
* An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the settlement process.
|
|
494
532
|
* @member {Array.<module:model/PaymentTransaction>} transactions
|
|
495
533
|
*/
|
|
496
534
|
_Order["default"].prototype['transactions'] = undefined;
|
|
497
535
|
/**
|
|
498
|
-
*
|
|
536
|
+
* The fiat currency of the order.
|
|
537
|
+
* @member {String} currency
|
|
499
538
|
*/
|
|
500
|
-
_Order["default"].prototype['
|
|
539
|
+
_Order["default"].prototype['currency'] = undefined;
|
|
501
540
|
/**
|
|
502
|
-
* The
|
|
503
|
-
* @member {String}
|
|
541
|
+
* The base amount of the order in fiat currency, excluding the developer fee (specified in `fee_amount`).
|
|
542
|
+
* @member {String} order_amount
|
|
504
543
|
*/
|
|
505
|
-
_Order["default"].prototype['
|
|
544
|
+
_Order["default"].prototype['order_amount'] = undefined;
|
|
545
|
+
/**
|
|
546
|
+
* The ID of the cryptocurrency used for payment.
|
|
547
|
+
* @member {String} token_id
|
|
548
|
+
*/
|
|
549
|
+
_Order["default"].prototype['token_id'] = undefined;
|
|
550
|
+
/**
|
|
551
|
+
* @member {module:model/SettleStatus} settlement_status
|
|
552
|
+
*/
|
|
553
|
+
_Order["default"].prototype['settlement_status'] = undefined;
|
|
506
554
|
|
|
507
555
|
/**
|
|
508
556
|
* Allowed values for the <code>data_type</code> property.
|
|
@@ -575,6 +623,11 @@ PaymentOrderEventData['DataTypeEnum'] = {
|
|
|
575
623
|
* @const
|
|
576
624
|
*/
|
|
577
625
|
"PaymentAddressUpdate": "PaymentAddressUpdate",
|
|
626
|
+
/**
|
|
627
|
+
* value: "PaymentPayout"
|
|
628
|
+
* @const
|
|
629
|
+
*/
|
|
630
|
+
"PaymentPayout": "PaymentPayout",
|
|
578
631
|
/**
|
|
579
632
|
* value: "BalanceUpdateInfo"
|
|
580
633
|
* @const
|