diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-29 14:12:45 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-29 14:12:45 -0300 |
commit | adc9dae4cc3e6888877ff87f6c1d06a140fbe7b6 (patch) | |
tree | efb4303dda1c6bb02f579d42f3dc109f41b1d394 /src/include/taler_signatures.h | |
parent | 074ea7502e93b290f9300974f5a349a8de4f4753 (diff) | |
download | exchange-adc9dae4cc3e6888877ff87f6c1d06a140fbe7b6.tar.gz exchange-adc9dae4cc3e6888877ff87f6c1d06a140fbe7b6.tar.bz2 exchange-adc9dae4cc3e6888877ff87f6c1d06a140fbe7b6.zip |
make TALER_RefundConfirmationPS public
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 52c294cef..606b4f6ac 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -442,6 +442,47 @@ struct TALER_PaymentResponsePS struct TALER_PrivateContractHashP h_contract_terms; }; +/** + * @brief Format used to generate the signature on a request to refund + * a coin into the account of the customer. + */ +struct TALER_RefundConfirmationPS +{ + /** + * Purpose must be #TALER_SIGNATURE_EXCHANGE_CONFIRM_REFUND. + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * Hash over the proposal data to identify the contract + * which is being refunded. + */ + struct TALER_PrivateContractHashP h_contract_terms GNUNET_PACKED; + + /** + * The coin's public key. This is the value that must have been + * signed (blindly) by the Exchange. + */ + struct TALER_CoinSpendPublicKeyP coin_pub; + + /** + * The Merchant's public key. Allows the merchant to later refund + * the transaction or to inquire about the wire transfer identifier. + */ + struct TALER_MerchantPublicKeyP merchant; + + /** + * Merchant-generated transaction ID for the refund. + */ + uint64_t rtransaction_id GNUNET_PACKED; + + /** + * Amount to be refunded, including refund fee charged by the + * exchange to the customer. + */ + struct TALER_AmountNBO refund_amount; +}; + GNUNET_NETWORK_STRUCT_END |