tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::setAuthenticationPremiumPurchaseTransaction Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::setAuthenticationPremiumPurchaseTransaction:
td::td_api::Function td::TlObject

Public Types

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

Public Member Functions

 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 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

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.
 

Static Public Attributes

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

Detailed 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>.

Definition at line 127396 of file td_api.h.

Member Typedef Documentation

◆ ReturnType

Typedef for the type returned by the function.

Definition at line 127438 of file td_api.h.

Constructor & Destructor Documentation

◆ setAuthenticationPremiumPurchaseTransaction() [1/2]

td::td_api::setAuthenticationPremiumPurchaseTransaction::setAuthenticationPremiumPurchaseTransaction ( )

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]

td::td_api::setAuthenticationPremiumPurchaseTransaction::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.

Member Function Documentation

◆ store()

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

Member Data Documentation

◆ amount_

int53 td::td_api::setAuthenticationPremiumPurchaseTransaction::amount_

Paid amount, in the smallest units of the currency.

Definition at line 127413 of file td_api.h.

◆ currency_

string td::td_api::setAuthenticationPremiumPurchaseTransaction::currency_

ISO 4217 currency code of the payment currency.

Definition at line 127411 of file td_api.h.

◆ ID

const std::int32_t td::td_api::setAuthenticationPremiumPurchaseTransaction::ID = -450986887
static

Identifier uniquely determining a type of the object.

Definition at line 127435 of file td_api.h.

◆ is_restore_

bool td::td_api::setAuthenticationPremiumPurchaseTransaction::is_restore_

Pass true if this is a restore of a Telegram Premium purchase; only for App Store.

Definition at line 127409 of file td_api.h.

◆ transaction_

object_ptr<StoreTransaction> td::td_api::setAuthenticationPremiumPurchaseTransaction::transaction_

Information about the transaction.

Definition at line 127407 of file td_api.h.


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