wallet-core: group API types

This commit is contained in:
Florian Dold 2023-02-21 02:02:47 +01:00
parent 4762018dc1
commit 4b642ea53e
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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.
*/