taler-docs

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

commit 6f0c1fcceed14dac5026e5984fef03e056849dbd
parent 4e60b03728fdbf9fe5cb514bad200b72db7616d4
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Tue, 12 Jul 2022 12:47:36 +0200

already paid response taldir

Diffstat:
Mcore/api-taldir.rst | 17++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/core/api-taldir.rst b/core/api-taldir.rst @@ -134,6 +134,9 @@ Address registration nearest multiple. Halfway values will be rounded away from zero. The cost calculation and resulting registration validity will be adjusted automatically. + In order to only modify the data, the duration may be set to 0. + When the call is made with unmodified data and a duration of 0, the + endpoint will return how long this registration is currently paid for. **Request** @@ -149,7 +152,7 @@ Address registration // (HTTPS) endpoint URL for the inbox service. inbox_url: string; - // For how long should the registration last. + // For how long should the registration last/be extended. duration: RelativeTime; // Order ID, if the client recently paid for this registration @@ -161,6 +164,7 @@ Address registration :http:statuscode:`200 Ok` Registration already exists for this address for the specified duration. Returns for how long this registration is paid for. + The response format is given by `AlreadyPaidResponse`_. :http:statuscode:`202 Accepted` Registration was initiated, the client should check for receiving a challenge at the address where registration was attempted. @@ -197,6 +201,17 @@ Address registration } + .. _AlreadyPaidResponse: + .. ts:def:: AlreadyPaidResponse + + interface AlreadyPaidResponse { + + // The date until which this registration is paid for + valid_until: string; + + } + + .. http:get:: /register/$H_ADDRESS/$PINTAN Endpoint that generates an HTML Web site with a QR code and