diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-01-20 19:11:36 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-01-20 19:11:36 +0100 |
commit | 5b26bd3b83d1b24d937fb8d78135514897ddfb69 (patch) | |
tree | c209755f09dccf93b0a5ca2c3ce77b95a8810875 /src/include | |
parent | c78261526257dbc78e824320ef7887ff7a0f3ef6 (diff) | |
download | exchange-5b26bd3b83d1b24d937fb8d78135514897ddfb69.tar.xz |
-new testing APIs
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_testing_lib.h | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index 846be4183..a2df5c33f 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -1,6 +1,6 @@ /* This file is part of TALER - (C) 2018-2022 Taler Systems SA + (C) 2018-2023 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -2710,6 +2710,47 @@ TALER_TESTING_cmd_purse_deposit_coins ( ...); +/** + * Setup AML officer. + * + * @param label command label + * @param ref_cmd command that previously created the + * officer, NULL to create one this time + * @param name full legal name of the officer to use + * @param is_active true to set the officer to active + * @param read_only true to restrict the officer to read-only + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_set_officer ( + const char *label, + const char *ref_cmd, + const char *name, + bool is_active, + bool read_only); + + +/** + * Make AML decision. + * + * @param label command label + * @param ref_officer command that previously created an + * officer + * @param ref_operation command that previously created an + * h_payto which to make an AML decision about + * @param new_threshold new threshold to set + * @param block set to true to block the account + * @return the command + */ +struct TALER_TESTING_Command +TALER_TESTING_cmd_take_aml_decision ( + const char *label, + const char *ref_officer, + const char *ref_operation, + const char *new_threshold, + bool block); + + /* *** Generic trait logic for implementing traits ********* */ |