Receipt class

Данные чека

Поля для ФФД 1.2: customer, customerInn, clientInfo Receipt

Inheritance
Annotations
  • @JsonSerializable(constructor: 'all', includeIfNull: false)

Constructors

Receipt.all({required Taxation taxation, required List<Items> items, required String ffdVersion, String? email, String? phone, Payments? payments, String? customer, String? customerInn, ClientInfo? clientInfo, List<OperatingCheckProps>? operatingCheckProps, List<SectoralCheckProps>? sectoralCheckProps, List<AddUserProp>? addUserProp, List<String>? additionalCheckProps})
Создает экземпляр данных чека.
Receipt.ffd105({required Taxation taxation, required List<Items> items, String? email, String? phone, Payments? payments})
Создает экземпляр данных чека ФФД 1.05
Receipt.ffd12({required Taxation taxation, required List<Items> items, String? email, String? phone, Payments? payments, String? customer, String? customerInn, ClientInfo? clientInfo, List<OperatingCheckProps>? operatingCheckProps, List<SectoralCheckProps>? sectoralCheckProps, List<AddUserProp>? addUserProp, List<String>? additionalCheckProps})
Создает экземпляр данных чека ФФД 1.2
Receipt.fromJson(Map<String, dynamic> json)
Преобразование json в модель
factory

Properties

additionalCheckProps List<String>?
Дополнительный реквизит чека (БСО) (тег 1192), только для ФФД 1.2
final
addUserProp List<AddUserProp>?
Дополнительный реквизит пользователя (тег 1084), только для ФФД 1.2
final
clientInfo ClientInfo?
Информация по покупателю, только для ФФД 1.2
final
customer String?
Идентификатор/Имя покупателя, только для ФФД 1.2
final
customerInn String?
ИНН покупателя, только для ФФД 1.2
final
email String?
Электронная почта покупателя
final
equals Map<String, Object?>
Comparison objects
no setteroverride
ffdVersion String
Версия ФФД. Возможные значения:
final
hashCode int
The hash code for this object.
no setterinherited
items List<Items>
Массив позиций чека с информацией о товарах.
final
operatingCheckProps List<OperatingCheckProps>?
Операционный реквизит чека (тег 1270), только для ФФД 1.2
final
payments Payments?
Объект с информацией о видах оплаты заказа.
final
phone String?
Телефон покупателя
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectoralCheckProps List<SectoralCheckProps>?
Отраслевой реквизит чека (тег 1261), только для ФФД 1.2
final
taxation Taxation
Система налогообложения:
final

Methods

compareLists<R>(List<R>? list1, List<R>? list2) bool
Determines whether list1 and list2 are equal.
inherited
copyWith({String? email, String? phone, Taxation? taxation, List<Items>? items, Payments? payments, String? ffdVersion, String? customer, String? customerInn, ClientInfo? clientInfo}) Receipt
Создает экземпляр с заданными параметрами
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