@cobo/cobo-waas2 1.25.0 → 1.26.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 +21 -5
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +2 -2
- package/dist/api/ComplianceApi.js +2 -2
- package/dist/api/FeeStationApi.js +6 -6
- package/dist/api/PaymentApi.js +48 -6
- package/dist/api/TokenizationApi.js +122 -4
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/index.js +105 -14
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/CreateCryptoAddressRequest.js +1 -1
- package/dist/model/CreateMerchantRequest.js +1 -1
- package/dist/model/CreatePaymentOrderRequest.js +8 -8
- package/dist/model/CreateRefundLinkRequest.js +129 -0
- package/dist/model/FeeStationCheckFeeStationUsage.js +28 -10
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +33 -20
- package/dist/model/FeeStationSponsorTransactionDescription.js +125 -0
- package/dist/model/Link.js +2 -2
- package/dist/model/LinkDisplayInfo.js +2 -2
- package/dist/model/MerchantBalance.js +1 -1
- package/dist/model/Order.js +1 -1
- package/dist/model/OrderLinkBusinessInfo.js +11 -11
- package/dist/model/OrderLinkBusinessInfoCustomExchangeRatesInner.js +4 -4
- package/dist/model/PaymentOrderEventData.js +2 -2
- package/dist/model/PspBalance.js +1 -1
- package/dist/model/RefundLinkBusinessInfo.js +162 -0
- package/dist/model/RefundStatus.js +10 -0
- package/dist/model/SubmitKytScreeningsReviewBody.js +1 -1
- package/dist/model/SwapQuote.js +18 -18
- package/dist/model/TokenizationERC20TokenParams.js +5 -5
- package/dist/model/{TokenizationTokenPermissionParams.js → TokenizationERC20TokenPermissionParams.js} +23 -23
- package/dist/model/TokenizationERC20WrappedTokenParams.js +177 -0
- package/dist/model/TokenizationERC20WrappedTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +38 -11
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +72 -10
- package/dist/model/TokenizationListPermissionsResponse.js +146 -0
- package/dist/model/TokenizationListPermissionsResponseDataInner.js +126 -0
- package/dist/model/TokenizationOperationType.js +5 -0
- package/dist/model/TokenizationPermissionAction.js +66 -0
- package/dist/model/TokenizationSOLWrappedTokenParams.js +177 -0
- package/dist/model/TokenizationSolWrappedTokenPermissionParams.js +127 -0
- package/dist/model/TokenizationTokenDetailInfo.js +51 -5
- package/dist/model/TokenizationTokenInfo.js +26 -4
- package/dist/model/TokenizationTokenPermissionType.js +5 -0
- package/dist/model/TokenizationTokenStandard.js +10 -0
- package/dist/model/{TokenizationTokenPermissionsResponse.js → TokenizationUpdateAddressPermissions.js} +51 -53
- package/dist/model/TokenizationUpdatePermissionsEstimateFeeParams.js +198 -0
- package/dist/model/TokenizationUpdatePermissionsParams.js +145 -0
- package/dist/model/TokenizationUpdatePermissionsRequest.js +213 -0
- package/dist/model/TransactionCoboCategory.js +35 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AutoFuelType.md +2 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/ComplianceApi.md +1 -1
- package/docs/CreateCryptoAddressRequest.md +1 -1
- package/docs/CreateMerchantRequest.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +5 -5
- package/docs/CreateRefundLinkRequest.md +10 -0
- package/docs/FeeStationApi.md +4 -4
- package/docs/FeeStationCheckFeeStationUsage.md +4 -2
- package/docs/FeeStationCheckFeeStationUsageResponse.md +4 -3
- package/docs/FeeStationSponsorTransactionDescription.md +10 -0
- package/docs/Link.md +1 -1
- package/docs/LinkDisplayInfo.md +2 -2
- package/docs/MerchantBalance.md +1 -1
- package/docs/Order.md +1 -1
- package/docs/OrderLinkBusinessInfo.md +7 -7
- package/docs/OrderLinkBusinessInfoCustomExchangeRatesInner.md +2 -2
- package/docs/PaymentApi.md +56 -3
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PspBalance.md +1 -1
- package/docs/RefundLinkBusinessInfo.md +13 -0
- package/docs/RefundStatus.md +4 -0
- package/docs/SwapQuote.md +10 -10
- package/docs/TokenizationApi.md +120 -2
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/{TokenizationTokenPermissionParams.md → TokenizationERC20TokenPermissionParams.md} +1 -1
- package/docs/TokenizationERC20WrappedTokenParams.md +14 -0
- package/docs/TokenizationERC20WrappedTokenPermissionParams.md +15 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -1
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -1
- package/docs/TokenizationListPermissionsResponse.md +10 -0
- package/docs/TokenizationListPermissionsResponseDataInner.md +10 -0
- package/docs/TokenizationOperationType.md +2 -0
- package/docs/TokenizationPermissionAction.md +14 -0
- package/docs/TokenizationSOLWrappedTokenParams.md +14 -0
- package/docs/TokenizationSolWrappedTokenPermissionParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +3 -0
- package/docs/TokenizationTokenInfo.md +2 -0
- package/docs/TokenizationTokenPermissionType.md +2 -0
- package/docs/TokenizationTokenStandard.md +4 -0
- package/docs/TokenizationUpdateAddressPermissions.md +11 -0
- package/docs/TokenizationUpdatePermissionsEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdatePermissionsParams.md +10 -0
- package/docs/TokenizationUpdatePermissionsRequest.md +13 -0
- package/docs/TransactionCoboCategory.md +14 -0
- package/docs/TransactionsApi.md +1 -1
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/WebhookEventData.md +1 -1
- package/package.json +1 -1
- package/docs/TokenizationTokenPermissionsResponse.md +0 -10
package/dist/index.js
CHANGED
|
@@ -735,6 +735,12 @@ Object.defineProperty(exports, "CreatePrimeBrokerAddressRequest", {
|
|
|
735
735
|
return _CreatePrimeBrokerAddressRequest["default"];
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
|
+
Object.defineProperty(exports, "CreateRefundLinkRequest", {
|
|
739
|
+
enumerable: true,
|
|
740
|
+
get: function get() {
|
|
741
|
+
return _CreateRefundLinkRequest["default"];
|
|
742
|
+
}
|
|
743
|
+
});
|
|
738
744
|
Object.defineProperty(exports, "CreateRefundRequest", {
|
|
739
745
|
enumerable: true,
|
|
740
746
|
get: function get() {
|
|
@@ -1341,6 +1347,12 @@ Object.defineProperty(exports, "FeeStationGasStationType", {
|
|
|
1341
1347
|
return _FeeStationGasStationType["default"];
|
|
1342
1348
|
}
|
|
1343
1349
|
});
|
|
1350
|
+
Object.defineProperty(exports, "FeeStationSponsorTransactionDescription", {
|
|
1351
|
+
enumerable: true,
|
|
1352
|
+
get: function get() {
|
|
1353
|
+
return _FeeStationSponsorTransactionDescription["default"];
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1344
1356
|
Object.defineProperty(exports, "FeeStationTransactionType", {
|
|
1345
1357
|
enumerable: true,
|
|
1346
1358
|
get: function get() {
|
|
@@ -2289,6 +2301,12 @@ Object.defineProperty(exports, "RefundDisposition", {
|
|
|
2289
2301
|
return _RefundDisposition["default"];
|
|
2290
2302
|
}
|
|
2291
2303
|
});
|
|
2304
|
+
Object.defineProperty(exports, "RefundLinkBusinessInfo", {
|
|
2305
|
+
enumerable: true,
|
|
2306
|
+
get: function get() {
|
|
2307
|
+
return _RefundLinkBusinessInfo["default"];
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2292
2310
|
Object.defineProperty(exports, "RefundStatus", {
|
|
2293
2311
|
enumerable: true,
|
|
2294
2312
|
get: function get() {
|
|
@@ -3165,6 +3183,24 @@ Object.defineProperty(exports, "TokenizationERC20TokenParams", {
|
|
|
3165
3183
|
return _TokenizationERC20TokenParams["default"];
|
|
3166
3184
|
}
|
|
3167
3185
|
});
|
|
3186
|
+
Object.defineProperty(exports, "TokenizationERC20TokenPermissionParams", {
|
|
3187
|
+
enumerable: true,
|
|
3188
|
+
get: function get() {
|
|
3189
|
+
return _TokenizationERC20TokenPermissionParams["default"];
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
Object.defineProperty(exports, "TokenizationERC20WrappedTokenParams", {
|
|
3193
|
+
enumerable: true,
|
|
3194
|
+
get: function get() {
|
|
3195
|
+
return _TokenizationERC20WrappedTokenParams["default"];
|
|
3196
|
+
}
|
|
3197
|
+
});
|
|
3198
|
+
Object.defineProperty(exports, "TokenizationERC20WrappedTokenPermissionParams", {
|
|
3199
|
+
enumerable: true,
|
|
3200
|
+
get: function get() {
|
|
3201
|
+
return _TokenizationERC20WrappedTokenPermissionParams["default"];
|
|
3202
|
+
}
|
|
3203
|
+
});
|
|
3168
3204
|
Object.defineProperty(exports, "TokenizationEstimateFeeRequest", {
|
|
3169
3205
|
enumerable: true,
|
|
3170
3206
|
get: function get() {
|
|
@@ -3231,6 +3267,18 @@ Object.defineProperty(exports, "TokenizationListHoldingsResponse", {
|
|
|
3231
3267
|
return _TokenizationListHoldingsResponse["default"];
|
|
3232
3268
|
}
|
|
3233
3269
|
});
|
|
3270
|
+
Object.defineProperty(exports, "TokenizationListPermissionsResponse", {
|
|
3271
|
+
enumerable: true,
|
|
3272
|
+
get: function get() {
|
|
3273
|
+
return _TokenizationListPermissionsResponse["default"];
|
|
3274
|
+
}
|
|
3275
|
+
});
|
|
3276
|
+
Object.defineProperty(exports, "TokenizationListPermissionsResponseDataInner", {
|
|
3277
|
+
enumerable: true,
|
|
3278
|
+
get: function get() {
|
|
3279
|
+
return _TokenizationListPermissionsResponseDataInner["default"];
|
|
3280
|
+
}
|
|
3281
|
+
});
|
|
3234
3282
|
Object.defineProperty(exports, "TokenizationListTokenInfoResponse", {
|
|
3235
3283
|
enumerable: true,
|
|
3236
3284
|
get: function get() {
|
|
@@ -3303,12 +3351,24 @@ Object.defineProperty(exports, "TokenizationPauseTokenRequest", {
|
|
|
3303
3351
|
return _TokenizationPauseTokenRequest["default"];
|
|
3304
3352
|
}
|
|
3305
3353
|
});
|
|
3354
|
+
Object.defineProperty(exports, "TokenizationPermissionAction", {
|
|
3355
|
+
enumerable: true,
|
|
3356
|
+
get: function get() {
|
|
3357
|
+
return _TokenizationPermissionAction["default"];
|
|
3358
|
+
}
|
|
3359
|
+
});
|
|
3306
3360
|
Object.defineProperty(exports, "TokenizationSOLTokenParams", {
|
|
3307
3361
|
enumerable: true,
|
|
3308
3362
|
get: function get() {
|
|
3309
3363
|
return _TokenizationSOLTokenParams["default"];
|
|
3310
3364
|
}
|
|
3311
3365
|
});
|
|
3366
|
+
Object.defineProperty(exports, "TokenizationSOLWrappedTokenParams", {
|
|
3367
|
+
enumerable: true,
|
|
3368
|
+
get: function get() {
|
|
3369
|
+
return _TokenizationSOLWrappedTokenParams["default"];
|
|
3370
|
+
}
|
|
3371
|
+
});
|
|
3312
3372
|
Object.defineProperty(exports, "TokenizationSolContractCallParams", {
|
|
3313
3373
|
enumerable: true,
|
|
3314
3374
|
get: function get() {
|
|
@@ -3321,6 +3381,12 @@ Object.defineProperty(exports, "TokenizationSolTokenPermissionParams", {
|
|
|
3321
3381
|
return _TokenizationSolTokenPermissionParams["default"];
|
|
3322
3382
|
}
|
|
3323
3383
|
});
|
|
3384
|
+
Object.defineProperty(exports, "TokenizationSolWrappedTokenPermissionParams", {
|
|
3385
|
+
enumerable: true,
|
|
3386
|
+
get: function get() {
|
|
3387
|
+
return _TokenizationSolWrappedTokenPermissionParams["default"];
|
|
3388
|
+
}
|
|
3389
|
+
});
|
|
3324
3390
|
Object.defineProperty(exports, "TokenizationStatus", {
|
|
3325
3391
|
enumerable: true,
|
|
3326
3392
|
get: function get() {
|
|
@@ -3357,24 +3423,12 @@ Object.defineProperty(exports, "TokenizationTokenPermission", {
|
|
|
3357
3423
|
return _TokenizationTokenPermission["default"];
|
|
3358
3424
|
}
|
|
3359
3425
|
});
|
|
3360
|
-
Object.defineProperty(exports, "TokenizationTokenPermissionParams", {
|
|
3361
|
-
enumerable: true,
|
|
3362
|
-
get: function get() {
|
|
3363
|
-
return _TokenizationTokenPermissionParams["default"];
|
|
3364
|
-
}
|
|
3365
|
-
});
|
|
3366
3426
|
Object.defineProperty(exports, "TokenizationTokenPermissionType", {
|
|
3367
3427
|
enumerable: true,
|
|
3368
3428
|
get: function get() {
|
|
3369
3429
|
return _TokenizationTokenPermissionType["default"];
|
|
3370
3430
|
}
|
|
3371
3431
|
});
|
|
3372
|
-
Object.defineProperty(exports, "TokenizationTokenPermissionsResponse", {
|
|
3373
|
-
enumerable: true,
|
|
3374
|
-
get: function get() {
|
|
3375
|
-
return _TokenizationTokenPermissionsResponse["default"];
|
|
3376
|
-
}
|
|
3377
|
-
});
|
|
3378
3432
|
Object.defineProperty(exports, "TokenizationTokenStandard", {
|
|
3379
3433
|
enumerable: true,
|
|
3380
3434
|
get: function get() {
|
|
@@ -3405,6 +3459,12 @@ Object.defineProperty(exports, "TokenizationUpdateAddressAction", {
|
|
|
3405
3459
|
return _TokenizationUpdateAddressAction["default"];
|
|
3406
3460
|
}
|
|
3407
3461
|
});
|
|
3462
|
+
Object.defineProperty(exports, "TokenizationUpdateAddressPermissions", {
|
|
3463
|
+
enumerable: true,
|
|
3464
|
+
get: function get() {
|
|
3465
|
+
return _TokenizationUpdateAddressPermissions["default"];
|
|
3466
|
+
}
|
|
3467
|
+
});
|
|
3408
3468
|
Object.defineProperty(exports, "TokenizationUpdateAllowlistAddressesEstimateFeeParams", {
|
|
3409
3469
|
enumerable: true,
|
|
3410
3470
|
get: function get() {
|
|
@@ -3453,6 +3513,24 @@ Object.defineProperty(exports, "TokenizationUpdateBlocklistAddressesRequest", {
|
|
|
3453
3513
|
return _TokenizationUpdateBlocklistAddressesRequest["default"];
|
|
3454
3514
|
}
|
|
3455
3515
|
});
|
|
3516
|
+
Object.defineProperty(exports, "TokenizationUpdatePermissionsEstimateFeeParams", {
|
|
3517
|
+
enumerable: true,
|
|
3518
|
+
get: function get() {
|
|
3519
|
+
return _TokenizationUpdatePermissionsEstimateFeeParams["default"];
|
|
3520
|
+
}
|
|
3521
|
+
});
|
|
3522
|
+
Object.defineProperty(exports, "TokenizationUpdatePermissionsParams", {
|
|
3523
|
+
enumerable: true,
|
|
3524
|
+
get: function get() {
|
|
3525
|
+
return _TokenizationUpdatePermissionsParams["default"];
|
|
3526
|
+
}
|
|
3527
|
+
});
|
|
3528
|
+
Object.defineProperty(exports, "TokenizationUpdatePermissionsRequest", {
|
|
3529
|
+
enumerable: true,
|
|
3530
|
+
get: function get() {
|
|
3531
|
+
return _TokenizationUpdatePermissionsRequest["default"];
|
|
3532
|
+
}
|
|
3533
|
+
});
|
|
3456
3534
|
Object.defineProperty(exports, "TokenizationWeb3OperationSource", {
|
|
3457
3535
|
enumerable: true,
|
|
3458
3536
|
get: function get() {
|
|
@@ -4486,6 +4564,7 @@ var _CreateOrderLinkRequest = _interopRequireDefault(require("./model/CreateOrde
|
|
|
4486
4564
|
var _CreatePaymentOrderRequest = _interopRequireDefault(require("./model/CreatePaymentOrderRequest"));
|
|
4487
4565
|
var _CreatePrimeBrokerAddress201Response = _interopRequireDefault(require("./model/CreatePrimeBrokerAddress201Response"));
|
|
4488
4566
|
var _CreatePrimeBrokerAddressRequest = _interopRequireDefault(require("./model/CreatePrimeBrokerAddressRequest"));
|
|
4567
|
+
var _CreateRefundLinkRequest = _interopRequireDefault(require("./model/CreateRefundLinkRequest"));
|
|
4489
4568
|
var _CreateRefundRequest = _interopRequireDefault(require("./model/CreateRefundRequest"));
|
|
4490
4569
|
var _CreateSafeWalletParams = _interopRequireDefault(require("./model/CreateSafeWalletParams"));
|
|
4491
4570
|
var _CreateSettlement = _interopRequireDefault(require("./model/CreateSettlement"));
|
|
@@ -4582,6 +4661,7 @@ var _FeeStationCheckFeeStationUsage = _interopRequireDefault(require("./model/Fe
|
|
|
4582
4661
|
var _FeeStationCheckFeeStationUsageResponse = _interopRequireDefault(require("./model/FeeStationCheckFeeStationUsageResponse"));
|
|
4583
4662
|
var _FeeStationDestination = _interopRequireDefault(require("./model/FeeStationDestination"));
|
|
4584
4663
|
var _FeeStationGasStationType = _interopRequireDefault(require("./model/FeeStationGasStationType"));
|
|
4664
|
+
var _FeeStationSponsorTransactionDescription = _interopRequireDefault(require("./model/FeeStationSponsorTransactionDescription"));
|
|
4585
4665
|
var _FeeStationTransactionType = _interopRequireDefault(require("./model/FeeStationTransactionType"));
|
|
4586
4666
|
var _FeeStationTransfer = _interopRequireDefault(require("./model/FeeStationTransfer"));
|
|
4587
4667
|
var _FeeType = _interopRequireDefault(require("./model/FeeType"));
|
|
@@ -4736,6 +4816,7 @@ var _RefreshToken2XXResponse = _interopRequireDefault(require("./model/RefreshTo
|
|
|
4736
4816
|
var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
|
|
4737
4817
|
var _Refund = _interopRequireDefault(require("./model/Refund"));
|
|
4738
4818
|
var _RefundDisposition = _interopRequireDefault(require("./model/RefundDisposition"));
|
|
4819
|
+
var _RefundLinkBusinessInfo = _interopRequireDefault(require("./model/RefundLinkBusinessInfo"));
|
|
4739
4820
|
var _RefundStatus = _interopRequireDefault(require("./model/RefundStatus"));
|
|
4740
4821
|
var _RefundType = _interopRequireDefault(require("./model/RefundType"));
|
|
4741
4822
|
var _ReplaceType = _interopRequireDefault(require("./model/ReplaceType"));
|
|
@@ -4878,6 +4959,9 @@ var _TokenizationContractCallParamsData = _interopRequireDefault(require("./mode
|
|
|
4878
4959
|
var _TokenizationContractCallRequest = _interopRequireDefault(require("./model/TokenizationContractCallRequest"));
|
|
4879
4960
|
var _TokenizationContractCallType = _interopRequireDefault(require("./model/TokenizationContractCallType"));
|
|
4880
4961
|
var _TokenizationERC20TokenParams = _interopRequireDefault(require("./model/TokenizationERC20TokenParams"));
|
|
4962
|
+
var _TokenizationERC20TokenPermissionParams = _interopRequireDefault(require("./model/TokenizationERC20TokenPermissionParams"));
|
|
4963
|
+
var _TokenizationERC20WrappedTokenParams = _interopRequireDefault(require("./model/TokenizationERC20WrappedTokenParams"));
|
|
4964
|
+
var _TokenizationERC20WrappedTokenPermissionParams = _interopRequireDefault(require("./model/TokenizationERC20WrappedTokenPermissionParams"));
|
|
4881
4965
|
var _TokenizationEstimateFeeRequest = _interopRequireDefault(require("./model/TokenizationEstimateFeeRequest"));
|
|
4882
4966
|
var _TokenizationEstimateFeeRequestOperationParams = _interopRequireDefault(require("./model/TokenizationEstimateFeeRequestOperationParams"));
|
|
4883
4967
|
var _TokenizationEvmContractCallParams = _interopRequireDefault(require("./model/TokenizationEvmContractCallParams"));
|
|
@@ -4889,6 +4973,8 @@ var _TokenizationIssuedTokenRequest = _interopRequireDefault(require("./model/To
|
|
|
4889
4973
|
var _TokenizationListActivitiesResponse = _interopRequireDefault(require("./model/TokenizationListActivitiesResponse"));
|
|
4890
4974
|
var _TokenizationListEnabledChainsResponse = _interopRequireDefault(require("./model/TokenizationListEnabledChainsResponse"));
|
|
4891
4975
|
var _TokenizationListHoldingsResponse = _interopRequireDefault(require("./model/TokenizationListHoldingsResponse"));
|
|
4976
|
+
var _TokenizationListPermissionsResponse = _interopRequireDefault(require("./model/TokenizationListPermissionsResponse"));
|
|
4977
|
+
var _TokenizationListPermissionsResponseDataInner = _interopRequireDefault(require("./model/TokenizationListPermissionsResponseDataInner"));
|
|
4892
4978
|
var _TokenizationListTokenInfoResponse = _interopRequireDefault(require("./model/TokenizationListTokenInfoResponse"));
|
|
4893
4979
|
var _TokenizationMintEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationMintEstimateFeeParams"));
|
|
4894
4980
|
var _TokenizationMintTokenParams = _interopRequireDefault(require("./model/TokenizationMintTokenParams"));
|
|
@@ -4901,23 +4987,25 @@ var _TokenizationOperationType = _interopRequireDefault(require("./model/Tokeniz
|
|
|
4901
4987
|
var _TokenizationPauseEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationPauseEstimateFeeParams"));
|
|
4902
4988
|
var _TokenizationPauseTokenParams = _interopRequireDefault(require("./model/TokenizationPauseTokenParams"));
|
|
4903
4989
|
var _TokenizationPauseTokenRequest = _interopRequireDefault(require("./model/TokenizationPauseTokenRequest"));
|
|
4990
|
+
var _TokenizationPermissionAction = _interopRequireDefault(require("./model/TokenizationPermissionAction"));
|
|
4904
4991
|
var _TokenizationSOLTokenParams = _interopRequireDefault(require("./model/TokenizationSOLTokenParams"));
|
|
4992
|
+
var _TokenizationSOLWrappedTokenParams = _interopRequireDefault(require("./model/TokenizationSOLWrappedTokenParams"));
|
|
4905
4993
|
var _TokenizationSolContractCallParams = _interopRequireDefault(require("./model/TokenizationSolContractCallParams"));
|
|
4906
4994
|
var _TokenizationSolTokenPermissionParams = _interopRequireDefault(require("./model/TokenizationSolTokenPermissionParams"));
|
|
4995
|
+
var _TokenizationSolWrappedTokenPermissionParams = _interopRequireDefault(require("./model/TokenizationSolWrappedTokenPermissionParams"));
|
|
4907
4996
|
var _TokenizationStatus = _interopRequireDefault(require("./model/TokenizationStatus"));
|
|
4908
4997
|
var _TokenizationToggleAllowlistEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationToggleAllowlistEstimateFeeParams"));
|
|
4909
4998
|
var _TokenizationTokenDetailInfo = _interopRequireDefault(require("./model/TokenizationTokenDetailInfo"));
|
|
4910
4999
|
var _TokenizationTokenInfo = _interopRequireDefault(require("./model/TokenizationTokenInfo"));
|
|
4911
5000
|
var _TokenizationTokenOperationSource = _interopRequireDefault(require("./model/TokenizationTokenOperationSource"));
|
|
4912
5001
|
var _TokenizationTokenPermission = _interopRequireDefault(require("./model/TokenizationTokenPermission"));
|
|
4913
|
-
var _TokenizationTokenPermissionParams = _interopRequireDefault(require("./model/TokenizationTokenPermissionParams"));
|
|
4914
5002
|
var _TokenizationTokenPermissionType = _interopRequireDefault(require("./model/TokenizationTokenPermissionType"));
|
|
4915
|
-
var _TokenizationTokenPermissionsResponse = _interopRequireDefault(require("./model/TokenizationTokenPermissionsResponse"));
|
|
4916
5003
|
var _TokenizationTokenStandard = _interopRequireDefault(require("./model/TokenizationTokenStandard"));
|
|
4917
5004
|
var _TokenizationUnpauseEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationUnpauseEstimateFeeParams"));
|
|
4918
5005
|
var _TokenizationUnpauseTokenParams = _interopRequireDefault(require("./model/TokenizationUnpauseTokenParams"));
|
|
4919
5006
|
var _TokenizationUnpauseTokenRequest = _interopRequireDefault(require("./model/TokenizationUnpauseTokenRequest"));
|
|
4920
5007
|
var _TokenizationUpdateAddressAction = _interopRequireDefault(require("./model/TokenizationUpdateAddressAction"));
|
|
5008
|
+
var _TokenizationUpdateAddressPermissions = _interopRequireDefault(require("./model/TokenizationUpdateAddressPermissions"));
|
|
4921
5009
|
var _TokenizationUpdateAllowlistAddressesEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationUpdateAllowlistAddressesEstimateFeeParams"));
|
|
4922
5010
|
var _TokenizationUpdateAllowlistAddressesParams = _interopRequireDefault(require("./model/TokenizationUpdateAllowlistAddressesParams"));
|
|
4923
5011
|
var _TokenizationUpdateAllowlistAddressesParamsAddressesInner = _interopRequireDefault(require("./model/TokenizationUpdateAllowlistAddressesParamsAddressesInner"));
|
|
@@ -4926,6 +5014,9 @@ var _TokenizationUpdateBlocklistAddressesEstimateFeeParams = _interopRequireDefa
|
|
|
4926
5014
|
var _TokenizationUpdateBlocklistAddressesParams = _interopRequireDefault(require("./model/TokenizationUpdateBlocklistAddressesParams"));
|
|
4927
5015
|
var _TokenizationUpdateBlocklistAddressesParamsAddressesInner = _interopRequireDefault(require("./model/TokenizationUpdateBlocklistAddressesParamsAddressesInner"));
|
|
4928
5016
|
var _TokenizationUpdateBlocklistAddressesRequest = _interopRequireDefault(require("./model/TokenizationUpdateBlocklistAddressesRequest"));
|
|
5017
|
+
var _TokenizationUpdatePermissionsEstimateFeeParams = _interopRequireDefault(require("./model/TokenizationUpdatePermissionsEstimateFeeParams"));
|
|
5018
|
+
var _TokenizationUpdatePermissionsParams = _interopRequireDefault(require("./model/TokenizationUpdatePermissionsParams"));
|
|
5019
|
+
var _TokenizationUpdatePermissionsRequest = _interopRequireDefault(require("./model/TokenizationUpdatePermissionsRequest"));
|
|
4929
5020
|
var _TokenizationWeb3OperationSource = _interopRequireDefault(require("./model/TokenizationWeb3OperationSource"));
|
|
4930
5021
|
var _TokensEventData = _interopRequireDefault(require("./model/TokensEventData"));
|
|
4931
5022
|
var _TopUpAddress = _interopRequireDefault(require("./model/TopUpAddress"));
|
|
@@ -45,6 +45,11 @@ var AutoFuelType = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
* @const
|
|
46
46
|
*/
|
|
47
47
|
_defineProperty(this, "UsePortalPreference", "UsePortalPreference");
|
|
48
|
+
/**
|
|
49
|
+
* value: "DisableAutoFuel"
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
_defineProperty(this, "DisableAutoFuel", "DisableAutoFuel");
|
|
48
53
|
/**
|
|
49
54
|
* value: "unknown_default_open_api"
|
|
50
55
|
* @const
|
|
@@ -131,7 +131,7 @@ CreateCryptoAddressRequest.prototype['token_id'] = undefined;
|
|
|
131
131
|
CreateCryptoAddressRequest.prototype['address'] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* A label to help identify the address's purpose.
|
|
134
|
+
* A label to help identify the address's purpose. Can contain up to 128 characters.
|
|
135
135
|
* @member {String} label
|
|
136
136
|
*/
|
|
137
137
|
CreateCryptoAddressRequest.prototype['label'] = undefined;
|
|
@@ -133,7 +133,7 @@ CreateMerchantRequest.prototype['name'] = undefined;
|
|
|
133
133
|
CreateMerchantRequest.prototype['wallet_id'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* The developer fee rate applied to this merchant.
|
|
136
|
+
* The developer fee rate applied to this merchant. Must be a valid float between 0 and 1 (inclusive), with up to 4 decimal places. For more information on developer fee rate, please refer to [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances).
|
|
137
137
|
* @member {String} developer_fee_rate
|
|
138
138
|
*/
|
|
139
139
|
CreateMerchantRequest.prototype['developer_fee_rate'] = undefined;
|
|
@@ -32,10 +32,10 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>CreatePaymentOrderRequest</code>.
|
|
34
34
|
* @alias module:model/CreatePaymentOrderRequest
|
|
35
|
-
* @param merchant_id {String} The merchant ID.
|
|
35
|
+
* @param merchant_id {String} The merchant ID. This ID is assigned by Cobo when you create the merchant.
|
|
36
36
|
* @param token_id {String} The ID of the cryptocurrency used for payment. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDCOIN`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC2`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT`
|
|
37
|
-
* @param order_amount {String} The base amount of the order, excluding the developer fee (specified in `fee_amount`), in the currency specified by `currency
|
|
38
|
-
* @param fee_amount {String} The developer fee for the order
|
|
37
|
+
* @param order_amount {String} The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
38
|
+
* @param fee_amount {String} The developer fee for the order. - **When to set:** If you are a merchant serving payers directly, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. For details, see [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - **Denomination:** The denomination of `fee_amount` depends on the presence of `currency`: - If `currency` is set, the amount is denominated in that currency (e.g., \"USD\"). - If `currency` is not set, the amount is denominated in the cryptocurrency specified by `token_id` (e.g., \"ETH_USDT\"). - **Calculation:** The developer fee is added to the base order amount (`order_amount`) to determine the final amount charged to the customer. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - **Total charged:** \"102.00\" - **Formatting:** The value can contain up to two decimal places.
|
|
39
39
|
* @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.
|
|
40
40
|
*/
|
|
41
41
|
function CreatePaymentOrderRequest(merchant_id, token_id, order_amount, fee_amount, psp_order_code) {
|
|
@@ -173,7 +173,7 @@ var CreatePaymentOrderRequest = /*#__PURE__*/function () {
|
|
|
173
173
|
CreatePaymentOrderRequest.RequiredProperties = ["merchant_id", "token_id", "order_amount", "fee_amount", "psp_order_code"];
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* The merchant ID.
|
|
176
|
+
* The merchant ID. This ID is assigned by Cobo when you create the merchant.
|
|
177
177
|
* @member {String} merchant_id
|
|
178
178
|
*/
|
|
179
179
|
CreatePaymentOrderRequest.prototype['merchant_id'] = undefined;
|
|
@@ -185,20 +185,20 @@ CreatePaymentOrderRequest.prototype['merchant_id'] = undefined;
|
|
|
185
185
|
CreatePaymentOrderRequest.prototype['token_id'] = undefined;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* The fiat currency for the base order amount and the developer fee.
|
|
188
|
+
* The fiat currency for the base order amount and the developer fee. If left empty, both `order_amount` and `fee_amount` will be denominated in the cryptocurrency specified by `token_id` Currently, only `USD` is supported.
|
|
189
189
|
* @member {String} currency
|
|
190
190
|
* @default ''
|
|
191
191
|
*/
|
|
192
192
|
CreatePaymentOrderRequest.prototype['currency'] = '';
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
|
-
* The base amount of the order, excluding the developer fee (specified in `fee_amount`), in the currency specified by `currency
|
|
195
|
+
* The base amount of the order, excluding the developer fee (specified in `fee_amount`). The denomination of the amount depends on if `currency` is specified: - If `currency` is specified, the amount is in the currency specified by `currency`, e.g. \"USD\". - If `currency` is not specified, the amount is in the cryptocurrency specified by `token_id`, e.g. \"ETH_USDT\". Values must be greater than `0` and contain two decimal places.
|
|
196
196
|
* @member {String} order_amount
|
|
197
197
|
*/
|
|
198
198
|
CreatePaymentOrderRequest.prototype['order_amount'] = undefined;
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
|
-
* The developer fee for the order
|
|
201
|
+
* The developer fee for the order. - **When to set:** If you are a merchant serving payers directly, set this field to `0`. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants. For details, see [Funds allocation and balances](https://www.cobo.com/developers/v2/payments/amounts-and-balances). - **Denomination:** The denomination of `fee_amount` depends on the presence of `currency`: - If `currency` is set, the amount is denominated in that currency (e.g., \"USD\"). - If `currency` is not set, the amount is denominated in the cryptocurrency specified by `token_id` (e.g., \"ETH_USDT\"). - **Calculation:** The developer fee is added to the base order amount (`order_amount`) to determine the final amount charged to the customer. For example: - Base amount (`order_amount`): \"100.00\" - Developer fee (`fee_amount`): \"2.00\" - **Total charged:** \"102.00\" - **Formatting:** The value can contain up to two decimal places.
|
|
202
202
|
* @member {String} fee_amount
|
|
203
203
|
*/
|
|
204
204
|
CreatePaymentOrderRequest.prototype['fee_amount'] = undefined;
|
|
@@ -235,7 +235,7 @@ CreatePaymentOrderRequest.prototype['use_dedicated_address'] = undefined;
|
|
|
235
235
|
CreatePaymentOrderRequest.prototype['custom_exchange_rate'] = undefined;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* The maximum allowed deviation from the payable amount in the case of underpayment, specified as a positive value with up to one decimal place. If you provide more than one decimal place, an error will occur. When the actual received amount is within this deviation (inclusive) of the payable amount, the order status will be set to `Completed` rather than `Underpaid`.
|
|
239
239
|
* @member {String} amount_tolerance
|
|
240
240
|
*/
|
|
241
241
|
CreatePaymentOrderRequest.prototype['amount_tolerance'] = undefined;
|
|
@@ -0,0 +1,129 @@
|
|
|
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 _LinkDisplayInfo = _interopRequireDefault(require("./LinkDisplayInfo"));
|
|
9
|
+
var _RefundLinkBusinessInfo = _interopRequireDefault(require("./RefundLinkBusinessInfo"));
|
|
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 CreateRefundLinkRequest model module.
|
|
31
|
+
* @module model/CreateRefundLinkRequest
|
|
32
|
+
*/
|
|
33
|
+
var CreateRefundLinkRequest = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>CreateRefundLinkRequest</code>.
|
|
36
|
+
* @alias module:model/CreateRefundLinkRequest
|
|
37
|
+
* @param business_info {module:model/RefundLinkBusinessInfo}
|
|
38
|
+
*/
|
|
39
|
+
function CreateRefundLinkRequest(business_info) {
|
|
40
|
+
_classCallCheck(this, CreateRefundLinkRequest);
|
|
41
|
+
CreateRefundLinkRequest.initialize(this, business_info);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(CreateRefundLinkRequest, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, business_info) {
|
|
52
|
+
obj['business_info'] = business_info;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>CreateRefundLinkRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/CreateRefundLinkRequest} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/CreateRefundLinkRequest} The populated <code>CreateRefundLinkRequest</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new CreateRefundLinkRequest();
|
|
67
|
+
if (data.hasOwnProperty('business_info')) {
|
|
68
|
+
obj['business_info'] = _RefundLinkBusinessInfo["default"].constructFromObject(data['business_info']);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('display_info')) {
|
|
71
|
+
obj['display_info'] = _LinkDisplayInfo["default"].constructFromObject(data['display_info']);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>CreateRefundLinkRequest</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateRefundLinkRequest</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(CreateRefundLinkRequest.RequiredProperties),
|
|
87
|
+
_step;
|
|
88
|
+
try {
|
|
89
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
90
|
+
var property = _step.value;
|
|
91
|
+
if (!data.hasOwnProperty(property)) {
|
|
92
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// validate the optional field `business_info`
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
if (data['business_info']) {
|
|
102
|
+
// data not null
|
|
103
|
+
if (!!_RefundLinkBusinessInfo["default"].validateJSON) {
|
|
104
|
+
_RefundLinkBusinessInfo["default"].validateJSON(data['business_info']);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
// validate the optional field `display_info`
|
|
108
|
+
if (data['display_info']) {
|
|
109
|
+
// data not null
|
|
110
|
+
if (!!_LinkDisplayInfo["default"].validateJSON) {
|
|
111
|
+
_LinkDisplayInfo["default"].validateJSON(data['display_info']);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}]);
|
|
117
|
+
}();
|
|
118
|
+
CreateRefundLinkRequest.RequiredProperties = ["business_info"];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @member {module:model/RefundLinkBusinessInfo} business_info
|
|
122
|
+
*/
|
|
123
|
+
CreateRefundLinkRequest.prototype['business_info'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @member {module:model/LinkDisplayInfo} display_info
|
|
127
|
+
*/
|
|
128
|
+
CreateRefundLinkRequest.prototype['display_info'] = undefined;
|
|
129
|
+
var _default = exports["default"] = CreateRefundLinkRequest;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AutoFuelType = _interopRequireDefault(require("./AutoFuelType"));
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
11
|
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; } } }; }
|
|
@@ -34,15 +35,13 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
34
35
|
* The information for evaluating Fee Station usage.
|
|
35
36
|
* @alias module:model/FeeStationCheckFeeStationUsage
|
|
36
37
|
* @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
37
|
-
* @param amount {String} The amount of tokens to be transferred in this request.
|
|
38
|
-
* @param token_id {String} The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
39
38
|
* @param estimated_fee_amount {String} The estimated transaction fee required for this transfer, before applying any Fee Station rules.
|
|
40
39
|
* @param from_address {String} The blockchain address that initiates the transfer.
|
|
41
40
|
* @param from_wallet_id {String} The wallet ID.
|
|
42
41
|
*/
|
|
43
|
-
function FeeStationCheckFeeStationUsage(request_id,
|
|
42
|
+
function FeeStationCheckFeeStationUsage(request_id, estimated_fee_amount, from_address, from_wallet_id) {
|
|
44
43
|
_classCallCheck(this, FeeStationCheckFeeStationUsage);
|
|
45
|
-
FeeStationCheckFeeStationUsage.initialize(this, request_id,
|
|
44
|
+
FeeStationCheckFeeStationUsage.initialize(this, request_id, estimated_fee_amount, from_address, from_wallet_id);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
@@ -52,10 +51,8 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
52
51
|
*/
|
|
53
52
|
return _createClass(FeeStationCheckFeeStationUsage, null, [{
|
|
54
53
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj, request_id,
|
|
54
|
+
value: function initialize(obj, request_id, estimated_fee_amount, from_address, from_wallet_id) {
|
|
56
55
|
obj['request_id'] = request_id;
|
|
57
|
-
obj['amount'] = amount;
|
|
58
|
-
obj['token_id'] = token_id;
|
|
59
56
|
obj['estimated_fee_amount'] = estimated_fee_amount;
|
|
60
57
|
obj['from_address'] = from_address;
|
|
61
58
|
obj['from_wallet_id'] = from_wallet_id;
|
|
@@ -82,6 +79,9 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
82
79
|
if (data.hasOwnProperty('token_id')) {
|
|
83
80
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
84
81
|
}
|
|
82
|
+
if (data.hasOwnProperty('fee_token_id')) {
|
|
83
|
+
obj['fee_token_id'] = _ApiClient["default"].convertToType(data['fee_token_id'], 'String');
|
|
84
|
+
}
|
|
85
85
|
if (data.hasOwnProperty('estimated_fee_amount')) {
|
|
86
86
|
obj['estimated_fee_amount'] = _ApiClient["default"].convertToType(data['estimated_fee_amount'], 'String');
|
|
87
87
|
}
|
|
@@ -91,6 +91,9 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
91
91
|
if (data.hasOwnProperty('from_wallet_id')) {
|
|
92
92
|
obj['from_wallet_id'] = _ApiClient["default"].convertToType(data['from_wallet_id'], 'String');
|
|
93
93
|
}
|
|
94
|
+
if (data.hasOwnProperty('auto_fuel')) {
|
|
95
|
+
obj['auto_fuel'] = _AutoFuelType["default"].constructFromObject(data['auto_fuel']);
|
|
96
|
+
}
|
|
94
97
|
}
|
|
95
98
|
return obj;
|
|
96
99
|
}
|
|
@@ -131,6 +134,10 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
131
134
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
132
135
|
}
|
|
133
136
|
// ensure the json data is a string
|
|
137
|
+
if (data['fee_token_id'] && !(typeof data['fee_token_id'] === 'string' || data['fee_token_id'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `fee_token_id` to be a primitive type in the JSON string but got " + data['fee_token_id']);
|
|
139
|
+
}
|
|
140
|
+
// ensure the json data is a string
|
|
134
141
|
if (data['estimated_fee_amount'] && !(typeof data['estimated_fee_amount'] === 'string' || data['estimated_fee_amount'] instanceof String)) {
|
|
135
142
|
throw new Error("Expected the field `estimated_fee_amount` to be a primitive type in the JSON string but got " + data['estimated_fee_amount']);
|
|
136
143
|
}
|
|
@@ -146,7 +153,7 @@ var FeeStationCheckFeeStationUsage = /*#__PURE__*/function () {
|
|
|
146
153
|
}
|
|
147
154
|
}]);
|
|
148
155
|
}();
|
|
149
|
-
FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "
|
|
156
|
+
FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "estimated_fee_amount", "from_address", "from_wallet_id"];
|
|
150
157
|
|
|
151
158
|
/**
|
|
152
159
|
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
@@ -155,17 +162,23 @@ FeeStationCheckFeeStationUsage.RequiredProperties = ["request_id", "amount", "to
|
|
|
155
162
|
FeeStationCheckFeeStationUsage.prototype['request_id'] = undefined;
|
|
156
163
|
|
|
157
164
|
/**
|
|
158
|
-
* The amount of tokens to be transferred in this request.
|
|
165
|
+
* Applicable to transfer requests only. The amount of tokens to be transferred in this request.
|
|
159
166
|
* @member {String} amount
|
|
160
167
|
*/
|
|
161
168
|
FeeStationCheckFeeStationUsage.prototype['amount'] = undefined;
|
|
162
169
|
|
|
163
170
|
/**
|
|
164
|
-
* The token ID of the transferred
|
|
171
|
+
* Applicable to transfer requests only. The token ID of the asset to be transferred. You can retrieve available token IDs by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
165
172
|
* @member {String} token_id
|
|
166
173
|
*/
|
|
167
174
|
FeeStationCheckFeeStationUsage.prototype['token_id'] = undefined;
|
|
168
175
|
|
|
176
|
+
/**
|
|
177
|
+
* The token ID used to pay the gas fee for the main transaction. You can retrieve available token IDs by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
|
|
178
|
+
* @member {String} fee_token_id
|
|
179
|
+
*/
|
|
180
|
+
FeeStationCheckFeeStationUsage.prototype['fee_token_id'] = undefined;
|
|
181
|
+
|
|
169
182
|
/**
|
|
170
183
|
* The estimated transaction fee required for this transfer, before applying any Fee Station rules.
|
|
171
184
|
* @member {String} estimated_fee_amount
|
|
@@ -183,4 +196,9 @@ FeeStationCheckFeeStationUsage.prototype['from_address'] = undefined;
|
|
|
183
196
|
* @member {String} from_wallet_id
|
|
184
197
|
*/
|
|
185
198
|
FeeStationCheckFeeStationUsage.prototype['from_wallet_id'] = undefined;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @member {module:model/AutoFuelType} auto_fuel
|
|
202
|
+
*/
|
|
203
|
+
FeeStationCheckFeeStationUsage.prototype['auto_fuel'] = undefined;
|
|
186
204
|
var _default = exports["default"] = FeeStationCheckFeeStationUsage;
|