Sha256: 9e2864a85dc99fc15fe6f92436a6aed1a1e07a00764577ca45e706071a4fbd2e

Contents?: true

Size: 261 Bytes

Versions: 91

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

module Spree
  class PaymentCaptureEvent < Spree::Base
    belongs_to :payment, class_name: 'Spree::Payment', optional: true

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

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
solidus_core-4.4.2 app/models/spree/payment_capture_event.rb
solidus_core-4.4.1 app/models/spree/payment_capture_event.rb
solidus_core-4.4.0 app/models/spree/payment_capture_event.rb
solidus_core-4.3.4 app/models/spree/payment_capture_event.rb
solidus_core-4.2.4 app/models/spree/payment_capture_event.rb
solidus_core-4.1.5 app/models/spree/payment_capture_event.rb
solidus_core-4.3.3 app/models/spree/payment_capture_event.rb
solidus_core-4.3.2 app/models/spree/payment_capture_event.rb
solidus_core-4.1.4 app/models/spree/payment_capture_event.rb
solidus_core-4.3.1 app/models/spree/payment_capture_event.rb
solidus_core-4.3.0 app/models/spree/payment_capture_event.rb
solidus_core-4.2.3 app/models/spree/payment_capture_event.rb
solidus_core-4.1.3 app/models/spree/payment_capture_event.rb
solidus_core-4.0.4 app/models/spree/payment_capture_event.rb
solidus_core-3.4.6 app/models/spree/payment_capture_event.rb
solidus_core-4.0.3 app/models/spree/payment_capture_event.rb
solidus_core-4.1.2 app/models/spree/payment_capture_event.rb
solidus_core-4.2.2 app/models/spree/payment_capture_event.rb
solidus_core-3.4.5 app/models/spree/payment_capture_event.rb
solidus_core-4.2.1 app/models/spree/payment_capture_event.rb