taxamo-ns 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/taxamo/models/additionalcurrencies.rb +1 -1
- data/lib/taxamo/models/additionalcurrency.rb +6 -6
- data/lib/taxamo/models/bycountry.rb +4 -4
- data/lib/taxamo/models/bystatus.rb +2 -2
- data/lib/taxamo/models/bytaxationtype.rb +5 -5
- data/lib/taxamo/models/c.rb +4 -4
- data/lib/taxamo/models/calculatesimpletaxout.rb +3 -3
- data/lib/taxamo/models/calculatetaxin.rb +1 -1
- data/lib/taxamo/models/calculatetaxlocationout.rb +8 -8
- data/lib/taxamo/models/calculatetaxout.rb +3 -3
- data/lib/taxamo/models/canceltransactionout.rb +1 -1
- data/lib/taxamo/models/capturepaymentout.rb +1 -1
- data/lib/taxamo/models/confirmtransactionin.rb +1 -1
- data/lib/taxamo/models/confirmtransactionout.rb +3 -3
- data/lib/taxamo/models/countries.rb +11 -11
- data/lib/taxamo/models/country.rb +12 -12
- data/lib/taxamo/models/countryschema.rb +12 -12
- data/lib/taxamo/models/createpaymentin.rb +3 -3
- data/lib/taxamo/models/createpaymentout.rb +1 -1
- data/lib/taxamo/models/createrefundin.rb +5 -5
- data/lib/taxamo/models/createrefundout.rb +4 -4
- data/lib/taxamo/models/createsmstokenin.rb +2 -2
- data/lib/taxamo/models/createsmstokenout.rb +1 -1
- data/lib/taxamo/models/createtransactionin.rb +2 -2
- data/lib/taxamo/models/createtransactionout.rb +3 -3
- data/lib/taxamo/models/currencyschema.rb +5 -5
- data/lib/taxamo/models/customfields.rb +2 -2
- data/lib/taxamo/models/emailinvoicein.rb +1 -1
- data/lib/taxamo/models/emailinvoiceout.rb +1 -1
- data/lib/taxamo/models/emailrefundin.rb +1 -1
- data/lib/taxamo/models/emailrefundout.rb +1 -1
- data/lib/taxamo/models/evidence.rb +11 -11
- data/lib/taxamo/models/evidenceschema.rb +4 -4
- data/lib/taxamo/models/getcountriesdictout.rb +1 -1
- data/lib/taxamo/models/getcurrenciesdictout.rb +1 -1
- data/lib/taxamo/models/getdailysettlementstatsout.rb +1 -1
- data/lib/taxamo/models/getdetailedrefundsout.rb +1 -1
- data/lib/taxamo/models/getdomesticsummaryreportout.rb +13 -13
- data/lib/taxamo/models/geteuviesreportout.rb +4 -4
- data/lib/taxamo/models/getproducttypesdictout.rb +1 -1
- data/lib/taxamo/models/getrefundsout.rb +1 -1
- data/lib/taxamo/models/getsettlementout.rb +5 -5
- data/lib/taxamo/models/getsettlementstatsbycountryout.rb +1 -1
- data/lib/taxamo/models/getsettlementstatsbytaxationtypeout.rb +1 -1
- data/lib/taxamo/models/getsettlementsummaryout.rb +1 -1
- data/lib/taxamo/models/gettransactionout.rb +3 -3
- data/lib/taxamo/models/gettransactionsstatsbycountryout.rb +1 -1
- data/lib/taxamo/models/gettransactionsstatsout.rb +1 -1
- data/lib/taxamo/models/inputtransaction.rb +32 -32
- data/lib/taxamo/models/inputtransactionline.rb +17 -17
- data/lib/taxamo/models/inputtransactionupdate.rb +32 -32
- data/lib/taxamo/models/invoiceaddress.rb +8 -8
- data/lib/taxamo/models/listpaymentsout.rb +1 -1
- data/lib/taxamo/models/listrefundsout.rb +1 -1
- data/lib/taxamo/models/listtransactionsout.rb +1 -1
- data/lib/taxamo/models/locategivenipout.rb +3 -3
- data/lib/taxamo/models/locatemyipout.rb +3 -3
- data/lib/taxamo/models/n.rb +4 -4
- data/lib/taxamo/models/payments.rb +3 -3
- data/lib/taxamo/models/producttypeschema.rb +1 -1
- data/lib/taxamo/models/refunds.rb +10 -10
- data/lib/taxamo/models/report.rb +9 -9
- data/lib/taxamo/models/settlementdailystatsschema.rb +9 -9
- data/lib/taxamo/models/storagerequiredfields.rb +1 -1
- data/lib/taxamo/models/summary.rb +8 -8
- data/lib/taxamo/models/taxdataschema.rb +1 -1
- data/lib/taxamo/models/taxrequiredfields.rb +1 -1
- data/lib/taxamo/models/transaction.rb +54 -54
- data/lib/taxamo/models/transactionlines.rb +23 -23
- data/lib/taxamo/models/transactions.rb +54 -54
- data/lib/taxamo/models/unconfirmtransactionin.rb +1 -1
- data/lib/taxamo/models/unconfirmtransactionout.rb +3 -3
- data/lib/taxamo/models/updatetransactionin.rb +1 -1
- data/lib/taxamo/models/updatetransactionout.rb +3 -3
- data/lib/taxamo/models/ustaxexemptioncertificatedetailsschema.rb +16 -16
- data/lib/taxamo/models/ustaxexemptioncertificateschema.rb +2 -2
- data/lib/taxamo/models/ustaxexemptstate.rb +3 -3
- data/lib/taxamo/models/ustaxid.rb +3 -3
- data/lib/taxamo/models/validatetaxnumberout.rb +4 -4
- data/lib/taxamo/models/verifysmstokenout.rb +1 -1
- data/lib/taxamo/version.rb +1 -1
- data/test/taxamo/tax_test.rb +5 -1
- metadata +2 -2
@@ -25,7 +25,7 @@ class UnconfirmTransactionIn
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["transaction"].nil?
|
29
29
|
@transaction = InputTransactionUpdate.new(attributes["transaction"])
|
30
30
|
|
31
31
|
end
|
@@ -27,16 +27,16 @@ class UnconfirmTransactionOut
|
|
27
27
|
def initialize(attributes = {})
|
28
28
|
return if attributes.empty?
|
29
29
|
# Morph attribute keys into undescored rubyish style
|
30
|
-
|
30
|
+
unless attributes["transaction"].nil?
|
31
31
|
@transaction = Transaction.new(attributes["transaction"])
|
32
32
|
|
33
33
|
end
|
34
|
-
|
34
|
+
unless attributes["tax_required_fields"].nil?
|
35
35
|
if (value = attributes["tax_required_fields"]).is_a?(Array)
|
36
36
|
@tax_required_fields = value.map{ |v| TaxRequiredFields.new(v) }
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
39
|
+
unless attributes["storage_required_fields"].nil?
|
40
40
|
if (value = attributes["storage_required_fields"]).is_a?(Array)
|
41
41
|
@storage_required_fields = value.map{ |v| StorageRequiredFields.new(v) }
|
42
42
|
end
|
@@ -25,7 +25,7 @@ class UpdateTransactionIn
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["transaction"].nil?
|
29
29
|
@transaction = Transaction.new(attributes["transaction"])
|
30
30
|
|
31
31
|
end
|
@@ -27,16 +27,16 @@ class UpdateTransactionOut
|
|
27
27
|
def initialize(attributes = {})
|
28
28
|
return if attributes.empty?
|
29
29
|
# Morph attribute keys into undescored rubyish style
|
30
|
-
|
30
|
+
unless attributes["transaction"].nil?
|
31
31
|
@transaction = Transaction.new(attributes["transaction"])
|
32
32
|
|
33
33
|
end
|
34
|
-
|
34
|
+
unless attributes["tax_required_fields"].nil?
|
35
35
|
if (value = attributes["tax_required_fields"]).is_a?(Array)
|
36
36
|
@tax_required_fields = value.map{ |v| TaxRequiredFields.new(v) }
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
39
|
+
unless attributes["storage_required_fields"].nil?
|
40
40
|
if (value = attributes["storage_required_fields"]).is_a?(Array)
|
41
41
|
@storage_required_fields = value.map{ |v| StorageRequiredFields.new(v) }
|
42
42
|
end
|
@@ -40,68 +40,68 @@ class UsTaxExemptionCertificateDetailsSchema
|
|
40
40
|
def initialize(attributes = {})
|
41
41
|
return if attributes.empty?
|
42
42
|
# Morph attribute keys into undescored rubyish style
|
43
|
-
|
43
|
+
unless attributes["single_purchase_order_identifier"].nil?
|
44
44
|
@single_purchase_order_identifier = attributes["single_purchase_order_identifier"]
|
45
45
|
|
46
46
|
end
|
47
|
-
|
47
|
+
unless attributes["purchaser_business_type"].nil?
|
48
48
|
@purchaser_business_type = attributes["purchaser_business_type"]
|
49
49
|
|
50
50
|
end
|
51
|
-
|
51
|
+
unless attributes["purchaser_exemption_reason_value"].nil?
|
52
52
|
@purchaser_exemption_reason_value = attributes["purchaser_exemption_reason_value"]
|
53
53
|
|
54
54
|
end
|
55
|
-
|
55
|
+
unless attributes["purchaser_state"].nil?
|
56
56
|
@purchaser_state = attributes["purchaser_state"]
|
57
57
|
|
58
58
|
end
|
59
|
-
|
59
|
+
unless attributes["purchaser_zip"].nil?
|
60
60
|
@purchaser_zip = attributes["purchaser_zip"]
|
61
61
|
|
62
62
|
end
|
63
|
-
|
63
|
+
unless attributes["purchaser_city"].nil?
|
64
64
|
@purchaser_city = attributes["purchaser_city"]
|
65
65
|
|
66
66
|
end
|
67
|
-
|
67
|
+
unless attributes["purchaser_last_name"].nil?
|
68
68
|
@purchaser_last_name = attributes["purchaser_last_name"]
|
69
69
|
|
70
70
|
end
|
71
|
-
|
71
|
+
unless attributes["purchaser_exemption_reason"].nil?
|
72
72
|
@purchaser_exemption_reason = attributes["purchaser_exemption_reason"]
|
73
73
|
|
74
74
|
end
|
75
|
-
|
75
|
+
unless attributes["single_purchase"].nil?
|
76
76
|
@single_purchase = attributes["single_purchase"]
|
77
77
|
|
78
78
|
end
|
79
|
-
|
79
|
+
unless attributes["purchaser_tax_id"].nil?
|
80
80
|
@purchaser_tax_id = UsTaxId.new(attributes["purchaser_tax_id"])
|
81
81
|
|
82
82
|
end
|
83
|
-
|
83
|
+
unless attributes["purchaser_address2"].nil?
|
84
84
|
@purchaser_address2 = attributes["purchaser_address2"]
|
85
85
|
|
86
86
|
end
|
87
|
-
|
87
|
+
unless attributes["purchaser_address1"].nil?
|
88
88
|
@purchaser_address1 = attributes["purchaser_address1"]
|
89
89
|
|
90
90
|
end
|
91
|
-
|
91
|
+
unless attributes["purchaser_business_type_other_value"].nil?
|
92
92
|
@purchaser_business_type_other_value = attributes["purchaser_business_type_other_value"]
|
93
93
|
|
94
94
|
end
|
95
|
-
|
95
|
+
unless attributes["purchaser_first_name"].nil?
|
96
96
|
@purchaser_first_name = attributes["purchaser_first_name"]
|
97
97
|
|
98
98
|
end
|
99
|
-
|
99
|
+
unless attributes["exempt_states"].nil?
|
100
100
|
if (value = attributes["exempt_states"]).is_a?(Array)
|
101
101
|
@exempt_states = value.map{ |v| UsTaxExemptState.new(v) }
|
102
102
|
end
|
103
103
|
end
|
104
|
-
|
104
|
+
unless attributes["purchaser_title"].nil?
|
105
105
|
@purchaser_title = attributes["purchaser_title"]
|
106
106
|
|
107
107
|
end
|
@@ -26,11 +26,11 @@ class UsTaxExemptionCertificateSchema
|
|
26
26
|
def initialize(attributes = {})
|
27
27
|
return if attributes.empty?
|
28
28
|
# Morph attribute keys into undescored rubyish style
|
29
|
-
|
29
|
+
unless attributes["certificate_id"].nil?
|
30
30
|
@certificate_id = attributes["certificate_id"]
|
31
31
|
|
32
32
|
end
|
33
|
-
|
33
|
+
unless attributes["detail"].nil?
|
34
34
|
@detail = UsTaxExemptionCertificateDetailsSchema.new(attributes["detail"])
|
35
35
|
|
36
36
|
end
|
@@ -27,15 +27,15 @@ class UsTaxExemptState
|
|
27
27
|
def initialize(attributes = {})
|
28
28
|
return if attributes.empty?
|
29
29
|
# Morph attribute keys into undescored rubyish style
|
30
|
-
|
30
|
+
unless attributes["state_abbr"].nil?
|
31
31
|
@state_abbr = attributes["state_abbr"]
|
32
32
|
|
33
33
|
end
|
34
|
-
|
34
|
+
unless attributes["reason_for_exemption"].nil?
|
35
35
|
@reason_for_exemption = attributes["reason_for_exemption"]
|
36
36
|
|
37
37
|
end
|
38
|
-
|
38
|
+
unless attributes["identifier_for_exemption_reason"].nil?
|
39
39
|
@identifier_for_exemption_reason = attributes["identifier_for_exemption_reason"]
|
40
40
|
|
41
41
|
end
|
@@ -27,15 +27,15 @@ class UsTaxId
|
|
27
27
|
def initialize(attributes = {})
|
28
28
|
return if attributes.empty?
|
29
29
|
# Morph attribute keys into undescored rubyish style
|
30
|
-
|
30
|
+
unless attributes["tax_id_type"].nil?
|
31
31
|
@tax_id_type = attributes["tax_id_type"]
|
32
32
|
|
33
33
|
end
|
34
|
-
|
34
|
+
unless attributes["tax_id"].nil?
|
35
35
|
@tax_id = attributes["tax_id"]
|
36
36
|
|
37
37
|
end
|
38
|
-
|
38
|
+
unless attributes["state_of_issue"].nil?
|
39
39
|
@state_of_issue = attributes["state_of_issue"]
|
40
40
|
|
41
41
|
end
|
@@ -28,19 +28,19 @@ class ValidateTaxNumberOut
|
|
28
28
|
def initialize(attributes = {})
|
29
29
|
return if attributes.empty?
|
30
30
|
# Morph attribute keys into undescored rubyish style
|
31
|
-
|
31
|
+
unless attributes["tax_deducted"].nil?
|
32
32
|
@tax_deducted = attributes["tax_deducted"]
|
33
33
|
|
34
34
|
end
|
35
|
-
|
35
|
+
unless attributes["buyer_tax_number"].nil?
|
36
36
|
@buyer_tax_number = attributes["buyer_tax_number"]
|
37
37
|
|
38
38
|
end
|
39
|
-
|
39
|
+
unless attributes["buyer_tax_number_valid"].nil?
|
40
40
|
@buyer_tax_number_valid = attributes["buyer_tax_number_valid"]
|
41
41
|
|
42
42
|
end
|
43
|
-
|
43
|
+
unless attributes["billing_country_code"].nil?
|
44
44
|
@billing_country_code = attributes["billing_country_code"]
|
45
45
|
|
46
46
|
end
|
@@ -25,7 +25,7 @@ class VerifySMSTokenOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["country_code"].nil?
|
29
29
|
@country_code = attributes["country_code"]
|
30
30
|
|
31
31
|
end
|
data/lib/taxamo/version.rb
CHANGED
data/test/taxamo/tax_test.rb
CHANGED
@@ -131,7 +131,11 @@ class TaxTest < Test::Unit::TestCase
|
|
131
131
|
|
132
132
|
resp = Taxamo.validate_tax_number('IE', '6388047V12121')
|
133
133
|
|
134
|
-
assert_equal resp.tax_deducted,
|
134
|
+
assert_equal resp.tax_deducted, false
|
135
|
+
|
136
|
+
resp = Taxamo.validate_tax_number(nil, 'FR00300076967')
|
137
|
+
|
138
|
+
assert_equal resp.tax_deducted, false
|
135
139
|
end
|
136
140
|
|
137
141
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taxamo-ns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomek Lipski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|