Class: KintsugiSDK::Models::Shared::Exemption

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kintsugi_sdk/models/shared/exemption.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: nil, created_at: nil, updated_at: nil, jurisdiction: nil, country_code: nil, end_date: nil, customer_id: nil, transaction_id: nil, fein: nil, sales_tax_id: nil, status: nil, organization_id: nil, reseller: false) ⇒ Exemption

Returns a new instance of Exemption.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/kintsugi_sdk/models/shared/exemption.rb', line 50

def initialize(exemption_type:, start_date:, id: nil, created_at: nil, updated_at: nil, jurisdiction: nil, country_code: nil, end_date: nil, customer_id: nil, transaction_id: nil, fein: nil, sales_tax_id: nil, status: nil, organization_id: nil, reseller: false)
  @exemption_type = exemption_type
  @start_date = start_date
  @id = id
  @created_at = created_at
  @updated_at = updated_at
  @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
  @organization_id = organization_id
  @reseller = reseller
end

Instance Method Details

#==(other) ⇒ Object



69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/kintsugi_sdk/models/shared/exemption.rb', line 69

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 @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  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 @organization_id == other.organization_id
  return false unless @reseller == other.reseller
  true
end