Class: GustoEmbedded::Models::Shared::PayrollReceipt

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(payroll_uuid: nil, company_uuid: nil, name_of_sender: nil, name_of_recipient: nil, recipient_notice: nil, debit_date: nil, license: nil, license_uri: nil, right_to_refund: nil, liability_of_licensee: nil, totals: nil, taxes: nil, employee_compensations: nil, licensee: nil) ⇒ PayrollReceipt

Returns a new instance of PayrollReceipt.



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

def initialize(payroll_uuid: nil, company_uuid: nil, name_of_sender: nil, name_of_recipient: nil, recipient_notice: nil, debit_date: nil, license: nil, license_uri: nil, right_to_refund: nil, liability_of_licensee: nil, totals: nil, taxes: nil, employee_compensations: nil, licensee: nil)
  @payroll_uuid = payroll_uuid
  @company_uuid = company_uuid
  @name_of_sender = name_of_sender
  @name_of_recipient = name_of_recipient
  @recipient_notice = recipient_notice
  @debit_date = debit_date
  @license = license
  @license_uri = license_uri
  @right_to_refund = right_to_refund
  @liability_of_licensee = liability_of_licensee
  @totals = totals
  @taxes = taxes
  @employee_compensations = employee_compensations
  @licensee = licensee
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/payroll_receipt.rb', line 63

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payroll_uuid == other.payroll_uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @name_of_sender == other.name_of_sender
  return false unless @name_of_recipient == other.name_of_recipient
  return false unless @recipient_notice == other.recipient_notice
  return false unless @debit_date == other.debit_date
  return false unless @license == other.license
  return false unless @license_uri == other.license_uri
  return false unless @right_to_refund == other.right_to_refund
  return false unless @liability_of_licensee == other.liability_of_licensee
  return false unless @totals == other.totals
  return false unless @taxes == other.taxes
  return false unless @employee_compensations == other.employee_compensations
  return false unless @licensee == other.licensee
  true
end