Sha256: 48fb30a21fc9bbf0674f3f4c3b4e70397f1306ecf817bb8e7c75bd8553b88c40

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsJson
      # Represents item options for determining rates.
      # @option commodity_code [String] This item's HS or NMFC code for international shipments.
      # @option country_of_origin [String] This item's country of origin for international shipments.
      class RatesItemOptions < FriendlyShipping::ItemOptions
        attr_reader :commodity_code, :country_of_origin

        def initialize(commodity_code: nil, country_of_origin: nil, **kwargs)
          @commodity_code = commodity_code
          @country_of_origin = country_of_origin
          super(**kwargs)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
friendly_shipping-0.10.1 lib/friendly_shipping/services/ups_json/rates_item_options.rb
friendly_shipping-0.10.0 lib/friendly_shipping/services/ups_json/rates_item_options.rb