Class: GustoEmbedded::Models::Shared::PaymentConfigs

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_uuid: nil, partner_uuid: nil, payment_speed: nil, partner_owned_disbursement: nil, earned_fast_ach_blockers: nil, fast_payment_limit: nil) ⇒ PaymentConfigs

Returns a new instance of PaymentConfigs.



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

def initialize(company_uuid: nil, partner_uuid: nil, payment_speed: nil, partner_owned_disbursement: nil, earned_fast_ach_blockers: nil, fast_payment_limit: nil)
  @company_uuid = company_uuid
  @partner_uuid = partner_uuid
  @payment_speed = payment_speed
  @partner_owned_disbursement = partner_owned_disbursement
  @earned_fast_ach_blockers = earned_fast_ach_blockers
  @fast_payment_limit = fast_payment_limit
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/shared/payment_configs.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_uuid == other.company_uuid
  return false unless @partner_uuid == other.partner_uuid
  return false unless @payment_speed == other.payment_speed
  return false unless @partner_owned_disbursement == other.partner_owned_disbursement
  return false unless @earned_fast_ach_blockers == other.earned_fast_ach_blockers
  return false unless @fast_payment_limit == other.fast_payment_limit
  true
end