Module: FinchAPI::Models::Jobs::AutomatedCreateParams::Body
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/finch_api/models/jobs/automated_create_params.rb
Defined Under Namespace
Classes: DataSyncAll, W4FormEmployeeSync
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(FinchAPI::Models::Jobs::AutomatedCreateParams::Body::DataSyncAll, FinchAPI::Models::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync)
|
|
# File 'lib/finch_api/models/jobs/automated_create_params.rb', line 70
|
Instance Method Details
#initialize(type: :data_sync_all) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/finch_api/models/jobs/automated_create_params.rb', line 20 module Body extend FinchAPI::Internal::Type::Union discriminator :type variant :data_sync_all, -> { FinchAPI::Jobs::AutomatedCreateParams::Body::DataSyncAll } variant :w4_form_employee_sync, -> { FinchAPI::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync } class DataSyncAll < FinchAPI::Internal::Type::BaseModel # @!attribute type # The type of job to start. # # @return [Symbol, :data_sync_all] required :type, const: :data_sync_all # @!method initialize(type: :data_sync_all) # @param type [Symbol, :data_sync_all] The type of job to start. end class W4FormEmployeeSync < FinchAPI::Internal::Type::BaseModel # @!attribute params # # @return [FinchAPI::Models::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync::Params] required :params, -> { FinchAPI::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync::Params } # @!attribute type # The type of job to start. # # @return [Symbol, :w4_form_employee_sync] required :type, const: :w4_form_employee_sync # @!method initialize(params:, type: :w4_form_employee_sync) # @param params [FinchAPI::Models::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync::Params] # # @param type [Symbol, :w4_form_employee_sync] The type of job to start. # @see FinchAPI::Models::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync#params class Params < FinchAPI::Internal::Type::BaseModel # @!attribute individual_id # The unique ID of the individual for W-4 data sync. # # @return [String] required :individual_id, String # @!method initialize(individual_id:) # @param individual_id [String] The unique ID of the individual for W-4 data sync. end end # @!method self.variants # @return [Array(FinchAPI::Models::Jobs::AutomatedCreateParams::Body::DataSyncAll, FinchAPI::Models::Jobs::AutomatedCreateParams::Body::W4FormEmployeeSync)] end |