pkg-sdk-test 0.0.15 → 0.0.17

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 (111) hide show
  1. package/README.md +14 -1
  2. package/dist/cjs/BaseClient.d.ts +2 -1
  3. package/dist/cjs/BaseClient.js +2 -2
  4. package/dist/cjs/Client.d.ts +1 -1
  5. package/dist/cjs/Client.js +1 -1
  6. package/dist/cjs/api/resources/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/index.js +1 -0
  8. package/dist/cjs/api/resources/payments/client/Client.d.ts +16 -1
  9. package/dist/cjs/api/resources/payments/client/Client.js +82 -28
  10. package/dist/cjs/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.ts +1 -1
  11. package/dist/cjs/api/resources/payments/client/requests/GetV1PaymentsRequest.d.ts +3 -2
  12. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.ts +10 -0
  13. package/dist/cjs/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.js +3 -0
  14. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.d.ts +5 -0
  16. package/dist/cjs/api/resources/payments/types/GetV1PaymentsRequestOrder.js +8 -0
  17. package/dist/cjs/api/resources/payments/types/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/payments/types/index.js +1 -0
  19. package/dist/cjs/api/resources/staticWallets/client/Client.d.ts +3 -2
  20. package/dist/cjs/api/resources/staticWallets/client/Client.js +64 -43
  21. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.ts +2 -1
  22. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.ts +12 -2
  23. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.js +10 -0
  24. package/dist/cjs/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.ts +2 -1
  25. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.ts +13 -0
  26. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.js +3 -0
  27. package/dist/cjs/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.ts +7 -0
  28. package/dist/cjs/api/resources/staticWallets/client/requests/index.d.ts +2 -1
  29. package/dist/cjs/api/resources/staticWallets/client/requests/index.js +3 -0
  30. package/dist/cjs/api/resources/staticWallets/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/staticWallets/index.js +1 -0
  32. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.ts +5 -0
  33. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.js +8 -0
  34. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.ts +5 -0
  35. package/dist/cjs/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.js +8 -0
  36. package/dist/cjs/api/resources/staticWallets/types/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/staticWallets/types/index.js +18 -0
  38. package/dist/cjs/api/types/CryptopayAssetId.d.ts +32 -0
  39. package/dist/cjs/api/types/CryptopayAssetId.js +35 -0
  40. package/dist/cjs/api/types/CryptopayPaymentResponse.d.ts +1 -1
  41. package/dist/cjs/api/types/CryptopayPublicPaymentResponse.d.ts +1 -1
  42. package/dist/cjs/api/types/CryptopayRedirectConfigDto.d.ts +11 -1
  43. package/dist/cjs/api/types/CryptopayRedirectConfigDto.js +11 -0
  44. package/dist/cjs/api/types/CryptopayStaticDepositResponse.d.ts +13 -2
  45. package/dist/cjs/api/types/CryptopayStaticDepositResponse.js +11 -0
  46. package/dist/cjs/api/types/CryptopayStaticWalletResponse.d.ts +2 -1
  47. package/dist/cjs/api/types/index.d.ts +1 -0
  48. package/dist/cjs/api/types/index.js +1 -0
  49. package/dist/cjs/auth/HeaderAuthProvider.d.ts +1 -1
  50. package/dist/cjs/environments.d.ts +4 -0
  51. package/dist/cjs/environments.js +7 -0
  52. package/dist/cjs/index.d.ts +1 -0
  53. package/dist/cjs/index.js +3 -1
  54. package/dist/cjs/version.d.ts +1 -1
  55. package/dist/cjs/version.js +1 -1
  56. package/dist/esm/BaseClient.d.mts +2 -1
  57. package/dist/esm/BaseClient.mjs +2 -2
  58. package/dist/esm/Client.d.mts +1 -1
  59. package/dist/esm/Client.mjs +1 -1
  60. package/dist/esm/api/resources/index.d.mts +1 -0
  61. package/dist/esm/api/resources/index.mjs +1 -0
  62. package/dist/esm/api/resources/payments/client/Client.d.mts +16 -1
  63. package/dist/esm/api/resources/payments/client/Client.mjs +82 -28
  64. package/dist/esm/api/resources/payments/client/requests/CryptopayCreatePaymentRequest.d.mts +1 -1
  65. package/dist/esm/api/resources/payments/client/requests/GetV1PaymentsRequest.d.mts +3 -2
  66. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.d.mts +10 -0
  67. package/dist/esm/api/resources/payments/client/requests/PostV1PaymentsPaymentIdActivateRequest.mjs +2 -0
  68. package/dist/esm/api/resources/payments/client/requests/index.d.mts +1 -0
  69. package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.d.mts +5 -0
  70. package/dist/esm/api/resources/payments/types/GetV1PaymentsRequestOrder.mjs +5 -0
  71. package/dist/esm/api/resources/payments/types/index.d.mts +1 -0
  72. package/dist/esm/api/resources/payments/types/index.mjs +1 -0
  73. package/dist/esm/api/resources/staticWallets/client/Client.d.mts +3 -2
  74. package/dist/esm/api/resources/staticWallets/client/Client.mjs +64 -43
  75. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayCreateStaticWalletRequest.d.mts +2 -1
  76. package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.d.mts +12 -2
  77. package/dist/esm/api/resources/staticWallets/client/requests/CryptopaySimulateStaticDepositRequest.mjs +9 -1
  78. package/dist/esm/api/resources/staticWallets/client/requests/CryptopayUpdateStaticWalletRequest.d.mts +2 -1
  79. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.d.mts +13 -0
  80. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsRequest.mjs +2 -0
  81. package/dist/esm/api/resources/staticWallets/client/requests/GetV1StaticWalletsStaticWalletIdDepositsRequest.d.mts +7 -0
  82. package/dist/esm/api/resources/staticWallets/client/requests/index.d.mts +2 -1
  83. package/dist/esm/api/resources/staticWallets/client/requests/index.mjs +1 -1
  84. package/dist/esm/api/resources/staticWallets/index.d.mts +1 -0
  85. package/dist/esm/api/resources/staticWallets/index.mjs +1 -0
  86. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.d.mts +5 -0
  87. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsRequestOrder.mjs +5 -0
  88. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.d.mts +5 -0
  89. package/dist/esm/api/resources/staticWallets/types/GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.mjs +5 -0
  90. package/dist/esm/api/resources/staticWallets/types/index.d.mts +2 -0
  91. package/dist/esm/api/resources/staticWallets/types/index.mjs +2 -0
  92. package/dist/esm/api/types/CryptopayAssetId.d.mts +32 -0
  93. package/dist/esm/api/types/CryptopayAssetId.mjs +32 -0
  94. package/dist/esm/api/types/CryptopayPaymentResponse.d.mts +1 -1
  95. package/dist/esm/api/types/CryptopayPublicPaymentResponse.d.mts +1 -1
  96. package/dist/esm/api/types/CryptopayRedirectConfigDto.d.mts +11 -1
  97. package/dist/esm/api/types/CryptopayRedirectConfigDto.mjs +10 -1
  98. package/dist/esm/api/types/CryptopayStaticDepositResponse.d.mts +13 -2
  99. package/dist/esm/api/types/CryptopayStaticDepositResponse.mjs +10 -1
  100. package/dist/esm/api/types/CryptopayStaticWalletResponse.d.mts +2 -1
  101. package/dist/esm/api/types/index.d.mts +1 -0
  102. package/dist/esm/api/types/index.mjs +1 -0
  103. package/dist/esm/auth/HeaderAuthProvider.d.mts +1 -1
  104. package/dist/esm/environments.d.mts +4 -0
  105. package/dist/esm/environments.mjs +4 -0
  106. package/dist/esm/index.d.mts +1 -0
  107. package/dist/esm/index.mjs +1 -0
  108. package/dist/esm/version.d.mts +1 -1
  109. package/dist/esm/version.mjs +1 -1
  110. package/package.json +1 -1
  111. package/reference.md +74 -1
@@ -58,14 +58,16 @@ exports.StaticWalletsClient = void 0;
58
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../environments.js"));
61
62
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
62
63
  const errors = __importStar(require("../../../../errors/index.js"));
63
64
  const SuwardSDK = __importStar(require("../../../index.js"));
64
65
  class StaticWalletsClient {
65
- constructor(options) {
66
+ constructor(options = {}) {
66
67
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
67
68
  }
68
69
  /**
70
+ * @param {SuwardSDK.GetV1StaticWalletsRequest} request
69
71
  * @param {StaticWalletsClient.RequestOptions} requestOptions - Request-specific configuration.
70
72
  *
71
73
  * @throws {@link SuwardSDK.UnauthorizedError}
@@ -73,23 +75,33 @@ class StaticWalletsClient {
73
75
  * @example
74
76
  * await client.staticWallets.listStaticWallets()
75
77
  */
76
- listStaticWallets(requestOptions) {
77
- return core.HttpResponsePromise.fromPromise(this.__listStaticWallets(requestOptions));
78
+ listStaticWallets(request = {}, requestOptions) {
79
+ return core.HttpResponsePromise.fromPromise(this.__listStaticWallets(request, requestOptions));
78
80
  }
79
- __listStaticWallets(requestOptions) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- var _a, _b, _c, _d, _e, _f, _g, _h;
81
+ __listStaticWallets() {
82
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
84
+ const { order, limit, lastId } = request;
85
+ const _queryParams = {
86
+ order: order != null ? order : undefined,
87
+ limit,
88
+ lastId,
89
+ };
82
90
  const _authRequest = yield this._options.authProvider.getAuthRequest();
83
91
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
92
  const _response = yield core.fetcher({
85
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "v1/static-wallets"),
93
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, "v1/static-wallets"),
86
94
  method: "GET",
87
95
  headers: _headers,
88
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
89
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
90
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
96
+ queryString: core.url
97
+ .queryBuilder()
98
+ .addMany(_queryParams)
99
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
100
+ .build(),
101
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
102
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
91
103
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
104
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
93
105
  logging: this._options.logging,
94
106
  });
95
107
  if (_response.ok) {
@@ -130,21 +142,21 @@ class StaticWalletsClient {
130
142
  }
131
143
  __createStaticWallet() {
132
144
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
133
- var _a, _b, _c, _d, _e, _f, _g, _h;
145
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
134
146
  const _authRequest = yield this._options.authProvider.getAuthRequest();
135
147
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
136
148
  const _response = yield core.fetcher({
137
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "v1/static-wallets"),
149
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, "v1/static-wallets"),
138
150
  method: "POST",
139
151
  headers: _headers,
140
152
  contentType: "application/json",
141
153
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
142
154
  requestType: "json",
143
155
  body: request,
144
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
145
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
156
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
157
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
146
158
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
147
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
159
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
148
160
  logging: this._options.logging,
149
161
  });
150
162
  if (_response.ok) {
@@ -186,19 +198,19 @@ class StaticWalletsClient {
186
198
  }
187
199
  __getStaticWallet(request, requestOptions) {
188
200
  return __awaiter(this, void 0, void 0, function* () {
189
- var _a, _b, _c, _d, _e, _f, _g, _h;
201
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
190
202
  const { staticWalletId } = request;
191
203
  const _authRequest = yield this._options.authProvider.getAuthRequest();
192
204
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
193
205
  const _response = yield core.fetcher({
194
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
206
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
195
207
  method: "GET",
196
208
  headers: _headers,
197
209
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
198
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
199
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
210
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
211
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
200
212
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
201
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
213
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
202
214
  logging: this._options.logging,
203
215
  });
204
216
  if (_response.ok) {
@@ -238,19 +250,19 @@ class StaticWalletsClient {
238
250
  }
239
251
  __deleteStaticWallet(request, requestOptions) {
240
252
  return __awaiter(this, void 0, void 0, function* () {
241
- var _a, _b, _c, _d, _e, _f, _g, _h;
253
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
242
254
  const { staticWalletId } = request;
243
255
  const _authRequest = yield this._options.authProvider.getAuthRequest();
244
256
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
245
257
  const _response = yield core.fetcher({
246
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
258
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
247
259
  method: "DELETE",
248
260
  headers: _headers,
249
261
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
250
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
251
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
262
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
263
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
252
264
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
253
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
265
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
254
266
  logging: this._options.logging,
255
267
  });
256
268
  if (_response.ok) {
@@ -287,22 +299,22 @@ class StaticWalletsClient {
287
299
  }
288
300
  __updateStaticWallet(request, requestOptions) {
289
301
  return __awaiter(this, void 0, void 0, function* () {
290
- var _a, _b, _c, _d, _e, _f, _g, _h;
302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
291
303
  const { staticWalletId } = request, _body = __rest(request, ["staticWalletId"]);
292
304
  const _authRequest = yield this._options.authProvider.getAuthRequest();
293
305
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
294
306
  const _response = yield core.fetcher({
295
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
307
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}`),
296
308
  method: "PATCH",
297
309
  headers: _headers,
298
310
  contentType: "application/json",
299
311
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
300
312
  requestType: "json",
301
313
  body: _body,
302
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
303
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
314
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
315
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
304
316
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
305
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
317
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
306
318
  logging: this._options.logging,
307
319
  });
308
320
  if (_response.ok) {
@@ -342,19 +354,28 @@ class StaticWalletsClient {
342
354
  }
343
355
  __listStaticWalletDeposits(request, requestOptions) {
344
356
  return __awaiter(this, void 0, void 0, function* () {
345
- var _a, _b, _c, _d, _e, _f, _g, _h;
346
- const { staticWalletId } = request;
357
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
358
+ const { staticWalletId, order, limit, lastId } = request;
359
+ const _queryParams = {
360
+ order: order != null ? order : undefined,
361
+ limit,
362
+ lastId,
363
+ };
347
364
  const _authRequest = yield this._options.authProvider.getAuthRequest();
348
365
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
349
366
  const _response = yield core.fetcher({
350
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}/deposits`),
367
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}/deposits`),
351
368
  method: "GET",
352
369
  headers: _headers,
353
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
354
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
355
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
370
+ queryString: core.url
371
+ .queryBuilder()
372
+ .addMany(_queryParams)
373
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
374
+ .build(),
375
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
376
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
356
377
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
357
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
378
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
358
379
  logging: this._options.logging,
359
380
  });
360
381
  if (_response.ok) {
@@ -397,22 +418,22 @@ class StaticWalletsClient {
397
418
  }
398
419
  __simulateStaticWalletDeposit(request, requestOptions) {
399
420
  return __awaiter(this, void 0, void 0, function* () {
400
- var _a, _b, _c, _d, _e, _f, _g, _h;
421
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
401
422
  const { staticWalletId } = request, _body = __rest(request, ["staticWalletId"]);
402
423
  const _authRequest = yield this._options.authProvider.getAuthRequest();
403
424
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
404
425
  const _response = yield core.fetcher({
405
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}/simulate`),
426
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SuwardSDKEnvironment.Default, `v1/static-wallets/${core.url.encodePathParam(staticWalletId)}/simulate`),
406
427
  method: "POST",
407
428
  headers: _headers,
408
429
  contentType: "application/json",
409
430
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
410
431
  requestType: "json",
411
432
  body: _body,
412
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
413
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
433
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
434
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
414
435
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
415
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
436
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
416
437
  logging: this._options.logging,
417
438
  });
418
439
  if (_response.ok) {
@@ -1,9 +1,10 @@
1
+ import type * as SuwardSDK from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {}
4
5
  */
5
6
  export interface CryptopayCreateStaticWalletRequest {
6
- allowedAssets?: string[];
7
+ allowedAssets?: SuwardSDK.CryptopayAssetId[];
7
8
  externalId?: string;
8
9
  isTest?: boolean;
9
10
  metadata?: Record<string, unknown>;
@@ -1,3 +1,4 @@
1
+ import type * as SuwardSDK from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -8,8 +9,17 @@ export interface CryptopaySimulateStaticDepositRequest {
8
9
  /** Static wallet ID */
9
10
  staticWalletId: string;
10
11
  amount?: string;
11
- asset?: string;
12
- status?: string;
12
+ asset?: SuwardSDK.CryptopayAssetId;
13
+ status?: CryptopaySimulateStaticDepositRequest.Status;
13
14
  transferIndex?: string;
14
15
  txHash?: string;
15
16
  }
17
+ export declare namespace CryptopaySimulateStaticDepositRequest {
18
+ const Status: {
19
+ readonly Detected: "detected";
20
+ readonly Accepted: "accepted";
21
+ readonly Confirmed: "confirmed";
22
+ readonly Invalidated: "invalidated";
23
+ };
24
+ type Status = (typeof Status)[keyof typeof Status];
25
+ }
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CryptopaySimulateStaticDepositRequest = void 0;
5
+ var CryptopaySimulateStaticDepositRequest;
6
+ (function (CryptopaySimulateStaticDepositRequest) {
7
+ CryptopaySimulateStaticDepositRequest.Status = {
8
+ Detected: "detected",
9
+ Accepted: "accepted",
10
+ Confirmed: "confirmed",
11
+ Invalidated: "invalidated",
12
+ };
13
+ })(CryptopaySimulateStaticDepositRequest || (exports.CryptopaySimulateStaticDepositRequest = CryptopaySimulateStaticDepositRequest = {}));
@@ -1,3 +1,4 @@
1
+ import type * as SuwardSDK from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -7,7 +8,7 @@
7
8
  export interface CryptopayUpdateStaticWalletRequest {
8
9
  /** Static wallet ID */
9
10
  staticWalletId: string;
10
- allowedAssets?: string[];
11
+ allowedAssets?: SuwardSDK.CryptopayAssetId[];
11
12
  metadata?: Record<string, unknown>;
12
13
  webhookUrl?: string;
13
14
  }
@@ -0,0 +1,13 @@
1
+ import type * as SuwardSDK from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface GetV1StaticWalletsRequest {
7
+ /** Sort order (asc/desc) */
8
+ order?: SuwardSDK.GetV1StaticWalletsRequestOrder;
9
+ /** Limit (default 20, max 100) */
10
+ limit?: number;
11
+ /** Last ID for pagination */
12
+ lastId?: string;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ import type * as SuwardSDK from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -7,4 +8,10 @@
7
8
  export interface GetV1StaticWalletsStaticWalletIdDepositsRequest {
8
9
  /** Static wallet ID */
9
10
  staticWalletId: string;
11
+ /** Sort order (asc/desc) */
12
+ order?: SuwardSDK.GetV1StaticWalletsStaticWalletIdDepositsRequestOrder;
13
+ /** Limit (default 20, max 100) */
14
+ limit?: number;
15
+ /** Last ID for pagination */
16
+ lastId?: string;
10
17
  }
@@ -1,6 +1,7 @@
1
1
  export type { CryptopayCreateStaticWalletRequest } from "./CryptopayCreateStaticWalletRequest.js";
2
- export type { CryptopaySimulateStaticDepositRequest } from "./CryptopaySimulateStaticDepositRequest.js";
2
+ export { CryptopaySimulateStaticDepositRequest } from "./CryptopaySimulateStaticDepositRequest.js";
3
3
  export type { CryptopayUpdateStaticWalletRequest } from "./CryptopayUpdateStaticWalletRequest.js";
4
4
  export type { DeleteV1StaticWalletsStaticWalletIdRequest } from "./DeleteV1StaticWalletsStaticWalletIdRequest.js";
5
+ export type { GetV1StaticWalletsRequest } from "./GetV1StaticWalletsRequest.js";
5
6
  export type { GetV1StaticWalletsStaticWalletIdDepositsRequest } from "./GetV1StaticWalletsStaticWalletIdDepositsRequest.js";
6
7
  export type { GetV1StaticWalletsStaticWalletIdRequest } from "./GetV1StaticWalletsStaticWalletIdRequest.js";
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptopaySimulateStaticDepositRequest = void 0;
4
+ var CryptopaySimulateStaticDepositRequest_js_1 = require("./CryptopaySimulateStaticDepositRequest.js");
5
+ Object.defineProperty(exports, "CryptopaySimulateStaticDepositRequest", { enumerable: true, get: function () { return CryptopaySimulateStaticDepositRequest_js_1.CryptopaySimulateStaticDepositRequest; } });
@@ -1 +1,2 @@
1
1
  export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,5 @@
1
+ export declare const GetV1StaticWalletsRequestOrder: {
2
+ readonly Asc: "asc";
3
+ readonly Desc: "desc";
4
+ };
5
+ export type GetV1StaticWalletsRequestOrder = (typeof GetV1StaticWalletsRequestOrder)[keyof typeof GetV1StaticWalletsRequestOrder];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetV1StaticWalletsRequestOrder = void 0;
5
+ exports.GetV1StaticWalletsRequestOrder = {
6
+ Asc: "asc",
7
+ Desc: "desc",
8
+ };
@@ -0,0 +1,5 @@
1
+ export declare const GetV1StaticWalletsStaticWalletIdDepositsRequestOrder: {
2
+ readonly Asc: "asc";
3
+ readonly Desc: "desc";
4
+ };
5
+ export type GetV1StaticWalletsStaticWalletIdDepositsRequestOrder = (typeof GetV1StaticWalletsStaticWalletIdDepositsRequestOrder)[keyof typeof GetV1StaticWalletsStaticWalletIdDepositsRequestOrder];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetV1StaticWalletsStaticWalletIdDepositsRequestOrder = void 0;
5
+ exports.GetV1StaticWalletsStaticWalletIdDepositsRequestOrder = {
6
+ Asc: "asc",
7
+ Desc: "desc",
8
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./GetV1StaticWalletsRequestOrder.js";
2
+ export * from "./GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetV1StaticWalletsRequestOrder.js"), exports);
18
+ __exportStar(require("./GetV1StaticWalletsStaticWalletIdDepositsRequestOrder.js"), exports);
@@ -0,0 +1,32 @@
1
+ /** Asset id-string (see GET /v1/assets), e.g. USDT_ETHEREUM. */
2
+ export declare const CryptopayAssetId: {
3
+ readonly UsdtEthereum: "USDT_ETHEREUM";
4
+ readonly UsdtArbitrum: "USDT_ARBITRUM";
5
+ readonly UsdtOptimism: "USDT_OPTIMISM";
6
+ readonly UsdtBase: "USDT_BASE";
7
+ readonly UsdtBsc: "USDT_BSC";
8
+ readonly UsdtPlasma: "USDT_PLASMA";
9
+ readonly UsdtPolygon: "USDT_POLYGON";
10
+ readonly UsdcEthereum: "USDC_ETHEREUM";
11
+ readonly UsdcArbitrum: "USDC_ARBITRUM";
12
+ readonly UsdCeArbitrum: "USDCE_ARBITRUM";
13
+ readonly UsdcOptimism: "USDC_OPTIMISM";
14
+ readonly UsdcBase: "USDC_BASE";
15
+ readonly UsdcBsc: "USDC_BSC";
16
+ readonly UsdcPlasma: "USDC_PLASMA";
17
+ readonly UsdcPolygon: "USDC_POLYGON";
18
+ readonly EthEthereum: "ETH_ETHEREUM";
19
+ readonly EthArbitrum: "ETH_ARBITRUM";
20
+ readonly EthOptimism: "ETH_OPTIMISM";
21
+ readonly EthBase: "ETH_BASE";
22
+ readonly XplPlasma: "XPL_PLASMA";
23
+ readonly BnbBsc: "BNB_BSC";
24
+ readonly PolPolygon: "POL_POLYGON";
25
+ readonly TestcoinEthereum: "TESTCOIN_ETHEREUM";
26
+ readonly TestcoinOptimism: "TESTCOIN_OPTIMISM";
27
+ readonly TestcoinPlasma: "TESTCOIN_PLASMA";
28
+ readonly TeststablecoinEthereum: "TESTSTABLECOIN_ETHEREUM";
29
+ readonly TeststablecoinOptimism: "TESTSTABLECOIN_OPTIMISM";
30
+ readonly TeststablecoinPlasma: "TESTSTABLECOIN_PLASMA";
31
+ };
32
+ export type CryptopayAssetId = (typeof CryptopayAssetId)[keyof typeof CryptopayAssetId];
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CryptopayAssetId = void 0;
5
+ /** Asset id-string (see GET /v1/assets), e.g. USDT_ETHEREUM. */
6
+ exports.CryptopayAssetId = {
7
+ UsdtEthereum: "USDT_ETHEREUM",
8
+ UsdtArbitrum: "USDT_ARBITRUM",
9
+ UsdtOptimism: "USDT_OPTIMISM",
10
+ UsdtBase: "USDT_BASE",
11
+ UsdtBsc: "USDT_BSC",
12
+ UsdtPlasma: "USDT_PLASMA",
13
+ UsdtPolygon: "USDT_POLYGON",
14
+ UsdcEthereum: "USDC_ETHEREUM",
15
+ UsdcArbitrum: "USDC_ARBITRUM",
16
+ UsdCeArbitrum: "USDCE_ARBITRUM",
17
+ UsdcOptimism: "USDC_OPTIMISM",
18
+ UsdcBase: "USDC_BASE",
19
+ UsdcBsc: "USDC_BSC",
20
+ UsdcPlasma: "USDC_PLASMA",
21
+ UsdcPolygon: "USDC_POLYGON",
22
+ EthEthereum: "ETH_ETHEREUM",
23
+ EthArbitrum: "ETH_ARBITRUM",
24
+ EthOptimism: "ETH_OPTIMISM",
25
+ EthBase: "ETH_BASE",
26
+ XplPlasma: "XPL_PLASMA",
27
+ BnbBsc: "BNB_BSC",
28
+ PolPolygon: "POL_POLYGON",
29
+ TestcoinEthereum: "TESTCOIN_ETHEREUM",
30
+ TestcoinOptimism: "TESTCOIN_OPTIMISM",
31
+ TestcoinPlasma: "TESTCOIN_PLASMA",
32
+ TeststablecoinEthereum: "TESTSTABLECOIN_ETHEREUM",
33
+ TeststablecoinOptimism: "TESTSTABLECOIN_OPTIMISM",
34
+ TeststablecoinPlasma: "TESTSTABLECOIN_PLASMA",
35
+ };
@@ -7,7 +7,7 @@ export interface CryptopayPaymentResponse {
7
7
  amount?: string | undefined;
8
8
  amountConfirmed?: string | undefined;
9
9
  amountReceived?: string | undefined;
10
- asset?: string | undefined;
10
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
11
11
  createdAt?: number | undefined;
12
12
  expiresAt?: number | undefined;
13
13
  externalId?: string | undefined;
@@ -5,7 +5,7 @@ export interface CryptopayPublicPaymentResponse {
5
5
  address?: string | undefined;
6
6
  amount?: string | undefined;
7
7
  amountReceived?: string | undefined;
8
- asset?: string | undefined;
8
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
9
9
  createdAt?: number | undefined;
10
10
  expiresAt?: number | undefined;
11
11
  id?: string | undefined;
@@ -1,5 +1,15 @@
1
1
  export interface CryptopayRedirectConfigDto {
2
2
  data?: string | undefined;
3
- params?: string[] | undefined;
3
+ params?: CryptopayRedirectConfigDto.Params.Item[] | undefined;
4
4
  url?: string | undefined;
5
5
  }
6
+ export declare namespace CryptopayRedirectConfigDto {
7
+ type Params = Params.Item[];
8
+ namespace Params {
9
+ const Item: {
10
+ readonly Id: "id";
11
+ readonly ExternalId: "externalId";
12
+ };
13
+ type Item = (typeof Item)[keyof typeof Item];
14
+ }
15
+ }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CryptopayRedirectConfigDto = void 0;
5
+ var CryptopayRedirectConfigDto;
6
+ (function (CryptopayRedirectConfigDto) {
7
+ let Params;
8
+ (function (Params) {
9
+ Params.Item = {
10
+ Id: "id",
11
+ ExternalId: "externalId",
12
+ };
13
+ })(Params = CryptopayRedirectConfigDto.Params || (CryptopayRedirectConfigDto.Params = {}));
14
+ })(CryptopayRedirectConfigDto || (exports.CryptopayRedirectConfigDto = CryptopayRedirectConfigDto = {}));
@@ -1,8 +1,9 @@
1
+ import type * as SuwardSDK from "../index.js";
1
2
  export interface CryptopayStaticDepositResponse {
2
3
  acceptedAt?: number | undefined;
3
4
  address?: string | undefined;
4
5
  amount?: string | undefined;
5
- asset?: string | undefined;
6
+ asset?: SuwardSDK.CryptopayAssetId | undefined;
6
7
  confirmedAt?: number | undefined;
7
8
  createdAt?: number | undefined;
8
9
  detectedAt?: number | undefined;
@@ -13,8 +14,18 @@ export interface CryptopayStaticDepositResponse {
13
14
  networkFee?: string | undefined;
14
15
  projectId?: string | undefined;
15
16
  staticWalletId?: string | undefined;
16
- status?: string | undefined;
17
+ status?: CryptopayStaticDepositResponse.Status | undefined;
17
18
  transferIndex?: string | undefined;
18
19
  txHash?: string | undefined;
19
20
  updatedAt?: number | undefined;
20
21
  }
22
+ export declare namespace CryptopayStaticDepositResponse {
23
+ const Status: {
24
+ readonly Detected: "detected";
25
+ readonly Accepted: "accepted";
26
+ readonly Confirmed: "confirmed";
27
+ readonly Ignored: "ignored";
28
+ readonly Invalidated: "invalidated";
29
+ };
30
+ type Status = (typeof Status)[keyof typeof Status];
31
+ }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CryptopayStaticDepositResponse = void 0;
5
+ var CryptopayStaticDepositResponse;
6
+ (function (CryptopayStaticDepositResponse) {
7
+ CryptopayStaticDepositResponse.Status = {
8
+ Detected: "detected",
9
+ Accepted: "accepted",
10
+ Confirmed: "confirmed",
11
+ Ignored: "ignored",
12
+ Invalidated: "invalidated",
13
+ };
14
+ })(CryptopayStaticDepositResponse || (exports.CryptopayStaticDepositResponse = CryptopayStaticDepositResponse = {}));
@@ -1,6 +1,7 @@
1
+ import type * as SuwardSDK from "../index.js";
1
2
  export interface CryptopayStaticWalletResponse {
2
3
  address?: string | undefined;
3
- allowedAssets?: string[] | undefined;
4
+ allowedAssets?: SuwardSDK.CryptopayAssetId[] | undefined;
4
5
  createdAt?: number | undefined;
5
6
  externalId?: string | undefined;
6
7
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  export * from "./ControllerErrorResponse.js";
2
+ export * from "./CryptopayAssetId.js";
2
3
  export * from "./CryptopayListPaymentsResponse.js";
3
4
  export * from "./CryptopayListStaticDepositsResponse.js";
4
5
  export * from "./CryptopayListStaticWalletsResponse.js";