Class: KintsugiSDK::Models::Shared::NexusResponse

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/nexusresponse.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, threshold_sales:, threshold_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, previous_period_start_date:, previous_period_end_date:, id:, created_at:, updated_at:, organization_id:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, marketplace_included:, processing_status: nil, status: nil, nexus_met_date: nil, economic_nexus_met_date: nil, physical_nexus_met_date: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, predicted_month_from_today: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, periods: nil, currency: nil, registration: nil, registration_regime: nil, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: '0.00', imported_tax_liability: '0.00', tax_liability: '0.00', nexus_met: false, economic_nexus_met: false, physical_nexus_met: false, collected_tax_nexus_met: false, collected_tax_enabled: true, earliest_collected_date: DateTime.iso8601('2018-01-01T00:00:00'), vda_eligible: false) ⇒ NexusResponse

Returns a new instance of NexusResponse.



132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/kintsugi_sdk/models/shared/nexusresponse.rb', line 132

def initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, threshold_sales:, threshold_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, previous_period_start_date:, previous_period_end_date:, id:, created_at:, updated_at:, organization_id:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, marketplace_included:, processing_status: nil, status: nil, nexus_met_date: nil, economic_nexus_met_date: nil, physical_nexus_met_date: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, predicted_month_from_today: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, periods: nil, currency: nil, registration: nil, registration_regime: nil, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: '0.00', imported_tax_liability: '0.00', tax_liability: '0.00', nexus_met: false, economic_nexus_met: false, physical_nexus_met: false, collected_tax_nexus_met: false, collected_tax_enabled: true, earliest_collected_date: DateTime.iso8601('2018-01-01T00:00:00'), vda_eligible: false)
  @country_code = country_code
  @state_code = state_code
  @state_name = state_name
  @treatment_of_exempt_transactions = treatment_of_exempt_transactions
  @trigger = trigger
  @sales_or_transactions = sales_or_transactions
  @threshold_sales = threshold_sales
  @threshold_transactions = threshold_transactions
  @start_date = start_date
  @period_model = period_model
  @period_start_date = period_start_date
  @period_end_date = period_end_date
  @previous_period_start_date = previous_period_start_date
  @previous_period_end_date = previous_period_end_date
  @id = id
  @created_at = created_at
  @updated_at = updated_at
  @organization_id = organization_id
  @is_vda_eligible = is_vda_eligible
  @nexus_type = nexus_type
  @total_transactions = total_transactions
  @total_transactions_included = total_transactions_included
  @total_transactions_exempted = total_transactions_exempted
  @total_transactions_marketplace = total_transactions_marketplace
  @marketplace_included = marketplace_included
  @processing_status = processing_status
  @status = status
  @nexus_met_date = nexus_met_date
  @economic_nexus_met_date = economic_nexus_met_date
  @physical_nexus_met_date = physical_nexus_met_date
  @collected_tax_nexus_met_date = collected_tax_nexus_met_date
  @earliest_transaction_date = earliest_transaction_date
  @most_recent_transaction_date = most_recent_transaction_date
  @predicted_month_from_today = predicted_month_from_today
  @confidence_level = confidence_level
  @last_processed_at = last_processed_at
  @last_tax_liability_processed_at = last_tax_liability_processed_at
  @periods = periods
  @currency = currency
  @registration = registration
  @registration_regime = registration_regime
  @transaction_count = transaction_count
  @transactions_amount = transactions_amount
  @previous_transaction_count = previous_transaction_count
  @previous_transactions_amount = previous_transactions_amount
  @calculated_tax_liability = calculated_tax_liability
  @imported_tax_liability = imported_tax_liability
  @tax_liability = tax_liability
  @nexus_met = nexus_met
  @economic_nexus_met = economic_nexus_met
  @physical_nexus_met = physical_nexus_met
  @collected_tax_nexus_met = collected_tax_nexus_met
  @collected_tax_enabled = collected_tax_enabled
  @earliest_collected_date = earliest_collected_date
  @vda_eligible = vda_eligible
end

Instance Method Details

#==(other) ⇒ Object



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# File 'lib/kintsugi_sdk/models/shared/nexusresponse.rb', line 191

def ==(other)
  return false unless other.is_a? self.class
  return false unless @country_code == other.country_code
  return false unless @state_code == other.state_code
  return false unless @state_name == other.state_name
  return false unless @treatment_of_exempt_transactions == other.treatment_of_exempt_transactions
  return false unless @trigger == other.trigger
  return false unless @sales_or_transactions == other.sales_or_transactions
  return false unless @threshold_sales == other.threshold_sales
  return false unless @threshold_transactions == other.threshold_transactions
  return false unless @start_date == other.start_date
  return false unless @period_model == other.period_model
  return false unless @period_start_date == other.period_start_date
  return false unless @period_end_date == other.period_end_date
  return false unless @previous_period_start_date == other.previous_period_start_date
  return false unless @previous_period_end_date == other.previous_period_end_date
  return false unless @id == other.id
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @organization_id == other.organization_id
  return false unless @is_vda_eligible == other.is_vda_eligible
  return false unless @nexus_type == other.nexus_type
  return false unless @total_transactions == other.total_transactions
  return false unless @total_transactions_included == other.total_transactions_included
  return false unless @total_transactions_exempted == other.total_transactions_exempted
  return false unless @total_transactions_marketplace == other.total_transactions_marketplace
  return false unless @marketplace_included == other.marketplace_included
  return false unless @processing_status == other.processing_status
  return false unless @status == other.status
  return false unless @nexus_met_date == other.nexus_met_date
  return false unless @economic_nexus_met_date == other.economic_nexus_met_date
  return false unless @physical_nexus_met_date == other.physical_nexus_met_date
  return false unless @collected_tax_nexus_met_date == other.collected_tax_nexus_met_date
  return false unless @earliest_transaction_date == other.earliest_transaction_date
  return false unless @most_recent_transaction_date == other.most_recent_transaction_date
  return false unless @predicted_month_from_today == other.predicted_month_from_today
  return false unless @confidence_level == other.confidence_level
  return false unless @last_processed_at == other.last_processed_at
  return false unless @last_tax_liability_processed_at == other.last_tax_liability_processed_at
  return false unless @periods == other.periods
  return false unless @currency == other.currency
  return false unless @registration == other.registration
  return false unless @registration_regime == other.registration_regime
  return false unless @transaction_count == other.transaction_count
  return false unless @transactions_amount == other.transactions_amount
  return false unless @previous_transaction_count == other.previous_transaction_count
  return false unless @previous_transactions_amount == other.previous_transactions_amount
  return false unless @calculated_tax_liability == other.calculated_tax_liability
  return false unless @imported_tax_liability == other.imported_tax_liability
  return false unless @tax_liability == other.tax_liability
  return false unless @nexus_met == other.nexus_met
  return false unless @economic_nexus_met == other.economic_nexus_met
  return false unless @physical_nexus_met == other.physical_nexus_met
  return false unless @collected_tax_nexus_met == other.collected_tax_nexus_met
  return false unless @collected_tax_enabled == other.collected_tax_enabled
  return false unless @earliest_collected_date == other.earliest_collected_date
  return false unless @vda_eligible == other.vda_eligible
  true
end