Sha256: 767eb3f114e7694b8a6196001c306327128bd6c998d6cdae7ddc6389b2d201f4

Contents?: true

Size: 741 Bytes

Versions: 1

Compression:

Stored size: 741 Bytes

Contents

# frozen_string_literal: true

require 'friendly_shipping/item_options'

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

1 entries across 1 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups_json/rates_item_options.rb