Class: GustoEmbedded::Models::Operations::PostV1CompaniesCompanyIdContractorPaymentGroupsPreviewContractorPayments

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(contractor_uuid: nil, wage: nil, hours: nil, bonus: nil, reimbursement: nil, payment_method: Models::Operations::PostV1CompaniesCompanyIdContractorPaymentGroupsPreviewPaymentMethod::DIRECT_DEPOSIT) ⇒ PostV1CompaniesCompanyIdContractorPaymentGroupsPreviewContractorPayments

Returns a new instance of PostV1CompaniesCompanyIdContractorPaymentGroupsPreviewContractorPayments.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_contractor_252b61.rb', line 29

def initialize(contractor_uuid: nil, wage: nil, hours: nil, bonus: nil, reimbursement: nil, payment_method: Models::Operations::PostV1CompaniesCompanyIdContractorPaymentGroupsPreviewPaymentMethod::DIRECT_DEPOSIT)
  @contractor_uuid = contractor_uuid
  @wage = wage
  @hours = hours
  @bonus = bonus
  @reimbursement = reimbursement
  @payment_method = payment_method
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_id_contractor_payment_groups_preview_contractor_252b61.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @contractor_uuid == other.contractor_uuid
  return false unless @wage == other.wage
  return false unless @hours == other.hours
  return false unless @bonus == other.bonus
  return false unless @reimbursement == other.reimbursement
  return false unless @payment_method == other.payment_method
  true
end