Sha256: d4f47c142c5ea85b04f9d0fb4c609378e66372399a0e559a9ad36f7c235cf0ff

Contents?: true

Size: 646 Bytes

Versions: 14

Compression:

Stored size: 646 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsFreight
      class GenerateEmailOptionsHash
        def self.call(email_options:)
          {
            EMailInformation: {
              EMailType: {
                Code: email_options.email_type_code,
              },
              EMail: {
                EMailAddress: email_options.email,
                UndeliverableEMailAddress: email_options.undeliverable_email,
                EMailText: email_options.body,
                Subject: email_options.subject
              }.compact
            }
          }
        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_email_options_hash.rb
friendly_shipping-0.8.1 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.8.0 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.7.3 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.7.2 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.7.1 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.7.0 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups_freight/generate_email_options_hash.rb