TeleDartPreCheckoutQuery class
A recieved pre-checkout query
It is returned by the TeleDart.onPreCheckoutQuery method.
This class combines PreCheckoutQuery and TeleDart to add the answer method, which lets you easily reply to pre-checkout queries.
- Inheritance
-
- Object
- PreCheckoutQuery
- TeleDartPreCheckoutQuery
Constructors
- TeleDartPreCheckoutQuery(TeleDart _teledart, PreCheckoutQuery preCheckoutQuery)
Properties
- currency ↔ String
-
getter/setter pairinherited
- from ↔ User
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pairinherited
- invoicePayload ↔ String
-
getter/setter pairinherited
- orderInfo ↔ OrderInfo?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shippingOptionId ↔ String?
-
getter/setter pairinherited
- totalAmount ↔ int
-
getter/setter pairinherited
Methods
-
answer(
bool ok, {String? errorMessage}) → Future< bool> - Answer the recieved pre-checkout query
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited