From a49959d2c8bf82575c5d232217a33d91e7b008e8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 20 Feb 2023 21:26:08 +0100 Subject: wallet-core: support long-polling for peer push credit --- packages/taler-wallet-core/src/db.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/db.ts') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index cbf49c4ca..29e97cd90 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1774,6 +1774,16 @@ export interface PeerPushPaymentInitiationRecord { status: PeerPushPaymentInitiationStatus; } +export enum PeerPullPaymentInitiationStatus { + Initial = 10 /* ACTIVE_START */, + /** + * Purse created, waiting for the other party to accept the + * invoice and deposit money into it. + */ + PurseCreated = 11 /* ACTIVE_START + 1 */, + PurseDeposited = 50 /* DORMANT_START */, +} + export interface PeerPullPaymentInitiationRecord { /** * What exchange are we using for the payment request? @@ -1817,7 +1827,7 @@ export interface PeerPullPaymentInitiationRecord { /** * Status of the peer pull payment initiation. */ - status: OperationStatus; + status: PeerPullPaymentInitiationStatus; withdrawalGroupId: string | undefined; } -- cgit v1.2.3