diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-09-06 09:48:00 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-09-06 09:48:00 +0200 |
commit | 9297bbc8253650a2530afc3fd88c9bd102de0793 (patch) | |
tree | dca184dbb9f984771042c7524a0b5e35c934a53b /src/walletTypes.ts | |
parent | 51aa6d81464afe92e60f13281d4fda3bb54c45ba (diff) | |
download | wallet-core-9297bbc8253650a2530afc3fd88c9bd102de0793.tar.xz |
fold checkPay into preparePay
Diffstat (limited to 'src/walletTypes.ts')
-rw-r--r-- | src/walletTypes.ts | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/walletTypes.ts b/src/walletTypes.ts index 47360c660..82024bb41 100644 --- a/src/walletTypes.ts +++ b/src/walletTypes.ts @@ -221,14 +221,6 @@ export function mkAmount( } /** - * Possible results for checkPay. - */ -export interface CheckPayResult { - status: "paid" | "payment-possible" | "insufficient-balance"; - coinSelection?: CoinSelectionResult; -} - -/** * Result for confirmPay */ export interface ConfirmPayResult { @@ -463,16 +455,15 @@ export type PreparePayResult = export interface PreparePayResultPaymentPossible { status: "payment-possible"; - proposalId?: number; - contractTerms?: ContractTerms; - totalFees?: AmountJson; + proposalId: number; + contractTerms: ContractTerms; + totalFees: AmountJson; } export interface PreparePayResultInsufficientBalance { status: "insufficient-balance"; - proposalId?: number; - contractTerms?: ContractTerms; - totalFees?: AmountJson; + proposalId: number; + contractTerms: ContractTerms; } export interface PreparePayResultError { @@ -482,8 +473,8 @@ export interface PreparePayResultError { export interface PreparePayResultPaid { status: "paid"; - proposalId?: number; - contractTerms?: ContractTerms; + proposalId: number; + contractTerms: ContractTerms; nextUrl: string; } |