@dynamic-labs/sdk-api 0.0.831 → 0.0.838

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 (103) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AllowlistsApi.cjs +1 -0
  3. package/src/apis/AllowlistsApi.js +1 -0
  4. package/src/apis/AnalyticsApi.cjs +1 -0
  5. package/src/apis/AnalyticsApi.js +1 -0
  6. package/src/apis/ChainalysisApi.cjs +1 -0
  7. package/src/apis/ChainalysisApi.js +1 -0
  8. package/src/apis/ChainsApi.cjs +1 -0
  9. package/src/apis/ChainsApi.js +1 -0
  10. package/src/apis/CustomFieldsApi.cjs +1 -0
  11. package/src/apis/CustomFieldsApi.js +1 -0
  12. package/src/apis/CustomHostnamesApi.cjs +1 -0
  13. package/src/apis/CustomHostnamesApi.js +1 -0
  14. package/src/apis/CustomNetworksApi.cjs +1 -0
  15. package/src/apis/CustomNetworksApi.js +1 -0
  16. package/src/apis/DeeplinkUrlsApi.cjs +1 -0
  17. package/src/apis/DeeplinkUrlsApi.js +1 -0
  18. package/src/apis/EnvironmentsApi.cjs +1 -0
  19. package/src/apis/EnvironmentsApi.js +1 -0
  20. package/src/apis/EventsApi.cjs +1 -0
  21. package/src/apis/EventsApi.js +1 -0
  22. package/src/apis/ExportsApi.cjs +1 -0
  23. package/src/apis/ExportsApi.js +1 -0
  24. package/src/apis/ExternalJwtApi.cjs +1 -0
  25. package/src/apis/ExternalJwtApi.js +1 -0
  26. package/src/apis/GatesApi.cjs +1 -0
  27. package/src/apis/GatesApi.js +1 -0
  28. package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
  29. package/src/apis/GlobalWalletAccessControlApi.js +1 -0
  30. package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
  31. package/src/apis/GlobalWalletConnectionsApi.js +1 -0
  32. package/src/apis/GlobalWalletsApi.cjs +1 -0
  33. package/src/apis/GlobalWalletsApi.js +1 -0
  34. package/src/apis/InvitesApi.cjs +1 -0
  35. package/src/apis/InvitesApi.js +1 -0
  36. package/src/apis/MembersApi.cjs +1 -0
  37. package/src/apis/MembersApi.js +1 -0
  38. package/src/apis/MfaSettingsApi.cjs +1 -0
  39. package/src/apis/MfaSettingsApi.js +1 -0
  40. package/src/apis/NameServicesApi.cjs +1 -0
  41. package/src/apis/NameServicesApi.js +1 -0
  42. package/src/apis/OrganizationsApi.cjs +1 -0
  43. package/src/apis/OrganizationsApi.js +1 -0
  44. package/src/apis/OriginsApi.cjs +1 -0
  45. package/src/apis/OriginsApi.js +1 -0
  46. package/src/apis/ProjectsApi.cjs +1 -0
  47. package/src/apis/ProjectsApi.js +1 -0
  48. package/src/apis/SDKApi.cjs +192 -0
  49. package/src/apis/SDKApi.d.ts +73 -1
  50. package/src/apis/SDKApi.js +192 -0
  51. package/src/apis/SDKViewsApi.cjs +1 -0
  52. package/src/apis/SDKViewsApi.js +1 -0
  53. package/src/apis/SessionsApi.cjs +1 -0
  54. package/src/apis/SessionsApi.js +1 -0
  55. package/src/apis/SettingsApi.cjs +1 -0
  56. package/src/apis/SettingsApi.js +1 -0
  57. package/src/apis/TestAccountApi.cjs +1 -0
  58. package/src/apis/TestAccountApi.js +1 -0
  59. package/src/apis/TokensApi.cjs +1 -0
  60. package/src/apis/TokensApi.js +1 -0
  61. package/src/apis/UserApiTokensApi.cjs +1 -0
  62. package/src/apis/UserApiTokensApi.js +1 -0
  63. package/src/apis/UsersApi.cjs +1 -0
  64. package/src/apis/UsersApi.js +1 -0
  65. package/src/apis/VisitsApi.cjs +1 -0
  66. package/src/apis/VisitsApi.js +1 -0
  67. package/src/apis/WaasApi.cjs +8 -0
  68. package/src/apis/WaasApi.js +8 -0
  69. package/src/apis/WalletsApi.cjs +1 -0
  70. package/src/apis/WalletsApi.js +1 -0
  71. package/src/apis/WebhooksApi.cjs +1 -0
  72. package/src/apis/WebhooksApi.js +1 -0
  73. package/src/index.cjs +28 -0
  74. package/src/index.js +6 -0
  75. package/src/models/CoinbaseOnrampBuyUrlExperience.cjs +40 -0
  76. package/src/models/CoinbaseOnrampBuyUrlExperience.d.ts +23 -0
  77. package/src/models/CoinbaseOnrampBuyUrlExperience.js +34 -0
  78. package/src/models/CoinbaseOnrampGetBuyUrlRequest.cjs +58 -0
  79. package/src/models/CoinbaseOnrampGetBuyUrlRequest.d.ts +100 -0
  80. package/src/models/CoinbaseOnrampGetBuyUrlRequest.js +52 -0
  81. package/src/models/CoinbaseOnrampGetBuyUrlResponse.cjs +43 -0
  82. package/src/models/CoinbaseOnrampGetBuyUrlResponse.d.ts +27 -0
  83. package/src/models/CoinbaseOnrampGetBuyUrlResponse.js +37 -0
  84. package/src/models/CryptoDotComPaymentCreateRequest.cjs +50 -0
  85. package/src/models/CryptoDotComPaymentCreateRequest.d.ts +76 -0
  86. package/src/models/CryptoDotComPaymentCreateRequest.js +44 -0
  87. package/src/models/CryptoDotComPaymentResponse.cjs +71 -0
  88. package/src/models/CryptoDotComPaymentResponse.d.ts +141 -0
  89. package/src/models/CryptoDotComPaymentResponse.js +65 -0
  90. package/src/models/DynamicJwt.cjs +2 -0
  91. package/src/models/DynamicJwt.d.ts +6 -0
  92. package/src/models/DynamicJwt.js +2 -0
  93. package/src/models/ExternalAuth.d.ts +1 -1
  94. package/src/models/GeneratedTokenResponse.cjs +43 -0
  95. package/src/models/GeneratedTokenResponse.d.ts +27 -0
  96. package/src/models/GeneratedTokenResponse.js +37 -0
  97. package/src/models/MinifiedDynamicJwt.cjs +2 -0
  98. package/src/models/MinifiedDynamicJwt.d.ts +6 -0
  99. package/src/models/MinifiedDynamicJwt.js +2 -0
  100. package/src/models/TokenBalance.cjs +2 -0
  101. package/src/models/TokenBalance.d.ts +6 -0
  102. package/src/models/TokenBalance.js +2 -0
  103. package/src/models/index.d.ts +6 -0
@@ -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;
@@ -0,0 +1,141 @@
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 CryptoDotComPaymentResponse
16
+ */
17
+ export interface CryptoDotComPaymentResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CryptoDotComPaymentResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ * 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.
26
+ * @type {number}
27
+ * @memberof CryptoDotComPaymentResponse
28
+ */
29
+ amount: number;
30
+ /**
31
+ * 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.
32
+ * @type {string}
33
+ * @memberof CryptoDotComPaymentResponse
34
+ */
35
+ currency: string;
36
+ /**
37
+ * Amount in cents refunded (can be less than the amount of the payment if a partial refund was issued).
38
+ * @type {number}
39
+ * @memberof CryptoDotComPaymentResponse
40
+ */
41
+ amountRefunded?: number;
42
+ /**
43
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
44
+ * @type {number}
45
+ * @memberof CryptoDotComPaymentResponse
46
+ */
47
+ created?: number;
48
+ /**
49
+ * The cryptocurrency to be collected for this payment.
50
+ * @type {string}
51
+ * @memberof CryptoDotComPaymentResponse
52
+ */
53
+ cryptoCurrency?: string;
54
+ /**
55
+ * The amount of cryptocurrency to be collected for this payment.
56
+ * @type {string}
57
+ * @memberof CryptoDotComPaymentResponse
58
+ */
59
+ cryptoAmount?: string;
60
+ /**
61
+ * ID of the customer created in Crypto.com Pay Merchant Dashboard, if exists.
62
+ * @type {string}
63
+ * @memberof CryptoDotComPaymentResponse
64
+ */
65
+ customerId?: string;
66
+ /**
67
+ * The URL of the payment page that customers will navigate to in order to make the payment.
68
+ * @type {string}
69
+ * @memberof CryptoDotComPaymentResponse
70
+ */
71
+ paymentUrl: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CryptoDotComPaymentResponse
76
+ */
77
+ qrCode: string;
78
+ /**
79
+ * The URL for payment page to redirect back to when the payment becomes succeeded.
80
+ * @type {string}
81
+ * @memberof CryptoDotComPaymentResponse
82
+ */
83
+ returnUrl?: string;
84
+ /**
85
+ * The URL for payment page to redirect to when the payment is failed or cancelled.
86
+ * @type {string}
87
+ * @memberof CryptoDotComPaymentResponse
88
+ */
89
+ cancelUrl?: string;
90
+ /**
91
+ * An arbitrary string attached to the object.
92
+ * @type {string}
93
+ * @memberof CryptoDotComPaymentResponse
94
+ */
95
+ description?: string;
96
+ /**
97
+ * Has the value true if the object exists in live mode or the value false if the object exists in test mode.
98
+ * @type {boolean}
99
+ * @memberof CryptoDotComPaymentResponse
100
+ */
101
+ liveMode?: boolean;
102
+ /**
103
+ * 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.
104
+ * @type {object}
105
+ * @memberof CryptoDotComPaymentResponse
106
+ */
107
+ metadata?: object;
108
+ /**
109
+ * Merchant provided order ID for this payment. Merchants can view the associated order ID of each payment on the Merchant Dashboard. Crypto.com Pay does not verify or guarantee the uniqueness of the values in this field.
110
+ * @type {string}
111
+ * @memberof CryptoDotComPaymentResponse
112
+ */
113
+ orderId?: string;
114
+ /**
115
+ * The name of the merchant collecting this payment.
116
+ * @type {string}
117
+ * @memberof CryptoDotComPaymentResponse
118
+ */
119
+ recipient?: string;
120
+ /**
121
+ * Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
122
+ * @type {boolean}
123
+ * @memberof CryptoDotComPaymentResponse
124
+ */
125
+ refunded?: boolean;
126
+ /**
127
+ * The status of the payment is either pending (pending payment), succeeded (payment captured), or cancelled.
128
+ * @type {string}
129
+ * @memberof CryptoDotComPaymentResponse
130
+ */
131
+ status: string;
132
+ /**
133
+ * Time at which the payment expires. Measured in seconds since the Unix epoch.
134
+ * @type {number}
135
+ * @memberof CryptoDotComPaymentResponse
136
+ */
137
+ expiredAt?: number;
138
+ }
139
+ export declare function CryptoDotComPaymentResponseFromJSON(json: any): CryptoDotComPaymentResponse;
140
+ export declare function CryptoDotComPaymentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoDotComPaymentResponse;
141
+ export declare function CryptoDotComPaymentResponseToJSON(value?: CryptoDotComPaymentResponse | null): any;
@@ -0,0 +1,65 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function CryptoDotComPaymentResponseFromJSON(json) {
5
+ return CryptoDotComPaymentResponseFromJSONTyped(json);
6
+ }
7
+ function CryptoDotComPaymentResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'id': json['id'],
13
+ 'amount': json['amount'],
14
+ 'currency': json['currency'],
15
+ 'amountRefunded': !exists(json, 'amountRefunded') ? undefined : json['amountRefunded'],
16
+ 'created': !exists(json, 'created') ? undefined : json['created'],
17
+ 'cryptoCurrency': !exists(json, 'cryptoCurrency') ? undefined : json['cryptoCurrency'],
18
+ 'cryptoAmount': !exists(json, 'cryptoAmount') ? undefined : json['cryptoAmount'],
19
+ 'customerId': !exists(json, 'customerId') ? undefined : json['customerId'],
20
+ 'paymentUrl': json['paymentUrl'],
21
+ 'qrCode': json['qrCode'],
22
+ 'returnUrl': !exists(json, 'returnUrl') ? undefined : json['returnUrl'],
23
+ 'cancelUrl': !exists(json, 'cancelUrl') ? undefined : json['cancelUrl'],
24
+ 'description': !exists(json, 'description') ? undefined : json['description'],
25
+ 'liveMode': !exists(json, 'liveMode') ? undefined : json['liveMode'],
26
+ 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
27
+ 'orderId': !exists(json, 'orderId') ? undefined : json['orderId'],
28
+ 'recipient': !exists(json, 'recipient') ? undefined : json['recipient'],
29
+ 'refunded': !exists(json, 'refunded') ? undefined : json['refunded'],
30
+ 'status': json['status'],
31
+ 'expiredAt': !exists(json, 'expiredAt') ? undefined : json['expiredAt'],
32
+ };
33
+ }
34
+ function CryptoDotComPaymentResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'id': value.id,
43
+ 'amount': value.amount,
44
+ 'currency': value.currency,
45
+ 'amountRefunded': value.amountRefunded,
46
+ 'created': value.created,
47
+ 'cryptoCurrency': value.cryptoCurrency,
48
+ 'cryptoAmount': value.cryptoAmount,
49
+ 'customerId': value.customerId,
50
+ 'paymentUrl': value.paymentUrl,
51
+ 'qrCode': value.qrCode,
52
+ 'returnUrl': value.returnUrl,
53
+ 'cancelUrl': value.cancelUrl,
54
+ 'description': value.description,
55
+ 'liveMode': value.liveMode,
56
+ 'metadata': value.metadata,
57
+ 'orderId': value.orderId,
58
+ 'recipient': value.recipient,
59
+ 'refunded': value.refunded,
60
+ 'status': value.status,
61
+ 'expiredAt': value.expiredAt,
62
+ };
63
+ }
64
+
65
+ export { CryptoDotComPaymentResponseFromJSON, CryptoDotComPaymentResponseFromJSONTyped, CryptoDotComPaymentResponseToJSON };
@@ -62,6 +62,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'verifiedCredentialsHashes': !runtime.exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
63
63
  'info': !runtime.exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoFromJSON(json['info']),
64
64
  'serverAuth': !runtime.exists(json, 'server_auth') ? undefined : json['server_auth'],
65
+ 'hashedIp': !runtime.exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
65
66
  };
66
67
  }
67
68
  function DynamicJwtToJSON(value) {
@@ -116,6 +117,7 @@ function DynamicJwtToJSON(value) {
116
117
  'verifiedCredentialsHashes': JwtVerifiedCredentialHashes.JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
117
118
  'info': JwtPayloadDeprecatedInfo.JwtPayloadDeprecatedInfoToJSON(value.info),
118
119
  'server_auth': value.serverAuth,
120
+ 'hashed_ip': value.hashedIp,
119
121
  };
120
122
  }
121
123
 
@@ -284,6 +284,12 @@ export interface DynamicJwt {
284
284
  * @memberof DynamicJwt
285
285
  */
286
286
  serverAuth?: boolean;
287
+ /**
288
+ * Hashed IP address
289
+ * @type {string}
290
+ * @memberof DynamicJwt
291
+ */
292
+ hashedIp?: string;
287
293
  }
288
294
  export declare function DynamicJwtFromJSON(json: any): DynamicJwt;
289
295
  export declare function DynamicJwtFromJSONTyped(json: any, ignoreDiscriminator: boolean): DynamicJwt;
@@ -58,6 +58,7 @@ function DynamicJwtFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'verifiedCredentialsHashes': !exists(json, 'verifiedCredentialsHashes') ? undefined : JwtVerifiedCredentialHashesFromJSON(json['verifiedCredentialsHashes']),
59
59
  'info': !exists(json, 'info') ? undefined : JwtPayloadDeprecatedInfoFromJSON(json['info']),
60
60
  'serverAuth': !exists(json, 'server_auth') ? undefined : json['server_auth'],
61
+ 'hashedIp': !exists(json, 'hashed_ip') ? undefined : json['hashed_ip'],
61
62
  };
62
63
  }
63
64
  function DynamicJwtToJSON(value) {
@@ -112,6 +113,7 @@ function DynamicJwtToJSON(value) {
112
113
  'verifiedCredentialsHashes': JwtVerifiedCredentialHashesToJSON(value.verifiedCredentialsHashes),
113
114
  'info': JwtPayloadDeprecatedInfoToJSON(value.info),
114
115
  'server_auth': value.serverAuth,
116
+ 'hashed_ip': value.hashedIp,
115
117
  };
116
118
  }
117
119
 
@@ -38,7 +38,7 @@ export interface ExternalAuth {
38
38
  * @type {string}
39
39
  * @memberof ExternalAuth
40
40
  */
41
- jwksUrl?: string | null;
41
+ jwksUrl?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}