From 74c5fa81d74ff5d239f49f74b2bb937c03b83bcb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 2 May 2020 17:52:13 +0200 Subject: work on refund --- src/include/taler_merchantdb_plugin.h | 68 +++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/include/taler_merchantdb_plugin.h') diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h index f5396a4a..d2e7801c 100644 --- a/src/include/taler_merchantdb_plugin.h +++ b/src/include/taler_merchantdb_plugin.h @@ -335,6 +335,40 @@ typedef void const struct TALER_Amount *refund_amount); +/** + * Results from trying to increase a refund. + */ +enum TALER_MERCHANTDB_RefundStatus +{ + + /** + * Refund amount exceeds original payment. + */ + TALER_MERCHANTDB_RS_TOO_HIGH = -3, + + /** + * Hard database failure. + */ + TALER_MERCHANTDB_RS_HARD_ERROR = -2, + + /** + * Soft database failure. + */ + TALER_MERCHANTDB_RS_SOFT_ERROR = -1, + + /** + * Order not found. + */ + TALER_MERCHANTDB_RS_NO_SUCH_ORDER = 0, + + /** + * Refund is now at or above the requested amount. + */ + TALER_MERCHANTDB_RS_SUCCESS = 1 + +}; + + /* **************** OLD: ******************** */ /** @@ -461,40 +495,6 @@ typedef void const struct TALER_Amount *refund_fee); -/** - * Results from trying to increase a refund. - */ -enum TALER_MERCHANTDB_RefundStatus -{ - - /** - * Refund amount exceeds original payment. - */ - TALER_MERCHANTDB_RS_TOO_HIGH = -3, - - /** - * Hard database failure. - */ - TALER_MERCHANTDB_RS_HARD_ERROR = -2, - - /** - * Soft database failure. - */ - TALER_MERCHANTDB_RS_SOFT_ERROR = -1, - - /** - * Order not found. - */ - TALER_MERCHANTDB_RS_NO_SUCH_ORDER = 0, - - /** - * Refund is now at or above the requested amount. - */ - TALER_MERCHANTDB_RS_SUCCESS = 1 - -}; - - /** * Handle to interact with the database. * -- cgit v1.2.3