Sha256: f3602b7cd041051bb44b3188b07d38c18890b879d43df0fcd81025cda2bf614f

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

# The Order object represents a collection of packages and can be used for Multi-Piece Shipments.
class EasyPost::Models::Order < EasyPost::Models::EasyPostObject
  # Get the lowest rate of an Order (can exclude by having `'!'` as the first element of your optional filter lists).
  def lowest_rate(carriers = [], services = [])
    EasyPost::Util.get_lowest_object_rate(self, carriers, services)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
easypost-6.4.1 lib/easypost/models/order.rb
easypost-6.4.0 lib/easypost/models/order.rb
easypost-6.3.0 lib/easypost/models/order.rb
easypost-6.2.0 lib/easypost/models/order.rb
easypost-6.1.1 lib/easypost/models/order.rb
easypost-6.1.0 lib/easypost/models/order.rb
easypost-6.0.0 lib/easypost/models/order.rb
easypost-5.3.0 lib/easypost/models/order.rb
easypost-5.2.0 lib/easypost/models/order.rb
easypost-5.1.1 lib/easypost/models/order.rb
easypost-5.1.0 lib/easypost/models/order.rb
easypost-5.0.1 lib/easypost/models/order.rb
easypost-5.0.0 lib/easypost/models/order.rb