Sha256: 7daa6aa6009c33e2640821979954266f80dafccd74801d419d6fd0e093054c2c

Contents?: true

Size: 261 Bytes

Versions: 10

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

require_dependency 'solidus_bolt'

module SolidusBolt
  class PaymentSource < SolidusSupport.payment_source_parent_class
    validates :payment_method_id, presence: true

    def reusable?
      card_id.present?
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.7.1 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.7.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.6.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.5.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.4.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.3.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.2.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.1.0 app/models/solidus_bolt/payment_source.rb
solidus_bolt-0.0.1 app/models/solidus_bolt/payment_source.rb