diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-08 17:13:57 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-08 17:13:57 +0200 |
commit | 4ba07b54e4ea2ac75c408f795cd806409450bc29 (patch) | |
tree | a9fe35d75de203450ea1eb16a83c3f2bcc527c65 /src/include/taler_exchangedb_plugin.h | |
parent | d3c509fcd91e5b7e430eda767108d961db196522 (diff) |
WIP: policy_*_fulfiment added and API changes
- policy_fulfilment table defined, handlers added
- policy_details_fulfilment table defined, handlers added
- TALER_extensions_serial_from_policy_details implemened
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 0766c091..10e1a815 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -223,6 +223,7 @@ enum TALER_EXCHANGEDB_ReplicatedTable TALER_EXCHANGEDB_RT_EXTENSIONS, TALER_EXCHANGEDB_RT_POLICY_DETAILS, TALER_EXCHANGEDB_RT_POLICY_FULFILMENTS, + TALER_EXCHANGEDB_RT_POLICY_DETAILS_FULFILMENTS, TALER_EXCHANGEDB_RT_PURSE_REQUESTS, TALER_EXCHANGEDB_RT_PURSE_REFUNDS, TALER_EXCHANGEDB_RT_PURSE_MERGES, @@ -530,11 +531,17 @@ struct TALER_EXCHANGEDB_TableData char *policy_options; struct GNUNET_HashCode serial_id; struct GNUNET_TIME_Timestamp deadline; - uint64_t fulfilment_serial_id; + uint64_t fulfilment_state; } policy_details; struct { + struct GNUNET_HashCode serial_id; + uint64_t fulfilment_id; + } policy_details_fulfilments; + + struct + { char *fulfilment_proof; struct GNUNET_TIME_Timestamp fulfilment_timestamp; } policy_fulfilments; @@ -1442,23 +1449,25 @@ struct TALER_EXCHANGEDB_Deposit * deposit operation, possibly NULL! */ json_t *policy_details; - bool no_policy_details; + bool has_policy_details; /** - * If policy_details are present, the corresponding policy extension calculates - * a serial id under which the policy_details shall be stored in the policy_details table. + * If policy_details are present, the corresponding policy extension + * calculates a serial id under which the policy_details shall be stored in + * the policy_details table. */ struct GNUNET_HashCode policy_serial_id; /** - * If policy_details are present, the corresponding policy extension can - * set a deadline for this policy. Can be "forever". + * If policy_details are present, the corresponding policy extension can set + * a deadline for this policy. Can be "forever". */ struct GNUNET_TIME_Timestamp policy_deadline; /** - * Hash over the @e policy_details. Only filled if no_policy_details is false. + * Hash over the @e policy_details. Only filled if has_policy_details is + * true. */ struct TALER_ExtensionPolicyHashP h_policy; |