@dynamic-labs/sdk-api-core 0.0.826 → 0.0.828
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 +149 -0
- package/src/apis/SDKApi.d.ts +49 -1
- package/src/apis/SDKApi.js +149 -0
- package/src/apis/WaasApi.cjs +5 -0
- package/src/apis/WaasApi.js +5 -0
- package/src/index.cjs +76 -0
- package/src/index.js +14 -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/CreateRoomsRequest.cjs +36 -0
- package/src/models/CreateRoomsRequest.d.ts +34 -0
- package/src/models/CreateRoomsRequest.js +30 -0
- package/src/models/CreateRoomsResponse.cjs +43 -0
- package/src/models/CreateRoomsResponse.d.ts +27 -0
- package/src/models/CreateRoomsResponse.js +37 -0
- package/src/models/CreateRoomsWithoutWalletIdRequest.cjs +39 -0
- package/src/models/CreateRoomsWithoutWalletIdRequest.d.ts +41 -0
- package/src/models/CreateRoomsWithoutWalletIdRequest.js +33 -0
- package/src/models/CreateRoomsWithoutWalletIdResponse.cjs +43 -0
- package/src/models/CreateRoomsWithoutWalletIdResponse.d.ts +27 -0
- package/src/models/CreateRoomsWithoutWalletIdResponse.js +37 -0
- package/src/models/RoomTypeEnum.cjs +40 -0
- package/src/models/RoomTypeEnum.d.ts +23 -0
- package/src/models/RoomTypeEnum.js +34 -0
- package/src/models/index.d.ts +14 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var CoinbaseOnrampFeeType = require('./CoinbaseOnrampFeeType.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function CoinbaseOnrampFeeFromJSON(json) {
|
|
9
|
+
return CoinbaseOnrampFeeFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function CoinbaseOnrampFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'type': CoinbaseOnrampFeeType.CoinbaseOnrampFeeTypeFromJSON(json['type']),
|
|
17
|
+
'amount': json['amount'],
|
|
18
|
+
'currency': json['currency'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function CoinbaseOnrampFeeToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'type': CoinbaseOnrampFeeType.CoinbaseOnrampFeeTypeToJSON(value.type),
|
|
30
|
+
'amount': value.amount,
|
|
31
|
+
'currency': value.currency,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.CoinbaseOnrampFeeFromJSON = CoinbaseOnrampFeeFromJSON;
|
|
36
|
+
exports.CoinbaseOnrampFeeFromJSONTyped = CoinbaseOnrampFeeFromJSONTyped;
|
|
37
|
+
exports.CoinbaseOnrampFeeToJSON = CoinbaseOnrampFeeToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { CoinbaseOnrampFeeType } from './CoinbaseOnrampFeeType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CoinbaseOnrampFee
|
|
17
|
+
*/
|
|
18
|
+
export interface CoinbaseOnrampFee {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CoinbaseOnrampFeeType}
|
|
22
|
+
* @memberof CoinbaseOnrampFee
|
|
23
|
+
*/
|
|
24
|
+
type: CoinbaseOnrampFeeType;
|
|
25
|
+
/**
|
|
26
|
+
* Digits with optional decimal part; if dot present, must have digits after it
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CoinbaseOnrampFee
|
|
29
|
+
*/
|
|
30
|
+
amount: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CoinbaseOnrampFee
|
|
35
|
+
*/
|
|
36
|
+
currency: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function CoinbaseOnrampFeeFromJSON(json: any): CoinbaseOnrampFee;
|
|
39
|
+
export declare function CoinbaseOnrampFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampFee;
|
|
40
|
+
export declare function CoinbaseOnrampFeeToJSON(value?: CoinbaseOnrampFee | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CoinbaseOnrampFeeTypeFromJSON, CoinbaseOnrampFeeTypeToJSON } from './CoinbaseOnrampFeeType.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function CoinbaseOnrampFeeFromJSON(json) {
|
|
5
|
+
return CoinbaseOnrampFeeFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function CoinbaseOnrampFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'type': CoinbaseOnrampFeeTypeFromJSON(json['type']),
|
|
13
|
+
'amount': json['amount'],
|
|
14
|
+
'currency': json['currency'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function CoinbaseOnrampFeeToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'type': CoinbaseOnrampFeeTypeToJSON(value.type),
|
|
26
|
+
'amount': value.amount,
|
|
27
|
+
'currency': value.currency,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CoinbaseOnrampFeeFromJSON, CoinbaseOnrampFeeFromJSONTyped, CoinbaseOnrampFeeToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
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 fee.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.CoinbaseOnrampFeeType = void 0;
|
|
24
|
+
(function (CoinbaseOnrampFeeType) {
|
|
25
|
+
CoinbaseOnrampFeeType["Network"] = "FEE_TYPE_NETWORK";
|
|
26
|
+
CoinbaseOnrampFeeType["Exchange"] = "FEE_TYPE_EXCHANGE";
|
|
27
|
+
})(exports.CoinbaseOnrampFeeType || (exports.CoinbaseOnrampFeeType = {}));
|
|
28
|
+
function CoinbaseOnrampFeeTypeFromJSON(json) {
|
|
29
|
+
return CoinbaseOnrampFeeTypeFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function CoinbaseOnrampFeeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function CoinbaseOnrampFeeTypeToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.CoinbaseOnrampFeeTypeFromJSON = CoinbaseOnrampFeeTypeFromJSON;
|
|
39
|
+
exports.CoinbaseOnrampFeeTypeFromJSONTyped = CoinbaseOnrampFeeTypeFromJSONTyped;
|
|
40
|
+
exports.CoinbaseOnrampFeeTypeToJSON = CoinbaseOnrampFeeTypeToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 fee.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CoinbaseOnrampFeeType {
|
|
18
|
+
Network = "FEE_TYPE_NETWORK",
|
|
19
|
+
Exchange = "FEE_TYPE_EXCHANGE"
|
|
20
|
+
}
|
|
21
|
+
export declare function CoinbaseOnrampFeeTypeFromJSON(json: any): CoinbaseOnrampFeeType;
|
|
22
|
+
export declare function CoinbaseOnrampFeeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampFeeType;
|
|
23
|
+
export declare function CoinbaseOnrampFeeTypeToJSON(value?: CoinbaseOnrampFeeType | null): any;
|
|
@@ -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
|
+
* The type of fee.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var CoinbaseOnrampFeeType;
|
|
20
|
+
(function (CoinbaseOnrampFeeType) {
|
|
21
|
+
CoinbaseOnrampFeeType["Network"] = "FEE_TYPE_NETWORK";
|
|
22
|
+
CoinbaseOnrampFeeType["Exchange"] = "FEE_TYPE_EXCHANGE";
|
|
23
|
+
})(CoinbaseOnrampFeeType || (CoinbaseOnrampFeeType = {}));
|
|
24
|
+
function CoinbaseOnrampFeeTypeFromJSON(json) {
|
|
25
|
+
return CoinbaseOnrampFeeTypeFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function CoinbaseOnrampFeeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function CoinbaseOnrampFeeTypeToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { CoinbaseOnrampFeeType, CoinbaseOnrampFeeTypeFromJSON, CoinbaseOnrampFeeTypeFromJSONTyped, CoinbaseOnrampFeeTypeToJSON };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CoinbaseOnrampFee = require('./CoinbaseOnrampFee.cjs');
|
|
7
|
+
var CoinbaseOnrampOrderPaymentMethod = require('./CoinbaseOnrampOrderPaymentMethod.cjs');
|
|
8
|
+
var CoinbaseOnrampOrderStatus = require('./CoinbaseOnrampOrderStatus.cjs');
|
|
9
|
+
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
function CoinbaseOnrampOrderFromJSON(json) {
|
|
12
|
+
return CoinbaseOnrampOrderFromJSONTyped(json);
|
|
13
|
+
}
|
|
14
|
+
function CoinbaseOnrampOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if ((json === undefined) || (json === null)) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
'orderId': json['orderId'],
|
|
20
|
+
'paymentTotal': json['paymentTotal'],
|
|
21
|
+
'paymentSubtotal': json['paymentSubtotal'],
|
|
22
|
+
'paymentCurrency': json['paymentCurrency'],
|
|
23
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethod.CoinbaseOnrampOrderPaymentMethodFromJSON(json['paymentMethod']),
|
|
24
|
+
'purchaseAmount': json['purchaseAmount'],
|
|
25
|
+
'purchaseCurrency': json['purchaseCurrency'],
|
|
26
|
+
'fees': (json['fees'].map(CoinbaseOnrampFee.CoinbaseOnrampFeeFromJSON)),
|
|
27
|
+
'exchangeRate': json['exchangeRate'],
|
|
28
|
+
'destinationAddress': json['destinationAddress'],
|
|
29
|
+
'destinationNetwork': json['destinationNetwork'],
|
|
30
|
+
'status': CoinbaseOnrampOrderStatus.CoinbaseOnrampOrderStatusFromJSON(json['status']),
|
|
31
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
32
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
33
|
+
'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
|
|
34
|
+
'partnerUserRef': !runtime.exists(json, 'partnerUserRef') ? undefined : json['partnerUserRef'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function CoinbaseOnrampOrderToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'orderId': value.orderId,
|
|
46
|
+
'paymentTotal': value.paymentTotal,
|
|
47
|
+
'paymentSubtotal': value.paymentSubtotal,
|
|
48
|
+
'paymentCurrency': value.paymentCurrency,
|
|
49
|
+
'paymentMethod': CoinbaseOnrampOrderPaymentMethod.CoinbaseOnrampOrderPaymentMethodToJSON(value.paymentMethod),
|
|
50
|
+
'purchaseAmount': value.purchaseAmount,
|
|
51
|
+
'purchaseCurrency': value.purchaseCurrency,
|
|
52
|
+
'fees': (value.fees.map(CoinbaseOnrampFee.CoinbaseOnrampFeeToJSON)),
|
|
53
|
+
'exchangeRate': value.exchangeRate,
|
|
54
|
+
'destinationAddress': value.destinationAddress,
|
|
55
|
+
'destinationNetwork': value.destinationNetwork,
|
|
56
|
+
'status': CoinbaseOnrampOrderStatus.CoinbaseOnrampOrderStatusToJSON(value.status),
|
|
57
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
58
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
59
|
+
'txHash': value.txHash,
|
|
60
|
+
'partnerUserRef': value.partnerUserRef,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
exports.CoinbaseOnrampOrderFromJSON = CoinbaseOnrampOrderFromJSON;
|
|
65
|
+
exports.CoinbaseOnrampOrderFromJSONTyped = CoinbaseOnrampOrderFromJSONTyped;
|
|
66
|
+
exports.CoinbaseOnrampOrderToJSON = CoinbaseOnrampOrderToJSON;
|
|
@@ -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 };
|