Inherits Object.
Product invoice.
Public Fields | |
string | currency_ |
ISO 4217 currency code. | |
array< object_ptr< labeledPricePart > > | price_parts_ |
A list of objects used to calculate the total price of the product. | |
int32 | subscription_period_ |
The number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't create subscription. | |
int53 | max_tip_amount_ |
The maximum allowed amount of tip in the smallest units of the currency. | |
array< int53 > | suggested_tip_amounts_ |
Suggested amounts of tip in the smallest units of the currency. | |
string | recurring_payment_terms_of_service_url_ |
An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay. | |
string | terms_of_service_url_ |
An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay. | |
bool | is_test_ |
True, if the payment is a test payment. | |
bool | need_name_ |
True, if the user's name is needed for payment. | |
bool | need_phone_number_ |
True, if the user's phone number is needed for payment. | |
bool | need_email_address_ |
True, if the user's email address is needed for payment. | |
bool | need_shipping_address_ |
True, if the user's shipping address is needed for payment. | |
bool | send_phone_number_to_provider_ |
True, if the user's phone number will be sent to the provider. | |
bool | send_email_address_to_provider_ |
True, if the user's email address will be sent to the provider. | |
bool | is_flexible_ |
True, if the total price depends on the shipping method. | |
Public Instance Methods | |
invoice () | |
invoice (string const ¤cy_, array< object_ptr< labeledPricePart >> &&price_parts_, int32 subscription_period_, int53 max_tip_amount_, array< int53 > &&suggested_tip_amounts_, string const &recurring_payment_terms_of_service_url_, string const &terms_of_service_url_, bool is_test_, bool need_name_, bool need_phone_number_, bool need_email_address_, bool need_shipping_address_, bool send_phone_number_to_provider_, bool send_email_address_to_provider_, bool is_flexible_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 113204876 |
Identifier uniquely determining a type of the object. | |
invoice | ( | ) |
Product invoice.
invoice | ( | string const & | currency_, |
array< object_ptr< labeledPricePart >> && | price_parts_, | ||
int32 | subscription_period_, | ||
int53 | max_tip_amount_, | ||
array< int53 > && | suggested_tip_amounts_, | ||
string const & | recurring_payment_terms_of_service_url_, | ||
string const & | terms_of_service_url_, | ||
bool | is_test_, | ||
bool | need_name_, | ||
bool | need_phone_number_, | ||
bool | need_email_address_, | ||
bool | need_shipping_address_, | ||
bool | send_phone_number_to_provider_, | ||
bool | send_email_address_to_provider_, | ||
bool | is_flexible_ | ||
) |
Product invoice.
[in] | currency_ | ISO 4217 currency code. |
[in] | price_parts_ | A list of objects used to calculate the total price of the product. |
[in] | subscription_period_ | The number of seconds between consecutive Telegram Star debiting for subscription invoices; 0 if the invoice doesn't create subscription. |
[in] | max_tip_amount_ | The maximum allowed amount of tip in the smallest units of the currency. |
[in] | suggested_tip_amounts_ | Suggested amounts of tip in the smallest units of the currency. |
[in] | recurring_payment_terms_of_service_url_ | An HTTP URL with terms of service for recurring payments. If non-empty, the invoice payment will result in recurring payments and the user must accept the terms of service before allowed to pay. |
[in] | terms_of_service_url_ | An HTTP URL with terms of service for non-recurring payments. If non-empty, then the user must accept the terms of service before allowed to pay. |
[in] | is_test_ | True, if the payment is a test payment. |
[in] | need_name_ | True, if the user's name is needed for payment. |
[in] | need_phone_number_ | True, if the user's phone number is needed for payment. |
[in] | need_email_address_ | True, if the user's email address is needed for payment. |
[in] | need_shipping_address_ | True, if the user's shipping address is needed for payment. |
[in] | send_phone_number_to_provider_ | True, if the user's phone number will be sent to the provider. |
[in] | send_email_address_to_provider_ | True, if the user's email address will be sent to the provider. |
[in] | is_flexible_ | True, if the total price depends on the shipping method. |
|
finalvirtual |