diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-17 03:49:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-17 03:49:54 +0100 |
commit | c62ba4986fbfcb8637a3befadf3d3eddbd5348ca (patch) | |
tree | e88b71758cff696df0c8f2bb163a7c7c3957f871 /src/walletTypes.ts | |
parent | 894a09a51c1111257be56809f1d3daf0146f8509 (diff) | |
download | wallet-core-c62ba4986fbfcb8637a3befadf3d3eddbd5348ca.tar.xz |
implement new mobile-compatible payment logic
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r-- | src/walletTypes.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts index 3c7bff1eb..d1a4f8746 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -246,9 +246,11 @@ export interface CheckPayResult { /** - * Possible results for confirmPay. + * Result for confirmPay */ -export type ConfirmPayResult = "paid" | "insufficient-balance"; +export interface ConfirmPayResult { + nextUrl: string; +} /** @@ -299,6 +301,7 @@ export interface QueryPaymentFound { found: true; contractTermsHash: string; contractTerms: ContractTerms; + lastSessionSig?: string; payReq: PayReq; } @@ -329,7 +332,7 @@ export class CreateReserveRequest { /** * The initial amount for the reserve. */ - @Checkable.Value(AmountJson) + @Checkable.Value(() => AmountJson) amount: AmountJson; /** @@ -380,7 +383,7 @@ export class ReturnCoinsRequest { /** * The amount to wire. */ - @Checkable.Value(AmountJson) + @Checkable.Value(() => AmountJson) amount: AmountJson; /** @@ -511,7 +514,7 @@ export class ProcessTipResponseRequest { /** * Tip response from the merchant. */ - @Checkable.Value(TipResponse) + @Checkable.Value(() => TipResponse) tipResponse: TipResponse; /** @@ -543,7 +546,7 @@ export class GetTipPlanchetsRequest { /** * Amount of the tip. */ - @Checkable.Optional(Checkable.Value(AmountJson)) + @Checkable.Optional(Checkable.Value(() => AmountJson)) amount: AmountJson; /** |