class StripeBankAccount

Public Class Methods

stripe_class() click to toggle source
# File lib/stripe_model_callbacks/models/stripe_bank_account.rb, line 2
def self.stripe_class
  Stripe::BankAccount
end

Public Instance Methods

assign_from_stripe(object) click to toggle source
# File lib/stripe_model_callbacks/models/stripe_bank_account.rb, line 6
def assign_from_stripe(object)
  assign_attributes(stripe_account_id: object.account)

  StripeModelCallbacks::AttributesAssignerService.execute!(
    model: self, stripe_model: object,
    attributes: %w[
      id account_holder_name account_holder_type bank_name country currency default_for_currency
      fingerprint last4 metadata routing_number status
    ]
  )
end