20 nl::json json = nl::json::object();
32 void _fromJson(
const nl::json& json) {
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
The withdrawal failed and the transaction was refunded.
RevenueWithdrawalStateFailed(const nl::json &json)
RevenueWithdrawalStateFailed()
Base class representing the state of a revenue withdrawal operation https://core.telegram....
virtual nl::json toJson() const
Serializes this object to JSON.
RevenueWithdrawalState(const nl::json &json)
RevenueWithdrawalState()=default
virtual ~RevenueWithdrawalState()=default
virtual void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string type
Type of the state.
The withdrawal is in progress.
RevenueWithdrawalStatePending(const nl::json &json)
RevenueWithdrawalStatePending()
The withdrawal succeeded.
void fromJson(const nl::json &json) override
Deserializes this object from JSON.
RevenueWithdrawalStateSucceeded()
std::time_t date
Date the withdrawal was completed in Unix time.
std::string url
An HTTPS URL that can be used to see transaction details.
RevenueWithdrawalStateSucceeded(const nl::json &json)
nl::json toJson() const override
Serializes this object to JSON.