@riocrypto/common-server 1.0.2168 → 1.0.2169

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.
@@ -13,7 +13,12 @@ declare class ClusterClient {
13
13
  getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
14
14
  getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
15
15
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
16
- createOrder(quoteId: string, cryptoAddress?: string, notes?: string, externalAccountId?: string): Promise<Order>;
16
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, }: {
17
+ quoteId: string;
18
+ userAddressId?: string;
19
+ payoutBankAccountId?: string;
20
+ notes?: string;
21
+ }): Promise<Order>;
17
22
  confirmPayment(orderId: string): Promise<void>;
18
23
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
19
24
  createAuthWithoutRegistration(phoneNumber: string, firstName: string, lastName: string, role?: AuthRole): Promise<Auth>;
@@ -146,13 +146,15 @@ class ClusterClient {
146
146
  return response.data;
147
147
  });
148
148
  }
149
- createOrder(quoteId, cryptoAddress, notes, externalAccountId) {
149
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, }) {
150
150
  return __awaiter(this, void 0, void 0, function* () {
151
151
  const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
152
152
  quoteId,
153
- cryptoAddress: cryptoAddress ? cryptoAddress : undefined,
153
+ userAddressId: userAddressId ? userAddressId : undefined,
154
+ payoutBankAccountId: payoutBankAccountId
155
+ ? payoutBankAccountId
156
+ : undefined,
154
157
  notes: notes ? notes : undefined,
155
- externalAccountId: externalAccountId ? externalAccountId : undefined,
156
158
  }, {
157
159
  headers: {
158
160
  "x-cluster-api-key": this.clusterApiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2168",
3
+ "version": "1.0.2169",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.1914",
31
+ "@riocrypto/common": "^1.0.1915",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",