Class: Pay::Merchant

Inherits:
ApplicationRecord show all
Defined in:
app/models/pay/merchant.rb

Direct Known Subclasses

FakeProcessor::Merchant, Stripe::Merchant

Instance Method Summary collapse

Instance Method Details

#onboarding_complete?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/models/pay/merchant.rb', line 9

def onboarding_complete?
  ActiveModel::Type::Boolean.new.cast(data&.fetch("onboarding_complete")) || false
end