Sha256: e4832ba7e6d855d94a6f7884b03fd3795da7ecfd243bd8be93b56880ee768777

Contents?: true

Size: 701 Bytes

Versions: 14

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsFreight
      class GenerateDocumentOptionsHash
        def self.call(document_options:)
          {
            Type: {
              Code: document_options.document_type_code
            },
            LabelsPerPage: document_options.labels_per_page,
            Format: {
              Code: document_options.format_code
            },
            PrintFormat: {
              Code: document_options.thermal_code,
            },
            PrintSize: {
              Length: document_options.length,
              Width: document_options.width,
            }
          }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
friendly_shipping-0.9.0 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.8.1 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups_freight/generate_document_options_hash.rb