OrderCreateDto class

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

Объект OrderCreateDto представляет собой структуру данных, используемую в API точках /order/add и /order/addList.

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

  1. orderId - уникальный id заказа, выданный в Umbrella.
  2. shortCode - уникальный код заказа, выданный в Umbrella.
  3. preferredDate - желаемая дата доставки.
  4. preferredDeliveryTime - желаемый временной промежуток доставки.
  5. toPayInCents - цена заказа.
  6. agent - email юзера.
  7. deliveryPrice - цена доставки.
  8. deliveryProviderId - уникальный id провайдера доставки.
  9. orderItems - список позиций заказа, описанный в OrderItemCreateDto.
  10. client - информация о клиенте, описанная в ClientDto.
  11. pickupPoint - уникальный id склада Раппи.
  12. resale - является ли заказ resale.
  13. 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