Class: GustoEmbedded::Models::Shared::WireInRequest

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

Overview

Representation of a wire in request

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid: nil, status: nil, origination_bank: nil, origination_bank_address: nil, recipient_name: nil, recipient_address: nil, recipient_account_number: nil, recipient_routing_number: nil, unique_tracking_code: nil, payment_type: nil, payment_uuid: nil, requested_amount: nil, wire_in_deadline: nil, additional_notes: nil, bank_name: nil, date_sent: nil, amount_sent: nil) ⇒ WireInRequest

Returns a new instance of WireInRequest.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/gusto_embedded/models/shared/wire_in_request.rb', line 51

def initialize(uuid: nil, status: nil, origination_bank: nil, origination_bank_address: nil, recipient_name: nil, recipient_address: nil, recipient_account_number: nil, recipient_routing_number: nil, unique_tracking_code: nil, payment_type: nil, payment_uuid: nil, requested_amount: nil, wire_in_deadline: nil, additional_notes: nil, bank_name: nil, date_sent: nil, amount_sent: nil)
  @uuid = uuid
  @status = status
  @origination_bank = origination_bank
  @origination_bank_address = origination_bank_address
  @recipient_name = recipient_name
  @recipient_address = recipient_address
  @recipient_account_number = 
  @recipient_routing_number = recipient_routing_number
  @unique_tracking_code = unique_tracking_code
  @payment_type = payment_type
  @payment_uuid = payment_uuid
  @requested_amount = requested_amount
  @wire_in_deadline = wire_in_deadline
  @additional_notes = additional_notes
  @bank_name = bank_name
  @date_sent = date_sent
  @amount_sent = amount_sent
end

Instance Method Details

#==(other) ⇒ Object



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/gusto_embedded/models/shared/wire_in_request.rb', line 72

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @status == other.status
  return false unless @origination_bank == other.origination_bank
  return false unless @origination_bank_address == other.origination_bank_address
  return false unless @recipient_name == other.recipient_name
  return false unless @recipient_address == other.recipient_address
  return false unless @recipient_account_number == other.
  return false unless @recipient_routing_number == other.recipient_routing_number
  return false unless @unique_tracking_code == other.unique_tracking_code
  return false unless @payment_type == other.payment_type
  return false unless @payment_uuid == other.payment_uuid
  return false unless @requested_amount == other.requested_amount
  return false unless @wire_in_deadline == other.wire_in_deadline
  return false unless @additional_notes == other.additional_notes
  return false unless @bank_name == other.bank_name
  return false unless @date_sent == other.date_sent
  return false unless @amount_sent == other.amount_sent
  true
end