aboutsummaryrefslogtreecommitdiff
path: root/src/types/dbTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-05-15 16:03:52 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-05-15 16:03:52 +0530
commit3eb88574bcf327672c34120becfb511eac4e06cd (patch)
tree9d54748adef52dc9a21c8ea97c7d034cd773277a /src/types/dbTypes.ts
parent35c83414f9e0af11012c1a2e00672d2a7c1856ae (diff)
downloadwallet-core-3eb88574bcf327672c34120becfb511eac4e06cd.tar.gz
wallet-core-3eb88574bcf327672c34120becfb511eac4e06cd.tar.bz2
wallet-core-3eb88574bcf327672c34120becfb511eac4e06cd.zip
address first batch of transaction list issues
Diffstat (limited to 'src/types/dbTypes.ts')
-rw-r--r--src/types/dbTypes.ts22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts
index 37a66251a..79966eb34 100644
--- a/src/types/dbTypes.ts
+++ b/src/types/dbTypes.ts
@@ -31,6 +31,8 @@ import {
PayReq,
TipResponse,
ExchangeSignKeyJson,
+ MerchantInfo,
+ Product,
} from "./talerTypes";
import { Index, Store } from "../util/query";
@@ -216,6 +218,15 @@ export interface ReserveHistoryRecord {
reserveTransactions: WalletReserveHistoryItem[];
}
+export interface ReserveBankInfo {
+ statusUrl: string;
+ confirmUrl?: string;
+ amount: AmountJson;
+ bankWithdrawalGroupId: string;
+ withdrawalStarted: boolean;
+ denomSel: DenomSelectionState;
+}
+
/**
* A reserve record as stored in the wallet's database.
*/
@@ -278,13 +289,7 @@ export interface ReserveRecord {
* Extra state for when this is a withdrawal involving
* a Taler-integrated bank.
*/
- bankInfo?: {
- statusUrl: string;
- confirmUrl?: string;
- amount: AmountJson;
- bankWithdrawalGroupId: string;
- withdrawalStarted: boolean;
- };
+ bankInfo?: ReserveBankInfo;
reserveStatus: ReserveRecordStatus;
@@ -1179,10 +1184,13 @@ export interface AllowedExchangeInfo {
* processing in the wallet.
*/
export interface WalletContractData {
+ products?: Product[];
+ summaryI18n: { [lang_tag: string]: string } | undefined;
fulfillmentUrl: string;
contractTermsHash: string;
merchantSig: string;
merchantPub: string;
+ merchant: MerchantInfo;
amount: AmountJson;
orderId: string;
merchantBaseUrl: string;