elmas 2.2.2 → 2.3.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.
- checksums.yaml +4 -4
- data/lib/elmas/resources/payment_condition.rb +23 -0
- data/lib/elmas/sanitizer.rb +0 -2
- data/lib/elmas/version.rb +2 -2
- 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: 635ac72f72746cb6497eeb2a6ec581fb8e7618e8
|
4
|
+
data.tar.gz: 63579562a14583b3bcf9c1fc7f8c8151667d75b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d2be5773f938dfb239a4cf7d6a7d33d355d1b536eed971065e7d32e48c9125f18728c236aa0bf07017f54bd7f0b09c459411fa7314b999f06dd932075e46c1b
|
7
|
+
data.tar.gz: 0917567a97ccee2d1d7aaa5c0a8623b4f40894b847f1798b2966002b2952f65f1fc4587c1cbf96f61ae30597b0809be2e9c7797ca4479211b13571a8d5fd52c4
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Elmas
|
2
|
+
class PaymentCondition
|
3
|
+
include Elmas::Resource
|
4
|
+
|
5
|
+
def base_path
|
6
|
+
"cashflow/PaymentConditions"
|
7
|
+
end
|
8
|
+
|
9
|
+
def mandatory_attributes
|
10
|
+
[:code]
|
11
|
+
end
|
12
|
+
|
13
|
+
# https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=CashflowPaymentConditions
|
14
|
+
def other_attributes
|
15
|
+
[
|
16
|
+
:created, :description, :discount_payment_days,
|
17
|
+
:discount_percentage, :payment_days, :payment_discount_type,
|
18
|
+
:payment_end_of_months, :payment_method, :percentage,
|
19
|
+
:VAT_calculation
|
20
|
+
]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/elmas/sanitizer.rb
CHANGED
@@ -19,7 +19,6 @@ module Elmas
|
|
19
19
|
# rubocop:disable Metrics/CyclomaticComplexity
|
20
20
|
# rubocop:disable Metrics/PerceivedComplexity
|
21
21
|
def sanitize_relationship(value)
|
22
|
-
# rubocop:disable Style/GuardClause
|
23
22
|
if value.is_a?(Elmas::Resource)
|
24
23
|
return value.id # Turn relation into ID
|
25
24
|
elsif value.is_a?(Array)
|
@@ -33,7 +32,6 @@ module Elmas
|
|
33
32
|
else
|
34
33
|
return value
|
35
34
|
end
|
36
|
-
# rubocop:enable Style/GuardClause
|
37
35
|
end
|
38
36
|
# rubocop:enable Metrics/CyclomaticComplexity
|
39
37
|
# rubocop:enable Metrics/PerceivedComplexity
|
data/lib/elmas/version.rb
CHANGED
data/lib/elmas.rb
CHANGED
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.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marthyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- lib/elmas/resources/journal.rb
|
263
263
|
- lib/elmas/resources/layout.rb
|
264
264
|
- lib/elmas/resources/mailbox.rb
|
265
|
+
- lib/elmas/resources/payment_condition.rb
|
265
266
|
- lib/elmas/resources/printed_sales_invoice.rb
|
266
267
|
- lib/elmas/resources/project.rb
|
267
268
|
- lib/elmas/resources/purchase_entry.rb
|