fortnox-api 0.6.1 → 0.6.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 790f4fbabb42b6455b84fac371b7d0273432c65c
|
4
|
+
data.tar.gz: 81802b99dcd1d93af3ca69c774967271db96f318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd2300b9cabe6ddc2e9ec16d767dc6e2c8e078078e7deacca457c003b6049f9f9d46a259b537aaafadbcd08b80d8712a8ecb7ab2ac7fa7e328b54c0318ec5a9f
|
7
|
+
data.tar.gz: bb686131fa2559c04b0e3b4a6036ab1ff912ff261aaa4eeb891dae57eb04f87a653b3e598e6d4bb48a2b8b1ddd9a63912fd303aca13b2f09cd94ba338f8fff39
|
@@ -20,7 +20,7 @@ module Fortnox
|
|
20
20
|
attribute :cost_center, Types::Nullable::String
|
21
21
|
|
22
22
|
# DeliveredQuantity Delivered quantity. 14 digits
|
23
|
-
attribute :delivered_quantity, Types::Sized::Float[
|
23
|
+
attribute :delivered_quantity, Types::Sized::Float[-9_999_999_999_999.9, 9_999_999_999_999.9]
|
24
24
|
|
25
25
|
# Description Description Row description. 50 characters
|
26
26
|
attribute :description, Types::Sized::String[50]
|
data/lib/fortnox/api/version.rb
CHANGED
@@ -6,12 +6,20 @@ shared_examples_for 'DocumentRow' do |valid_hash|
|
|
6
6
|
it { is_expected.to have_sized_string(:article_number, 50, valid_hash) }
|
7
7
|
it { is_expected.to have_sized_string(:description, 50, valid_hash) }
|
8
8
|
|
9
|
-
it { is_expected.to have_sized_float(:delivered_quantity, 0.0, 9_999_999_999_999.9, valid_hash) }
|
10
|
-
it { is_expected.to have_sized_float(:price, 0.0, 99_999_999_999.9, valid_hash) }
|
11
|
-
|
12
9
|
it { is_expected.to have_discount_type(:discount_type, valid_hash) }
|
13
10
|
|
14
11
|
it { is_expected.to have_sized_integer(:housework_hours_to_report, 0, 99_999, valid_hash) }
|
15
12
|
|
16
13
|
it { is_expected.to have_housework_type(:housework_type, valid_hash) }
|
14
|
+
|
15
|
+
it { is_expected.to have_sized_float(:price, 0.0, 99_999_999_999.9, valid_hash) }
|
16
|
+
|
17
|
+
it do
|
18
|
+
is_expected.to have_sized_float(
|
19
|
+
:delivered_quantity,
|
20
|
+
-9_999_999_999_999.9,
|
21
|
+
9_999_999_999_999.9,
|
22
|
+
valid_hash
|
23
|
+
)
|
24
|
+
end
|
17
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fortnox-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Schubert Erlandsson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-03-
|
13
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dry-struct
|