aboutsummaryrefslogtreecommitdiff
path: root/src/dbTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-08 04:53:26 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-08 04:53:26 +0200
commit6904c2759ec75ab9c3a5ace358a20c582dfa1a1b (patch)
treeee9f6790f390c44219f5d0fd775199e58c78772d /src/dbTypes.ts
parent3db38fbd0b84d066d64f9b637f1efcc35ebf8ce3 (diff)
downloadwallet-core-6904c2759ec75ab9c3a5ace358a20c582dfa1a1b.tar.xz
implement payto URIs
Diffstat (limited to 'src/dbTypes.ts')
-rw-r--r--src/dbTypes.ts17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/dbTypes.ts b/src/dbTypes.ts
index 6369cd92a..3cb9a0d32 100644
--- a/src/dbTypes.ts
+++ b/src/dbTypes.ts
@@ -34,7 +34,6 @@ import {
MerchantRefundPermission,
PayReq,
TipResponse,
- WireDetail,
} from "./talerTypes";
import {
@@ -114,10 +113,10 @@ export interface ReserveRecord {
hasPayback: boolean;
/**
- * Wire information for the bank account that
+ * Wire information (as payto URI) for the bank account that
* transfered funds for this reserve.
*/
- senderWire?: object;
+ senderWire?: string;
}
@@ -837,15 +836,7 @@ export interface PurchaseRecord {
* Information about wire information for bank accounts we withdrew coins from.
*/
export interface SenderWireRecord {
- /**
- * Wire details.
- */
- senderWire: WireDetail;
-
- /**
- * Identifier, hash code of canonicalized senderWire.
- */
- id: number;
+ paytoUri: string;
}
@@ -1001,7 +992,7 @@ export namespace Stores {
class SenderWiresStore extends Store<SenderWireRecord> {
constructor() {
- super("senderWires", { keyPath: "id" });
+ super("senderWires", { keyPath: "paytoUri" });
}
}