Class: Moov::Models::Components::CreateRunTransfer

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

Overview

Defines the attributes of a transfer.

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) ⇒ CreateRunTransfer

Returns a new instance of CreateRunTransfer.



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

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



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

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