Sha256: 31a9b4c8a9e022857fbeffb9cf64af00c339ad09b58fac3ad5217a43d8d9d9a7
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require 'friendly_shipping/item_options' module FriendlyShipping module Services class ShipEngine # Options for each item passed in the rates API call. class RatesItemOptions < FriendlyShipping::ItemOptions # @return [String] the HS or NMFC code for international shipments attr_reader :commodity_code # @return [String] the country of origin for international shipments attr_reader :country_of_origin # @param commodity_code [String] the HS or NMFC code for international shipments # @param country_of_origin [String] the country of origin for international shipments # @param kwargs [Hash] # @option kwargs [String] :item_id the ID for the item that belongs to these options 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/ship_engine/rates_item_options.rb |