OrderCreateDto class
Краткое описание
Объект OrderCreateDto представляет собой структуру данных, используемую
в API точках /order/add и /order/addList.
Описание полей:
- orderId - уникальный id заказа, выданный в Umbrella.
- shortCode - уникальный код заказа, выданный в Umbrella.
- preferredDate - желаемая дата доставки.
- preferredDeliveryTime - желаемый временной промежуток доставки.
- toPayInCents - цена заказа.
- agent - email юзера.
- deliveryPrice - цена доставки.
- deliveryProviderId - уникальный id провайдера доставки.
- orderItems - список позиций заказа, описанный в OrderItemCreateDto.
- client - информация о клиенте, описанная в ClientDto.
- pickupPoint - уникальный id склада Раппи.
- resale - является ли заказ resale.
- system - система создающая заказ.
Методы:
- fromJson - Создает экземпляр
OrderCreateDtoиз JSON-объекта. - toJson - Преобразует экземпляр
OrderCreateDtoв JSON-объект.
- Annotations
-
- @JsonSerializable()
Constructors
-
OrderCreateDto({required String orderId, required String shortCode, required String preferredDate, required String preferredDeliveryTime, required int toPayInCents, required String agent, required int deliveryPrice, required List<
OrderItemCreateDto> orderItems, required ClientDto client, String? deliveryProviderId, int? pickupPoint, bool? resale, String? system}) -
OrderCreateDto.fromJson(Map<
String, dynamic> json) -
factory
Properties
- agent → String
-
final
- client → ClientDto
-
final
- deliveryPrice → int
-
final
- deliveryProviderId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- orderId → String
-
final
-
orderItems
→ List<
OrderItemCreateDto> -
final
- pickupPoint → int?
-
final
- preferredDate → String
-
final
- preferredDeliveryTime → String
-
final
- resale → bool?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortCode → String
-
final
- system → String?
-
final
- toPayInCents → 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