Class: Moov::Models::Components::CreatedTransfer

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

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: nil, destination: nil, completed_on: nil, status: nil, failure_reason: nil, amount: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: 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) ⇒ CreatedTransfer

Returns a new instance of CreatedTransfer.



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/moov/models/components/createdtransfer.rb', line 70

def initialize(transfer_id:, created_on:, source: nil, destination: nil, completed_on: nil, status: nil, failure_reason: nil, amount: nil, description: nil, metadata: nil, facilitator_fee: nil, moov_fee: nil, moov_fee_decimal: nil, moov_fee_details: 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)
  @transfer_id = transfer_id
  @created_on = created_on
  @source = source
  @destination = destination
  @completed_on = completed_on
  @status = status
  @failure_reason = failure_reason
  @amount = amount
  @description = description
  @metadata = 
  @facilitator_fee = facilitator_fee
  @moov_fee = moov_fee
  @moov_fee_decimal = moov_fee_decimal
  @moov_fee_details = moov_fee_details
  @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
end

Instance Method Details

#==(other) ⇒ Object



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/moov/models/components/createdtransfer.rb', line 100

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 @completed_on == other.completed_on
  return false unless @status == other.status
  return false unless @failure_reason == other.failure_reason
  return false unless @amount == other.amount
  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 @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
  true
end