|
TDLib
|
Inherits Function.
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 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_, int32 premium_day_count_, string const ¤cy_, int53 amount_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| int53 | amount_ |
| Paid amount, in the smallest units of the currency. | |
| string | currency_ |
| ISO 4217 currency code of the payment currency. | |
| bool | is_restore_ |
| Pass true if this is a restore of a Telegram Premium purchase; only for App Store. | |
| int32 | premium_day_count_ |
| The number of days for which the Telegram Premium subscription will be granted. | |
| object_ptr< StoreTransaction > | transaction_ |
| Information about the transaction. | |
Static Public Attributes | |
| static const std::int32_t | ID = 2014147806 |
| Identifier uniquely determining a type of the object. | |
| 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 | ( | object_ptr< StoreTransaction > && | transaction_, |
| bool | is_restore_, | ||
| int32 | premium_day_count_, | ||
| 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>.
| [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] | premium_day_count_ | The number of days for which the Telegram Premium subscription will be granted. |
| [in] | currency_ | ISO 4217 currency code of the payment currency. |
| [in] | amount_ | Paid amount, in the smallest units of the currency. |
|
finalvirtual |