taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 8fcdc23ae1d1badfa47a5684f835f9bf29de3c27
parent 2037e8a797fa7f6fed06a3289696754dcd18059f
Author: MS <ms@taler.net>
Date:   Fri,  9 Dec 2022 12:15:34 +0100

Spec TAN channel.

Diffstat:
Mlibeufin/api-sandbox.rst | 17++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/libeufin/api-sandbox.rst b/libeufin/api-sandbox.rst @@ -182,16 +182,27 @@ The following endpoints are served under ``/demobanks/default/customer-api``. from the authentication credentials. The bank sends a TAN to the customer, to let them confirm the operation. - .. - FIXME: TAN first per e-mail, or phone? - **Request:** + .. ts:def:: TanChannel + + enum TanChannel { + SMS = "sms", + EMAIL = "email" + } + .. ts:def:: CashoutRequest interface CashoutRequest { + // Amount in the $currency:$value format. amount: string; + + // Which channel the TAN should be sent to. If + // this field is missing, it defaults to SMS, to + // prefer a different channel than the internet + // and let all the phones to receive it. + tanChannel?: TanChannel; } **Response:**