diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-28 17:50:23 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-28 17:50:23 +0200 |
commit | b25c9398b763c22021b5b18f4c093dea4d426469 (patch) | |
tree | 475df806d1866cd0d810d137c8bd0009ae2720c2 /src/include | |
parent | a227ee6d1bd979ae87ab9afda27f180c840313bf (diff) | |
download | exchange-b25c9398b763c22021b5b18f4c093dea4d426469.tar.xz |
starting work on purse-create endpoint
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 2 | ||||
-rw-r--r-- | src/include/taler_exchange_service.h | 23 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 179c62662..cc489e2c2 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -29,7 +29,7 @@ /** - * Maximum number of fresh coins we allow per refresh operation. + * Maximum number of coins we allow per operation. */ #define TALER_MAX_FRESH_COINS 256 diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 00c8c101f..20e7943fe 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -3985,10 +3985,16 @@ struct TALER_EXCHANGE_ContractGetResponse /** * Full HTTP response. */ - struct TALER_EXCHANGE_HttpResponse *hr; + struct TALER_EXCHANGE_HttpResponse hr; + /** + * Details depending on the HTTP status code. + */ union { + /** + * Information returned on #MHD_HTTP_OK. + */ struct { @@ -4000,13 +4006,13 @@ struct TALER_EXCHANGE_ContractGetResponse /** * This is a request for payment. */ - TALER_EXCHANGE_CONTRACT_PAYMENT_REQUEST, + TALER_EXCHANGE_CONTRACT_PAYMENT_REQUEST = 0, /** * This is a payment, the receiver needs to * accepts the terms. */ - TALER_EXCHANGE_CONTRACT_PAYMENT_OFFER + TALER_EXCHANGE_CONTRACT_PAYMENT_OFFER = 1 } type; /** @@ -4026,7 +4032,7 @@ struct TALER_EXCHANGE_ContractGetResponse } keys; /** - * Total value of the purse. + * Total value of the contract/purse. */ struct TALER_Amount amount; @@ -4046,6 +4052,7 @@ struct TALER_EXCHANGE_ContractGetResponse struct GNUNET_TIME_Timestamp purse_expiration; } success; + } details; }; @@ -4105,7 +4112,7 @@ struct TALER_EXCHANGE_PurseGetResponse /** * Full HTTP response. */ - struct TALER_EXCHANGE_HttpResponse *hr; + struct TALER_EXCHANGE_HttpResponse hr; /** * Details depending on the HTTP status. @@ -4327,7 +4334,7 @@ struct TALER_EXCHANGE_AccountMergeResponse /** * Full HTTP response. */ - struct TALER_EXCHANGE_HttpResponse *hr; + struct TALER_EXCHANGE_HttpResponse hr; /** * Details depending on the HTTP status. @@ -4411,7 +4418,7 @@ struct TALER_EXCHANGE_PurseCreateMergeResponse /** * Full HTTP response. */ - struct TALER_EXCHANGE_HttpResponse *hr; + struct TALER_EXCHANGE_HttpResponse hr; /** * Details depending on the HTTP status. @@ -4498,7 +4505,7 @@ struct TALER_EXCHANGE_PurseDepositResponse /** * Full HTTP response. */ - struct TALER_EXCHANGE_HttpResponse *hr; + struct TALER_EXCHANGE_HttpResponse hr; /** * Details depending on the HTTP status. |