@riocrypto/common-server 1.0.1362 → 1.0.1363
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.
|
@@ -7,7 +7,7 @@ declare class ClusterClient {
|
|
|
7
7
|
getNewQuote(orderId: string, quote: Quote, newAmountFiat?: number, newAmountCrypto?: number): Promise<Quote>;
|
|
8
8
|
getQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number): Promise<Quote>;
|
|
9
9
|
getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
|
|
10
|
-
createOrder(quoteId: string, cryptoAddress?: string, notes?: string): Promise<Order>;
|
|
10
|
+
createOrder(quoteId: string, cryptoAddress?: string, notes?: string, externalAccountId?: string): Promise<Order>;
|
|
11
11
|
confirmPayment(orderId: string): Promise<void>;
|
|
12
12
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
13
13
|
getBalance(asset: Crypto | Fiat): Promise<number>;
|
|
@@ -103,12 +103,13 @@ class ClusterClient {
|
|
|
103
103
|
return response.data;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
createOrder(quoteId, cryptoAddress, notes) {
|
|
106
|
+
createOrder(quoteId, cryptoAddress, notes, externalAccountId) {
|
|
107
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
108
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
109
109
|
quoteId,
|
|
110
110
|
cryptoAddress: cryptoAddress ? cryptoAddress : undefined,
|
|
111
111
|
notes: notes ? notes : undefined,
|
|
112
|
+
externalAccountId: externalAccountId ? externalAccountId : undefined,
|
|
112
113
|
}, {
|
|
113
114
|
headers: {
|
|
114
115
|
"x-cluster-api-key": this.clusterApiKey,
|
|
@@ -19,7 +19,7 @@ interface TelegramSessionAttrs {
|
|
|
19
19
|
quoteId?: string;
|
|
20
20
|
orderId?: string;
|
|
21
21
|
cryptoAddress?: string;
|
|
22
|
-
|
|
22
|
+
externalAccountId?: string;
|
|
23
23
|
}
|
|
24
24
|
interface TelegramSessionDoc extends mongoose.Document {
|
|
25
25
|
createdAt: Date;
|
|
@@ -40,7 +40,7 @@ interface TelegramSessionDoc extends mongoose.Document {
|
|
|
40
40
|
quoteId?: string;
|
|
41
41
|
orderId?: string;
|
|
42
42
|
cryptoAddress?: string;
|
|
43
|
-
|
|
43
|
+
externalAccountId?: string;
|
|
44
44
|
}
|
|
45
45
|
interface TelegramSessionModel extends mongoose.Model<TelegramSessionDoc> {
|
|
46
46
|
build(attrs: TelegramSessionAttrs): TelegramSessionDoc;
|