economic-rest 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 278962b344fb0863870814da49a72d359c3db946e2a391e4a7cc8e02a0af4663
4
- data.tar.gz: 3bdd8ebd9455c297fd2a8f426c7d39aa1b7906f584de8055e32be3439ef538ef
3
+ metadata.gz: d725fc6ea433dd772584081b4e7880d395b732f84ee5ef5c7aafe9cef6f52236
4
+ data.tar.gz: bfc023ee2ac0b131d64662dba0b8859d687432cb37c9636d7cd66bfdb2401597
5
5
  SHA512:
6
- metadata.gz: 13b95c8dae49a0f77c9aead2a101366a60f5c6bd388996b45a6caa8ff715f922ba5fde9c259fd2a7f3579d6ec165f0e772d4430884d58cdd6a999a1a4d37cfe2
7
- data.tar.gz: 29c4391f5aa1d187753a8297a9455e43860e94f5b91860076a7fb8e4226b1f8e980a6deacf94114eb14ff5df83ccc2a87213ee7f32f63e6fb64e512a7aebe763
6
+ metadata.gz: f68d582a5e3118e7a9a56ec9302f993f8fabde03220e70782aa9cc200664eb586e12151addf44fdd474ccf59bb907843f3471f63ef31ca0158f03cc585c97fbc
7
+ data.tar.gz: cc97a9ed72046933f76bdff0624a119197a1697e0b17e8c8edcad434dc84aa7d30ef74a43d6450af985ff7d08130270f573a18370d29ef88e1eb70968f88182e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- economic-rest (0.6.0)
4
+ economic-rest (0.6.1)
5
5
  activesupport
6
6
  rest-client
7
7
  savon
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.3.1)
12
+ activesupport (6.1.4)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
@@ -23,7 +23,7 @@ GEM
23
23
  ast (2.4.0)
24
24
  awesome_print (1.8.0)
25
25
  builder (3.2.4)
26
- concurrent-ruby (1.1.8)
26
+ concurrent-ruby (1.1.9)
27
27
  coveralls (0.8.23)
28
28
  json (>= 1.8, < 3)
29
29
  simplecov (~> 0.16.1)
@@ -40,7 +40,7 @@ GEM
40
40
  builder (>= 2.1.2)
41
41
  hashdiff (0.3.8)
42
42
  http-accept (1.7.0)
43
- http-cookie (1.0.3)
43
+ http-cookie (1.0.4)
44
44
  domain_name (~> 0.5)
45
45
  httpi (2.4.5)
46
46
  rack
@@ -57,12 +57,12 @@ GEM
57
57
  mime-types (3.3.1)
58
58
  mime-types-data (~> 3.2015)
59
59
  mime-types-data (3.2021.0225)
60
- mini_portile2 (2.5.0)
60
+ mini_portile2 (2.5.3)
61
61
  minitest (5.11.3)
62
62
  mocha (1.9.0)
63
63
  metaclass (~> 0.0.1)
64
64
  netrc (0.11.0)
65
- nokogiri (1.11.3)
65
+ nokogiri (1.11.7)
66
66
  mini_portile2 (~> 2.5.0)
67
67
  racc (~> 1.4)
68
68
  nori (2.6.0)
@@ -1,5 +1,17 @@
1
1
  module Economic
2
2
  class Account < Base
3
3
  field :accountNumber, id: true
4
+ field :accountType
5
+ field :balance
6
+ field :barred
7
+ field :blockDirectEntries
8
+ field :debitCredit
9
+ field :draftBalance
10
+ field :name
11
+
12
+ relation :contraAccount, fields: [:accountNumber]
13
+ relation :accountsSummed, fields: [:fromAccount, :toAccount], multiple: true
14
+ relation :totalFromAccount, fields: [:accountNumber]
15
+ relation :vatAccount, fields: [:vatCode]
4
16
  end
5
17
  end
@@ -0,0 +1,4 @@
1
+ module Economic
2
+ class AccountRepo < Economic::BaseRepo
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Economic
2
+ class AccountsSummed < Base
3
+ field :toAccount
4
+ field :fromAccount
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Economic
2
+ class ContraAccount < Base
3
+ field :accountNumber, id: true
4
+ end
5
+ end
data/lib/economic/rest.rb CHANGED
@@ -97,6 +97,11 @@ require "economic/distribution"
97
97
  require "economic/departmental_distribution_repo"
98
98
 
99
99
  require "economic/account"
100
+ require "economic/account_repo"
101
+ require "economic/accounts_summed"
102
+ require "economic/contra_account"
103
+ require "economic/total_from_account"
104
+ require "economic/vat_account"
100
105
 
101
106
  module Economic
102
107
  class Demo
@@ -1,5 +1,5 @@
1
1
  module Economic
2
2
  module Rest
3
- VERSION = "0.6.0".freeze
3
+ VERSION = "0.6.1".freeze
4
4
  end
5
5
  end
@@ -0,0 +1,5 @@
1
+ module Economic
2
+ class TotalFromAccount < Base
3
+ field :accountNumber, id: true
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Economic
2
+ class VatAccount < Base
3
+ field :accountNumber, id: true
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: economic-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Klogborg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2021-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,13 +225,16 @@ files:
225
225
  - bin/setup
226
226
  - economic-rest.gemspec
227
227
  - lib/economic/account.rb
228
+ - lib/economic/account_repo.rb
228
229
  - lib/economic/accounting_year.rb
229
230
  - lib/economic/accounting_year_repo.rb
231
+ - lib/economic/accounts_summed.rb
230
232
  - lib/economic/attention.rb
231
233
  - lib/economic/base.rb
232
234
  - lib/economic/base_repo.rb
233
235
  - lib/economic/company.rb
234
236
  - lib/economic/concerns/soap_methods.rb
237
+ - lib/economic/contra_account.rb
235
238
  - lib/economic/cost_account.rb
236
239
  - lib/economic/currency.rb
237
240
  - lib/economic/customer.rb
@@ -296,9 +299,11 @@ files:
296
299
  - lib/economic/supplier_group.rb
297
300
  - lib/economic/supplier_group_repo.rb
298
301
  - lib/economic/supplier_repo.rb
302
+ - lib/economic/total_from_account.rb
299
303
  - lib/economic/unit.rb
300
304
  - lib/economic/unit_repo.rb
301
305
  - lib/economic/user.rb
306
+ - lib/economic/vat_account.rb
302
307
  - lib/economic/vat_type.rb
303
308
  - lib/economic/vat_type_repo.rb
304
309
  - lib/economic/vat_zone.rb
@@ -324,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
329
  - !ruby/object:Gem::Version
325
330
  version: '0'
326
331
  requirements: []
327
- rubygems_version: 3.1.2
332
+ rubygems_version: 3.0.3
328
333
  signing_key:
329
334
  specification_version: 4
330
335
  summary: Ruby wrapper for the e-conomic REST API, that aims at making working with