Sha256: cf283404465d2a8e4ff5b344dc3d05af8267800ddc8a5cf99de132817337d82c

Contents?: true

Size: 394 Bytes

Versions: 21

Compression:

Stored size: 394 Bytes

Contents

module Zuora
  class Payment < ZObject
    
    exclude_query_attributes :appliedInvoiceAmount, :invoiceId

    def account
      @account ||= Account.find(self.accountId)
    end

    def payment_method
      @payment_method ||= PaymentMethod.find(self.paymentMethodId)
    end

    def invoices
      @invoices ||= InvoicePayment.where(:paymentId => self.id).map(&:invoice)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
active_zuora-1.5.2 lib/active_zuora/payment.rb
active_zuora-1.5.1 lib/active_zuora/payment.rb
active_zuora-1.5.0 lib/active_zuora/payment.rb
active_zuora-1.4.21 lib/active_zuora/payment.rb
active_zuora-1.4.20 lib/active_zuora/payment.rb
active_zuora-1.4.19 lib/active_zuora/payment.rb
active_zuora-1.4.18 lib/active_zuora/payment.rb
active_zuora-1.4.17 lib/active_zuora/payment.rb
active_zuora-1.4.16 lib/active_zuora/payment.rb
active_zuora-1.4.15 lib/active_zuora/payment.rb
active_zuora-1.4.13 lib/active_zuora/payment.rb
active_zuora-1.4.12 lib/active_zuora/payment.rb
active_zuora-1.4.11 lib/active_zuora/payment.rb
active_zuora-1.4.8 lib/active_zuora/payment.rb
active_zuora-1.4.7 lib/active_zuora/payment.rb
active_zuora-1.4.6 lib/active_zuora/payment.rb
active_zuora-1.4.5 lib/active_zuora/payment.rb
active_zuora-1.4.4 lib/active_zuora/payment.rb
active_zuora-1.4.2 lib/active_zuora/payment.rb
active_zuora-1.4.1 lib/active_zuora/payment.rb