Class: DeliveryFivePostClient::Resources::API::V2::Points::Sl

Inherits:
Object
  • Object
show all
Defined in:
lib/delivery_five_post_client/resources/api/v2/points/sl.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Sl

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 Sl.

Parameters:



37
38
39
# File 'lib/delivery_five_post_client/resources/api/v2/points/sl.rb', line 37

def initialize(client:)
  @client = client
end

Instance Method Details

#get_c2c_delivery_terms(from_location_id:, to_location_id:, request_options: {}) ⇒ DeliveryFivePostClient::Models::API::V2::Points::SlGetC2cDeliveryTermsResponse

Получение сроков доставки C2C / Get C2C delivery terms

Parameters:

  • from_location_id (String) —

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

  • to_location_id (String) —

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

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

Returns:

See Also:



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/delivery_five_post_client/resources/api/v2/points/sl.rb', line 22

def get_c2c_delivery_terms(params)
  parsed, options =
    DeliveryFivePostClient::API::V2::Points::SlGetC2cDeliveryTermsParams.dump_request(params)
  @client.request(
    method: :post,
    path: "api/v2/points/sl/c2c",
    body: parsed,
    model: DeliveryFivePostClient::Models::API::V2::Points::SlGetC2cDeliveryTermsResponse,
    options: options
  )
end