Class: SuperGood::SolidusTaxjar::TransactionSyncBatch

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/super_good/solidus_taxjar/transaction_sync_batch.rb

Instance Method Summary collapse

Instance Method Details

#statusObject



5
6
7
8
9
10
# File 'app/models/super_good/solidus_taxjar/transaction_sync_batch.rb', line 5

def status
  return 'processing' if transaction_sync_logs.processing.any?
  return 'error' if transaction_sync_logs.error.any?

  'success'
end