Class: Caboose::OrderTransaction

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/caboose/order_transaction.rb

Constant Summary collapse

TYPE_AUTHORIZE =
'auth'
TYPE_CAPTURE =
'capture'
TYPE_VOID =
'void'
TYPE_REFUND =
'refund'

Instance Method Summary collapse

Instance Method Details

#check_nil_fieldsObject



24
25
26
# File 'app/models/caboose/order_transaction.rb', line 24

def check_nil_fields
  self.amount = 0.00 if self.amount.nil?        
end