@dynamic-labs/sdk-api 0.0.897 → 0.0.899
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/WalletsApi.cjs +8 -8
- package/src/apis/WalletsApi.d.ts +8 -8
- package/src/apis/WalletsApi.js +8 -8
- package/src/index.cjs +4 -0
- package/src/index.js +1 -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/CheckoutTransactionDestinationAddress.cjs +35 -0
- package/src/models/CheckoutTransactionDestinationAddress.d.ts +34 -0
- package/src/models/CheckoutTransactionDestinationAddress.js +29 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/WalletsApi.cjs
CHANGED
|
@@ -120,8 +120,8 @@ var WalletsResponse = require('../models/WalletsResponse.cjs');
|
|
|
120
120
|
*/
|
|
121
121
|
class WalletsApi extends runtime.BaseAPI {
|
|
122
122
|
/**
|
|
123
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
124
|
-
*
|
|
123
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
124
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
125
125
|
*/
|
|
126
126
|
createEmbeddedWalletRaw(requestParameters, initOverrides) {
|
|
127
127
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -152,8 +152,8 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
156
|
-
*
|
|
155
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
156
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
157
157
|
*/
|
|
158
158
|
createEmbeddedWallet(requestParameters, initOverrides) {
|
|
159
159
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -204,8 +204,8 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
207
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
208
|
-
*
|
|
207
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
208
|
+
* Creates a new wallet for the user
|
|
209
209
|
*/
|
|
210
210
|
createWalletRaw(requestParameters, initOverrides) {
|
|
211
211
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -239,8 +239,8 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
243
|
-
*
|
|
242
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
243
|
+
* Creates a new wallet for the user
|
|
244
244
|
*/
|
|
245
245
|
createWallet(requestParameters, initOverrides) {
|
|
246
246
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
package/src/apis/WalletsApi.d.ts
CHANGED
|
@@ -66,13 +66,13 @@ export interface RecoverDeletedWalletsWithEnvironmentRequest {
|
|
|
66
66
|
*/
|
|
67
67
|
export declare class WalletsApi extends runtime.BaseAPI {
|
|
68
68
|
/**
|
|
69
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
70
|
-
*
|
|
69
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
70
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
71
71
|
*/
|
|
72
72
|
createEmbeddedWalletRaw(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserResponse>>;
|
|
73
73
|
/**
|
|
74
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
75
|
-
*
|
|
74
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
75
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
76
76
|
*/
|
|
77
77
|
createEmbeddedWallet(requestParameters: CreateEmbeddedWalletRequest, initOverrides?: RequestInit): Promise<UserResponse>;
|
|
78
78
|
/**
|
|
@@ -86,13 +86,13 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
86
86
|
*/
|
|
87
87
|
createEmbeddedWalletFromFarcaster(requestParameters: CreateEmbeddedWalletFromFarcasterRequest, initOverrides?: RequestInit): Promise<UserResponse>;
|
|
88
88
|
/**
|
|
89
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
90
|
-
*
|
|
89
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
90
|
+
* Creates a new wallet for the user
|
|
91
91
|
*/
|
|
92
92
|
createWalletRaw(requestParameters: CreateWalletOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Wallet>>;
|
|
93
93
|
/**
|
|
94
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
95
|
-
*
|
|
94
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
95
|
+
* Creates a new wallet for the user
|
|
96
96
|
*/
|
|
97
97
|
createWallet(requestParameters: CreateWalletOperationRequest, initOverrides?: RequestInit): Promise<Wallet>;
|
|
98
98
|
/**
|
package/src/apis/WalletsApi.js
CHANGED
|
@@ -116,8 +116,8 @@ import { WalletsResponseFromJSON } from '../models/WalletsResponse.js';
|
|
|
116
116
|
*/
|
|
117
117
|
class WalletsApi extends BaseAPI {
|
|
118
118
|
/**
|
|
119
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
120
|
-
*
|
|
119
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
120
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
121
121
|
*/
|
|
122
122
|
createEmbeddedWalletRaw(requestParameters, initOverrides) {
|
|
123
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -148,8 +148,8 @@ class WalletsApi extends BaseAPI {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
|
-
* Creates a new embedded wallet for a user given an email or userId. If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
152
|
-
*
|
|
151
|
+
* Deprecated. Creates a new embedded wallet for a user given an email or userId (V2/Turnkey only). If an email is provided and it is not associated with an existing user this call will also create a new user.
|
|
152
|
+
* Creates a new embedded wallet for a user given an identifier (deprecated)
|
|
153
153
|
*/
|
|
154
154
|
createEmbeddedWallet(requestParameters, initOverrides) {
|
|
155
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -200,8 +200,8 @@ class WalletsApi extends BaseAPI {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
204
|
-
*
|
|
203
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
204
|
+
* Creates a new wallet for the user
|
|
205
205
|
*/
|
|
206
206
|
createWalletRaw(requestParameters, initOverrides) {
|
|
207
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -235,8 +235,8 @@ class WalletsApi extends BaseAPI {
|
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
|
-
* Creates a new wallet for the user. Note that this API is not meant for creating embedded wallets
|
|
239
|
-
*
|
|
238
|
+
* Creates a new wallet for the user. Note that if the user already has an embedded wallet linked, this call will fail. This API is not meant for creating embedded wallets; use the /embeddedWallets endpoint for that.
|
|
239
|
+
* Creates a new wallet for the user
|
|
240
240
|
*/
|
|
241
241
|
createWallet(requestParameters, initOverrides) {
|
|
242
242
|
return __awaiter(this, void 0, void 0, function* () {
|
package/src/index.cjs
CHANGED
|
@@ -133,6 +133,7 @@ var CheckoutSourceTypeEnum = require('./models/CheckoutSourceTypeEnum.cjs');
|
|
|
133
133
|
var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
134
134
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
135
135
|
var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
|
|
136
|
+
var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
|
|
136
137
|
var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
|
|
137
138
|
var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
|
|
138
139
|
var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
|
|
@@ -1077,6 +1078,9 @@ exports.CheckoutTransactionCreateRequestToJSON = CheckoutTransactionCreateReques
|
|
|
1077
1078
|
exports.CheckoutTransactionCreateResponseFromJSON = CheckoutTransactionCreateResponse.CheckoutTransactionCreateResponseFromJSON;
|
|
1078
1079
|
exports.CheckoutTransactionCreateResponseFromJSONTyped = CheckoutTransactionCreateResponse.CheckoutTransactionCreateResponseFromJSONTyped;
|
|
1079
1080
|
exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateResponse.CheckoutTransactionCreateResponseToJSON;
|
|
1081
|
+
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
|
|
1082
|
+
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
1083
|
+
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
|
|
1080
1084
|
exports.CheckoutUpdateRequestFromJSON = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSON;
|
|
1081
1085
|
exports.CheckoutUpdateRequestFromJSONTyped = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSONTyped;
|
|
1082
1086
|
exports.CheckoutUpdateRequestToJSON = CheckoutUpdateRequest.CheckoutUpdateRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -129,6 +129,7 @@ export { CheckoutSourceTypeEnum, CheckoutSourceTypeEnumFromJSON, CheckoutSourceT
|
|
|
129
129
|
export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, CheckoutTransactionToJSON } from './models/CheckoutTransaction.js';
|
|
130
130
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
131
131
|
export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
|
|
132
|
+
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
|
|
132
133
|
export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
|
|
133
134
|
export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
|
|
134
135
|
export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
|
|
@@ -12,6 +12,7 @@ var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
|
|
|
12
12
|
var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
|
|
13
13
|
var CheckoutSigningPayload = require('./CheckoutSigningPayload.cjs');
|
|
14
14
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
15
|
+
var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
|
|
15
16
|
|
|
16
17
|
/* tslint:disable */
|
|
17
18
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -28,6 +29,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
29
30
|
'amount': json['amount'],
|
|
30
31
|
'currency': json['currency'],
|
|
32
|
+
'destinationAddresses': !runtime.exists(json, 'destinationAddresses') ? undefined : (json['destinationAddresses'].map(CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON)),
|
|
31
33
|
'executionState': CheckoutExecutionStateEnum.CheckoutExecutionStateEnumFromJSON(json['executionState']),
|
|
32
34
|
'settlementState': CheckoutSettlementStateEnum.CheckoutSettlementStateEnumFromJSON(json['settlementState']),
|
|
33
35
|
'riskState': CheckoutRiskStateEnum.CheckoutRiskStateEnumFromJSON(json['riskState']),
|
|
@@ -71,6 +73,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
71
73
|
'userId': value.userId,
|
|
72
74
|
'amount': value.amount,
|
|
73
75
|
'currency': value.currency,
|
|
76
|
+
'destinationAddresses': value.destinationAddresses === undefined ? undefined : (value.destinationAddresses.map(CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON)),
|
|
74
77
|
'executionState': CheckoutExecutionStateEnum.CheckoutExecutionStateEnumToJSON(value.executionState),
|
|
75
78
|
'settlementState': CheckoutSettlementStateEnum.CheckoutSettlementStateEnumToJSON(value.settlementState),
|
|
76
79
|
'riskState': CheckoutRiskStateEnum.CheckoutRiskStateEnumToJSON(value.riskState),
|
|
@@ -18,6 +18,7 @@ import { CheckoutSettlementData } from './CheckoutSettlementData';
|
|
|
18
18
|
import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
|
|
19
19
|
import { CheckoutSigningPayload } from './CheckoutSigningPayload';
|
|
20
20
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
21
|
+
import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
@@ -60,6 +61,12 @@ export interface CheckoutTransaction {
|
|
|
60
61
|
* @memberof CheckoutTransaction
|
|
61
62
|
*/
|
|
62
63
|
currency: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<CheckoutTransactionDestinationAddress>}
|
|
67
|
+
* @memberof CheckoutTransaction
|
|
68
|
+
*/
|
|
69
|
+
destinationAddresses?: Array<CheckoutTransactionDestinationAddress>;
|
|
63
70
|
/**
|
|
64
71
|
*
|
|
65
72
|
* @type {CheckoutExecutionStateEnum}
|
|
@@ -8,6 +8,7 @@ import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './
|
|
|
8
8
|
import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
|
|
9
9
|
import { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadToJSON } from './CheckoutSigningPayload.js';
|
|
10
10
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
11
|
+
import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
|
|
11
12
|
|
|
12
13
|
/* tslint:disable */
|
|
13
14
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -24,6 +25,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
25
26
|
'amount': json['amount'],
|
|
26
27
|
'currency': json['currency'],
|
|
28
|
+
'destinationAddresses': !exists(json, 'destinationAddresses') ? undefined : (json['destinationAddresses'].map(CheckoutTransactionDestinationAddressFromJSON)),
|
|
27
29
|
'executionState': CheckoutExecutionStateEnumFromJSON(json['executionState']),
|
|
28
30
|
'settlementState': CheckoutSettlementStateEnumFromJSON(json['settlementState']),
|
|
29
31
|
'riskState': CheckoutRiskStateEnumFromJSON(json['riskState']),
|
|
@@ -67,6 +69,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
67
69
|
'userId': value.userId,
|
|
68
70
|
'amount': value.amount,
|
|
69
71
|
'currency': value.currency,
|
|
72
|
+
'destinationAddresses': value.destinationAddresses === undefined ? undefined : (value.destinationAddresses.map(CheckoutTransactionDestinationAddressToJSON)),
|
|
70
73
|
'executionState': CheckoutExecutionStateEnumToJSON(value.executionState),
|
|
71
74
|
'settlementState': CheckoutSettlementStateEnumToJSON(value.settlementState),
|
|
72
75
|
'riskState': CheckoutRiskStateEnumToJSON(value.riskState),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CheckoutTransactionDestinationAddressFromJSON(json) {
|
|
9
|
+
return CheckoutTransactionDestinationAddressFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CheckoutTransactionDestinationAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'address': json['address'],
|
|
17
|
+
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function CheckoutTransactionDestinationAddressToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'address': value.address,
|
|
29
|
+
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddressFromJSON;
|
|
34
|
+
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
35
|
+
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddressToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CheckoutTransactionDestinationAddress
|
|
17
|
+
*/
|
|
18
|
+
export interface CheckoutTransactionDestinationAddress {
|
|
19
|
+
/**
|
|
20
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CheckoutTransactionDestinationAddress
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ChainEnum}
|
|
28
|
+
* @memberof CheckoutTransactionDestinationAddress
|
|
29
|
+
*/
|
|
30
|
+
chainName: ChainEnum;
|
|
31
|
+
}
|
|
32
|
+
export declare function CheckoutTransactionDestinationAddressFromJSON(json: any): CheckoutTransactionDestinationAddress;
|
|
33
|
+
export declare function CheckoutTransactionDestinationAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionDestinationAddress;
|
|
34
|
+
export declare function CheckoutTransactionDestinationAddressToJSON(value?: CheckoutTransactionDestinationAddress | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CheckoutTransactionDestinationAddressFromJSON(json) {
|
|
5
|
+
return CheckoutTransactionDestinationAddressFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CheckoutTransactionDestinationAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'address': json['address'],
|
|
13
|
+
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function CheckoutTransactionDestinationAddressToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'address': value.address,
|
|
25
|
+
'chainName': ChainEnumToJSON(value.chainName),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export * from './CheckoutSourceTypeEnum';
|
|
|
90
90
|
export * from './CheckoutTransaction';
|
|
91
91
|
export * from './CheckoutTransactionCreateRequest';
|
|
92
92
|
export * from './CheckoutTransactionCreateResponse';
|
|
93
|
+
export * from './CheckoutTransactionDestinationAddress';
|
|
93
94
|
export * from './CheckoutUpdateRequest';
|
|
94
95
|
export * from './CheckoutsResponse';
|
|
95
96
|
export * from './CoinbaseMpcWalletProperties';
|