Sha256: 7f007992ff59c38e537d5100a57a433002d242912096ef4855af01fc55be0369

Contents?: true

Size: 245 Bytes

Versions: 42

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
solidus_core-2.9.6 app/models/spree/payment_capture_event.rb
solidus_core-2.8.6 app/models/spree/payment_capture_event.rb
solidus_core-2.9.5 app/models/spree/payment_capture_event.rb
solidus_core-2.9.4 app/models/spree/payment_capture_event.rb
solidus_core-2.6.6 app/models/spree/payment_capture_event.rb
solidus_core-2.7.4 app/models/spree/payment_capture_event.rb
solidus_core-2.8.5 app/models/spree/payment_capture_event.rb
solidus_core-2.9.3 app/models/spree/payment_capture_event.rb
solidus_core-2.9.2 app/models/spree/payment_capture_event.rb
solidus_core-2.7.3 app/models/spree/payment_capture_event.rb
solidus_core-2.6.5 app/models/spree/payment_capture_event.rb
solidus_core-2.9.1 app/models/spree/payment_capture_event.rb
solidus_core-2.9.0 app/models/spree/payment_capture_event.rb
solidus_core-2.9.0.rc.1 app/models/spree/payment_capture_event.rb
solidus_core-2.8.4 app/models/spree/payment_capture_event.rb
solidus_core-2.8.3 app/models/spree/payment_capture_event.rb
solidus_core-2.7.2 app/models/spree/payment_capture_event.rb
solidus_core-2.6.4 app/models/spree/payment_capture_event.rb
solidus_core-2.8.2 app/models/spree/payment_capture_event.rb
solidus_core-2.8.1 app/models/spree/payment_capture_event.rb