taxamo-ns 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/lib/taxamo/models/additionalcurrencies.rb +2 -2
  4. data/lib/taxamo/models/additionalcurrency.rb +7 -7
  5. data/lib/taxamo/models/bycountry.rb +5 -5
  6. data/lib/taxamo/models/bystatus.rb +3 -3
  7. data/lib/taxamo/models/bytaxationtype.rb +6 -6
  8. data/lib/taxamo/models/c.rb +5 -5
  9. data/lib/taxamo/models/calculatesimpletaxout.rb +4 -4
  10. data/lib/taxamo/models/calculatetaxin.rb +2 -2
  11. data/lib/taxamo/models/calculatetaxlocationout.rb +9 -9
  12. data/lib/taxamo/models/calculatetaxout.rb +4 -4
  13. data/lib/taxamo/models/canceltransactionout.rb +2 -2
  14. data/lib/taxamo/models/capturepaymentout.rb +2 -2
  15. data/lib/taxamo/models/confirmtransactionin.rb +2 -2
  16. data/lib/taxamo/models/confirmtransactionout.rb +4 -4
  17. data/lib/taxamo/models/countries.rb +12 -12
  18. data/lib/taxamo/models/country.rb +13 -13
  19. data/lib/taxamo/models/countryschema.rb +13 -13
  20. data/lib/taxamo/models/createpaymentin.rb +4 -4
  21. data/lib/taxamo/models/createpaymentout.rb +2 -2
  22. data/lib/taxamo/models/createrefundin.rb +6 -6
  23. data/lib/taxamo/models/createrefundout.rb +5 -5
  24. data/lib/taxamo/models/createsmstokenin.rb +3 -3
  25. data/lib/taxamo/models/createsmstokenout.rb +2 -2
  26. data/lib/taxamo/models/createtransactionin.rb +3 -3
  27. data/lib/taxamo/models/createtransactionout.rb +4 -4
  28. data/lib/taxamo/models/currencyschema.rb +6 -6
  29. data/lib/taxamo/models/customfields.rb +3 -3
  30. data/lib/taxamo/models/emailinvoicein.rb +2 -2
  31. data/lib/taxamo/models/emailinvoiceout.rb +2 -2
  32. data/lib/taxamo/models/emailrefundin.rb +2 -2
  33. data/lib/taxamo/models/emailrefundout.rb +2 -2
  34. data/lib/taxamo/models/evidence.rb +12 -12
  35. data/lib/taxamo/models/evidenceschema.rb +5 -5
  36. data/lib/taxamo/models/getcountriesdictout.rb +2 -2
  37. data/lib/taxamo/models/getcurrenciesdictout.rb +2 -2
  38. data/lib/taxamo/models/getdailysettlementstatsout.rb +2 -2
  39. data/lib/taxamo/models/getdetailedrefundsout.rb +2 -2
  40. data/lib/taxamo/models/getdomesticsummaryreportout.rb +14 -14
  41. data/lib/taxamo/models/geteuviesreportout.rb +5 -5
  42. data/lib/taxamo/models/getproducttypesdictout.rb +2 -2
  43. data/lib/taxamo/models/getrefundsout.rb +2 -2
  44. data/lib/taxamo/models/getsettlementout.rb +6 -6
  45. data/lib/taxamo/models/getsettlementstatsbycountryout.rb +2 -2
  46. data/lib/taxamo/models/getsettlementstatsbytaxationtypeout.rb +2 -2
  47. data/lib/taxamo/models/getsettlementsummaryout.rb +2 -2
  48. data/lib/taxamo/models/gettransactionout.rb +4 -4
  49. data/lib/taxamo/models/gettransactionsstatsbycountryout.rb +2 -2
  50. data/lib/taxamo/models/gettransactionsstatsout.rb +2 -2
  51. data/lib/taxamo/models/inputtransaction.rb +33 -33
  52. data/lib/taxamo/models/inputtransactionline.rb +18 -18
  53. data/lib/taxamo/models/inputtransactionupdate.rb +33 -33
  54. data/lib/taxamo/models/invoiceaddress.rb +9 -9
  55. data/lib/taxamo/models/listpaymentsout.rb +2 -2
  56. data/lib/taxamo/models/listrefundsout.rb +2 -2
  57. data/lib/taxamo/models/listtransactionsout.rb +2 -2
  58. data/lib/taxamo/models/locategivenipout.rb +4 -4
  59. data/lib/taxamo/models/locatemyipout.rb +4 -4
  60. data/lib/taxamo/models/n.rb +5 -5
  61. data/lib/taxamo/models/payments.rb +4 -4
  62. data/lib/taxamo/models/producttypeschema.rb +2 -2
  63. data/lib/taxamo/models/refunds.rb +11 -11
  64. data/lib/taxamo/models/report.rb +10 -10
  65. data/lib/taxamo/models/settlementdailystatsschema.rb +10 -10
  66. data/lib/taxamo/models/storagerequiredfields.rb +2 -2
  67. data/lib/taxamo/models/summary.rb +9 -9
  68. data/lib/taxamo/models/taxdataschema.rb +2 -2
  69. data/lib/taxamo/models/taxrequiredfields.rb +2 -2
  70. data/lib/taxamo/models/transaction.rb +55 -55
  71. data/lib/taxamo/models/transactionlines.rb +24 -24
  72. data/lib/taxamo/models/transactions.rb +55 -55
  73. data/lib/taxamo/models/unconfirmtransactionin.rb +2 -2
  74. data/lib/taxamo/models/unconfirmtransactionout.rb +4 -4
  75. data/lib/taxamo/models/updatetransactionin.rb +2 -2
  76. data/lib/taxamo/models/updatetransactionout.rb +4 -4
  77. data/lib/taxamo/models/ustaxexemptioncertificatedetailsschema.rb +17 -17
  78. data/lib/taxamo/models/ustaxexemptioncertificateschema.rb +3 -3
  79. data/lib/taxamo/models/ustaxexemptstate.rb +4 -4
  80. data/lib/taxamo/models/ustaxid.rb +4 -4
  81. data/lib/taxamo/models/validatetaxnumberout.rb +5 -5
  82. data/lib/taxamo/models/verifysmstokenout.rb +2 -2
  83. data/lib/taxamo/version.rb +1 -1
  84. data/test/taxamo/dict_test.rb +36 -0
  85. data/test/taxamo/tax_test.rb +3 -1
  86. metadata +4 -2
@@ -32,45 +32,45 @@ class Refunds
32
32
  end
33
33
 
34
34
  def initialize(attributes = {})
35
- return if attributes.empty?
35
+ return if attributes.nil? or attributes.empty?
36
36
  # Morph attribute keys into undescored rubyish style
37
- unless attributes["refund_note_url"].nil?
37
+ if attributes.key?("refund_note_url")
38
38
  @refund_note_url = attributes["refund_note_url"]
39
39
 
40
40
  end
41
- unless attributes["refund_note_number"].nil?
41
+ if attributes.key?("refund_note_number")
42
42
  @refund_note_number = attributes["refund_note_number"]
43
43
 
44
44
  end
45
- unless attributes["line_key"].nil?
45
+ if attributes.key?("line_key")
46
46
  @line_key = attributes["line_key"]
47
47
 
48
48
  end
49
- unless attributes["refund_timestamp"].nil?
49
+ if attributes.key?("refund_timestamp")
50
50
  @refund_timestamp = attributes["refund_timestamp"]
51
51
 
52
52
  end
53
- unless attributes["amount"].nil?
53
+ if attributes.key?("amount")
54
54
  @amount = attributes["amount"]
55
55
 
56
56
  end
57
- unless attributes["informative"].nil?
57
+ if attributes.key?("informative")
58
58
  @informative = attributes["informative"]
59
59
 
60
60
  end
61
- unless attributes["tax_amount"].nil?
61
+ if attributes.key?("tax_amount")
62
62
  @tax_amount = attributes["tax_amount"]
63
63
 
64
64
  end
65
- unless attributes["tax_rate"].nil?
65
+ if attributes.key?("tax_rate")
66
66
  @tax_rate = attributes["tax_rate"]
67
67
 
68
68
  end
69
- unless attributes["total_amount"].nil?
69
+ if attributes.key?("total_amount")
70
70
  @total_amount = attributes["total_amount"]
71
71
 
72
72
  end
73
- unless attributes["refund_reason"].nil?
73
+ if attributes.key?("refund_reason")
74
74
  @refund_reason = attributes["refund_reason"]
75
75
 
76
76
  end
@@ -31,41 +31,41 @@ class Report
31
31
  end
32
32
 
33
33
  def initialize(attributes = {})
34
- return if attributes.empty?
34
+ return if attributes.nil? or attributes.empty?
35
35
  # Morph attribute keys into undescored rubyish style
36
- unless attributes["currency_code"].nil?
36
+ if attributes.key?("currency_code")
37
37
  @currency_code = attributes["currency_code"]
38
38
 
39
39
  end
40
- unless attributes["skip_moss"].nil?
40
+ if attributes.key?("skip_moss")
41
41
  @skip_moss = attributes["skip_moss"]
42
42
 
43
43
  end
44
- unless attributes["country_code"].nil?
44
+ if attributes.key?("country_code")
45
45
  @country_code = attributes["country_code"]
46
46
 
47
47
  end
48
- unless attributes["tax_region"].nil?
48
+ if attributes.key?("tax_region")
49
49
  @tax_region = attributes["tax_region"]
50
50
 
51
51
  end
52
- unless attributes["country_subdivision"].nil?
52
+ if attributes.key?("country_subdivision")
53
53
  @country_subdivision = attributes["country_subdivision"]
54
54
 
55
55
  end
56
- unless attributes["amount"].nil?
56
+ if attributes.key?("amount")
57
57
  @amount = attributes["amount"]
58
58
 
59
59
  end
60
- unless attributes["tax_amount"].nil?
60
+ if attributes.key?("tax_amount")
61
61
  @tax_amount = attributes["tax_amount"]
62
62
 
63
63
  end
64
- unless attributes["tax_rate"].nil?
64
+ if attributes.key?("tax_rate")
65
65
  @tax_rate = attributes["tax_rate"]
66
66
 
67
67
  end
68
- unless attributes["country_name"].nil?
68
+ if attributes.key?("country_name")
69
69
  @country_name = attributes["country_name"]
70
70
 
71
71
  end
@@ -31,41 +31,41 @@ class SettlementDailyStatsSchema
31
31
  end
32
32
 
33
33
  def initialize(attributes = {})
34
- return if attributes.empty?
34
+ return if attributes.nil? or attributes.empty?
35
35
  # Morph attribute keys into undescored rubyish style
36
- unless attributes["b2c"].nil?
36
+ if attributes.key?("b2c")
37
37
  @b2c = attributes["b2c"]
38
38
 
39
39
  end
40
- unless attributes["untaxed"].nil?
40
+ if attributes.key?("untaxed")
41
41
  @untaxed = attributes["untaxed"]
42
42
 
43
43
  end
44
- unless attributes["eu_taxed"].nil?
44
+ if attributes.key?("eu_taxed")
45
45
  @eu_taxed = attributes["eu_taxed"]
46
46
 
47
47
  end
48
- unless attributes["eu_b2b"].nil?
48
+ if attributes.key?("eu_b2b")
49
49
  @eu_b2b = attributes["eu_b2b"]
50
50
 
51
51
  end
52
- unless attributes["count"].nil?
52
+ if attributes.key?("count")
53
53
  @count = attributes["count"]
54
54
 
55
55
  end
56
- unless attributes["eu_total"].nil?
56
+ if attributes.key?("eu_total")
57
57
  @eu_total = attributes["eu_total"]
58
58
 
59
59
  end
60
- unless attributes["day_raw"].nil?
60
+ if attributes.key?("day_raw")
61
61
  @day_raw = attributes["day_raw"]
62
62
 
63
63
  end
64
- unless attributes["b2b"].nil?
64
+ if attributes.key?("b2b")
65
65
  @b2b = attributes["b2b"]
66
66
 
67
67
  end
68
- unless attributes["day"].nil?
68
+ if attributes.key?("day")
69
69
  @day = attributes["day"]
70
70
 
71
71
  end
@@ -23,9 +23,9 @@ class StorageRequiredFields
23
23
  end
24
24
 
25
25
  def initialize(attributes = {})
26
- return if attributes.empty?
26
+ return if attributes.nil? or attributes.empty?
27
27
  # Morph attribute keys into undescored rubyish style
28
- unless attributes["field_name"].nil?
28
+ if attributes.key?("field_name")
29
29
  @field_name = attributes["field_name"]
30
30
 
31
31
  end
@@ -30,37 +30,37 @@ class Summary
30
30
  end
31
31
 
32
32
  def initialize(attributes = {})
33
- return if attributes.empty?
33
+ return if attributes.nil? or attributes.empty?
34
34
  # Morph attribute keys into undescored rubyish style
35
- unless attributes["quarter"].nil?
35
+ if attributes.key?("quarter")
36
36
  @quarter = attributes["quarter"]
37
37
 
38
38
  end
39
- unless attributes["tax_amount"].nil?
39
+ if attributes.key?("tax_amount")
40
40
  @tax_amount = attributes["tax_amount"]
41
41
 
42
42
  end
43
- unless attributes["currency_code"].nil?
43
+ if attributes.key?("currency_code")
44
44
  @currency_code = attributes["currency_code"]
45
45
 
46
46
  end
47
- unless attributes["indicative"].nil?
47
+ if attributes.key?("indicative")
48
48
  @indicative = attributes["indicative"]
49
49
 
50
50
  end
51
- unless attributes["fx_rate_date"].nil?
51
+ if attributes.key?("fx_rate_date")
52
52
  @fx_rate_date = attributes["fx_rate_date"]
53
53
 
54
54
  end
55
- unless attributes["start_date"].nil?
55
+ if attributes.key?("start_date")
56
56
  @start_date = attributes["start_date"]
57
57
 
58
58
  end
59
- unless attributes["end_date"].nil?
59
+ if attributes.key?("end_date")
60
60
  @end_date = attributes["end_date"]
61
61
 
62
62
  end
63
- unless attributes["tax_entity_name"].nil?
63
+ if attributes.key?("tax_entity_name")
64
64
  @tax_entity_name = attributes["tax_entity_name"]
65
65
 
66
66
  end
@@ -23,9 +23,9 @@ class TaxDataSchema
23
23
  end
24
24
 
25
25
  def initialize(attributes = {})
26
- return if attributes.empty?
26
+ return if attributes.nil? or attributes.empty?
27
27
  # Morph attribute keys into undescored rubyish style
28
- unless attributes["us_tax_exemption_certificate"].nil?
28
+ if attributes.key?("us_tax_exemption_certificate")
29
29
  @us_tax_exemption_certificate = UsTaxExemptionCertificateSchema.new(attributes["us_tax_exemption_certificate"])
30
30
 
31
31
  end
@@ -23,9 +23,9 @@ class TaxRequiredFields
23
23
  end
24
24
 
25
25
  def initialize(attributes = {})
26
- return if attributes.empty?
26
+ return if attributes.nil? or attributes.empty?
27
27
  # Morph attribute keys into undescored rubyish style
28
- unless attributes["field_name"].nil?
28
+ if attributes.key?("field_name")
29
29
  @field_name = attributes["field_name"]
30
30
 
31
31
  end
@@ -76,223 +76,223 @@ class Transaction
76
76
  end
77
77
 
78
78
  def initialize(attributes = {})
79
- return if attributes.empty?
79
+ return if attributes.nil? or attributes.empty?
80
80
  # Morph attribute keys into undescored rubyish style
81
- unless attributes["confirm_timestamp"].nil?
81
+ if attributes.key?("confirm_timestamp")
82
82
  @confirm_timestamp = attributes["confirm_timestamp"]
83
83
 
84
84
  end
85
- unless attributes["fully_informative"].nil?
85
+ if attributes.key?("fully_informative")
86
86
  @fully_informative = attributes["fully_informative"]
87
87
 
88
88
  end
89
- unless attributes["deducted_tax_amount"].nil?
89
+ if attributes.key?("deducted_tax_amount")
90
90
  @deducted_tax_amount = attributes["deducted_tax_amount"]
91
91
 
92
92
  end
93
- unless attributes["order_date_type"].nil?
93
+ if attributes.key?("order_date_type")
94
94
  @order_date_type = attributes["order_date_type"]
95
95
 
96
96
  end
97
- unless attributes["buyer_credit_card_prefix"].nil?
97
+ if attributes.key?("buyer_credit_card_prefix")
98
98
  @buyer_credit_card_prefix = attributes["buyer_credit_card_prefix"]
99
99
 
100
100
  end
101
- unless attributes["custom_data"].nil?
101
+ if attributes.key?("custom_data")
102
102
  @custom_data = attributes["custom_data"]
103
103
 
104
104
  end
105
- unless attributes["buyer_name"].nil?
105
+ if attributes.key?("buyer_name")
106
106
  @buyer_name = attributes["buyer_name"]
107
107
 
108
108
  end
109
- unless attributes["invoice_date"].nil?
109
+ if attributes.key?("invoice_date")
110
110
  @invoice_date = attributes["invoice_date"]
111
111
 
112
112
  end
113
- unless attributes["create_timestamp"].nil?
113
+ if attributes.key?("create_timestamp")
114
114
  @create_timestamp = attributes["create_timestamp"]
115
115
 
116
116
  end
117
- unless attributes["currency_code"].nil?
117
+ if attributes.key?("currency_code")
118
118
  @currency_code = attributes["currency_code"]
119
119
 
120
120
  end
121
- unless attributes["sub_account_id"].nil?
121
+ if attributes.key?("sub_account_id")
122
122
  @sub_account_id = attributes["sub_account_id"]
123
123
 
124
124
  end
125
- unless attributes["supply_date"].nil?
125
+ if attributes.key?("supply_date")
126
126
  @supply_date = attributes["supply_date"]
127
127
 
128
128
  end
129
- unless attributes["invoice_image_url"].nil?
129
+ if attributes.key?("invoice_image_url")
130
130
  @invoice_image_url = attributes["invoice_image_url"]
131
131
 
132
132
  end
133
- unless attributes["key"].nil?
133
+ if attributes.key?("key")
134
134
  @key = attributes["key"]
135
135
 
136
136
  end
137
- unless attributes["tax_number_service"].nil?
137
+ if attributes.key?("tax_number_service")
138
138
  @tax_number_service = attributes["tax_number_service"]
139
139
 
140
140
  end
141
- unless attributes["invoice_address"].nil?
141
+ if attributes.key?("invoice_address")
142
142
  @invoice_address = InvoiceAddress.new(attributes["invoice_address"])
143
143
 
144
144
  end
145
- unless attributes["buyer_tax_number_valid"].nil?
145
+ if attributes.key?("buyer_tax_number_valid")
146
146
  @buyer_tax_number_valid = attributes["buyer_tax_number_valid"]
147
147
 
148
148
  end
149
- unless attributes["verification_token"].nil?
149
+ if attributes.key?("verification_token")
150
150
  @verification_token = attributes["verification_token"]
151
151
 
152
152
  end
153
- unless attributes["note"].nil?
153
+ if attributes.key?("note")
154
154
  @note = attributes["note"]
155
155
 
156
156
  end
157
- unless attributes["tax_supported"].nil?
157
+ if attributes.key?("tax_supported")
158
158
  @tax_supported = attributes["tax_supported"]
159
159
 
160
160
  end
161
- unless attributes["tax_data"].nil?
161
+ if attributes.key?("tax_data")
162
162
  @tax_data = TaxDataSchema.new(attributes["tax_data"])
163
163
 
164
164
  end
165
- unless attributes["transaction_lines"].nil?
165
+ if attributes.key?("transaction_lines")
166
166
  if (value = attributes["transaction_lines"]).is_a?(Array)
167
167
  @transaction_lines = value.map{ |v| TransactionLines.new(v) }
168
168
  end
169
169
  end
170
- unless attributes["buyer_tax_number"].nil?
170
+ if attributes.key?("buyer_tax_number")
171
171
  @buyer_tax_number = attributes["buyer_tax_number"]
172
172
 
173
173
  end
174
- unless attributes["external_key"].nil?
174
+ if attributes.key?("external_key")
175
175
  @external_key = attributes["external_key"]
176
176
 
177
177
  end
178
- unless attributes["status"].nil?
178
+ if attributes.key?("status")
179
179
  @status = attributes["status"]
180
180
 
181
181
  end
182
- unless attributes["custom_fields"].nil?
182
+ if attributes.key?("custom_fields")
183
183
  if (value = attributes["custom_fields"]).is_a?(Array)
184
184
  @custom_fields = value.map{ |v| CustomFields.new(v) }
185
185
  end
186
186
  end
187
- unless attributes["force_country_code"].nil?
187
+ if attributes.key?("force_country_code")
188
188
  @force_country_code = attributes["force_country_code"]
189
189
 
190
190
  end
191
- unless attributes["countries"].nil?
191
+ if attributes.key?("countries")
192
192
  @countries = Countries.new(attributes["countries"])
193
193
 
194
194
  end
195
- unless attributes["invoice_number"].nil?
195
+ if attributes.key?("invoice_number")
196
196
  @invoice_number = attributes["invoice_number"]
197
197
 
198
198
  end
199
- unless attributes["order_date"].nil?
199
+ if attributes.key?("order_date")
200
200
  @order_date = attributes["order_date"]
201
201
 
202
202
  end
203
- unless attributes["customer_id"].nil?
203
+ if attributes.key?("customer_id")
204
204
  @customer_id = attributes["customer_id"]
205
205
 
206
206
  end
207
- unless attributes["kind"].nil?
207
+ if attributes.key?("kind")
208
208
  @kind = attributes["kind"]
209
209
 
210
210
  end
211
- unless attributes["source"].nil?
211
+ if attributes.key?("source")
212
212
  @source = attributes["source"]
213
213
 
214
214
  end
215
- unless attributes["amount"].nil?
215
+ if attributes.key?("amount")
216
216
  @amount = attributes["amount"]
217
217
 
218
218
  end
219
- unless attributes["comments"].nil?
219
+ if attributes.key?("comments")
220
220
  @comments = attributes["comments"]
221
221
 
222
222
  end
223
- unless attributes["buyer_ip"].nil?
223
+ if attributes.key?("buyer_ip")
224
224
  @buyer_ip = attributes["buyer_ip"]
225
225
 
226
226
  end
227
- unless attributes["buyer_email"].nil?
227
+ if attributes.key?("buyer_email")
228
228
  @buyer_email = attributes["buyer_email"]
229
229
 
230
230
  end
231
- unless attributes["original_transaction_key"].nil?
231
+ if attributes.key?("original_transaction_key")
232
232
  @original_transaction_key = attributes["original_transaction_key"]
233
233
 
234
234
  end
235
- unless attributes["billing_country_code"].nil?
235
+ if attributes.key?("billing_country_code")
236
236
  @billing_country_code = attributes["billing_country_code"]
237
237
 
238
238
  end
239
- unless attributes["custom_id"].nil?
239
+ if attributes.key?("custom_id")
240
240
  @custom_id = attributes["custom_id"]
241
241
 
242
242
  end
243
- unless attributes["tax_amount"].nil?
243
+ if attributes.key?("tax_amount")
244
244
  @tax_amount = attributes["tax_amount"]
245
245
 
246
246
  end
247
- unless attributes["additional_currencies"].nil?
247
+ if attributes.key?("additional_currencies")
248
248
  @additional_currencies = AdditionalCurrencies.new(attributes["additional_currencies"])
249
249
 
250
250
  end
251
- unless attributes["invoice_place"].nil?
251
+ if attributes.key?("invoice_place")
252
252
  @invoice_place = attributes["invoice_place"]
253
253
 
254
254
  end
255
- unless attributes["total_amount"].nil?
255
+ if attributes.key?("total_amount")
256
256
  @total_amount = attributes["total_amount"]
257
257
 
258
258
  end
259
- unless attributes["tax_entity_name"].nil?
259
+ if attributes.key?("tax_entity_name")
260
260
  @tax_entity_name = attributes["tax_entity_name"]
261
261
 
262
262
  end
263
- unless attributes["evidence"].nil?
263
+ if attributes.key?("evidence")
264
264
  @evidence = Evidence.new(attributes["evidence"])
265
265
 
266
266
  end
267
- unless attributes["refunded_tax_amount"].nil?
267
+ if attributes.key?("refunded_tax_amount")
268
268
  @refunded_tax_amount = attributes["refunded_tax_amount"]
269
269
 
270
270
  end
271
- unless attributes["manual"].nil?
271
+ if attributes.key?("manual")
272
272
  @manual = attributes["manual"]
273
273
 
274
274
  end
275
- unless attributes["tax_timezone"].nil?
275
+ if attributes.key?("tax_timezone")
276
276
  @tax_timezone = attributes["tax_timezone"]
277
277
 
278
278
  end
279
- unless attributes["description"].nil?
279
+ if attributes.key?("description")
280
280
  @description = attributes["description"]
281
281
 
282
282
  end
283
- unless attributes["test"].nil?
283
+ if attributes.key?("test")
284
284
  @test = attributes["test"]
285
285
 
286
286
  end
287
- unless attributes["tax_deducted"].nil?
287
+ if attributes.key?("tax_deducted")
288
288
  @tax_deducted = attributes["tax_deducted"]
289
289
 
290
290
  end
291
- unless attributes["tax_country_code"].nil?
291
+ if attributes.key?("tax_country_code")
292
292
  @tax_country_code = attributes["tax_country_code"]
293
293
 
294
294
  end
295
- unless attributes["refunded_total_amount"].nil?
295
+ if attributes.key?("refunded_total_amount")
296
296
  @refunded_total_amount = attributes["refunded_total_amount"]
297
297
 
298
298
  end