diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 21:26:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 21:26:08 +0100 |
commit | a49959d2c8bf82575c5d232217a33d91e7b008e8 (patch) | |
tree | 03dbbfd397a83dffaaa53580102f3d7108a7b70d /packages/taler-wallet-core/src/db.ts | |
parent | e8b5f26ab6407fbcecfe464f5aba8d1db9e487cd (diff) | |
download | wallet-core-a49959d2c8bf82575c5d232217a33d91e7b008e8.tar.gz wallet-core-a49959d2c8bf82575c5d232217a33d91e7b008e8.tar.bz2 wallet-core-a49959d2c8bf82575c5d232217a33d91e7b008e8.zip |
wallet-core: support long-polling for peer push credit
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 12 |
1 files changed, 11 insertions, 1 deletions
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; } |