TeleDartShippingQuery class

A recieved shipping query

It is returned by the TeleDart.onShippingQuery method.

This class combines ShippingQuery and TeleDart to add the answer method, which lets you easily reply to shipping queries.

Inheritance

Constructors

TeleDartShippingQuery(TeleDart _teledart, ShippingQuery shippingQuery)

Properties

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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingAddress ShippingAddress
getter/setter pairinherited

Methods

answer(bool ok, {List<ShippingOption>? shippingOptions, String? errorMessage}) Future<bool>
Answer the recieved shipping 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