Class: GustoEmbedded::Models::Shared::ContractorCreateRequestBody

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

Overview

Request body for creating a contractor.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(wage_type:, start_date:, hourly_rate: nil, email: nil, first_name: nil, last_name: nil, middle_initial: nil, ssn: nil, business_name: nil, ein: nil, is_active: nil, type: Models::Shared::ContractorCreateRequestBodyType::INDIVIDUAL, self_onboarding: false, file_new_hire_report: false, work_state: nil) ⇒ ContractorCreateRequestBody

Returns a new instance of ContractorCreateRequestBody.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/gusto_embedded/models/shared/contractor_create_request_body.rb', line 59

def initialize(wage_type:, start_date:, hourly_rate: nil, email: nil, first_name: nil, last_name: nil, middle_initial: nil, ssn: nil, business_name: nil, ein: nil, is_active: nil, type: Models::Shared::ContractorCreateRequestBodyType::INDIVIDUAL, self_onboarding: false, file_new_hire_report: false, work_state: nil)
  @wage_type = wage_type
  @start_date = start_date
  @hourly_rate = hourly_rate
  @email = email
  @first_name = first_name
  @last_name = last_name
  @middle_initial = middle_initial
  @ssn = ssn
  @business_name = business_name
  @ein = ein
  @is_active = is_active
  @type = type
  @self_onboarding = self_onboarding
  @file_new_hire_report = file_new_hire_report
  @work_state = work_state
end

Instance Method Details

#==(other) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/gusto_embedded/models/shared/contractor_create_request_body.rb', line 78

def ==(other)
  return false unless other.is_a? self.class
  return false unless @wage_type == other.wage_type
  return false unless @start_date == other.start_date
  return false unless @hourly_rate == other.hourly_rate
  return false unless @email == other.email
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @middle_initial == other.middle_initial
  return false unless @ssn == other.ssn
  return false unless @business_name == other.business_name
  return false unless @ein == other.ein
  return false unless @is_active == other.is_active
  return false unless @type == other.type
  return false unless @self_onboarding == other.self_onboarding
  return false unless @file_new_hire_report == other.file_new_hire_report
  return false unless @work_state == other.work_state
  true
end