Class: KintsugiSDK::Models::Shared::BackendSrcExemptionsSerializersExemptionRead

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(start_date:, id:, exemption_type:, status:, country_code: nil, jurisdiction: nil, end_date: nil, transaction_id: nil, fein: nil, sales_tax_id: nil, customer: nil, attachment: nil, reseller: false) ⇒ BackendSrcExemptionsSerializersExemptionRead

Returns a new instance of BackendSrcExemptionsSerializersExemptionRead.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb', line 44

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

Instance Method Details

#==(other) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb', line 61

def ==(other)
  return false unless other.is_a? self.class
  return false unless @start_date == other.start_date
  return false unless @id == other.id
  return false unless @exemption_type == other.exemption_type
  return false unless @status == other.status
  return false unless @country_code == other.country_code
  return false unless @jurisdiction == other.jurisdiction
  return false unless @end_date == other.end_date
  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 @customer == other.customer
  return false unless @attachment == other.attachment
  return false unless @reseller == other.reseller
  true
end