@cobo/cobo-waas2 1.28.0 → 1.30.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 +88 -16
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +144 -4
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/GraphQLApi.js +85 -0
- package/dist/api/PaymentApi.js +1161 -154
- package/dist/api/StakingsApi.js +2 -2
- package/dist/api/SwapsApi.js +3 -0
- package/dist/api/TransactionsApi.js +6 -6
- package/dist/api/WalletsApi.js +18 -18
- package/dist/index.js +357 -28
- package/dist/model/AddressRiskLevel.js +71 -0
- package/dist/model/AddressesEventData.js +13 -3
- package/dist/model/{AllocationRecord.js → AllocationItem.js} +38 -35
- package/dist/model/{AllocationRequest.js → AllocationParam.js} +29 -26
- package/dist/model/BalanceUpdateInfoEventData.js +13 -3
- package/dist/model/BatchAllocation.js +12 -12
- package/dist/model/BatchAllocationDetail.js +15 -17
- package/dist/model/BridgingFee.js +3 -3
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CommissionFee.js +2 -2
- package/dist/model/ComplianceDispositionUpdateEventData.js +13 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +346 -0
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +13 -3
- package/dist/model/ContractCallParams.js +3 -3
- package/dist/model/CounterpartyWalletAddressDetail.js +2 -2
- package/dist/model/CreateBatchAllocationRequest.js +19 -19
- package/dist/model/CreateBulkSendRequest.js +167 -0
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +153 -0
- package/dist/model/CreateCounterpartyEntry201Response.js +143 -0
- package/dist/model/CreateCounterpartyEntryRequest.js +141 -0
- package/dist/model/CreateDestinationEntry201Response.js +172 -0
- package/dist/model/CreateDestinationEntryRequest.js +172 -0
- package/dist/model/CreateKyaScreeningsBody.js +129 -0
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +17 -15
- package/dist/model/CreatePayoutRequest.js +35 -28
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateReportRequest.js +156 -0
- package/dist/model/CreateTopUpAddresses.js +139 -0
- package/dist/model/CreateTopUpAddresses201Response.js +107 -0
- package/dist/model/CreateWalletAddress.js +2 -2
- package/dist/model/DeleteCounterpartyById200Response.js +110 -0
- package/dist/model/DeleteCounterpartyEntry200Response.js +110 -0
- package/dist/model/DeleteDestinationById200Response.js +110 -0
- package/dist/model/DeleteDestinationEntry200Response.js +110 -0
- package/dist/model/EntryType.js +61 -0
- package/dist/model/GetCounterpartyEntry200Response.js +90 -0
- package/dist/model/GetDestinationEntry200Response.js +106 -0
- package/dist/model/{ListPayoutItems200Response.js → GetReports200Response.js} +22 -22
- package/dist/model/KyaRiskAssessment.js +151 -0
- package/dist/model/KyaRiskDetail.js +126 -0
- package/dist/model/KyaRiskLevel.js +66 -0
- package/dist/model/KyaScreeningRequest.js +154 -0
- package/dist/model/KyaScreeningResult.js +222 -0
- package/dist/model/KyaScreeningResultRiskAssessment.js +171 -0
- package/dist/model/KyaScreeningStatus.js +71 -0
- package/dist/model/KyaScreeningsEventData.js +174 -0
- package/dist/model/LinkDisplayInfo.js +1 -1
- package/dist/model/{ListAllocations200Response.js → ListAllocationItems200Response.js} +22 -22
- package/dist/model/ListBulkSendItems200Response.js +123 -0
- package/dist/model/ListCounterpartyEntries200Response.js +123 -0
- package/dist/model/ListDestinationEntries200Response.js +153 -0
- package/dist/model/ListKyaScreenings200Response.js +145 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MerchantBalance.js +4 -4
- package/dist/model/Order.js +10 -10
- package/dist/model/OrderLinkBusinessInfo.js +22 -16
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +2 -4
- package/dist/model/OrderLinkBusinessInfoPayableAmountsInner.js +4 -4
- package/dist/model/PaymentAddressUpdateEventData.js +13 -3
- package/dist/model/PaymentAllocationAmount.js +2 -2
- package/dist/model/PaymentBulkSend.js +182 -0
- package/dist/model/PaymentBulkSendEvent.js +359 -0
- package/dist/model/PaymentBulkSendExecutionMode.js +61 -0
- package/dist/model/PaymentBulkSendItem.js +190 -0
- package/dist/model/{PaymentPayoutItemStatus.js → PaymentBulkSendItemStatus.js} +11 -11
- package/dist/model/PaymentBulkSendItemValidationStatus.js +66 -0
- package/dist/model/PaymentBulkSendStatus.js +81 -0
- package/dist/model/PaymentEstimateFeeRequest.js +13 -0
- package/dist/model/PaymentFeeType.js +15 -0
- package/dist/model/PaymentOrderEventData.js +31 -21
- package/dist/model/PaymentPayout.js +64 -46
- package/dist/model/PaymentPayoutDetail.js +166 -52
- package/dist/model/PaymentPayoutEvent.js +152 -80
- package/dist/model/PaymentPayoutItem.js +9 -166
- package/dist/model/PaymentPayoutParam.js +6 -46
- package/dist/model/PaymentPayoutRecipientInfo.js +126 -0
- package/dist/model/PaymentPayoutStatus.js +9 -4
- package/dist/model/PaymentRefundEventData.js +13 -3
- package/dist/model/PaymentSettlementEvent.js +13 -3
- package/dist/model/PaymentTransactionEventData.js +13 -3
- package/dist/model/PspBalance.js +4 -4
- package/dist/model/RefundLinkBusinessInfo.js +1 -1
- package/dist/model/Report.js +209 -0
- package/dist/model/ReportExportFormat.js +66 -0
- package/dist/model/ReportStatus.js +61 -0
- package/dist/model/ReportType.js +121 -0
- package/dist/model/SuspendedTokenEventData.js +13 -3
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- package/dist/model/TokensEventData.js +13 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionExtraType.js +5 -0
- package/dist/model/TransactionWalletConnectInfo.js +146 -0
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferParams.js +2 -2
- package/dist/model/UpdateCounterpartyRequest.js +160 -0
- package/dist/model/UpdateDestinationEntry200Response.js +90 -0
- package/dist/model/UpdateDestinationEntryRequest.js +135 -0
- package/dist/model/UpdateDestinationRequest.js +173 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WalletAddress.js +20 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEventData.js +121 -28
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventType.js +15 -0
- package/docs/AddressRiskLevel.md +16 -0
- package/docs/AddressesEventData.md +5 -1
- package/docs/AllocationItem.md +15 -0
- package/docs/AllocationParam.md +13 -0
- package/docs/AutoSweepApi.md +1 -1
- package/docs/BalanceUpdateInfoEventData.md +5 -1
- package/docs/BatchAllocation.md +2 -2
- package/docs/BatchAllocationDetail.md +1 -1
- package/docs/BridgingFee.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CommissionFee.md +1 -1
- package/docs/ComplianceApi.md +163 -0
- package/docs/ComplianceDispositionUpdateEventData.md +5 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +64 -0
- package/docs/ComplianceKytScreeningsUpdateEventData.md +5 -1
- package/docs/ContractCallParams.md +2 -2
- package/docs/CounterpartyWalletAddressDetail.md +1 -1
- package/docs/CreateBatchAllocationRequest.md +2 -2
- package/docs/CreateBulkSendRequest.md +12 -0
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +12 -0
- package/docs/CreateCounterpartyEntry201Response.md +10 -0
- package/docs/CreateCounterpartyEntryRequest.md +10 -0
- package/docs/CreateDestinationEntry201Response.md +11 -0
- package/docs/CreateDestinationEntryRequest.md +11 -0
- package/docs/CreateKyaScreeningsBody.md +9 -0
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +11 -11
- package/docs/CreatePayoutRequest.md +4 -4
- package/docs/CreateRefundRequest.md +2 -2
- package/docs/CreateReportRequest.md +13 -0
- package/docs/CreateTopUpAddresses.md +11 -0
- package/docs/CreateTopUpAddresses201Response.md +9 -0
- package/docs/CreateWalletAddress.md +1 -1
- package/docs/DeleteCounterpartyById200Response.md +9 -0
- package/docs/DeleteCounterpartyEntry200Response.md +9 -0
- package/docs/DeleteDestinationById200Response.md +9 -0
- package/docs/DeleteDestinationEntry200Response.md +9 -0
- package/docs/EntryType.md +12 -0
- package/docs/FeeStationApi.md +1 -1
- package/docs/GetCounterpartyEntry200Response.md +9 -0
- package/docs/GetDestinationEntry200Response.md +10 -0
- package/docs/{ListAllocations200Response.md → GetReports200Response.md} +2 -2
- package/docs/GraphQLApi.md +61 -0
- package/docs/KyaRiskAssessment.md +11 -0
- package/docs/KyaRiskDetail.md +10 -0
- package/docs/KyaRiskLevel.md +14 -0
- package/docs/KyaScreeningRequest.md +12 -0
- package/docs/KyaScreeningResult.md +17 -0
- package/docs/KyaScreeningResultRiskAssessment.md +11 -0
- package/docs/KyaScreeningStatus.md +16 -0
- package/docs/KyaScreeningsEventData.md +14 -0
- package/docs/LinkDisplayInfo.md +1 -1
- package/docs/{ListPayoutItems200Response.md → ListAllocationItems200Response.md} +2 -2
- package/docs/ListBulkSendItems200Response.md +10 -0
- package/docs/ListCounterpartyEntries200Response.md +10 -0
- package/docs/ListDestinationEntries200Response.md +11 -0
- package/docs/ListKyaScreenings200Response.md +10 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MerchantBalance.md +4 -4
- package/docs/Order.md +8 -8
- package/docs/OrderLinkBusinessInfo.md +11 -11
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/OrderLinkBusinessInfoPayableAmountsInner.md +2 -2
- package/docs/PaymentAddressUpdateEventData.md +5 -1
- package/docs/PaymentAllocationAmount.md +1 -1
- package/docs/PaymentApi.md +1296 -198
- package/docs/PaymentBulkSend.md +15 -0
- package/docs/PaymentBulkSendEvent.md +65 -0
- package/docs/PaymentBulkSendExecutionMode.md +12 -0
- package/docs/PaymentBulkSendItem.md +15 -0
- package/docs/{PaymentPayoutItemStatus.md → PaymentBulkSendItemStatus.md} +3 -3
- package/docs/PaymentBulkSendItemValidationStatus.md +14 -0
- package/docs/PaymentBulkSendStatus.md +20 -0
- package/docs/PaymentEstimateFeeRequest.md +1 -0
- package/docs/PaymentFeeType.md +6 -0
- package/docs/PaymentOrderEventData.md +13 -9
- package/docs/PaymentPayout.md +8 -7
- package/docs/PaymentPayoutDetail.md +10 -8
- package/docs/PaymentPayoutEvent.md +15 -9
- package/docs/PaymentPayoutItem.md +2 -13
- package/docs/PaymentPayoutParam.md +1 -4
- package/docs/PaymentPayoutRecipientInfo.md +12 -0
- package/docs/PaymentPayoutStatus.md +4 -2
- package/docs/PaymentRefundEventData.md +5 -1
- package/docs/PaymentSettlementEvent.md +5 -1
- package/docs/PaymentTransactionEventData.md +5 -1
- package/docs/PspBalance.md +4 -4
- package/docs/RefundLinkBusinessInfo.md +1 -1
- package/docs/Report.md +17 -0
- package/docs/ReportExportFormat.md +14 -0
- package/docs/ReportStatus.md +12 -0
- package/docs/ReportType.md +36 -0
- package/docs/StakingsApi.md +1 -1
- package/docs/SuspendedTokenEventData.md +5 -1
- package/docs/SwapsApi.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- package/docs/TokensEventData.md +5 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionExtraType.md +2 -0
- package/docs/TransactionWalletConnectInfo.md +12 -0
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +3 -3
- package/docs/TransferParams.md +1 -1
- package/docs/UpdateCounterpartyRequest.md +13 -0
- package/docs/UpdateDestinationEntry200Response.md +9 -0
- package/docs/UpdateDestinationEntryRequest.md +11 -0
- package/docs/UpdateDestinationRequest.md +14 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WalletAddress.md +3 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +9 -9
- package/docs/WebhookEventData.md +28 -18
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventType.md +6 -0
- package/package.json +1 -1
- package/dist/model/PaymentPayoutItemDetail.js +0 -298
- package/docs/AllocationRecord.md +0 -15
- package/docs/AllocationRequest.md +0 -13
- package/docs/PaymentPayoutItemDetail.md +0 -22
|
@@ -36,11 +36,14 @@ var OrderLinkBusinessInfo = /*#__PURE__*/function () {
|
|
|
36
36
|
* @alias module:model/OrderLinkBusinessInfo
|
|
37
37
|
* @param merchant_id {String} The merchant ID.
|
|
38
38
|
* @param psp_order_code {String} A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters.
|
|
39
|
-
* @param
|
|
39
|
+
* @param pricing_currency {String} The pricing currency that denominates `pricing_amount` and `fee_amount`. Currently, only `USD`/`USDT`/`USDC` are supported. This field is required.
|
|
40
|
+
* @param pricing_amount {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.
|
|
41
|
+
* @param fee_amount {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 0 and contain two decimal places.
|
|
42
|
+
* @param payable_currencies {Array.<String>} The IDs of the cryptocurrencies 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`
|
|
40
43
|
*/
|
|
41
|
-
function OrderLinkBusinessInfo(merchant_id, psp_order_code, fee_amount) {
|
|
44
|
+
function OrderLinkBusinessInfo(merchant_id, psp_order_code, pricing_currency, pricing_amount, fee_amount, payable_currencies) {
|
|
42
45
|
_classCallCheck(this, OrderLinkBusinessInfo);
|
|
43
|
-
OrderLinkBusinessInfo.initialize(this, merchant_id, psp_order_code, fee_amount);
|
|
46
|
+
OrderLinkBusinessInfo.initialize(this, merchant_id, psp_order_code, pricing_currency, pricing_amount, fee_amount, payable_currencies);
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
@@ -50,10 +53,13 @@ var OrderLinkBusinessInfo = /*#__PURE__*/function () {
|
|
|
50
53
|
*/
|
|
51
54
|
return _createClass(OrderLinkBusinessInfo, null, [{
|
|
52
55
|
key: "initialize",
|
|
53
|
-
value: function initialize(obj, merchant_id, psp_order_code, fee_amount) {
|
|
56
|
+
value: function initialize(obj, merchant_id, psp_order_code, pricing_currency, pricing_amount, fee_amount, payable_currencies) {
|
|
54
57
|
obj['merchant_id'] = merchant_id;
|
|
55
58
|
obj['psp_order_code'] = psp_order_code;
|
|
59
|
+
obj['pricing_currency'] = pricing_currency;
|
|
60
|
+
obj['pricing_amount'] = pricing_amount;
|
|
56
61
|
obj['fee_amount'] = fee_amount;
|
|
62
|
+
obj['payable_currencies'] = payable_currencies;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
/**
|
|
@@ -230,7 +236,7 @@ var OrderLinkBusinessInfo = /*#__PURE__*/function () {
|
|
|
230
236
|
}
|
|
231
237
|
}]);
|
|
232
238
|
}();
|
|
233
|
-
OrderLinkBusinessInfo.RequiredProperties = ["merchant_id", "psp_order_code", "fee_amount"];
|
|
239
|
+
OrderLinkBusinessInfo.RequiredProperties = ["merchant_id", "psp_order_code", "pricing_currency", "pricing_amount", "fee_amount", "payable_currencies"];
|
|
234
240
|
|
|
235
241
|
/**
|
|
236
242
|
* The merchant ID.
|
|
@@ -251,31 +257,31 @@ OrderLinkBusinessInfo.prototype['merchant_order_code'] = undefined;
|
|
|
251
257
|
OrderLinkBusinessInfo.prototype['psp_order_code'] = undefined;
|
|
252
258
|
|
|
253
259
|
/**
|
|
254
|
-
* The currency
|
|
260
|
+
* The pricing currency that denominates `pricing_amount` and `fee_amount`. Currently, only `USD`/`USDT`/`USDC` are supported. This field is required.
|
|
255
261
|
* @member {String} pricing_currency
|
|
256
262
|
*/
|
|
257
263
|
OrderLinkBusinessInfo.prototype['pricing_currency'] = undefined;
|
|
258
264
|
|
|
259
265
|
/**
|
|
260
|
-
* The base amount of the order, excluding the developer fee (specified in `fee_amount`)
|
|
266
|
+
* 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.
|
|
261
267
|
* @member {String} pricing_amount
|
|
262
268
|
*/
|
|
263
269
|
OrderLinkBusinessInfo.prototype['pricing_amount'] = undefined;
|
|
264
270
|
|
|
265
271
|
/**
|
|
266
|
-
* The developer fee for the order
|
|
272
|
+
* 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 0 and contain two decimal places.
|
|
267
273
|
* @member {String} fee_amount
|
|
268
274
|
*/
|
|
269
275
|
OrderLinkBusinessInfo.prototype['fee_amount'] = undefined;
|
|
270
276
|
|
|
271
277
|
/**
|
|
272
|
-
*
|
|
278
|
+
* The IDs of the cryptocurrencies 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`
|
|
273
279
|
* @member {Array.<String>} payable_currencies
|
|
274
280
|
*/
|
|
275
281
|
OrderLinkBusinessInfo.prototype['payable_currencies'] = undefined;
|
|
276
282
|
|
|
277
283
|
/**
|
|
278
|
-
*
|
|
284
|
+
* The total amounts the payer needs to pay for each currency in `payable_currencies`. If this field is left blank, the system will automatically calculate the amounts 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.
|
|
279
285
|
* @member {Array.<module:model/OrderLinkBusinessInfoPayableAmountsInner>} payable_amounts
|
|
280
286
|
*/
|
|
281
287
|
OrderLinkBusinessInfo.prototype['payable_amounts'] = undefined;
|
|
@@ -288,37 +294,37 @@ OrderLinkBusinessInfo.prototype['payable_amounts'] = undefined;
|
|
|
288
294
|
OrderLinkBusinessInfo.prototype['expired_in'] = 1800;
|
|
289
295
|
|
|
290
296
|
/**
|
|
291
|
-
*
|
|
297
|
+
* The allowed amount deviation, with precision up to 1 decimal place. For example, if `payable_amount` is `100.00` and `amount_tolerance` is `0.50`: - Payer pays 99.55 → Success (difference of 0.45 ≤ 0.5) - Payer pays 99.40 → Underpaid (difference of 0.60 > 0.5)
|
|
292
298
|
* @member {String} amount_tolerance
|
|
293
299
|
*/
|
|
294
300
|
OrderLinkBusinessInfo.prototype['amount_tolerance'] = undefined;
|
|
295
301
|
|
|
296
302
|
/**
|
|
297
|
-
*
|
|
303
|
+
* This field has been deprecated. Please use `pricing_currency` instead.
|
|
298
304
|
* @member {String} currency
|
|
299
305
|
*/
|
|
300
306
|
OrderLinkBusinessInfo.prototype['currency'] = undefined;
|
|
301
307
|
|
|
302
308
|
/**
|
|
303
|
-
*
|
|
309
|
+
* This field has been deprecated. Please use `pricing_amount` instead.
|
|
304
310
|
* @member {String} order_amount
|
|
305
311
|
*/
|
|
306
312
|
OrderLinkBusinessInfo.prototype['order_amount'] = undefined;
|
|
307
313
|
|
|
308
314
|
/**
|
|
309
|
-
*
|
|
315
|
+
* This field has been deprecated. Please use `payable_currencies` instead.
|
|
310
316
|
* @member {Array.<String>} token_ids
|
|
311
317
|
*/
|
|
312
318
|
OrderLinkBusinessInfo.prototype['token_ids'] = undefined;
|
|
313
319
|
|
|
314
320
|
/**
|
|
315
|
-
*
|
|
321
|
+
* This field has been deprecated.
|
|
316
322
|
* @member {Array.<module:model/OrderLinkBusinessInfoCustomExchangeRatesInner>} custom_exchange_rates
|
|
317
323
|
*/
|
|
318
324
|
OrderLinkBusinessInfo.prototype['custom_exchange_rates'] = undefined;
|
|
319
325
|
|
|
320
326
|
/**
|
|
321
|
-
*
|
|
327
|
+
* This field has been deprecated.
|
|
322
328
|
* @member {Boolean} use_dedicated_address
|
|
323
329
|
*/
|
|
324
330
|
OrderLinkBusinessInfo.prototype['use_dedicated_address'] = undefined;
|
|
@@ -32,8 +32,8 @@ var OrderLinkBusinessInfoCustomExchangeRatesInner = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>OrderLinkBusinessInfoCustomExchangeRatesInner</code>.
|
|
34
34
|
* @alias module:model/OrderLinkBusinessInfoCustomExchangeRatesInner
|
|
35
|
-
* @param token_id {String}
|
|
36
|
-
* @param exchange_rate {String}
|
|
35
|
+
* @param token_id {String}
|
|
36
|
+
* @param exchange_rate {String}
|
|
37
37
|
*/
|
|
38
38
|
function OrderLinkBusinessInfoCustomExchangeRatesInner(token_id, exchange_rate) {
|
|
39
39
|
_classCallCheck(this, OrderLinkBusinessInfoCustomExchangeRatesInner);
|
|
@@ -112,13 +112,11 @@ var OrderLinkBusinessInfoCustomExchangeRatesInner = /*#__PURE__*/function () {
|
|
|
112
112
|
OrderLinkBusinessInfoCustomExchangeRatesInner.RequiredProperties = ["token_id", "exchange_rate"];
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* The cryptocurrency token ID
|
|
116
115
|
* @member {String} token_id
|
|
117
116
|
*/
|
|
118
117
|
OrderLinkBusinessInfoCustomExchangeRatesInner.prototype['token_id'] = undefined;
|
|
119
118
|
|
|
120
119
|
/**
|
|
121
|
-
* The fixed exchange rate to use for this token
|
|
122
120
|
* @member {String} exchange_rate
|
|
123
121
|
*/
|
|
124
122
|
OrderLinkBusinessInfoCustomExchangeRatesInner.prototype['exchange_rate'] = undefined;
|
|
@@ -32,8 +32,8 @@ var OrderLinkBusinessInfoPayableAmountsInner = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>OrderLinkBusinessInfoPayableAmountsInner</code>.
|
|
34
34
|
* @alias module:model/OrderLinkBusinessInfoPayableAmountsInner
|
|
35
|
-
* @param token_id {String} The cryptocurrency
|
|
36
|
-
* @param amount {String} The
|
|
35
|
+
* @param token_id {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`
|
|
36
|
+
* @param amount {String} The payable amount in the specified currency.
|
|
37
37
|
*/
|
|
38
38
|
function OrderLinkBusinessInfoPayableAmountsInner(token_id, amount) {
|
|
39
39
|
_classCallCheck(this, OrderLinkBusinessInfoPayableAmountsInner);
|
|
@@ -112,13 +112,13 @@ var OrderLinkBusinessInfoPayableAmountsInner = /*#__PURE__*/function () {
|
|
|
112
112
|
OrderLinkBusinessInfoPayableAmountsInner.RequiredProperties = ["token_id", "amount"];
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* The cryptocurrency
|
|
115
|
+
* 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`
|
|
116
116
|
* @member {String} token_id
|
|
117
117
|
*/
|
|
118
118
|
OrderLinkBusinessInfoPayableAmountsInner.prototype['token_id'] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* The
|
|
121
|
+
* The payable amount in the specified currency.
|
|
122
122
|
* @member {String} amount
|
|
123
123
|
*/
|
|
124
124
|
OrderLinkBusinessInfoPayableAmountsInner.prototype['amount'] = undefined;
|
|
@@ -34,7 +34,7 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
34
34
|
* Constructs a new <code>PaymentAddressUpdateEventData</code>.
|
|
35
35
|
* @alias module:model/PaymentAddressUpdateEventData
|
|
36
36
|
* @implements module:model/WebhookEventDataType
|
|
37
|
-
* @param data_type {module:model/PaymentAddressUpdateEventData.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.
|
|
37
|
+
* @param data_type {module:model/PaymentAddressUpdateEventData.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. - `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.
|
|
38
38
|
* @param custom_payer_id {String} A unique identifier assigned by the developer to track and identify individual payers in their system.
|
|
39
39
|
* @param payer_id {String} A unique identifier assigned by Cobo to track and identify individual payers.
|
|
40
40
|
* @param chain {String} The chain ID.
|
|
@@ -152,7 +152,7 @@ var PaymentAddressUpdateEventData = /*#__PURE__*/function () {
|
|
|
152
152
|
PaymentAddressUpdateEventData.RequiredProperties = ["data_type", "custom_payer_id", "payer_id", "chain", "previous_address", "updated_address"];
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* 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.
|
|
155
|
+
* 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. - `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.
|
|
156
156
|
* @member {module:model/PaymentAddressUpdateEventData.DataTypeEnum} data_type
|
|
157
157
|
*/
|
|
158
158
|
PaymentAddressUpdateEventData.prototype['data_type'] = undefined;
|
|
@@ -189,7 +189,7 @@ PaymentAddressUpdateEventData.prototype['updated_address'] = undefined;
|
|
|
189
189
|
|
|
190
190
|
// Implement WebhookEventDataType interface:
|
|
191
191
|
/**
|
|
192
|
-
* 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.
|
|
192
|
+
* 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. - `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.
|
|
193
193
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
194
194
|
*/
|
|
195
195
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -270,6 +270,11 @@ PaymentAddressUpdateEventData['DataTypeEnum'] = {
|
|
|
270
270
|
* @const
|
|
271
271
|
*/
|
|
272
272
|
"PaymentPayout": "PaymentPayout",
|
|
273
|
+
/**
|
|
274
|
+
* value: "PaymentBulkSend"
|
|
275
|
+
* @const
|
|
276
|
+
*/
|
|
277
|
+
"PaymentBulkSend": "PaymentBulkSend",
|
|
273
278
|
/**
|
|
274
279
|
* value: "BalanceUpdateInfo"
|
|
275
280
|
* @const
|
|
@@ -290,6 +295,11 @@ PaymentAddressUpdateEventData['DataTypeEnum'] = {
|
|
|
290
295
|
* @const
|
|
291
296
|
*/
|
|
292
297
|
"ComplianceKytScreenings": "ComplianceKytScreenings",
|
|
298
|
+
/**
|
|
299
|
+
* value: "ComplianceKyaScreenings"
|
|
300
|
+
* @const
|
|
301
|
+
*/
|
|
302
|
+
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
293
303
|
/**
|
|
294
304
|
* value: "unknown_default_open_api"
|
|
295
305
|
* @const
|
|
@@ -33,7 +33,7 @@ var PaymentAllocationAmount = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>PaymentAllocationAmount</code>.
|
|
34
34
|
* @alias module:model/PaymentAllocationAmount
|
|
35
35
|
* @param token_id {String} The ID of the cryptocurrency.
|
|
36
|
-
* @param allocation_amount {String} The
|
|
36
|
+
* @param allocation_amount {String} The available amount that can be allocated from the source account to the destination account for the given cryptocurrency.
|
|
37
37
|
*/
|
|
38
38
|
function PaymentAllocationAmount(token_id, allocation_amount) {
|
|
39
39
|
_classCallCheck(this, PaymentAllocationAmount);
|
|
@@ -118,7 +118,7 @@ PaymentAllocationAmount.RequiredProperties = ["token_id", "allocation_amount"];
|
|
|
118
118
|
PaymentAllocationAmount.prototype['token_id'] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* The
|
|
121
|
+
* The available amount that can be allocated from the source account to the destination account for the given cryptocurrency.
|
|
122
122
|
* @member {String} allocation_amount
|
|
123
123
|
*/
|
|
124
124
|
PaymentAllocationAmount.prototype['allocation_amount'] = undefined;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _PaymentBulkSendExecutionMode = _interopRequireDefault(require("./PaymentBulkSendExecutionMode"));
|
|
9
|
+
var _PaymentBulkSendStatus = _interopRequireDefault(require("./PaymentBulkSendStatus"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The PaymentBulkSend model module.
|
|
31
|
+
* @module model/PaymentBulkSend
|
|
32
|
+
*/
|
|
33
|
+
var PaymentBulkSend = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>PaymentBulkSend</code>.
|
|
36
|
+
* @alias module:model/PaymentBulkSend
|
|
37
|
+
* @param bulk_send_id {String} The bulk send ID.
|
|
38
|
+
* @param source_account {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\"`.
|
|
39
|
+
* @param execution_mode {module:model/PaymentBulkSendExecutionMode}
|
|
40
|
+
* @param status {module:model/PaymentBulkSendStatus}
|
|
41
|
+
* @param created_timestamp {Number} The created time of the bulk send, represented as a UNIX timestamp in seconds.
|
|
42
|
+
* @param updated_timestamp {Number} The updated time of the bulk send, represented as a UNIX timestamp in seconds.
|
|
43
|
+
*/
|
|
44
|
+
function PaymentBulkSend(bulk_send_id, source_account, execution_mode, status, created_timestamp, updated_timestamp) {
|
|
45
|
+
_classCallCheck(this, PaymentBulkSend);
|
|
46
|
+
PaymentBulkSend.initialize(this, bulk_send_id, source_account, execution_mode, status, created_timestamp, updated_timestamp);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Initializes the fields of this object.
|
|
51
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
52
|
+
* Only for internal use.
|
|
53
|
+
*/
|
|
54
|
+
return _createClass(PaymentBulkSend, null, [{
|
|
55
|
+
key: "initialize",
|
|
56
|
+
value: function initialize(obj, bulk_send_id, source_account, execution_mode, status, created_timestamp, updated_timestamp) {
|
|
57
|
+
obj['bulk_send_id'] = bulk_send_id;
|
|
58
|
+
obj['source_account'] = source_account;
|
|
59
|
+
obj['execution_mode'] = execution_mode;
|
|
60
|
+
obj['status'] = status;
|
|
61
|
+
obj['created_timestamp'] = created_timestamp;
|
|
62
|
+
obj['updated_timestamp'] = updated_timestamp;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a <code>PaymentBulkSend</code> from a plain JavaScript object, optionally creating a new instance.
|
|
67
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @param {module:model/PaymentBulkSend} obj Optional instance to populate.
|
|
70
|
+
* @return {module:model/PaymentBulkSend} The populated <code>PaymentBulkSend</code> instance.
|
|
71
|
+
*/
|
|
72
|
+
}, {
|
|
73
|
+
key: "constructFromObject",
|
|
74
|
+
value: function constructFromObject(data, obj) {
|
|
75
|
+
if (data) {
|
|
76
|
+
obj = obj || new PaymentBulkSend();
|
|
77
|
+
if (data.hasOwnProperty('bulk_send_id')) {
|
|
78
|
+
obj['bulk_send_id'] = _ApiClient["default"].convertToType(data['bulk_send_id'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('source_account')) {
|
|
81
|
+
obj['source_account'] = _ApiClient["default"].convertToType(data['source_account'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('description')) {
|
|
84
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('execution_mode')) {
|
|
87
|
+
obj['execution_mode'] = _PaymentBulkSendExecutionMode["default"].constructFromObject(data['execution_mode']);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('status')) {
|
|
90
|
+
obj['status'] = _PaymentBulkSendStatus["default"].constructFromObject(data['status']);
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('created_timestamp')) {
|
|
93
|
+
obj['created_timestamp'] = _ApiClient["default"].convertToType(data['created_timestamp'], 'Number');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('updated_timestamp')) {
|
|
96
|
+
obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return obj;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Validates the JSON data with respect to <code>PaymentBulkSend</code>.
|
|
104
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
105
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentBulkSend</code>.
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "validateJSON",
|
|
109
|
+
value: function validateJSON(data) {
|
|
110
|
+
// check to make sure all required properties are present in the JSON string
|
|
111
|
+
var _iterator = _createForOfIteratorHelper(PaymentBulkSend.RequiredProperties),
|
|
112
|
+
_step;
|
|
113
|
+
try {
|
|
114
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
115
|
+
var property = _step.value;
|
|
116
|
+
if (!data.hasOwnProperty(property)) {
|
|
117
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
} catch (err) {
|
|
122
|
+
_iterator.e(err);
|
|
123
|
+
} finally {
|
|
124
|
+
_iterator.f();
|
|
125
|
+
}
|
|
126
|
+
if (data['bulk_send_id'] && !(typeof data['bulk_send_id'] === 'string' || data['bulk_send_id'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `bulk_send_id` to be a primitive type in the JSON string but got " + data['bulk_send_id']);
|
|
128
|
+
}
|
|
129
|
+
// ensure the json data is a string
|
|
130
|
+
if (data['source_account'] && !(typeof data['source_account'] === 'string' || data['source_account'] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `source_account` to be a primitive type in the JSON string but got " + data['source_account']);
|
|
132
|
+
}
|
|
133
|
+
// ensure the json data is a string
|
|
134
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
136
|
+
}
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
}]);
|
|
140
|
+
}();
|
|
141
|
+
PaymentBulkSend.RequiredProperties = ["bulk_send_id", "source_account", "execution_mode", "status", "created_timestamp", "updated_timestamp"];
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The bulk send ID.
|
|
145
|
+
* @member {String} bulk_send_id
|
|
146
|
+
*/
|
|
147
|
+
PaymentBulkSend.prototype['bulk_send_id'] = undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* 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\"`.
|
|
151
|
+
* @member {String} source_account
|
|
152
|
+
*/
|
|
153
|
+
PaymentBulkSend.prototype['source_account'] = undefined;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The description for the entire bulk send batch.
|
|
157
|
+
* @member {String} description
|
|
158
|
+
*/
|
|
159
|
+
PaymentBulkSend.prototype['description'] = undefined;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @member {module:model/PaymentBulkSendExecutionMode} execution_mode
|
|
163
|
+
*/
|
|
164
|
+
PaymentBulkSend.prototype['execution_mode'] = undefined;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @member {module:model/PaymentBulkSendStatus} status
|
|
168
|
+
*/
|
|
169
|
+
PaymentBulkSend.prototype['status'] = undefined;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The created time of the bulk send, represented as a UNIX timestamp in seconds.
|
|
173
|
+
* @member {Number} created_timestamp
|
|
174
|
+
*/
|
|
175
|
+
PaymentBulkSend.prototype['created_timestamp'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The updated time of the bulk send, represented as a UNIX timestamp in seconds.
|
|
179
|
+
* @member {Number} updated_timestamp
|
|
180
|
+
*/
|
|
181
|
+
PaymentBulkSend.prototype['updated_timestamp'] = undefined;
|
|
182
|
+
var _default = exports["default"] = PaymentBulkSend;
|