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:, type:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, invoice_id: nil, description: nil, metadata: 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:, type:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, invoice_id: nil, description: nil, metadata: nil, link: nil, user_id: nil, customer: nil) ⇒ CommissionCreatedEventData
Returns a new instance of CommissionCreatedEventData.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb', line 51 def initialize(id:, type:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, invoice_id: nil, description: nil, metadata: nil, link: nil, user_id: nil, customer: nil) @id = id @type = type @amount = amount @earnings = earnings @currency = currency @status = status @quantity = quantity @created_at = created_at @updated_at = updated_at @partner = partner @invoice_id = invoice_id @description = description @metadata = @link = link @user_id = user_id @customer = customer end |
Instance Method Details
#==(other) ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/open_api_sdk/models/shared/commissioncreatedevent_data.rb', line 71 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @type == other.type 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 @invoice_id == other.invoice_id return false unless @description == other.description return false unless @metadata == other. return false unless @link == other.link return false unless @user_id == other.user_id return false unless @customer == other.customer true end |