TDLib v0.0.2 TDLib.Object.Invoice View Source
Product invoice.
Name | Type | Description |
---|---|---|
currency | string | ISO 4217 currency code. |
price_parts | labeledPricePart[] | A list of objects used to calculate the total price of the product. |
is_test | bool | True, if the payment is a test payment. |
need_name | bool | True, if the user’s name is needed for payment. |
need_phone_number | bool | True, if the user’s phone number is needed for payment. |
need_email_address | bool | True, if the user’s email address is needed for payment. |
need_shipping_address | bool | True, if the user’s shipping address is needed for payment. |
send_phone_number_to_provider | bool | True, if the user’s phone number will be sent to the provider. |
send_email_address_to_provider | bool | True, if the user’s email address will be sent to the provider. |
is_flexible | bool | True, if the total price depends on the shipping method. |
More details on telegram’s documentation.