diff options
author | Florian Dold <florian@dold.me> | 2023-02-21 02:02:47 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-21 02:02:47 +0100 |
commit | 4b642ea53e868f6f2c450798e995c101b4588a05 (patch) | |
tree | ca6d93db4cbe3aab77150414d2b2d8200d1ea7a8 /packages/taler-wallet-core/src/wallet-api-types.ts | |
parent | 4762018dc1612e561fe87fd5ff87e6c7006807c7 (diff) | |
download | wallet-core-4b642ea53e868f6f2c450798e995c101b4588a05.tar.xz |
wallet-core: group API types
Diffstat (limited to 'packages/taler-wallet-core/src/wallet-api-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index 36c7677ac..84bad09fe 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -276,6 +276,35 @@ export type RetryTransactionOp = { response: EmptyObject; }; +/** + * Abort a transaction + * + * For payment transactions, it puts the payment into an "aborting" state. + */ +export type AbortTransactionOp = { + op: WalletApiOperation.AbortTransaction; + request: AbortTransactionRequest; + response: EmptyObject; +}; + +/** + * Suspend a transaction + */ +export type SuspendTransactionOp = { + op: WalletApiOperation.SuspendTransaction; + request: AbortTransactionRequest; + response: EmptyObject; +}; + +/** + * Resume a transaction + */ +export type ResumeTransactionOp = { + op: WalletApiOperation.ResumeTransaction; + request: AbortTransactionRequest; + response: EmptyObject; +}; + // group: Withdrawals /** @@ -351,35 +380,6 @@ export type ConfirmPayOp = { }; /** - * Abort a transaction - * - * For payment transactions, it puts the payment into an "aborting" state. - */ -export type AbortTransactionOp = { - op: WalletApiOperation.AbortTransaction; - request: AbortTransactionRequest; - response: EmptyObject; -}; - -/** - * Suspend a transaction - */ -export type SuspendTransactionOp = { - op: WalletApiOperation.SuspendTransaction; - request: AbortTransactionRequest; - response: EmptyObject; -}; - -/** - * Resume a transaction - */ -export type ResumeTransactionOp = { - op: WalletApiOperation.ResumeTransaction; - request: AbortTransactionRequest; - response: EmptyObject; -}; - -/** * Check for a refund based on a taler://refund URI. */ export type ApplyRefundOp = { |