Sha256: 38e2e53a489a1b52aaa93d54b934405adfbc454173693c8f963ba7b9d9efc7ea

Contents?: true

Size: 295 Bytes

Versions: 17

Compression:

Stored size: 295 Bytes

Contents

module Spree
  class PaymentCaptureEvent < Spree::Base
    if defined?(Spree::Webhooks)
      include Spree::Webhooks::HasWebhooks
    end

    belongs_to :payment, class_name: 'Spree::Payment'

    def display_amount
      Spree::Money.new(amount, currency: payment.currency)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spree_core-4.7.3 app/models/spree/payment_capture_event.rb
spree_core-4.6.6 app/models/spree/payment_capture_event.rb
spree_core-4.5.5 app/models/spree/payment_capture_event.rb
spree_core-4.5.4 app/models/spree/payment_capture_event.rb
spree_core-4.6.5 app/models/spree/payment_capture_event.rb
spree_core-4.7.2 app/models/spree/payment_capture_event.rb
spree_core-4.7.1 app/models/spree/payment_capture_event.rb
spree_core-4.6.4 app/models/spree/payment_capture_event.rb
spree_core-4.7.0 app/models/spree/payment_capture_event.rb
spree_core-4.6.3 app/models/spree/payment_capture_event.rb
spree_core-4.6.2 app/models/spree/payment_capture_event.rb
spree_core-4.6.1 app/models/spree/payment_capture_event.rb
spree_core-4.6.0 app/models/spree/payment_capture_event.rb
spree_core-4.5.3 app/models/spree/payment_capture_event.rb
spree_core-4.5.2 app/models/spree/payment_capture_event.rb
spree_core-4.5.1 app/models/spree/payment_capture_event.rb
spree_core-4.5.0 app/models/spree/payment_capture_event.rb