Class: GustoEmbedded::Models::Shared::ContractorPaymentDetailsListSplits

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(bank_account_uuid: nil, name: nil, hidden_account_number: nil, routing_number: nil, priority: nil, account_type: nil, encrypted_account_number: nil, split_amount: nil) ⇒ ContractorPaymentDetailsListSplits

Returns a new instance of ContractorPaymentDetailsListSplits.



33
34
35
36
37
38
39
40
41
42
# File 'lib/gusto_embedded/models/shared/contractor_payment_details_list_splits.rb', line 33

def initialize(bank_account_uuid: nil, name: nil, hidden_account_number: nil, routing_number: nil, priority: nil, account_type: nil, encrypted_account_number: nil, split_amount: nil)
  @bank_account_uuid = 
  @name = name
  @hidden_account_number = 
  @routing_number = routing_number
  @priority = priority
  @account_type = 
  @encrypted_account_number = 
  @split_amount = split_amount
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @bank_account_uuid == other.
  return false unless @name == other.name
  return false unless @hidden_account_number == other.
  return false unless @routing_number == other.routing_number
  return false unless @priority == other.priority
  return false unless @account_type == other.
  return false unless @encrypted_account_number == other.
  return false unless @split_amount == other.split_amount
  true
end