Sha256: 818213942c66b1081a7afa48e1e44da0c7fac3469f7a2df457a33b0004560bbe

Contents?: true

Size: 180 Bytes

Versions: 10

Compression:

Stored size: 180 Bytes

Contents

# frozen_string_literal: true

module SolidusBolt
  module PaymentDecorator
    def can_void?
      super && state == 'pending'
    end

    Spree::Payment.prepend(self)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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