diff options
Diffstat (limited to 'src/include/taler_exchange_service.h')
-rw-r--r-- | src/include/taler_exchange_service.h | 52 |
1 files changed, 41 insertions, 11 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 307a76de8..320123041 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h | |||
@@ -1683,26 +1683,56 @@ struct TALER_EXCHANGE_DepositGetHandle; | |||
1683 | 1683 | ||
1684 | 1684 | ||
1685 | /** | 1685 | /** |
1686 | * Data returned for a successful GET /deposits/ request. Note that | ||
1687 | * most fields are only set if the status is #MHD_HTTP_OK. Only | ||
1688 | * the @e execution_time is available if the status is #MHD_HTTP_ACCEPTED. | ||
1689 | */ | ||
1690 | struct TALER_EXCHANGE_DepositData | ||
1691 | { | ||
1692 | |||
1693 | /** | ||
1694 | * exchange key used to sign, NULL if exchange did not | ||
1695 | * yet execute the transaction | ||
1696 | */ | ||
1697 | const struct TALER_ExchangePublicKeyP *exchange_pub; | ||
1698 | |||
1699 | /** | ||
1700 | * signature from the exchange over the deposit data, NULL if exchange did not | ||
1701 | * yet execute the transaction | ||
1702 | */ | ||
1703 | const struct TALER_ExchangeSignatureP *exchange_sig; | ||
1704 | |||
1705 | /** | ||
1706 | * wire transfer identifier used by the exchange, NULL if exchange did not | ||
1707 | * yet execute the transaction | ||
1708 | */ | ||
1709 | const struct TALER_WireTransferIdentifierRawP *wtid; | ||
1710 | |||
1711 | /** | ||
1712 | * actual or planned execution time for the wire transfer | ||
1713 | */ | ||
1714 | struct GNUNET_TIME_Absolute execution_time; | ||
1715 | |||
1716 | /** | ||
1717 | * contribution to the total amount by this coin, NULL if exchange did not | ||
1718 | * yet execute the transaction | ||
1719 | */ | ||
1720 | const struct TALER_Amount *coin_contribution; | ||
1721 | }; | ||
1722 | |||
1723 | |||
1724 | /** | ||
1686 | * Function called with detailed wire transfer data. | 1725 | * Function called with detailed wire transfer data. |
1687 | * | 1726 | * |
1688 | * @param cls closure | 1727 | * @param cls closure |
1689 | * @param hr HTTP response data | 1728 | * @param hr HTTP response data |
1690 | * @param exchange_pub exchange key used to sign @a json, or NULL | 1729 | * @param dd details about the deposit (NULL on errors) |
1691 | * @param wtid wire transfer identifier used by the exchange, NULL if exchange did not | ||
1692 | * yet execute the transaction | ||
1693 | * @param execution_time actual or planned execution time for the wire transfer | ||
1694 | * @param coin_contribution contribution to the total amount by this coin (can be NULL) | ||
1695 | * // FIXME: also return the exchange signature | ||
1696 | * // FIXME: combine all of the above (except cls,hr) into a 'struct'! => DepositData | ||
1697 | */ | 1730 | */ |
1698 | typedef void | 1731 | typedef void |
1699 | (*TALER_EXCHANGE_DepositGetCallback)( | 1732 | (*TALER_EXCHANGE_DepositGetCallback)( |
1700 | void *cls, | 1733 | void *cls, |
1701 | const struct TALER_EXCHANGE_HttpResponse *hr, | 1734 | const struct TALER_EXCHANGE_HttpResponse *hr, |
1702 | const struct TALER_ExchangePublicKeyP *exchange_pub, | 1735 | const struct TALER_EXCHANGE_DepositData *dd); |
1703 | const struct TALER_WireTransferIdentifierRawP *wtid, | ||
1704 | struct GNUNET_TIME_Absolute execution_time, | ||
1705 | const struct TALER_Amount *coin_contribution); | ||
1706 | 1736 | ||
1707 | 1737 | ||
1708 | /** | 1738 | /** |