Class: OpenApiSDK::Models::Operations::ListPayoutsResponseBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, amount:, currency:, status:, created_at:, partner:, invoice_id: nil, period_start: nil, period_end: nil, updated_at: nil, initiated_at: nil, paid_at: nil, mode: nil, method: nil, description: nil, failure_reason: nil, trace_id: nil, user: nil) ⇒ ListPayoutsResponseBody

Returns a new instance of ListPayoutsResponseBody.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/open_api_sdk/models/operations/listpayouts_responsebody.rb', line 53

def initialize(id:, amount:, currency:, status:, created_at:, partner:, invoice_id: nil, period_start: nil, period_end: nil, updated_at: nil, initiated_at: nil, paid_at: nil, mode: nil, method: nil, description: nil, failure_reason: nil, trace_id: nil, user: nil)
  @id = id
  @amount = amount
  @currency = currency
  @status = status
  @created_at = created_at
  @partner = partner
  @invoice_id = invoice_id
  @period_start = period_start
  @period_end = period_end
  @updated_at = updated_at
  @initiated_at = initiated_at
  @paid_at = paid_at
  @mode = mode
  @method = method
  @description = description
  @failure_reason = failure_reason
  @trace_id = trace_id
  @user = user
end

Instance Method Details

#==(other) ⇒ Object



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/open_api_sdk/models/operations/listpayouts_responsebody.rb', line 75

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 @currency == other.currency
  return false unless @status == other.status
  return false unless @created_at == other.created_at
  return false unless @partner == other.partner
  return false unless @invoice_id == other.invoice_id
  return false unless @period_start == other.period_start
  return false unless @period_end == other.period_end
  return false unless @updated_at == other.updated_at
  return false unless @initiated_at == other.initiated_at
  return false unless @paid_at == other.paid_at
  return false unless @mode == other.mode
  return false unless @method == other.method
  return false unless @description == other.description
  return false unless @failure_reason == other.failure_reason
  return false unless @trace_id == other.trace_id
  return false unless @user == other.user
  true
end