TriggerOrderCreateDto class
Краткое описание
Объект TriggerOrderCreateDto представляет собой структуру данных,
используемую для создания заказа в системе.
Описание полей:
- clientID - ID клиента.
- createdAt - Дата и время создания заказа.
- departmentId - ID отдела, связанного с заказом.
- districtId - ID района доставки.
- id - Уникальный идентификатор заказа.
- isRescheduled - Флаг, указывающий, был ли заказ перенесен.
- isReturned - Флаг, указывающий, был ли заказ возвращен.
- isSaved - Флаг, указывающий, сохранен ли заказ.
- orderComments - Список комментариев к заказу (если есть).
- plannedDate - Планируемая дата доставки.
- plannedDateDuration - Временное окно в которое доставят заказ.
- positionsToBeSent - Флаг, указывающий, отправлены ли позиции заказа.
- reasonRefusal - Причина отказа.
- resale - Флаг, указывающий, является ли заказ перепродажей.
- rescheduleCount - Количество перенесений заказа.
- shortCode - Короткий код заказа.
- statusUpdatedAt - Дата и время последнего обновления статуса.
- telegramUserEmail - Email пользователя в Telegram.
- test - Флаг, указывающий, является ли заказ тестовым.
- totalCents - Общая стоимость заказа в центах.
- umbrellaID - Уникальный идентификатор заказа в системе Umbrella.
- updatedAt - Дата и время последнего обновления заказа.
- comment - Комментарий к заказу (если есть).
- deliveredDate - Дата доставки заказа.
- deliveryPrice - Стоимость доставки.
- discountId - ID скидки.
- discounts - Список примененных скидок.
- driverID - ID водителя.
- driverRefuseReasonId - ID причины отказа водителя.
- externalKey - Внешний ключ заказа.
- externalKeyVendorDatalinkId - Внешний ключ поставщика.
- externalStatus - Внешний статус заказа.
- important - Флаг, указывающий, является ли заказ важным.
- operatorRefuseReasonId - ID причины отказа оператора.
- paymentExpirationDate - Дата истечения срока платежа.
- paymentType - Тип платежа.
- paymentUrl - URL платежа.
- shipmentId - ID отгрузки.
- statusName - Название текущего статуса заказа.
- system - Название системы, в которой создан заказ.
- vendorDatalinkId - ID связи с поставщиком.
- 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