Class: OpenApiSDK::Models::Shared::CommissionCreatedEventData
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Shared::CommissionCreatedEventData
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, type: nil, invoice_id: nil, description: nil, link: nil, user_id: nil, customer: nil) ⇒ CommissionCreatedEventData
constructor
A new instance of CommissionCreatedEventData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, type: nil, invoice_id: nil, description: nil, link: nil, user_id: nil, customer: nil) ⇒ CommissionCreatedEventData
Returns a new instance of CommissionCreatedEventData.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb', line 47 def initialize(id:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, type: nil, invoice_id: nil, description: nil, link: nil, user_id: nil, customer: nil) @id = id @amount = amount @earnings = earnings @currency = currency @status = status @quantity = quantity @created_at = created_at @updated_at = updated_at @partner = partner @type = type @invoice_id = invoice_id @description = description @link = link @user_id = user_id @customer = customer end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @amount == other.amount return false unless @earnings == other.earnings return false unless @currency == other.currency return false unless @status == other.status return false unless @quantity == other.quantity return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @partner == other.partner return false unless @type == other.type return false unless @invoice_id == other.invoice_id return false unless @description == other.description return false unless @link == other.link return false unless @user_id == other.user_id return false unless @customer == other.customer true end |