List of all members | Public Fields | Public Instance Methods | Static Public Attributes
invoice Class Referencefinal

Inherits Object.

Description

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.
 
int53 max_tip_amount_
 The maximum allowed amount of tip in the smallest units of the currency.
 
array< int53suggested_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 &currency_, array< object_ptr< labeledPricePart >> &&price_parts_, 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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

static const std::int32_t ID = 1039926674
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ invoice() [1/2]

invoice ( )

Product invoice.

◆ invoice() [2/2]

invoice ( string const &  currency_,
array< object_ptr< labeledPricePart >> &&  price_parts_,
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.

Parameters
[in]currency_ISO 4217 currency code.
[in]price_parts_A list of objects used to calculate the total price of the product.
[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.

Method Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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