@dynamic-labs/sdk-api-core 0.0.831 → 0.0.839
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 +294 -0
- package/src/apis/SDKApi.d.ts +107 -1
- package/src/apis/SDKApi.js +294 -0
- package/src/apis/WaasApi.cjs +2 -0
- package/src/apis/WaasApi.js +2 -0
- package/src/index.cjs +52 -0
- package/src/index.js +11 -0
- package/src/models/Account.d.ts +1 -1
- package/src/models/CoinbaseOnrampBuyUrlExperience.cjs +40 -0
- package/src/models/CoinbaseOnrampBuyUrlExperience.d.ts +23 -0
- package/src/models/CoinbaseOnrampBuyUrlExperience.js +34 -0
- package/src/models/CoinbaseOnrampGetBuyUrlRequest.cjs +58 -0
- package/src/models/CoinbaseOnrampGetBuyUrlRequest.d.ts +100 -0
- package/src/models/CoinbaseOnrampGetBuyUrlRequest.js +52 -0
- package/src/models/CoinbaseOnrampGetBuyUrlResponse.cjs +43 -0
- package/src/models/CoinbaseOnrampGetBuyUrlResponse.d.ts +27 -0
- package/src/models/CoinbaseOnrampGetBuyUrlResponse.js +37 -0
- package/src/models/CryptoDotComPaymentCreateRequest.cjs +50 -0
- package/src/models/CryptoDotComPaymentCreateRequest.d.ts +76 -0
- package/src/models/CryptoDotComPaymentCreateRequest.js +44 -0
- package/src/models/CryptoDotComPaymentResponse.cjs +71 -0
- package/src/models/CryptoDotComPaymentResponse.d.ts +141 -0
- package/src/models/CryptoDotComPaymentResponse.js +65 -0
- package/src/models/DynamicJwt.cjs +2 -0
- package/src/models/DynamicJwt.d.ts +6 -0
- package/src/models/DynamicJwt.js +2 -0
- package/src/models/ExternalAuth.d.ts +1 -1
- package/src/models/GeneratedTokenResponse.cjs +43 -0
- package/src/models/GeneratedTokenResponse.d.ts +27 -0
- package/src/models/GeneratedTokenResponse.js +37 -0
- package/src/models/MinifiedDynamicJwt.cjs +2 -0
- package/src/models/MinifiedDynamicJwt.d.ts +6 -0
- package/src/models/MinifiedDynamicJwt.js +2 -0
- package/src/models/TokenBalance.cjs +2 -0
- package/src/models/TokenBalance.d.ts +6 -0
- package/src/models/TokenBalance.js +2 -0
- package/src/models/WalletTransaction.cjs +55 -0
- package/src/models/WalletTransaction.d.ts +90 -0
- package/src/models/WalletTransaction.js +49 -0
- package/src/models/WalletTransactionAssetTransfer.cjs +42 -0
- package/src/models/WalletTransactionAssetTransfer.d.ts +52 -0
- package/src/models/WalletTransactionAssetTransfer.js +36 -0
- package/src/models/WalletTransactionAssetTransferMetadata.cjs +39 -0
- package/src/models/WalletTransactionAssetTransferMetadata.d.ts +45 -0
- package/src/models/WalletTransactionAssetTransferMetadata.js +33 -0
- package/src/models/WalletTransactionType.cjs +41 -0
- package/src/models/WalletTransactionType.d.ts +24 -0
- package/src/models/WalletTransactionType.js +35 -0
- package/src/models/WalletTransactionsResponse.cjs +36 -0
- package/src/models/WalletTransactionsResponse.d.ts +34 -0
- package/src/models/WalletTransactionsResponse.js +30 -0
- package/src/models/index.d.ts +11 -0
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* Default visual experience. Either transfer funds from Coinbase (send) or buy assets (buy)
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var CoinbaseOnrampBuyUrlExperience;
|
|
20
|
+
(function (CoinbaseOnrampBuyUrlExperience) {
|
|
21
|
+
CoinbaseOnrampBuyUrlExperience["Buy"] = "buy";
|
|
22
|
+
CoinbaseOnrampBuyUrlExperience["Send"] = "send";
|
|
23
|
+
})(CoinbaseOnrampBuyUrlExperience || (CoinbaseOnrampBuyUrlExperience = {}));
|
|
24
|
+
function CoinbaseOnrampBuyUrlExperienceFromJSON(json) {
|
|
25
|
+
return CoinbaseOnrampBuyUrlExperienceFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function CoinbaseOnrampBuyUrlExperienceFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function CoinbaseOnrampBuyUrlExperienceToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { CoinbaseOnrampBuyUrlExperience, CoinbaseOnrampBuyUrlExperienceFromJSON, CoinbaseOnrampBuyUrlExperienceFromJSONTyped, CoinbaseOnrampBuyUrlExperienceToJSON };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CoinbaseOnrampBuyUrlExperience = require('./CoinbaseOnrampBuyUrlExperience.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function CoinbaseOnrampGetBuyUrlRequestFromJSON(json) {
|
|
10
|
+
return CoinbaseOnrampGetBuyUrlRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function CoinbaseOnrampGetBuyUrlRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'assets': !runtime.exists(json, 'assets') ? undefined : json['assets'],
|
|
18
|
+
'defaultNetwork': !runtime.exists(json, 'defaultNetwork') ? undefined : json['defaultNetwork'],
|
|
19
|
+
'defaultAsset': !runtime.exists(json, 'defaultAsset') ? undefined : json['defaultAsset'],
|
|
20
|
+
'defaultExperience': !runtime.exists(json, 'defaultExperience') ? undefined : CoinbaseOnrampBuyUrlExperience.CoinbaseOnrampBuyUrlExperienceFromJSON(json['defaultExperience']),
|
|
21
|
+
'defaultPaymentMethod': !runtime.exists(json, 'defaultPaymentMethod') ? undefined : json['defaultPaymentMethod'],
|
|
22
|
+
'destinationAddress': json['destinationAddress'],
|
|
23
|
+
'fiatCurrency': !runtime.exists(json, 'fiatCurrency') ? undefined : json['fiatCurrency'],
|
|
24
|
+
'handlingRequestedUrls': !runtime.exists(json, 'handlingRequestedUrls') ? undefined : json['handlingRequestedUrls'],
|
|
25
|
+
'networks': json['networks'],
|
|
26
|
+
'partnerUserRef': !runtime.exists(json, 'partnerUserRef') ? undefined : json['partnerUserRef'],
|
|
27
|
+
'presetCryptoAmount': !runtime.exists(json, 'presetCryptoAmount') ? undefined : json['presetCryptoAmount'],
|
|
28
|
+
'presetFiatAmount': !runtime.exists(json, 'presetFiatAmount') ? undefined : json['presetFiatAmount'],
|
|
29
|
+
'redirectUrl': !runtime.exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function CoinbaseOnrampGetBuyUrlRequestToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'assets': value.assets,
|
|
41
|
+
'defaultNetwork': value.defaultNetwork,
|
|
42
|
+
'defaultAsset': value.defaultAsset,
|
|
43
|
+
'defaultExperience': CoinbaseOnrampBuyUrlExperience.CoinbaseOnrampBuyUrlExperienceToJSON(value.defaultExperience),
|
|
44
|
+
'defaultPaymentMethod': value.defaultPaymentMethod,
|
|
45
|
+
'destinationAddress': value.destinationAddress,
|
|
46
|
+
'fiatCurrency': value.fiatCurrency,
|
|
47
|
+
'handlingRequestedUrls': value.handlingRequestedUrls,
|
|
48
|
+
'networks': value.networks,
|
|
49
|
+
'partnerUserRef': value.partnerUserRef,
|
|
50
|
+
'presetCryptoAmount': value.presetCryptoAmount,
|
|
51
|
+
'presetFiatAmount': value.presetFiatAmount,
|
|
52
|
+
'redirectUrl': value.redirectUrl,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.CoinbaseOnrampGetBuyUrlRequestFromJSON = CoinbaseOnrampGetBuyUrlRequestFromJSON;
|
|
57
|
+
exports.CoinbaseOnrampGetBuyUrlRequestFromJSONTyped = CoinbaseOnrampGetBuyUrlRequestFromJSONTyped;
|
|
58
|
+
exports.CoinbaseOnrampGetBuyUrlRequestToJSON = CoinbaseOnrampGetBuyUrlRequestToJSON;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { CoinbaseOnrampBuyUrlExperience } from './CoinbaseOnrampBuyUrlExperience';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CoinbaseOnrampGetBuyUrlRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CoinbaseOnrampGetBuyUrlRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
23
|
+
*/
|
|
24
|
+
assets?: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
29
|
+
*/
|
|
30
|
+
defaultNetwork?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
35
|
+
*/
|
|
36
|
+
defaultAsset?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CoinbaseOnrampBuyUrlExperience}
|
|
40
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
41
|
+
*/
|
|
42
|
+
defaultExperience?: CoinbaseOnrampBuyUrlExperience;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
47
|
+
*/
|
|
48
|
+
defaultPaymentMethod?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
53
|
+
*/
|
|
54
|
+
destinationAddress: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
59
|
+
*/
|
|
60
|
+
fiatCurrency?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Prevents the widget from opening URLs directly & relies on onRequestedUrl entirely for opening links
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
65
|
+
*/
|
|
66
|
+
handlingRequestedUrls?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
71
|
+
*/
|
|
72
|
+
networks: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
77
|
+
*/
|
|
78
|
+
partnerUserRef?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Digits with optional decimal part
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
83
|
+
*/
|
|
84
|
+
presetCryptoAmount?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Digits with optional decimal part
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
89
|
+
*/
|
|
90
|
+
presetFiatAmount?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CoinbaseOnrampGetBuyUrlRequest
|
|
95
|
+
*/
|
|
96
|
+
redirectUrl?: string;
|
|
97
|
+
}
|
|
98
|
+
export declare function CoinbaseOnrampGetBuyUrlRequestFromJSON(json: any): CoinbaseOnrampGetBuyUrlRequest;
|
|
99
|
+
export declare function CoinbaseOnrampGetBuyUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampGetBuyUrlRequest;
|
|
100
|
+
export declare function CoinbaseOnrampGetBuyUrlRequestToJSON(value?: CoinbaseOnrampGetBuyUrlRequest | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CoinbaseOnrampBuyUrlExperienceFromJSON, CoinbaseOnrampBuyUrlExperienceToJSON } from './CoinbaseOnrampBuyUrlExperience.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function CoinbaseOnrampGetBuyUrlRequestFromJSON(json) {
|
|
6
|
+
return CoinbaseOnrampGetBuyUrlRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function CoinbaseOnrampGetBuyUrlRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'assets': !exists(json, 'assets') ? undefined : json['assets'],
|
|
14
|
+
'defaultNetwork': !exists(json, 'defaultNetwork') ? undefined : json['defaultNetwork'],
|
|
15
|
+
'defaultAsset': !exists(json, 'defaultAsset') ? undefined : json['defaultAsset'],
|
|
16
|
+
'defaultExperience': !exists(json, 'defaultExperience') ? undefined : CoinbaseOnrampBuyUrlExperienceFromJSON(json['defaultExperience']),
|
|
17
|
+
'defaultPaymentMethod': !exists(json, 'defaultPaymentMethod') ? undefined : json['defaultPaymentMethod'],
|
|
18
|
+
'destinationAddress': json['destinationAddress'],
|
|
19
|
+
'fiatCurrency': !exists(json, 'fiatCurrency') ? undefined : json['fiatCurrency'],
|
|
20
|
+
'handlingRequestedUrls': !exists(json, 'handlingRequestedUrls') ? undefined : json['handlingRequestedUrls'],
|
|
21
|
+
'networks': json['networks'],
|
|
22
|
+
'partnerUserRef': !exists(json, 'partnerUserRef') ? undefined : json['partnerUserRef'],
|
|
23
|
+
'presetCryptoAmount': !exists(json, 'presetCryptoAmount') ? undefined : json['presetCryptoAmount'],
|
|
24
|
+
'presetFiatAmount': !exists(json, 'presetFiatAmount') ? undefined : json['presetFiatAmount'],
|
|
25
|
+
'redirectUrl': !exists(json, 'redirectUrl') ? undefined : json['redirectUrl'],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function CoinbaseOnrampGetBuyUrlRequestToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'assets': value.assets,
|
|
37
|
+
'defaultNetwork': value.defaultNetwork,
|
|
38
|
+
'defaultAsset': value.defaultAsset,
|
|
39
|
+
'defaultExperience': CoinbaseOnrampBuyUrlExperienceToJSON(value.defaultExperience),
|
|
40
|
+
'defaultPaymentMethod': value.defaultPaymentMethod,
|
|
41
|
+
'destinationAddress': value.destinationAddress,
|
|
42
|
+
'fiatCurrency': value.fiatCurrency,
|
|
43
|
+
'handlingRequestedUrls': value.handlingRequestedUrls,
|
|
44
|
+
'networks': value.networks,
|
|
45
|
+
'partnerUserRef': value.partnerUserRef,
|
|
46
|
+
'presetCryptoAmount': value.presetCryptoAmount,
|
|
47
|
+
'presetFiatAmount': value.presetFiatAmount,
|
|
48
|
+
'redirectUrl': value.redirectUrl,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { CoinbaseOnrampGetBuyUrlRequestFromJSON, CoinbaseOnrampGetBuyUrlRequestFromJSONTyped, CoinbaseOnrampGetBuyUrlRequestToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
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 CoinbaseOnrampGetBuyUrlResponseFromJSON(json) {
|
|
19
|
+
return CoinbaseOnrampGetBuyUrlResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function CoinbaseOnrampGetBuyUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'url': json['url'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function CoinbaseOnrampGetBuyUrlResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'url': value.url,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.CoinbaseOnrampGetBuyUrlResponseFromJSON = CoinbaseOnrampGetBuyUrlResponseFromJSON;
|
|
42
|
+
exports.CoinbaseOnrampGetBuyUrlResponseFromJSONTyped = CoinbaseOnrampGetBuyUrlResponseFromJSONTyped;
|
|
43
|
+
exports.CoinbaseOnrampGetBuyUrlResponseToJSON = CoinbaseOnrampGetBuyUrlResponseToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CoinbaseOnrampGetBuyUrlResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CoinbaseOnrampGetBuyUrlResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The URL to the hosted widget the user should be redirected to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CoinbaseOnrampGetBuyUrlResponse
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function CoinbaseOnrampGetBuyUrlResponseFromJSON(json: any): CoinbaseOnrampGetBuyUrlResponse;
|
|
26
|
+
export declare function CoinbaseOnrampGetBuyUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampGetBuyUrlResponse;
|
|
27
|
+
export declare function CoinbaseOnrampGetBuyUrlResponseToJSON(value?: CoinbaseOnrampGetBuyUrlResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 CoinbaseOnrampGetBuyUrlResponseFromJSON(json) {
|
|
15
|
+
return CoinbaseOnrampGetBuyUrlResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function CoinbaseOnrampGetBuyUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'url': json['url'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function CoinbaseOnrampGetBuyUrlResponseToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'url': value.url,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { CoinbaseOnrampGetBuyUrlResponseFromJSON, CoinbaseOnrampGetBuyUrlResponseFromJSONTyped, CoinbaseOnrampGetBuyUrlResponseToJSON };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function CryptoDotComPaymentCreateRequestFromJSON(json) {
|
|
10
|
+
return CryptoDotComPaymentCreateRequestFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function CryptoDotComPaymentCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'amount': json['amount'],
|
|
18
|
+
'currency': json['currency'],
|
|
19
|
+
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
20
|
+
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
21
|
+
'orderId': !runtime.exists(json, 'orderId') ? undefined : json['orderId'],
|
|
22
|
+
'subMerchantId': !runtime.exists(json, 'subMerchantId') ? undefined : json['subMerchantId'],
|
|
23
|
+
'walletAddress': json['walletAddress'],
|
|
24
|
+
'networkId': !runtime.exists(json, 'networkId') ? undefined : json['networkId'],
|
|
25
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function CryptoDotComPaymentCreateRequestToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'amount': value.amount,
|
|
37
|
+
'currency': value.currency,
|
|
38
|
+
'description': value.description,
|
|
39
|
+
'metadata': value.metadata,
|
|
40
|
+
'orderId': value.orderId,
|
|
41
|
+
'subMerchantId': value.subMerchantId,
|
|
42
|
+
'walletAddress': value.walletAddress,
|
|
43
|
+
'networkId': value.networkId,
|
|
44
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.CryptoDotComPaymentCreateRequestFromJSON = CryptoDotComPaymentCreateRequestFromJSON;
|
|
49
|
+
exports.CryptoDotComPaymentCreateRequestFromJSONTyped = CryptoDotComPaymentCreateRequestFromJSONTyped;
|
|
50
|
+
exports.CryptoDotComPaymentCreateRequestToJSON = CryptoDotComPaymentCreateRequestToJSON;
|
|
@@ -0,0 +1,76 @@
|
|
|
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 CryptoDotComPaymentCreateRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CryptoDotComPaymentCreateRequest {
|
|
19
|
+
/**
|
|
20
|
+
* A positive integer representing how much to collect in the smallest currency unit (e.g., 100 cents to collect $1.00). Refer to [Pricing Currencies](https://pay-docs.crypto.com/#api-reference-resources-payments-pricing-currencies) for the smallest unit for each currency.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
23
|
+
*/
|
|
24
|
+
amount: number;
|
|
25
|
+
/**
|
|
26
|
+
* Three-letter currency code for the payment amount (pricing currency). Must be a supported fiat currency / cryptocurrency. Refer to [Pricing Currencies](https://pay-docs.crypto.com/#api-reference-resources-payments-pricing-currencies) for the currency code.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
29
|
+
*/
|
|
30
|
+
currency: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
39
|
+
* @type {object}
|
|
40
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
41
|
+
*/
|
|
42
|
+
metadata?: object;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
47
|
+
*/
|
|
48
|
+
orderId?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
53
|
+
*/
|
|
54
|
+
subMerchantId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
59
|
+
*/
|
|
60
|
+
walletAddress: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
65
|
+
*/
|
|
66
|
+
networkId?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ChainEnum}
|
|
70
|
+
* @memberof CryptoDotComPaymentCreateRequest
|
|
71
|
+
*/
|
|
72
|
+
chain: ChainEnum;
|
|
73
|
+
}
|
|
74
|
+
export declare function CryptoDotComPaymentCreateRequestFromJSON(json: any): CryptoDotComPaymentCreateRequest;
|
|
75
|
+
export declare function CryptoDotComPaymentCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoDotComPaymentCreateRequest;
|
|
76
|
+
export declare function CryptoDotComPaymentCreateRequestToJSON(value?: CryptoDotComPaymentCreateRequest | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function CryptoDotComPaymentCreateRequestFromJSON(json) {
|
|
6
|
+
return CryptoDotComPaymentCreateRequestFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function CryptoDotComPaymentCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'amount': json['amount'],
|
|
14
|
+
'currency': json['currency'],
|
|
15
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
16
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
17
|
+
'orderId': !exists(json, 'orderId') ? undefined : json['orderId'],
|
|
18
|
+
'subMerchantId': !exists(json, 'subMerchantId') ? undefined : json['subMerchantId'],
|
|
19
|
+
'walletAddress': json['walletAddress'],
|
|
20
|
+
'networkId': !exists(json, 'networkId') ? undefined : json['networkId'],
|
|
21
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function CryptoDotComPaymentCreateRequestToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'amount': value.amount,
|
|
33
|
+
'currency': value.currency,
|
|
34
|
+
'description': value.description,
|
|
35
|
+
'metadata': value.metadata,
|
|
36
|
+
'orderId': value.orderId,
|
|
37
|
+
'subMerchantId': value.subMerchantId,
|
|
38
|
+
'walletAddress': value.walletAddress,
|
|
39
|
+
'networkId': value.networkId,
|
|
40
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { CryptoDotComPaymentCreateRequestFromJSON, CryptoDotComPaymentCreateRequestFromJSONTyped, CryptoDotComPaymentCreateRequestToJSON };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CryptoDotComPaymentResponseFromJSON(json) {
|
|
9
|
+
return CryptoDotComPaymentResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CryptoDotComPaymentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'id': json['id'],
|
|
17
|
+
'amount': json['amount'],
|
|
18
|
+
'currency': json['currency'],
|
|
19
|
+
'amountRefunded': !runtime.exists(json, 'amountRefunded') ? undefined : json['amountRefunded'],
|
|
20
|
+
'created': !runtime.exists(json, 'created') ? undefined : json['created'],
|
|
21
|
+
'cryptoCurrency': !runtime.exists(json, 'cryptoCurrency') ? undefined : json['cryptoCurrency'],
|
|
22
|
+
'cryptoAmount': !runtime.exists(json, 'cryptoAmount') ? undefined : json['cryptoAmount'],
|
|
23
|
+
'customerId': !runtime.exists(json, 'customerId') ? undefined : json['customerId'],
|
|
24
|
+
'paymentUrl': json['paymentUrl'],
|
|
25
|
+
'qrCode': json['qrCode'],
|
|
26
|
+
'returnUrl': !runtime.exists(json, 'returnUrl') ? undefined : json['returnUrl'],
|
|
27
|
+
'cancelUrl': !runtime.exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
|
|
28
|
+
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
29
|
+
'liveMode': !runtime.exists(json, 'liveMode') ? undefined : json['liveMode'],
|
|
30
|
+
'metadata': !runtime.exists(json, 'metadata') ? undefined : json['metadata'],
|
|
31
|
+
'orderId': !runtime.exists(json, 'orderId') ? undefined : json['orderId'],
|
|
32
|
+
'recipient': !runtime.exists(json, 'recipient') ? undefined : json['recipient'],
|
|
33
|
+
'refunded': !runtime.exists(json, 'refunded') ? undefined : json['refunded'],
|
|
34
|
+
'status': json['status'],
|
|
35
|
+
'expiredAt': !runtime.exists(json, 'expiredAt') ? undefined : json['expiredAt'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CryptoDotComPaymentResponseToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value.id,
|
|
47
|
+
'amount': value.amount,
|
|
48
|
+
'currency': value.currency,
|
|
49
|
+
'amountRefunded': value.amountRefunded,
|
|
50
|
+
'created': value.created,
|
|
51
|
+
'cryptoCurrency': value.cryptoCurrency,
|
|
52
|
+
'cryptoAmount': value.cryptoAmount,
|
|
53
|
+
'customerId': value.customerId,
|
|
54
|
+
'paymentUrl': value.paymentUrl,
|
|
55
|
+
'qrCode': value.qrCode,
|
|
56
|
+
'returnUrl': value.returnUrl,
|
|
57
|
+
'cancelUrl': value.cancelUrl,
|
|
58
|
+
'description': value.description,
|
|
59
|
+
'liveMode': value.liveMode,
|
|
60
|
+
'metadata': value.metadata,
|
|
61
|
+
'orderId': value.orderId,
|
|
62
|
+
'recipient': value.recipient,
|
|
63
|
+
'refunded': value.refunded,
|
|
64
|
+
'status': value.status,
|
|
65
|
+
'expiredAt': value.expiredAt,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.CryptoDotComPaymentResponseFromJSON = CryptoDotComPaymentResponseFromJSON;
|
|
70
|
+
exports.CryptoDotComPaymentResponseFromJSONTyped = CryptoDotComPaymentResponseFromJSONTyped;
|
|
71
|
+
exports.CryptoDotComPaymentResponseToJSON = CryptoDotComPaymentResponseToJSON;
|