Inherits Object.
|
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< int53 > | suggested_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.
|
|
|
| invoice () |
|
| invoice (string const ¤cy_, 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 |
|
virtual void | store (TlStorerUnsafe &s) const |
|
virtual void | store (TlStorerCalcLength &s) const |
|
| TlObject ()=default |
|
| TlObject (const TlObject &)=delete |
|
TlObject & | operator= (const TlObject &)=delete |
|
| TlObject (TlObject &&)=default |
|
TlObject & | operator= (TlObject &&)=default |
|
virtual | ~TlObject ()=default |
|
|
static const std::int32_t | ID = 1039926674 |
| Identifier uniquely determining a type of the object.
|
|
◆ invoice() [1/2]
◆ 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. |
◆ 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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: