Sha256: e469b65da06a2ff186f07b4c80dcdeaa1498c0eb9fa20c2ec3f164504f84a209

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

class EasyPost::Services::BetaRate < EasyPost::Services::Service
  # Retrieve a list of stateless rates.
  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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easypost-6.4.1 lib/easypost/services/beta_rate.rb
easypost-6.4.0 lib/easypost/services/beta_rate.rb
easypost-6.3.0 lib/easypost/services/beta_rate.rb
easypost-6.2.0 lib/easypost/services/beta_rate.rb
easypost-6.1.1 lib/easypost/services/beta_rate.rb
easypost-6.1.0 lib/easypost/services/beta_rate.rb
easypost-6.0.0 lib/easypost/services/beta_rate.rb