Class: DeliveryFivePostClient::Resources::API::V2::Points::Sl
- Inherits:
-
Object
- Object
- DeliveryFivePostClient::Resources::API::V2::Points::Sl
- Defined in:
- lib/delivery_five_post_client/resources/api/v2/points/sl.rb
Instance Method Summary collapse
-
#get_c2c_delivery_terms(from_location_id:, to_location_id:, request_options: {}) ⇒ DeliveryFivePostClient::Models::API::V2::Points::SlGetC2cDeliveryTermsResponse
Получение сроков доставки C2C / Get C2C delivery terms.
-
#initialize(client:) ⇒ Sl
constructor
private
A new instance of Sl.
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.
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
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, = 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: ) end |