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
@@ -27,16 +27,16 @@ class CreateTransactionOut
|
|
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
|
@@ -29,23 +29,23 @@ class CurrencySchema
|
|
29
29
|
def initialize(attributes = {})
|
30
30
|
return if attributes.empty?
|
31
31
|
# Morph attribute keys into undescored rubyish style
|
32
|
-
|
32
|
+
unless attributes["code"].nil?
|
33
33
|
@code = attributes["code"]
|
34
34
|
|
35
35
|
end
|
36
|
-
|
36
|
+
unless attributes["minorunits"].nil?
|
37
37
|
@minorunits = attributes["minorunits"]
|
38
38
|
|
39
39
|
end
|
40
|
-
|
40
|
+
unless attributes["description"].nil?
|
41
41
|
@description = attributes["description"]
|
42
42
|
|
43
43
|
end
|
44
|
-
|
44
|
+
unless attributes["isocode"].nil?
|
45
45
|
@isocode = attributes["isocode"]
|
46
46
|
|
47
47
|
end
|
48
|
-
|
48
|
+
unless attributes["isonum"].nil?
|
49
49
|
@isonum = attributes["isonum"]
|
50
50
|
|
51
51
|
end
|
@@ -26,11 +26,11 @@ class CustomFields
|
|
26
26
|
def initialize(attributes = {})
|
27
27
|
return if attributes.empty?
|
28
28
|
# Morph attribute keys into undescored rubyish style
|
29
|
-
|
29
|
+
unless attributes["key"].nil?
|
30
30
|
@key = attributes["key"]
|
31
31
|
|
32
32
|
end
|
33
|
-
|
33
|
+
unless attributes["value"].nil?
|
34
34
|
@value = attributes["value"]
|
35
35
|
|
36
36
|
end
|
@@ -25,7 +25,7 @@ class EmailInvoiceIn
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["buyer_email"].nil?
|
29
29
|
@buyer_email = attributes["buyer_email"]
|
30
30
|
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class EmailRefundIn
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["buyer_email"].nil?
|
29
29
|
@buyer_email = attributes["buyer_email"]
|
30
30
|
|
31
31
|
end
|
@@ -35,47 +35,47 @@ class Evidence
|
|
35
35
|
def initialize(attributes = {})
|
36
36
|
return if attributes.empty?
|
37
37
|
# Morph attribute keys into undescored rubyish style
|
38
|
-
|
38
|
+
unless attributes["by_token"].nil?
|
39
39
|
@by_token = EvidenceSchema.new(attributes["by_token"])
|
40
40
|
|
41
41
|
end
|
42
|
-
|
42
|
+
unless attributes["by_cc"].nil?
|
43
43
|
@by_cc = EvidenceSchema.new(attributes["by_cc"])
|
44
44
|
|
45
45
|
end
|
46
|
-
|
46
|
+
unless attributes["by_2003_rules"].nil?
|
47
47
|
@by_2003_rules = EvidenceSchema.new(attributes["by_2003_rules"])
|
48
48
|
|
49
49
|
end
|
50
|
-
|
50
|
+
unless attributes["forced"].nil?
|
51
51
|
@forced = EvidenceSchema.new(attributes["forced"])
|
52
52
|
|
53
53
|
end
|
54
|
-
|
54
|
+
unless attributes["by_payment_method"].nil?
|
55
55
|
@by_payment_method = EvidenceSchema.new(attributes["by_payment_method"])
|
56
56
|
|
57
57
|
end
|
58
|
-
|
58
|
+
unless attributes["by_ip"].nil?
|
59
59
|
@by_ip = EvidenceSchema.new(attributes["by_ip"])
|
60
60
|
|
61
61
|
end
|
62
|
-
|
62
|
+
unless attributes["guessed_from_ip"].nil?
|
63
63
|
@guessed_from_ip = EvidenceSchema.new(attributes["guessed_from_ip"])
|
64
64
|
|
65
65
|
end
|
66
|
-
|
66
|
+
unless attributes["other_commercially_relevant_info"].nil?
|
67
67
|
@other_commercially_relevant_info = EvidenceSchema.new(attributes["other_commercially_relevant_info"])
|
68
68
|
|
69
69
|
end
|
70
|
-
|
70
|
+
unless attributes["by_billing"].nil?
|
71
71
|
@by_billing = EvidenceSchema.new(attributes["by_billing"])
|
72
72
|
|
73
73
|
end
|
74
|
-
|
74
|
+
unless attributes["by_tax_number"].nil?
|
75
75
|
@by_tax_number = EvidenceSchema.new(attributes["by_tax_number"])
|
76
76
|
|
77
77
|
end
|
78
|
-
|
78
|
+
unless attributes["self_declaration"].nil?
|
79
79
|
@self_declaration = EvidenceSchema.new(attributes["self_declaration"])
|
80
80
|
|
81
81
|
end
|
@@ -28,19 +28,19 @@ class EvidenceSchema
|
|
28
28
|
def initialize(attributes = {})
|
29
29
|
return if attributes.empty?
|
30
30
|
# Morph attribute keys into undescored rubyish style
|
31
|
-
|
31
|
+
unless attributes["used"].nil?
|
32
32
|
@used = attributes["used"]
|
33
33
|
|
34
34
|
end
|
35
|
-
|
35
|
+
unless attributes["resolved_country_code"].nil?
|
36
36
|
@resolved_country_code = attributes["resolved_country_code"]
|
37
37
|
|
38
38
|
end
|
39
|
-
|
39
|
+
unless attributes["evidence_type"].nil?
|
40
40
|
@evidence_type = attributes["evidence_type"]
|
41
41
|
|
42
42
|
end
|
43
|
-
|
43
|
+
unless attributes["evidence_value"].nil?
|
44
44
|
@evidence_value = attributes["evidence_value"]
|
45
45
|
|
46
46
|
end
|
@@ -25,7 +25,7 @@ class GetCountriesDictOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["dictionary"].nil?
|
29
29
|
if (value = attributes["dictionary"]).is_a?(Array)
|
30
30
|
@dictionary = value.map{ |v| CountrySchema.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetCurrenciesDictOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["dictionary"].nil?
|
29
29
|
if (value = attributes["dictionary"]).is_a?(Array)
|
30
30
|
@dictionary = value.map{ |v| CurrencySchema.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetDailySettlementStatsOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["settlement_daily"].nil?
|
29
29
|
if (value = attributes["settlement_daily"]).is_a?(Array)
|
30
30
|
@settlement_daily = value.map{ |v| SettlementDailyStatsSchema.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetDetailedRefundsOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["report"].nil?
|
29
29
|
if (value = attributes["report"]).is_a?(Array)
|
30
30
|
@report = value.map{ |v| Report.new(v) }
|
31
31
|
end
|
@@ -37,55 +37,55 @@ class GetDomesticSummaryReportOut
|
|
37
37
|
def initialize(attributes = {})
|
38
38
|
return if attributes.empty?
|
39
39
|
# Morph attribute keys into undescored rubyish style
|
40
|
-
|
40
|
+
unless attributes["end_date"].nil?
|
41
41
|
@end_date = attributes["end_date"]
|
42
42
|
|
43
43
|
end
|
44
|
-
|
44
|
+
unless attributes["domestic_refunds_amount"].nil?
|
45
45
|
@domestic_refunds_amount = attributes["domestic_refunds_amount"]
|
46
46
|
|
47
47
|
end
|
48
|
-
|
48
|
+
unless attributes["currency_code"].nil?
|
49
49
|
@currency_code = attributes["currency_code"]
|
50
50
|
|
51
51
|
end
|
52
|
-
|
52
|
+
unless attributes["global_refunds_tax_amount"].nil?
|
53
53
|
@global_refunds_tax_amount = attributes["global_refunds_tax_amount"]
|
54
54
|
|
55
55
|
end
|
56
|
-
|
56
|
+
unless attributes["domestic_refunds_tax_amount"].nil?
|
57
57
|
@domestic_refunds_tax_amount = attributes["domestic_refunds_tax_amount"]
|
58
58
|
|
59
59
|
end
|
60
|
-
|
60
|
+
unless attributes["eu_tax_deducted_refunds"].nil?
|
61
61
|
@eu_tax_deducted_refunds = attributes["eu_tax_deducted_refunds"]
|
62
62
|
|
63
63
|
end
|
64
|
-
|
64
|
+
unless attributes["global_sales_amount"].nil?
|
65
65
|
@global_sales_amount = attributes["global_sales_amount"]
|
66
66
|
|
67
67
|
end
|
68
|
-
|
68
|
+
unless attributes["global_refunds_amount"].nil?
|
69
69
|
@global_refunds_amount = attributes["global_refunds_amount"]
|
70
70
|
|
71
71
|
end
|
72
|
-
|
72
|
+
unless attributes["global_sales_tax_amount"].nil?
|
73
73
|
@global_sales_tax_amount = attributes["global_sales_tax_amount"]
|
74
74
|
|
75
75
|
end
|
76
|
-
|
76
|
+
unless attributes["eu_tax_deducted_sales"].nil?
|
77
77
|
@eu_tax_deducted_sales = attributes["eu_tax_deducted_sales"]
|
78
78
|
|
79
79
|
end
|
80
|
-
|
80
|
+
unless attributes["start_date"].nil?
|
81
81
|
@start_date = attributes["start_date"]
|
82
82
|
|
83
83
|
end
|
84
|
-
|
84
|
+
unless attributes["domestic_tax_amount"].nil?
|
85
85
|
@domestic_tax_amount = attributes["domestic_tax_amount"]
|
86
86
|
|
87
87
|
end
|
88
|
-
|
88
|
+
unless attributes["domestic_sales_amount"].nil?
|
89
89
|
@domestic_sales_amount = attributes["domestic_sales_amount"]
|
90
90
|
|
91
91
|
end
|
@@ -28,20 +28,20 @@ class GetEuViesReportOut
|
|
28
28
|
def initialize(attributes = {})
|
29
29
|
return if attributes.empty?
|
30
30
|
# Morph attribute keys into undescored rubyish style
|
31
|
-
|
31
|
+
unless attributes["report"].nil?
|
32
32
|
if (value = attributes["report"]).is_a?(Array)
|
33
33
|
@report = value.map{ |v| Report.new(v) }
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
unless attributes["currency_code"].nil?
|
37
37
|
@currency_code = attributes["currency_code"]
|
38
38
|
|
39
39
|
end
|
40
|
-
|
40
|
+
unless attributes["start_date"].nil?
|
41
41
|
@start_date = attributes["start_date"]
|
42
42
|
|
43
43
|
end
|
44
|
-
|
44
|
+
unless attributes["end_date"].nil?
|
45
45
|
@end_date = attributes["end_date"]
|
46
46
|
|
47
47
|
end
|
@@ -25,7 +25,7 @@ class GetProductTypesDictOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["dictionary"].nil?
|
29
29
|
if (value = attributes["dictionary"]).is_a?(Array)
|
30
30
|
@dictionary = value.map{ |v| ProductTypeSchema.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetRefundsOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["report"].nil?
|
29
29
|
if (value = attributes["report"]).is_a?(Array)
|
30
30
|
@report = value.map{ |v| Report.new(v) }
|
31
31
|
end
|
@@ -29,24 +29,24 @@ class GetSettlementOut
|
|
29
29
|
def initialize(attributes = {})
|
30
30
|
return if attributes.empty?
|
31
31
|
# Morph attribute keys into undescored rubyish style
|
32
|
-
|
32
|
+
unless attributes["report"].nil?
|
33
33
|
if (value = attributes["report"]).is_a?(Array)
|
34
34
|
@report = value.map{ |v| Report.new(v) }
|
35
35
|
end
|
36
36
|
end
|
37
|
-
|
37
|
+
unless attributes["start_date"].nil?
|
38
38
|
@start_date = attributes["start_date"]
|
39
39
|
|
40
40
|
end
|
41
|
-
|
41
|
+
unless attributes["end_date"].nil?
|
42
42
|
@end_date = attributes["end_date"]
|
43
43
|
|
44
44
|
end
|
45
|
-
|
45
|
+
unless attributes["indicative"].nil?
|
46
46
|
@indicative = attributes["indicative"]
|
47
47
|
|
48
48
|
end
|
49
|
-
|
49
|
+
unless attributes["fx_rate_date"].nil?
|
50
50
|
@fx_rate_date = attributes["fx_rate_date"]
|
51
51
|
|
52
52
|
end
|
@@ -25,7 +25,7 @@ class GetSettlementStatsByCountryOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["by_country"].nil?
|
29
29
|
if (value = attributes["by_country"]).is_a?(Array)
|
30
30
|
@by_country = value.map{ |v| ByCountry.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetSettlementStatsByTaxationTypeOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["by_taxation_type"].nil?
|
29
29
|
@by_taxation_type = ByTaxationType.new(attributes["by_taxation_type"])
|
30
30
|
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetSettlementSummaryOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["summary"].nil?
|
29
29
|
@summary = Summary.new(attributes["summary"])
|
30
30
|
|
31
31
|
end
|
@@ -27,16 +27,16 @@ class GetTransactionOut
|
|
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 GetTransactionsStatsByCountryOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["by_country"].nil?
|
29
29
|
if (value = attributes["by_country"]).is_a?(Array)
|
30
30
|
@by_country = value.map{ |v| ByCountry.new(v) }
|
31
31
|
end
|
@@ -25,7 +25,7 @@ class GetTransactionsStatsOut
|
|
25
25
|
def initialize(attributes = {})
|
26
26
|
return if attributes.empty?
|
27
27
|
# Morph attribute keys into undescored rubyish style
|
28
|
-
|
28
|
+
unless attributes["by_status"].nil?
|
29
29
|
@by_status = ByStatus.new(attributes["by_status"])
|
30
30
|
|
31
31
|
end
|
@@ -56,133 +56,133 @@ class InputTransaction
|
|
56
56
|
def initialize(attributes = {})
|
57
57
|
return if attributes.empty?
|
58
58
|
# Morph attribute keys into undescored rubyish style
|
59
|
-
|
59
|
+
unless attributes["order_date_type"].nil?
|
60
60
|
@order_date_type = attributes["order_date_type"]
|
61
61
|
|
62
62
|
end
|
63
|
-
|
63
|
+
unless attributes["buyer_credit_card_prefix"].nil?
|
64
64
|
@buyer_credit_card_prefix = attributes["buyer_credit_card_prefix"]
|
65
65
|
|
66
66
|
end
|
67
|
-
|
67
|
+
unless attributes["custom_data"].nil?
|
68
68
|
@custom_data = attributes["custom_data"]
|
69
69
|
|
70
70
|
end
|
71
|
-
|
71
|
+
unless attributes["buyer_name"].nil?
|
72
72
|
@buyer_name = attributes["buyer_name"]
|
73
73
|
|
74
74
|
end
|
75
|
-
|
75
|
+
unless attributes["invoice_date"].nil?
|
76
76
|
@invoice_date = attributes["invoice_date"]
|
77
77
|
|
78
78
|
end
|
79
|
-
|
79
|
+
unless attributes["currency_code"].nil?
|
80
80
|
@currency_code = attributes["currency_code"]
|
81
81
|
|
82
82
|
end
|
83
|
-
|
83
|
+
unless attributes["sub_account_id"].nil?
|
84
84
|
@sub_account_id = attributes["sub_account_id"]
|
85
85
|
|
86
86
|
end
|
87
|
-
|
87
|
+
unless attributes["supply_date"].nil?
|
88
88
|
@supply_date = attributes["supply_date"]
|
89
89
|
|
90
90
|
end
|
91
|
-
|
91
|
+
unless attributes["invoice_address"].nil?
|
92
92
|
@invoice_address = InvoiceAddress.new(attributes["invoice_address"])
|
93
93
|
|
94
94
|
end
|
95
|
-
|
95
|
+
unless attributes["verification_token"].nil?
|
96
96
|
@verification_token = attributes["verification_token"]
|
97
97
|
|
98
98
|
end
|
99
|
-
|
99
|
+
unless attributes["note"].nil?
|
100
100
|
@note = attributes["note"]
|
101
101
|
|
102
102
|
end
|
103
|
-
|
103
|
+
unless attributes["tax_data"].nil?
|
104
104
|
@tax_data = TaxDataSchema.new(attributes["tax_data"])
|
105
105
|
|
106
106
|
end
|
107
|
-
|
107
|
+
unless attributes["transaction_lines"].nil?
|
108
108
|
if (value = attributes["transaction_lines"]).is_a?(Array)
|
109
109
|
@transaction_lines = value.map{ |v| InputTransactionLine.new(v) }
|
110
110
|
end
|
111
111
|
end
|
112
|
-
|
112
|
+
unless attributes["buyer_tax_number"].nil?
|
113
113
|
@buyer_tax_number = attributes["buyer_tax_number"]
|
114
114
|
|
115
115
|
end
|
116
|
-
|
116
|
+
unless attributes["status"].nil?
|
117
117
|
@status = attributes["status"]
|
118
118
|
|
119
119
|
end
|
120
|
-
|
120
|
+
unless attributes["custom_fields"].nil?
|
121
121
|
if (value = attributes["custom_fields"]).is_a?(Array)
|
122
122
|
@custom_fields = value.map{ |v| CustomFields.new(v) }
|
123
123
|
end
|
124
124
|
end
|
125
|
-
|
125
|
+
unless attributes["force_country_code"].nil?
|
126
126
|
@force_country_code = attributes["force_country_code"]
|
127
127
|
|
128
128
|
end
|
129
|
-
|
129
|
+
unless attributes["invoice_number"].nil?
|
130
130
|
@invoice_number = attributes["invoice_number"]
|
131
131
|
|
132
132
|
end
|
133
|
-
|
133
|
+
unless attributes["order_date"].nil?
|
134
134
|
@order_date = attributes["order_date"]
|
135
135
|
|
136
136
|
end
|
137
|
-
|
137
|
+
unless attributes["customer_id"].nil?
|
138
138
|
@customer_id = attributes["customer_id"]
|
139
139
|
|
140
140
|
end
|
141
|
-
|
141
|
+
unless attributes["comments"].nil?
|
142
142
|
@comments = attributes["comments"]
|
143
143
|
|
144
144
|
end
|
145
|
-
|
145
|
+
unless attributes["buyer_ip"].nil?
|
146
146
|
@buyer_ip = attributes["buyer_ip"]
|
147
147
|
|
148
148
|
end
|
149
|
-
|
149
|
+
unless attributes["buyer_email"].nil?
|
150
150
|
@buyer_email = attributes["buyer_email"]
|
151
151
|
|
152
152
|
end
|
153
|
-
|
153
|
+
unless attributes["original_transaction_key"].nil?
|
154
154
|
@original_transaction_key = attributes["original_transaction_key"]
|
155
155
|
|
156
156
|
end
|
157
|
-
|
157
|
+
unless attributes["billing_country_code"].nil?
|
158
158
|
@billing_country_code = attributes["billing_country_code"]
|
159
159
|
|
160
160
|
end
|
161
|
-
|
161
|
+
unless attributes["custom_id"].nil?
|
162
162
|
@custom_id = attributes["custom_id"]
|
163
163
|
|
164
164
|
end
|
165
|
-
|
165
|
+
unless attributes["additional_currencies"].nil?
|
166
166
|
@additional_currencies = AdditionalCurrencies.new(attributes["additional_currencies"])
|
167
167
|
|
168
168
|
end
|
169
|
-
|
169
|
+
unless attributes["invoice_place"].nil?
|
170
170
|
@invoice_place = attributes["invoice_place"]
|
171
171
|
|
172
172
|
end
|
173
|
-
|
173
|
+
unless attributes["evidence"].nil?
|
174
174
|
@evidence = Evidence.new(attributes["evidence"])
|
175
175
|
|
176
176
|
end
|
177
|
-
|
177
|
+
unless attributes["description"].nil?
|
178
178
|
@description = attributes["description"]
|
179
179
|
|
180
180
|
end
|
181
|
-
|
181
|
+
unless attributes["tax_deducted"].nil?
|
182
182
|
@tax_deducted = attributes["tax_deducted"]
|
183
183
|
|
184
184
|
end
|
185
|
-
|
185
|
+
unless attributes["tax_country_code"].nil?
|
186
186
|
@tax_country_code = attributes["tax_country_code"]
|
187
187
|
|
188
188
|
end
|