@dynamic-labs/sdk-api 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
|
@@ -86,6 +86,7 @@ import { DelegatedShareDeliveryResponseFromJSON } from '../models/DelegatedShare
|
|
|
86
86
|
import { DeleteEmbeddedWalletsRequestToJSON } from '../models/DeleteEmbeddedWalletsRequest.js';
|
|
87
87
|
import { DeleteUserPasskeyRequestToJSON } from '../models/DeleteUserPasskeyRequest.js';
|
|
88
88
|
import { DeviceRegistrationRequestToJSON } from '../models/DeviceRegistrationRequest.js';
|
|
89
|
+
import { DeviceRegistrationsResponseFromJSON } from '../models/DeviceRegistrationsResponse.js';
|
|
89
90
|
import { EmailProviderResponseFromJSON } from '../models/EmailProviderResponse.js';
|
|
90
91
|
import { EmailVerificationCreateRequestToJSON } from '../models/EmailVerificationCreateRequest.js';
|
|
91
92
|
import { EmailVerificationCreateResponseFromJSON } from '../models/EmailVerificationCreateResponse.js';
|
|
@@ -155,6 +156,7 @@ import '../models/Network.js';
|
|
|
155
156
|
import { NetworkConfigurationResponseFromJSON } from '../models/NetworkConfigurationResponse.js';
|
|
156
157
|
import '../models/NextViewEnum.js';
|
|
157
158
|
import { NonceResponseFromJSON } from '../models/NonceResponse.js';
|
|
159
|
+
import { NoncesResponseFromJSON } from '../models/NoncesResponse.js';
|
|
158
160
|
import { OauthInitAuthRequestToJSON } from '../models/OauthInitAuthRequest.js';
|
|
159
161
|
import { OauthProviderLoginUrlFromJSON } from '../models/OauthProviderLoginUrl.js';
|
|
160
162
|
import { OauthRequestToJSON } from '../models/OauthRequest.js';
|
|
@@ -2063,6 +2065,81 @@ class SDKApi extends BaseAPI {
|
|
|
2063
2065
|
yield this.cryptoDotComPaymentOptionsRaw(requestParameters, initOverrides);
|
|
2064
2066
|
});
|
|
2065
2067
|
}
|
|
2068
|
+
/**
|
|
2069
|
+
* Soft-deletes all device registrations for the authenticated user in the given environment.
|
|
2070
|
+
* Delete all device registrations for authenticated user
|
|
2071
|
+
*/
|
|
2072
|
+
deleteAllDeviceRegistrationsRaw(requestParameters, initOverrides) {
|
|
2073
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2074
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2075
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteAllDeviceRegistrations.');
|
|
2076
|
+
}
|
|
2077
|
+
const queryParameters = {};
|
|
2078
|
+
const headerParameters = {};
|
|
2079
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2080
|
+
const token = this.configuration.accessToken;
|
|
2081
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2082
|
+
if (tokenString) {
|
|
2083
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
const response = yield this.request({
|
|
2087
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2088
|
+
method: 'DELETE',
|
|
2089
|
+
headers: headerParameters,
|
|
2090
|
+
query: queryParameters,
|
|
2091
|
+
}, initOverrides);
|
|
2092
|
+
return new VoidApiResponse(response);
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2095
|
+
/**
|
|
2096
|
+
* Soft-deletes all device registrations for the authenticated user in the given environment.
|
|
2097
|
+
* Delete all device registrations for authenticated user
|
|
2098
|
+
*/
|
|
2099
|
+
deleteAllDeviceRegistrations(requestParameters, initOverrides) {
|
|
2100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2101
|
+
yield this.deleteAllDeviceRegistrationsRaw(requestParameters, initOverrides);
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Soft-deletes a specific device registration by ID for the authenticated user.
|
|
2106
|
+
* Delete a specific device registration
|
|
2107
|
+
*/
|
|
2108
|
+
deleteDeviceRegistrationRaw(requestParameters, initOverrides) {
|
|
2109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2110
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2111
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteDeviceRegistration.');
|
|
2112
|
+
}
|
|
2113
|
+
if (requestParameters.deviceRegistrationId === null || requestParameters.deviceRegistrationId === undefined) {
|
|
2114
|
+
throw new RequiredError('deviceRegistrationId', 'Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deleteDeviceRegistration.');
|
|
2115
|
+
}
|
|
2116
|
+
const queryParameters = {};
|
|
2117
|
+
const headerParameters = {};
|
|
2118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2119
|
+
const token = this.configuration.accessToken;
|
|
2120
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2121
|
+
if (tokenString) {
|
|
2122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
const response = yield this.request({
|
|
2126
|
+
path: `/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"deviceRegistrationId"}}`, encodeURIComponent(String(requestParameters.deviceRegistrationId))),
|
|
2127
|
+
method: 'DELETE',
|
|
2128
|
+
headers: headerParameters,
|
|
2129
|
+
query: queryParameters,
|
|
2130
|
+
}, initOverrides);
|
|
2131
|
+
return new VoidApiResponse(response);
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Soft-deletes a specific device registration by ID for the authenticated user.
|
|
2136
|
+
* Delete a specific device registration
|
|
2137
|
+
*/
|
|
2138
|
+
deleteDeviceRegistration(requestParameters, initOverrides) {
|
|
2139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2140
|
+
yield this.deleteDeviceRegistrationRaw(requestParameters, initOverrides);
|
|
2141
|
+
});
|
|
2142
|
+
}
|
|
2066
2143
|
/**
|
|
2067
2144
|
* Deletes the embedded wallets for a user
|
|
2068
2145
|
* Delete embedded wallets for a user
|
|
@@ -2301,6 +2378,36 @@ class SDKApi extends BaseAPI {
|
|
|
2301
2378
|
return yield response.value();
|
|
2302
2379
|
});
|
|
2303
2380
|
}
|
|
2381
|
+
/**
|
|
2382
|
+
* Options call for this endpoint
|
|
2383
|
+
*/
|
|
2384
|
+
deviceRegistrationByIdOptionsRaw(requestParameters, initOverrides) {
|
|
2385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2386
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2387
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationByIdOptions.');
|
|
2388
|
+
}
|
|
2389
|
+
if (requestParameters.deviceRegistrationId === null || requestParameters.deviceRegistrationId === undefined) {
|
|
2390
|
+
throw new RequiredError('deviceRegistrationId', 'Required parameter requestParameters.deviceRegistrationId was null or undefined when calling deviceRegistrationByIdOptions.');
|
|
2391
|
+
}
|
|
2392
|
+
const queryParameters = {};
|
|
2393
|
+
const headerParameters = {};
|
|
2394
|
+
const response = yield this.request({
|
|
2395
|
+
path: `/sdk/{environmentId}/deviceRegistrations/{deviceRegistrationId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"deviceRegistrationId"}}`, encodeURIComponent(String(requestParameters.deviceRegistrationId))),
|
|
2396
|
+
method: 'OPTIONS',
|
|
2397
|
+
headers: headerParameters,
|
|
2398
|
+
query: queryParameters,
|
|
2399
|
+
}, initOverrides);
|
|
2400
|
+
return new VoidApiResponse(response);
|
|
2401
|
+
});
|
|
2402
|
+
}
|
|
2403
|
+
/**
|
|
2404
|
+
* Options call for this endpoint
|
|
2405
|
+
*/
|
|
2406
|
+
deviceRegistrationByIdOptions(requestParameters, initOverrides) {
|
|
2407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2408
|
+
yield this.deviceRegistrationByIdOptionsRaw(requestParameters, initOverrides);
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2304
2411
|
/**
|
|
2305
2412
|
* Options call for this endpoint
|
|
2306
2413
|
*/
|
|
@@ -2328,6 +2435,33 @@ class SDKApi extends BaseAPI {
|
|
|
2328
2435
|
yield this.deviceRegistrationOptionsRaw(requestParameters, initOverrides);
|
|
2329
2436
|
});
|
|
2330
2437
|
}
|
|
2438
|
+
/**
|
|
2439
|
+
* Options call for this endpoint
|
|
2440
|
+
*/
|
|
2441
|
+
deviceRegistrationsOptionsRaw(requestParameters, initOverrides) {
|
|
2442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2443
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2444
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deviceRegistrationsOptions.');
|
|
2445
|
+
}
|
|
2446
|
+
const queryParameters = {};
|
|
2447
|
+
const headerParameters = {};
|
|
2448
|
+
const response = yield this.request({
|
|
2449
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2450
|
+
method: 'OPTIONS',
|
|
2451
|
+
headers: headerParameters,
|
|
2452
|
+
query: queryParameters,
|
|
2453
|
+
}, initOverrides);
|
|
2454
|
+
return new VoidApiResponse(response);
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
/**
|
|
2458
|
+
* Options call for this endpoint
|
|
2459
|
+
*/
|
|
2460
|
+
deviceRegistrationsOptions(requestParameters, initOverrides) {
|
|
2461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2462
|
+
yield this.deviceRegistrationsOptionsRaw(requestParameters, initOverrides);
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2331
2465
|
/**
|
|
2332
2466
|
* Disconnects the specified global wallet connection.
|
|
2333
2467
|
* Disconnect a global wallet connection
|
|
@@ -4261,6 +4395,39 @@ class SDKApi extends BaseAPI {
|
|
|
4261
4395
|
return yield response.value();
|
|
4262
4396
|
});
|
|
4263
4397
|
}
|
|
4398
|
+
/**
|
|
4399
|
+
* Creates and returns multiple nonces for use in the wallet authentication flow. Maximum of 5 nonces per request.
|
|
4400
|
+
* Create multiple nonces for authentication flow
|
|
4401
|
+
*/
|
|
4402
|
+
getNoncesRaw(requestParameters, initOverrides) {
|
|
4403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4404
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4405
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getNonces.');
|
|
4406
|
+
}
|
|
4407
|
+
const queryParameters = {};
|
|
4408
|
+
if (requestParameters.count !== undefined) {
|
|
4409
|
+
queryParameters['count'] = requestParameters.count;
|
|
4410
|
+
}
|
|
4411
|
+
const headerParameters = {};
|
|
4412
|
+
const response = yield this.request({
|
|
4413
|
+
path: `/sdk/{environmentId}/nonces`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
4414
|
+
method: 'GET',
|
|
4415
|
+
headers: headerParameters,
|
|
4416
|
+
query: queryParameters,
|
|
4417
|
+
}, initOverrides);
|
|
4418
|
+
return new JSONApiResponse(response, (jsonValue) => NoncesResponseFromJSON(jsonValue));
|
|
4419
|
+
});
|
|
4420
|
+
}
|
|
4421
|
+
/**
|
|
4422
|
+
* Creates and returns multiple nonces for use in the wallet authentication flow. Maximum of 5 nonces per request.
|
|
4423
|
+
* Create multiple nonces for authentication flow
|
|
4424
|
+
*/
|
|
4425
|
+
getNonces(requestParameters, initOverrides) {
|
|
4426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4427
|
+
const response = yield this.getNoncesRaw(requestParameters, initOverrides);
|
|
4428
|
+
return yield response.value();
|
|
4429
|
+
});
|
|
4430
|
+
}
|
|
4264
4431
|
/**
|
|
4265
4432
|
* Returns the WebAuthn authentication options for passkey verification.
|
|
4266
4433
|
* Get passkey authentication options
|
|
@@ -5468,6 +5635,43 @@ class SDKApi extends BaseAPI {
|
|
|
5468
5635
|
return yield response.value();
|
|
5469
5636
|
});
|
|
5470
5637
|
}
|
|
5638
|
+
/**
|
|
5639
|
+
* Returns all active (non-deleted) device registrations for the authenticated user in the given environment.
|
|
5640
|
+
* List registered devices for authenticated user
|
|
5641
|
+
*/
|
|
5642
|
+
listDeviceRegistrationsRaw(requestParameters, initOverrides) {
|
|
5643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5644
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5645
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling listDeviceRegistrations.');
|
|
5646
|
+
}
|
|
5647
|
+
const queryParameters = {};
|
|
5648
|
+
const headerParameters = {};
|
|
5649
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5650
|
+
const token = this.configuration.accessToken;
|
|
5651
|
+
const tokenString = yield token("bearerAuth", []);
|
|
5652
|
+
if (tokenString) {
|
|
5653
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5654
|
+
}
|
|
5655
|
+
}
|
|
5656
|
+
const response = yield this.request({
|
|
5657
|
+
path: `/sdk/{environmentId}/deviceRegistrations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5658
|
+
method: 'GET',
|
|
5659
|
+
headers: headerParameters,
|
|
5660
|
+
query: queryParameters,
|
|
5661
|
+
}, initOverrides);
|
|
5662
|
+
return new JSONApiResponse(response, (jsonValue) => DeviceRegistrationsResponseFromJSON(jsonValue));
|
|
5663
|
+
});
|
|
5664
|
+
}
|
|
5665
|
+
/**
|
|
5666
|
+
* Returns all active (non-deleted) device registrations for the authenticated user in the given environment.
|
|
5667
|
+
* List registered devices for authenticated user
|
|
5668
|
+
*/
|
|
5669
|
+
listDeviceRegistrations(requestParameters, initOverrides) {
|
|
5670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5671
|
+
const response = yield this.listDeviceRegistrationsRaw(requestParameters, initOverrides);
|
|
5672
|
+
return yield response.value();
|
|
5673
|
+
});
|
|
5674
|
+
}
|
|
5471
5675
|
/**
|
|
5472
5676
|
* Options call for this endpoint
|
|
5473
5677
|
*/
|
|
@@ -5677,6 +5881,33 @@ class SDKApi extends BaseAPI {
|
|
|
5677
5881
|
yield this.nonceOptionsRaw(requestParameters, initOverrides);
|
|
5678
5882
|
});
|
|
5679
5883
|
}
|
|
5884
|
+
/**
|
|
5885
|
+
* Options call for this endpoint
|
|
5886
|
+
*/
|
|
5887
|
+
noncesOptionsRaw(requestParameters, initOverrides) {
|
|
5888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5889
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5890
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling noncesOptions.');
|
|
5891
|
+
}
|
|
5892
|
+
const queryParameters = {};
|
|
5893
|
+
const headerParameters = {};
|
|
5894
|
+
const response = yield this.request({
|
|
5895
|
+
path: `/sdk/{environmentId}/nonces`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5896
|
+
method: 'OPTIONS',
|
|
5897
|
+
headers: headerParameters,
|
|
5898
|
+
query: queryParameters,
|
|
5899
|
+
}, initOverrides);
|
|
5900
|
+
return new VoidApiResponse(response);
|
|
5901
|
+
});
|
|
5902
|
+
}
|
|
5903
|
+
/**
|
|
5904
|
+
* Options call for this endpoint
|
|
5905
|
+
*/
|
|
5906
|
+
noncesOptions(requestParameters, initOverrides) {
|
|
5907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5908
|
+
yield this.noncesOptionsRaw(requestParameters, initOverrides);
|
|
5909
|
+
});
|
|
5910
|
+
}
|
|
5680
5911
|
/**
|
|
5681
5912
|
* Endpoint where an oauth provider would return authorization HTML used for mobile-friendly login, such as Apple ID with Touch ID on enabled devices.
|
|
5682
5913
|
* Get OAuth provider authorization HTML
|
package/src/index.cjs
CHANGED
|
@@ -114,14 +114,19 @@ var ChainalysisCheckResultEnum = require('./models/ChainalysisCheckResultEnum.cj
|
|
|
114
114
|
var ChainalysisConfiguration = require('./models/ChainalysisConfiguration.cjs');
|
|
115
115
|
var Checkout = require('./models/Checkout.cjs');
|
|
116
116
|
var CheckoutCreateRequest = require('./models/CheckoutCreateRequest.cjs');
|
|
117
|
+
var CheckoutEvmApprovalData = require('./models/CheckoutEvmApprovalData.cjs');
|
|
118
|
+
var CheckoutEvmTransactionData = require('./models/CheckoutEvmTransactionData.cjs');
|
|
117
119
|
var CheckoutExecutionStateEnum = require('./models/CheckoutExecutionStateEnum.cjs');
|
|
118
120
|
var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
119
121
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
120
122
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
123
|
+
var CheckoutPsbtTransactionData = require('./models/CheckoutPsbtTransactionData.cjs');
|
|
121
124
|
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
122
125
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
126
|
+
var CheckoutSerializedTransactionData = require('./models/CheckoutSerializedTransactionData.cjs');
|
|
123
127
|
var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
|
|
124
128
|
var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
|
|
129
|
+
var CheckoutSigningPayload = require('./models/CheckoutSigningPayload.cjs');
|
|
125
130
|
var CheckoutSourceTypeEnum = require('./models/CheckoutSourceTypeEnum.cjs');
|
|
126
131
|
var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
127
132
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
@@ -202,6 +207,8 @@ var DepositAmountsConfigInput = require('./models/DepositAmountsConfigInput.cjs'
|
|
|
202
207
|
var DestinationConfigInput = require('./models/DestinationConfigInput.cjs');
|
|
203
208
|
var DestinationTypeEnum = require('./models/DestinationTypeEnum.cjs');
|
|
204
209
|
var DeviceRegistrationRequest = require('./models/DeviceRegistrationRequest.cjs');
|
|
210
|
+
var DeviceRegistrationResponse = require('./models/DeviceRegistrationResponse.cjs');
|
|
211
|
+
var DeviceRegistrationsResponse = require('./models/DeviceRegistrationsResponse.cjs');
|
|
205
212
|
var DnsRecordType = require('./models/DnsRecordType.cjs');
|
|
206
213
|
var Duration = require('./models/Duration.cjs');
|
|
207
214
|
var DynamicJwt = require('./models/DynamicJwt.cjs');
|
|
@@ -381,6 +388,7 @@ var NetworkConfigurationResponse = require('./models/NetworkConfigurationRespons
|
|
|
381
388
|
var NextJsSettings = require('./models/NextJsSettings.cjs');
|
|
382
389
|
var NextViewEnum = require('./models/NextViewEnum.cjs');
|
|
383
390
|
var NonceResponse = require('./models/NonceResponse.cjs');
|
|
391
|
+
var NoncesResponse = require('./models/NoncesResponse.cjs');
|
|
384
392
|
var NotFound = require('./models/NotFound.cjs');
|
|
385
393
|
var OAuthAccount = require('./models/OAuthAccount.cjs');
|
|
386
394
|
var OauthInitAuthRequest = require('./models/OauthInitAuthRequest.cjs');
|
|
@@ -989,6 +997,12 @@ exports.CheckoutToJSON = Checkout.CheckoutToJSON;
|
|
|
989
997
|
exports.CheckoutCreateRequestFromJSON = CheckoutCreateRequest.CheckoutCreateRequestFromJSON;
|
|
990
998
|
exports.CheckoutCreateRequestFromJSONTyped = CheckoutCreateRequest.CheckoutCreateRequestFromJSONTyped;
|
|
991
999
|
exports.CheckoutCreateRequestToJSON = CheckoutCreateRequest.CheckoutCreateRequestToJSON;
|
|
1000
|
+
exports.CheckoutEvmApprovalDataFromJSON = CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSON;
|
|
1001
|
+
exports.CheckoutEvmApprovalDataFromJSONTyped = CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSONTyped;
|
|
1002
|
+
exports.CheckoutEvmApprovalDataToJSON = CheckoutEvmApprovalData.CheckoutEvmApprovalDataToJSON;
|
|
1003
|
+
exports.CheckoutEvmTransactionDataFromJSON = CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSON;
|
|
1004
|
+
exports.CheckoutEvmTransactionDataFromJSONTyped = CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSONTyped;
|
|
1005
|
+
exports.CheckoutEvmTransactionDataToJSON = CheckoutEvmTransactionData.CheckoutEvmTransactionDataToJSON;
|
|
992
1006
|
Object.defineProperty(exports, 'CheckoutExecutionStateEnum', {
|
|
993
1007
|
enumerable: true,
|
|
994
1008
|
get: function () { return CheckoutExecutionStateEnum.CheckoutExecutionStateEnum; }
|
|
@@ -1009,6 +1023,9 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
|
1009
1023
|
exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
|
|
1010
1024
|
exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
|
|
1011
1025
|
exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
|
|
1026
|
+
exports.CheckoutPsbtTransactionDataFromJSON = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSON;
|
|
1027
|
+
exports.CheckoutPsbtTransactionDataFromJSONTyped = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSONTyped;
|
|
1028
|
+
exports.CheckoutPsbtTransactionDataToJSON = CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataToJSON;
|
|
1012
1029
|
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
|
|
1013
1030
|
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
|
|
1014
1031
|
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
|
|
@@ -1019,6 +1036,9 @@ Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
|
|
|
1019
1036
|
exports.CheckoutRiskStateEnumFromJSON = CheckoutRiskStateEnum.CheckoutRiskStateEnumFromJSON;
|
|
1020
1037
|
exports.CheckoutRiskStateEnumFromJSONTyped = CheckoutRiskStateEnum.CheckoutRiskStateEnumFromJSONTyped;
|
|
1021
1038
|
exports.CheckoutRiskStateEnumToJSON = CheckoutRiskStateEnum.CheckoutRiskStateEnumToJSON;
|
|
1039
|
+
exports.CheckoutSerializedTransactionDataFromJSON = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSON;
|
|
1040
|
+
exports.CheckoutSerializedTransactionDataFromJSONTyped = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSONTyped;
|
|
1041
|
+
exports.CheckoutSerializedTransactionDataToJSON = CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataToJSON;
|
|
1022
1042
|
exports.CheckoutSettlementDataFromJSON = CheckoutSettlementData.CheckoutSettlementDataFromJSON;
|
|
1023
1043
|
exports.CheckoutSettlementDataFromJSONTyped = CheckoutSettlementData.CheckoutSettlementDataFromJSONTyped;
|
|
1024
1044
|
exports.CheckoutSettlementDataToJSON = CheckoutSettlementData.CheckoutSettlementDataToJSON;
|
|
@@ -1029,6 +1049,9 @@ Object.defineProperty(exports, 'CheckoutSettlementStateEnum', {
|
|
|
1029
1049
|
exports.CheckoutSettlementStateEnumFromJSON = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumFromJSON;
|
|
1030
1050
|
exports.CheckoutSettlementStateEnumFromJSONTyped = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumFromJSONTyped;
|
|
1031
1051
|
exports.CheckoutSettlementStateEnumToJSON = CheckoutSettlementStateEnum.CheckoutSettlementStateEnumToJSON;
|
|
1052
|
+
exports.CheckoutSigningPayloadFromJSON = CheckoutSigningPayload.CheckoutSigningPayloadFromJSON;
|
|
1053
|
+
exports.CheckoutSigningPayloadFromJSONTyped = CheckoutSigningPayload.CheckoutSigningPayloadFromJSONTyped;
|
|
1054
|
+
exports.CheckoutSigningPayloadToJSON = CheckoutSigningPayload.CheckoutSigningPayloadToJSON;
|
|
1032
1055
|
Object.defineProperty(exports, 'CheckoutSourceTypeEnum', {
|
|
1033
1056
|
enumerable: true,
|
|
1034
1057
|
get: function () { return CheckoutSourceTypeEnum.CheckoutSourceTypeEnum; }
|
|
@@ -1329,6 +1352,12 @@ exports.DestinationTypeEnumToJSON = DestinationTypeEnum.DestinationTypeEnumToJSO
|
|
|
1329
1352
|
exports.DeviceRegistrationRequestFromJSON = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSON;
|
|
1330
1353
|
exports.DeviceRegistrationRequestFromJSONTyped = DeviceRegistrationRequest.DeviceRegistrationRequestFromJSONTyped;
|
|
1331
1354
|
exports.DeviceRegistrationRequestToJSON = DeviceRegistrationRequest.DeviceRegistrationRequestToJSON;
|
|
1355
|
+
exports.DeviceRegistrationResponseFromJSON = DeviceRegistrationResponse.DeviceRegistrationResponseFromJSON;
|
|
1356
|
+
exports.DeviceRegistrationResponseFromJSONTyped = DeviceRegistrationResponse.DeviceRegistrationResponseFromJSONTyped;
|
|
1357
|
+
exports.DeviceRegistrationResponseToJSON = DeviceRegistrationResponse.DeviceRegistrationResponseToJSON;
|
|
1358
|
+
exports.DeviceRegistrationsResponseFromJSON = DeviceRegistrationsResponse.DeviceRegistrationsResponseFromJSON;
|
|
1359
|
+
exports.DeviceRegistrationsResponseFromJSONTyped = DeviceRegistrationsResponse.DeviceRegistrationsResponseFromJSONTyped;
|
|
1360
|
+
exports.DeviceRegistrationsResponseToJSON = DeviceRegistrationsResponse.DeviceRegistrationsResponseToJSON;
|
|
1332
1361
|
Object.defineProperty(exports, 'DnsRecordType', {
|
|
1333
1362
|
enumerable: true,
|
|
1334
1363
|
get: function () { return DnsRecordType.DnsRecordType; }
|
|
@@ -1974,6 +2003,9 @@ exports.NextViewEnumToJSON = NextViewEnum.NextViewEnumToJSON;
|
|
|
1974
2003
|
exports.NonceResponseFromJSON = NonceResponse.NonceResponseFromJSON;
|
|
1975
2004
|
exports.NonceResponseFromJSONTyped = NonceResponse.NonceResponseFromJSONTyped;
|
|
1976
2005
|
exports.NonceResponseToJSON = NonceResponse.NonceResponseToJSON;
|
|
2006
|
+
exports.NoncesResponseFromJSON = NoncesResponse.NoncesResponseFromJSON;
|
|
2007
|
+
exports.NoncesResponseFromJSONTyped = NoncesResponse.NoncesResponseFromJSONTyped;
|
|
2008
|
+
exports.NoncesResponseToJSON = NoncesResponse.NoncesResponseToJSON;
|
|
1977
2009
|
exports.NotFoundFromJSON = NotFound.NotFoundFromJSON;
|
|
1978
2010
|
exports.NotFoundFromJSONTyped = NotFound.NotFoundFromJSONTyped;
|
|
1979
2011
|
exports.NotFoundToJSON = NotFound.NotFoundToJSON;
|
package/src/index.js
CHANGED
|
@@ -110,14 +110,19 @@ export { ChainalysisCheckResultEnum, ChainalysisCheckResultEnumFromJSON, Chainal
|
|
|
110
110
|
export { ChainalysisConfigurationFromJSON, ChainalysisConfigurationFromJSONTyped, ChainalysisConfigurationToJSON } from './models/ChainalysisConfiguration.js';
|
|
111
111
|
export { CheckoutFromJSON, CheckoutFromJSONTyped, CheckoutToJSON } from './models/Checkout.js';
|
|
112
112
|
export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, CheckoutCreateRequestToJSON } from './models/CheckoutCreateRequest.js';
|
|
113
|
+
export { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataFromJSONTyped, CheckoutEvmApprovalDataToJSON } from './models/CheckoutEvmApprovalData.js';
|
|
114
|
+
export { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataFromJSONTyped, CheckoutEvmTransactionDataToJSON } from './models/CheckoutEvmTransactionData.js';
|
|
113
115
|
export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
|
|
114
116
|
export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
|
|
115
117
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
116
118
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
119
|
+
export { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataFromJSONTyped, CheckoutPsbtTransactionDataToJSON } from './models/CheckoutPsbtTransactionData.js';
|
|
117
120
|
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
118
121
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
122
|
+
export { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataFromJSONTyped, CheckoutSerializedTransactionDataToJSON } from './models/CheckoutSerializedTransactionData.js';
|
|
119
123
|
export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
|
|
120
124
|
export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
|
|
125
|
+
export { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadFromJSONTyped, CheckoutSigningPayloadToJSON } from './models/CheckoutSigningPayload.js';
|
|
121
126
|
export { CheckoutSourceTypeEnum, CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumFromJSONTyped, CheckoutSourceTypeEnumToJSON } from './models/CheckoutSourceTypeEnum.js';
|
|
122
127
|
export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, CheckoutTransactionToJSON } from './models/CheckoutTransaction.js';
|
|
123
128
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
@@ -198,6 +203,8 @@ export { DepositAmountsConfigInputFromJSON, DepositAmountsConfigInputFromJSONTyp
|
|
|
198
203
|
export { DestinationConfigInputFromJSON, DestinationConfigInputFromJSONTyped, DestinationConfigInputToJSON } from './models/DestinationConfigInput.js';
|
|
199
204
|
export { DestinationTypeEnum, DestinationTypeEnumFromJSON, DestinationTypeEnumFromJSONTyped, DestinationTypeEnumToJSON } from './models/DestinationTypeEnum.js';
|
|
200
205
|
export { DeviceRegistrationRequestFromJSON, DeviceRegistrationRequestFromJSONTyped, DeviceRegistrationRequestToJSON } from './models/DeviceRegistrationRequest.js';
|
|
206
|
+
export { DeviceRegistrationResponseFromJSON, DeviceRegistrationResponseFromJSONTyped, DeviceRegistrationResponseToJSON } from './models/DeviceRegistrationResponse.js';
|
|
207
|
+
export { DeviceRegistrationsResponseFromJSON, DeviceRegistrationsResponseFromJSONTyped, DeviceRegistrationsResponseToJSON } from './models/DeviceRegistrationsResponse.js';
|
|
201
208
|
export { DnsRecordType, DnsRecordTypeFromJSON, DnsRecordTypeFromJSONTyped, DnsRecordTypeToJSON } from './models/DnsRecordType.js';
|
|
202
209
|
export { DurationFromJSON, DurationFromJSONTyped, DurationToJSON } from './models/Duration.js';
|
|
203
210
|
export { DynamicJwtFromJSON, DynamicJwtFromJSONTyped, DynamicJwtToJSON } from './models/DynamicJwt.js';
|
|
@@ -377,6 +384,7 @@ export { NetworkConfigurationResponseFromJSON, NetworkConfigurationResponseFromJ
|
|
|
377
384
|
export { NextJsSettingsFromJSON, NextJsSettingsFromJSONTyped, NextJsSettingsToJSON } from './models/NextJsSettings.js';
|
|
378
385
|
export { NextViewEnum, NextViewEnumFromJSON, NextViewEnumFromJSONTyped, NextViewEnumToJSON } from './models/NextViewEnum.js';
|
|
379
386
|
export { NonceResponseFromJSON, NonceResponseFromJSONTyped, NonceResponseToJSON } from './models/NonceResponse.js';
|
|
387
|
+
export { NoncesResponseFromJSON, NoncesResponseFromJSONTyped, NoncesResponseToJSON } from './models/NoncesResponse.js';
|
|
380
388
|
export { NotFoundFromJSON, NotFoundFromJSONTyped, NotFoundToJSON } from './models/NotFound.js';
|
|
381
389
|
export { OAuthAccountFromJSON, OAuthAccountFromJSONTyped, OAuthAccountToJSON } from './models/OAuthAccount.js';
|
|
382
390
|
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;
|