Invoice class

Product invoice

Inheritance

Constructors

Invoice({String? extra, int? client_id, string? currency, vector<LabeledPricePart>? price_parts, int53? max_tip_amount, vector<int53>? suggested_tip_amounts, string? recurring_payment_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})
Invoice.fromMap(Map<String, dynamic> map)

Properties

client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
currency string?
ISO 4217 currency code
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
is_flexible Bool?
True, if the total price depends on the shipping method
getter/setter pair
is_test Bool?
True, if the payment is a test payment
getter/setter pair
max_tip_amount int53?
The maximum allowed amount of tip in the smallest units of the currency
getter/setter pair
need_email_address Bool?
True, if the user's email address is needed for payment
getter/setter pair
need_name Bool?
True, if the user's name is needed for payment
getter/setter pair
need_phone_number Bool?
True, if the user's phone number is needed for payment
getter/setter pair
need_shipping_address Bool?
True, if the user's shipping address is needed for payment
getter/setter pair
price_parts vector<LabeledPricePart>?
A list of objects used to calculate the total price of the product
getter/setter pair
recurring_payment_terms_of_service_url string?
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
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
send_email_address_to_provider Bool?
True, if the user's email address will be sent to the provider
getter/setter pair
send_phone_number_to_provider Bool?
True, if the user's phone number will be sent to the provider
getter/setter pair
suggested_tip_amounts vector<int53>?
Suggested amounts of tip in the smallest units of the currency
getter/setter pair
tdType String
JSON object type; maps to the field @type.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited