Invoice class final

Product invoice

Inheritance

Constructors

Invoice({required String currency, required List<LabeledPricePart> priceParts, required int maxTipAmount, required List<int> suggestedTipAmounts, required String recurringPaymentTermsOfServiceUrl, required String termsOfServiceUrl, required bool isTest, required bool needName, required bool needPhoneNumber, required bool needEmailAddress, required bool needShippingAddress, required bool sendPhoneNumberToProvider, required bool sendEmailAddressToProvider, required bool isFlexible})
Product invoice
const
Invoice.fromJson(Map<String, dynamic> json)
Parses a Invoice from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
currency → String
ISO 4217 currency code
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isFlexible → bool
True, if the total price depends on the shipping method
final
isTest → bool
True, if the payment is a test payment
final
maxTipAmount → int
The maximum allowed amount of tip in the smallest units of the currency
final
needEmailAddress → bool
True, if the user's email address is needed for payment
final
needName → bool
True, if the user's name is needed for payment
final
needPhoneNumber → bool
True, if the user's phone number is needed for payment
final
needShippingAddress → bool
True, if the user's shipping address is needed for payment
final
priceParts → List<LabeledPricePart>
A list of objects used to calculate the total price of the product
final
recurringPaymentTermsOfServiceUrl → 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
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendEmailAddressToProvider → bool
True, if the user's email address will be sent to the provider
final
sendPhoneNumberToProvider → bool
True, if the user's phone number will be sent to the provider
final
suggestedTipAmounts → List<int>
Suggested amounts of tip in the smallest units of the currency
final
termsOfServiceUrl → String
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
final

Methods

copyWith({String? currency, List<LabeledPricePart>? priceParts, int? maxTipAmount, List<int>? suggestedTipAmounts, String? recurringPaymentTermsOfServiceUrl, String? termsOfServiceUrl, bool? isTest, bool? needName, bool? needPhoneNumber, bool? needEmailAddress, bool? needShippingAddress, bool? sendPhoneNumberToProvider, bool? sendEmailAddressToProvider, bool? isFlexible}) → Invoice
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.