TriggerOrderCreateDto class

Краткое описание

Объект TriggerOrderCreateDto представляет собой структуру данных, используемую для создания заказа в системе.

Описание полей:

  1. clientID - ID клиента.
  2. createdAt - Дата и время создания заказа.
  3. departmentId - ID отдела, связанного с заказом.
  4. districtId - ID района доставки.
  5. id - Уникальный идентификатор заказа.
  6. isRescheduled - Флаг, указывающий, был ли заказ перенесен.
  7. isReturned - Флаг, указывающий, был ли заказ возвращен.
  8. isSaved - Флаг, указывающий, сохранен ли заказ.
  9. orderComments - Список комментариев к заказу (если есть).
  10. plannedDate - Планируемая дата доставки.
  11. plannedDateDuration - Временное окно в которое доставят заказ.
  12. positionsToBeSent - Флаг, указывающий, отправлены ли позиции заказа.
  13. reasonRefusal - Причина отказа.
  14. resale - Флаг, указывающий, является ли заказ перепродажей.
  15. rescheduleCount - Количество перенесений заказа.
  16. shortCode - Короткий код заказа.
  17. statusUpdatedAt - Дата и время последнего обновления статуса.
  18. telegramUserEmail - Email пользователя в Telegram.
  19. test - Флаг, указывающий, является ли заказ тестовым.
  20. totalCents - Общая стоимость заказа в центах.
  21. umbrellaID - Уникальный идентификатор заказа в системе Umbrella.
  22. updatedAt - Дата и время последнего обновления заказа.
  23. comment - Комментарий к заказу (если есть).
  24. deliveredDate - Дата доставки заказа.
  25. deliveryPrice - Стоимость доставки.
  26. discountId - ID скидки.
  27. discounts - Список примененных скидок.
  28. driverID - ID водителя.
  29. driverRefuseReasonId - ID причины отказа водителя.
  30. externalKey - Внешний ключ заказа.
  31. externalKeyVendorDatalinkId - Внешний ключ поставщика.
  32. externalStatus - Внешний статус заказа.
  33. important - Флаг, указывающий, является ли заказ важным.
  34. operatorRefuseReasonId - ID причины отказа оператора.
  35. paymentExpirationDate - Дата истечения срока платежа.
  36. paymentType - Тип платежа.
  37. paymentUrl - URL платежа.
  38. shipmentId - ID отгрузки.
  39. statusName - Название текущего статуса заказа.
  40. system - Название системы, в которой создан заказ.
  41. vendorDatalinkId - ID связи с поставщиком.
  42. warehouseID - ID склада.

Методы:

  • fromJson - Создает экземпляр TriggerOrderCreateDto из JSON-объекта.
  • toJson - Преобразует экземпляр TriggerOrderCreateDto в JSON-объект.
Annotations
  • @JsonSerializable()

Constructors

TriggerOrderCreateDto({required int clientId, required DateTime createdAt, required int departmentId, required String districtId, required int id, required bool isRescheduled, required bool isReturned, required bool isSaved, required DateTime plannedDate, required int plannedDateDuration, required bool positionsToBeSent, required bool resale, required int rescheduleCount, required String shortCode, required DateTime statusUpdatedAt, String? telegramUserEmail, required bool test, required int totalCents, String? umbrellaID, required DateTime updatedAt, String? reasonRefusal, List<TriggerOrderComment>? orderComments, String? comment, DateTime? deliveredDate, int? deliveryPrice, String? discountId, List? discounts, String? driverId, int? driverRefuseReasonId, String? externalKey, int? externalKeyVendorDatalinkId, String? externalStatus, bool? important, int? operatorRefuseReasonId, DateTime? paymentExpirationDate, String? paymentType, String? paymentUrl, int? shipmentId, String? statusName, String? system, int? vendorDatalinkId, int? warehouseID})
TriggerOrderCreateDto.fromJson(Map<String, dynamic> json)
factory

Properties

clientId → int
final
comment → String?
final
createdAt → DateTime
final
deliveredDate → DateTime?
final
deliveryPrice → int?
final
departmentId → int
final
discountId → String?
final
discounts → List?
final
districtId → String
final
driverId → String?
final
driverRefuseReasonId → int?
final
externalKey → String?
final
externalKeyVendorDatalinkId → int?
final
externalStatus → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
important → bool?
final
isRescheduled → bool
final
isReturned → bool
final
isSaved → bool
final
operatorRefuseReasonId → int?
final
orderComments → List<TriggerOrderComment>?
final
paymentExpirationDate → DateTime?
final
paymentType → String?
final
paymentUrl → String?
final
plannedDate → DateTime
final
plannedDateDuration → int
final
positionsToBeSent → bool
final
reasonRefusal → String?
final
resale → bool
final
rescheduleCount → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shipmentId → int?
final
shortCode → String
final
statusName → String?
final
statusUpdatedAt → DateTime
final
system → String?
final
telegramUserEmail → String?
final
test → bool
final
totalCents → int
final
umbrellaID → String?
final
updatedAt → DateTime
final
vendorDatalinkId → int?
final
warehouseID → int?
final

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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited