xsys 0.37.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xsys/api.rb +13 -3
- data/lib/xsys/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba72cd3f8341076e138a00dfbea39dce6a9a1869a6c6da707255c38283afa93e
|
4
|
+
data.tar.gz: 692a7dd09012d7071812c042a6b7caa8cc52f1c8faf69a9878dcf409e5176a67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b222c10992e0d654c407e696a79e9a3ebbfcdfcf38fc573b8e7dfcbb13f4ba9ea47d8eb1e36bc3ffb5f88d6d7108d7cdd5f786dc978ebe751814939f278d39
|
7
|
+
data.tar.gz: a2428e233107a47379509b6548b3e7077b6a5f07278f40be1b6ddf13fd9d21eb9757128ffdf06abccdcea4ca3fc931cf7ede420b64c5486fb403e95c8ac5e6e3
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/api.rb
CHANGED
@@ -250,13 +250,13 @@ module Xsys
|
|
250
250
|
response[:body].map { |x| Model::CashRegisterPeriod.new(x) }
|
251
251
|
end
|
252
252
|
|
253
|
-
def self.
|
254
|
-
response = get_request("/
|
253
|
+
def self.get_cash_register_period(code)
|
254
|
+
response = get_request("/cash_register_period/#{code}")
|
255
255
|
|
256
256
|
if result.blank?
|
257
257
|
nil
|
258
258
|
else
|
259
|
-
Model::
|
259
|
+
Model::CashRegisterPeriod.new(result)
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
@@ -265,6 +265,16 @@ module Xsys
|
|
265
265
|
response[:body].map { |x| Model::InvoiceKind.new(x) }
|
266
266
|
end
|
267
267
|
|
268
|
+
def self.get_invoice_kind(code)
|
269
|
+
response = get_request("/invoice_kinds/#{code}")
|
270
|
+
|
271
|
+
if result.blank?
|
272
|
+
nil
|
273
|
+
else
|
274
|
+
Model::InvoiceKind.new(result)
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
268
278
|
private
|
269
279
|
|
270
280
|
def self.get_request(action, params={}, headers={})
|
data/lib/xsys/version.rb
CHANGED