insert_kyc_requirement_process.h (2821B)
1 /* 2 This file is part of TALER 3 Copyright (C) 2022 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file src/include/exchange-database/insert_kyc_requirement_process.h 18 * @brief implementation of the insert_kyc_requirement_process function for Postgres 19 * @author Christian Grothoff 20 */ 21 #ifndef EXCHANGE_DATABASE_INSERT_KYC_REQUIREMENT_PROCESS_H 22 #define EXCHANGE_DATABASE_INSERT_KYC_REQUIREMENT_PROCESS_H 23 24 #include "taler/taler_util.h" 25 #include "exchangedb_lib.h" 26 27 28 /** 29 * Begin KYC requirement process. 30 * 31 * @param pg the database context 32 * @param h_payto account that must be KYC'ed 33 * @param measure_index which of the measures in 34 * jmeasures does this KYC process relate to 35 * @param legitimization_measure_serial_id which 36 * legitimization measure set does this KYC process 37 * relate to (uniquely identifies jmeasures) 38 * @param provider_name provider that must be checked 39 * @param provider_account_id provider account ID 40 * @param provider_legitimization_id provider legitimization ID 41 * @param[out] process_row row the process is stored under 42 * @return database transaction status 43 */ 44 enum GNUNET_DB_QueryStatus 45 TALER_EXCHANGEDB_insert_kyc_requirement_process (struct 46 TALER_EXCHANGEDB_PostgresContext 47 * 48 pg, 49 const struct 50 TALER_NormalizedPaytoHashP * 51 h_payto, 52 uint32_t measure_index, 53 uint64_t 54 legitimization_measure_serial_id, 55 const char *provider_name, 56 const char *provider_account_id 57 , 58 const char * 59 provider_legitimization_id, 60 uint64_t *process_row); 61 62 #endif