elmas 2.3.2 → 2.3.3
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.
- checksums.yaml +4 -4
- data/.travis.yml +7 -0
- data/Changelog.md +14 -0
- data/README.md +1 -0
- data/lib/elmas/resources/bank_account.rb +38 -0
- data/lib/elmas/version.rb +1 -1
- data/lib/elmas.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71737a3f3e2f0e9d90a1f1816f7e5f54344927aa
|
4
|
+
data.tar.gz: 87a2626e71be182b8e9dcd3298d9cde389575a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28dcd6d710c644d20de49836a15bfa4254ef588da710ee9654711daa3abbb9ebbbe0a6b0a124377b33a5a911df4fd951db1fe5ce709d32fe431cbdf287d5978
|
7
|
+
data.tar.gz: e003e7bcad6733aa1575e8a9952b00ff585a3e33baa82a3606065ff095fccdc87a40acf1ce899d3930159e254ac3bc1e59c7fa902091c4ceb74e0a956e74fa8e
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
+
## 2.3.3
|
2
|
+
|
3
|
+
- Add bank accounts resource
|
4
|
+
|
5
|
+
## 2.3.2
|
6
|
+
|
7
|
+
- Fix ruby_dep dependency
|
8
|
+
- Add SaleItemPrices Resource
|
9
|
+
- Add some missing attributes, thanks @Dahie and @Korstiaan
|
10
|
+
- Make it easier to setup more diverse exact requests
|
11
|
+
These changes make the requests to exact slightly more flexible to configure.
|
12
|
+
This is useful to reuse the Request class also connecting to the XML-API of exact. Also thanks to @Dahie (f7d3e6d7481544ef9148f52175bc1a1d31a16e8e)
|
13
|
+
|
1
14
|
## 2.3.1
|
2
15
|
|
3
16
|
- Fix typo in bank entry
|
4
17
|
- Add GL_account to invoice line
|
5
18
|
|
19
|
+
|
6
20
|
## 2.3.0
|
7
21
|
|
8
22
|
- add PaymentCondition resource (fb072e97394bdefd499d432336f7303d4befc4b0)
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
[](https://travis-ci.org/exactonline/exactonline-api-ruby-client)
|
2
2
|
[](https://codeclimate.com/github/exactonline/exactonline-api-ruby-client)
|
3
3
|
[](http://badge.fury.io/rb/elmas)
|
4
|
+
[](https://gitter.im/exactonline/exactonline-api-ruby-client?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
5
|
|
5
6
|
# Elmas
|
6
7
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Elmas
|
2
|
+
class BankAccount
|
3
|
+
# An account needs a name
|
4
|
+
include Elmas::Resource
|
5
|
+
|
6
|
+
def valid_actions
|
7
|
+
[:get]
|
8
|
+
end
|
9
|
+
|
10
|
+
def base_path
|
11
|
+
"crm/BankAccounts"
|
12
|
+
end
|
13
|
+
|
14
|
+
def mandatory_attributes
|
15
|
+
[:account]
|
16
|
+
end
|
17
|
+
|
18
|
+
# https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=CRMAccounts
|
19
|
+
def other_attributes # rubocop:disable Metrics/MethodLength
|
20
|
+
[
|
21
|
+
:id,
|
22
|
+
:account,
|
23
|
+
:account_name,
|
24
|
+
:bank,
|
25
|
+
:bank_account,
|
26
|
+
:bank_description,
|
27
|
+
:bank_name,
|
28
|
+
:BIC_code,
|
29
|
+
:description,
|
30
|
+
:division,
|
31
|
+
:format,
|
32
|
+
:IBAN,
|
33
|
+
:type,
|
34
|
+
:type_description
|
35
|
+
]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/elmas/version.rb
CHANGED
data/lib/elmas.rb
CHANGED
@@ -13,6 +13,7 @@ require "elmas/resources/shared_sales_attributes"
|
|
13
13
|
require "elmas/resources/base_entry_line"
|
14
14
|
require "elmas/resources/bank_entry"
|
15
15
|
require "elmas/resources/bank_entry_line"
|
16
|
+
require "elmas/resources/bank_account"
|
16
17
|
require "elmas/resources/contact"
|
17
18
|
require "elmas/resources/sales_invoice"
|
18
19
|
require "elmas/resources/sales_invoice_line"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elmas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marthyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -275,6 +275,7 @@ files:
|
|
275
275
|
- lib/elmas/resource.rb
|
276
276
|
- lib/elmas/resources/account.rb
|
277
277
|
- lib/elmas/resources/aging_receivables_list.rb
|
278
|
+
- lib/elmas/resources/bank_account.rb
|
278
279
|
- lib/elmas/resources/bank_entry.rb
|
279
280
|
- lib/elmas/resources/bank_entry_line.rb
|
280
281
|
- lib/elmas/resources/base_entry_line.rb
|