class StripeRecipient

Public Class Methods

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

Public Instance Methods

assign_from_stripe(object) click to toggle source
# File lib/stripe_model_callbacks/models/stripe_recipient.rb, line 6
def assign_from_stripe(object)
  assign_attributes(
    stripe_type: object.type
  )

  StripeModelCallbacks::AttributesAssignerService.execute!(
    model: self, stripe_model: object,
    attributes: %w[active_account description email name migrated_to verified]
  )
end