Class: Moov::Models::Components::CreateTransfer
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateTransfer
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createtransfer.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil) ⇒ CreateTransfer
constructor
A new instance of CreateTransfer.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil) ⇒ CreateTransfer
Returns a new instance of CreateTransfer.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/moov/models/components/createtransfer.rb', line 36 def initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, sales_tax_amount: nil, foreign_id: nil, line_items: nil) @source = source @destination = destination @amount = amount @facilitator_fee = facilitator_fee @description = description @metadata = @sales_tax_amount = sales_tax_amount @foreign_id = foreign_id @line_items = line_items end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/moov/models/components/createtransfer.rb', line 49 def ==(other) return false unless other.is_a? self.class return false unless @source == other.source return false unless @destination == other.destination return false unless @amount == other.amount return false unless @facilitator_fee == other.facilitator_fee return false unless @description == other.description return false unless @metadata == other. 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 true end |