@dynamic-labs/sdk-api 0.0.827 → 0.0.829
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/AllowlistsApi.cjs +4 -0
- package/src/apis/AllowlistsApi.js +4 -0
- package/src/apis/AnalyticsApi.cjs +4 -0
- package/src/apis/AnalyticsApi.js +4 -0
- package/src/apis/ChainalysisApi.cjs +4 -0
- package/src/apis/ChainalysisApi.js +4 -0
- package/src/apis/ChainsApi.cjs +4 -0
- package/src/apis/ChainsApi.js +4 -0
- package/src/apis/CustomFieldsApi.cjs +4 -0
- package/src/apis/CustomFieldsApi.js +4 -0
- package/src/apis/CustomHostnamesApi.cjs +4 -0
- package/src/apis/CustomHostnamesApi.js +4 -0
- package/src/apis/CustomNetworksApi.cjs +4 -0
- package/src/apis/CustomNetworksApi.js +4 -0
- package/src/apis/DeeplinkUrlsApi.cjs +4 -0
- package/src/apis/DeeplinkUrlsApi.js +4 -0
- package/src/apis/EnvironmentsApi.cjs +4 -0
- package/src/apis/EnvironmentsApi.js +4 -0
- package/src/apis/EventsApi.cjs +4 -0
- package/src/apis/EventsApi.js +4 -0
- package/src/apis/ExportsApi.cjs +4 -0
- package/src/apis/ExportsApi.js +4 -0
- package/src/apis/ExternalJwtApi.cjs +4 -0
- package/src/apis/ExternalJwtApi.js +4 -0
- package/src/apis/GatesApi.cjs +4 -0
- package/src/apis/GatesApi.js +4 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +4 -0
- package/src/apis/GlobalWalletAccessControlApi.js +4 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +4 -0
- package/src/apis/GlobalWalletConnectionsApi.js +4 -0
- package/src/apis/GlobalWalletsApi.cjs +4 -0
- package/src/apis/GlobalWalletsApi.js +4 -0
- package/src/apis/InvitesApi.cjs +4 -0
- package/src/apis/InvitesApi.js +4 -0
- package/src/apis/MembersApi.cjs +4 -0
- package/src/apis/MembersApi.js +4 -0
- package/src/apis/MfaSettingsApi.cjs +4 -0
- package/src/apis/MfaSettingsApi.js +4 -0
- package/src/apis/NameServicesApi.cjs +4 -0
- package/src/apis/NameServicesApi.js +4 -0
- package/src/apis/OrganizationsApi.cjs +4 -0
- package/src/apis/OrganizationsApi.js +4 -0
- package/src/apis/OriginsApi.cjs +4 -0
- package/src/apis/OriginsApi.js +4 -0
- package/src/apis/ProjectsApi.cjs +4 -0
- package/src/apis/ProjectsApi.js +4 -0
- package/src/apis/SDKApi.cjs +4 -0
- package/src/apis/SDKApi.js +4 -0
- package/src/apis/SDKViewsApi.cjs +4 -0
- package/src/apis/SDKViewsApi.js +4 -0
- package/src/apis/SessionsApi.cjs +4 -0
- package/src/apis/SessionsApi.js +4 -0
- package/src/apis/SettingsApi.cjs +4 -0
- package/src/apis/SettingsApi.js +4 -0
- package/src/apis/TestAccountApi.cjs +4 -0
- package/src/apis/TestAccountApi.js +4 -0
- package/src/apis/TokensApi.cjs +4 -0
- package/src/apis/TokensApi.js +4 -0
- package/src/apis/UserApiTokensApi.cjs +4 -0
- package/src/apis/UserApiTokensApi.js +4 -0
- package/src/apis/UsersApi.cjs +4 -0
- package/src/apis/UsersApi.js +4 -0
- package/src/apis/VisitsApi.cjs +4 -0
- package/src/apis/VisitsApi.js +4 -0
- package/src/apis/WaasApi.cjs +4 -0
- package/src/apis/WaasApi.js +4 -0
- package/src/apis/WalletsApi.cjs +4 -0
- package/src/apis/WalletsApi.js +4 -0
- package/src/apis/WebhooksApi.cjs +4 -0
- package/src/apis/WebhooksApi.js +4 -0
- package/src/index.cjs +52 -0
- package/src/index.js +9 -0
- package/src/models/CoinbaseOnrampFee.cjs +37 -0
- package/src/models/CoinbaseOnrampFee.d.ts +40 -0
- package/src/models/CoinbaseOnrampFee.js +31 -0
- package/src/models/CoinbaseOnrampFeeType.cjs +40 -0
- package/src/models/CoinbaseOnrampFeeType.d.ts +23 -0
- package/src/models/CoinbaseOnrampFeeType.js +34 -0
- package/src/models/CoinbaseOnrampOrder.cjs +66 -0
- package/src/models/CoinbaseOnrampOrder.d.ts +120 -0
- package/src/models/CoinbaseOnrampOrder.js +60 -0
- package/src/models/CoinbaseOnrampOrderCreateRequest.cjs +54 -0
- package/src/models/CoinbaseOnrampOrderCreateRequest.d.ts +88 -0
- package/src/models/CoinbaseOnrampOrderCreateRequest.js +48 -0
- package/src/models/CoinbaseOnrampOrderPaymentLinkType.cjs +39 -0
- package/src/models/CoinbaseOnrampOrderPaymentLinkType.d.ts +22 -0
- package/src/models/CoinbaseOnrampOrderPaymentLinkType.js +33 -0
- package/src/models/CoinbaseOnrampOrderPaymentMethod.cjs +39 -0
- package/src/models/CoinbaseOnrampOrderPaymentMethod.d.ts +22 -0
- package/src/models/CoinbaseOnrampOrderPaymentMethod.js +33 -0
- package/src/models/CoinbaseOnrampOrderResponse.cjs +37 -0
- package/src/models/CoinbaseOnrampOrderResponse.d.ts +35 -0
- package/src/models/CoinbaseOnrampOrderResponse.js +31 -0
- package/src/models/CoinbaseOnrampOrderResponsePaymentLink.cjs +35 -0
- package/src/models/CoinbaseOnrampOrderResponsePaymentLink.d.ts +34 -0
- package/src/models/CoinbaseOnrampOrderResponsePaymentLink.js +29 -0
- package/src/models/CoinbaseOnrampOrderStatus.cjs +43 -0
- package/src/models/CoinbaseOnrampOrderStatus.d.ts +26 -0
- package/src/models/CoinbaseOnrampOrderStatus.js +37 -0
- package/src/models/JwtVerifiedCredential.cjs +2 -0
- package/src/models/JwtVerifiedCredential.d.ts +6 -0
- package/src/models/JwtVerifiedCredential.js +2 -0
- package/src/models/index.d.ts +9 -0
|
@@ -0,0 +1,120 @@
|
|
|
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 { CoinbaseOnrampFee } from './CoinbaseOnrampFee';
|
|
13
|
+
import { CoinbaseOnrampOrderPaymentMethod } from './CoinbaseOnrampOrderPaymentMethod';
|
|
14
|
+
import { CoinbaseOnrampOrderStatus } from './CoinbaseOnrampOrderStatus';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CoinbaseOnrampOrder
|
|
19
|
+
*/
|
|
20
|
+
export interface CoinbaseOnrampOrder {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CoinbaseOnrampOrder
|
|
25
|
+
*/
|
|
26
|
+
orderId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CoinbaseOnrampOrder
|
|
31
|
+
*/
|
|
32
|
+
paymentTotal: string;
|
|
33
|
+
/**
|
|
34
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CoinbaseOnrampOrder
|
|
37
|
+
*/
|
|
38
|
+
paymentSubtotal: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof CoinbaseOnrampOrder
|
|
43
|
+
*/
|
|
44
|
+
paymentCurrency: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {CoinbaseOnrampOrderPaymentMethod}
|
|
48
|
+
* @memberof CoinbaseOnrampOrder
|
|
49
|
+
*/
|
|
50
|
+
paymentMethod: CoinbaseOnrampOrderPaymentMethod;
|
|
51
|
+
/**
|
|
52
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof CoinbaseOnrampOrder
|
|
55
|
+
*/
|
|
56
|
+
purchaseAmount: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CoinbaseOnrampOrder
|
|
61
|
+
*/
|
|
62
|
+
purchaseCurrency: string;
|
|
63
|
+
/**
|
|
64
|
+
* The fees associated with the order.
|
|
65
|
+
* @type {Array<CoinbaseOnrampFee>}
|
|
66
|
+
* @memberof CoinbaseOnrampOrder
|
|
67
|
+
*/
|
|
68
|
+
fees: Array<CoinbaseOnrampFee>;
|
|
69
|
+
/**
|
|
70
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CoinbaseOnrampOrder
|
|
73
|
+
*/
|
|
74
|
+
exchangeRate: string;
|
|
75
|
+
/**
|
|
76
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CoinbaseOnrampOrder
|
|
79
|
+
*/
|
|
80
|
+
destinationAddress: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CoinbaseOnrampOrder
|
|
85
|
+
*/
|
|
86
|
+
destinationNetwork: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {CoinbaseOnrampOrderStatus}
|
|
90
|
+
* @memberof CoinbaseOnrampOrder
|
|
91
|
+
*/
|
|
92
|
+
status: CoinbaseOnrampOrderStatus;
|
|
93
|
+
/**
|
|
94
|
+
* The date and time the order was created.
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof CoinbaseOnrampOrder
|
|
97
|
+
*/
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
/**
|
|
100
|
+
* The date and time the order was last updated.
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof CoinbaseOnrampOrder
|
|
103
|
+
*/
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* A string with a max length of 4096 characters
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof CoinbaseOnrampOrder
|
|
109
|
+
*/
|
|
110
|
+
txHash?: string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof CoinbaseOnrampOrder
|
|
115
|
+
*/
|
|
116
|
+
partnerUserRef?: string;
|
|
117
|
+
}
|
|
118
|
+
export declare function CoinbaseOnrampOrderFromJSON(json: any): CoinbaseOnrampOrder;
|
|
119
|
+
export declare function CoinbaseOnrampOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrder;
|
|
120
|
+
export declare function CoinbaseOnrampOrderToJSON(value?: CoinbaseOnrampOrder | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CoinbaseOnrampFeeFromJSON, CoinbaseOnrampFeeToJSON } from './CoinbaseOnrampFee.js';
|
|
3
|
+
import { CoinbaseOnrampOrderPaymentMethodFromJSON, CoinbaseOnrampOrderPaymentMethodToJSON } from './CoinbaseOnrampOrderPaymentMethod.js';
|
|
4
|
+
import { CoinbaseOnrampOrderStatusFromJSON, CoinbaseOnrampOrderStatusToJSON } from './CoinbaseOnrampOrderStatus.js';
|
|
5
|
+
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
function CoinbaseOnrampOrderFromJSON(json) {
|
|
8
|
+
return CoinbaseOnrampOrderFromJSONTyped(json);
|
|
9
|
+
}
|
|
10
|
+
function CoinbaseOnrampOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if ((json === undefined) || (json === null)) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
'orderId': json['orderId'],
|
|
16
|
+
'paymentTotal': json['paymentTotal'],
|
|
17
|
+
'paymentSubtotal': json['paymentSubtotal'],
|
|
18
|
+
'paymentCurrency': json['paymentCurrency'],
|
|
19
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethodFromJSON(json['paymentMethod']),
|
|
20
|
+
'purchaseAmount': json['purchaseAmount'],
|
|
21
|
+
'purchaseCurrency': json['purchaseCurrency'],
|
|
22
|
+
'fees': (json['fees'].map(CoinbaseOnrampFeeFromJSON)),
|
|
23
|
+
'exchangeRate': json['exchangeRate'],
|
|
24
|
+
'destinationAddress': json['destinationAddress'],
|
|
25
|
+
'destinationNetwork': json['destinationNetwork'],
|
|
26
|
+
'status': CoinbaseOnrampOrderStatusFromJSON(json['status']),
|
|
27
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
28
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
29
|
+
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
30
|
+
'partnerUserRef': !exists(json, 'partnerUserRef') ? undefined : json['partnerUserRef'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function CoinbaseOnrampOrderToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'orderId': value.orderId,
|
|
42
|
+
'paymentTotal': value.paymentTotal,
|
|
43
|
+
'paymentSubtotal': value.paymentSubtotal,
|
|
44
|
+
'paymentCurrency': value.paymentCurrency,
|
|
45
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethodToJSON(value.paymentMethod),
|
|
46
|
+
'purchaseAmount': value.purchaseAmount,
|
|
47
|
+
'purchaseCurrency': value.purchaseCurrency,
|
|
48
|
+
'fees': (value.fees.map(CoinbaseOnrampFeeToJSON)),
|
|
49
|
+
'exchangeRate': value.exchangeRate,
|
|
50
|
+
'destinationAddress': value.destinationAddress,
|
|
51
|
+
'destinationNetwork': value.destinationNetwork,
|
|
52
|
+
'status': CoinbaseOnrampOrderStatusToJSON(value.status),
|
|
53
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
54
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
55
|
+
'txHash': value.txHash,
|
|
56
|
+
'partnerUserRef': value.partnerUserRef,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { CoinbaseOnrampOrderFromJSON, CoinbaseOnrampOrderFromJSONTyped, CoinbaseOnrampOrderToJSON };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CoinbaseOnrampOrderPaymentMethod = require('./CoinbaseOnrampOrderPaymentMethod.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function CoinbaseOnrampOrderCreateRequestFromJSON(json) {
|
|
10
|
+
return CoinbaseOnrampOrderCreateRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function CoinbaseOnrampOrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'agreementAcceptedAt': (new Date(json['agreementAcceptedAt'])),
|
|
18
|
+
'destinationAddress': json['destinationAddress'],
|
|
19
|
+
'destinationNetwork': json['destinationNetwork'],
|
|
20
|
+
'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
|
|
21
|
+
'isQuote': !runtime.exists(json, 'isQuote') ? undefined : json['isQuote'],
|
|
22
|
+
'partnerUserRef': json['partnerUserRef'],
|
|
23
|
+
'paymentAmount': !runtime.exists(json, 'paymentAmount') ? undefined : json['paymentAmount'],
|
|
24
|
+
'paymentCurrency': json['paymentCurrency'],
|
|
25
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethod.CoinbaseOnrampOrderPaymentMethodFromJSON(json['paymentMethod']),
|
|
26
|
+
'purchaseAmount': !runtime.exists(json, 'purchaseAmount') ? undefined : json['purchaseAmount'],
|
|
27
|
+
'purchaseCurrency': json['purchaseCurrency'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function CoinbaseOnrampOrderCreateRequestToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'agreementAcceptedAt': (value.agreementAcceptedAt.toISOString()),
|
|
39
|
+
'destinationAddress': value.destinationAddress,
|
|
40
|
+
'destinationNetwork': value.destinationNetwork,
|
|
41
|
+
'domain': value.domain,
|
|
42
|
+
'isQuote': value.isQuote,
|
|
43
|
+
'partnerUserRef': value.partnerUserRef,
|
|
44
|
+
'paymentAmount': value.paymentAmount,
|
|
45
|
+
'paymentCurrency': value.paymentCurrency,
|
|
46
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethod.CoinbaseOnrampOrderPaymentMethodToJSON(value.paymentMethod),
|
|
47
|
+
'purchaseAmount': value.purchaseAmount,
|
|
48
|
+
'purchaseCurrency': value.purchaseCurrency,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
exports.CoinbaseOnrampOrderCreateRequestFromJSON = CoinbaseOnrampOrderCreateRequestFromJSON;
|
|
53
|
+
exports.CoinbaseOnrampOrderCreateRequestFromJSONTyped = CoinbaseOnrampOrderCreateRequestFromJSONTyped;
|
|
54
|
+
exports.CoinbaseOnrampOrderCreateRequestToJSON = CoinbaseOnrampOrderCreateRequestToJSON;
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { CoinbaseOnrampOrderPaymentMethod } from './CoinbaseOnrampOrderPaymentMethod';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CoinbaseOnrampOrderCreateRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CoinbaseOnrampOrderCreateRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The timestamp of when the user acknowledged that by using Coinbase Onramp they are accepting the Coinbase Terms (https://www.coinbase.com/legal/guest-checkout/us), User Agreement (https://www.coinbase.com/legal/user_agreement),and Privacy Policy (https://www.coinbase.com/legal/privacy).
|
|
21
|
+
* @type {Date}
|
|
22
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
23
|
+
*/
|
|
24
|
+
agreementAcceptedAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
29
|
+
*/
|
|
30
|
+
destinationAddress: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
35
|
+
*/
|
|
36
|
+
destinationNetwork: string;
|
|
37
|
+
/**
|
|
38
|
+
* An [RFC 6454](https://www.rfc-editor.org/rfc/rfc6454) valid url. Must not include any paths. A single wildcard (*) can be used as the first subdomain.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
41
|
+
*/
|
|
42
|
+
domain?: string;
|
|
43
|
+
/**
|
|
44
|
+
* If true, this API will return a quote without creating any transaction.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
47
|
+
*/
|
|
48
|
+
isQuote?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
53
|
+
*/
|
|
54
|
+
partnerUserRef: string;
|
|
55
|
+
/**
|
|
56
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
59
|
+
*/
|
|
60
|
+
paymentAmount?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
65
|
+
*/
|
|
66
|
+
paymentCurrency: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {CoinbaseOnrampOrderPaymentMethod}
|
|
70
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
71
|
+
*/
|
|
72
|
+
paymentMethod: CoinbaseOnrampOrderPaymentMethod;
|
|
73
|
+
/**
|
|
74
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
77
|
+
*/
|
|
78
|
+
purchaseAmount?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CoinbaseOnrampOrderCreateRequest
|
|
83
|
+
*/
|
|
84
|
+
purchaseCurrency: string;
|
|
85
|
+
}
|
|
86
|
+
export declare function CoinbaseOnrampOrderCreateRequestFromJSON(json: any): CoinbaseOnrampOrderCreateRequest;
|
|
87
|
+
export declare function CoinbaseOnrampOrderCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderCreateRequest;
|
|
88
|
+
export declare function CoinbaseOnrampOrderCreateRequestToJSON(value?: CoinbaseOnrampOrderCreateRequest | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CoinbaseOnrampOrderPaymentMethodFromJSON, CoinbaseOnrampOrderPaymentMethodToJSON } from './CoinbaseOnrampOrderPaymentMethod.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function CoinbaseOnrampOrderCreateRequestFromJSON(json) {
|
|
6
|
+
return CoinbaseOnrampOrderCreateRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function CoinbaseOnrampOrderCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'agreementAcceptedAt': (new Date(json['agreementAcceptedAt'])),
|
|
14
|
+
'destinationAddress': json['destinationAddress'],
|
|
15
|
+
'destinationNetwork': json['destinationNetwork'],
|
|
16
|
+
'domain': !exists(json, 'domain') ? undefined : json['domain'],
|
|
17
|
+
'isQuote': !exists(json, 'isQuote') ? undefined : json['isQuote'],
|
|
18
|
+
'partnerUserRef': json['partnerUserRef'],
|
|
19
|
+
'paymentAmount': !exists(json, 'paymentAmount') ? undefined : json['paymentAmount'],
|
|
20
|
+
'paymentCurrency': json['paymentCurrency'],
|
|
21
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethodFromJSON(json['paymentMethod']),
|
|
22
|
+
'purchaseAmount': !exists(json, 'purchaseAmount') ? undefined : json['purchaseAmount'],
|
|
23
|
+
'purchaseCurrency': json['purchaseCurrency'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function CoinbaseOnrampOrderCreateRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'agreementAcceptedAt': (value.agreementAcceptedAt.toISOString()),
|
|
35
|
+
'destinationAddress': value.destinationAddress,
|
|
36
|
+
'destinationNetwork': value.destinationNetwork,
|
|
37
|
+
'domain': value.domain,
|
|
38
|
+
'isQuote': value.isQuote,
|
|
39
|
+
'partnerUserRef': value.partnerUserRef,
|
|
40
|
+
'paymentAmount': value.paymentAmount,
|
|
41
|
+
'paymentCurrency': value.paymentCurrency,
|
|
42
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethodToJSON(value.paymentMethod),
|
|
43
|
+
'purchaseAmount': value.purchaseAmount,
|
|
44
|
+
'purchaseCurrency': value.purchaseCurrency,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { CoinbaseOnrampOrderCreateRequestFromJSON, CoinbaseOnrampOrderCreateRequestFromJSONTyped, CoinbaseOnrampOrderCreateRequestToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* The type of payment link.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.CoinbaseOnrampOrderPaymentLinkType = void 0;
|
|
24
|
+
(function (CoinbaseOnrampOrderPaymentLinkType) {
|
|
25
|
+
CoinbaseOnrampOrderPaymentLinkType["PaymentLinkTypeApplePayButton"] = "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
|
|
26
|
+
})(exports.CoinbaseOnrampOrderPaymentLinkType || (exports.CoinbaseOnrampOrderPaymentLinkType = {}));
|
|
27
|
+
function CoinbaseOnrampOrderPaymentLinkTypeFromJSON(json) {
|
|
28
|
+
return CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped(json);
|
|
29
|
+
}
|
|
30
|
+
function CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function CoinbaseOnrampOrderPaymentLinkTypeToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.CoinbaseOnrampOrderPaymentLinkTypeFromJSON = CoinbaseOnrampOrderPaymentLinkTypeFromJSON;
|
|
38
|
+
exports.CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped = CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped;
|
|
39
|
+
exports.CoinbaseOnrampOrderPaymentLinkTypeToJSON = CoinbaseOnrampOrderPaymentLinkTypeToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* The type of payment link.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CoinbaseOnrampOrderPaymentLinkType {
|
|
18
|
+
PaymentLinkTypeApplePayButton = "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON"
|
|
19
|
+
}
|
|
20
|
+
export declare function CoinbaseOnrampOrderPaymentLinkTypeFromJSON(json: any): CoinbaseOnrampOrderPaymentLinkType;
|
|
21
|
+
export declare function CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderPaymentLinkType;
|
|
22
|
+
export declare function CoinbaseOnrampOrderPaymentLinkTypeToJSON(value?: CoinbaseOnrampOrderPaymentLinkType | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* The type of payment link.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var CoinbaseOnrampOrderPaymentLinkType;
|
|
20
|
+
(function (CoinbaseOnrampOrderPaymentLinkType) {
|
|
21
|
+
CoinbaseOnrampOrderPaymentLinkType["PaymentLinkTypeApplePayButton"] = "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
|
|
22
|
+
})(CoinbaseOnrampOrderPaymentLinkType || (CoinbaseOnrampOrderPaymentLinkType = {}));
|
|
23
|
+
function CoinbaseOnrampOrderPaymentLinkTypeFromJSON(json) {
|
|
24
|
+
return CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
function CoinbaseOnrampOrderPaymentLinkTypeToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { CoinbaseOnrampOrderPaymentLinkType, CoinbaseOnrampOrderPaymentLinkTypeFromJSON, CoinbaseOnrampOrderPaymentLinkTypeFromJSONTyped, CoinbaseOnrampOrderPaymentLinkTypeToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* The type of payment method to be used to complete an onramp order.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.CoinbaseOnrampOrderPaymentMethod = void 0;
|
|
24
|
+
(function (CoinbaseOnrampOrderPaymentMethod) {
|
|
25
|
+
CoinbaseOnrampOrderPaymentMethod["GuestCheckoutApplePay"] = "GUEST_CHECKOUT_APPLE_PAY";
|
|
26
|
+
})(exports.CoinbaseOnrampOrderPaymentMethod || (exports.CoinbaseOnrampOrderPaymentMethod = {}));
|
|
27
|
+
function CoinbaseOnrampOrderPaymentMethodFromJSON(json) {
|
|
28
|
+
return CoinbaseOnrampOrderPaymentMethodFromJSONTyped(json);
|
|
29
|
+
}
|
|
30
|
+
function CoinbaseOnrampOrderPaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function CoinbaseOnrampOrderPaymentMethodToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.CoinbaseOnrampOrderPaymentMethodFromJSON = CoinbaseOnrampOrderPaymentMethodFromJSON;
|
|
38
|
+
exports.CoinbaseOnrampOrderPaymentMethodFromJSONTyped = CoinbaseOnrampOrderPaymentMethodFromJSONTyped;
|
|
39
|
+
exports.CoinbaseOnrampOrderPaymentMethodToJSON = CoinbaseOnrampOrderPaymentMethodToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* The type of payment method to be used to complete an onramp order.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CoinbaseOnrampOrderPaymentMethod {
|
|
18
|
+
GuestCheckoutApplePay = "GUEST_CHECKOUT_APPLE_PAY"
|
|
19
|
+
}
|
|
20
|
+
export declare function CoinbaseOnrampOrderPaymentMethodFromJSON(json: any): CoinbaseOnrampOrderPaymentMethod;
|
|
21
|
+
export declare function CoinbaseOnrampOrderPaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderPaymentMethod;
|
|
22
|
+
export declare function CoinbaseOnrampOrderPaymentMethodToJSON(value?: CoinbaseOnrampOrderPaymentMethod | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* The type of payment method to be used to complete an onramp order.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var CoinbaseOnrampOrderPaymentMethod;
|
|
20
|
+
(function (CoinbaseOnrampOrderPaymentMethod) {
|
|
21
|
+
CoinbaseOnrampOrderPaymentMethod["GuestCheckoutApplePay"] = "GUEST_CHECKOUT_APPLE_PAY";
|
|
22
|
+
})(CoinbaseOnrampOrderPaymentMethod || (CoinbaseOnrampOrderPaymentMethod = {}));
|
|
23
|
+
function CoinbaseOnrampOrderPaymentMethodFromJSON(json) {
|
|
24
|
+
return CoinbaseOnrampOrderPaymentMethodFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function CoinbaseOnrampOrderPaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
function CoinbaseOnrampOrderPaymentMethodToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { CoinbaseOnrampOrderPaymentMethod, CoinbaseOnrampOrderPaymentMethodFromJSON, CoinbaseOnrampOrderPaymentMethodFromJSONTyped, CoinbaseOnrampOrderPaymentMethodToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CoinbaseOnrampOrder = require('./CoinbaseOnrampOrder.cjs');
|
|
7
|
+
var CoinbaseOnrampOrderResponsePaymentLink = require('./CoinbaseOnrampOrderResponsePaymentLink.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function CoinbaseOnrampOrderResponseFromJSON(json) {
|
|
11
|
+
return CoinbaseOnrampOrderResponseFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function CoinbaseOnrampOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'order': CoinbaseOnrampOrder.CoinbaseOnrampOrderFromJSON(json['order']),
|
|
19
|
+
'paymentLink': !runtime.exists(json, 'paymentLink') ? undefined : CoinbaseOnrampOrderResponsePaymentLink.CoinbaseOnrampOrderResponsePaymentLinkFromJSON(json['paymentLink']),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function CoinbaseOnrampOrderResponseToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'order': CoinbaseOnrampOrder.CoinbaseOnrampOrderToJSON(value.order),
|
|
31
|
+
'paymentLink': CoinbaseOnrampOrderResponsePaymentLink.CoinbaseOnrampOrderResponsePaymentLinkToJSON(value.paymentLink),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CoinbaseOnrampOrderResponseFromJSON = CoinbaseOnrampOrderResponseFromJSON;
|
|
36
|
+
exports.CoinbaseOnrampOrderResponseFromJSONTyped = CoinbaseOnrampOrderResponseFromJSONTyped;
|
|
37
|
+
exports.CoinbaseOnrampOrderResponseToJSON = CoinbaseOnrampOrderResponseToJSON;
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { CoinbaseOnrampOrder } from './CoinbaseOnrampOrder';
|
|
13
|
+
import { CoinbaseOnrampOrderResponsePaymentLink } from './CoinbaseOnrampOrderResponsePaymentLink';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CoinbaseOnrampOrderResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CoinbaseOnrampOrderResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CoinbaseOnrampOrder}
|
|
23
|
+
* @memberof CoinbaseOnrampOrderResponse
|
|
24
|
+
*/
|
|
25
|
+
order: CoinbaseOnrampOrder;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {CoinbaseOnrampOrderResponsePaymentLink}
|
|
29
|
+
* @memberof CoinbaseOnrampOrderResponse
|
|
30
|
+
*/
|
|
31
|
+
paymentLink?: CoinbaseOnrampOrderResponsePaymentLink;
|
|
32
|
+
}
|
|
33
|
+
export declare function CoinbaseOnrampOrderResponseFromJSON(json: any): CoinbaseOnrampOrderResponse;
|
|
34
|
+
export declare function CoinbaseOnrampOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderResponse;
|
|
35
|
+
export declare function CoinbaseOnrampOrderResponseToJSON(value?: CoinbaseOnrampOrderResponse | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CoinbaseOnrampOrderFromJSON, CoinbaseOnrampOrderToJSON } from './CoinbaseOnrampOrder.js';
|
|
3
|
+
import { CoinbaseOnrampOrderResponsePaymentLinkFromJSON, CoinbaseOnrampOrderResponsePaymentLinkToJSON } from './CoinbaseOnrampOrderResponsePaymentLink.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function CoinbaseOnrampOrderResponseFromJSON(json) {
|
|
7
|
+
return CoinbaseOnrampOrderResponseFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function CoinbaseOnrampOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'order': CoinbaseOnrampOrderFromJSON(json['order']),
|
|
15
|
+
'paymentLink': !exists(json, 'paymentLink') ? undefined : CoinbaseOnrampOrderResponsePaymentLinkFromJSON(json['paymentLink']),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function CoinbaseOnrampOrderResponseToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'order': CoinbaseOnrampOrderToJSON(value.order),
|
|
27
|
+
'paymentLink': CoinbaseOnrampOrderResponsePaymentLinkToJSON(value.paymentLink),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CoinbaseOnrampOrderResponseFromJSON, CoinbaseOnrampOrderResponseFromJSONTyped, CoinbaseOnrampOrderResponseToJSON };
|