aboutsummaryrefslogtreecommitdiff
path: root/src/walletTypes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r--src/walletTypes.ts26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts
index a74f81136..abe9f2712 100644
--- a/src/walletTypes.ts
+++ b/src/walletTypes.ts
@@ -325,6 +325,13 @@ export class CreateReserveRequest {
exchange: string;
/**
+ * Payto URI that identifies the exchange's account that the funds
+ * for this reserve go into.
+ */
+ @Checkable.String()
+ exchangeWire: string;
+
+ /**
* Wire details (as a payto URI) for the bank account that sent the funds to
* the exchange.
*/
@@ -332,6 +339,12 @@ export class CreateReserveRequest {
senderWire?: string;
/**
+ * URL to fetch the withdraw status from the bank.
+ */
+ @Checkable.Optional(Checkable.String())
+ bankWithdrawStatusUrl?: string;
+
+ /**
* Verify that a value matches the schema of this class and convert it into a
* member.
*/
@@ -474,9 +487,20 @@ export interface NextUrlResult {
}
export interface PreparePayResult {
- status: "paid" | "insufficient-balance" | "payment-possible" | "error";
+ status: "paid" | "session-replayed" | "insufficient-balance" | "payment-possible" | "error";
contractTerms?: ContractTerms;
error?: string;
proposalId?: number;
totalFees?: AmountJson;
+}
+
+export interface DownloadedWithdrawInfo {
+ selectionDone: boolean;
+ transferDone: boolean;
+ amount: AmountJson;
+ senderWire?: string;
+ suggestedExchange?: string;
+ confirmTransferUrl?: string;
+ wireTypes: string[];
+ extractedStatusUrl: string;
} \ No newline at end of file