Sha256: 4b58382eb40136348c3ddf965579b287c1c05db243215733a6cbfa8faa3f4522

Contents?: true

Size: 555 Bytes

Versions: 20

Compression:

Stored size: 555 Bytes

Contents

module Zuora
  class Account < ZObject
    def billTo
      @billTo ||= Contact.find(self.billToId)
    end

    def soldTo
      @soldTo ||= Contact.find(self.soldToId)
    end

    def subscriptions
      @subscriptions ||= Subscription.where(:accountid => self.id)
    end

    def invoices
      @invoices ||= Invoice.where(:accountid => self.id)
    end

    def payment_methods
      @payment_methods ||= PaymentMethod.where(:accountid => self.id)
    end

    def contacts
      @contacts ||= Contact.where(:accountid => self.id)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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