Class: Moov::Models::Components::MxPayload

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

Overview

Describes the account to link to the Moov account using a MX processor token.

‘sandbox` - When linking a bank account to a `sandbox` account using an MX authorization token a default bank account routing number will be used. The following default data will be used to generate the bank account in this flow:

“‘

RoutingNumber: "123456780",
BankName: "Gringotts Bank"

“‘

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(mx:) ⇒ MxPayload

Returns a new instance of MxPayload.



31
32
33
# File 'lib/moov/models/components/mxpayload.rb', line 31

def initialize(mx:)
  @mx = mx
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
# File 'lib/moov/models/components/mxpayload.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @mx == other.mx
  true
end