Sha256: 68f9399da12f6f656b04b678b70fd020c6bc584ba8e529e6d8c48997f0995a7e
Contents?: true
Size: 753 Bytes
Versions: 7
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping module Services class UpsFreight class GenerateDeliveryOptionsHash def self.call(delivery_options:) { DeliveryOptions: { LiftGateRequiredIndicator: delivery_options.lift_gate_required ? "" : nil, WeekendPickupIndicator: delivery_options.weekend_delivery ? "" : nil, InsidePickupIndicator: delivery_options.inside_delivery ? "" : nil, HolidayPickupIndicator: delivery_options.holiday_delivery ? "" : nil, LimitedAccessPickupIndicator: delivery_options.limited_access_delivery ? "" : nil }.compact.presence }.compact.presence end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems