@dynamic-labs/sdk-api 0.0.919 → 0.0.921

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 (31) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +3 -0
  3. package/src/apis/SDKApi.d.ts +1 -1
  4. package/src/apis/SDKApi.js +3 -0
  5. package/src/index.cjs +8 -12
  6. package/src/index.js +2 -3
  7. package/src/models/CheckoutFeeBreakdown.cjs +6 -21
  8. package/src/models/CheckoutFeeBreakdown.d.ts +4 -21
  9. package/src/models/CheckoutFeeBreakdown.js +6 -21
  10. package/src/models/CheckoutGasEstimate.cjs +37 -0
  11. package/src/models/CheckoutGasEstimate.d.ts +39 -0
  12. package/src/models/CheckoutGasEstimate.js +31 -0
  13. package/src/models/CheckoutTransaction.cjs +3 -10
  14. package/src/models/CheckoutTransaction.d.ts +3 -22
  15. package/src/models/CheckoutTransaction.js +3 -10
  16. package/src/models/CheckoutTransactionQuote.cjs +51 -0
  17. package/src/models/CheckoutTransactionQuote.d.ts +77 -0
  18. package/src/models/CheckoutTransactionQuote.js +45 -0
  19. package/src/models/SwapSigningPayload.cjs +4 -6
  20. package/src/models/SwapSigningPayload.d.ts +7 -9
  21. package/src/models/SwapSigningPayload.js +4 -6
  22. package/src/models/index.d.ts +2 -3
  23. package/src/models/CheckoutQuoteSnapshot.cjs +0 -50
  24. package/src/models/CheckoutQuoteSnapshot.d.ts +0 -76
  25. package/src/models/CheckoutQuoteSnapshot.js +0 -44
  26. package/src/models/SwapPsbtTransactionData.cjs +0 -43
  27. package/src/models/SwapPsbtTransactionData.d.ts +0 -27
  28. package/src/models/SwapPsbtTransactionData.js +0 -37
  29. package/src/models/SwapSerializedTransactionData.cjs +0 -43
  30. package/src/models/SwapSerializedTransactionData.d.ts +0 -27
  31. package/src/models/SwapSerializedTransactionData.js +0 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.919",
3
+ "version": "0.0.921",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -4948,6 +4948,9 @@ class SDKApi extends runtime.BaseAPI {
4948
4948
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4949
4949
  throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
4950
4950
  }
4951
+ if (requestParameters.filter === null || requestParameters.filter === undefined) {
4952
+ throw new runtime.RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
4953
+ }
4951
4954
  const queryParameters = {};
4952
4955
  if (requestParameters.filter !== undefined) {
4953
4956
  queryParameters['filter'] = requestParameters.filter;
@@ -540,7 +540,7 @@ export interface GetUserAccountsOptionsRequest {
540
540
  }
541
541
  export interface GetUserFieldsCheckRequest {
542
542
  environmentId: string;
543
- filter?: UserFieldsCheckParams;
543
+ filter: UserFieldsCheckParams;
544
544
  }
545
545
  export interface GetUserFieldsCheckOptionsRequest {
546
546
  environmentId: string;
@@ -4944,6 +4944,9 @@ class SDKApi extends BaseAPI {
4944
4944
  if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4945
4945
  throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
4946
4946
  }
4947
+ if (requestParameters.filter === null || requestParameters.filter === undefined) {
4948
+ throw new RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
4949
+ }
4947
4950
  const queryParameters = {};
4948
4951
  if (requestParameters.filter !== undefined) {
4949
4952
  queryParameters['filter'] = requestParameters.filter;
package/src/index.cjs CHANGED
@@ -120,8 +120,8 @@ var CheckoutCreateRequest = require('./models/CheckoutCreateRequest.cjs');
120
120
  var CheckoutExecutionStateEnum = require('./models/CheckoutExecutionStateEnum.cjs');
121
121
  var CheckoutFailure = require('./models/CheckoutFailure.cjs');
122
122
  var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
123
+ var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
123
124
  var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
124
- var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
125
125
  var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
126
126
  var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
127
127
  var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
@@ -130,6 +130,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
130
130
  var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
131
131
  var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
132
132
  var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
133
+ var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
133
134
  var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
134
135
  var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
135
136
  var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
@@ -566,12 +567,10 @@ var SwapEvmApprovalData = require('./models/SwapEvmApprovalData.cjs');
566
567
  var SwapEvmTransactionData = require('./models/SwapEvmTransactionData.cjs');
567
568
  var SwapFee = require('./models/SwapFee.cjs');
568
569
  var SwapGasCost = require('./models/SwapGasCost.cjs');
569
- var SwapPsbtTransactionData = require('./models/SwapPsbtTransactionData.cjs');
570
570
  var SwapQuoteRequest = require('./models/SwapQuoteRequest.cjs');
571
571
  var SwapQuoteRequestSide = require('./models/SwapQuoteRequestSide.cjs');
572
572
  var SwapQuoteResponse = require('./models/SwapQuoteResponse.cjs');
573
573
  var SwapQuoteResponseSide = require('./models/SwapQuoteResponseSide.cjs');
574
- var SwapSerializedTransactionData = require('./models/SwapSerializedTransactionData.cjs');
575
574
  var SwapSigningPayload = require('./models/SwapSigningPayload.cjs');
576
575
  var SwapStatusRequest = require('./models/SwapStatusRequest.cjs');
577
576
  var SwapStatusRequestChain = require('./models/SwapStatusRequestChain.cjs');
@@ -1050,6 +1049,9 @@ exports.CheckoutFailureToJSON = CheckoutFailure.CheckoutFailureToJSON;
1050
1049
  exports.CheckoutFeeBreakdownFromJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON;
1051
1050
  exports.CheckoutFeeBreakdownFromJSONTyped = CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSONTyped;
1052
1051
  exports.CheckoutFeeBreakdownToJSON = CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON;
1052
+ exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimate.CheckoutGasEstimateFromJSON;
1053
+ exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimate.CheckoutGasEstimateFromJSONTyped;
1054
+ exports.CheckoutGasEstimateToJSON = CheckoutGasEstimate.CheckoutGasEstimateToJSON;
1053
1055
  Object.defineProperty(exports, 'CheckoutModeEnum', {
1054
1056
  enumerable: true,
1055
1057
  get: function () { return CheckoutModeEnum.CheckoutModeEnum; }
@@ -1057,9 +1059,6 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
1057
1059
  exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
1058
1060
  exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
1059
1061
  exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
1060
- exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
1061
- exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
1062
- exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
1063
1062
  Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
1064
1063
  enumerable: true,
1065
1064
  get: function () { return CheckoutRiskStateEnum.CheckoutRiskStateEnum; }
@@ -1096,6 +1095,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
1096
1095
  exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
1097
1096
  exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
1098
1097
  exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
1098
+ exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
1099
+ exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
1100
+ exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
1099
1101
  exports.CheckoutUpdateRequestFromJSON = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSON;
1100
1102
  exports.CheckoutUpdateRequestFromJSONTyped = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSONTyped;
1101
1103
  exports.CheckoutUpdateRequestToJSON = CheckoutUpdateRequest.CheckoutUpdateRequestToJSON;
@@ -2676,9 +2678,6 @@ exports.SwapFeeToJSON = SwapFee.SwapFeeToJSON;
2676
2678
  exports.SwapGasCostFromJSON = SwapGasCost.SwapGasCostFromJSON;
2677
2679
  exports.SwapGasCostFromJSONTyped = SwapGasCost.SwapGasCostFromJSONTyped;
2678
2680
  exports.SwapGasCostToJSON = SwapGasCost.SwapGasCostToJSON;
2679
- exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON;
2680
- exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSONTyped;
2681
- exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON;
2682
2681
  exports.SwapQuoteRequestFromJSON = SwapQuoteRequest.SwapQuoteRequestFromJSON;
2683
2682
  exports.SwapQuoteRequestFromJSONTyped = SwapQuoteRequest.SwapQuoteRequestFromJSONTyped;
2684
2683
  Object.defineProperty(exports, 'SwapQuoteRequestOrderEnum', {
@@ -2695,9 +2694,6 @@ exports.SwapQuoteResponseToJSON = SwapQuoteResponse.SwapQuoteResponseToJSON;
2695
2694
  exports.SwapQuoteResponseSideFromJSON = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSON;
2696
2695
  exports.SwapQuoteResponseSideFromJSONTyped = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSONTyped;
2697
2696
  exports.SwapQuoteResponseSideToJSON = SwapQuoteResponseSide.SwapQuoteResponseSideToJSON;
2698
- exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON;
2699
- exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSONTyped;
2700
- exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON;
2701
2697
  exports.SwapSigningPayloadFromJSON = SwapSigningPayload.SwapSigningPayloadFromJSON;
2702
2698
  exports.SwapSigningPayloadFromJSONTyped = SwapSigningPayload.SwapSigningPayloadFromJSONTyped;
2703
2699
  exports.SwapSigningPayloadToJSON = SwapSigningPayload.SwapSigningPayloadToJSON;
package/src/index.js CHANGED
@@ -116,8 +116,8 @@ export { CheckoutCreateRequestFromJSON, CheckoutCreateRequestFromJSONTyped, Chec
116
116
  export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON } from './models/CheckoutExecutionStateEnum.js';
117
117
  export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureToJSON } from './models/CheckoutFailure.js';
118
118
  export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
119
+ export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
119
120
  export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
120
- export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
121
121
  export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
122
122
  export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
123
123
  export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
@@ -126,6 +126,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
126
126
  export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
127
127
  export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
128
128
  export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
129
+ export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
129
130
  export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
130
131
  export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
131
132
  export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
@@ -562,12 +563,10 @@ export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmA
562
563
  export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON } from './models/SwapEvmTransactionData.js';
563
564
  export { SwapFeeFromJSON, SwapFeeFromJSONTyped, SwapFeeToJSON } from './models/SwapFee.js';
564
565
  export { SwapGasCostFromJSON, SwapGasCostFromJSONTyped, SwapGasCostToJSON } from './models/SwapGasCost.js';
565
- export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON } from './models/SwapPsbtTransactionData.js';
566
566
  export { SwapQuoteRequestFromJSON, SwapQuoteRequestFromJSONTyped, SwapQuoteRequestOrderEnum, SwapQuoteRequestToJSON } from './models/SwapQuoteRequest.js';
567
567
  export { SwapQuoteRequestSideFromJSON, SwapQuoteRequestSideFromJSONTyped, SwapQuoteRequestSideToJSON } from './models/SwapQuoteRequestSide.js';
568
568
  export { SwapQuoteResponseFromJSON, SwapQuoteResponseFromJSONTyped, SwapQuoteResponseToJSON } from './models/SwapQuoteResponse.js';
569
569
  export { SwapQuoteResponseSideFromJSON, SwapQuoteResponseSideFromJSONTyped, SwapQuoteResponseSideToJSON } from './models/SwapQuoteResponseSide.js';
570
- export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON } from './models/SwapSerializedTransactionData.js';
571
570
  export { SwapSigningPayloadFromJSON, SwapSigningPayloadFromJSONTyped, SwapSigningPayloadToJSON } from './models/SwapSigningPayload.js';
572
571
  export { SwapStatusRequestFromJSON, SwapStatusRequestFromJSONTyped, SwapStatusRequestToJSON } from './models/SwapStatusRequest.js';
573
572
  export { SwapStatusRequestChainFromJSON, SwapStatusRequestChainFromJSONTyped, SwapStatusRequestChainToJSON } from './models/SwapStatusRequestChain.js';
@@ -2,19 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
6
+ var CheckoutGasEstimate = require('./CheckoutGasEstimate.cjs');
7
+
5
8
  /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
9
  function CheckoutFeeBreakdownFromJSON(json) {
19
10
  return CheckoutFeeBreakdownFromJSONTyped(json);
20
11
  }
@@ -23,11 +14,8 @@ function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
23
14
  return json;
24
15
  }
25
16
  return {
26
- 'gasCostUsd': json['gasCostUsd'],
27
- 'bridgeCostUsd': json['bridgeCostUsd'],
28
- 'providerFeeUsd': json['providerFeeUsd'],
29
- 'integratorFeeUsd': json['integratorFeeUsd'],
30
- 'totalFeeUsd': json['totalFeeUsd'],
17
+ 'totalFeeUsd': !runtime.exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
18
+ 'gasEstimate': !runtime.exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimate.CheckoutGasEstimateFromJSON(json['gasEstimate']),
31
19
  };
32
20
  }
33
21
  function CheckoutFeeBreakdownToJSON(value) {
@@ -38,11 +26,8 @@ function CheckoutFeeBreakdownToJSON(value) {
38
26
  return null;
39
27
  }
40
28
  return {
41
- 'gasCostUsd': value.gasCostUsd,
42
- 'bridgeCostUsd': value.bridgeCostUsd,
43
- 'providerFeeUsd': value.providerFeeUsd,
44
- 'integratorFeeUsd': value.integratorFeeUsd,
45
29
  'totalFeeUsd': value.totalFeeUsd,
30
+ 'gasEstimate': CheckoutGasEstimate.CheckoutGasEstimateToJSON(value.gasEstimate),
46
31
  };
47
32
  }
48
33
 
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CheckoutGasEstimate } from './CheckoutGasEstimate';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -20,31 +21,13 @@ export interface CheckoutFeeBreakdown {
20
21
  * @type {string}
21
22
  * @memberof CheckoutFeeBreakdown
22
23
  */
23
- gasCostUsd: string;
24
+ totalFeeUsd?: string;
24
25
  /**
25
26
  *
26
- * @type {string}
27
- * @memberof CheckoutFeeBreakdown
28
- */
29
- bridgeCostUsd: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof CheckoutFeeBreakdown
34
- */
35
- providerFeeUsd: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof CheckoutFeeBreakdown
40
- */
41
- integratorFeeUsd: string;
42
- /**
43
- *
44
- * @type {string}
27
+ * @type {CheckoutGasEstimate}
45
28
  * @memberof CheckoutFeeBreakdown
46
29
  */
47
- totalFeeUsd: string;
30
+ gasEstimate?: CheckoutGasEstimate;
48
31
  }
49
32
  export declare function CheckoutFeeBreakdownFromJSON(json: any): CheckoutFeeBreakdown;
50
33
  export declare function CheckoutFeeBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutFeeBreakdown;
@@ -1,16 +1,7 @@
1
+ import { exists } from '../runtime.js';
2
+ import { CheckoutGasEstimateFromJSON, CheckoutGasEstimateToJSON } from './CheckoutGasEstimate.js';
3
+
1
4
  /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
5
  function CheckoutFeeBreakdownFromJSON(json) {
15
6
  return CheckoutFeeBreakdownFromJSONTyped(json);
16
7
  }
@@ -19,11 +10,8 @@ function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
19
10
  return json;
20
11
  }
21
12
  return {
22
- 'gasCostUsd': json['gasCostUsd'],
23
- 'bridgeCostUsd': json['bridgeCostUsd'],
24
- 'providerFeeUsd': json['providerFeeUsd'],
25
- 'integratorFeeUsd': json['integratorFeeUsd'],
26
- 'totalFeeUsd': json['totalFeeUsd'],
13
+ 'totalFeeUsd': !exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
14
+ 'gasEstimate': !exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimateFromJSON(json['gasEstimate']),
27
15
  };
28
16
  }
29
17
  function CheckoutFeeBreakdownToJSON(value) {
@@ -34,11 +22,8 @@ function CheckoutFeeBreakdownToJSON(value) {
34
22
  return null;
35
23
  }
36
24
  return {
37
- 'gasCostUsd': value.gasCostUsd,
38
- 'bridgeCostUsd': value.bridgeCostUsd,
39
- 'providerFeeUsd': value.providerFeeUsd,
40
- 'integratorFeeUsd': value.integratorFeeUsd,
41
25
  'totalFeeUsd': value.totalFeeUsd,
26
+ 'gasEstimate': CheckoutGasEstimateToJSON(value.gasEstimate),
42
27
  };
43
28
  }
44
29
 
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function CheckoutGasEstimateFromJSON(json) {
9
+ return CheckoutGasEstimateFromJSONTyped(json);
10
+ }
11
+ function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'usdValue': !runtime.exists(json, 'usdValue') ? undefined : json['usdValue'],
17
+ 'nativeValue': !runtime.exists(json, 'nativeValue') ? undefined : json['nativeValue'],
18
+ 'nativeSymbol': !runtime.exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
19
+ };
20
+ }
21
+ function CheckoutGasEstimateToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'usdValue': value.usdValue,
30
+ 'nativeValue': value.nativeValue,
31
+ 'nativeSymbol': value.nativeSymbol,
32
+ };
33
+ }
34
+
35
+ exports.CheckoutGasEstimateFromJSON = CheckoutGasEstimateFromJSON;
36
+ exports.CheckoutGasEstimateFromJSONTyped = CheckoutGasEstimateFromJSONTyped;
37
+ exports.CheckoutGasEstimateToJSON = CheckoutGasEstimateToJSON;
@@ -0,0 +1,39 @@
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 CheckoutGasEstimate
16
+ */
17
+ export interface CheckoutGasEstimate {
18
+ /**
19
+ * Estimated gas cost in USD
20
+ * @type {string}
21
+ * @memberof CheckoutGasEstimate
22
+ */
23
+ usdValue?: string;
24
+ /**
25
+ * Estimated gas cost in the source chain's native token
26
+ * @type {string}
27
+ * @memberof CheckoutGasEstimate
28
+ */
29
+ nativeValue?: string;
30
+ /**
31
+ * Symbol of the native token (e.g. "ETH", "SOL")
32
+ * @type {string}
33
+ * @memberof CheckoutGasEstimate
34
+ */
35
+ nativeSymbol?: string;
36
+ }
37
+ export declare function CheckoutGasEstimateFromJSON(json: any): CheckoutGasEstimate;
38
+ export declare function CheckoutGasEstimateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutGasEstimate;
39
+ export declare function CheckoutGasEstimateToJSON(value?: CheckoutGasEstimate | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function CheckoutGasEstimateFromJSON(json) {
5
+ return CheckoutGasEstimateFromJSONTyped(json);
6
+ }
7
+ function CheckoutGasEstimateFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'usdValue': !exists(json, 'usdValue') ? undefined : json['usdValue'],
13
+ 'nativeValue': !exists(json, 'nativeValue') ? undefined : json['nativeValue'],
14
+ 'nativeSymbol': !exists(json, 'nativeSymbol') ? undefined : json['nativeSymbol'],
15
+ };
16
+ }
17
+ function CheckoutGasEstimateToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'usdValue': value.usdValue,
26
+ 'nativeValue': value.nativeValue,
27
+ 'nativeSymbol': value.nativeSymbol,
28
+ };
29
+ }
30
+
31
+ export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON };
@@ -6,13 +6,12 @@ var runtime = require('../runtime.cjs');
6
6
  var ChainEnum = require('./ChainEnum.cjs');
7
7
  var CheckoutExecutionStateEnum = require('./CheckoutExecutionStateEnum.cjs');
8
8
  var CheckoutFailure = require('./CheckoutFailure.cjs');
9
- var CheckoutQuoteSnapshot = require('./CheckoutQuoteSnapshot.cjs');
10
9
  var CheckoutRiskStateEnum = require('./CheckoutRiskStateEnum.cjs');
11
10
  var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
12
11
  var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
13
12
  var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
14
13
  var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
15
- var SwapSigningPayload = require('./SwapSigningPayload.cjs');
14
+ var CheckoutTransactionQuote = require('./CheckoutTransactionQuote.cjs');
16
15
 
17
16
  /* tslint:disable */
18
17
  function CheckoutTransactionFromJSON(json) {
@@ -43,10 +42,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
43
42
  'toChainName': !runtime.exists(json, 'toChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['toChainName']),
44
43
  'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
45
44
  'quoteVersion': json['quoteVersion'],
46
- 'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON(json['quote']),
47
- 'quoteExpiresAt': !runtime.exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
48
- 'lastQuotedAt': !runtime.exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
49
- 'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
45
+ 'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON(json['quote']),
50
46
  'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
51
47
  'broadcastedAt': !runtime.exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
52
48
  'sourceConfirmedAt': !runtime.exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
@@ -87,10 +83,7 @@ function CheckoutTransactionToJSON(value) {
87
83
  'toChainName': ChainEnum.ChainEnumToJSON(value.toChainName),
88
84
  'toToken': value.toToken,
89
85
  'quoteVersion': value.quoteVersion,
90
- 'quote': CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON(value.quote),
91
- 'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
92
- 'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
93
- 'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
86
+ 'quote': CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON(value.quote),
94
87
  'txHash': value.txHash,
95
88
  'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
96
89
  'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
@@ -12,13 +12,12 @@
12
12
  import { ChainEnum } from './ChainEnum';
13
13
  import { CheckoutExecutionStateEnum } from './CheckoutExecutionStateEnum';
14
14
  import { CheckoutFailure } from './CheckoutFailure';
15
- import { CheckoutQuoteSnapshot } from './CheckoutQuoteSnapshot';
16
15
  import { CheckoutRiskStateEnum } from './CheckoutRiskStateEnum';
17
16
  import { CheckoutSettlementData } from './CheckoutSettlementData';
18
17
  import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
19
18
  import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
20
19
  import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
21
- import { SwapSigningPayload } from './SwapSigningPayload';
20
+ import { CheckoutTransactionQuote } from './CheckoutTransactionQuote';
22
21
  /**
23
22
  *
24
23
  * @export
@@ -147,28 +146,10 @@ export interface CheckoutTransaction {
147
146
  quoteVersion: number;
148
147
  /**
149
148
  *
150
- * @type {CheckoutQuoteSnapshot}
149
+ * @type {CheckoutTransactionQuote}
151
150
  * @memberof CheckoutTransaction
152
151
  */
153
- quote?: CheckoutQuoteSnapshot;
154
- /**
155
- *
156
- * @type {Date}
157
- * @memberof CheckoutTransaction
158
- */
159
- quoteExpiresAt?: Date;
160
- /**
161
- *
162
- * @type {Date}
163
- * @memberof CheckoutTransaction
164
- */
165
- lastQuotedAt?: Date;
166
- /**
167
- *
168
- * @type {SwapSigningPayload}
169
- * @memberof CheckoutTransaction
170
- */
171
- signingPayload?: SwapSigningPayload;
152
+ quote?: CheckoutTransactionQuote;
172
153
  /**
173
154
  * A string with a max length of 4096 characters
174
155
  * @type {string}
@@ -2,13 +2,12 @@ import { exists } from '../runtime.js';
2
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
3
  import { CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumToJSON } from './CheckoutExecutionStateEnum.js';
4
4
  import { CheckoutFailureFromJSON, CheckoutFailureToJSON } from './CheckoutFailure.js';
5
- import { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotToJSON } from './CheckoutQuoteSnapshot.js';
6
5
  import { CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumToJSON } from './CheckoutRiskStateEnum.js';
7
6
  import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './CheckoutSettlementData.js';
8
7
  import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
9
8
  import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
10
9
  import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
11
- import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
10
+ import { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteToJSON } from './CheckoutTransactionQuote.js';
12
11
 
13
12
  /* tslint:disable */
14
13
  function CheckoutTransactionFromJSON(json) {
@@ -39,10 +38,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
39
38
  'toChainName': !exists(json, 'toChainName') ? undefined : ChainEnumFromJSON(json['toChainName']),
40
39
  'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
41
40
  'quoteVersion': json['quoteVersion'],
42
- 'quote': !exists(json, 'quote') ? undefined : CheckoutQuoteSnapshotFromJSON(json['quote']),
43
- 'quoteExpiresAt': !exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
44
- 'lastQuotedAt': !exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
45
- 'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
41
+ 'quote': !exists(json, 'quote') ? undefined : CheckoutTransactionQuoteFromJSON(json['quote']),
46
42
  'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
47
43
  'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
48
44
  'sourceConfirmedAt': !exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
@@ -83,10 +79,7 @@ function CheckoutTransactionToJSON(value) {
83
79
  'toChainName': ChainEnumToJSON(value.toChainName),
84
80
  'toToken': value.toToken,
85
81
  'quoteVersion': value.quoteVersion,
86
- 'quote': CheckoutQuoteSnapshotToJSON(value.quote),
87
- 'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
88
- 'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
89
- 'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
82
+ 'quote': CheckoutTransactionQuoteToJSON(value.quote),
90
83
  'txHash': value.txHash,
91
84
  'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
92
85
  'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
7
+ var SwapSigningPayload = require('./SwapSigningPayload.cjs');
8
+
9
+ /* tslint:disable */
10
+ function CheckoutTransactionQuoteFromJSON(json) {
11
+ return CheckoutTransactionQuoteFromJSONTyped(json);
12
+ }
13
+ function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'version': json['version'],
19
+ 'fromAmount': json['fromAmount'],
20
+ 'toAmount': json['toAmount'],
21
+ 'fees': !runtime.exists(json, 'fees') ? undefined : CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
22
+ 'estimatedTimeSec': !runtime.exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
23
+ 'rawQuote': !runtime.exists(json, 'rawQuote') ? undefined : json['rawQuote'],
24
+ 'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
25
+ 'createdAt': (new Date(json['createdAt'])),
26
+ 'expiresAt': (new Date(json['expiresAt'])),
27
+ };
28
+ }
29
+ function CheckoutTransactionQuoteToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'version': value.version,
38
+ 'fromAmount': value.fromAmount,
39
+ 'toAmount': value.toAmount,
40
+ 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
41
+ 'estimatedTimeSec': value.estimatedTimeSec,
42
+ 'rawQuote': value.rawQuote,
43
+ 'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
44
+ 'createdAt': (value.createdAt.toISOString()),
45
+ 'expiresAt': (value.expiresAt.toISOString()),
46
+ };
47
+ }
48
+
49
+ exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuoteFromJSON;
50
+ exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuoteFromJSONTyped;
51
+ exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuoteToJSON;
@@ -0,0 +1,77 @@
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 { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
13
+ import { SwapSigningPayload } from './SwapSigningPayload';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CheckoutTransactionQuote
18
+ */
19
+ export interface CheckoutTransactionQuote {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof CheckoutTransactionQuote
24
+ */
25
+ version: number;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CheckoutTransactionQuote
30
+ */
31
+ fromAmount: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CheckoutTransactionQuote
36
+ */
37
+ toAmount: string;
38
+ /**
39
+ *
40
+ * @type {CheckoutFeeBreakdown}
41
+ * @memberof CheckoutTransactionQuote
42
+ */
43
+ fees?: CheckoutFeeBreakdown;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof CheckoutTransactionQuote
48
+ */
49
+ estimatedTimeSec?: number;
50
+ /**
51
+ * Raw quote result data from the swap provider
52
+ * @type {object}
53
+ * @memberof CheckoutTransactionQuote
54
+ */
55
+ rawQuote?: object;
56
+ /**
57
+ *
58
+ * @type {SwapSigningPayload}
59
+ * @memberof CheckoutTransactionQuote
60
+ */
61
+ signingPayload?: SwapSigningPayload;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof CheckoutTransactionQuote
66
+ */
67
+ createdAt: Date;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof CheckoutTransactionQuote
72
+ */
73
+ expiresAt: Date;
74
+ }
75
+ export declare function CheckoutTransactionQuoteFromJSON(json: any): CheckoutTransactionQuote;
76
+ export declare function CheckoutTransactionQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionQuote;
77
+ export declare function CheckoutTransactionQuoteToJSON(value?: CheckoutTransactionQuote | null): any;
@@ -0,0 +1,45 @@
1
+ import { exists } from '../runtime.js';
2
+ import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
3
+ import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
4
+
5
+ /* tslint:disable */
6
+ function CheckoutTransactionQuoteFromJSON(json) {
7
+ return CheckoutTransactionQuoteFromJSONTyped(json);
8
+ }
9
+ function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'version': json['version'],
15
+ 'fromAmount': json['fromAmount'],
16
+ 'toAmount': json['toAmount'],
17
+ 'fees': !exists(json, 'fees') ? undefined : CheckoutFeeBreakdownFromJSON(json['fees']),
18
+ 'estimatedTimeSec': !exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
19
+ 'rawQuote': !exists(json, 'rawQuote') ? undefined : json['rawQuote'],
20
+ 'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
21
+ 'createdAt': (new Date(json['createdAt'])),
22
+ 'expiresAt': (new Date(json['expiresAt'])),
23
+ };
24
+ }
25
+ function CheckoutTransactionQuoteToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'version': value.version,
34
+ 'fromAmount': value.fromAmount,
35
+ 'toAmount': value.toAmount,
36
+ 'fees': CheckoutFeeBreakdownToJSON(value.fees),
37
+ 'estimatedTimeSec': value.estimatedTimeSec,
38
+ 'rawQuote': value.rawQuote,
39
+ 'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
40
+ 'createdAt': (value.createdAt.toISOString()),
41
+ 'expiresAt': (value.expiresAt.toISOString()),
42
+ };
43
+ }
44
+
45
+ export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON };
@@ -6,8 +6,6 @@ var runtime = require('../runtime.cjs');
6
6
  var ChainEnum = require('./ChainEnum.cjs');
7
7
  var SwapEvmApprovalData = require('./SwapEvmApprovalData.cjs');
8
8
  var SwapEvmTransactionData = require('./SwapEvmTransactionData.cjs');
9
- var SwapPsbtTransactionData = require('./SwapPsbtTransactionData.cjs');
10
- var SwapSerializedTransactionData = require('./SwapSerializedTransactionData.cjs');
11
9
 
12
10
  /* tslint:disable */
13
11
  function SwapSigningPayloadFromJSON(json) {
@@ -22,8 +20,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
22
20
  'chainId': json['chainId'],
23
21
  'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionData.SwapEvmTransactionDataFromJSON(json['evmTransaction']),
24
22
  'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
25
- 'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON(json['serializedTransaction']),
26
- 'psbtTransaction': !runtime.exists(json, 'psbtTransaction') ? undefined : SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON(json['psbtTransaction']),
23
+ 'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
24
+ 'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
27
25
  };
28
26
  }
29
27
  function SwapSigningPayloadToJSON(value) {
@@ -38,8 +36,8 @@ function SwapSigningPayloadToJSON(value) {
38
36
  'chainId': value.chainId,
39
37
  'evmTransaction': SwapEvmTransactionData.SwapEvmTransactionDataToJSON(value.evmTransaction),
40
38
  'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
41
- 'serializedTransaction': SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON(value.serializedTransaction),
42
- 'psbtTransaction': SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON(value.psbtTransaction),
39
+ 'serializedTransaction': value.serializedTransaction,
40
+ 'psbt': value.psbt,
43
41
  };
44
42
  }
45
43
 
@@ -12,10 +12,8 @@
12
12
  import { ChainEnum } from './ChainEnum';
13
13
  import { SwapEvmApprovalData } from './SwapEvmApprovalData';
14
14
  import { SwapEvmTransactionData } from './SwapEvmTransactionData';
15
- import { SwapPsbtTransactionData } from './SwapPsbtTransactionData';
16
- import { SwapSerializedTransactionData } from './SwapSerializedTransactionData';
17
15
  /**
18
- * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbtTransaction.
16
+ * Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt.
19
17
  * @export
20
18
  * @interface SwapSigningPayload
21
19
  */
@@ -45,17 +43,17 @@ export interface SwapSigningPayload {
45
43
  */
46
44
  evmApproval?: SwapEvmApprovalData;
47
45
  /**
48
- *
49
- * @type {SwapSerializedTransactionData}
46
+ * Base64-encoded serialized transaction
47
+ * @type {string}
50
48
  * @memberof SwapSigningPayload
51
49
  */
52
- serializedTransaction?: SwapSerializedTransactionData;
50
+ serializedTransaction?: string;
53
51
  /**
54
- *
55
- * @type {SwapPsbtTransactionData}
52
+ * Base64-encoded unsigned PSBT
53
+ * @type {string}
56
54
  * @memberof SwapSigningPayload
57
55
  */
58
- psbtTransaction?: SwapPsbtTransactionData;
56
+ psbt?: string;
59
57
  }
60
58
  export declare function SwapSigningPayloadFromJSON(json: any): SwapSigningPayload;
61
59
  export declare function SwapSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSigningPayload;
@@ -2,8 +2,6 @@ import { exists } from '../runtime.js';
2
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
3
3
  import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
4
4
  import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
5
- import { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataToJSON } from './SwapPsbtTransactionData.js';
6
- import { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataToJSON } from './SwapSerializedTransactionData.js';
7
5
 
8
6
  /* tslint:disable */
9
7
  function SwapSigningPayloadFromJSON(json) {
@@ -18,8 +16,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
18
16
  'chainId': json['chainId'],
19
17
  'evmTransaction': !exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionDataFromJSON(json['evmTransaction']),
20
18
  'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
21
- 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : SwapSerializedTransactionDataFromJSON(json['serializedTransaction']),
22
- 'psbtTransaction': !exists(json, 'psbtTransaction') ? undefined : SwapPsbtTransactionDataFromJSON(json['psbtTransaction']),
19
+ 'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
20
+ 'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
23
21
  };
24
22
  }
25
23
  function SwapSigningPayloadToJSON(value) {
@@ -34,8 +32,8 @@ function SwapSigningPayloadToJSON(value) {
34
32
  'chainId': value.chainId,
35
33
  'evmTransaction': SwapEvmTransactionDataToJSON(value.evmTransaction),
36
34
  'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
37
- 'serializedTransaction': SwapSerializedTransactionDataToJSON(value.serializedTransaction),
38
- 'psbtTransaction': SwapPsbtTransactionDataToJSON(value.psbtTransaction),
35
+ 'serializedTransaction': value.serializedTransaction,
36
+ 'psbt': value.psbt,
39
37
  };
40
38
  }
41
39
 
@@ -77,8 +77,8 @@ export * from './CheckoutCreateRequest';
77
77
  export * from './CheckoutExecutionStateEnum';
78
78
  export * from './CheckoutFailure';
79
79
  export * from './CheckoutFeeBreakdown';
80
+ export * from './CheckoutGasEstimate';
80
81
  export * from './CheckoutModeEnum';
81
- export * from './CheckoutQuoteSnapshot';
82
82
  export * from './CheckoutRiskStateEnum';
83
83
  export * from './CheckoutSettlementData';
84
84
  export * from './CheckoutSettlementStateEnum';
@@ -87,6 +87,7 @@ export * from './CheckoutTransaction';
87
87
  export * from './CheckoutTransactionCreateRequest';
88
88
  export * from './CheckoutTransactionCreateResponse';
89
89
  export * from './CheckoutTransactionDestinationAddress';
90
+ export * from './CheckoutTransactionQuote';
90
91
  export * from './CheckoutUpdateRequest';
91
92
  export * from './CheckoutsResponse';
92
93
  export * from './CoinbaseMpcWalletProperties';
@@ -523,12 +524,10 @@ export * from './SwapEvmApprovalData';
523
524
  export * from './SwapEvmTransactionData';
524
525
  export * from './SwapFee';
525
526
  export * from './SwapGasCost';
526
- export * from './SwapPsbtTransactionData';
527
527
  export * from './SwapQuoteRequest';
528
528
  export * from './SwapQuoteRequestSide';
529
529
  export * from './SwapQuoteResponse';
530
530
  export * from './SwapQuoteResponseSide';
531
- export * from './SwapSerializedTransactionData';
532
531
  export * from './SwapSigningPayload';
533
532
  export * from './SwapStatusRequest';
534
533
  export * from './SwapStatusRequestChain';
@@ -1,50 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var runtime = require('../runtime.cjs');
6
- var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
7
-
8
- /* tslint:disable */
9
- function CheckoutQuoteSnapshotFromJSON(json) {
10
- return CheckoutQuoteSnapshotFromJSONTyped(json);
11
- }
12
- function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
13
- if ((json === undefined) || (json === null)) {
14
- return json;
15
- }
16
- return {
17
- 'version': json['version'],
18
- 'fromAmount': json['fromAmount'],
19
- 'toAmount': json['toAmount'],
20
- 'toAmountMin': json['toAmountMin'],
21
- 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
22
- 'estimatedTimeSec': json['estimatedTimeSec'],
23
- 'route': !runtime.exists(json, 'route') ? undefined : json['route'],
24
- 'createdAt': (new Date(json['createdAt'])),
25
- 'expiresAt': (new Date(json['expiresAt'])),
26
- };
27
- }
28
- function CheckoutQuoteSnapshotToJSON(value) {
29
- if (value === undefined) {
30
- return undefined;
31
- }
32
- if (value === null) {
33
- return null;
34
- }
35
- return {
36
- 'version': value.version,
37
- 'fromAmount': value.fromAmount,
38
- 'toAmount': value.toAmount,
39
- 'toAmountMin': value.toAmountMin,
40
- 'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
41
- 'estimatedTimeSec': value.estimatedTimeSec,
42
- 'route': value.route,
43
- 'createdAt': (value.createdAt.toISOString()),
44
- 'expiresAt': (value.expiresAt.toISOString()),
45
- };
46
- }
47
-
48
- exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshotFromJSON;
49
- exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshotFromJSONTyped;
50
- exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshotToJSON;
@@ -1,76 +0,0 @@
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 { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
13
- /**
14
- *
15
- * @export
16
- * @interface CheckoutQuoteSnapshot
17
- */
18
- export interface CheckoutQuoteSnapshot {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof CheckoutQuoteSnapshot
23
- */
24
- version: number;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof CheckoutQuoteSnapshot
29
- */
30
- fromAmount: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof CheckoutQuoteSnapshot
35
- */
36
- toAmount: string;
37
- /**
38
- *
39
- * @type {string}
40
- * @memberof CheckoutQuoteSnapshot
41
- */
42
- toAmountMin: string;
43
- /**
44
- *
45
- * @type {CheckoutFeeBreakdown}
46
- * @memberof CheckoutQuoteSnapshot
47
- */
48
- fees: CheckoutFeeBreakdown;
49
- /**
50
- *
51
- * @type {number}
52
- * @memberof CheckoutQuoteSnapshot
53
- */
54
- estimatedTimeSec: number;
55
- /**
56
- * Raw route data from the swap provider
57
- * @type {object}
58
- * @memberof CheckoutQuoteSnapshot
59
- */
60
- route?: object;
61
- /**
62
- *
63
- * @type {Date}
64
- * @memberof CheckoutQuoteSnapshot
65
- */
66
- createdAt: Date;
67
- /**
68
- *
69
- * @type {Date}
70
- * @memberof CheckoutQuoteSnapshot
71
- */
72
- expiresAt: Date;
73
- }
74
- export declare function CheckoutQuoteSnapshotFromJSON(json: any): CheckoutQuoteSnapshot;
75
- export declare function CheckoutQuoteSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutQuoteSnapshot;
76
- export declare function CheckoutQuoteSnapshotToJSON(value?: CheckoutQuoteSnapshot | null): any;
@@ -1,44 +0,0 @@
1
- import { exists } from '../runtime.js';
2
- import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
3
-
4
- /* tslint:disable */
5
- function CheckoutQuoteSnapshotFromJSON(json) {
6
- return CheckoutQuoteSnapshotFromJSONTyped(json);
7
- }
8
- function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
9
- if ((json === undefined) || (json === null)) {
10
- return json;
11
- }
12
- return {
13
- 'version': json['version'],
14
- 'fromAmount': json['fromAmount'],
15
- 'toAmount': json['toAmount'],
16
- 'toAmountMin': json['toAmountMin'],
17
- 'fees': CheckoutFeeBreakdownFromJSON(json['fees']),
18
- 'estimatedTimeSec': json['estimatedTimeSec'],
19
- 'route': !exists(json, 'route') ? undefined : json['route'],
20
- 'createdAt': (new Date(json['createdAt'])),
21
- 'expiresAt': (new Date(json['expiresAt'])),
22
- };
23
- }
24
- function CheckoutQuoteSnapshotToJSON(value) {
25
- if (value === undefined) {
26
- return undefined;
27
- }
28
- if (value === null) {
29
- return null;
30
- }
31
- return {
32
- 'version': value.version,
33
- 'fromAmount': value.fromAmount,
34
- 'toAmount': value.toAmount,
35
- 'toAmountMin': value.toAmountMin,
36
- 'fees': CheckoutFeeBreakdownToJSON(value.fees),
37
- 'estimatedTimeSec': value.estimatedTimeSec,
38
- 'route': value.route,
39
- 'createdAt': (value.createdAt.toISOString()),
40
- 'expiresAt': (value.expiresAt.toISOString()),
41
- };
42
- }
43
-
44
- export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
- function SwapPsbtTransactionDataFromJSON(json) {
19
- return SwapPsbtTransactionDataFromJSONTyped(json);
20
- }
21
- function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'psbt': json['psbt'],
27
- };
28
- }
29
- function SwapPsbtTransactionDataToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'psbt': value.psbt,
38
- };
39
- }
40
-
41
- exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionDataFromJSON;
42
- exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionDataFromJSONTyped;
43
- exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionDataToJSON;
@@ -1,27 +0,0 @@
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 SwapPsbtTransactionData
16
- */
17
- export interface SwapPsbtTransactionData {
18
- /**
19
- * Base64-encoded unsigned PSBT
20
- * @type {string}
21
- * @memberof SwapPsbtTransactionData
22
- */
23
- psbt: string;
24
- }
25
- export declare function SwapPsbtTransactionDataFromJSON(json: any): SwapPsbtTransactionData;
26
- export declare function SwapPsbtTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapPsbtTransactionData;
27
- export declare function SwapPsbtTransactionDataToJSON(value?: SwapPsbtTransactionData | null): any;
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- function SwapPsbtTransactionDataFromJSON(json) {
15
- return SwapPsbtTransactionDataFromJSONTyped(json);
16
- }
17
- function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'psbt': json['psbt'],
23
- };
24
- }
25
- function SwapPsbtTransactionDataToJSON(value) {
26
- if (value === undefined) {
27
- return undefined;
28
- }
29
- if (value === null) {
30
- return null;
31
- }
32
- return {
33
- 'psbt': value.psbt,
34
- };
35
- }
36
-
37
- export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON };
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- /**
8
- * Dashboard API
9
- * Dashboard API documentation
10
- *
11
- * The version of the OpenAPI document: 1.0.0
12
- *
13
- *
14
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
- * https://openapi-generator.tech
16
- * Do not edit the class manually.
17
- */
18
- function SwapSerializedTransactionDataFromJSON(json) {
19
- return SwapSerializedTransactionDataFromJSONTyped(json);
20
- }
21
- function SwapSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
22
- if ((json === undefined) || (json === null)) {
23
- return json;
24
- }
25
- return {
26
- 'serializedTransaction': json['serializedTransaction'],
27
- };
28
- }
29
- function SwapSerializedTransactionDataToJSON(value) {
30
- if (value === undefined) {
31
- return undefined;
32
- }
33
- if (value === null) {
34
- return null;
35
- }
36
- return {
37
- 'serializedTransaction': value.serializedTransaction,
38
- };
39
- }
40
-
41
- exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionDataFromJSON;
42
- exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionDataFromJSONTyped;
43
- exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionDataToJSON;
@@ -1,27 +0,0 @@
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 SwapSerializedTransactionData
16
- */
17
- export interface SwapSerializedTransactionData {
18
- /**
19
- * Base64-encoded serialized transaction
20
- * @type {string}
21
- * @memberof SwapSerializedTransactionData
22
- */
23
- serializedTransaction: string;
24
- }
25
- export declare function SwapSerializedTransactionDataFromJSON(json: any): SwapSerializedTransactionData;
26
- export declare function SwapSerializedTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSerializedTransactionData;
27
- export declare function SwapSerializedTransactionDataToJSON(value?: SwapSerializedTransactionData | null): any;
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dashboard API
5
- * Dashboard API documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- function SwapSerializedTransactionDataFromJSON(json) {
15
- return SwapSerializedTransactionDataFromJSONTyped(json);
16
- }
17
- function SwapSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
18
- if ((json === undefined) || (json === null)) {
19
- return json;
20
- }
21
- return {
22
- 'serializedTransaction': json['serializedTransaction'],
23
- };
24
- }
25
- function SwapSerializedTransactionDataToJSON(value) {
26
- if (value === undefined) {
27
- return undefined;
28
- }
29
- if (value === null) {
30
- return null;
31
- }
32
- return {
33
- 'serializedTransaction': value.serializedTransaction,
34
- };
35
- }
36
-
37
- export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON };