Items class
Массив позиций чека с информацией о товарах.
- Inheritance
-
- Object
- BaseRequest
- Items
- Annotations
-
- @JsonSerializable(constructor: 'all', includeIfNull: false)
Constructors
-
Items.all({required String name, required int price, required int quantity, required int amount, required Tax tax, PaymentMethod? paymentMethod, PaymentObject? paymentObject, AgentData? agentData, SupplierInfo? supplierInfo, String? ean13, String? shopCode, String? userData, int? excise, String? countryCode, String? declarationNumber, String? measurementUnit, String? markProcessingMode, MarkCode? markCode, MarkQuantity? markQuantity, List<
SectoralItemProps> ? sectoralItemProps}) - Создает экземпляр массива позиций чека с информацией о товарах.
- Items.ffd105({required String name, required int quantity, required int amount, required int price, required Tax tax, PaymentMethod? paymentMethod, PaymentObject? paymentObject, String? ean13, String? shopCode, AgentData? agentData, SupplierInfo? supplierInfo})
- Создает экземпляр массива позиций чека с информацией о товарах ФФД 1.05
-
Items.ffd12({required String name, required int quantity, required int amount, required int price, required PaymentMethod? paymentMethod, required PaymentObject? paymentObject, required Tax tax, AgentData? agentData, SupplierInfo? supplierInfo, String? userData, int? excise, String? countryCode, String? declarationNumber, String? measurementUnit, String? markProcessingMode, MarkCode? markCode, MarkQuantity? markQuantity, List<
SectoralItemProps> ? sectoralItemProps}) - Создает экземпляр массива позиций чека с информацией о товарах ФФД 1.2
-
Items.fromJson(Map<
String, dynamic> json) -
Преобразование json в модель
factory
Properties
- agentData → AgentData?
-
Данные агента
final
- amount → int
-
Стоимость товара в копейках
final
- countryCode → String?
-
Только для ФФД 1.2.
final
- declarationNumber → String?
-
Только для ФФД 1.2.
final
- ean13 → String?
-
Только для ФФД 1.05.
final
-
equals
→ Map<
String, Object?> -
Comparison objects
no setteroverride
- excise → int?
-
Только для ФФД 1.2.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- markCode → MarkCode?
-
Только для ФФД 1.2.
final
- markProcessingMode → String?
-
Только для ФФД 1.2.
final
- markQuantity → MarkQuantity?
-
Только для ФФД 1.2.
final
- measurementUnit → String?
-
Только для ФФД 1.2.
final
- name → String
-
Наименование товара
final
- paymentMethod → PaymentMethod?
-
Признак способа расчета. Если значение не передано,
по умолчанию в онлайн-кассу передается признак способа расчёта "full_payment".
final
- paymentObject → PaymentObject?
-
Признак предмета расчета. Если значение не передано,
по умолчанию в онлайн-кассу передается признак предмета расчёта "commodity".
final
- price → int
-
Цена за единицу товара в копейках
final
- quantity → int
-
Количество или вес товара
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sectoralItemProps
→ List<
SectoralItemProps> ? -
Только для ФФД 1.2.
final
- shopCode → String?
-
Только для ФФД 1.05.
final
- supplierInfo → SupplierInfo?
-
Данные поставщика платежного агента
final
- tax → Tax
-
Ставка НДС:
final
- userData → String?
-
Только для ФФД 1.2.
final
Methods
-
compareLists<
R> (List< R> ? list1, List<R> ? list2) → bool -
Determines whether
list1
andlist2
are equal.inherited -
copyWith(
{String? name, int? quantity, int? amount, int? price, PaymentMethod? paymentMethod, PaymentObject? paymentObject, Tax? tax, AgentData? agentData, SupplierInfo? supplierInfo, String? ean13, String? shopCode, String? userData, int? excise, String? countryCode, String? declarationNumber, String? measurementUnit, String? markProcessingMode, MarkCode? markCode, MarkQuantity? markQuantity, List< SectoralItemProps> ? sectoralItemProps}) → Items -
Создает экземпляр с заданными параметрами
override
-
genHash<
R> (Iterable< R> ? values) → int -
Returns a
hashCode
for equals.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