summaryrefslogtreecommitdiff
path: root/src/include/taler_merchantdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-02 17:52:13 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-02 17:52:13 +0200
commit74c5fa81d74ff5d239f49f74b2bb937c03b83bcb (patch)
tree18f69732b52bc6df4fac0a740f561f8bcfcfe5fd /src/include/taler_merchantdb_plugin.h
parentdcc083c0959d395bcd4bcf9aee276eb96ea76dee (diff)
downloadmerchant-74c5fa81d74ff5d239f49f74b2bb937c03b83bcb.tar.gz
merchant-74c5fa81d74ff5d239f49f74b2bb937c03b83bcb.tar.bz2
merchant-74c5fa81d74ff5d239f49f74b2bb937c03b83bcb.zip
work on refund
Diffstat (limited to 'src/include/taler_merchantdb_plugin.h')
-rw-r--r--src/include/taler_merchantdb_plugin.h68
1 files changed, 34 insertions, 34 deletions
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: ******************** */
/**
@@ -462,40 +496,6 @@ typedef void
/**
- * 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.
*
* Functions ending with "_TR" run their OWN transaction scope