Class: OpenApiSDK::Models::Shared::CommissionCreatedEventCustomer
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Shared::CommissionCreatedEventCustomer
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/shared/commissioncreatedevent_customer.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#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) ⇒ CommissionCreatedEventCustomer
constructor
A new instance of CommissionCreatedEventCustomer.
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) ⇒ CommissionCreatedEventCustomer
Returns a new instance of CommissionCreatedEventCustomer.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_customer.rb', line 41 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) @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 end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_customer.rb', line 57 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 true end |