cashctrl 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +549 -14
  4. data/lib/cashctrl/client.rb +216 -0
  5. data/lib/cashctrl/collection.rb +77 -0
  6. data/lib/cashctrl/configuration.rb +30 -0
  7. data/lib/cashctrl/error.rb +27 -0
  8. data/lib/cashctrl/localized_string.rb +115 -0
  9. data/lib/cashctrl/models/account.rb +35 -0
  10. data/lib/cashctrl/models/article.rb +40 -0
  11. data/lib/cashctrl/models/asset.rb +32 -0
  12. data/lib/cashctrl/models/bank.rb +16 -0
  13. data/lib/cashctrl/models/category.rb +13 -0
  14. data/lib/cashctrl/models/certificate_document.rb +14 -0
  15. data/lib/cashctrl/models/certificate_template.rb +13 -0
  16. data/lib/cashctrl/models/cost_center.rb +15 -0
  17. data/lib/cashctrl/models/currency.rb +18 -0
  18. data/lib/cashctrl/models/custom_field.rb +18 -0
  19. data/lib/cashctrl/models/custom_field_group.rb +12 -0
  20. data/lib/cashctrl/models/file.rb +19 -0
  21. data/lib/cashctrl/models/fiscal_period.rb +16 -0
  22. data/lib/cashctrl/models/fiscal_period_task.rb +14 -0
  23. data/lib/cashctrl/models/history.rb +19 -0
  24. data/lib/cashctrl/models/insurance_type.rb +13 -0
  25. data/lib/cashctrl/models/journal.rb +56 -0
  26. data/lib/cashctrl/models/journal_import.rb +18 -0
  27. data/lib/cashctrl/models/journal_import_entry.rb +20 -0
  28. data/lib/cashctrl/models/loader.rb +52 -0
  29. data/lib/cashctrl/models/location.rb +22 -0
  30. data/lib/cashctrl/models/order.rb +46 -0
  31. data/lib/cashctrl/models/order_book_entry.rb +17 -0
  32. data/lib/cashctrl/models/order_document.rb +15 -0
  33. data/lib/cashctrl/models/order_layout.rb +18 -0
  34. data/lib/cashctrl/models/order_payment.rb +16 -0
  35. data/lib/cashctrl/models/person.rb +72 -0
  36. data/lib/cashctrl/models/report.rb +15 -0
  37. data/lib/cashctrl/models/report_collection.rb +13 -0
  38. data/lib/cashctrl/models/report_element.rb +16 -0
  39. data/lib/cashctrl/models/rounding.rb +15 -0
  40. data/lib/cashctrl/models/salary_book_entry.rb +16 -0
  41. data/lib/cashctrl/models/salary_certificate.rb +15 -0
  42. data/lib/cashctrl/models/salary_document.rb +15 -0
  43. data/lib/cashctrl/models/salary_field.rb +16 -0
  44. data/lib/cashctrl/models/salary_layout.rb +13 -0
  45. data/lib/cashctrl/models/salary_payment.rb +16 -0
  46. data/lib/cashctrl/models/salary_setting.rb +12 -0
  47. data/lib/cashctrl/models/salary_statement.rb +17 -0
  48. data/lib/cashctrl/models/salary_status.rb +12 -0
  49. data/lib/cashctrl/models/salary_sum.rb +14 -0
  50. data/lib/cashctrl/models/salary_template.rb +12 -0
  51. data/lib/cashctrl/models/salary_type.rb +14 -0
  52. data/lib/cashctrl/models/sequence_number.rb +13 -0
  53. data/lib/cashctrl/models/setting.rb +33 -0
  54. data/lib/cashctrl/models/tax.rb +17 -0
  55. data/lib/cashctrl/models/text.rb +13 -0
  56. data/lib/cashctrl/models/title.rb +13 -0
  57. data/lib/cashctrl/models/unit.rb +11 -0
  58. data/lib/cashctrl/resource.rb +190 -0
  59. data/lib/cashctrl/resources/account/bank.rb +24 -0
  60. data/lib/cashctrl/resources/account/category.rb +22 -0
  61. data/lib/cashctrl/resources/account/cost_center/category.rb +24 -0
  62. data/lib/cashctrl/resources/account/cost_center.rb +48 -0
  63. data/lib/cashctrl/resources/account.rb +54 -0
  64. data/lib/cashctrl/resources/base.rb +161 -0
  65. data/lib/cashctrl/resources/currency.rb +26 -0
  66. data/lib/cashctrl/resources/custom_field/group.rb +24 -0
  67. data/lib/cashctrl/resources/custom_field.rb +30 -0
  68. data/lib/cashctrl/resources/file/category.rb +22 -0
  69. data/lib/cashctrl/resources/file.rb +66 -0
  70. data/lib/cashctrl/resources/fiscal_period/task.rb +30 -0
  71. data/lib/cashctrl/resources/fiscal_period.rb +96 -0
  72. data/lib/cashctrl/resources/history.rb +44 -0
  73. data/lib/cashctrl/resources/inventory/article/category.rb +24 -0
  74. data/lib/cashctrl/resources/inventory/article.rb +34 -0
  75. data/lib/cashctrl/resources/inventory/asset/category.rb +24 -0
  76. data/lib/cashctrl/resources/inventory/asset.rb +34 -0
  77. data/lib/cashctrl/resources/inventory/unit.rb +12 -0
  78. data/lib/cashctrl/resources/journal/import/entry.rb +54 -0
  79. data/lib/cashctrl/resources/journal/import.rb +22 -0
  80. data/lib/cashctrl/resources/journal.rb +94 -0
  81. data/lib/cashctrl/resources/location.rb +10 -0
  82. data/lib/cashctrl/resources/order/book_entry.rb +12 -0
  83. data/lib/cashctrl/resources/order/category.rb +32 -0
  84. data/lib/cashctrl/resources/order/document.rb +38 -0
  85. data/lib/cashctrl/resources/order/layout.rb +12 -0
  86. data/lib/cashctrl/resources/order/payment.rb +56 -0
  87. data/lib/cashctrl/resources/order.rb +94 -0
  88. data/lib/cashctrl/resources/person/category.rb +22 -0
  89. data/lib/cashctrl/resources/person/title.rb +12 -0
  90. data/lib/cashctrl/resources/person.rb +40 -0
  91. data/lib/cashctrl/resources/report/collection.rb +72 -0
  92. data/lib/cashctrl/resources/report/element.rb +80 -0
  93. data/lib/cashctrl/resources/report.rb +60 -0
  94. data/lib/cashctrl/resources/rounding.rb +10 -0
  95. data/lib/cashctrl/resources/salary/book_entry.rb +12 -0
  96. data/lib/cashctrl/resources/salary/category.rb +22 -0
  97. data/lib/cashctrl/resources/salary/certificate/document.rb +72 -0
  98. data/lib/cashctrl/resources/salary/certificate/template.rb +24 -0
  99. data/lib/cashctrl/resources/salary/certificate.rb +30 -0
  100. data/lib/cashctrl/resources/salary/document.rb +62 -0
  101. data/lib/cashctrl/resources/salary/field.rb +38 -0
  102. data/lib/cashctrl/resources/salary/insurance/type.rb +14 -0
  103. data/lib/cashctrl/resources/salary/layout.rb +12 -0
  104. data/lib/cashctrl/resources/salary/payment.rb +56 -0
  105. data/lib/cashctrl/resources/salary/setting.rb +12 -0
  106. data/lib/cashctrl/resources/salary/statement.rb +77 -0
  107. data/lib/cashctrl/resources/salary/status.rb +24 -0
  108. data/lib/cashctrl/resources/salary/sum.rb +12 -0
  109. data/lib/cashctrl/resources/salary/template.rb +22 -0
  110. data/lib/cashctrl/resources/salary/type.rb +24 -0
  111. data/lib/cashctrl/resources/sequence_number.rb +20 -0
  112. data/lib/cashctrl/resources/setting.rb +52 -0
  113. data/lib/cashctrl/resources/tax.rb +10 -0
  114. data/lib/cashctrl/resources/text.rb +10 -0
  115. data/lib/cashctrl/schema.yml +601 -0
  116. data/lib/cashctrl/version.rb +1 -1
  117. data/lib/cashctrl.rb +114 -2
  118. data/lib/generators/model_generator.rb +92 -0
  119. metadata +115 -1
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class CustomFieldGroup < Resource
8
+ attribute :type, type: :string
9
+ attribute :name, type: :string
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class File < Resource
8
+ attribute :category_id, type: :integer
9
+ attribute :category_name, type: :string, readonly: true
10
+ attribute :name, type: :string
11
+ attribute :mime_type, type: :string
12
+ attribute :size, type: :integer, readonly: true
13
+ attribute :width, type: :integer, readonly: true
14
+ attribute :height, type: :integer, readonly: true
15
+ attribute :notes, type: :string
16
+ attribute :is_archived, type: :boolean, readonly: true
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class FiscalPeriod < Resource
8
+ attribute :name, type: :string
9
+ attribute :start, type: :date
10
+ attribute :end, type: :date
11
+ attribute :is_current, type: :boolean, readonly: true
12
+ attribute :is_closed, type: :boolean, readonly: true
13
+ attribute :is_custom, type: :boolean
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class FiscalPeriodTask < Resource
8
+ attribute :fiscal_period_id, type: :integer
9
+ attribute :name, type: :string
10
+ attribute :description, type: :string
11
+ attribute :is_done, type: :boolean
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class History < Resource
8
+ attribute :type, type: :string
9
+ attribute :action, type: :string
10
+ attribute :entity_id, type: :integer
11
+ attribute :entity_name, type: :string
12
+ attribute :user_id, type: :integer
13
+ attribute :user_name, type: :string
14
+ attribute :date, type: :datetime
15
+ attribute :description, type: :string
16
+ attribute :changes, type: :json
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class InsuranceType < Resource
8
+ attribute :name, type: :string
9
+ attribute :code, type: :string
10
+ attribute :description, type: :string
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Journal < Resource
8
+ attribute :debit_id, type: :integer
9
+ attribute :debit_name, type: :string, readonly: true
10
+ attribute :credit_id, type: :integer
11
+ attribute :credit_name, type: :string, readonly: true
12
+ attribute :associate_id, type: :integer
13
+ attribute :associate_name, type: :string, readonly: true
14
+ attribute :tax_id, type: :integer
15
+ attribute :tax_name, type: :string, readonly: true
16
+ attribute :order_id, type: :integer, readonly: true
17
+ attribute :order_book_entry_id, type: :integer, readonly: true
18
+ attribute :salary_book_entry_id, type: :integer, readonly: true
19
+ attribute :statement_id, type: :integer, readonly: true
20
+ attribute :inventory_id, type: :integer, readonly: true
21
+ attribute :import_entry_id, type: :integer, readonly: true
22
+ attribute :type, type: :string, readonly: true
23
+ attribute :date_added, type: :date
24
+ attribute :title, type: :string
25
+ attribute :custom, type: :string
26
+ attribute :notes, type: :string
27
+ attribute :reference, type: :string
28
+ attribute :amount, type: :decimal
29
+ attribute :currency_id, type: :integer
30
+ attribute :currency_rate, type: :decimal
31
+ attribute :currency_code, type: :string, readonly: true
32
+ attribute :account_id, type: :integer
33
+ attribute :account_currency_id, type: :integer, readonly: true
34
+ attribute :account_class, type: :string, readonly: true
35
+ attribute :balance, type: :decimal, readonly: true
36
+ attribute :name_singular, type: :string, readonly: true
37
+ attribute :order_type, type: :string, readonly: true
38
+ attribute :items_count, type: :integer, readonly: true
39
+ attribute :recurrence, type: :string
40
+ attribute :start_date, type: :date
41
+ attribute :end_date, type: :date
42
+ attribute :days_before, type: :integer
43
+ attribute :notify_type, type: :string
44
+ attribute :notify_person_id, type: :integer
45
+ attribute :notify_user_id, type: :integer
46
+ attribute :notify_email, type: :string
47
+ attribute :attachment_count, type: :integer, readonly: true
48
+ attribute :allocation_count, type: :integer, readonly: true
49
+ attribute :cost_center_ids, type: :string
50
+ attribute :cost_center_numbers, type: :string, readonly: true
51
+ attribute :imported, type: :datetime, readonly: true
52
+ attribute :imported_by, type: :string, readonly: true
53
+ attribute :is_recurring, type: :boolean, readonly: true
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class JournalImport < Resource
8
+ attribute :account_id, type: :integer
9
+ attribute :account_name, type: :string, readonly: true
10
+ attribute :name, type: :string
11
+ attribute :date_start, type: :date
12
+ attribute :date_end, type: :date
13
+ attribute :total_entries, type: :integer, readonly: true
14
+ attribute :mapped_entries, type: :integer, readonly: true
15
+ attribute :booked_entries, type: :integer, readonly: true
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class JournalImportEntry < Resource
8
+ attribute :import_id, type: :integer
9
+ attribute :date, type: :date
10
+ attribute :amount, type: :decimal
11
+ attribute :description, type: :string
12
+ attribute :reference, type: :string
13
+ attribute :balance, type: :decimal
14
+ attribute :debit_id, type: :integer
15
+ attribute :credit_id, type: :integer
16
+ attribute :is_booked, type: :boolean, readonly: true
17
+ attribute :is_duplicate, type: :boolean, readonly: true
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Auto-generated loader for all models
4
+
5
+ require_relative "account"
6
+ require_relative "person"
7
+ require_relative "currency"
8
+ require_relative "tax"
9
+ require_relative "journal"
10
+ require_relative "order"
11
+ require_relative "fiscal_period"
12
+ require_relative "location"
13
+ require_relative "rounding"
14
+ require_relative "sequence_number"
15
+ require_relative "custom_field"
16
+ require_relative "file"
17
+ require_relative "article"
18
+ require_relative "asset"
19
+ require_relative "unit"
20
+ require_relative "category"
21
+ require_relative "text"
22
+ require_relative "report"
23
+ require_relative "setting"
24
+ require_relative "history"
25
+ require_relative "bank"
26
+ require_relative "cost_center"
27
+ require_relative "title"
28
+ require_relative "custom_field_group"
29
+ require_relative "order_book_entry"
30
+ require_relative "order_document"
31
+ require_relative "order_layout"
32
+ require_relative "order_payment"
33
+ require_relative "journal_import"
34
+ require_relative "journal_import_entry"
35
+ require_relative "fiscal_period_task"
36
+ require_relative "report_collection"
37
+ require_relative "report_element"
38
+ require_relative "salary_book_entry"
39
+ require_relative "salary_certificate"
40
+ require_relative "salary_document"
41
+ require_relative "salary_field"
42
+ require_relative "salary_layout"
43
+ require_relative "salary_payment"
44
+ require_relative "salary_setting"
45
+ require_relative "salary_statement"
46
+ require_relative "salary_status"
47
+ require_relative "salary_sum"
48
+ require_relative "salary_template"
49
+ require_relative "salary_type"
50
+ require_relative "insurance_type"
51
+ require_relative "certificate_document"
52
+ require_relative "certificate_template"
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Location < Resource
8
+ attribute :name, type: :string
9
+ attribute :address, type: :string
10
+ attribute :zip, type: :string
11
+ attribute :city, type: :string
12
+ attribute :country, type: :string
13
+ attribute :country_name, type: :string, readonly: true
14
+ attribute :logo_file_id, type: :integer
15
+ attribute :bic, type: :string
16
+ attribute :iban, type: :string
17
+ attribute :qr_iban, type: :string
18
+ attribute :vat_uid, type: :string
19
+ attribute :is_default, type: :boolean
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Order < Resource
8
+ attribute :category_id, type: :integer
9
+ attribute :category_name, type: :string, readonly: true
10
+ attribute :category_display, type: :string, readonly: true
11
+ attribute :associate_id, type: :integer
12
+ attribute :associate_name, type: :string, readonly: true
13
+ attribute :responsible_person_id, type: :integer
14
+ attribute :responsible_person_name, type: :string, readonly: true
15
+ attribute :type, type: :string
16
+ attribute :nr, type: :string
17
+ attribute :status, type: :string
18
+ attribute :status_name, type: :string, readonly: true
19
+ attribute :date, type: :date
20
+ attribute :due_date, type: :date
21
+ attribute :currency_id, type: :integer
22
+ attribute :currency_code, type: :string, readonly: true
23
+ attribute :currency_rate, type: :decimal
24
+ attribute :discount_percentage, type: :decimal
25
+ attribute :rounding_id, type: :integer
26
+ attribute :description, type: :string
27
+ attribute :header, type: :string
28
+ attribute :footer, type: :string
29
+ attribute :items, type: :json
30
+ attribute :custom, type: :string
31
+ attribute :notes, type: :string
32
+ attribute :total, type: :decimal, readonly: true
33
+ attribute :total_default_currency, type: :decimal, readonly: true
34
+ attribute :attachment_count, type: :integer, readonly: true
35
+ attribute :recurrence, type: :string
36
+ attribute :start_date, type: :date
37
+ attribute :end_date, type: :date
38
+ attribute :days_before, type: :integer
39
+ attribute :notify_type, type: :string
40
+ attribute :notify_person_id, type: :integer
41
+ attribute :notify_user_id, type: :integer
42
+ attribute :notify_email, type: :string
43
+ attribute :is_recurring, type: :boolean, readonly: true
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class OrderBookEntry < Resource
8
+ attribute :order_id, type: :integer
9
+ attribute :account_id, type: :integer
10
+ attribute :account_name, type: :string, readonly: true
11
+ attribute :tax_id, type: :integer
12
+ attribute :tax_name, type: :string, readonly: true
13
+ attribute :description, type: :string
14
+ attribute :amount, type: :decimal
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class OrderDocument < Resource
8
+ attribute :order_id, type: :integer
9
+ attribute :layout_id, type: :integer
10
+ attribute :name, type: :string
11
+ attribute :file_id, type: :integer, readonly: true
12
+ attribute :mime_type, type: :string, readonly: true
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class OrderLayout < Resource
8
+ attribute :type, type: :string
9
+ attribute :name, type: :string
10
+ attribute :page_size, type: :string
11
+ attribute :margin_top, type: :decimal
12
+ attribute :margin_bottom, type: :decimal
13
+ attribute :margin_left, type: :decimal
14
+ attribute :margin_right, type: :decimal
15
+ attribute :is_default, type: :boolean
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class OrderPayment < Resource
8
+ attribute :order_id, type: :integer
9
+ attribute :account_id, type: :integer
10
+ attribute :account_name, type: :string, readonly: true
11
+ attribute :date, type: :date
12
+ attribute :amount, type: :decimal
13
+ attribute :notes, type: :string
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Person < Resource
8
+ attribute :category_id, type: :integer
9
+ attribute :category_name, type: :string, readonly: true
10
+ attribute :category_display, type: :string, readonly: true
11
+ attribute :thumbnail_file_id, type: :integer
12
+ attribute :certificate_template_id, type: :integer
13
+ attribute :certificate_values, type: :string
14
+ attribute :title, type: :string, readonly: true
15
+ attribute :title_id, type: :integer
16
+ attribute :title_sentence, type: :string, readonly: true
17
+ attribute :gender, type: :string
18
+ attribute :gender_name, type: :string, readonly: true
19
+ attribute :nr, type: :string
20
+ attribute :name, type: :string, readonly: true
21
+ attribute :first_name, type: :string
22
+ attribute :last_name, type: :string
23
+ attribute :company, type: :string
24
+ attribute :position, type: :string
25
+ attribute :industry, type: :string
26
+ attribute :department, type: :string
27
+ attribute :language, type: :string
28
+ attribute :language_name, type: :string, readonly: true
29
+ attribute :iban, type: :string
30
+ attribute :bic, type: :string
31
+ attribute :vat_uid, type: :string
32
+ attribute :date_birth, type: :date
33
+ attribute :discount_percentage, type: :decimal
34
+ attribute :discount_inherited, type: :decimal, readonly: true
35
+ attribute :discount_effective, type: :decimal, readonly: true
36
+ attribute :notes, type: :string
37
+ attribute :email_work, type: :string
38
+ attribute :email_private, type: :string
39
+ attribute :phone_work, type: :string
40
+ attribute :phone_private, type: :string
41
+ attribute :mobile_work, type: :string
42
+ attribute :mobile_private, type: :string
43
+ attribute :url, type: :string
44
+ attribute :address, type: :string
45
+ attribute :zip, type: :string
46
+ attribute :city, type: :string
47
+ attribute :canton, type: :string
48
+ attribute :country, type: :string
49
+ attribute :country_name, type: :string, readonly: true
50
+ attribute :superior_id, type: :integer
51
+ attribute :superior_name, type: :string, readonly: true
52
+ attribute :color, type: :string
53
+ attribute :alt_name, type: :string
54
+ attribute :user_id, type: :integer
55
+ attribute :location_id, type: :integer
56
+ attribute :location_name, type: :string, readonly: true
57
+ attribute :ssn, type: :string
58
+ attribute :insurance_nr, type: :string
59
+ attribute :insurance_member_nr, type: :string
60
+ attribute :custom, type: :string
61
+ attribute :attachment_count, type: :integer, readonly: true
62
+ attribute :children_count, type: :integer, readonly: true
63
+ attribute :is_customer, type: :boolean
64
+ attribute :is_vendor, type: :boolean
65
+ attribute :is_employee, type: :boolean
66
+ attribute :is_insurance, type: :boolean
67
+ attribute :is_family, type: :boolean
68
+ attribute :is_auto_fill_responsible_person, type: :boolean
69
+ attribute :is_inactive, type: :boolean
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Report < Resource
8
+ attribute :name, type: :string
9
+ attribute :type, type: :string
10
+ attribute :data, type: :json
11
+ attribute :columns, type: :json
12
+ attribute :has_children, type: :boolean, readonly: true
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class ReportCollection < Resource
8
+ attribute :name, type: :string
9
+ attribute :fiscal_period_id, type: :integer
10
+ attribute :elements, type: :json
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class ReportElement < Resource
8
+ attribute :collection_id, type: :integer
9
+ attribute :report_id, type: :integer
10
+ attribute :name, type: :string
11
+ attribute :type, type: :string
12
+ attribute :params, type: :json
13
+ attribute :sequence, type: :integer
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class Rounding < Resource
8
+ attribute :name, type: :string
9
+ attribute :account_id, type: :integer
10
+ attribute :account_name, type: :string, readonly: true
11
+ attribute :mode, type: :string
12
+ attribute :value, type: :decimal
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryBookEntry < Resource
8
+ attribute :salary_id, type: :integer
9
+ attribute :statement_id, type: :integer
10
+ attribute :account_id, type: :integer
11
+ attribute :account_name, type: :string, readonly: true
12
+ attribute :description, type: :string
13
+ attribute :amount, type: :decimal
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryCertificate < Resource
8
+ attribute :person_id, type: :integer
9
+ attribute :person_name, type: :string, readonly: true
10
+ attribute :template_id, type: :integer
11
+ attribute :year, type: :integer
12
+ attribute :values, type: :json
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryDocument < Resource
8
+ attribute :salary_id, type: :integer
9
+ attribute :statement_id, type: :integer
10
+ attribute :layout_id, type: :integer
11
+ attribute :name, type: :string
12
+ attribute :file_id, type: :integer, readonly: true
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryField < Resource
8
+ attribute :type_id, type: :integer
9
+ attribute :name, type: :string
10
+ attribute :description, type: :string
11
+ attribute :calc_formula, type: :string
12
+ attribute :sequence, type: :integer
13
+ attribute :is_visible, type: :boolean
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryLayout < Resource
8
+ attribute :type, type: :string
9
+ attribute :name, type: :string
10
+ attribute :is_default, type: :boolean
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryPayment < Resource
8
+ attribute :statement_id, type: :integer
9
+ attribute :account_id, type: :integer
10
+ attribute :account_name, type: :string, readonly: true
11
+ attribute :date, type: :date
12
+ attribute :amount, type: :decimal
13
+ attribute :notes, type: :string
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalarySetting < Resource
8
+ attribute :name, type: :string
9
+ attribute :value, type: :string
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated from schema.yml. Do not edit manually.
4
+
5
+ module Cashctrl
6
+ module Models
7
+ class SalaryStatement < Resource
8
+ attribute :person_id, type: :integer
9
+ attribute :person_name, type: :string, readonly: true
10
+ attribute :period_start, type: :date
11
+ attribute :period_end, type: :date
12
+ attribute :status, type: :string
13
+ attribute :total_gross, type: :decimal, readonly: true
14
+ attribute :total_net, type: :decimal, readonly: true
15
+ end
16
+ end
17
+ end