Sha256: a824bb531301769b198164007b60f66f07a3e6ebc2c16d794ec0603087738d2f
Contents?: true
Size: 948 Bytes
Versions: 7
Compression:
Stored size: 948 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping module Services class UpsFreight class GenerateDeliveryOptionsHash def self.call(delivery_options:) { DeliveryOptions: { CallBeforeDeliveryIndicator: delivery_options.call_before_delivery ? "" : nil, HolidayDeliveryIndicator: delivery_options.holiday_delivery ? "" : nil, InsideDeliveryIndicator: delivery_options.inside_delivery ? "" : nil, ResidentialDeliveryIndicator: delivery_options.residential_delivery ? "" : nil, WeekendDeliveryIndicator: delivery_options.weekend_delivery ? "" : nil, LiftGateRequiredIndicator: delivery_options.lift_gate_required ? "" : nil, LimitedAccessDeliveryIndicator: 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