diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-06 12:47:28 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-06 12:47:28 +0100 |
commit | ee1fc03ae82f2f4662041af3d4243113e92ffeaf (patch) | |
tree | b01ab0adf1b2d551db3a4f4ee89b41379d945a54 /src/dbTypes.ts | |
parent | b4d36fca180602d6d90440f9ba257b92fc626e6c (diff) | |
download | wallet-core-ee1fc03ae82f2f4662041af3d4243113e92ffeaf.tar.xz |
case-insensitive URIs
Diffstat (limited to 'src/dbTypes.ts')
-rw-r--r-- | src/dbTypes.ts | 16 |
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> { |