From 1390175a9afc53948dd1d6f8a2f88e51c1bf53cc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 28 Aug 2019 02:49:27 +0200 Subject: rudimentary taler://withdraw support --- src/walletTypes.ts | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/walletTypes.ts') diff --git a/src/walletTypes.ts b/src/walletTypes.ts index a74f81136..abe9f2712 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -324,6 +324,13 @@ export class CreateReserveRequest { @Checkable.String() 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. @@ -331,6 +338,12 @@ export class CreateReserveRequest { @Checkable.Optional(Checkable.String()) 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 -- cgit v1.2.3