Items class
Массив позиций чека с информацией о товарах.
- Inheritance
-
- Object
- BaseRequest
- Items
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- Items({required String name, required String quantity, required String amount, required String price, required Tax tax, PaymentMethod? paymentMethod, PaymentObject? paymentObject, String? ean13, String? shopCode, AgentData? agentData, SupplierInfo? supplierInfo})
- Создает экземпляр массива позиций чека с информацией о товарах.
-
Items.fromJson(Map<
String, dynamic> json) -
Преобразование json в модель
factory
Properties
- agentData → AgentData?
-
Данные агента
final
- amount → String
-
Стоимость товара в копейках
final
- ean13 → String?
-
Маркировка товара
final
-
equals
→ Map<
String, Object?> -
Comparison objects
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Наименование товара
final
- paymentMethod → PaymentMethod?
-
Признак способа расчета:
final
- paymentObject → PaymentObject?
-
Признак предмета расчета
final
- price → String
-
Цена за единицу товара в копейках
final
- quantity → String
-
Количество или вес товара
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shopCode → String?
-
Код магазина
final
- supplierInfo → SupplierInfo?
-
Данные поставщика платежного агента
final
- tax → Tax
-
Ставка НДС:
final
Methods
-
compareLists<
R> (List< R> ? list1, List<R> ? list2) → bool -
Determines whether
list1
andlist2
are equal.inherited -
copyWith(
{String? name, String? quantity, String? amount, String? price, PaymentMethod? paymentMethod, PaymentObject? paymentObject, Tax? tax, String? ean13, String? shopCode, AgentData? agentData, SupplierInfo? supplierInfo}) → Items -
Создает экземпляр с заданными параметрами
override
-
genHash<
R> (Iterable< R> ? values) → int -
Returns a
hashCode
forequals
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Преобразование модели в json
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void -
Метод проверяет валидность данных
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited