Sha256: 2dd744e4c0ac7d071680a005f1a7dddb166abbd8fa11b83f4fde6c0bcd2fd40d
Contents?: true
Size: 817 Bytes
Versions: 7
Compression:
Stored size: 817 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping module Services class UpsFreight class GeneratePickupOptionsHash def self.call(pickup_options:) { PickupOptions: { HolidayPickupIndicator: pickup_options.holiday_pickup ? "" : nil, InsidePickupIndicator: pickup_options.inside_pickup ? "" : nil, ResidentialPickupIndicator: pickup_options.residential_pickup ? "" : nil, WeekendPickupIndicator: pickup_options.weekend_pickup ? "" : nil, LiftGateRequiredIndicator: pickup_options.lift_gate_required ? "" : nil, LimitedAccessPickupIndicator: pickup_options.limited_access_pickup ? "" : nil }.compact.presence }.compact.presence end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems