@dynamic-labs/sdk-api 0.0.837 → 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.
Files changed (97) 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 +104 -2
  49. package/src/apis/SDKApi.d.ts +37 -3
  50. package/src/apis/SDKApi.js +104 -2
  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 +1 -0
  68. package/src/apis/WaasApi.js +1 -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/Account.d.ts +1 -1
  76. package/src/models/CryptoDotComPaymentCreateRequest.cjs +15 -10
  77. package/src/models/CryptoDotComPaymentCreateRequest.d.ts +28 -15
  78. package/src/models/CryptoDotComPaymentCreateRequest.js +15 -10
  79. package/src/models/CryptoDotComPaymentResponse.cjs +71 -0
  80. package/src/models/CryptoDotComPaymentResponse.d.ts +141 -0
  81. package/src/models/CryptoDotComPaymentResponse.js +65 -0
  82. package/src/models/WalletTransaction.cjs +55 -0
  83. package/src/models/WalletTransaction.d.ts +90 -0
  84. package/src/models/WalletTransaction.js +49 -0
  85. package/src/models/WalletTransactionAssetTransfer.cjs +42 -0
  86. package/src/models/WalletTransactionAssetTransfer.d.ts +52 -0
  87. package/src/models/WalletTransactionAssetTransfer.js +36 -0
  88. package/src/models/WalletTransactionAssetTransferMetadata.cjs +39 -0
  89. package/src/models/WalletTransactionAssetTransferMetadata.d.ts +45 -0
  90. package/src/models/WalletTransactionAssetTransferMetadata.js +33 -0
  91. package/src/models/WalletTransactionType.cjs +41 -0
  92. package/src/models/WalletTransactionType.d.ts +24 -0
  93. package/src/models/WalletTransactionType.js +35 -0
  94. package/src/models/WalletTransactionsResponse.cjs +36 -0
  95. package/src/models/WalletTransactionsResponse.d.ts +34 -0
  96. package/src/models/WalletTransactionsResponse.js +30 -0
  97. package/src/models/index.d.ts +6 -0
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ChainEnum } from './ChainEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,47 +17,59 @@
16
17
  */
17
18
  export interface CryptoDotComPaymentCreateRequest {
18
19
  /**
19
- * Valid blockchain wallet address, must be an alphanumeric string without any special characters
20
- * @type {string}
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}
21
22
  * @memberof CryptoDotComPaymentCreateRequest
22
23
  */
23
- walletAddress: string;
24
+ amount: number;
24
25
  /**
25
- * The blockchain network (e.g., ethereum, polygon, solana, evm)
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.
26
27
  * @type {string}
27
28
  * @memberof CryptoDotComPaymentCreateRequest
28
29
  */
29
- chain: string;
30
+ currency: string;
30
31
  /**
31
- * The network ID for EVM chains (e.g., 1 for Ethereum mainnet, 137 for Polygon)
32
+ *
32
33
  * @type {string}
33
34
  * @memberof CryptoDotComPaymentCreateRequest
34
35
  */
35
- networkId?: string;
36
+ description?: string;
36
37
  /**
37
- * The token symbol to purchase
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
+ *
38
45
  * @type {string}
39
46
  * @memberof CryptoDotComPaymentCreateRequest
40
47
  */
41
- token?: string;
48
+ orderId?: string;
42
49
  /**
43
- * The amount in fiat currency to spend
44
- * @type {number}
50
+ *
51
+ * @type {string}
45
52
  * @memberof CryptoDotComPaymentCreateRequest
46
53
  */
47
- tokenAmount?: number;
54
+ subMerchantId?: string;
48
55
  /**
49
- * The fiat currency code (e.g., USD, EUR)
56
+ * Valid blockchain wallet address, must be an alphanumeric string without any special characters
50
57
  * @type {string}
51
58
  * @memberof CryptoDotComPaymentCreateRequest
52
59
  */
53
- currency?: string;
60
+ walletAddress: string;
54
61
  /**
55
62
  *
56
63
  * @type {string}
57
64
  * @memberof CryptoDotComPaymentCreateRequest
58
65
  */
59
- merchantName?: string;
66
+ networkId?: string;
67
+ /**
68
+ *
69
+ * @type {ChainEnum}
70
+ * @memberof CryptoDotComPaymentCreateRequest
71
+ */
72
+ chain: ChainEnum;
60
73
  }
61
74
  export declare function CryptoDotComPaymentCreateRequestFromJSON(json: any): CryptoDotComPaymentCreateRequest;
62
75
  export declare function CryptoDotComPaymentCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoDotComPaymentCreateRequest;
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
3
 
3
4
  /* tslint:disable */
4
5
  function CryptoDotComPaymentCreateRequestFromJSON(json) {
@@ -9,13 +10,15 @@ function CryptoDotComPaymentCreateRequestFromJSONTyped(json, ignoreDiscriminator
9
10
  return json;
10
11
  }
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'],
12
19
  'walletAddress': json['walletAddress'],
13
- 'chain': json['chain'],
14
20
  'networkId': !exists(json, 'networkId') ? undefined : json['networkId'],
15
- 'token': !exists(json, 'token') ? undefined : json['token'],
16
- 'tokenAmount': !exists(json, 'tokenAmount') ? undefined : json['tokenAmount'],
17
- 'currency': !exists(json, 'currency') ? undefined : json['currency'],
18
- 'merchantName': !exists(json, 'merchantName') ? undefined : json['merchantName'],
21
+ 'chain': ChainEnumFromJSON(json['chain']),
19
22
  };
20
23
  }
21
24
  function CryptoDotComPaymentCreateRequestToJSON(value) {
@@ -26,13 +29,15 @@ function CryptoDotComPaymentCreateRequestToJSON(value) {
26
29
  return null;
27
30
  }
28
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,
29
38
  'walletAddress': value.walletAddress,
30
- 'chain': value.chain,
31
39
  'networkId': value.networkId,
32
- 'token': value.token,
33
- 'tokenAmount': value.tokenAmount,
34
- 'currency': value.currency,
35
- 'merchantName': value.merchantName,
40
+ 'chain': ChainEnumToJSON(value.chain),
36
41
  };
37
42
  }
38
43
 
@@ -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 };
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ChainEnum = require('./ChainEnum.cjs');
6
+ var WalletTransactionAssetTransfer = require('./WalletTransactionAssetTransfer.cjs');
7
+ var WalletTransactionType = require('./WalletTransactionType.cjs');
8
+
9
+ /* tslint:disable */
10
+ function WalletTransactionFromJSON(json) {
11
+ return WalletTransactionFromJSONTyped(json);
12
+ }
13
+ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'transactionHash': json['transactionHash'],
19
+ 'blockNumber': json['blockNumber'],
20
+ 'transactionTimestamp': (new Date(json['transactionTimestamp'])),
21
+ 'blockHash': json['blockHash'],
22
+ 'blockExplorerUrls': json['blockExplorerUrls'],
23
+ 'fromAddress': json['fromAddress'],
24
+ 'toAddress': json['toAddress'],
25
+ 'labels': (json['labels'].map(WalletTransactionType.WalletTransactionTypeFromJSON)),
26
+ 'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSON)),
27
+ 'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
28
+ 'networkId': json['networkId'],
29
+ };
30
+ }
31
+ function WalletTransactionToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'transactionHash': value.transactionHash,
40
+ 'blockNumber': value.blockNumber,
41
+ 'transactionTimestamp': (value.transactionTimestamp.toISOString()),
42
+ 'blockHash': value.blockHash,
43
+ 'blockExplorerUrls': value.blockExplorerUrls,
44
+ 'fromAddress': value.fromAddress,
45
+ 'toAddress': value.toAddress,
46
+ 'labels': (value.labels.map(WalletTransactionType.WalletTransactionTypeToJSON)),
47
+ 'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransfer.WalletTransactionAssetTransferToJSON)),
48
+ 'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
49
+ 'networkId': value.networkId,
50
+ };
51
+ }
52
+
53
+ exports.WalletTransactionFromJSON = WalletTransactionFromJSON;
54
+ exports.WalletTransactionFromJSONTyped = WalletTransactionFromJSONTyped;
55
+ exports.WalletTransactionToJSON = WalletTransactionToJSON;
@@ -0,0 +1,90 @@
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
+ import { WalletTransactionAssetTransfer } from './WalletTransactionAssetTransfer';
14
+ import { WalletTransactionType } from './WalletTransactionType';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface WalletTransaction
19
+ */
20
+ export interface WalletTransaction {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof WalletTransaction
25
+ */
26
+ transactionHash: string;
27
+ /**
28
+ * Block number of the transaction
29
+ * @type {number}
30
+ * @memberof WalletTransaction
31
+ */
32
+ blockNumber: number;
33
+ /**
34
+ * Timestamp of the transaction
35
+ * @type {Date}
36
+ * @memberof WalletTransaction
37
+ */
38
+ transactionTimestamp: Date;
39
+ /**
40
+ * Hash of the block that contains the transaction
41
+ * @type {string}
42
+ * @memberof WalletTransaction
43
+ */
44
+ blockHash: string;
45
+ /**
46
+ * URLs to the block explorer for the transaction
47
+ * @type {Array<string>}
48
+ * @memberof WalletTransaction
49
+ */
50
+ blockExplorerUrls: Array<string>;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof WalletTransaction
55
+ */
56
+ fromAddress: string;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof WalletTransaction
61
+ */
62
+ toAddress: string;
63
+ /**
64
+ *
65
+ * @type {Array<WalletTransactionType>}
66
+ * @memberof WalletTransaction
67
+ */
68
+ labels: Array<WalletTransactionType>;
69
+ /**
70
+ *
71
+ * @type {Array<WalletTransactionAssetTransfer>}
72
+ * @memberof WalletTransaction
73
+ */
74
+ assetTransfers: Array<WalletTransactionAssetTransfer>;
75
+ /**
76
+ *
77
+ * @type {ChainEnum}
78
+ * @memberof WalletTransaction
79
+ */
80
+ chainName: ChainEnum;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof WalletTransaction
85
+ */
86
+ networkId: number;
87
+ }
88
+ export declare function WalletTransactionFromJSON(json: any): WalletTransaction;
89
+ export declare function WalletTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletTransaction;
90
+ export declare function WalletTransactionToJSON(value?: WalletTransaction | null): any;
@@ -0,0 +1,49 @@
1
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
+ import { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferToJSON } from './WalletTransactionAssetTransfer.js';
3
+ import { WalletTransactionTypeFromJSON, WalletTransactionTypeToJSON } from './WalletTransactionType.js';
4
+
5
+ /* tslint:disable */
6
+ function WalletTransactionFromJSON(json) {
7
+ return WalletTransactionFromJSONTyped(json);
8
+ }
9
+ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'transactionHash': json['transactionHash'],
15
+ 'blockNumber': json['blockNumber'],
16
+ 'transactionTimestamp': (new Date(json['transactionTimestamp'])),
17
+ 'blockHash': json['blockHash'],
18
+ 'blockExplorerUrls': json['blockExplorerUrls'],
19
+ 'fromAddress': json['fromAddress'],
20
+ 'toAddress': json['toAddress'],
21
+ 'labels': (json['labels'].map(WalletTransactionTypeFromJSON)),
22
+ 'assetTransfers': (json['assetTransfers'].map(WalletTransactionAssetTransferFromJSON)),
23
+ 'chainName': ChainEnumFromJSON(json['chainName']),
24
+ 'networkId': json['networkId'],
25
+ };
26
+ }
27
+ function WalletTransactionToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'transactionHash': value.transactionHash,
36
+ 'blockNumber': value.blockNumber,
37
+ 'transactionTimestamp': (value.transactionTimestamp.toISOString()),
38
+ 'blockHash': value.blockHash,
39
+ 'blockExplorerUrls': value.blockExplorerUrls,
40
+ 'fromAddress': value.fromAddress,
41
+ 'toAddress': value.toAddress,
42
+ 'labels': (value.labels.map(WalletTransactionTypeToJSON)),
43
+ 'assetTransfers': (value.assetTransfers.map(WalletTransactionAssetTransferToJSON)),
44
+ 'chainName': ChainEnumToJSON(value.chainName),
45
+ 'networkId': value.networkId,
46
+ };
47
+ }
48
+
49
+ export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON };
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WalletTransactionAssetTransferMetadata = require('./WalletTransactionAssetTransferMetadata.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WalletTransactionAssetTransferFromJSON(json) {
10
+ return WalletTransactionAssetTransferFromJSONTyped(json);
11
+ }
12
+ function WalletTransactionAssetTransferFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'tokenAddress': !runtime.exists(json, 'tokenAddress') ? undefined : json['tokenAddress'],
18
+ 'fromAddress': json['fromAddress'],
19
+ 'toAddress': json['toAddress'],
20
+ 'amount': json['amount'],
21
+ 'metadata': !runtime.exists(json, 'metadata') ? undefined : WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON(json['metadata']),
22
+ };
23
+ }
24
+ function WalletTransactionAssetTransferToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'tokenAddress': value.tokenAddress,
33
+ 'fromAddress': value.fromAddress,
34
+ 'toAddress': value.toAddress,
35
+ 'amount': value.amount,
36
+ 'metadata': WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON(value.metadata),
37
+ };
38
+ }
39
+
40
+ exports.WalletTransactionAssetTransferFromJSON = WalletTransactionAssetTransferFromJSON;
41
+ exports.WalletTransactionAssetTransferFromJSONTyped = WalletTransactionAssetTransferFromJSONTyped;
42
+ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransferToJSON;