diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-04-11 19:22:30 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-04-11 19:22:30 +0200 |
commit | b91a4065257e1df0a7f6d3f8bc1cbe91a57aac00 (patch) | |
tree | 93e9af6667cb896315811e9bac1fe73d66cce3fa /src/include/taler_exchange_service.h | |
parent | 78cf27aaac2bb93d34c2418ccfad8f8eda364886 (diff) | |
download | exchange-b91a4065257e1df0a7f6d3f8bc1cbe91a57aac00.tar.xz |
-finish first implementaation of exchange_api_contracts_get.c
Diffstat (limited to 'src/include/taler_exchange_service.h')
-rw-r--r-- | src/include/taler_exchange_service.h | 48 |
1 files changed, 5 insertions, 43 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index e51473222..93f6816c7 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -3999,57 +3999,19 @@ struct TALER_EXCHANGE_ContractGetResponse { /** - * What is the type of the transaction? + * Public key of the purse. */ - enum - { - /** - * This is a request for payment. - */ - TALER_EXCHANGE_CONTRACT_PAYMENT_REQUEST = 0, - - /** - * This is a payment, the receiver needs to - * accepts the terms. - */ - TALER_EXCHANGE_CONTRACT_PAYMENT_OFFER = 1 - } type; + struct TALER_PurseContractPublicKeyP purse_pub; /** - * Key material, depending on @e type. + * Private key of the merge capability. */ - union - { - /** - * Set if @e type is #TALER_EXCHANGE_CONTRACT_PAYMENT_REQUEST. - */ - struct TALER_PurseContractPublicKeyP purse_pub; - - /** - * Set if @e type is #TALER_EXCHANGE_CONTRACT_PAYMENT_OFFER. - */ - struct TALER_PurseMergePrivateKeyP merge_priv; - } keys; - - /** - * Total value of the contract/purse. - */ - struct TALER_Amount amount; + struct TALER_PurseMergePrivateKeyP merge_priv; /** * Contract terms. */ - json_t *contract_terms; - - /** - * Minimum age required to pay for the contract. - */ - uint8_t min_age; - - /** - * When will the purse expire? - */ - struct GNUNET_TIME_Timestamp purse_expiration; + const json_t *contract_terms; } success; |