aboutsummaryrefslogtreecommitdiff
path: root/src/dbTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-06 12:47:28 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-06 12:47:28 +0100
commitee1fc03ae82f2f4662041af3d4243113e92ffeaf (patch)
treeb01ab0adf1b2d551db3a4f4ee89b41379d945a54 /src/dbTypes.ts
parentb4d36fca180602d6d90440f9ba257b92fc626e6c (diff)
downloadwallet-core-ee1fc03ae82f2f4662041af3d4243113e92ffeaf.tar.xz
case-insensitive URIs
Diffstat (limited to 'src/dbTypes.ts')
-rw-r--r--src/dbTypes.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dbTypes.ts b/src/dbTypes.ts
index 3625740e2..553040614 100644
--- a/src/dbTypes.ts
+++ b/src/dbTypes.ts
@@ -699,11 +699,11 @@ export class ProposalDownload {
*/
@Checkable.Class()
export class ProposalRecord {
- /**
- * URL where the proposal was downloaded.
- */
@Checkable.String()
- url: string;
+ orderId: string;
+
+ @Checkable.String()
+ merchantBaseUrl: string;
/**
* Downloaded data from the merchant.
@@ -970,7 +970,6 @@ export interface WireFee {
sig: string;
}
-
/**
* Record that stores status information about one purchase, starting from when
* the customer accepts a proposal. Includes refund status if applicable.
@@ -1058,7 +1057,7 @@ export interface PurchaseRecord {
*/
lastRefundStatusError: OperationError | undefined;
- /**
+ /**
* Retry information for querying the refund status with the merchant.
*/
refundApplyRetryInfo: RetryInfo;
@@ -1242,7 +1241,10 @@ export namespace Stores {
constructor() {
super("proposals", { keyPath: "proposalId" });
}
- urlIndex = new Index<string, ProposalRecord>(this, "urlIndex", "url");
+ urlAndOrderIdIndex = new Index<string, ProposalRecord>(this, "urlIndex", [
+ "merchantBaseUrl",
+ "orderId",
+ ]);
}
class PurchasesStore extends Store<PurchaseRecord> {