@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
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RampConfiguration, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
13
+ import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletTransactionsResponse } from '../models';
14
14
  export interface AuthMfaEmailDeviceOptionsRequest {
15
15
  environmentId: string;
16
16
  }
@@ -486,6 +486,22 @@ export interface GetWaasWalletWithVerifiedCredentialsOptionsRequest {
486
486
  environmentId: string;
487
487
  walletAddress: string;
488
488
  }
489
+ export interface GetWalletTransactionsRequest {
490
+ environmentId: string;
491
+ chainName: ChainEnum;
492
+ address: string;
493
+ networkId: number;
494
+ limit?: number;
495
+ offset?: string;
496
+ }
497
+ export interface GetWalletTransactionsOptionsRequest {
498
+ environmentId: string;
499
+ chainName: ChainEnum;
500
+ address: string;
501
+ networkId: number;
502
+ limit?: number;
503
+ offset?: string;
504
+ }
489
505
  export interface GlobalWalletConnectionsOptionsRequest {
490
506
  environmentId: string;
491
507
  }
@@ -1209,12 +1225,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1209
1225
  * Create a Crypto.com payment and return the payment payload (URL and optional QR code)
1210
1226
  * Start Crypto.com payment
1211
1227
  */
1212
- createCryptoDotComPaymentRaw(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RampConfiguration>>;
1228
+ createCryptoDotComPaymentRaw(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<CryptoDotComPaymentResponse>>;
1213
1229
  /**
1214
1230
  * Create a Crypto.com payment and return the payment payload (URL and optional QR code)
1215
1231
  * Start Crypto.com payment
1216
1232
  */
1217
- createCryptoDotComPayment(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<RampConfiguration>;
1233
+ createCryptoDotComPayment(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<CryptoDotComPaymentResponse>;
1218
1234
  /**
1219
1235
  * Initialize email verification process
1220
1236
  */
@@ -2009,6 +2025,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2009
2025
  * Options call for this endpoint
2010
2026
  */
2011
2027
  getWaasWalletWithVerifiedCredentialsOptions(requestParameters: GetWaasWalletWithVerifiedCredentialsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2028
+ /**
2029
+ * Fetches the list of transactions for a given wallet address within an environment.
2030
+ * Get transactions for a wallet address
2031
+ */
2032
+ getWalletTransactionsRaw(requestParameters: GetWalletTransactionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WalletTransactionsResponse>>;
2033
+ /**
2034
+ * Fetches the list of transactions for a given wallet address within an environment.
2035
+ * Get transactions for a wallet address
2036
+ */
2037
+ getWalletTransactions(requestParameters: GetWalletTransactionsRequest, initOverrides?: RequestInit): Promise<WalletTransactionsResponse>;
2038
+ /**
2039
+ * Options call for this endpoint
2040
+ */
2041
+ getWalletTransactionsOptionsRaw(requestParameters: GetWalletTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2042
+ /**
2043
+ * Options call for this endpoint
2044
+ */
2045
+ getWalletTransactionsOptions(requestParameters: GetWalletTransactionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2012
2046
  /**
2013
2047
  * Options call for this endpoint
2014
2048
  */
@@ -63,6 +63,7 @@ import '../models/WaasChainEnum.js';
63
63
  import { CreateWaasAccountRequestToJSON } from '../models/CreateWaasAccountRequest.js';
64
64
  import { CreateWalletAccountRequestToJSON } from '../models/CreateWalletAccountRequest.js';
65
65
  import { CryptoDotComPaymentCreateRequestToJSON } from '../models/CryptoDotComPaymentCreateRequest.js';
66
+ import { CryptoDotComPaymentResponseFromJSON } from '../models/CryptoDotComPaymentResponse.js';
66
67
  import { CurrencyFromJSON } from '../models/Currency.js';
67
68
  import '../models/CurrencyType.js';
68
69
  import '../models/CustomHostnameStatusEnum.js';
@@ -165,7 +166,6 @@ import '../models/SdkViewType.js';
165
166
  import '../models/ZerodevBundlerProvider.js';
166
167
  import { PublishEventsToJSON } from '../models/PublishEvents.js';
167
168
  import '../models/PublishEventsEvents.js';
168
- import { RampConfigurationFromJSON } from '../models/RampConfiguration.js';
169
169
  import { RecoverMultipleClientKeySharesRequestToJSON } from '../models/RecoverMultipleClientKeySharesRequest.js';
170
170
  import { RecoverMultipleClientKeySharesResponseFromJSON } from '../models/RecoverMultipleClientKeySharesResponse.js';
171
171
  import { RegisterEmbeddedWalletSessionKeyResponseFromJSON } from '../models/RegisterEmbeddedWalletSessionKeyResponse.js';
@@ -218,6 +218,8 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
218
218
  import '../models/WaasDelegationCredentialsResponse.js';
219
219
  import '../models/WaasPolicyConstraintCondition.js';
220
220
  import '../models/WaasPolicyRuleType.js';
221
+ import '../models/WalletTransactionType.js';
222
+ import { WalletTransactionsResponseFromJSON } from '../models/WalletTransactionsResponse.js';
221
223
 
222
224
  /* tslint:disable */
223
225
  /**
@@ -1178,7 +1180,7 @@ class SDKApi extends BaseAPI {
1178
1180
  query: queryParameters,
1179
1181
  body: CryptoDotComPaymentCreateRequestToJSON(requestParameters.cryptoDotComPaymentCreateRequest),
1180
1182
  }, initOverrides);
1181
- return new JSONApiResponse(response, (jsonValue) => RampConfigurationFromJSON(jsonValue));
1183
+ return new JSONApiResponse(response, (jsonValue) => CryptoDotComPaymentResponseFromJSON(jsonValue));
1182
1184
  });
1183
1185
  }
1184
1186
  /**
@@ -4393,6 +4395,106 @@ class SDKApi extends BaseAPI {
4393
4395
  yield this.getWaasWalletWithVerifiedCredentialsOptionsRaw(requestParameters, initOverrides);
4394
4396
  });
4395
4397
  }
4398
+ /**
4399
+ * Fetches the list of transactions for a given wallet address within an environment.
4400
+ * Get transactions for a wallet address
4401
+ */
4402
+ getWalletTransactionsRaw(requestParameters, initOverrides) {
4403
+ return __awaiter(this, void 0, void 0, function* () {
4404
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4405
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactions.');
4406
+ }
4407
+ if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
4408
+ throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactions.');
4409
+ }
4410
+ if (requestParameters.address === null || requestParameters.address === undefined) {
4411
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getWalletTransactions.');
4412
+ }
4413
+ if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
4414
+ throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactions.');
4415
+ }
4416
+ const queryParameters = {};
4417
+ if (requestParameters.networkId !== undefined) {
4418
+ queryParameters['networkId'] = requestParameters.networkId;
4419
+ }
4420
+ if (requestParameters.limit !== undefined) {
4421
+ queryParameters['limit'] = requestParameters.limit;
4422
+ }
4423
+ if (requestParameters.offset !== undefined) {
4424
+ queryParameters['offset'] = requestParameters.offset;
4425
+ }
4426
+ const headerParameters = {};
4427
+ if (this.configuration && this.configuration.accessToken) {
4428
+ const token = this.configuration.accessToken;
4429
+ const tokenString = yield token("bearerAuth", []);
4430
+ if (tokenString) {
4431
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4432
+ }
4433
+ }
4434
+ const response = yield this.request({
4435
+ path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
4436
+ method: 'GET',
4437
+ headers: headerParameters,
4438
+ query: queryParameters,
4439
+ }, initOverrides);
4440
+ return new JSONApiResponse(response, (jsonValue) => WalletTransactionsResponseFromJSON(jsonValue));
4441
+ });
4442
+ }
4443
+ /**
4444
+ * Fetches the list of transactions for a given wallet address within an environment.
4445
+ * Get transactions for a wallet address
4446
+ */
4447
+ getWalletTransactions(requestParameters, initOverrides) {
4448
+ return __awaiter(this, void 0, void 0, function* () {
4449
+ const response = yield this.getWalletTransactionsRaw(requestParameters, initOverrides);
4450
+ return yield response.value();
4451
+ });
4452
+ }
4453
+ /**
4454
+ * Options call for this endpoint
4455
+ */
4456
+ getWalletTransactionsOptionsRaw(requestParameters, initOverrides) {
4457
+ return __awaiter(this, void 0, void 0, function* () {
4458
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4459
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getWalletTransactionsOptions.');
4460
+ }
4461
+ if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
4462
+ throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getWalletTransactionsOptions.');
4463
+ }
4464
+ if (requestParameters.address === null || requestParameters.address === undefined) {
4465
+ throw new RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getWalletTransactionsOptions.');
4466
+ }
4467
+ if (requestParameters.networkId === null || requestParameters.networkId === undefined) {
4468
+ throw new RequiredError('networkId', 'Required parameter requestParameters.networkId was null or undefined when calling getWalletTransactionsOptions.');
4469
+ }
4470
+ const queryParameters = {};
4471
+ if (requestParameters.networkId !== undefined) {
4472
+ queryParameters['networkId'] = requestParameters.networkId;
4473
+ }
4474
+ if (requestParameters.limit !== undefined) {
4475
+ queryParameters['limit'] = requestParameters.limit;
4476
+ }
4477
+ if (requestParameters.offset !== undefined) {
4478
+ queryParameters['offset'] = requestParameters.offset;
4479
+ }
4480
+ const headerParameters = {};
4481
+ const response = yield this.request({
4482
+ path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
4483
+ method: 'OPTIONS',
4484
+ headers: headerParameters,
4485
+ query: queryParameters,
4486
+ }, initOverrides);
4487
+ return new VoidApiResponse(response);
4488
+ });
4489
+ }
4490
+ /**
4491
+ * Options call for this endpoint
4492
+ */
4493
+ getWalletTransactionsOptions(requestParameters, initOverrides) {
4494
+ return __awaiter(this, void 0, void 0, function* () {
4495
+ yield this.getWalletTransactionsOptionsRaw(requestParameters, initOverrides);
4496
+ });
4497
+ }
4396
4498
  /**
4397
4499
  * Options call for this endpoint
4398
4500
  */
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -101,6 +101,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
101
101
  require('../models/WaasDelegationCredentialsResponse.cjs');
102
102
  require('../models/WaasPolicyConstraintCondition.cjs');
103
103
  require('../models/WaasPolicyRuleType.cjs');
104
+ require('../models/WalletTransactionType.cjs');
104
105
  require('../models/ZerodevBundlerProvider.cjs');
105
106
 
106
107
  /* tslint:disable */
@@ -97,6 +97,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
97
97
  import '../models/WaasDelegationCredentialsResponse.js';
98
98
  import '../models/WaasPolicyConstraintCondition.js';
99
99
  import '../models/WaasPolicyRuleType.js';
100
+ import '../models/WalletTransactionType.js';
100
101
  import '../models/ZerodevBundlerProvider.js';
101
102
 
102
103
  /* tslint:disable */
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -97,6 +97,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
97
97
  require('../models/WaasDelegationCredentialsResponse.cjs');
98
98
  require('../models/WaasPolicyConstraintCondition.cjs');
99
99
  require('../models/WaasPolicyRuleType.cjs');
100
+ require('../models/WalletTransactionType.cjs');
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -93,6 +93,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
93
93
  import '../models/WaasDelegationCredentialsResponse.js';
94
94
  import '../models/WaasPolicyConstraintCondition.js';
95
95
  import '../models/WaasPolicyRuleType.js';
96
+ import '../models/WalletTransactionType.js';
96
97
 
97
98
  /* tslint:disable */
98
99
  /**
@@ -101,6 +101,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
101
101
  require('../models/WaasDelegationCredentialsResponse.cjs');
102
102
  require('../models/WaasPolicyConstraintCondition.cjs');
103
103
  require('../models/WaasPolicyRuleType.cjs');
104
+ require('../models/WalletTransactionType.cjs');
104
105
 
105
106
  /* tslint:disable */
106
107
  /**
@@ -97,6 +97,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
97
97
  import '../models/WaasDelegationCredentialsResponse.js';
98
98
  import '../models/WaasPolicyConstraintCondition.js';
99
99
  import '../models/WaasPolicyRuleType.js';
100
+ import '../models/WalletTransactionType.js';
100
101
 
101
102
  /* tslint:disable */
102
103
  /**
@@ -95,6 +95,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
95
95
  require('../models/WaasDelegationCredentialsResponse.cjs');
96
96
  require('../models/WaasPolicyConstraintCondition.cjs');
97
97
  require('../models/WaasPolicyRuleType.cjs');
98
+ require('../models/WalletTransactionType.cjs');
98
99
 
99
100
  /* tslint:disable */
100
101
  /**
@@ -91,6 +91,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
91
91
  import '../models/WaasDelegationCredentialsResponse.js';
92
92
  import '../models/WaasPolicyConstraintCondition.js';
93
93
  import '../models/WaasPolicyRuleType.js';
94
+ import '../models/WalletTransactionType.js';
94
95
 
95
96
  /* tslint:disable */
96
97
  /**
@@ -112,6 +112,7 @@ require('../models/WaasPolicyRuleType.cjs');
112
112
  var WaasPolicyUpdateRequest = require('../models/WaasPolicyUpdateRequest.cjs');
113
113
  var WaasVerifyApiKeyResponse = require('../models/WaasVerifyApiKeyResponse.cjs');
114
114
  var WaasWalletResponse = require('../models/WaasWalletResponse.cjs');
115
+ require('../models/WalletTransactionType.cjs');
115
116
 
116
117
  /* tslint:disable */
117
118
  /**
@@ -108,6 +108,7 @@ import '../models/WaasPolicyRuleType.js';
108
108
  import { WaasPolicyUpdateRequestToJSON } from '../models/WaasPolicyUpdateRequest.js';
109
109
  import { WaasVerifyApiKeyResponseFromJSON } from '../models/WaasVerifyApiKeyResponse.js';
110
110
  import { WaasWalletResponseFromJSON } from '../models/WaasWalletResponse.js';
111
+ import '../models/WalletTransactionType.js';
111
112
 
112
113
  /* tslint:disable */
113
114
  /**
@@ -102,6 +102,7 @@ require('../models/WaasPolicyConstraintCondition.cjs');
102
102
  require('../models/WaasPolicyRuleType.cjs');
103
103
  var WalletRecoveryRequest = require('../models/WalletRecoveryRequest.cjs');
104
104
  var WalletRecoveryResponse = require('../models/WalletRecoveryResponse.cjs');
105
+ require('../models/WalletTransactionType.cjs');
105
106
  var WalletsResponse = require('../models/WalletsResponse.cjs');
106
107
 
107
108
  /* tslint:disable */
@@ -98,6 +98,7 @@ import '../models/WaasPolicyConstraintCondition.js';
98
98
  import '../models/WaasPolicyRuleType.js';
99
99
  import { WalletRecoveryRequestToJSON } from '../models/WalletRecoveryRequest.js';
100
100
  import { WalletRecoveryResponseFromJSON } from '../models/WalletRecoveryResponse.js';
101
+ import '../models/WalletTransactionType.js';
101
102
  import { WalletsResponseFromJSON } from '../models/WalletsResponse.js';
102
103
 
103
104
  /* tslint:disable */
@@ -94,6 +94,7 @@ require('../models/WaasDelegatedAccessEncryptionPublicKeyType.cjs');
94
94
  require('../models/WaasDelegationCredentialsResponse.cjs');
95
95
  require('../models/WaasPolicyConstraintCondition.cjs');
96
96
  require('../models/WaasPolicyRuleType.cjs');
97
+ require('../models/WalletTransactionType.cjs');
97
98
  var Webhook = require('../models/Webhook.cjs');
98
99
  var WebhookCreateRequest = require('../models/WebhookCreateRequest.cjs');
99
100
  var WebhookMessageRedeliveryResponse = require('../models/WebhookMessageRedeliveryResponse.cjs');
@@ -90,6 +90,7 @@ import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
90
90
  import '../models/WaasDelegationCredentialsResponse.js';
91
91
  import '../models/WaasPolicyConstraintCondition.js';
92
92
  import '../models/WaasPolicyRuleType.js';
93
+ import '../models/WalletTransactionType.js';
93
94
  import { WebhookFromJSON } from '../models/Webhook.js';
94
95
  import { WebhookCreateRequestToJSON } from '../models/WebhookCreateRequest.js';
95
96
  import { WebhookMessageRedeliveryResponseFromJSON } from '../models/WebhookMessageRedeliveryResponse.js';
package/src/index.cjs CHANGED
@@ -148,6 +148,7 @@ var CreateWaasAccountRequest = require('./models/CreateWaasAccountRequest.cjs');
148
148
  var CreateWalletAccountRequest = require('./models/CreateWalletAccountRequest.cjs');
149
149
  var CreateWalletRequest = require('./models/CreateWalletRequest.cjs');
150
150
  var CryptoDotComPaymentCreateRequest = require('./models/CryptoDotComPaymentCreateRequest.cjs');
151
+ var CryptoDotComPaymentResponse = require('./models/CryptoDotComPaymentResponse.cjs');
151
152
  var Currency = require('./models/Currency.cjs');
152
153
  var CurrencyType = require('./models/CurrencyType.cjs');
153
154
  var CustomField = require('./models/CustomField.cjs');
@@ -608,6 +609,11 @@ var WalletProperties = require('./models/WalletProperties.cjs');
608
609
  var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
609
610
  var WalletRecoveryRequest = require('./models/WalletRecoveryRequest.cjs');
610
611
  var WalletRecoveryResponse = require('./models/WalletRecoveryResponse.cjs');
612
+ var WalletTransaction = require('./models/WalletTransaction.cjs');
613
+ var WalletTransactionAssetTransfer = require('./models/WalletTransactionAssetTransfer.cjs');
614
+ var WalletTransactionAssetTransferMetadata = require('./models/WalletTransactionAssetTransferMetadata.cjs');
615
+ var WalletTransactionType = require('./models/WalletTransactionType.cjs');
616
+ var WalletTransactionsResponse = require('./models/WalletTransactionsResponse.cjs');
611
617
  var WalletsBreakdownResult = require('./models/WalletsBreakdownResult.cjs');
612
618
  var WalletsResponse = require('./models/WalletsResponse.cjs');
613
619
  var Webhook = require('./models/Webhook.cjs');
@@ -1062,6 +1068,9 @@ exports.CreateWalletRequestToJSON = CreateWalletRequest.CreateWalletRequestToJSO
1062
1068
  exports.CryptoDotComPaymentCreateRequestFromJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSON;
1063
1069
  exports.CryptoDotComPaymentCreateRequestFromJSONTyped = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSONTyped;
1064
1070
  exports.CryptoDotComPaymentCreateRequestToJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestToJSON;
1071
+ exports.CryptoDotComPaymentResponseFromJSON = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseFromJSON;
1072
+ exports.CryptoDotComPaymentResponseFromJSONTyped = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseFromJSONTyped;
1073
+ exports.CryptoDotComPaymentResponseToJSON = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseToJSON;
1065
1074
  exports.CurrencyFromJSON = Currency.CurrencyFromJSON;
1066
1075
  exports.CurrencyFromJSONTyped = Currency.CurrencyFromJSONTyped;
1067
1076
  exports.CurrencyToJSON = Currency.CurrencyToJSON;
@@ -2742,6 +2751,25 @@ exports.WalletRecoveryRequestToJSON = WalletRecoveryRequest.WalletRecoveryReques
2742
2751
  exports.WalletRecoveryResponseFromJSON = WalletRecoveryResponse.WalletRecoveryResponseFromJSON;
2743
2752
  exports.WalletRecoveryResponseFromJSONTyped = WalletRecoveryResponse.WalletRecoveryResponseFromJSONTyped;
2744
2753
  exports.WalletRecoveryResponseToJSON = WalletRecoveryResponse.WalletRecoveryResponseToJSON;
2754
+ exports.WalletTransactionFromJSON = WalletTransaction.WalletTransactionFromJSON;
2755
+ exports.WalletTransactionFromJSONTyped = WalletTransaction.WalletTransactionFromJSONTyped;
2756
+ exports.WalletTransactionToJSON = WalletTransaction.WalletTransactionToJSON;
2757
+ exports.WalletTransactionAssetTransferFromJSON = WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSON;
2758
+ exports.WalletTransactionAssetTransferFromJSONTyped = WalletTransactionAssetTransfer.WalletTransactionAssetTransferFromJSONTyped;
2759
+ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransfer.WalletTransactionAssetTransferToJSON;
2760
+ exports.WalletTransactionAssetTransferMetadataFromJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON;
2761
+ exports.WalletTransactionAssetTransferMetadataFromJSONTyped = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSONTyped;
2762
+ exports.WalletTransactionAssetTransferMetadataToJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON;
2763
+ Object.defineProperty(exports, 'WalletTransactionType', {
2764
+ enumerable: true,
2765
+ get: function () { return WalletTransactionType.WalletTransactionType; }
2766
+ });
2767
+ exports.WalletTransactionTypeFromJSON = WalletTransactionType.WalletTransactionTypeFromJSON;
2768
+ exports.WalletTransactionTypeFromJSONTyped = WalletTransactionType.WalletTransactionTypeFromJSONTyped;
2769
+ exports.WalletTransactionTypeToJSON = WalletTransactionType.WalletTransactionTypeToJSON;
2770
+ exports.WalletTransactionsResponseFromJSON = WalletTransactionsResponse.WalletTransactionsResponseFromJSON;
2771
+ exports.WalletTransactionsResponseFromJSONTyped = WalletTransactionsResponse.WalletTransactionsResponseFromJSONTyped;
2772
+ exports.WalletTransactionsResponseToJSON = WalletTransactionsResponse.WalletTransactionsResponseToJSON;
2745
2773
  exports.WalletsBreakdownResultFromJSON = WalletsBreakdownResult.WalletsBreakdownResultFromJSON;
2746
2774
  exports.WalletsBreakdownResultFromJSONTyped = WalletsBreakdownResult.WalletsBreakdownResultFromJSONTyped;
2747
2775
  exports.WalletsBreakdownResultToJSON = WalletsBreakdownResult.WalletsBreakdownResultToJSON;
package/src/index.js CHANGED
@@ -144,6 +144,7 @@ export { CreateWaasAccountRequestFromJSON, CreateWaasAccountRequestFromJSONTyped
144
144
  export { CreateWalletAccountRequestFromJSON, CreateWalletAccountRequestFromJSONTyped, CreateWalletAccountRequestToJSON } from './models/CreateWalletAccountRequest.js';
145
145
  export { CreateWalletRequestFromJSON, CreateWalletRequestFromJSONTyped, CreateWalletRequestToJSON } from './models/CreateWalletRequest.js';
146
146
  export { CryptoDotComPaymentCreateRequestFromJSON, CryptoDotComPaymentCreateRequestFromJSONTyped, CryptoDotComPaymentCreateRequestToJSON } from './models/CryptoDotComPaymentCreateRequest.js';
147
+ export { CryptoDotComPaymentResponseFromJSON, CryptoDotComPaymentResponseFromJSONTyped, CryptoDotComPaymentResponseToJSON } from './models/CryptoDotComPaymentResponse.js';
147
148
  export { CurrencyFromJSON, CurrencyFromJSONTyped, CurrencyToJSON } from './models/Currency.js';
148
149
  export { CurrencyType, CurrencyTypeFromJSON, CurrencyTypeFromJSONTyped, CurrencyTypeToJSON } from './models/CurrencyType.js';
149
150
  export { CustomFieldFromJSON, CustomFieldFromJSONTyped, CustomFieldToJSON } from './models/CustomField.js';
@@ -604,6 +605,11 @@ export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletProperti
604
605
  export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
605
606
  export { WalletRecoveryRequestFromJSON, WalletRecoveryRequestFromJSONTyped, WalletRecoveryRequestToJSON } from './models/WalletRecoveryRequest.js';
606
607
  export { WalletRecoveryResponseFromJSON, WalletRecoveryResponseFromJSONTyped, WalletRecoveryResponseToJSON } from './models/WalletRecoveryResponse.js';
608
+ export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
609
+ export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
610
+ export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
611
+ export { WalletTransactionType, WalletTransactionTypeFromJSON, WalletTransactionTypeFromJSONTyped, WalletTransactionTypeToJSON } from './models/WalletTransactionType.js';
612
+ export { WalletTransactionsResponseFromJSON, WalletTransactionsResponseFromJSONTyped, WalletTransactionsResponseToJSON } from './models/WalletTransactionsResponse.js';
607
613
  export { WalletsBreakdownResultFromJSON, WalletsBreakdownResultFromJSONTyped, WalletsBreakdownResultToJSON } from './models/WalletsBreakdownResult.js';
608
614
  export { WalletsResponseFromJSON, WalletsResponseFromJSONTyped, WalletsResponseToJSON } from './models/WalletsResponse.js';
609
615
  export { WebhookFromJSON, WebhookFromJSONTyped, WebhookToJSON } from './models/Webhook.js';
@@ -48,7 +48,7 @@ export interface Account {
48
48
  */
49
49
  name?: string;
50
50
  /**
51
- * Blockchain network if relevant
51
+ *
52
52
  * @type {string}
53
53
  * @memberof Account
54
54
  */
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var ChainEnum = require('./ChainEnum.cjs');
6
7
 
7
8
  /* tslint:disable */
8
9
  function CryptoDotComPaymentCreateRequestFromJSON(json) {
@@ -13,13 +14,15 @@ function CryptoDotComPaymentCreateRequestFromJSONTyped(json, ignoreDiscriminator
13
14
  return json;
14
15
  }
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'],
16
23
  'walletAddress': json['walletAddress'],
17
- 'chain': json['chain'],
18
24
  'networkId': !runtime.exists(json, 'networkId') ? undefined : json['networkId'],
19
- 'token': !runtime.exists(json, 'token') ? undefined : json['token'],
20
- 'tokenAmount': !runtime.exists(json, 'tokenAmount') ? undefined : json['tokenAmount'],
21
- 'currency': !runtime.exists(json, 'currency') ? undefined : json['currency'],
22
- 'merchantName': !runtime.exists(json, 'merchantName') ? undefined : json['merchantName'],
25
+ 'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
23
26
  };
24
27
  }
25
28
  function CryptoDotComPaymentCreateRequestToJSON(value) {
@@ -30,13 +33,15 @@ function CryptoDotComPaymentCreateRequestToJSON(value) {
30
33
  return null;
31
34
  }
32
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,
33
42
  'walletAddress': value.walletAddress,
34
- 'chain': value.chain,
35
43
  'networkId': value.networkId,
36
- 'token': value.token,
37
- 'tokenAmount': value.tokenAmount,
38
- 'currency': value.currency,
39
- 'merchantName': value.merchantName,
44
+ 'chain': ChainEnum.ChainEnumToJSON(value.chain),
40
45
  };
41
46
  }
42
47