Class: Moov::Models::Components::Transfer

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/transfer.rb

Overview

Details of a Transfer.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil, invoice_id: nil) ⇒ Transfer

Returns a new instance of Transfer.



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/moov/models/components/transfer.rb', line 76

def initialize(transfer_id:, created_on:, source:, destination:, status:, amount:, completed_on: nil, failure_reason: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: nil, moov_fees: nil, group_id: nil, cancellations: nil, refunded_amount: nil, refunds: nil, disputed_amount: nil, disputes: nil, sweep_id: nil, schedule_id: nil, occurrence_id: nil, payment_link_code: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil, invoice_id: nil)
  @transfer_id = transfer_id
  @created_on = created_on
  @source = source
  @destination = destination
  @status = status
  @amount = amount
  @completed_on = completed_on
  @failure_reason = failure_reason
  @description = description
  @metadata = 
  @facilitator_fee = facilitator_fee
  @moov_fee = moov_fee
  @moov_fee_decimal = moov_fee_decimal
  @moov_fee_details = moov_fee_details
  @moov_fees = moov_fees
  @group_id = group_id
  @cancellations = cancellations
  @refunded_amount = refunded_amount
  @refunds = refunds
  @disputed_amount = disputed_amount
  @disputes = disputes
  @sweep_id = sweep_id
  @schedule_id = schedule_id
  @occurrence_id = occurrence_id
  @payment_link_code = payment_link_code
  @sales_tax_amount = sales_tax_amount
  @foreign_id = foreign_id
  @line_items = line_items
  @invoice_id = invoice_id
end

Instance Method Details

#==(other) ⇒ Object



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/moov/models/components/transfer.rb', line 109

def ==(other)
  return false unless other.is_a? self.class
  return false unless @transfer_id == other.transfer_id
  return false unless @created_on == other.created_on
  return false unless @source == other.source
  return false unless @destination == other.destination
  return false unless @status == other.status
  return false unless @amount == other.amount
  return false unless @completed_on == other.completed_on
  return false unless @failure_reason == other.failure_reason
  return false unless @description == other.description
  return false unless @metadata == other.
  return false unless @facilitator_fee == other.facilitator_fee
  return false unless @moov_fee == other.moov_fee
  return false unless @moov_fee_decimal == other.moov_fee_decimal
  return false unless @moov_fee_details == other.moov_fee_details
  return false unless @moov_fees == other.moov_fees
  return false unless @group_id == other.group_id
  return false unless @cancellations == other.cancellations
  return false unless @refunded_amount == other.refunded_amount
  return false unless @refunds == other.refunds
  return false unless @disputed_amount == other.disputed_amount
  return false unless @disputes == other.disputes
  return false unless @sweep_id == other.sweep_id
  return false unless @schedule_id == other.schedule_id
  return false unless @occurrence_id == other.occurrence_id
  return false unless @payment_link_code == other.payment_link_code
  return false unless @sales_tax_amount == other.sales_tax_amount
  return false unless @foreign_id == other.foreign_id
  return false unless @line_items == other.line_items
  return false unless @invoice_id == other.invoice_id
  true
end