tgbot-cpp
Loading...
Searching...
No Matches
TgBot::RefundedPayment Struct Reference

This object contains basic information about a refunded payment. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RefundedPayment>

Public Attributes

std::string currency { }
 Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”.
std::int32_t totalAmount { }
 Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
std::string invoicePayload { }
 Bot-specified invoice payload.
std::string telegramPaymentChargeId { }
 Telegram payment identifier.
std::optional< std::string > providerPaymentChargeId { }
 Optional. Provider payment identifier.

Detailed Description

This object contains basic information about a refunded payment.

Definition at line 10403 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::RefundedPayment::Ptr = std::shared_ptr<RefundedPayment>

Definition at line 10404 of file Types.h.

Member Data Documentation

◆ currency

std::string TgBot::RefundedPayment::currency { }

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”.

Definition at line 10410 of file Types.h.

◆ invoicePayload

std::string TgBot::RefundedPayment::invoicePayload { }

Bot-specified invoice payload.

Definition at line 10421 of file Types.h.

◆ providerPaymentChargeId

std::optional<std::string> TgBot::RefundedPayment::providerPaymentChargeId { }

Optional. Provider payment identifier.

Definition at line 10429 of file Types.h.

◆ telegramPaymentChargeId

std::string TgBot::RefundedPayment::telegramPaymentChargeId { }

Telegram payment identifier.

Definition at line 10425 of file Types.h.

◆ totalAmount

std::int32_t TgBot::RefundedPayment::totalAmount { }

Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Definition at line 10417 of file Types.h.


The documentation for this struct was generated from the following file: