Sha256: 9e6a69cdc33e4db50adb485fdedf068ff94996278d59b70fe61313c0401b5513

Contents?: true

Size: 720 Bytes

Versions: 3

Compression:

Stored size: 720 Bytes

Contents

module Jortt # :nodoc:
  class Client # :nodoc:
    ##
    # Exposes the operations available for a collection of customers.
    #
    # @see { Jortt::Client.customers }
    class LedgerAccounts
      attr_accessor :client

      def initialize(client)
        @client = client
      end

      ##
      # Returns the list of Ledger Accounts that can be used to categorize Line Items on an Invoice
      # for in your Profit and Loss report using the GET /ledger_accounts/invoices endpoint.
      # https://developer.jortt.nl/#list-invoice-ledger-accounts
      #
      # @example
      #   client.ledger_accounts.index
      #
      def index
        client.get('/ledger_accounts/invoices')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jortt-6.1.0 lib/jortt/client/ledger_accounts.rb
jortt-6.0.0 lib/jortt/client/ledger_accounts.rb
jortt-5.0.0 lib/jortt/client/ledger_accounts.rb