Sha256: a86ae30a645bfc36496a6fc194e09adf9d6f4b96b2c426f05b5b17443d9024a1

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class ShipEngine
      # Represents customs options for obtaining international shipment labels.
      # @option contents [String] The contents of the shipment.
      #  Valid values are: gift, merchandise, returned_goods, documents, sample
      # @option non_delivery [String] Indicates what should be done if the shipment cannot be delivered.
      #  Valid values are: treat_as_abandoned, return_to_sender
      class LabelCustomsOptions
        attr_reader :contents,
                    :non_delivery

        def initialize(
          contents: "merchandise",
          non_delivery: "return_to_sender"
        )
          @contents = contents
          @non_delivery = non_delivery
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
friendly_shipping-0.8.1 lib/friendly_shipping/services/ship_engine/label_customs_options.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ship_engine/label_customs_options.rb