@dynamic-labs/sdk-api-core 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.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +4 -0
  3. package/src/apis/SDKApi.js +4 -0
  4. package/src/apis/WaasApi.cjs +4 -0
  5. package/src/apis/WaasApi.js +4 -0
  6. package/src/index.cjs +52 -0
  7. package/src/index.js +9 -0
  8. package/src/models/CoinbaseOnrampFee.cjs +37 -0
  9. package/src/models/CoinbaseOnrampFee.d.ts +40 -0
  10. package/src/models/CoinbaseOnrampFee.js +31 -0
  11. package/src/models/CoinbaseOnrampFeeType.cjs +40 -0
  12. package/src/models/CoinbaseOnrampFeeType.d.ts +23 -0
  13. package/src/models/CoinbaseOnrampFeeType.js +34 -0
  14. package/src/models/CoinbaseOnrampOrder.cjs +66 -0
  15. package/src/models/CoinbaseOnrampOrder.d.ts +120 -0
  16. package/src/models/CoinbaseOnrampOrder.js +60 -0
  17. package/src/models/CoinbaseOnrampOrderCreateRequest.cjs +54 -0
  18. package/src/models/CoinbaseOnrampOrderCreateRequest.d.ts +88 -0
  19. package/src/models/CoinbaseOnrampOrderCreateRequest.js +48 -0
  20. package/src/models/CoinbaseOnrampOrderPaymentLinkType.cjs +39 -0
  21. package/src/models/CoinbaseOnrampOrderPaymentLinkType.d.ts +22 -0
  22. package/src/models/CoinbaseOnrampOrderPaymentLinkType.js +33 -0
  23. package/src/models/CoinbaseOnrampOrderPaymentMethod.cjs +39 -0
  24. package/src/models/CoinbaseOnrampOrderPaymentMethod.d.ts +22 -0
  25. package/src/models/CoinbaseOnrampOrderPaymentMethod.js +33 -0
  26. package/src/models/CoinbaseOnrampOrderResponse.cjs +37 -0
  27. package/src/models/CoinbaseOnrampOrderResponse.d.ts +35 -0
  28. package/src/models/CoinbaseOnrampOrderResponse.js +31 -0
  29. package/src/models/CoinbaseOnrampOrderResponsePaymentLink.cjs +35 -0
  30. package/src/models/CoinbaseOnrampOrderResponsePaymentLink.d.ts +34 -0
  31. package/src/models/CoinbaseOnrampOrderResponsePaymentLink.js +29 -0
  32. package/src/models/CoinbaseOnrampOrderStatus.cjs +43 -0
  33. package/src/models/CoinbaseOnrampOrderStatus.d.ts +26 -0
  34. package/src/models/CoinbaseOnrampOrderStatus.js +37 -0
  35. package/src/models/JwtVerifiedCredential.cjs +2 -0
  36. package/src/models/JwtVerifiedCredential.d.ts +6 -0
  37. package/src/models/JwtVerifiedCredential.js +2 -0
  38. package/src/models/index.d.ts +9 -0
@@ -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 };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var CoinbaseOnrampOrderPaymentLinkType = require('./CoinbaseOnrampOrderPaymentLinkType.cjs');
6
+
7
+ /* tslint:disable */
8
+ function CoinbaseOnrampOrderResponsePaymentLinkFromJSON(json) {
9
+ return CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped(json);
10
+ }
11
+ function CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'url': json['url'],
17
+ 'paymentLinkType': CoinbaseOnrampOrderPaymentLinkType.CoinbaseOnrampOrderPaymentLinkTypeFromJSON(json['paymentLinkType']),
18
+ };
19
+ }
20
+ function CoinbaseOnrampOrderResponsePaymentLinkToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'url': value.url,
29
+ 'paymentLinkType': CoinbaseOnrampOrderPaymentLinkType.CoinbaseOnrampOrderPaymentLinkTypeToJSON(value.paymentLinkType),
30
+ };
31
+ }
32
+
33
+ exports.CoinbaseOnrampOrderResponsePaymentLinkFromJSON = CoinbaseOnrampOrderResponsePaymentLinkFromJSON;
34
+ exports.CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped = CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped;
35
+ exports.CoinbaseOnrampOrderResponsePaymentLinkToJSON = CoinbaseOnrampOrderResponsePaymentLinkToJSON;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CoinbaseOnrampOrderPaymentLinkType } from './CoinbaseOnrampOrderPaymentLinkType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CoinbaseOnrampOrderResponsePaymentLink
17
+ */
18
+ export interface CoinbaseOnrampOrderResponsePaymentLink {
19
+ /**
20
+ * The URL to the hosted widget the user should be redirected to. For certain payment link types you can append your own redirect_url query parameter to this URL to ensure the user is redirected back to your app after the widget completes.
21
+ * @type {string}
22
+ * @memberof CoinbaseOnrampOrderResponsePaymentLink
23
+ */
24
+ url: string;
25
+ /**
26
+ *
27
+ * @type {CoinbaseOnrampOrderPaymentLinkType}
28
+ * @memberof CoinbaseOnrampOrderResponsePaymentLink
29
+ */
30
+ paymentLinkType: CoinbaseOnrampOrderPaymentLinkType;
31
+ }
32
+ export declare function CoinbaseOnrampOrderResponsePaymentLinkFromJSON(json: any): CoinbaseOnrampOrderResponsePaymentLink;
33
+ export declare function CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderResponsePaymentLink;
34
+ export declare function CoinbaseOnrampOrderResponsePaymentLinkToJSON(value?: CoinbaseOnrampOrderResponsePaymentLink | null): any;
@@ -0,0 +1,29 @@
1
+ import { CoinbaseOnrampOrderPaymentLinkTypeFromJSON, CoinbaseOnrampOrderPaymentLinkTypeToJSON } from './CoinbaseOnrampOrderPaymentLinkType.js';
2
+
3
+ /* tslint:disable */
4
+ function CoinbaseOnrampOrderResponsePaymentLinkFromJSON(json) {
5
+ return CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped(json);
6
+ }
7
+ function CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'url': json['url'],
13
+ 'paymentLinkType': CoinbaseOnrampOrderPaymentLinkTypeFromJSON(json['paymentLinkType']),
14
+ };
15
+ }
16
+ function CoinbaseOnrampOrderResponsePaymentLinkToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'url': value.url,
25
+ 'paymentLinkType': CoinbaseOnrampOrderPaymentLinkTypeToJSON(value.paymentLinkType),
26
+ };
27
+ }
28
+
29
+ export { CoinbaseOnrampOrderResponsePaymentLinkFromJSON, CoinbaseOnrampOrderResponsePaymentLinkFromJSONTyped, CoinbaseOnrampOrderResponsePaymentLinkToJSON };
@@ -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
+ /**
19
+ * The status of an onramp order.
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.CoinbaseOnrampOrderStatus = void 0;
24
+ (function (CoinbaseOnrampOrderStatus) {
25
+ CoinbaseOnrampOrderStatus["PendingAuth"] = "ONRAMP_ORDER_STATUS_PENDING_AUTH";
26
+ CoinbaseOnrampOrderStatus["PendingPayment"] = "ONRAMP_ORDER_STATUS_PENDING_PAYMENT";
27
+ CoinbaseOnrampOrderStatus["Processing"] = "ONRAMP_ORDER_STATUS_PROCESSING";
28
+ CoinbaseOnrampOrderStatus["Completed"] = "ONRAMP_ORDER_STATUS_COMPLETED";
29
+ CoinbaseOnrampOrderStatus["Failed"] = "ONRAMP_ORDER_STATUS_FAILED";
30
+ })(exports.CoinbaseOnrampOrderStatus || (exports.CoinbaseOnrampOrderStatus = {}));
31
+ function CoinbaseOnrampOrderStatusFromJSON(json) {
32
+ return CoinbaseOnrampOrderStatusFromJSONTyped(json);
33
+ }
34
+ function CoinbaseOnrampOrderStatusFromJSONTyped(json, ignoreDiscriminator) {
35
+ return json;
36
+ }
37
+ function CoinbaseOnrampOrderStatusToJSON(value) {
38
+ return value;
39
+ }
40
+
41
+ exports.CoinbaseOnrampOrderStatusFromJSON = CoinbaseOnrampOrderStatusFromJSON;
42
+ exports.CoinbaseOnrampOrderStatusFromJSONTyped = CoinbaseOnrampOrderStatusFromJSONTyped;
43
+ exports.CoinbaseOnrampOrderStatusToJSON = CoinbaseOnrampOrderStatusToJSON;
@@ -0,0 +1,26 @@
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 status of an onramp order.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum CoinbaseOnrampOrderStatus {
18
+ PendingAuth = "ONRAMP_ORDER_STATUS_PENDING_AUTH",
19
+ PendingPayment = "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
20
+ Processing = "ONRAMP_ORDER_STATUS_PROCESSING",
21
+ Completed = "ONRAMP_ORDER_STATUS_COMPLETED",
22
+ Failed = "ONRAMP_ORDER_STATUS_FAILED"
23
+ }
24
+ export declare function CoinbaseOnrampOrderStatusFromJSON(json: any): CoinbaseOnrampOrderStatus;
25
+ export declare function CoinbaseOnrampOrderStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinbaseOnrampOrderStatus;
26
+ export declare function CoinbaseOnrampOrderStatusToJSON(value?: CoinbaseOnrampOrderStatus | 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
+ /**
15
+ * The status of an onramp order.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var CoinbaseOnrampOrderStatus;
20
+ (function (CoinbaseOnrampOrderStatus) {
21
+ CoinbaseOnrampOrderStatus["PendingAuth"] = "ONRAMP_ORDER_STATUS_PENDING_AUTH";
22
+ CoinbaseOnrampOrderStatus["PendingPayment"] = "ONRAMP_ORDER_STATUS_PENDING_PAYMENT";
23
+ CoinbaseOnrampOrderStatus["Processing"] = "ONRAMP_ORDER_STATUS_PROCESSING";
24
+ CoinbaseOnrampOrderStatus["Completed"] = "ONRAMP_ORDER_STATUS_COMPLETED";
25
+ CoinbaseOnrampOrderStatus["Failed"] = "ONRAMP_ORDER_STATUS_FAILED";
26
+ })(CoinbaseOnrampOrderStatus || (CoinbaseOnrampOrderStatus = {}));
27
+ function CoinbaseOnrampOrderStatusFromJSON(json) {
28
+ return CoinbaseOnrampOrderStatusFromJSONTyped(json);
29
+ }
30
+ function CoinbaseOnrampOrderStatusFromJSONTyped(json, ignoreDiscriminator) {
31
+ return json;
32
+ }
33
+ function CoinbaseOnrampOrderStatusToJSON(value) {
34
+ return value;
35
+ }
36
+
37
+ export { CoinbaseOnrampOrderStatus, CoinbaseOnrampOrderStatusFromJSON, CoinbaseOnrampOrderStatusFromJSONTyped, CoinbaseOnrampOrderStatusToJSON };
@@ -46,6 +46,7 @@ function JwtVerifiedCredentialFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'walletAdditionalAddresses': !runtime.exists(json, 'wallet_additional_addresses') ? undefined : (json['wallet_additional_addresses'].map(WalletAdditionalAddress.WalletAdditionalAddressFromJSON)),
47
47
  'lastSelectedAt': !runtime.exists(json, 'lastSelectedAt') ? undefined : (new Date(json['lastSelectedAt'])),
48
48
  'signInEnabled': json['signInEnabled'],
49
+ 'verifiedAt': !runtime.exists(json, 'verifiedAt') ? undefined : (new Date(json['verifiedAt'])),
49
50
  };
50
51
  }
51
52
  function JwtVerifiedCredentialToJSON(value) {
@@ -83,6 +84,7 @@ function JwtVerifiedCredentialToJSON(value) {
83
84
  'wallet_additional_addresses': value.walletAdditionalAddresses === undefined ? undefined : (value.walletAdditionalAddresses.map(WalletAdditionalAddress.WalletAdditionalAddressToJSON)),
84
85
  'lastSelectedAt': value.lastSelectedAt === undefined ? undefined : (value.lastSelectedAt.toISOString()),
85
86
  'signInEnabled': value.signInEnabled,
87
+ 'verifiedAt': value.verifiedAt === undefined ? undefined : (value.verifiedAt.toISOString()),
86
88
  };
87
89
  }
88
90