InputMessageInvoice class
- Inheritance
-
- Object
- TdObject
- InputMessageContent
- InputMessageInvoice
Constructors
- InputMessageInvoice({required Invoice invoice, required String title, required String description, required String photoUrl, required int photoSize, required int photoWidth, required int photoHeight, required String payload, required String providerToken, required String providerData, required String startParameter})
-
A message with an invoice; can be used only by bots
const
-
InputMessageInvoice.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
client identifier
no setterinherited
- description → String
-
description Product description; 0-255 characters
final
- extra → dynamic
-
callback sign
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- invoice → Invoice
-
invoice Invoice
final
- payload → String
-
payload The invoice payload
final
- photoHeight → int
-
photoHeight Product photo height
final
- photoSize → int
-
photoSize Product photo size
final
- photoUrl → String
-
photoUrl Product photo URL; optional
final
- photoWidth → int
-
photoWidth Product photo width
final
- providerData → String
-
providerData JSON-encoded data about the invoice, which will be shared with the payment provider
final
- providerToken → String
-
providerToken Payment provider token
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startParameter → String
-
startParameter Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message
final
- title → String
-
title Product title; 1-32 characters
final
Methods
-
copyWith(
{Invoice? invoice, String? title, String? description, String? photoUrl, int? photoSize, int? photoWidth, int? photoHeight, String? payload, String? providerToken, String? providerData, String? startParameter}) → InputMessageInvoice -
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