Class: FriendlyShipping::Services::TForceFreight::GeneratePickupRequestHash
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::TForceFreight::GeneratePickupRequestHash
- Defined in:
- lib/friendly_shipping/services/tforce_freight/generate_pickup_request_hash.rb
Overview
Generates a pickup request hash for JSON serialization.
Class Method Summary collapse
-
.call(shipment:, options:) ⇒ Hash
Pickup request hash.
Class Method Details
.call(shipment:, options:) ⇒ Hash
Returns pickup request hash.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/friendly_shipping/services/tforce_freight/generate_pickup_request_hash.rb', line 12 def call(shipment:, options:) { pickup: pickup(), requester: requester(shipment.origin), origin: origin(shipment.origin), destination: destination(shipment.destination), services: ., lineItems: line_items(shipment.packages, ), instructions: instructions(), pomIndicator: false # We don't support this yet }.compact end |