Invoice
Object Hierarchy:
Description:
public class Invoice :
Error
Content:
Properties:
- public string currency { get; set construct; }
ISO 4217 currency code
- public bool is_flexible { get; set construct; }
True, if the total price depends on the shipping method
- public bool is_test { get; set construct; }
True, if the payment is a test payment
- public int64 max_tip_amount { get; set construct; }
The maximum allowed amount of tip in the smallest units of the
currency
- public bool need_email_address { get; set construct; }
True, if the user's email address is needed for payment
- public bool need_name { get; set construct; }
True, if the user's name is needed for payment
- public bool need_phone_number { get; set construct; }
True, if the user's phone number is needed for payment
- public bool need_shipping_address { get; set construct; }
True, if the user's shipping address is needed for payment
- public ArrayList<LabeledPricePart?> price_parts { get; set construct; }
A list of objects used to calculate the total price of the product
- public string recurring_payment_terms_of_service_url { get; set construct; }
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
- public bool send_email_address_to_provider { get; set construct; }
True, if the user's email address will be sent to the provider
- public bool send_phone_number_to_provider { get; set construct; }
True, if the user's phone number will be sent to the provider
- public int32 subscription_period { get; set construct; }
The number of seconds between consecutive Telegram Star debiting for
subscription invoices; 0 if the invoice doesn't create subscription
- public ArrayList<int64?> suggested_tip_amounts { get; set construct; }
Suggested amounts of tip in the smallest units of the currency
- public string terms_of_service_url { get; set construct; }
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
Creation methods:
- public Invoice (string currency, ArrayList<LabeledPricePart?> price_parts, int32 subscription_period, int64 max_tip_amount, ArrayList<int64?> suggested_tip_amounts, string recurring_payment_terms_of_service_url, string 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)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref