app/models/plugins/ecommerce/order.rb in camaleon_ecommerce-1.2.1 vs app/models/plugins/ecommerce/order.rb in camaleon_ecommerce-2.0.0

- old
+ new

@@ -16,48 +16,27 @@ def accepted? status == 'accepted' end - def accepted! - update_columns({status: 'accepted', accepted_at: Time.current}) - end - def shipped? status == 'shipped' end - def shipped!(code) - update_columns({status: 'shipped', shipped_at: Time.current}) - set_meta('consignment_number', code) - end - def canceled? status == 'canceled' end - def canceled! - update_columns({status: 'canceled', shipped_at: Time.current}) - end - def received? status == 'received' end def bank_pending? status == 'bank_pending' end def on_delivery_pending? status == 'on_delivery' - end - - def bank_confirmed! - update_columns({status: 'paid', updated_at: Time.current}) - end - - def on_delivery_confirmed! - update_columns({status: 'paid', updated_at: Time.current}) end def payment_data get_meta('payment_data', {}) end