diff options
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; |