Sha256: 410c9d34e025ffd2c361b1a67e0b12b575d27fd75ace99361ae52e8a36687688

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module Spree
  class PaymentSource < Spree::Base
    include Spree::Metadata

    belongs_to :payment_method, class_name: 'Spree::PaymentMethod'
    belongs_to :user, class_name: 'Spree::User', optional: true

    validates_uniqueness_of :gateway_payment_profile_id, scope: :type
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/payment_source.rb
spree_core-4.10.0 app/models/spree/payment_source.rb
spree_core-4.9.0 app/models/spree/payment_source.rb
spree_core-4.8.3 app/models/spree/payment_source.rb
spree_core-4.8.2 app/models/spree/payment_source.rb
spree_core-4.7.3 app/models/spree/payment_source.rb
spree_core-4.6.6 app/models/spree/payment_source.rb
spree_core-4.5.5 app/models/spree/payment_source.rb