commit f8d3bdae15b61e846c20a0f1d9348fee452088c0 parent 79ce73f66f04e85d8beef3f809c0585fe6ef11ae Author: Sebastian <sebasjm@gmail.com> Date: Tue, 18 Jun 2024 15:51:19 -0300 bank account entry and detail are not the same Diffstat:
| M | core/api-merchant.rst | | | 32 | ++++++++++++++++++++++++-------- |
1 file changed, 24 insertions(+), 8 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -1634,13 +1634,6 @@ into any of the active bank accounts of an instance. // Hash over the wire details (including over the salt). h_wire: HashCode; - // Salt used to compute h_wire. - salt: HashCode; - - // URL from where the merchant can download information - // about incoming wire transfers to this account. - credit_facade_url?: string; - // true if this account is active, // false if it is historic. active: boolean; @@ -1655,10 +1648,33 @@ into any of the active bank accounts of an instance. :http:statuscode:`200 OK`: The backend has successfully returned the detailed information about a specific bank account. - Returns a `BankAccountEntry`. + Returns a `BankAccountDetail`. :http:statuscode:`404 Not found`: The bank account or instance is unknown to the backend. + .. ts:def:: BankAccountDetail + + interface BankAccountDetail { + + // payto:// URI of the account. + payto_uri: string; + + // Hash over the wire details (including over the salt). + h_wire: HashCode; + + // Salt used to compute h_wire. + salt: HashCode; + + // URL from where the merchant can download information + // about incoming wire transfers to this account. + credit_facade_url?: string; + + // true if this account is active, + // false if it is historic. + active: boolean; + } + + .. http:delete:: [/instances/$INSTANCE]/private/accounts/$H_WIRE