Class: KintsugiSDK::Models::Shared::ProductCreateManual

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(external_id:, name:, product_category:, product_subcategory:, tax_exempt:, description: nil, status: nil, source: nil) ⇒ ProductCreateManual

Returns a new instance of ProductCreateManual.



34
35
36
37
38
39
40
41
42
43
# File 'lib/kintsugi_sdk/models/shared/productcreatemanual.rb', line 34

def initialize(external_id:, name:, product_category:, product_subcategory:, tax_exempt:, description: nil, status: nil, source: nil)
  @external_id = external_id
  @name = name
  @product_category = product_category
  @product_subcategory = product_subcategory
  @tax_exempt = tax_exempt
  @description = description
  @status = status
  @source = source
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @external_id == other.external_id
  return false unless @name == other.name
  return false unless @product_category == other.product_category
  return false unless @product_subcategory == other.product_subcategory
  return false unless @tax_exempt == other.tax_exempt
  return false unless @description == other.description
  return false unless @status == other.status
  return false unless @source == other.source
  true
end