atol 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/atol/errors.rb +3 -1
- data/lib/atol/request/post_document/item/body.rb +2 -0
- data/lib/atol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0ff541b6a0a75a0f0389369f92a39fca0db4301
|
4
|
+
data.tar.gz: d3eb8d7e57ac97399f714faad701f110de417f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5424db538ad60b2eb9bb347c5e2022841998f162205086171c69d7efec095df465f39e14dc01ee30fbe4d58789c8cb076fca86fb9ea7a77a4515e66332faf4
|
7
|
+
data.tar.gz: 68c78330cc87bf04226781ec66f528b5233dda1a1a0b59dd70e7ec95cbd7e8342cc242813f1c290158556552cb63f714ddf4565286deedba536158fa522ea995
|
data/Gemfile.lock
CHANGED
data/lib/atol/errors.rb
CHANGED
@@ -24,6 +24,7 @@ module Atol
|
|
24
24
|
class StateExpiredTokenError < StandardError; end
|
25
25
|
class StateMissingUuidError < StandardError; end
|
26
26
|
class StateNotFoundError < StandardError; end
|
27
|
+
class ZeroItemQuantityError < StandardError; end
|
27
28
|
|
28
29
|
ERRORS = Hash[
|
29
30
|
1 => BadJSONError,
|
@@ -43,6 +44,7 @@ module Atol
|
|
43
44
|
15 => StateMissingUuidError,
|
44
45
|
16 => StateNotFoundError,
|
45
46
|
22 => GroupCodeToTokenError,
|
46
|
-
23 => IsNullExternalIdError
|
47
|
+
23 => IsNullExternalIdError,
|
48
|
+
-3804 => ZeroItemQuantityError
|
47
49
|
].freeze
|
48
50
|
end
|
data/lib/atol/version.rb
CHANGED