diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-04 21:54:47 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-04 21:54:47 +0100 |
commit | 5a18e955ebd663a6e1318378002a6368a7c07566 (patch) | |
tree | 9f1d6349f36bf053253382705e2032e8e738c5ba /src/include | |
parent | 47b9ef598dc33e10294c1af4c7cf0e2ac71f553e (diff) | |
download | exchange-5a18e955ebd663a6e1318378002a6368a7c07566.tar.xz |
-fix AML decision update logic and history fetch logic
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 9 | ||||
-rw-r--r-- | src/include/taler_testing_lib.h | 18 |
2 files changed, 25 insertions, 2 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 2d57b6530..bfdc062b5 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -4305,9 +4305,9 @@ TALER_EXCHANGE_management_update_aml_officer_cancel ( struct TALER_EXCHANGE_AmlDecisionSummary { /** - * When was the last decision made. + * What is the current monthly threshold. */ - struct GNUNET_TIME_Timestamp last_decision_time; + struct TALER_Amount threshold; /** * Account the decision was made for. @@ -4315,6 +4315,11 @@ struct TALER_EXCHANGE_AmlDecisionSummary struct TALER_PaytoHashP h_payto; /** + * RowID of this decision. + */ + uint64_t rowid; + + /** * Current decision state. */ enum TALER_AmlDecisionState current_state; diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 940233232..cf4279514 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -2774,6 +2774,24 @@ TALER_TESTING_cmd_check_aml_decision ( unsigned int expected_http_status); +/** + * Fetch AML decisions. + * + * @param label command label + * @param ref_officer command that previously created an + * officer + * @param filter AML state to filter by + * @param expected_http_status expected HTTP response status + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_check_aml_decisions ( + const char *label, + const char *ref_officer, + enum TALER_AmlDecisionState filter, + unsigned int expected_http_status); + + /* *** Generic trait logic for implementing traits ********* */ |