From 74ba46db39d3a906e819cd0ed48f1d46dffe9e38 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 14 Aug 2022 18:04:09 +0200 Subject: -work on new KYC logic: tests pass again --- src/include/taler_exchange_service.h | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'src/include/taler_exchange_service.h') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index f4b67be9d..7c4a0f769 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1883,11 +1883,6 @@ struct TALER_EXCHANGE_ReserveStatus */ unsigned int history_len; - /** - * KYC passed? - */ - bool kyc_ok; - } ok; } details; @@ -2138,7 +2133,7 @@ struct TALER_EXCHANGE_WithdrawResponse struct TALER_EXCHANGE_PrivateCoinDetails success; /** - * Details if the status is #MHD_HTTP_ACCEPTED. + * Details if the status is #MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS. */ struct { @@ -2147,7 +2142,7 @@ struct TALER_EXCHANGE_WithdrawResponse * to check for its KYC status. */ uint64_t payment_target_uuid; - } accepted; + } unavailable_for_legal_reasons; /** * Details if the status is #MHD_HTTP_CONFLICT. @@ -4875,6 +4870,19 @@ struct TALER_EXCHANGE_AccountMergeResponse } success; + /** + * Details if the status is #MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS. + */ + struct + { + /** + * Payment target that the merchant should use + * to check for its KYC status. + */ + uint64_t payment_target_uuid; + } unavailable_for_legal_reasons; + + } details; }; @@ -4970,6 +4978,19 @@ struct TALER_EXCHANGE_PurseCreateMergeResponse { } success; + + /** + * Details if the status is #MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS. + */ + struct + { + /** + * Payment target that the merchant should use + * to check for its KYC status. + */ + uint64_t payment_target_uuid; + } unavailable_for_legal_reasons; + } details; }; -- cgit v1.2.3