Class: OpenApiSDK::Models::Operations::UpdateCustomerRequestBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(external_id: nil, country: nil, email: nil, name: nil, avatar: nil, stripe_customer_id: nil) ⇒ UpdateCustomerRequestBody

Returns a new instance of UpdateCustomerRequestBody.



29
30
31
32
33
34
35
36
# File 'lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb', line 29

def initialize(external_id: nil, country: nil, email: nil, name: nil, avatar: nil, stripe_customer_id: nil)
  @external_id = external_id
  @country = country
  @email = email
  @name = name
  @avatar = avatar
  @stripe_customer_id = stripe_customer_id
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @external_id == other.external_id
  return false unless @country == other.country
  return false unless @email == other.email
  return false unless @name == other.name
  return false unless @avatar == other.avatar
  return false unless @stripe_customer_id == other.stripe_customer_id
  true
end