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 /** @@ -350,35 +379,6 @@ export type ConfirmPayOp = { response: ConfirmPayResult; }; -/** - * 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. */