Sha256: 7e2929666366acde871dfd41dd7640cfca06fe400cf7a476c8dcfc6dae5fecc0
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
class StripeReview < StripeModelCallbacks::ApplicationRecord belongs_to :stripe_charge, optional: true, primary_key: "stripe_id" def self.stripe_class Stripe::Review end def assign_from_stripe(object) check_object_is_stripe_class(object) assign_attributes( stripe_charge_id: object.charge ) StripeModelCallbacks::AttributesAssignerService.execute!( model: self, stripe_model: object, attributes: %w[id created livemode open reason] ) end end
Version data entries
5 entries across 5 versions & 1 rubygems