Class: MOCO::InvoiceBookkeepingExport

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/moco/entities/invoice_bookkeeping_export.rb

Overview

Represents a MOCO invoice bookkeeping export (Buchhaltungsexporte) Exports invoice data for accounting systems

Read-only attributes:

id, from, to, file_url, user (Hash),
created_at, updated_at

Filtering:

moco.invoice_bookkeeping_exports.all
moco.invoice_bookkeeping_exports.where(from: "2024-01-01", to: "2024-01-31")

Note:

Bookkeeping exports are generated via MOCO's finance interface.
This endpoint provides read-only access to export records.

Instance Attribute Summary

Attributes inherited from BaseEntity

#attributes, #client

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseEntity

#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update

Constructor Details

This class inherits a constructor from MOCO::BaseEntity

Class Method Details

.entity_pathObject

Custom path since it’s nested under invoices



21
22
23
# File 'lib/moco/entities/invoice_bookkeeping_export.rb', line 21

def self.entity_path
  "invoices/bookkeeping_exports"
end

Instance Method Details

#to_sObject



29
30
31
# File 'lib/moco/entities/invoice_bookkeeping_export.rb', line 29

def to_s
  "InvoiceBookkeepingExport #{id} (#{from} - #{to})"
end

#userObject



25
26
27
# File 'lib/moco/entities/invoice_bookkeeping_export.rb', line 25

def user
  association(:user, "User")
end