Class: KintsugiSDK::Models::Shared::BackendSrcExemptionsModelsExemptionRead

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(exemption_type:, start_date:, id:, jurisdiction: nil, country_code: nil, end_date: nil, customer_id: nil, transaction_id: nil, fein: nil, sales_tax_id: nil, status: nil, customer_name: nil, attachment_id: nil, reseller: false) ⇒ BackendSrcExemptionsModelsExemptionRead

Returns a new instance of BackendSrcExemptionsModelsExemptionRead.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb', line 48

def initialize(exemption_type:, start_date:, id:, jurisdiction: nil, country_code: nil, end_date: nil, customer_id: nil, transaction_id: nil, fein: nil, sales_tax_id: nil, status: nil, customer_name: nil, attachment_id: nil, reseller: false)
  @exemption_type = exemption_type
  @start_date = start_date
  @id = id
  @jurisdiction = jurisdiction
  @country_code = country_code
  @end_date = end_date
  @customer_id = customer_id
  @transaction_id = transaction_id
  @fein = fein
  @sales_tax_id = sales_tax_id
  @status = status
  @customer_name = customer_name
  @attachment_id = attachment_id
  @reseller = reseller
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb', line 66

def ==(other)
  return false unless other.is_a? self.class
  return false unless @exemption_type == other.exemption_type
  return false unless @start_date == other.start_date
  return false unless @id == other.id
  return false unless @jurisdiction == other.jurisdiction
  return false unless @country_code == other.country_code
  return false unless @end_date == other.end_date
  return false unless @customer_id == other.customer_id
  return false unless @transaction_id == other.transaction_id
  return false unless @fein == other.fein
  return false unless @sales_tax_id == other.sales_tax_id
  return false unless @status == other.status
  return false unless @customer_name == other.customer_name
  return false unless @attachment_id == other.attachment_id
  return false unless @reseller == other.reseller
  true
end