aboutsummaryrefslogtreecommitdiff
path: root/src/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-28 02:49:27 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-28 02:49:27 +0200
commit1390175a9afc53948dd1d6f8a2f88e51c1bf53cc (patch)
tree1e65581f11354ec61532dbbf3174e9bd26b515c4 /src/walletTypes.ts
parent70c0a557f9c89a2a0006f74bd8b361b62660bde2 (diff)
downloadwallet-core-1390175a9afc53948dd1d6f8a2f88e51c1bf53cc.tar.xz
rudimentary taler://withdraw support
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