@riocrypto/common 1.0.1006 → 1.0.1008
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.
|
@@ -2,6 +2,7 @@ import { Country } from "./country";
|
|
|
2
2
|
import { Fees } from "./fees";
|
|
3
3
|
import { Fiat } from "./fiat";
|
|
4
4
|
import { OrderStatus } from "./order-status";
|
|
5
|
+
import { Processor } from "./processor";
|
|
5
6
|
export interface ChainedOrder {
|
|
6
7
|
id: string;
|
|
7
8
|
userId: string;
|
|
@@ -16,6 +17,8 @@ export interface ChainedOrder {
|
|
|
16
17
|
destinationOrderId: string;
|
|
17
18
|
originOrderStatus: OrderStatus;
|
|
18
19
|
destinationOrderStatus: OrderStatus;
|
|
20
|
+
originOrderProcessor: Processor;
|
|
21
|
+
destinationOrderProcessor: Processor;
|
|
19
22
|
fees: Fees;
|
|
20
23
|
netPrice: number;
|
|
21
24
|
createdAt: Date;
|
|
@@ -13,7 +13,7 @@ export declare enum OrderStatus {
|
|
|
13
13
|
DepositAddressCreated = "depositAddressCreated",
|
|
14
14
|
Complete = "complete",
|
|
15
15
|
PaymentFailed = "failedPayment",
|
|
16
|
-
|
|
16
|
+
BankPayoutDetailsAdded = "bankPayoutDetailsAdded",
|
|
17
17
|
AwaitingPayment = "awaitingPayment",
|
|
18
18
|
AwaitingPayout = "awaitingPayout",
|
|
19
19
|
AwaitingBridgeRouting = "awaitingBridgeRouting",
|
|
@@ -33,8 +33,7 @@ var OrderStatus;
|
|
|
33
33
|
OrderStatus["Complete"] = "complete";
|
|
34
34
|
// When the payment fails
|
|
35
35
|
OrderStatus["PaymentFailed"] = "failedPayment";
|
|
36
|
-
|
|
37
|
-
OrderStatus["AwaitingChainedOrder"] = "awaitingChainedOrder";
|
|
36
|
+
OrderStatus["BankPayoutDetailsAdded"] = "bankPayoutDetailsAdded";
|
|
38
37
|
// When waiting for asynchronous payment
|
|
39
38
|
OrderStatus["AwaitingPayment"] = "awaitingPayment";
|
|
40
39
|
// When waiting for asynchronous payout
|