taler-docs

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

commit 48d2a70f4b062bf0a6d58df32f07b81e45d2b00e
parent 73ba612584aedd36a7d59089835aeb005583b993
Author: Antoine A <>
Date:   Mon, 13 Nov 2023 23:09:27 +0000

harmonise style

Diffstat:
Mcore/api-bank-integration.rst | 12+++++-------
Mcore/api-bank-revenue.rst | 4+---
Mcore/api-bank-wire.rst | 13++++---------
Mcore/api-corebank.rst | 28+++++++++++++---------------
4 files changed, 23 insertions(+), 34 deletions(-)

diff --git a/core/api-bank-integration.rst b/core/api-bank-integration.rst @@ -64,11 +64,11 @@ Withdrawing Withdrawals with a Taler-integrated bank are based on withdrawal operations. Some user interaction (on the bank's website or a Taler-enabled ATM) creates a withdrawal operation record in the bank's database. The wallet can use a unique identifier -for the withdrawal operation (the ``wopid``) to interact with the withdrawal operation. +for the withdrawal operation (the ``WITHDRAWAL_ID``) to interact with the withdrawal operation. -.. http:get:: ${BANK_API_BASE_URL}/withdrawal-operation/${wopid} +.. http:get:: /withdrawal-operation/$WITHDRAWAL_ID - Query information about a withdrawal operation, identified by the ``wopid``. + Query information about a withdrawal operation, identified by the ``WITHDRAWAL_ID``. **Request:** @@ -123,14 +123,13 @@ for the withdrawal operation (the ``wopid``) to interact with the withdrawal ope wire_types: string[]; } -.. http:post:: ${BANK_API_BASE_URL}/withdrawal-operation/${wopid} +.. http:post:: /withdrawal-operation/$WITHDRAWAL_ID **Request:** .. ts:def:: BankWithdrawalOperationPostRequest interface BankWithdrawalOperationPostRequest { - // Reserve public key. reserve_pub: string; @@ -144,7 +143,7 @@ for the withdrawal operation (the ``wopid``) to interact with the withdrawal ope The bank has accepted the withdrawal operation parameters chosen by the wallet. The response is a `BankWithdrawalOperationPostResponse`. :http:statuscode:`404 Not found`: - The bank does not know about a withdrawal operation with the specified ``wopid``. + The bank does not know about a withdrawal operation with the specified ``WITHDRAWAL_ID``. :http:statuscode:`409 Conflict`: * ``TALER_EC_BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT`` : The wallet selected a different exchange or reserve public key under the same withdrawal ID. @@ -157,7 +156,6 @@ for the withdrawal operation (the ``wopid``) to interact with the withdrawal ope .. ts:def:: BankWithdrawalOperationPostResponse interface BankWithdrawalOperationPostResponse { - // The transfer has been confirmed and registered by the bank. // Does not guarantee that the funds have arrived at the exchange already. transfer_done: boolean; diff --git a/core/api-bank-revenue.rst b/core/api-bank-revenue.rst @@ -34,7 +34,7 @@ The bank library authenticates requests to the bank merchant API using Querying the transaction history -------------------------------- -.. http:get:: ${BASE_URL}/history +.. http:get:: /history Return a list of transactions made from an exchange to the merchant. @@ -96,7 +96,6 @@ Querying the transaction history .. ts:def:: MerchantIncomingHistory interface MerchantIncomingHistory { - // Array of incoming transactions. incoming_transactions : MerchantIncomingBankTransaction[]; @@ -111,7 +110,6 @@ Querying the transaction history .. ts:def:: MerchantIncomingBankTransaction interface MerchantIncomingBankTransaction { - // Opaque identifier of the returned record. row_id: SafeUint64; diff --git a/core/api-bank-wire.rst b/core/api-bank-wire.rst @@ -36,7 +36,7 @@ The bank library authenticates requests to the wire gateway via Making Transactions ------------------- -.. http:post:: ${BASE_URL}/transfer +.. http:post:: /transfer This API allows the exchange to make a transaction, typically to a merchant. The bank account of the exchange is not included in the request, but instead derived from the user name in the @@ -91,7 +91,6 @@ Making Transactions .. ts:def:: TransferResponse interface TransferResponse { - // Timestamp that indicates when the wire transfer will be executed. // In cases where the wire transfer gateway is unable to know when // the wire transfer will be executed, the time at which the request @@ -111,7 +110,7 @@ Querying the transaction history -------------------------------- -.. http:get:: ${BASE_URL}/history/incoming +.. http:get:: /history/incoming Return a list of transactions made from or to the exchange. @@ -174,7 +173,6 @@ Querying the transaction history .. ts:def:: IncomingHistory interface IncomingHistory { - // Array of incoming transactions. incoming_transactions : IncomingBankTransaction[]; @@ -244,7 +242,7 @@ Querying the transaction history } -.. http:get:: ${BASE_URL}/history/outgoing +.. http:get:: /history/outgoing Return a list of transactions made by the exchange, typically to a merchant. @@ -303,7 +301,6 @@ Querying the transaction history .. ts:def:: OutgoingHistory interface OutgoingHistory { - // Array of outgoing transactions. outgoing_transactions : OutgoingBankTransaction[]; @@ -318,7 +315,6 @@ Querying the transaction history .. ts:def:: OutgoingBankTransaction interface OutgoingBankTransaction { - // Opaque identifier of the returned record. row_id: SafeUint64; @@ -348,7 +344,7 @@ exposed by bank gateways in production. .. _twg-admin-add-incoming: -.. http:post:: ${BASE_URL}/admin/add-incoming +.. http:post:: /admin/add-incoming Simulate a transfer from a customer to the exchange. This API is *not* idempotent since it's only used in testing. @@ -391,7 +387,6 @@ exposed by bank gateways in production. .. ts:def:: AddIncomingResponse interface AddIncomingResponse { - // Timestamp that indicates when the wire transfer will be executed. // In cases where the wire transfer gateway is unable to know when // the wire transfer will be executed, the time at which the request diff --git a/core/api-corebank.rst b/core/api-corebank.rst @@ -230,7 +230,6 @@ Account Management .. ts:def:: AccountReconfiguration interface AccountReconfiguration { - // Addresses where to send the TAN for transactions. // Currently only used for cashouts. // If missing, cashouts will fail. @@ -303,7 +302,7 @@ Account Management .. _account-list: -.. http:get:: ${BANK_API_BASE_URL}/public-accounts +.. http:get:: /public-accounts Show those accounts whose histories are publicly visible. For example, accounts from donation receivers. As such, this request is unauthenticated. @@ -447,7 +446,7 @@ Account Management Transactions ------------ -.. http:get:: ${BANK_API_BASE_URL}/accounts/${USERNAME}/transactions +.. http:get:: /accounts/$USERNAME/transactions Retrieve a subset of transactions related to $USERNAME. Without query parameters, it returns the last 5 transactions. @@ -496,9 +495,9 @@ Transactions transactions: BankAccountTransactionInfo[]; } -.. http:get:: ${BANK_API_BASE_URL}/accounts/${USERNAME}/transactions/${transaction_id} +.. http:get:: /accounts/$USERNAME/transactions/$TRANSACTION_ID - Retrieve the transaction whose identifier is ``transaction_id``. + Retrieve the transaction whose identifier is ``TRANSACTION_ID``. **Response:** @@ -523,12 +522,12 @@ Transactions subject: string; // Transaction unique ID. Matches - // $transaction_id from the URI. + // $TRANSACTION_ID from the URI. row_id: number; date: Timestamp; } -.. http:post:: ${BANK_API_BASE_URL}/accounts/${USERNAME}/transactions +.. http:post:: /accounts/$USERNAME/transactions Create a new transaction where the bank account with the label ``USERNAME`` is **debited**. @@ -537,7 +536,6 @@ Transactions .. ts:def:: BankAccountTransactionCreate interface CreateBankAccountTransactionCreate { - // Address in the Payto format of the wire transfer receiver. // It needs at least the 'message' query string parameter. payto_uri: string; @@ -568,7 +566,7 @@ Transactions Taler Withdrawals ----------------- -.. http:post:: ${BANK_API_BASE_URL}/accounts/${USERNAME}/withdrawals +.. http:post:: /accounts/$USERNAME/withdrawals Create a withdrawal operation, resulting in a ``taler://withdraw`` URI. @@ -604,9 +602,9 @@ Taler Withdrawals taler_withdraw_uri: string; } -.. http:post:: ${BANK_API_BASE_URL}/withdrawals/${withdrawal_id}/abort +.. http:post:: /withdrawals/$WITHDRAWAL_ID/abort - Aborts ``withdrawal_id`` operation. Has no effect on an already aborted + Aborts ``WITHDRAWAL_ID`` operation. Has no effect on an already aborted operation. Does not require further authentication as knowledge of the withdrawal ID serves as an authenticator. @@ -619,9 +617,9 @@ Taler Withdrawals :http:statuscode:`409 Conflict`: The withdrawal operation has been confirmed previously and can't be aborted. -.. http:post:: ${BANK_API_BASE_URL}/withdrawals/${withdrawal_id}/confirm +.. http:post:: /withdrawals/$WITHDRAWAL_ID/confirm - Confirms ``withdrawal_id`` operation. Has no effect on an already confirmed + Confirms ``WITHDRAWAL_ID`` operation. Has no effect on an already confirmed withdrawal operation. This call is responsible for wiring the funds to the exchange. Does not require further authentication as knowledge of the withdrawal ID serves as an authenticator. @@ -637,7 +635,7 @@ Taler Withdrawals * ``TALER_EC_BANK_CONFIRM_INCOMPLETE`` : the withdraw operation cannot be confirmed because no exchange and reserve public key selection happened before. * ``TALER_EC_BANK_UNALLOWED_DEBIT`` : the account does not have sufficient funds. -.. http:get:: ${BANK_API_BASE_URL}/withdrawals/${withdrawal_id} +.. http:get:: /withdrawals/$WITHDRAWAL_ID Query the status of a withdrawal operation. Does not require further authentication as knowledge of the withdrawal ID serves as an authenticator. @@ -1189,7 +1187,7 @@ Taler Wire Gateway API The endpoints are only available for accounts configured with ``is_taler_exchange=true``. Taler Revenue API ----------------------- +----------------- .. http:any:: /accounts/$USERNAME/taler-revenue/*