dynaccount 0.9.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 (74) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +36 -0
  4. data/Rakefile +28 -0
  5. data/lib/dynaccount.rb +104 -0
  6. data/lib/dynaccount/account.rb +11 -0
  7. data/lib/dynaccount/accounting.rb +11 -0
  8. data/lib/dynaccount/accounting_bank.rb +11 -0
  9. data/lib/dynaccount/action.rb +15 -0
  10. data/lib/dynaccount/bank.rb +11 -0
  11. data/lib/dynaccount/bank_recon.rb +11 -0
  12. data/lib/dynaccount/contact.rb +11 -0
  13. data/lib/dynaccount/contact_user.rb +11 -0
  14. data/lib/dynaccount/creditor.rb +11 -0
  15. data/lib/dynaccount/creditor_accounting_module.rb +11 -0
  16. data/lib/dynaccount/creditor_group.rb +11 -0
  17. data/lib/dynaccount/creditor_invoice.rb +11 -0
  18. data/lib/dynaccount/creditor_invoice_match.rb +11 -0
  19. data/lib/dynaccount/creditor_invoice_product.rb +11 -0
  20. data/lib/dynaccount/creditor_order.rb +11 -0
  21. data/lib/dynaccount/creditor_order_product.rb +11 -0
  22. data/lib/dynaccount/creditor_order_product_serialno.rb +11 -0
  23. data/lib/dynaccount/currency.rb +11 -0
  24. data/lib/dynaccount/data_voucher.rb +11 -0
  25. data/lib/dynaccount/debtor.rb +11 -0
  26. data/lib/dynaccount/debtor_accounting_module.rb +11 -0
  27. data/lib/dynaccount/debtor_creditnote.rb +11 -0
  28. data/lib/dynaccount/debtor_creditnote_product.rb +11 -0
  29. data/lib/dynaccount/debtor_creditnote_product_list.rb +11 -0
  30. data/lib/dynaccount/debtor_group.rb +11 -0
  31. data/lib/dynaccount/debtor_group_product_discount.rb +11 -0
  32. data/lib/dynaccount/debtor_group_product_group_discount.rb +11 -0
  33. data/lib/dynaccount/debtor_invoice.rb +11 -0
  34. data/lib/dynaccount/debtor_invoice_match.rb +11 -0
  35. data/lib/dynaccount/debtor_invoice_product.rb +11 -0
  36. data/lib/dynaccount/debtor_invoice_product_list.rb +11 -0
  37. data/lib/dynaccount/debtor_order.rb +11 -0
  38. data/lib/dynaccount/debtor_order_product.rb +11 -0
  39. data/lib/dynaccount/debtor_order_product_list.rb +11 -0
  40. data/lib/dynaccount/debtor_order_product_serialno.rb +11 -0
  41. data/lib/dynaccount/debtor_product_discount.rb +11 -0
  42. data/lib/dynaccount/debtor_product_group_discount.rb +11 -0
  43. data/lib/dynaccount/debtor_quote.rb +11 -0
  44. data/lib/dynaccount/debtor_quote_product.rb +11 -0
  45. data/lib/dynaccount/debtor_quote_product_list.rb +11 -0
  46. data/lib/dynaccount/debtor_reminder.rb +11 -0
  47. data/lib/dynaccount/debtor_subscription.rb +11 -0
  48. data/lib/dynaccount/debtor_subscription_group.rb +11 -0
  49. data/lib/dynaccount/debtor_subscription_group_product.rb +11 -0
  50. data/lib/dynaccount/debtor_subscription_group_product_list.rb +11 -0
  51. data/lib/dynaccount/debtor_subscription_product.rb +11 -0
  52. data/lib/dynaccount/debtor_subscription_product_list.rb +11 -0
  53. data/lib/dynaccount/dimension.rb +11 -0
  54. data/lib/dynaccount/draft.rb +11 -0
  55. data/lib/dynaccount/dynaccount_object.rb +53 -0
  56. data/lib/dynaccount/enclosure.rb +11 -0
  57. data/lib/dynaccount/followup.rb +11 -0
  58. data/lib/dynaccount/location.rb +11 -0
  59. data/lib/dynaccount/opportunity.rb +11 -0
  60. data/lib/dynaccount/payment.rb +11 -0
  61. data/lib/dynaccount/product.rb +11 -0
  62. data/lib/dynaccount/product_currency.rb +11 -0
  63. data/lib/dynaccount/product_group.rb +11 -0
  64. data/lib/dynaccount/product_list.rb +11 -0
  65. data/lib/dynaccount/product_list_product.rb +11 -0
  66. data/lib/dynaccount/product_supplier.rb +11 -0
  67. data/lib/dynaccount/stock_adjustment.rb +11 -0
  68. data/lib/dynaccount/unit.rb +11 -0
  69. data/lib/dynaccount/vatcode.rb +11 -0
  70. data/lib/dynaccount/version.rb +3 -0
  71. data/lib/dynaccount/year.rb +11 -0
  72. data/lib/dynaccount/year_period.rb +11 -0
  73. data/lib/tasks/dynaccount_tasks.rake +4 -0
  74. metadata +165 -0
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Followup < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :contact_id, :is_finished]
5
+ end
6
+
7
+ def self.api_path
8
+ 'followup'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Location < DynaccountObject
3
+ def self.ignore_put
4
+ [:id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'location'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Opportunity < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :contact_id, :time_last_followup, :time_next_followup, :time_start, :is_ended_time, :status]
5
+ end
6
+
7
+ def self.api_path
8
+ 'opportunity'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Payment < DynaccountObject
3
+ def self.ignore_put
4
+ [:id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'payment'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Product < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :block_id, :type, :product_group_id, :in_stock, :in_order, :in_supplier_order, :time_stock_change, :is_stocked, :profit_ratio, :price_cost]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class ProductCurrency < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :seq]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product_currency'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class ProductGroup < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :block_id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product_group'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class ProductList < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :price_sale]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product_list'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class ProductListProduct < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :block_id, :product_id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product_list_product'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class ProductSupplier < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :module_id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'product_supplier'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class StockAdjustment < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :product_id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'stock_adjustment'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Unit < DynaccountObject
3
+ def self.ignore_put
4
+ [:id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'unit'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Vatcode < DynaccountObject
3
+ def self.ignore_put
4
+ [:id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'vatcode'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module Dynaccount
2
+ VERSION = '0.9.0'.freeze
3
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class Year < DynaccountObject
3
+ def self.ignore_put
4
+ [:id, :is_closed, :time_start, :time_end, :enc_next_id_]
5
+ end
6
+
7
+ def self.api_path
8
+ 'year'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Dynaccount
2
+ class YearPeriod < DynaccountObject
3
+ def self.ignore_put
4
+ [:id]
5
+ end
6
+
7
+ def self.api_path
8
+ 'year_period'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :dynaccount do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dynaccount
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - Frederik Spang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: '1.8'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "<"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '1.8'
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.10'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.10'
47
+ - !ruby/object:Gem::Dependency
48
+ name: net-http-persistent
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '3'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '3'
61
+ description: The dynaccount gem is an module-based integration for Dynaccount, with
62
+ the classic ActiveRecord structure, find, all etc.
63
+ email:
64
+ - frederik@frederikspang.dk
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - MIT-LICENSE
70
+ - README.md
71
+ - Rakefile
72
+ - lib/dynaccount.rb
73
+ - lib/dynaccount/account.rb
74
+ - lib/dynaccount/accounting.rb
75
+ - lib/dynaccount/accounting_bank.rb
76
+ - lib/dynaccount/action.rb
77
+ - lib/dynaccount/bank.rb
78
+ - lib/dynaccount/bank_recon.rb
79
+ - lib/dynaccount/contact.rb
80
+ - lib/dynaccount/contact_user.rb
81
+ - lib/dynaccount/creditor.rb
82
+ - lib/dynaccount/creditor_accounting_module.rb
83
+ - lib/dynaccount/creditor_group.rb
84
+ - lib/dynaccount/creditor_invoice.rb
85
+ - lib/dynaccount/creditor_invoice_match.rb
86
+ - lib/dynaccount/creditor_invoice_product.rb
87
+ - lib/dynaccount/creditor_order.rb
88
+ - lib/dynaccount/creditor_order_product.rb
89
+ - lib/dynaccount/creditor_order_product_serialno.rb
90
+ - lib/dynaccount/currency.rb
91
+ - lib/dynaccount/data_voucher.rb
92
+ - lib/dynaccount/debtor.rb
93
+ - lib/dynaccount/debtor_accounting_module.rb
94
+ - lib/dynaccount/debtor_creditnote.rb
95
+ - lib/dynaccount/debtor_creditnote_product.rb
96
+ - lib/dynaccount/debtor_creditnote_product_list.rb
97
+ - lib/dynaccount/debtor_group.rb
98
+ - lib/dynaccount/debtor_group_product_discount.rb
99
+ - lib/dynaccount/debtor_group_product_group_discount.rb
100
+ - lib/dynaccount/debtor_invoice.rb
101
+ - lib/dynaccount/debtor_invoice_match.rb
102
+ - lib/dynaccount/debtor_invoice_product.rb
103
+ - lib/dynaccount/debtor_invoice_product_list.rb
104
+ - lib/dynaccount/debtor_order.rb
105
+ - lib/dynaccount/debtor_order_product.rb
106
+ - lib/dynaccount/debtor_order_product_list.rb
107
+ - lib/dynaccount/debtor_order_product_serialno.rb
108
+ - lib/dynaccount/debtor_product_discount.rb
109
+ - lib/dynaccount/debtor_product_group_discount.rb
110
+ - lib/dynaccount/debtor_quote.rb
111
+ - lib/dynaccount/debtor_quote_product.rb
112
+ - lib/dynaccount/debtor_quote_product_list.rb
113
+ - lib/dynaccount/debtor_reminder.rb
114
+ - lib/dynaccount/debtor_subscription.rb
115
+ - lib/dynaccount/debtor_subscription_group.rb
116
+ - lib/dynaccount/debtor_subscription_group_product.rb
117
+ - lib/dynaccount/debtor_subscription_group_product_list.rb
118
+ - lib/dynaccount/debtor_subscription_product.rb
119
+ - lib/dynaccount/debtor_subscription_product_list.rb
120
+ - lib/dynaccount/dimension.rb
121
+ - lib/dynaccount/draft.rb
122
+ - lib/dynaccount/dynaccount_object.rb
123
+ - lib/dynaccount/enclosure.rb
124
+ - lib/dynaccount/followup.rb
125
+ - lib/dynaccount/location.rb
126
+ - lib/dynaccount/opportunity.rb
127
+ - lib/dynaccount/payment.rb
128
+ - lib/dynaccount/product.rb
129
+ - lib/dynaccount/product_currency.rb
130
+ - lib/dynaccount/product_group.rb
131
+ - lib/dynaccount/product_list.rb
132
+ - lib/dynaccount/product_list_product.rb
133
+ - lib/dynaccount/product_supplier.rb
134
+ - lib/dynaccount/stock_adjustment.rb
135
+ - lib/dynaccount/unit.rb
136
+ - lib/dynaccount/vatcode.rb
137
+ - lib/dynaccount/version.rb
138
+ - lib/dynaccount/year.rb
139
+ - lib/dynaccount/year_period.rb
140
+ - lib/tasks/dynaccount_tasks.rake
141
+ homepage: https://dynaccount.com
142
+ licenses:
143
+ - MIT
144
+ metadata: {}
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubyforge_project:
161
+ rubygems_version: 2.5.2
162
+ signing_key:
163
+ specification_version: 4
164
+ summary: The dynaccount gem is an module-based integration for Dynaccount
165
+ test_files: []