Sha256: 2c92f8ac60a286cf84ba596aafa2d36a42894e53fea350b0da0ac9254a8fda54

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

module Spree
  class PaymentCaptureEvent < Spree::Base
    if defined?(Spree::Webhooks::HasWebhooks)
      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

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/payment_capture_event.rb
spree_core-4.10.0 app/models/spree/payment_capture_event.rb
spree_core-4.9.0 app/models/spree/payment_capture_event.rb
spree_core-4.8.3 app/models/spree/payment_capture_event.rb
spree_core-4.8.2 app/models/spree/payment_capture_event.rb