BookRequest class
Constructors
- BookRequest({bool? overrideDuplicate, String? scanId, Voucher? voucher})
- Returns a new BookRequest instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- overrideDuplicate ↔ bool?
-
Override books this bill even when one of the SAME economic identity (vendor, total, issue date) already posted — the explicit human confirmation that a same-looking bill is a genuine second spend, not the same receipt re-scanned.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanId ↔ String?
-
ScanID is the scanned document's file hash, as GET /v1/books/inbox and the scan draft report it. It is the idempotency key: re-booking the same scan writes nothing.
getter/setter pair
- voucher ↔ Voucher?
-
Voucher is the reviewed voucher to post. Its source is FORCED to (scan, scanId) server-side, so it can never be booked under another source's key.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → BookRequest? -
Returns a new BookRequest instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< BookRequest> -
mapFromJson(
dynamic json) → Map< String, BookRequest> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< BookRequest> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.