xsys 0.24.0 → 0.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15562f7ff2f0686dbf89cd04c9efab694f62debf
4
- data.tar.gz: 75ff3a3c1383a30ad8c994a7b37c80ca330ea69d
3
+ metadata.gz: 3634d88624b6bc02bc137ec07fdde739c06e4447
4
+ data.tar.gz: 731f87a4227823158a784d33f526369257356859
5
5
  SHA512:
6
- metadata.gz: 1bbc596cae28cddedd13d46419b9c8eb0a30c0f0a6a13e6dcfafe964f03d1bc0282effb587fbdb4e294d0daa1cfa65063810890e1fa7e070767c1d4ba1bf4f74
7
- data.tar.gz: aaf889796b5e5b088448a3b1f5c70901d6b742a522001673513c01d68d9530473fa1fc3b28714e492e8f84a455c69e99e092cbc0cc200171b88278b489202444
6
+ metadata.gz: 79a1ed6e801f8c141b782d0e53d4d14742167b2d2bf2341ebec7108afd17cc00571d043ce9fd86b2f82d071ba1a3df499f6803e211a6bfed3e271211de989de8
7
+ data.tar.gz: 26587c8a5bb26d8103fb9fc080492e18bd1268f5a9e4af757b2e54344d5c486e34aa69681b634a433d53a44e529997153efef9a0c883094d6db664c02b47eac1
@@ -401,3 +401,7 @@
401
401
  ## v0.24.0
402
402
 
403
403
  * Fixed syntax error corporation taxes
404
+
405
+ ## v0.26.0
406
+
407
+ * Fixed syntax error corporation taxes
@@ -227,8 +227,6 @@ module Xsys
227
227
  end
228
228
 
229
229
  def self.calculate_corporation_taxes(cuit, items)
230
- attrs =
231
-
232
230
  response = post_request('/corporations/taxes_calculation', {
233
231
  cuit: cuit,
234
232
  items: items.to_json
@@ -8,10 +8,10 @@ module Xsys
8
8
  attr_reader *attr_list
9
9
 
10
10
  def initialize(attributes={})
11
- self.tax_kind_code = attributes[:tax_kind_code]
12
- self.quotient = BigDecimal.new(attributes[:quotient])
13
- self.amount = BigDecimal.new(attributes[:amount])
14
- self.use_default_value = attributes[:use_default_value]
11
+ self.tax_kind_code = attributes['tax_kind_code']
12
+ self.quotient = BigDecimal.new(attributes['quotient'])
13
+ self.amount = BigDecimal.new(attributes['amount'])
14
+ self.use_default_value = attributes['use_default_value']
15
15
  end
16
16
 
17
17
  private
@@ -8,9 +8,9 @@ module Xsys
8
8
  attr_reader *attr_list
9
9
 
10
10
  def initialize(attributes={})
11
- self.cuit = attributes[:cuit]
12
- self.corporate_name = attributes[:corporate_name]
13
- self.taxes = attributes[:taxes].map { |tax_attrs| CorporationTax.new(tax_attrs) }
11
+ self.cuit = attributes['cuit']
12
+ self.corporate_name = attributes['corporate_name']
13
+ self.taxes = attributes['taxes'].map { |tax_attrs| CorporationTax.new(tax_attrs) }
14
14
  end
15
15
 
16
16
  def get_tax(tax_kind_code)
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.24.0"
2
+ VERSION = "0.25.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.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick