Class: GustoEmbedded::Models::Shared::AchTransaction

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/ach_transaction.rb

Overview

Representation of an ACH transaction

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, company_uuid: nil, payment_event_type: nil, payment_event_uuid: nil, recipient_uuid: nil, transaction_type: nil, payment_status: nil, payment_direction: nil, payment_event_check_date: nil, payment_date: nil, amount: nil, description: nil, recipient_type: nil, error_code: nil) ⇒ AchTransaction

Returns a new instance of AchTransaction.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/gusto_embedded/models/shared/ach_transaction.rb', line 45

def initialize(uuid:, company_uuid: nil, payment_event_type: nil, payment_event_uuid: nil, recipient_uuid: nil, transaction_type: nil, payment_status: nil, payment_direction: nil, payment_event_check_date: nil, payment_date: nil, amount: nil, description: nil, recipient_type: nil, error_code: nil)
  @uuid = uuid
  @company_uuid = company_uuid
  @payment_event_type = payment_event_type
  @payment_event_uuid = payment_event_uuid
  @recipient_uuid = recipient_uuid
  @transaction_type = transaction_type
  @payment_status = payment_status
  @payment_direction = payment_direction
  @payment_event_check_date = payment_event_check_date
  @payment_date = payment_date
  @amount = amount
  @description = description
  @recipient_type = recipient_type
  @error_code = error_code
end

Instance Method Details

#==(other) ⇒ Object



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/gusto_embedded/models/shared/ach_transaction.rb', line 63

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @payment_event_type == other.payment_event_type
  return false unless @payment_event_uuid == other.payment_event_uuid
  return false unless @recipient_uuid == other.recipient_uuid
  return false unless @transaction_type == other.transaction_type
  return false unless @payment_status == other.payment_status
  return false unless @payment_direction == other.payment_direction
  return false unless @payment_event_check_date == other.payment_event_check_date
  return false unless @payment_date == other.payment_date
  return false unless @amount == other.amount
  return false unless @description == other.description
  return false unless @recipient_type == other.recipient_type
  return false unless @error_code == other.error_code
  true
end