Class: KintsugiSDK::Models::Shared::CustomerTaxRegistrationRead
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::CustomerTaxRegistrationRead
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/customertaxregistrationread.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, customer_id:, country_code:, tax_type:, tax_id:, is_valid:) ⇒ CustomerTaxRegistrationRead
constructor
A new instance of CustomerTaxRegistrationRead.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, customer_id:, country_code:, tax_type:, tax_id:, is_valid:) ⇒ CustomerTaxRegistrationRead
Returns a new instance of CustomerTaxRegistrationRead.
29 30 31 32 33 34 35 36 |
# File 'lib/kintsugi_sdk/models/shared/customertaxregistrationread.rb', line 29 def initialize(id:, customer_id:, country_code:, tax_type:, tax_id:, is_valid:) @id = id @customer_id = customer_id @country_code = country_code @tax_type = tax_type @tax_id = tax_id @is_valid = is_valid end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/kintsugi_sdk/models/shared/customertaxregistrationread.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @customer_id == other.customer_id return false unless @country_code == other.country_code return false unless @tax_type == other.tax_type return false unless @tax_id == other.tax_id return false unless @is_valid == other.is_valid true end |