TDLib
Loading...
Searching...
No Matches
td::td_api::paymentReceipt Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 paymentReceipt ()
 
 paymentReceipt (string const &title_, object_ptr< formattedText > &&description_, object_ptr< photo > &&photo_, int32 date_, int53 seller_bot_user_id_, int53 payment_provider_user_id_, object_ptr< invoice > &&invoice_, object_ptr< orderInfo > &&order_info_, object_ptr< shippingOption > &&shipping_option_, string const &credentials_title_, int53 tip_amount_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::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
 

Public Attributes

string title_
 Product title.
 
object_ptr< formattedTextdescription_
 Product description.
 
object_ptr< photophoto_
 Product photo; may be null.
 
int32 date_
 Point in time (Unix timestamp) when the payment was made.
 
int53 seller_bot_user_id_
 User identifier of the seller bot.
 
int53 payment_provider_user_id_
 User identifier of the payment provider bot.
 
object_ptr< invoiceinvoice_
 Information about the invoice.
 
object_ptr< orderInfoorder_info_
 Order information; may be null.
 
object_ptr< shippingOptionshipping_option_
 Chosen shipping option; may be null.
 
string credentials_title_
 Title of the saved credentials chosen by the buyer.
 
int53 tip_amount_
 The amount of tip chosen by the buyer in the smallest units of the currency.
 

Static Public Attributes

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

Detailed Description

Contains information about a successful payment.

Constructor & Destructor Documentation

◆ paymentReceipt() [1/2]

td::td_api::paymentReceipt::paymentReceipt ( )

Contains information about a successful payment.

◆ paymentReceipt() [2/2]

td::td_api::paymentReceipt::paymentReceipt ( string const &  title_,
object_ptr< formattedText > &&  description_,
object_ptr< photo > &&  photo_,
int32  date_,
int53  seller_bot_user_id_,
int53  payment_provider_user_id_,
object_ptr< invoice > &&  invoice_,
object_ptr< orderInfo > &&  order_info_,
object_ptr< shippingOption > &&  shipping_option_,
string const &  credentials_title_,
int53  tip_amount_ 
)

Contains information about a successful payment.

Parameters
[in]title_Product title.
[in]description_Product description.
[in]photo_Product photo; may be null.
[in]date_Point in time (Unix timestamp) when the payment was made.
[in]seller_bot_user_id_User identifier of the seller bot.
[in]payment_provider_user_id_User identifier of the payment provider bot.
[in]invoice_Information about the invoice.
[in]order_info_Order information; may be null.
[in]shipping_option_Chosen shipping option; may be null.
[in]credentials_title_Title of the saved credentials chosen by the buyer.
[in]tip_amount_The amount of tip chosen by the buyer in the smallest units of the currency.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::paymentReceipt::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::paymentReceipt::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 td::TlObject.


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