wallet-core: group API types
This commit is contained in:
parent
4762018dc1
commit
4b642ea53e
@ -276,6 +276,35 @@ export type RetryTransactionOp = {
|
|||||||
response: EmptyObject;
|
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
|
// group: Withdrawals
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -350,35 +379,6 @@ export type ConfirmPayOp = {
|
|||||||
response: ConfirmPayResult;
|
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.
|
* Check for a refund based on a taler://refund URI.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user