merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 20632c6a2e293a9799114497d63180a105b37065
parent f13c141f1d3f9a167f0fff32d3166db92f1ccbab
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Mon, 20 Nov 2023 08:00:43 +0100

db plugin: better naming for validity

Diffstat:
Msrc/include/taler_merchantdb_plugin.h | 22+++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h @@ -1096,6 +1096,11 @@ enum TALER_MERCHANTDB_TokenFamilyKind struct TALER_MERCHANTDB_TokenFamilyDetails { /** + * Token family slug used for identification. + */ + char* slug; + + /** * User readable name of the token family. */ char* name; @@ -1123,14 +1128,13 @@ struct TALER_MERCHANTDB_TokenFamilyDetails /** * Counter for each issued token of this family. */ - */ uint64_t issued; /** * Counter for each redeemed token of this family. */ uint64_t redeemed; -} +}; /** @@ -1141,17 +1145,17 @@ struct TALER_MERCHANTDB_TokenFamilyKeyDetails /** * Tokens signed with this key are valid from this date on. */ - struct GNUNET_TIME_Timestamp start_date; + struct GNUNET_TIME_Timestamp valid_after; /** * Tokens signed with this key are valid until this date. */ - struct GNUNET_TIME_Timestamp expiration_date; + struct GNUNET_TIME_Timestamp valid_before; /** * Token family public key. */ - union TALER_TokenFamilyPublicKey pub; + struct TALER_TokenFamilyPublicKey pub; /** * Hash of the token family public key. @@ -1161,13 +1165,13 @@ struct TALER_MERCHANTDB_TokenFamilyKeyDetails /** * Token family private key. */ - union TALER_TokenFamilyPrivateKey priv; + struct TALER_TokenFamilyPrivateKey priv; /** * Token family key cipher. */ - enum TALER_MERCHANTDB_TokenKeyCipher cipher; -} + // enum TALER_MERCHANTDB_TokenKeyCipher cipher; +}; /** * Details about a spent token. @@ -1188,7 +1192,7 @@ struct TALER_MERCHANTDB_SpentTokenDetails * Blind signature for the spent token to prove validity of it. */ struct TALER_TokenBlindSignature blind_sig; -} +}; /**