Sha256: abd634bfef42b0312be2fa9590701347deb463f452f42b7b241b7ec128c840d5
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'friendly_shipping/item_options' module FriendlyShipping module Services class ShipEngine # Item options for generating shipping labels. class LabelItemOptions < 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/label_item_options.rb |