From 0de4db77551458ad338bda8a76ec2c70484550f8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 27 Sep 2022 15:21:51 +0200 Subject: implement libtalerexchange:reserve_close API --- src/include/taler_exchange_service.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (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 d59fcaef1..7949dbbf4 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -5538,8 +5538,31 @@ struct TALER_EXCHANGE_ReserveCloseResult struct { + /** + * Amount wired to the target account. + */ + struct TALER_Amount wire_amount; } ok; + /** + * Information returned if KYC is required to proceed, set if + * @e hr.http_status is #MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS. + */ + struct + { + /** + * Requirement row that the merchant should use + * to check for its KYC status. + */ + uint64_t requirement_row; + + /** + * Hash of the payto-URI of the account to KYC; + */ + struct TALER_PaytoHashP h_payto; + + } unavailable_for_legal_reasons; + } details; }; -- cgit v1.2.3