Class: DeliveryFivePostClient::Resources::API::V1::GetLabelStatuses

Inherits:
Object
  • Object
show all
Defined in:
lib/delivery_five_post_client/resources/api/v1/get_label_statuses.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ GetLabelStatuses

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of GetLabelStatuses.

Parameters:



34
35
36
# File 'lib/delivery_five_post_client/resources/api/v1/get_label_statuses.rb', line 34

def initialize(client:)
  @client = client
end

Instance Method Details

#by_sender_order_ids(sender_order_ids:, request_options: {}) ⇒ DeliveryFivePostClient::Models::API::V1::GetLabelStatusBySenderOrderIDsResponse

Проверка статуса этикетки / Check label status

Parameters:

  • sender_order_ids (Array<String>) —

    Массив ID заказов партнера / Array of partner order IDs

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

Returns:

See Also:



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/delivery_five_post_client/resources/api/v1/get_label_statuses.rb', line 19

def by_sender_order_ids(params)
  parsed, options =
    DeliveryFivePostClient::API::V1::GetLabelStatusBySenderOrderIDsParams.dump_request(params)
  @client.request(
    method: :post,
    path: "api/v1/getLabelStatuses/bySenderOrderIds",
    body: parsed,
    model: DeliveryFivePostClient::Models::API::V1::GetLabelStatusBySenderOrderIDsResponse,
    options: options
  )
end