Class: Moov::Models::Components::RunTransfer

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(amount:, destination:, partner_account_id:, source:, description:, sales_tax_amount: nil, line_items: nil) ⇒ RunTransfer

Returns a new instance of RunTransfer.



31
32
33
34
35
36
37
38
39
# File 'lib/moov/models/components/runtransfer.rb', line 31

def initialize(amount:, destination:, partner_account_id:, source:, description:, sales_tax_amount: nil, line_items: nil)
  @amount = amount
  @destination = destination
  @partner_account_id = 
  @source = source
  @description = description
  @sales_tax_amount = sales_tax_amount
  @line_items = line_items
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/moov/models/components/runtransfer.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @destination == other.destination
  return false unless @partner_account_id == other.
  return false unless @source == other.source
  return false unless @description == other.description
  return false unless @sales_tax_amount == other.sales_tax_amount
  return false unless @line_items == other.line_items
  true
end