Class: SpreeSquare::OrderMapping
- Inherits:
-
Object
- Object
- SpreeSquare::OrderMapping
- Defined in:
- app/models/spree_square/order_mapping.rb
Overview
Maps a Spree::Order to the Square Order (and its EXTERNAL payment) it was pushed to on completion.
Instance Method Summary collapse
Instance Method Details
#mark_failed!(error) ⇒ Object
11 12 13 |
# File 'app/models/spree_square/order_mapping.rb', line 11 def mark_failed!(error) update!(push_error: error.to_s.truncate(2000)) end |