Class: Moneybird::Resource::Administration

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
Moneybird::Resource
Defined in:
lib/moneybird/resource/administration.rb

Instance Attribute Summary

Attributes included from ClassMethods

#attributes, #logger, #nillable_attributes

Attributes included from Moneybird::Resource

#client, #errors

Instance Method Summary collapse

Methods included from ClassMethods

build, has_attributes, has_boolean_attributes, has_datetime_attributes, has_integer_attributes, has_nillable_attributes, resource

Methods included from Moneybird::Resource

#attributes, #attributes=, #custom_fields=, #initialize, #link_booking, #path, #persisted?, #to_json

Instance Method Details

#contactsObject



35
36
37
# File 'lib/moneybird/resource/administration.rb', line 35

def contacts
  Moneybird::Service::Contact.new(@client, id)
end

#custom_fieldsObject



59
60
61
# File 'lib/moneybird/resource/administration.rb', line 59

def custom_fields
  Moneybird::Service::CustomField.new(@client, id)
end

#document_stylesObject



63
64
65
# File 'lib/moneybird/resource/administration.rb', line 63

def document_styles
  Moneybird::Service::DocumentStyle.new(@client, id)
end

#estimatesObject



39
40
41
# File 'lib/moneybird/resource/administration.rb', line 39

def estimates
  Moneybird::Service::Estimate.new(@client, id)
end

#external_sales_invoicesObject



27
28
29
# File 'lib/moneybird/resource/administration.rb', line 27

def external_sales_invoices
  Moneybird::Service::ExternalSalesInvoice.new(@client, id)
end

#financial_accountsObject



71
72
73
# File 'lib/moneybird/resource/administration.rb', line 71

def financial_accounts
  Moneybird::Service::FinancialAccount.new(@client, id)
end

#financial_mutationsObject



75
76
77
# File 'lib/moneybird/resource/administration.rb', line 75

def financial_mutations
  Moneybird::Service::FinancialMutation.new(@client, id)
end

#general_documentsObject



79
80
81
# File 'lib/moneybird/resource/administration.rb', line 79

def general_documents
  Moneybird::Service::Document::GeneralDocument.new(@client, id)
end

#general_journal_documentsObject



83
84
85
# File 'lib/moneybird/resource/administration.rb', line 83

def general_journal_documents
  Moneybird::Service::Document::GeneralJournalDocument.new(@client, id)
end

#identitiesObject



51
52
53
# File 'lib/moneybird/resource/administration.rb', line 51

def identities
  Moneybird::Service::Identity.new(@client, id)
end

#ledger_accountsObject



15
16
17
# File 'lib/moneybird/resource/administration.rb', line 15

def ledger_accounts
  Moneybird::Service::LedgerAccount.new(@client, id)
end

#productsObject



43
44
45
# File 'lib/moneybird/resource/administration.rb', line 43

def products
  Moneybird::Service::Product.new(@client, id)
end

#purchase_invoice_documentsObject



91
92
93
# File 'lib/moneybird/resource/administration.rb', line 91

def purchase_invoice_documents
  Moneybird::Service::Document::PurchaseInvoice.new(@client, id)
end

#purchase_invoicesObject



19
20
21
# File 'lib/moneybird/resource/administration.rb', line 19

def purchase_invoices
  Moneybird::Service::PurchaseInvoice.new(@client, id)
end

#receiptsObject



87
88
89
# File 'lib/moneybird/resource/administration.rb', line 87

def receipts
  Moneybird::Service::Document::Receipt.new(@client, id)
end

#recurring_sales_invoicesObject



31
32
33
# File 'lib/moneybird/resource/administration.rb', line 31

def recurring_sales_invoices
  Moneybird::Service::RecurringSalesInvoice.new(@client, id)
end

#sales_invoicesObject



23
24
25
# File 'lib/moneybird/resource/administration.rb', line 23

def sales_invoices
  Moneybird::Service::SalesInvoice.new(@client, id)
end

#tax_ratesObject



67
68
69
# File 'lib/moneybird/resource/administration.rb', line 67

def tax_rates
  Moneybird::Service::TaxRate.new(@client, id)
end

#typeless_documentsObject



95
96
97
# File 'lib/moneybird/resource/administration.rb', line 95

def typeless_documents
  Moneybird::Service::Document::TypelessDocument.new(@client, id)
end

#webhooksObject



47
48
49
# File 'lib/moneybird/resource/administration.rb', line 47

def webhooks
  Moneybird::Service::Webhook.new(@client, id)
end

#workflowsObject



55
56
57
# File 'lib/moneybird/resource/administration.rb', line 55

def workflows
  Moneybird::Service::Workflow.new(@client, id)
end