Class: OpenApiSDK::Models::Operations::ListCommissionsResponseBody
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Operations::ListCommissionsResponseBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/operations/listcommissions_responsebody.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, user_id: nil, customer: nil) ⇒ ListCommissionsResponseBody
constructor
A new instance of ListCommissionsResponseBody.
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, user_id: nil, customer: nil) ⇒ ListCommissionsResponseBody
Returns a new instance of ListCommissionsResponseBody.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/open_api_sdk/models/operations/listcommissions_responsebody.rb', line 45 def initialize(id:, amount:, earnings:, currency:, status:, quantity:, created_at:, updated_at:, partner:, type: nil, invoice_id: nil, description: 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 @user_id = user_id @customer = customer end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/open_api_sdk/models/operations/listcommissions_responsebody.rb', line 63 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 @user_id == other.user_id return false unless @customer == other.customer true end |