@dynamic-labs/sdk-api 0.0.837 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.837",
3
+ "version": "0.0.838",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -67,6 +67,7 @@ require('../models/WaasChainEnum.cjs');
67
67
  var CreateWaasAccountRequest = require('../models/CreateWaasAccountRequest.cjs');
68
68
  var CreateWalletAccountRequest = require('../models/CreateWalletAccountRequest.cjs');
69
69
  var CryptoDotComPaymentCreateRequest = require('../models/CryptoDotComPaymentCreateRequest.cjs');
70
+ var CryptoDotComPaymentResponse = require('../models/CryptoDotComPaymentResponse.cjs');
70
71
  var Currency = require('../models/Currency.cjs');
71
72
  require('../models/CurrencyType.cjs');
72
73
  require('../models/CustomHostnameStatusEnum.cjs');
@@ -169,7 +170,6 @@ require('../models/SdkViewType.cjs');
169
170
  require('../models/ZerodevBundlerProvider.cjs');
170
171
  var PublishEvents = require('../models/PublishEvents.cjs');
171
172
  require('../models/PublishEventsEvents.cjs');
172
- var RampConfiguration = require('../models/RampConfiguration.cjs');
173
173
  var RecoverMultipleClientKeySharesRequest = require('../models/RecoverMultipleClientKeySharesRequest.cjs');
174
174
  var RecoverMultipleClientKeySharesResponse = require('../models/RecoverMultipleClientKeySharesResponse.cjs');
175
175
  var RegisterEmbeddedWalletSessionKeyResponse = require('../models/RegisterEmbeddedWalletSessionKeyResponse.cjs');
@@ -1182,7 +1182,7 @@ class SDKApi extends runtime.BaseAPI {
1182
1182
  query: queryParameters,
1183
1183
  body: CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestToJSON(requestParameters.cryptoDotComPaymentCreateRequest),
1184
1184
  }, initOverrides);
1185
- return new runtime.JSONApiResponse(response, (jsonValue) => RampConfiguration.RampConfigurationFromJSON(jsonValue));
1185
+ return new runtime.JSONApiResponse(response, (jsonValue) => CryptoDotComPaymentResponse.CryptoDotComPaymentResponseFromJSON(jsonValue));
1186
1186
  });
1187
1187
  }
1188
1188
  /**
@@ -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 } from '../models';
14
14
  export interface AuthMfaEmailDeviceOptionsRequest {
15
15
  environmentId: string;
16
16
  }
@@ -1209,12 +1209,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1209
1209
  * Create a Crypto.com payment and return the payment payload (URL and optional QR code)
1210
1210
  * Start Crypto.com payment
1211
1211
  */
1212
- createCryptoDotComPaymentRaw(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RampConfiguration>>;
1212
+ createCryptoDotComPaymentRaw(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<CryptoDotComPaymentResponse>>;
1213
1213
  /**
1214
1214
  * Create a Crypto.com payment and return the payment payload (URL and optional QR code)
1215
1215
  * Start Crypto.com payment
1216
1216
  */
1217
- createCryptoDotComPayment(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<RampConfiguration>;
1217
+ createCryptoDotComPayment(requestParameters: CreateCryptoDotComPaymentRequest, initOverrides?: RequestInit): Promise<CryptoDotComPaymentResponse>;
1218
1218
  /**
1219
1219
  * Initialize email verification process
1220
1220
  */
@@ -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';
@@ -1178,7 +1178,7 @@ class SDKApi extends BaseAPI {
1178
1178
  query: queryParameters,
1179
1179
  body: CryptoDotComPaymentCreateRequestToJSON(requestParameters.cryptoDotComPaymentCreateRequest),
1180
1180
  }, initOverrides);
1181
- return new JSONApiResponse(response, (jsonValue) => RampConfigurationFromJSON(jsonValue));
1181
+ return new JSONApiResponse(response, (jsonValue) => CryptoDotComPaymentResponseFromJSON(jsonValue));
1182
1182
  });
1183
1183
  }
1184
1184
  /**
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');
@@ -1062,6 +1063,9 @@ exports.CreateWalletRequestToJSON = CreateWalletRequest.CreateWalletRequestToJSO
1062
1063
  exports.CryptoDotComPaymentCreateRequestFromJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSON;
1063
1064
  exports.CryptoDotComPaymentCreateRequestFromJSONTyped = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestFromJSONTyped;
1064
1065
  exports.CryptoDotComPaymentCreateRequestToJSON = CryptoDotComPaymentCreateRequest.CryptoDotComPaymentCreateRequestToJSON;
1066
+ exports.CryptoDotComPaymentResponseFromJSON = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseFromJSON;
1067
+ exports.CryptoDotComPaymentResponseFromJSONTyped = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseFromJSONTyped;
1068
+ exports.CryptoDotComPaymentResponseToJSON = CryptoDotComPaymentResponse.CryptoDotComPaymentResponseToJSON;
1065
1069
  exports.CurrencyFromJSON = Currency.CurrencyFromJSON;
1066
1070
  exports.CurrencyFromJSONTyped = Currency.CurrencyFromJSONTyped;
1067
1071
  exports.CurrencyToJSON = Currency.CurrencyToJSON;
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';
@@ -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
 
@@ -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 };
@@ -107,6 +107,7 @@ export * from './CreateWaasAccountRequest';
107
107
  export * from './CreateWalletAccountRequest';
108
108
  export * from './CreateWalletRequest';
109
109
  export * from './CryptoDotComPaymentCreateRequest';
110
+ export * from './CryptoDotComPaymentResponse';
110
111
  export * from './Currency';
111
112
  export * from './CurrencyType';
112
113
  export * from './CustomField';