@cosmosapp/pay_sdk 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -95,6 +95,17 @@ var AnalyticsManager = class {
95
95
  summary() {
96
96
  return this.rest.get("/summary");
97
97
  }
98
+ /**
99
+ * Activity per day, week, month or year, with the window before for growth:
100
+ * payments (with their settled volume in USD), swaps of every kind, liquidity
101
+ * operations, webhook deliveries and private payments, each in the UTC
102
+ * buckets of `period` (`day` when omitted).
103
+ */
104
+ series(options = {}) {
105
+ return this.rest.get("/summary/series", {
106
+ query: { period: options.period }
107
+ });
108
+ }
98
109
  /** Settled (and pending) amount per asset. */
99
110
  balances() {
100
111
  return this.rest.get("/balances");
@@ -126,6 +137,17 @@ var AssetManager = class {
126
137
  }
127
138
  };
128
139
 
140
+ // src/util/path.ts
141
+ function pathSegment(value) {
142
+ if (typeof value !== "string" || value.length === 0) {
143
+ throw new TypeError("A path segment must be a non-empty string.");
144
+ }
145
+ if (value === "." || value === "..") {
146
+ throw new TypeError(`"${value}" is not a valid id.`);
147
+ }
148
+ return encodeURIComponent(value);
149
+ }
150
+
129
151
  // src/structures/Base.ts
130
152
  var Base = class {
131
153
  constructor(client, data) {
@@ -147,12 +169,6 @@ var Base = class {
147
169
  var Customer = class extends Base {
148
170
  constructor(client, data) {
149
171
  super(client, data);
150
- /** Number of payment intents from this customer's account (list view only). */
151
- this.payments = null;
152
- /** Number of succeeded payments (list view only). */
153
- this.succeeded = null;
154
- /** Total settled amount as a decimal string (list view only). */
155
- this.total = null;
156
172
  }
157
173
  _patch(data) {
158
174
  super._patch(data);
@@ -160,13 +176,14 @@ var Customer = class extends Base {
160
176
  this.alias = data.alias;
161
177
  this.note = data.note;
162
178
  this.email = data.email;
179
+ this.wallets = data.wallets ?? [];
163
180
  this.account = data.account;
164
181
  this.reference = data.reference;
165
182
  this.createdAt = new Date(data.createdAt);
166
183
  this.updatedAt = new Date(data.updatedAt);
167
- if (data.payments !== void 0) this.payments = data.payments;
168
- if (data.succeeded !== void 0) this.succeeded = data.succeeded;
169
- if (data.total !== void 0) this.total = data.total;
184
+ this.payments = data.payments ?? this.payments ?? null;
185
+ this.succeeded = data.succeeded ?? this.succeeded ?? null;
186
+ this.total = data.total ?? this.total ?? null;
170
187
  return this;
171
188
  }
172
189
  /** Re-fetch this customer. */
@@ -182,6 +199,29 @@ var Customer = class extends Base {
182
199
  delete() {
183
200
  return this.client.customers.delete(this.id);
184
201
  }
202
+ /**
203
+ * Add a wallet to this customer and to {@link Customer.wallets}. A wallet the
204
+ * customer already holds answers as it is.
205
+ */
206
+ async addWallet(options) {
207
+ const wallet = await this.client.customers.addWallet(this.id, options);
208
+ const at = this.wallets.findIndex((w) => w.id === wallet.id);
209
+ this.wallets = at === -1 ? [...this.wallets, wallet] : this.wallets.map((w, i) => i === at ? wallet : w);
210
+ this.syncAccount();
211
+ return wallet;
212
+ }
213
+ /** Remove one of this customer's wallets, by id or as read from {@link Customer.wallets}. */
214
+ async removeWallet(wallet) {
215
+ const walletId = typeof wallet === "string" ? wallet : wallet.id;
216
+ const result = await this.client.customers.removeWallet(this.id, walletId);
217
+ this.wallets = this.wallets.filter((w) => w.id !== walletId);
218
+ this.syncAccount();
219
+ return result;
220
+ }
221
+ /** `account` is the first wallet's address, as the API derives it. */
222
+ syncAccount() {
223
+ this.account = this.wallets[0]?.address ?? null;
224
+ }
185
225
  toJSON() {
186
226
  return {
187
227
  id: this.id,
@@ -189,6 +229,7 @@ var Customer = class extends Base {
189
229
  alias: this.alias,
190
230
  note: this.note,
191
231
  email: this.email,
232
+ wallets: this.wallets,
192
233
  account: this.account,
193
234
  reference: this.reference,
194
235
  createdAt: this.createdAt.toISOString(),
@@ -257,6 +298,27 @@ var CustomerManager = class extends BaseManager {
257
298
  this.cache.delete(id);
258
299
  return result;
259
300
  }
301
+ /**
302
+ * Add a wallet to a customer, on Stellar, Solana or Monad (up to 20 per
303
+ * customer); payments paid from it count toward the customer. A wallet the
304
+ * customer already holds answers as it is; one another of your customers holds
305
+ * is `409 customer_wallet_taken`.
306
+ */
307
+ async addWallet(customerId, options) {
308
+ return this.rest.post(`${this.route}/${pathSegment(customerId)}/wallets`, {
309
+ body: options
310
+ });
311
+ }
312
+ /**
313
+ * Remove a wallet from a customer. Payments from that address stop counting
314
+ * toward it, and a later settled payment from it adds it as a new automatic
315
+ * customer. A `walletId` that is not one of this customer's wallets is 404.
316
+ */
317
+ async removeWallet(customerId, walletId) {
318
+ return this.rest.delete(
319
+ `${this.route}/${pathSegment(customerId)}/wallets/${pathSegment(walletId)}`
320
+ );
321
+ }
260
322
  };
261
323
 
262
324
  // src/managers/HealthManager.ts
@@ -313,18 +375,22 @@ var WebhookEventType = {
313
375
  SwapSubmitted: "SWAP_SUBMITTED",
314
376
  SwapSucceeded: "SWAP_SUCCEEDED",
315
377
  SwapFailed: "SWAP_FAILED",
378
+ SwapExpired: "SWAP_EXPIRED",
316
379
  // Liquidity pool operations.
317
380
  LiquidityCreated: "LIQUIDITY_CREATED",
318
381
  LiquiditySubmitted: "LIQUIDITY_SUBMITTED",
319
382
  LiquiditySucceeded: "LIQUIDITY_SUCCEEDED",
320
383
  LiquidityFailed: "LIQUIDITY_FAILED",
384
+ LiquidityExpired: "LIQUIDITY_EXPIRED",
321
385
  // Cross-chain swaps (NEAR Intents).
322
386
  CrossChainSwapCreated: "CROSS_CHAIN_SWAP_CREATED",
323
387
  CrossChainSwapUpdated: "CROSS_CHAIN_SWAP_UPDATED",
324
388
  CrossChainSwapSucceeded: "CROSS_CHAIN_SWAP_SUCCEEDED",
325
389
  CrossChainSwapRefunded: "CROSS_CHAIN_SWAP_REFUNDED",
326
390
  CrossChainSwapFailed: "CROSS_CHAIN_SWAP_FAILED",
327
- CrossChainSwapExpired: "CROSS_CHAIN_SWAP_EXPIRED"
391
+ CrossChainSwapExpired: "CROSS_CHAIN_SWAP_EXPIRED",
392
+ // Private payments (client.privatePayments).
393
+ PrivatePaymentSucceeded: "ZK_PAYMENT_SUCCEEDED"
328
394
  };
329
395
  var WebhookDeliveryStatus = {
330
396
  Pending: "PENDING",
@@ -358,6 +424,23 @@ var CrossChainSwapStatus = {
358
424
  Failed: "FAILED",
359
425
  Expired: "EXPIRED"
360
426
  };
427
+ var PrivatePaymentStatus = {
428
+ Pending: "PENDING",
429
+ Succeeded: "SUCCEEDED",
430
+ Expired: "EXPIRED"
431
+ };
432
+ var Usdt0TransferStatus = {
433
+ /** Built, waiting for the signature. */
434
+ Pending: "PENDING",
435
+ /** On the Stellar ledger; LayerZero is delivering it. */
436
+ Submitted: "SUBMITTED",
437
+ /** Credited on the destination network. */
438
+ Delivered: "DELIVERED",
439
+ /** The Stellar transaction failed, or LayerZero gave up on the message. */
440
+ Failed: "FAILED",
441
+ /** Never reached the ledger before `expiresAt`. */
442
+ Expired: "EXPIRED"
443
+ };
361
444
 
362
445
  // src/structures/LiquidityOperation.ts
363
446
  var LiquidityOperation = class extends Base {
@@ -1570,6 +1653,125 @@ var PaymentIntentManager = class extends BaseManager {
1570
1653
  }
1571
1654
  };
1572
1655
 
1656
+ // src/structures/PrivatePayment.ts
1657
+ var PrivatePayment = class extends Base {
1658
+ constructor(client, data) {
1659
+ super(client, data);
1660
+ }
1661
+ _patch(data) {
1662
+ super._patch(data);
1663
+ this.status = data.status;
1664
+ this.network = data.network;
1665
+ this.tokenContract = data.tokenContract;
1666
+ this.amount = data.amount;
1667
+ this.netAmount = data.netAmount;
1668
+ this.feeAmount = data.feeAmount;
1669
+ this.feeBps = data.feeBps;
1670
+ this.recipient = data.recipient;
1671
+ this.feeAccount = data.feeAccount;
1672
+ this.payer = data.payer;
1673
+ this.paymentTxHash = data.paymentTxHash;
1674
+ this.feeTxHash = data.feeTxHash;
1675
+ this.merchantFee = data.merchantFee;
1676
+ this.merchantFeeTxHash = data.merchantFeeTxHash;
1677
+ this.description = data.description;
1678
+ this.idempotencyKey = data.idempotencyKey;
1679
+ this.expiresAt = new Date(data.expiresAt);
1680
+ this.settledAt = data.settledAt ? new Date(data.settledAt) : null;
1681
+ this.createdAt = new Date(data.createdAt);
1682
+ this.updatedAt = new Date(data.updatedAt);
1683
+ return this;
1684
+ }
1685
+ /** Whether the payment is still waiting for its transfers. */
1686
+ get isPending() {
1687
+ return this.status === PrivatePaymentStatus.Pending;
1688
+ }
1689
+ /** Whether every transfer has been confirmed. */
1690
+ get isSucceeded() {
1691
+ return this.status === PrivatePaymentStatus.Succeeded;
1692
+ }
1693
+ /** Whether it passed {@link expiresAt} without settling (it can still settle with transfers that closed in time). */
1694
+ get isExpired() {
1695
+ return this.status === PrivatePaymentStatus.Expired;
1696
+ }
1697
+ /** Re-fetch from the API, updating this instance in place. */
1698
+ async fetch() {
1699
+ const fresh = await this.client.privatePayments.fetch(this.id);
1700
+ return this._patch(fresh.toJSON());
1701
+ }
1702
+ toJSON() {
1703
+ return {
1704
+ id: this.id,
1705
+ status: this.status,
1706
+ network: this.network,
1707
+ tokenContract: this.tokenContract,
1708
+ amount: this.amount,
1709
+ netAmount: this.netAmount,
1710
+ feeAmount: this.feeAmount,
1711
+ feeBps: this.feeBps,
1712
+ recipient: this.recipient,
1713
+ feeAccount: this.feeAccount,
1714
+ payer: this.payer,
1715
+ paymentTxHash: this.paymentTxHash,
1716
+ feeTxHash: this.feeTxHash,
1717
+ merchantFee: this.merchantFee,
1718
+ merchantFeeTxHash: this.merchantFeeTxHash,
1719
+ description: this.description,
1720
+ idempotencyKey: this.idempotencyKey,
1721
+ expiresAt: this.expiresAt.toISOString(),
1722
+ settledAt: this.settledAt ? this.settledAt.toISOString() : null,
1723
+ createdAt: this.createdAt.toISOString(),
1724
+ updatedAt: this.updatedAt.toISOString()
1725
+ };
1726
+ }
1727
+ };
1728
+
1729
+ // src/managers/PrivatePaymentManager.ts
1730
+ var PrivatePaymentManager = class extends BaseManager {
1731
+ constructor() {
1732
+ super(...arguments);
1733
+ this.route = "/zk-payments";
1734
+ }
1735
+ /**
1736
+ * Create a private payment. The server prices it (`amount` = `netAmount` +
1737
+ * `feeAmount`) and checks on-chain that the recipient holds a confidential
1738
+ * account on the token, refusing it with `recipient_not_registered` otherwise.
1739
+ */
1740
+ async create(options) {
1741
+ const { idempotencyKey, ...body } = options;
1742
+ const data = await this.rest.post(this.route, {
1743
+ body: { ...body, ...idempotencyKey ? { idempotencyKey } : {} },
1744
+ ...idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : {}
1745
+ });
1746
+ return this._add(new PrivatePayment(this.client, data));
1747
+ }
1748
+ /** List the private payments on the key's network, newest first. */
1749
+ async list(options = {}) {
1750
+ const data = await this.rest.get(this.route, {
1751
+ query: { status: options.status, take: options.take, skip: options.skip }
1752
+ });
1753
+ return {
1754
+ items: data.data.map((d) => this._add(new PrivatePayment(this.client, d))),
1755
+ total: data.total,
1756
+ take: data.take,
1757
+ skip: data.skip
1758
+ };
1759
+ }
1760
+ /** Get one of your private payments, with the transfers that settled it. */
1761
+ async fetch(id) {
1762
+ const data = await this.rest.get(`${this.route}/${pathSegment(id)}`);
1763
+ return this._add(new PrivatePayment(this.client, data));
1764
+ }
1765
+ /**
1766
+ * The private payments setup of the key's network: the token, registries,
1767
+ * auditor id, commission and fee account a wallet registers and pays against.
1768
+ * `enabled` is false where private payments do not run yet.
1769
+ */
1770
+ config() {
1771
+ return this.rest.get(`${this.route}/config`);
1772
+ }
1773
+ };
1774
+
1573
1775
  // src/structures/Product.ts
1574
1776
  var Product = class extends Base {
1575
1777
  constructor(client, data) {
@@ -1925,6 +2127,198 @@ var SwapManager = class extends BaseManager {
1925
2127
  }
1926
2128
  };
1927
2129
 
2130
+ // src/structures/Usdt0Transfer.ts
2131
+ var FINAL2 = [
2132
+ Usdt0TransferStatus.Delivered,
2133
+ Usdt0TransferStatus.Failed,
2134
+ Usdt0TransferStatus.Expired
2135
+ ];
2136
+ var Usdt0Transfer = class extends Base {
2137
+ constructor(client, data) {
2138
+ super(client, data);
2139
+ }
2140
+ _patch(data) {
2141
+ super._patch(data);
2142
+ this.status = data.status;
2143
+ this.network = data.network;
2144
+ this.source = data.source;
2145
+ this.to = data.to;
2146
+ this.eid = data.eid;
2147
+ this.receives = data.receives;
2148
+ this.recipient = data.recipient;
2149
+ this.amount = data.amount;
2150
+ this.amountSent = data.amountSent;
2151
+ this.amountReceived = data.amountReceived;
2152
+ this.dust = data.dust;
2153
+ this.nativeFee = data.nativeFee;
2154
+ this.nativeFeeLimit = data.nativeFeeLimit;
2155
+ this.networkFee = data.networkFee;
2156
+ this.feeBps = data.feeBps;
2157
+ this.feeAmount = data.feeAmount;
2158
+ this.feeWallet = data.feeWallet;
2159
+ this.xdr = data.xdr;
2160
+ this.uri = data.uri;
2161
+ this.qr = data.qr ?? null;
2162
+ this.txHash = data.txHash;
2163
+ this.guid = data.guid;
2164
+ this.destinationTxHash = data.destinationTxHash;
2165
+ this.scanStatus = data.scanStatus;
2166
+ this.scanUrl = data.scanUrl;
2167
+ this.failureReason = data.failureReason;
2168
+ this.merchantFee = data.merchantFee;
2169
+ this.idempotencyKey = data.idempotencyKey;
2170
+ this.expiresAt = new Date(data.expiresAt);
2171
+ this.submittedAt = data.submittedAt ? new Date(data.submittedAt) : null;
2172
+ this.createdAt = new Date(data.createdAt);
2173
+ this.updatedAt = new Date(data.updatedAt);
2174
+ this.publicToken = data.publicToken ?? this.publicToken ?? null;
2175
+ return this;
2176
+ }
2177
+ /** Whether the transfer is still waiting for its signature. */
2178
+ get isPending() {
2179
+ return this.status === Usdt0TransferStatus.Pending;
2180
+ }
2181
+ /** Whether it was credited on the destination network. */
2182
+ get isDelivered() {
2183
+ return this.status === Usdt0TransferStatus.Delivered;
2184
+ }
2185
+ /** Whether it reached an outcome that will not change (DELIVERED, FAILED or EXPIRED). */
2186
+ get isFinal() {
2187
+ return FINAL2.includes(this.status);
2188
+ }
2189
+ /** Re-read it (the API refreshes it from the ledger and LayerZero Scan), updating this instance in place. */
2190
+ async fetch() {
2191
+ const fresh = await this.client.usdt0.fetch(this.id, this.recordToken());
2192
+ return this._patch(fresh.toJSON());
2193
+ }
2194
+ /**
2195
+ * Relay the signed transaction. Mutates this instance from the transfer in the
2196
+ * outcome and returns the outcome.
2197
+ */
2198
+ async submit(options) {
2199
+ const outcome = await this.client.usdt0.submit(this.id, {
2200
+ signedXdr: options.signedXdr,
2201
+ ...this.recordToken()
2202
+ });
2203
+ this._patch(outcome.transfer.toJSON());
2204
+ return outcome;
2205
+ }
2206
+ recordToken() {
2207
+ return this.publicToken ? { recordToken: this.publicToken } : {};
2208
+ }
2209
+ toJSON() {
2210
+ return {
2211
+ id: this.id,
2212
+ status: this.status,
2213
+ network: this.network,
2214
+ source: this.source,
2215
+ to: this.to,
2216
+ eid: this.eid,
2217
+ receives: this.receives,
2218
+ recipient: this.recipient,
2219
+ amount: this.amount,
2220
+ amountSent: this.amountSent,
2221
+ amountReceived: this.amountReceived,
2222
+ dust: this.dust,
2223
+ nativeFee: this.nativeFee,
2224
+ nativeFeeLimit: this.nativeFeeLimit,
2225
+ networkFee: this.networkFee,
2226
+ feeBps: this.feeBps,
2227
+ feeAmount: this.feeAmount,
2228
+ feeWallet: this.feeWallet,
2229
+ xdr: this.xdr,
2230
+ uri: this.uri,
2231
+ qr: this.qr,
2232
+ txHash: this.txHash,
2233
+ guid: this.guid,
2234
+ destinationTxHash: this.destinationTxHash,
2235
+ scanStatus: this.scanStatus,
2236
+ scanUrl: this.scanUrl,
2237
+ failureReason: this.failureReason,
2238
+ merchantFee: this.merchantFee,
2239
+ idempotencyKey: this.idempotencyKey,
2240
+ expiresAt: this.expiresAt.toISOString(),
2241
+ submittedAt: this.submittedAt ? this.submittedAt.toISOString() : null,
2242
+ createdAt: this.createdAt.toISOString(),
2243
+ updatedAt: this.updatedAt.toISOString(),
2244
+ ...this.publicToken ? { publicToken: this.publicToken } : {}
2245
+ };
2246
+ }
2247
+ };
2248
+
2249
+ // src/managers/Usdt0Manager.ts
2250
+ function recordTokenHeader(recordToken) {
2251
+ return recordToken ? { headers: { "X-Record-Token": recordToken } } : {};
2252
+ }
2253
+ var Usdt0Manager = class extends BaseManager {
2254
+ constructor() {
2255
+ super(...arguments);
2256
+ this.route = "/usdt0";
2257
+ }
2258
+ /** The networks USDT0 can be sent to from Stellar, with the token and OFT a transfer uses. */
2259
+ routes() {
2260
+ return this.rest.get(`${this.route}/routes`);
2261
+ }
2262
+ /**
2263
+ * Price a transfer: what is sent and arrives, the dust, LayerZero's fee and the
2264
+ * OFT's limits. Persists nothing.
2265
+ */
2266
+ quote(options) {
2267
+ return this.rest.post(`${this.route}/quote`, { body: options });
2268
+ }
2269
+ /** Build a transfer: the one unsigned Soroban transaction the holder signs (XDR and SEP-7 link). */
2270
+ async create(options) {
2271
+ const { idempotencyKey, ...body } = options;
2272
+ const data = await this.rest.post(`${this.route}/transfers`, {
2273
+ body: { ...body, ...idempotencyKey ? { idempotencyKey } : {} },
2274
+ ...idempotencyKey ? { headers: { "Idempotency-Key": idempotencyKey } } : {}
2275
+ });
2276
+ return this._add(new Usdt0Transfer(this.client, data));
2277
+ }
2278
+ /** List your transfers, newest first, as last refreshed (fetch one to refresh it). */
2279
+ async list(options = {}) {
2280
+ const data = await this.rest.get(`${this.route}/transfers`, {
2281
+ query: { status: options.status, take: options.take, skip: options.skip }
2282
+ });
2283
+ return {
2284
+ items: data.data.map((d) => this._add(new Usdt0Transfer(this.client, d))),
2285
+ total: data.total,
2286
+ take: data.take,
2287
+ skip: data.skip
2288
+ };
2289
+ }
2290
+ /**
2291
+ * Get one transfer. While PENDING or SUBMITTED the API refreshes it from the
2292
+ * Stellar ledger and LayerZero Scan (at most every 15 seconds).
2293
+ */
2294
+ async fetch(id, options = {}) {
2295
+ const data = await this.rest.get(
2296
+ `${this.route}/transfers/${pathSegment(id)}`,
2297
+ recordTokenHeader(options.recordToken)
2298
+ );
2299
+ return this._add(new Usdt0Transfer(this.client, data));
2300
+ }
2301
+ /**
2302
+ * Relay the signed transaction to Stellar mainnet. It must be the transaction
2303
+ * the API built for this transfer, signed. A refusal by the network leaves it
2304
+ * PENDING (`submitted: false`, `reason`) to submit again until it expires.
2305
+ */
2306
+ async submit(id, options) {
2307
+ const { recordToken, ...body } = options;
2308
+ const data = await this.rest.post(
2309
+ `${this.route}/transfers/${pathSegment(id)}/submit`,
2310
+ { body, ...recordTokenHeader(recordToken) }
2311
+ );
2312
+ return {
2313
+ submitted: data.submitted,
2314
+ status: data.status,
2315
+ txHash: data.txHash ?? null,
2316
+ reason: data.reason ?? null,
2317
+ transfer: this._add(new Usdt0Transfer(this.client, data.transfer))
2318
+ };
2319
+ }
2320
+ };
2321
+
1928
2322
  // src/structures/WebhookDelivery.ts
1929
2323
  var WebhookDelivery = class extends Base {
1930
2324
  constructor(client, data) {
@@ -2037,7 +2431,7 @@ var WebhookEndpoint = class extends Base {
2037
2431
  };
2038
2432
 
2039
2433
  // src/util/Constants.ts
2040
- var version = "2.2.1";
2434
+ var version = "2.3.1";
2041
2435
  var DEFAULT_BASE_URL = "https://api.cosmospay.lat/cosmos-api";
2042
2436
  var DEFAULT_VERSION = "v1";
2043
2437
  var DEFAULT_TIMEOUT = 3e4;
@@ -2589,6 +2983,8 @@ var Client = class extends events.EventEmitter {
2589
2983
  this.products = new ProductManager(this);
2590
2984
  this.swaps = new SwapManager(this);
2591
2985
  this.crossChainSwaps = new CrossChainSwapManager(this);
2986
+ this.usdt0 = new Usdt0Manager(this);
2987
+ this.privatePayments = new PrivatePaymentManager(this);
2592
2988
  this.liquidity = new LiquidityManager(this);
2593
2989
  this.onramp = new OnrampManager(this);
2594
2990
  this.offramp = new OfframpManager(this);
@@ -2665,6 +3061,9 @@ exports.PaymentIntentKind = PaymentIntentKind;
2665
3061
  exports.PaymentIntentManager = PaymentIntentManager;
2666
3062
  exports.PaymentIntentStatus = PaymentIntentStatus;
2667
3063
  exports.PluginManager = PluginManager;
3064
+ exports.PrivatePayment = PrivatePayment;
3065
+ exports.PrivatePaymentManager = PrivatePaymentManager;
3066
+ exports.PrivatePaymentStatus = PrivatePaymentStatus;
2668
3067
  exports.Product = Product;
2669
3068
  exports.ProductKind = ProductKind;
2670
3069
  exports.ProductManager = ProductManager;
@@ -2676,6 +3075,9 @@ exports.Swap = Swap;
2676
3075
  exports.SwapManager = SwapManager;
2677
3076
  exports.SwapStatus = SwapStatus;
2678
3077
  exports.TestnetAssets = TestnetAssets;
3078
+ exports.Usdt0Manager = Usdt0Manager;
3079
+ exports.Usdt0Transfer = Usdt0Transfer;
3080
+ exports.Usdt0TransferStatus = Usdt0TransferStatus;
2679
3081
  exports.Wallets = Wallets;
2680
3082
  exports.WebhookDelivery = WebhookDelivery;
2681
3083
  exports.WebhookDeliveryStatus = WebhookDeliveryStatus;