MessageInvoice class

Inheritance

Constructors

MessageInvoice({required String title, required String description, Photo? photo, required String currency, required int totalAmount, required String startParameter, required bool isTest, required bool needShippingAddress, required int receiptMessageId})
A message with an invoice from a bot
const
MessageInvoice.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
client identifier
no setterinherited
currency String
currency Currency for the product price
final
description String
description Product description
final
extra → dynamic
callback sign
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isTest bool
isTest True, if the invoice is a test invoice
final
needShippingAddress bool
needShippingAddress True, if the shipping address must be specified
final
photo Photo?
photo Product photo; may be null
final
receiptMessageId int
receiptMessageId The identifier of the message with the receipt, after the product has been purchased
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startParameter String
startParameter Unique invoice bot start_parameter. To share an invoice use the URL https://t.me/{bot_username}?start={start_parameter}
final
title String
title Product title
final
totalAmount int
totalAmount Product total price in the smallest units of the currency
final

Methods

copyWith({String? title, String? description, Photo? photo, String? currency, int? totalAmount, String? startParameter, bool? isTest, bool? needShippingAddress, int? receiptMessageId}) MessageInvoice
override
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String