Class: Moov::Models::Components::ACHPaymentDetails

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

Overview

Options for payment links used to collect an ACH payment.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_entry_description: nil, originating_company_name: nil) ⇒ ACHPaymentDetails

Returns a new instance of ACHPaymentDetails.



21
22
23
24
# File 'lib/moov/models/components/achpaymentdetails.rb', line 21

def initialize(company_entry_description: nil, originating_company_name: nil)
  @company_entry_description = company_entry_description
  @originating_company_name = originating_company_name
end

Instance Method Details

#==(other) ⇒ Object



27
28
29
30
31
32
# File 'lib/moov/models/components/achpaymentdetails.rb', line 27

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