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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f5e33c0c1782b7ba16b5d42a7e872ddf5554d1b64813f560d5350f33988df5f
4
- data.tar.gz: 52dff79084832533afb8bf28ef87acedfbbfbe64617e446b8f7559c55f69199c
3
+ metadata.gz: ba72cd3f8341076e138a00dfbea39dce6a9a1869a6c6da707255c38283afa93e
4
+ data.tar.gz: 692a7dd09012d7071812c042a6b7caa8cc52f1c8faf69a9878dcf409e5176a67
5
5
  SHA512:
6
- metadata.gz: b267106c9d2bab56544c15aaff1750f3c4d65f6e686f101f17b7e6704f96a3016b8b0cec9130fb475a1f35d2a8ef40267a6cfba8b3a725353d1786eaa3ecab2a
7
- data.tar.gz: 7b62caffd3f3ae53a464916e5532ade3d842e48ca12e5653c198ea5fdd5f5ffb9874aad4817cd5d466973bdd507fa5c3285bb424902aa72caa8f8e0efb55275e
6
+ metadata.gz: 35b222c10992e0d654c407e696a79e9a3ebbfcdfcf38fc573b8e7dfcbb13f4ba9ea47d8eb1e36bc3ffb5f88d6d7108d7cdd5f786dc978ebe751814939f278d39
7
+ data.tar.gz: a2428e233107a47379509b6548b3e7077b6a5f07278f40be1b6ddf13fd9d21eb9757128ffdf06abccdcea4ca3fc931cf7ede420b64c5486fb403e95c8ac5e6e3
data/CHANGELOG.md CHANGED
@@ -445,3 +445,7 @@
445
445
  ## v0.37.0
446
446
 
447
447
  * Added method to get invoice kind
448
+
449
+ ## v0.38.0
450
+
451
+ * Added method to get cash register period
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.get_invoice_kind(code)
254
- response = get_request("/invoice_kinds/#{code}")
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::InvoiceKind.new(result)
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
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.37.0"
2
+ VERSION = "0.38.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick