class EasyPost::Services::BetaRate

Public Instance Methods

retrieve_stateless_rates(params = {}) click to toggle source

Retrieve a list of stateless rates.

# File lib/easypost/services/beta_rate.rb, line 5
def retrieve_stateless_rates(params = {})
  wrapped_params = {
    shipment: params,
  }
  response = @client.make_request(:post, 'rates', wrapped_params, 'beta')

  EasyPost::InternalUtilities::Json.convert_json_to_object(response, EasyPost::Models::Rate).rates
end