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

Inherits Function.

Description

Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

Returns object_ptr<Ok>.

Public Fields

object_ptr< StoreTransactiontransaction_
 Information about the transaction.
 
bool is_restore_
 Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
 
string currency_
 ISO 4217 currency code of the payment currency.
 
int53 amount_
 Paid amount, in the smallest units of the currency.
 

Public Types

using ReturnType = object_ptr< ok >
 Typedef for the type returned by the function.
 

Public Instance Methods

 setAuthenticationPremiumPurchaseTransaction ()
 
 setAuthenticationPremiumPurchaseTransaction (object_ptr< StoreTransaction > &&transaction_, bool is_restore_, string const &currency_, int53 amount_)
 
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 = -450986887
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ setAuthenticationPremiumPurchaseTransaction() [1/2]

Default constructor for a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

Returns object_ptr<Ok>.

◆ setAuthenticationPremiumPurchaseTransaction() [2/2]

setAuthenticationPremiumPurchaseTransaction ( object_ptr< StoreTransaction > &&  transaction_,
bool  is_restore_,
string const &  currency_,
int53  amount_ 
)

Creates a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

Returns object_ptr<Ok>.

Parameters
[in]transaction_Information about the transaction.
[in]is_restore_Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
[in]currency_ISO 4217 currency code of the payment currency.
[in]amount_Paid amount, in the smallest units of the currency.

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: