xsys 0.24.0 → 0.25.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 +0 -2
- data/lib/xsys/model/corporation_tax.rb +4 -4
- data/lib/xsys/model/corporation_taxes_calculation.rb +3 -3
- data/lib/xsys/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: 3634d88624b6bc02bc137ec07fdde739c06e4447
|
4
|
+
data.tar.gz: 731f87a4227823158a784d33f526369257356859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79a1ed6e801f8c141b782d0e53d4d14742167b2d2bf2341ebec7108afd17cc00571d043ce9fd86b2f82d071ba1a3df499f6803e211a6bfed3e271211de989de8
|
7
|
+
data.tar.gz: 26587c8a5bb26d8103fb9fc080492e18bd1268f5a9e4af757b2e54344d5c486e34aa69681b634a433d53a44e529997153efef9a0c883094d6db664c02b47eac1
|
data/CHANGELOG.md
CHANGED
data/lib/xsys/api.rb
CHANGED
@@ -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[
|
12
|
-
self.quotient = BigDecimal.new(attributes[
|
13
|
-
self.amount = BigDecimal.new(attributes[
|
14
|
-
self.use_default_value = 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']
|
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[
|
12
|
-
self.corporate_name = attributes[
|
13
|
-
self.taxes = 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) }
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_tax(tax_kind_code)
|
data/lib/xsys/version.rb
CHANGED