Class: GustoEmbedded::Models::Shared::UnprocessedPayroll

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

Overview

A payroll that has been transitioned back to unprocessed state after cancellation.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(payroll_deadline: nil, check_date: nil, processed: nil, uuid: nil, payroll_uuid: nil, company_uuid: nil, off_cycle: nil, auto_pilot: nil, external: nil, pay_period: nil, created_at: nil, processed_date: nil, calculated_at: nil, off_cycle_reason: nil, partner_owned_disbursement: nil) ⇒ UnprocessedPayroll

Returns a new instance of UnprocessedPayroll.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/gusto_embedded/models/shared/unprocessed_payroll.rb', line 47

def initialize(payroll_deadline: nil, check_date: nil, processed: nil, uuid: nil, payroll_uuid: nil, company_uuid: nil, off_cycle: nil, auto_pilot: nil, external: nil, pay_period: nil, created_at: nil, processed_date: nil, calculated_at: nil, off_cycle_reason: nil, partner_owned_disbursement: nil)
  @payroll_deadline = payroll_deadline
  @check_date = check_date
  @processed = processed
  @uuid = uuid
  @payroll_uuid = payroll_uuid
  @company_uuid = company_uuid
  @off_cycle = off_cycle
  @auto_pilot = auto_pilot
  @external = external
  @pay_period = pay_period
  @created_at = created_at
  @processed_date = processed_date
  @calculated_at = calculated_at
  @off_cycle_reason = off_cycle_reason
  @partner_owned_disbursement = partner_owned_disbursement
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/gusto_embedded/models/shared/unprocessed_payroll.rb', line 66

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payroll_deadline == other.payroll_deadline
  return false unless @check_date == other.check_date
  return false unless @processed == other.processed
  return false unless @uuid == other.uuid
  return false unless @payroll_uuid == other.payroll_uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @off_cycle == other.off_cycle
  return false unless @auto_pilot == other.auto_pilot
  return false unless @external == other.external
  return false unless @pay_period == other.pay_period
  return false unless @created_at == other.created_at
  return false unless @processed_date == other.processed_date
  return false unless @calculated_at == other.calculated_at
  return false unless @off_cycle_reason == other.off_cycle_reason
  return false unless @partner_owned_disbursement == other.partner_owned_disbursement
  true
end