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.4.0 | lib/active_zuora/payment.rb |