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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0420f092dab8ff2df97c94eed7cbeaea688d393
4
- data.tar.gz: d5801ac028a0f25d1d0eb13ff3aa577c5e446944
3
+ metadata.gz: 71737a3f3e2f0e9d90a1f1816f7e5f54344927aa
4
+ data.tar.gz: 87a2626e71be182b8e9dcd3298d9cde389575a5f
5
5
  SHA512:
6
- metadata.gz: 16d7b38ab76b5316fead2a0e36e568aa61be3c69b15753043ca353629d6446f11409b7418eb431ef468e5d2ff6bba132f648d90115795616a7dbfb866321e64f
7
- data.tar.gz: de6077732a8ec86a28432d76d3206e9a1c872d4385002a466fa797746363c981e4650bacf81edb2a51513e10951ef84317e6bf34bebcf7f4f704bc8c7bb77801
6
+ metadata.gz: b28dcd6d710c644d20de49836a15bfa4254ef588da710ee9654711daa3abbb9ebbbe0a6b0a124377b33a5a911df4fd951db1fe5ce709d32fe431cbdf287d5978
7
+ data.tar.gz: e003e7bcad6733aa1575e8a9952b00ff585a3e33baa82a3606065ff095fccdc87a40acf1ce899d3930159e254ac3bc1e59c7fa902091c4ceb74e0a956e74fa8e
data/.travis.yml CHANGED
@@ -2,3 +2,10 @@ language: ruby
2
2
  rvm:
3
3
  - 2.3.1
4
4
  cache: bundler
5
+ notifications:
6
+ webhooks:
7
+ urls:
8
+ - https://webhooks.gitter.im/e/fe18055a45cdf1a5ecae
9
+ on_success: change
10
+ on_failure: always
11
+ on_start: never
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
  [![Build Status](https://travis-ci.org/exactonline/exactonline-api-ruby-client.svg?branch=master)](https://travis-ci.org/exactonline/exactonline-api-ruby-client)
2
2
  [![Code Climate](https://codeclimate.com/github/exactonline/exactonline-api-ruby-client/badges/gpa.svg)](https://codeclimate.com/github/exactonline/exactonline-api-ruby-client)
3
3
  [![Gem Version](https://badge.fury.io/rb/elmas.svg)](http://badge.fury.io/rb/elmas)
4
+ [![Join the chat at https://gitter.im/exactonline/exactonline-api-ruby-client](https://badges.gitter.im/exactonline/exactonline-api-ruby-client.svg)](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
@@ -2,7 +2,7 @@ module Elmas
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  class << self
8
8
  def to_s
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.2
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: 2016-10-20 00:00:00.000000000 Z
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