Class: DeliveryFivePostClient::Models::WebhookCreateOrderStatusParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/delivery_five_post_client/models/webhook_create_order_status_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(change_date:, execution_status:, order_id:, sender_order_id:, status:, error_desc: nil, mile_type: nil, request_options: {}) ⇒ Object

Parameters:

  • change_date (Time) —

    Дата изменения статуса / Status change date

  • execution_status (Symbol, DeliveryFivePostClient::Models::API::V1::ExecutionStatus) —

    Статусы исполнения заказа / Order execution statuses

  • order_id (String) —

    UUID в формате v4 / UUID in v4 format

  • sender_order_id (String) —

    ID заказа партнера / Partner order ID

  • status (String) —

    Статус заказа / Order status

  • error_desc (String) (defaults to: nil) —

    Описание ошибки / Error description

  • mile_type (Symbol, DeliveryFivePostClient::Models::MileType) (defaults to: nil) —

    Тип мили доставки / Delivery mile type

  • request_options (DeliveryFivePostClient::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 54

Instance Attribute Details

#change_date ⇒ Time

Дата изменения статуса / Status change date

Returns:

  • (Time)


14
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 14

required :change_date, Time, api_name: :changeDate

#error_desc ⇒ String?

Описание ошибки / Error description

Returns:

  • (String, nil)


46
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 46

optional :error_desc, String, api_name: :errorDesc

#execution_status ⇒ Symbol, DeliveryFivePostClient::Models::API::V1::ExecutionStatus

Статусы исполнения заказа / Order execution statuses



20
21
22
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 20

required :execution_status,
enum: -> { DeliveryFivePostClient::API::V1::ExecutionStatus },
api_name: :executionStatus

#mile_type ⇒ Symbol, ...

Тип мили доставки / Delivery mile type



52
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 52

optional :mile_type, enum: -> { DeliveryFivePostClient::MileType }, api_name: :mileType

#order_id ⇒ String

UUID в формате v4 / UUID in v4 format

Returns:

  • (String)


28
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 28

required :order_id, String, api_name: :orderId

#sender_order_id ⇒ String

ID заказа партнера / Partner order ID

Returns:

  • (String)


34
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 34

required :sender_order_id, String, api_name: :senderOrderId

#status ⇒ String

Статус заказа / Order status

Returns:

  • (String)


40
# File 'lib/delivery_five_post_client/models/webhook_create_order_status_params.rb', line 40

required :status, String