@dynamic-labs/sdk-api-core 0.0.884 → 0.0.886
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +231 -0
- package/src/apis/SDKApi.d.ts +89 -1
- package/src/apis/SDKApi.js +231 -0
- package/src/index.cjs +32 -0
- package/src/index.js +8 -0
- package/src/models/CheckoutEvmApprovalData.cjs +47 -0
- package/src/models/CheckoutEvmApprovalData.d.ts +39 -0
- package/src/models/CheckoutEvmApprovalData.js +41 -0
- package/src/models/CheckoutEvmTransactionData.cjs +39 -0
- package/src/models/CheckoutEvmTransactionData.d.ts +45 -0
- package/src/models/CheckoutEvmTransactionData.js +33 -0
- package/src/models/CheckoutPsbtTransactionData.cjs +43 -0
- package/src/models/CheckoutPsbtTransactionData.d.ts +27 -0
- package/src/models/CheckoutPsbtTransactionData.js +37 -0
- package/src/models/CheckoutSerializedTransactionData.cjs +43 -0
- package/src/models/CheckoutSerializedTransactionData.d.ts +27 -0
- package/src/models/CheckoutSerializedTransactionData.js +37 -0
- package/src/models/CheckoutSigningPayload.cjs +48 -0
- package/src/models/CheckoutSigningPayload.d.ts +62 -0
- package/src/models/CheckoutSigningPayload.js +42 -0
- package/src/models/CheckoutTransaction.cjs +3 -0
- package/src/models/CheckoutTransaction.d.ts +7 -0
- package/src/models/CheckoutTransaction.js +3 -0
- package/src/models/DeviceRegistrationResponse.cjs +37 -0
- package/src/models/DeviceRegistrationResponse.d.ts +39 -0
- package/src/models/DeviceRegistrationResponse.js +31 -0
- package/src/models/DeviceRegistrationsResponse.cjs +35 -0
- package/src/models/DeviceRegistrationsResponse.d.ts +34 -0
- package/src/models/DeviceRegistrationsResponse.js +29 -0
- package/src/models/NoncesResponse.cjs +43 -0
- package/src/models/NoncesResponse.d.ts +27 -0
- package/src/models/NoncesResponse.js +37 -0
- package/src/models/index.d.ts +8 -0
package/src/apis/SDKApi.js
CHANGED
|
@@ -73,6 +73,7 @@ import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShare
|
|
|
73
73
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
74
74
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
75
75
|
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
76
|
+
import { DeviceRegistrationsResponseFromJSON } from '../models/DeviceRegistrationsResponse.js';
|
|
76
77
|
import '../models/TimeUnitEnum.js';
|
|
77
78
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
78
79
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
@@ -139,6 +140,7 @@ import '../models/Network.js';
|
|
|
139
140
|
import { NetworkConfigurationResponseFromJSON } from '../models/NetworkConfigurationResponse.js';
|
|
140
141
|
import '../models/NextViewEnum.js';
|
|
141
142
|
import { NonceResponseFromJSON } from '../models/NonceResponse.js';
|
|
143
|
+
import { NoncesResponseFromJSON } from '../models/NoncesResponse.js';
|
|
142
144
|
import { OauthInitAuthRequestToJSON } from '../models/OauthInitAuthRequest.js';
|
|
143
145
|
import { OauthProviderLoginUrlFromJSON } from '../models/OauthProviderLoginUrl.js';
|
|
144
146
|
import { OauthRequestToJSON } from '../models/OauthRequest.js';
|
|
@@ -2041,6 +2043,81 @@ class SDKApi extends BaseAPI {
|
|
|
2041
2043
|
yield this.cryptoDotComPaymentOptionsRaw(requestParameters, initOverrides);
|
|
2042
2044
|
});
|
|
2043
2045
|
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Soft-deletes all device registrations for the authenticated user in the given environment.
|
|
2048
|
+
* Delete all device registrations for authenticated user
|
|
2049
|
+
*/
|
|
2050
|
+
deleteAllDeviceRegistrationsRaw(requestParameters, initOverrides) {
|
|
2051
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2052
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2053
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteAllDeviceRegistrations.');
|
|
2054
|
+
}
|
|
2055
|
+
const queryParameters = {};
|
|
2056
|
+
const headerParameters = {};
|
|
2057
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2058
|
+
const token = this.configuration.accessToken;
|
|
2059
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2060
|
+
if (tokenString) {
|
|
2061
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
const response = yield this.request({
|
|
2065
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2066
|
+
method: 'DELETE',
|
|
2067
|
+
headers: headerParameters,
|
|
2068
|
+
query: queryParameters,
|
|
2069
|
+
}, initOverrides);
|
|
2070
|
+
return new VoidApiResponse(response);
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
/**
|
|
2074
|
+
* Soft-deletes all device registrations for the authenticated user in the given environment.
|
|
2075
|
+
* Delete all device registrations for authenticated user
|
|
2076
|
+
*/
|
|
2077
|
+
deleteAllDeviceRegistrations(requestParameters, initOverrides) {
|
|
2078
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2079
|
+
yield this.deleteAllDeviceRegistrationsRaw(requestParameters, initOverrides);
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Soft-deletes a specific device registration by ID for the authenticated user.
|
|
2084
|
+
* Delete a specific device registration
|
|
2085
|
+
*/
|
|
2086
|
+
deleteDeviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2088
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2089
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteDeviceRegistration.');
|
|
2090
|
+
}
|
|
2091
|
+
if (requestParameters.deviceRegistrationId === null || requestParameters.deviceRegistrationId === undefined) {
|
|
2092
|
+
throw new RequiredError('deviceRegistrationId', 'Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deleteDeviceRegistration.');
|
|
2093
|
+
}
|
|
2094
|
+
const queryParameters = {};
|
|
2095
|
+
const headerParameters = {};
|
|
2096
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2097
|
+
const token = this.configuration.accessToken;
|
|
2098
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2099
|
+
if (tokenString) {
|
|
2100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
const response = yield this.request({
|
|
2104
|
+
path: `/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"deviceRegistrationId"}}`, encodeURIComponent(String(requestParameters.deviceRegistrationId))),
|
|
2105
|
+
method: 'DELETE',
|
|
2106
|
+
headers: headerParameters,
|
|
2107
|
+
query: queryParameters,
|
|
2108
|
+
}, initOverrides);
|
|
2109
|
+
return new VoidApiResponse(response);
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* Soft-deletes a specific device registration by ID for the authenticated user.
|
|
2114
|
+
* Delete a specific device registration
|
|
2115
|
+
*/
|
|
2116
|
+
deleteDeviceRegistration(requestParameters, initOverrides) {
|
|
2117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2118
|
+
yield this.deleteDeviceRegistrationRaw(requestParameters, initOverrides);
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2044
2121
|
/**
|
|
2045
2122
|
* Deletes the embedded wallets for a user
|
|
2046
2123
|
* Delete embedded wallets for a user
|
|
@@ -2279,6 +2356,36 @@ class SDKApi extends BaseAPI {
|
|
|
2279
2356
|
return yield response.value();
|
|
2280
2357
|
});
|
|
2281
2358
|
}
|
|
2359
|
+
/**
|
|
2360
|
+
* Options call for this endpoint
|
|
2361
|
+
*/
|
|
2362
|
+
deviceRegistrationByIdOptionsRaw(requestParameters, initOverrides) {
|
|
2363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2364
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2365
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationByIdOptions.');
|
|
2366
|
+
}
|
|
2367
|
+
if (requestParameters.deviceRegistrationId === null || requestParameters.deviceRegistrationId === undefined) {
|
|
2368
|
+
throw new RequiredError('deviceRegistrationId', 'Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deviceRegistrationByIdOptions.');
|
|
2369
|
+
}
|
|
2370
|
+
const queryParameters = {};
|
|
2371
|
+
const headerParameters = {};
|
|
2372
|
+
const response = yield this.request({
|
|
2373
|
+
path: `/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"deviceRegistrationId"}}`, encodeURIComponent(String(requestParameters.deviceRegistrationId))),
|
|
2374
|
+
method: 'OPTIONS',
|
|
2375
|
+
headers: headerParameters,
|
|
2376
|
+
query: queryParameters,
|
|
2377
|
+
}, initOverrides);
|
|
2378
|
+
return new VoidApiResponse(response);
|
|
2379
|
+
});
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
* Options call for this endpoint
|
|
2383
|
+
*/
|
|
2384
|
+
deviceRegistrationByIdOptions(requestParameters, initOverrides) {
|
|
2385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2386
|
+
yield this.deviceRegistrationByIdOptionsRaw(requestParameters, initOverrides);
|
|
2387
|
+
});
|
|
2388
|
+
}
|
|
2282
2389
|
/**
|
|
2283
2390
|
* Options call for this endpoint
|
|
2284
2391
|
*/
|
|
@@ -2306,6 +2413,33 @@ class SDKApi extends BaseAPI {
|
|
|
2306
2413
|
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2307
2414
|
});
|
|
2308
2415
|
}
|
|
2416
|
+
/**
|
|
2417
|
+
* Options call for this endpoint
|
|
2418
|
+
*/
|
|
2419
|
+
deviceRegistrationsOptionsRaw(requestParameters, initOverrides) {
|
|
2420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2421
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2422
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationsOptions.');
|
|
2423
|
+
}
|
|
2424
|
+
const queryParameters = {};
|
|
2425
|
+
const headerParameters = {};
|
|
2426
|
+
const response = yield this.request({
|
|
2427
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2428
|
+
method: 'OPTIONS',
|
|
2429
|
+
headers: headerParameters,
|
|
2430
|
+
query: queryParameters,
|
|
2431
|
+
}, initOverrides);
|
|
2432
|
+
return new VoidApiResponse(response);
|
|
2433
|
+
});
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* Options call for this endpoint
|
|
2437
|
+
*/
|
|
2438
|
+
deviceRegistrationsOptions(requestParameters, initOverrides) {
|
|
2439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2440
|
+
yield this.deviceRegistrationsOptionsRaw(requestParameters, initOverrides);
|
|
2441
|
+
});
|
|
2442
|
+
}
|
|
2309
2443
|
/**
|
|
2310
2444
|
* Disconnects the specified global wallet connection.
|
|
2311
2445
|
* Disconnect a global wallet connection
|
|
@@ -4188,6 +4322,39 @@ class SDKApi extends BaseAPI {
|
|
|
4188
4322
|
return yield response.value();
|
|
4189
4323
|
});
|
|
4190
4324
|
}
|
|
4325
|
+
/**
|
|
4326
|
+
* Creates and returns multiple nonces for use in the wallet authentication flow. Maximum of 5 nonces per request.
|
|
4327
|
+
* Create multiple nonces for authentication flow
|
|
4328
|
+
*/
|
|
4329
|
+
getNoncesRaw(requestParameters, initOverrides) {
|
|
4330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4331
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4332
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getNonces.');
|
|
4333
|
+
}
|
|
4334
|
+
const queryParameters = {};
|
|
4335
|
+
if (requestParameters.count !== undefined) {
|
|
4336
|
+
queryParameters['count'] = requestParameters.count;
|
|
4337
|
+
}
|
|
4338
|
+
const headerParameters = {};
|
|
4339
|
+
const response = yield this.request({
|
|
4340
|
+
path: `/sdk/{environmentId}/nonces`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4341
|
+
method: 'GET',
|
|
4342
|
+
headers: headerParameters,
|
|
4343
|
+
query: queryParameters,
|
|
4344
|
+
}, initOverrides);
|
|
4345
|
+
return new JSONApiResponse(response, (jsonValue) => NoncesResponseFromJSON(jsonValue));
|
|
4346
|
+
});
|
|
4347
|
+
}
|
|
4348
|
+
/**
|
|
4349
|
+
* Creates and returns multiple nonces for use in the wallet authentication flow. Maximum of 5 nonces per request.
|
|
4350
|
+
* Create multiple nonces for authentication flow
|
|
4351
|
+
*/
|
|
4352
|
+
getNonces(requestParameters, initOverrides) {
|
|
4353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4354
|
+
const response = yield this.getNoncesRaw(requestParameters, initOverrides);
|
|
4355
|
+
return yield response.value();
|
|
4356
|
+
});
|
|
4357
|
+
}
|
|
4191
4358
|
/**
|
|
4192
4359
|
* Returns the WebAuthn authentication options for passkey verification.
|
|
4193
4360
|
* Get passkey authentication options
|
|
@@ -5357,6 +5524,43 @@ class SDKApi extends BaseAPI {
|
|
|
5357
5524
|
return yield response.value();
|
|
5358
5525
|
});
|
|
5359
5526
|
}
|
|
5527
|
+
/**
|
|
5528
|
+
* Returns all active (non-deleted) device registrations for the authenticated user in the given environment.
|
|
5529
|
+
* List registered devices for authenticated user
|
|
5530
|
+
*/
|
|
5531
|
+
listDeviceRegistrationsRaw(requestParameters, initOverrides) {
|
|
5532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5533
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5534
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listDeviceRegistrations.');
|
|
5535
|
+
}
|
|
5536
|
+
const queryParameters = {};
|
|
5537
|
+
const headerParameters = {};
|
|
5538
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5539
|
+
const token = this.configuration.accessToken;
|
|
5540
|
+
const tokenString = yield token("bearerAuth", []);
|
|
5541
|
+
if (tokenString) {
|
|
5542
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5543
|
+
}
|
|
5544
|
+
}
|
|
5545
|
+
const response = yield this.request({
|
|
5546
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5547
|
+
method: 'GET',
|
|
5548
|
+
headers: headerParameters,
|
|
5549
|
+
query: queryParameters,
|
|
5550
|
+
}, initOverrides);
|
|
5551
|
+
return new JSONApiResponse(response, (jsonValue) => DeviceRegistrationsResponseFromJSON(jsonValue));
|
|
5552
|
+
});
|
|
5553
|
+
}
|
|
5554
|
+
/**
|
|
5555
|
+
* Returns all active (non-deleted) device registrations for the authenticated user in the given environment.
|
|
5556
|
+
* List registered devices for authenticated user
|
|
5557
|
+
*/
|
|
5558
|
+
listDeviceRegistrations(requestParameters, initOverrides) {
|
|
5559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5560
|
+
const response = yield this.listDeviceRegistrationsRaw(requestParameters, initOverrides);
|
|
5561
|
+
return yield response.value();
|
|
5562
|
+
});
|
|
5563
|
+
}
|
|
5360
5564
|
/**
|
|
5361
5565
|
* Options call for this endpoint
|
|
5362
5566
|
*/
|
|
@@ -5566,6 +5770,33 @@ class SDKApi extends BaseAPI {
|
|
|
5566
5770
|
yield this.nonceOptionsRaw(requestParameters, initOverrides);
|
|
5567
5771
|
});
|
|
5568
5772
|
}
|
|
5773
|
+
/**
|
|
5774
|
+
* Options call for this endpoint
|
|
5775
|
+
*/
|
|
5776
|
+
noncesOptionsRaw(requestParameters, initOverrides) {
|
|
5777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5778
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5779
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling noncesOptions.');
|
|
5780
|
+
}
|
|
5781
|
+
const queryParameters = {};
|
|
5782
|
+
const headerParameters = {};
|
|
5783
|
+
const response = yield this.request({
|
|
5784
|
+
path: `/sdk/{environmentId}/nonces`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5785
|
+
method: 'OPTIONS',
|
|
5786
|
+
headers: headerParameters,
|
|
5787
|
+
query: queryParameters,
|
|
5788
|
+
}, initOverrides);
|
|
5789
|
+
return new VoidApiResponse(response);
|
|
5790
|
+
});
|
|
5791
|
+
}
|
|
5792
|
+
/**
|
|
5793
|
+
* Options call for this endpoint
|
|
5794
|
+
*/
|
|
5795
|
+
noncesOptions(requestParameters, initOverrides) {
|
|
5796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5797
|
+
yield this.noncesOptionsRaw(requestParameters, initOverrides);
|
|
5798
|
+
});
|
|
5799
|
+
}
|
|
5569
5800
|
/**
|
|
5570
5801
|
* Endpoint where an oauth provider would return authorization HTML used for mobile-friendly login, such as Apple ID with Touch ID on enabled devices.
|
|
5571
5802
|
* Get OAuth provider authorization HTML
|
package/src/index.cjs
CHANGED
|
@@ -39,14 +39,19 @@ var ChainConfiguration = require('./models/ChainConfiguration.cjs');
|
|
|
39
39
|
var ChainEnum = require('./models/ChainEnum.cjs');
|
|
40
40
|
var Checkout = require('./models/Checkout.cjs');
|
|
41
41
|
var CheckoutCreateRequest = require('./models/CheckoutCreateRequest.cjs');
|
|
42
|
+
var CheckoutEvmApprovalData = require('./models/CheckoutEvmApprovalData.cjs');
|
|
43
|
+
var CheckoutEvmTransactionData = require('./models/CheckoutEvmTransactionData.cjs');
|
|
42
44
|
var CheckoutExecutionStateEnum = require('./models/CheckoutExecutionStateEnum.cjs');
|
|
43
45
|
var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
44
46
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
45
47
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
48
|
+
var CheckoutPsbtTransactionData = require('./models/CheckoutPsbtTransactionData.cjs');
|
|
46
49
|
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
47
50
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
51
|
+
var CheckoutSerializedTransactionData = require('./models/CheckoutSerializedTransactionData.cjs');
|
|
48
52
|
var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
|
|
49
53
|
var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
|
|
54
|
+
var CheckoutSigningPayload = require('./models/CheckoutSigningPayload.cjs');
|
|
50
55
|
var CheckoutSourceTypeEnum = require('./models/CheckoutSourceTypeEnum.cjs');
|
|
51
56
|
var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
52
57
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
@@ -103,6 +108,8 @@ var DepositAmountsConfigInput = require('./models/DepositAmountsConfigInput.cjs'
|
|
|
103
108
|
var DestinationConfigInput = require('./models/DestinationConfigInput.cjs');
|
|
104
109
|
var DestinationTypeEnum = require('./models/DestinationTypeEnum.cjs');
|
|
105
110
|
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
111
|
+
var DeviceRegistrationResponse = require('./models/DeviceRegistrationResponse.cjs');
|
|
112
|
+
var DeviceRegistrationsResponse = require('./models/DeviceRegistrationsResponse.cjs');
|
|
106
113
|
var Duration = require('./models/Duration.cjs');
|
|
107
114
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
108
115
|
var EcdsaValidatorOptions = require('./models/EcdsaValidatorOptions.cjs');
|
|
@@ -226,6 +233,7 @@ var NetworkConfigurationResponse = require('./models/NetworkConfigurationRespons
|
|
|
226
233
|
var NextJsSettings = require('./models/NextJsSettings.cjs');
|
|
227
234
|
var NextViewEnum = require('./models/NextViewEnum.cjs');
|
|
228
235
|
var NonceResponse = require('./models/NonceResponse.cjs');
|
|
236
|
+
var NoncesResponse = require('./models/NoncesResponse.cjs');
|
|
229
237
|
var NotFound = require('./models/NotFound.cjs');
|
|
230
238
|
var OAuthAccount = require('./models/OAuthAccount.cjs');
|
|
231
239
|
var OauthInitAuthRequest = require('./models/OauthInitAuthRequest.cjs');
|
|
@@ -562,6 +570,12 @@ exports.CheckoutToJSON = Checkout.CheckoutToJSON;
|
|
|
562
570
|
exports.CheckoutCreateRequestFromJSON = CheckoutCreateRequest.CheckoutCreateRequestFromJSON;
|
|
563
571
|
exports.CheckoutCreateRequestFromJSONTyped = CheckoutCreateRequest.CheckoutCreateRequestFromJSONTyped;
|
|
564
572
|
exports.CheckoutCreateRequestToJSON = CheckoutCreateRequest.CheckoutCreateRequestToJSON;
|
|
573
|
+
exports.CheckoutEvmApprovalDataFromJSON = CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSON;
|
|
574
|
+
exports.CheckoutEvmApprovalDataFromJSONTyped = CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSONTyped;
|
|
575
|
+
exports.CheckoutEvmApprovalDataToJSON = CheckoutEvmApprovalData.CheckoutEvmApprovalDataToJSON;
|
|
576
|
+
exports.CheckoutEvmTransactionDataFromJSON = CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSON;
|
|
577
|
+
exports.CheckoutEvmTransactionDataFromJSONTyped = CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSONTyped;
|
|
578
|
+
exports.CheckoutEvmTransactionDataToJSON = CheckoutEvmTransactionData.CheckoutEvmTransactionDataToJSON;
|
|
565
579
|
Object.defineProperty(exports, 'CheckoutExecutionStateEnum', {
|
|
566
580
|
enumerable: true,
|
|
567
581
|
get: function () { return CheckoutExecutionStateEnum.CheckoutExecutionStateEnum; }
|
|
@@ -582,6 +596,9 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
|
582
596
|
exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
|
|
583
597
|
exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
|
|
584
598
|
exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
|
|
599
|
+
exports.CheckoutPsbtTransactionDataFromJSON = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSON;
|
|
600
|
+
exports.CheckoutPsbtTransactionDataFromJSONTyped = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSONTyped;
|
|
601
|
+
exports.CheckoutPsbtTransactionDataToJSON = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataToJSON;
|
|
585
602
|
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
|
|
586
603
|
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
|
|
587
604
|
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
|
|
@@ -592,6 +609,9 @@ Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
|
|
|
592
609
|
exports.CheckoutRiskStateEnumFromJSON = CheckoutRiskStateEnum.CheckoutRiskStateEnumFromJSON;
|
|
593
610
|
exports.CheckoutRiskStateEnumFromJSONTyped = CheckoutRiskStateEnum.CheckoutRiskStateEnumFromJSONTyped;
|
|
594
611
|
exports.CheckoutRiskStateEnumToJSON = CheckoutRiskStateEnum.CheckoutRiskStateEnumToJSON;
|
|
612
|
+
exports.CheckoutSerializedTransactionDataFromJSON = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSON;
|
|
613
|
+
exports.CheckoutSerializedTransactionDataFromJSONTyped = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSONTyped;
|
|
614
|
+
exports.CheckoutSerializedTransactionDataToJSON = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataToJSON;
|
|
595
615
|
exports.CheckoutSettlementDataFromJSON = CheckoutSettlementData.CheckoutSettlementDataFromJSON;
|
|
596
616
|
exports.CheckoutSettlementDataFromJSONTyped = CheckoutSettlementData.CheckoutSettlementDataFromJSONTyped;
|
|
597
617
|
exports.CheckoutSettlementDataToJSON = CheckoutSettlementData.CheckoutSettlementDataToJSON;
|
|
@@ -602,6 +622,9 @@ Object.defineProperty(exports, 'CheckoutSettlementStateEnum', {
|
|
|
602
622
|
exports.CheckoutSettlementStateEnumFromJSON = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumFromJSON;
|
|
603
623
|
exports.CheckoutSettlementStateEnumFromJSONTyped = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumFromJSONTyped;
|
|
604
624
|
exports.CheckoutSettlementStateEnumToJSON = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumToJSON;
|
|
625
|
+
exports.CheckoutSigningPayloadFromJSON = CheckoutSigningPayload.CheckoutSigningPayloadFromJSON;
|
|
626
|
+
exports.CheckoutSigningPayloadFromJSONTyped = CheckoutSigningPayload.CheckoutSigningPayloadFromJSONTyped;
|
|
627
|
+
exports.CheckoutSigningPayloadToJSON = CheckoutSigningPayload.CheckoutSigningPayloadToJSON;
|
|
605
628
|
Object.defineProperty(exports, 'CheckoutSourceTypeEnum', {
|
|
606
629
|
enumerable: true,
|
|
607
630
|
get: function () { return CheckoutSourceTypeEnum.CheckoutSourceTypeEnum; }
|
|
@@ -818,6 +841,12 @@ exports.DestinationTypeEnumToJSON = DestinationTypeEnum.DestinationTypeEnumToJSO
|
|
|
818
841
|
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
819
842
|
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
820
843
|
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
844
|
+
exports.DeviceRegistrationResponseFromJSON = DeviceRegistrationResponse.DeviceRegistrationResponseFromJSON;
|
|
845
|
+
exports.DeviceRegistrationResponseFromJSONTyped = DeviceRegistrationResponse.DeviceRegistrationResponseFromJSONTyped;
|
|
846
|
+
exports.DeviceRegistrationResponseToJSON = DeviceRegistrationResponse.DeviceRegistrationResponseToJSON;
|
|
847
|
+
exports.DeviceRegistrationsResponseFromJSON = DeviceRegistrationsResponse.DeviceRegistrationsResponseFromJSON;
|
|
848
|
+
exports.DeviceRegistrationsResponseFromJSONTyped = DeviceRegistrationsResponse.DeviceRegistrationsResponseFromJSONTyped;
|
|
849
|
+
exports.DeviceRegistrationsResponseToJSON = DeviceRegistrationsResponse.DeviceRegistrationsResponseToJSON;
|
|
821
850
|
exports.DurationFromJSON = Duration.DurationFromJSON;
|
|
822
851
|
exports.DurationFromJSONTyped = Duration.DurationFromJSONTyped;
|
|
823
852
|
exports.DurationToJSON = Duration.DurationToJSON;
|
|
@@ -1271,6 +1300,9 @@ exports.NextViewEnumToJSON = NextViewEnum.NextViewEnumToJSON;
|
|
|
1271
1300
|
exports.NonceResponseFromJSON = NonceResponse.NonceResponseFromJSON;
|
|
1272
1301
|
exports.NonceResponseFromJSONTyped = NonceResponse.NonceResponseFromJSONTyped;
|
|
1273
1302
|
exports.NonceResponseToJSON = NonceResponse.NonceResponseToJSON;
|
|
1303
|
+
exports.NoncesResponseFromJSON = NoncesResponse.NoncesResponseFromJSON;
|
|
1304
|
+
exports.NoncesResponseFromJSONTyped = NoncesResponse.NoncesResponseFromJSONTyped;
|
|
1305
|
+
exports.NoncesResponseToJSON = NoncesResponse.NoncesResponseToJSON;
|
|
1274
1306
|
exports.NotFoundFromJSON = NotFound.NotFoundFromJSON;
|
|
1275
1307
|
exports.NotFoundFromJSONTyped = NotFound.NotFoundFromJSONTyped;
|
|
1276
1308
|
exports.NotFoundToJSON = NotFound.NotFoundToJSON;
|
package/src/index.js
CHANGED
|
@@ -35,14 +35,19 @@ export { ChainConfigurationFromJSON, ChainConfigurationFromJSONTyped, ChainConfi
|
|
|
35
35
|
export { ChainEnum, ChainEnumFromJSON, ChainEnumFromJSONTyped, ChainEnumToJSON } from './models/ChainEnum.js';
|
|
36
36
|
export { CheckoutFromJSON, CheckoutFromJSONTyped, CheckoutToJSON } from './models/Checkout.js';
|
|
37
37
|
export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, CheckoutCreateRequestToJSON } from './models/CheckoutCreateRequest.js';
|
|
38
|
+
export { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataFromJSONTyped, CheckoutEvmApprovalDataToJSON } from './models/CheckoutEvmApprovalData.js';
|
|
39
|
+
export { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataFromJSONTyped, CheckoutEvmTransactionDataToJSON } from './models/CheckoutEvmTransactionData.js';
|
|
38
40
|
export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
|
|
39
41
|
export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
|
|
40
42
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
41
43
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
44
|
+
export { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataFromJSONTyped, CheckoutPsbtTransactionDataToJSON } from './models/CheckoutPsbtTransactionData.js';
|
|
42
45
|
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
43
46
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
47
|
+
export { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataFromJSONTyped, CheckoutSerializedTransactionDataToJSON } from './models/CheckoutSerializedTransactionData.js';
|
|
44
48
|
export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
|
|
45
49
|
export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
|
|
50
|
+
export { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadFromJSONTyped, CheckoutSigningPayloadToJSON } from './models/CheckoutSigningPayload.js';
|
|
46
51
|
export { CheckoutSourceTypeEnum, CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumFromJSONTyped, CheckoutSourceTypeEnumToJSON } from './models/CheckoutSourceTypeEnum.js';
|
|
47
52
|
export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, CheckoutTransactionToJSON } from './models/CheckoutTransaction.js';
|
|
48
53
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
@@ -99,6 +104,8 @@ export { DepositAmountsConfigInputFromJSON, DepositAmountsConfigInputFromJSONTyp
|
|
|
99
104
|
export { DestinationConfigInputFromJSON, DestinationConfigInputFromJSONTyped, DestinationConfigInputToJSON } from './models/DestinationConfigInput.js';
|
|
100
105
|
export { DestinationTypeEnum, DestinationTypeEnumFromJSON, DestinationTypeEnumFromJSONTyped, DestinationTypeEnumToJSON } from './models/DestinationTypeEnum.js';
|
|
101
106
|
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
107
|
+
export { DeviceRegistrationResponseFromJSON, DeviceRegistrationResponseFromJSONTyped, DeviceRegistrationResponseToJSON } from './models/DeviceRegistrationResponse.js';
|
|
108
|
+
export { DeviceRegistrationsResponseFromJSON, DeviceRegistrationsResponseFromJSONTyped, DeviceRegistrationsResponseToJSON } from './models/DeviceRegistrationsResponse.js';
|
|
102
109
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
103
110
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
104
111
|
export { EcdsaValidatorOptions, EcdsaValidatorOptionsFromJSON, EcdsaValidatorOptionsFromJSONTyped, EcdsaValidatorOptionsToJSON } from './models/EcdsaValidatorOptions.js';
|
|
@@ -222,6 +229,7 @@ export { NetworkConfigurationResponseFromJSON, NetworkConfigurationResponseFromJ
|
|
|
222
229
|
export { NextJsSettingsFromJSON, NextJsSettingsFromJSONTyped, NextJsSettingsToJSON } from './models/NextJsSettings.js';
|
|
223
230
|
export { NextViewEnum, NextViewEnumFromJSON, NextViewEnumFromJSONTyped, NextViewEnumToJSON } from './models/NextViewEnum.js';
|
|
224
231
|
export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON } from './models/NonceResponse.js';
|
|
232
|
+
export { NoncesResponseFromJSON, NoncesResponseFromJSONTyped, NoncesResponseToJSON } from './models/NoncesResponse.js';
|
|
225
233
|
export { NotFoundFromJSON, NotFoundFromJSONTyped, NotFoundToJSON } from './models/NotFound.js';
|
|
226
234
|
export { OAuthAccountFromJSON, OAuthAccountFromJSONTyped, OAuthAccountToJSON } from './models/OAuthAccount.js';
|
|
227
235
|
export { OauthInitAuthRequestFromJSON, OauthInitAuthRequestFromJSONTyped, OauthInitAuthRequestToJSON } from './models/OauthInitAuthRequest.js';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function CheckoutEvmApprovalDataFromJSON(json) {
|
|
19
|
+
return CheckoutEvmApprovalDataFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'tokenAddress': json['tokenAddress'],
|
|
27
|
+
'spenderAddress': json['spenderAddress'],
|
|
28
|
+
'amount': json['amount'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function CheckoutEvmApprovalDataToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'tokenAddress': value.tokenAddress,
|
|
40
|
+
'spenderAddress': value.spenderAddress,
|
|
41
|
+
'amount': value.amount,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.CheckoutEvmApprovalDataFromJSON = CheckoutEvmApprovalDataFromJSON;
|
|
46
|
+
exports.CheckoutEvmApprovalDataFromJSONTyped = CheckoutEvmApprovalDataFromJSONTyped;
|
|
47
|
+
exports.CheckoutEvmApprovalDataToJSON = CheckoutEvmApprovalDataToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CheckoutEvmApprovalData
|
|
16
|
+
*/
|
|
17
|
+
export interface CheckoutEvmApprovalData {
|
|
18
|
+
/**
|
|
19
|
+
* ERC-20 contract to approve
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CheckoutEvmApprovalData
|
|
22
|
+
*/
|
|
23
|
+
tokenAddress: string;
|
|
24
|
+
/**
|
|
25
|
+
* Contract that needs the allowance (e.g. LiFi Diamond)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CheckoutEvmApprovalData
|
|
28
|
+
*/
|
|
29
|
+
spenderAddress: string;
|
|
30
|
+
/**
|
|
31
|
+
* Amount to approve in token's smallest unit
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CheckoutEvmApprovalData
|
|
34
|
+
*/
|
|
35
|
+
amount: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function CheckoutEvmApprovalDataFromJSON(json: any): CheckoutEvmApprovalData;
|
|
38
|
+
export declare function CheckoutEvmApprovalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutEvmApprovalData;
|
|
39
|
+
export declare function CheckoutEvmApprovalDataToJSON(value?: CheckoutEvmApprovalData | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function CheckoutEvmApprovalDataFromJSON(json) {
|
|
15
|
+
return CheckoutEvmApprovalDataFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'tokenAddress': json['tokenAddress'],
|
|
23
|
+
'spenderAddress': json['spenderAddress'],
|
|
24
|
+
'amount': json['amount'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function CheckoutEvmApprovalDataToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'tokenAddress': value.tokenAddress,
|
|
36
|
+
'spenderAddress': value.spenderAddress,
|
|
37
|
+
'amount': value.amount,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataFromJSONTyped, CheckoutEvmApprovalDataToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CheckoutEvmTransactionDataFromJSON(json) {
|
|
9
|
+
return CheckoutEvmTransactionDataFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CheckoutEvmTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'to': json['to'],
|
|
17
|
+
'data': json['data'],
|
|
18
|
+
'value': json['value'],
|
|
19
|
+
'gasLimit': !runtime.exists(json, 'gasLimit') ? undefined : json['gasLimit'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function CheckoutEvmTransactionDataToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'to': value.to,
|
|
31
|
+
'data': value.data,
|
|
32
|
+
'value': value.value,
|
|
33
|
+
'gasLimit': value.gasLimit,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.CheckoutEvmTransactionDataFromJSON = CheckoutEvmTransactionDataFromJSON;
|
|
38
|
+
exports.CheckoutEvmTransactionDataFromJSONTyped = CheckoutEvmTransactionDataFromJSONTyped;
|
|
39
|
+
exports.CheckoutEvmTransactionDataToJSON = CheckoutEvmTransactionDataToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CheckoutEvmTransactionData
|
|
16
|
+
*/
|
|
17
|
+
export interface CheckoutEvmTransactionData {
|
|
18
|
+
/**
|
|
19
|
+
* Contract address to call
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CheckoutEvmTransactionData
|
|
22
|
+
*/
|
|
23
|
+
to: string;
|
|
24
|
+
/**
|
|
25
|
+
* Encoded calldata (hex)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CheckoutEvmTransactionData
|
|
28
|
+
*/
|
|
29
|
+
data: string;
|
|
30
|
+
/**
|
|
31
|
+
* Native asset amount in wei (hex string, "0x0" if token-only)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CheckoutEvmTransactionData
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* Suggested gas limit (hex string)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CheckoutEvmTransactionData
|
|
40
|
+
*/
|
|
41
|
+
gasLimit?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function CheckoutEvmTransactionDataFromJSON(json: any): CheckoutEvmTransactionData;
|
|
44
|
+
export declare function CheckoutEvmTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutEvmTransactionData;
|
|
45
|
+
export declare function CheckoutEvmTransactionDataToJSON(value?: CheckoutEvmTransactionData | null): any;
|