@riocrypto/common-server 1.0.2425 → 1.0.2426
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.
|
@@ -31,10 +31,11 @@ declare class ClusterClient {
|
|
|
31
31
|
getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
|
|
32
32
|
getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
|
|
33
33
|
getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
|
|
34
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }: {
|
|
34
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, }: {
|
|
35
35
|
quoteId: string;
|
|
36
36
|
userAddressId?: string;
|
|
37
37
|
payoutBankAccountId?: string;
|
|
38
|
+
parentOrderId?: string;
|
|
38
39
|
notes?: string;
|
|
39
40
|
isAxeTaker?: boolean;
|
|
40
41
|
}): Promise<Order>;
|
|
@@ -155,7 +155,7 @@ class ClusterClient {
|
|
|
155
155
|
return response.data;
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }) {
|
|
158
|
+
createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, }) {
|
|
159
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
160
|
const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
|
|
161
161
|
quoteId,
|
|
@@ -165,6 +165,7 @@ class ClusterClient {
|
|
|
165
165
|
: undefined,
|
|
166
166
|
notes: notes ? notes : undefined,
|
|
167
167
|
isAxeTaker: isAxeTaker ? isAxeTaker : undefined,
|
|
168
|
+
parentOrderId: parentOrderId ? parentOrderId : undefined,
|
|
168
169
|
}, {
|
|
169
170
|
headers: {
|
|
170
171
|
"x-cluster-api-key": this.clusterApiKey,
|