Class: KintsugiSDK::Models::Shared::ExemptionCreate

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



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/kintsugi_sdk/models/shared/exemptioncreate.rb', line 40

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

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/kintsugi_sdk/models/shared/exemptioncreate.rb', line 55

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 @customer_id == other.customer_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 @jurisdiction == other.jurisdiction
  return false unless @country_code == other.country_code
  return false unless @end_date == other.end_date
  return false unless @transaction_id == other.transaction_id
  return false unless @reseller == other.reseller
  true
end