Class: SpreeDoordash::DeliveryMapping
- Inherits:
-
Object
- Object
- SpreeDoordash::DeliveryMapping
- Defined in:
- app/models/spree_doordash/delivery_mapping.rb
Overview
Maps a Spree::Order to the DoorDash delivery it was dispatched to on acceptance — the DoorDash analog of SpreeSquare::OrderMapping. external_delivery_id is the accepted quote's id, reused as the delivery's own id for its whole lifecycle (DoorDash issues no separate delivery id).
Instance Method Summary collapse
Instance Method Details
#mark_failed!(error) ⇒ Object
23 24 25 |
# File 'app/models/spree_doordash/delivery_mapping.rb', line 23 def mark_failed!(error) update!(dispatch_error: error.to_s.truncate(2000)) end |