Class: OpenApiSDK::Models::Operations::GetCustomersResponseBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, name:, external_id:, created_at:, email: nil, avatar: nil, stripe_customer_id: nil, country: nil, sales: nil, sale_amount: nil, first_sale_at: nil, subscription_canceled_at: nil, link: nil, program_id: nil, partner: nil, discount: nil) ⇒ GetCustomersResponseBody

Returns a new instance of GetCustomersResponseBody.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/open_api_sdk/models/operations/getcustomers_responsebody.rb', line 49

def initialize(id:, name:, external_id:, created_at:, email: nil, avatar: nil, stripe_customer_id: nil, country: nil, sales: nil, sale_amount: nil, first_sale_at: nil, subscription_canceled_at: nil, link: nil, program_id: nil, partner: nil, discount: nil)
  @id = id
  @name = name
  @external_id = external_id
  @created_at = created_at
  @email = email
  @avatar = avatar
  @stripe_customer_id = stripe_customer_id
  @country = country
  @sales = sales
  @sale_amount = sale_amount
  @first_sale_at = first_sale_at
  @subscription_canceled_at = subscription_canceled_at
  @link = link
  @program_id = program_id
  @partner = partner
  @discount = discount
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
88
# File 'lib/open_api_sdk/models/operations/getcustomers_responsebody.rb', line 69

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @external_id == other.external_id
  return false unless @created_at == other.created_at
  return false unless @email == other.email
  return false unless @avatar == other.avatar
  return false unless @stripe_customer_id == other.stripe_customer_id
  return false unless @country == other.country
  return false unless @sales == other.sales
  return false unless @sale_amount == other.sale_amount
  return false unless @first_sale_at == other.first_sale_at
  return false unless @subscription_canceled_at == other.subscription_canceled_at
  return false unless @link == other.link
  return false unless @program_id == other.program_id
  return false unless @partner == other.partner
  return false unless @discount == other.discount
  true
end