finch-api 0.1.0.pre.alpha.29 → 0.1.0.pre.alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -0
- data/README.md +1 -1
- data/lib/finch_api/errors.rb +25 -11
- data/lib/finch_api/file_part.rb +10 -7
- data/lib/finch_api/internal/individuals_page.rb +1 -1
- data/lib/finch_api/internal/page.rb +1 -1
- data/lib/finch_api/internal/responses_page.rb +1 -1
- data/lib/finch_api/internal/single_page.rb +1 -1
- data/lib/finch_api/internal/transport/base_client.rb +11 -7
- data/lib/finch_api/internal/transport/pooled_net_requester.rb +34 -31
- data/lib/finch_api/internal/type/base_page.rb +1 -1
- data/lib/finch_api/internal/type/file_input.rb +7 -4
- data/lib/finch_api/internal/util.rb +8 -7
- data/lib/finch_api/models/access_token_create_params.rb +13 -13
- data/lib/finch_api/models/connect/session_new_params.rb +66 -50
- data/lib/finch_api/models/connect/session_reauthenticate_params.rb +10 -10
- data/lib/finch_api/models/create_access_token_response.rb +9 -1
- data/lib/finch_api/models/hris/benefit_contribution.rb +124 -29
- data/lib/finch_api/models/hris/benefit_create_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_list_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_retrieve_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_update_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_benefit.rb +222 -6
- data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +40 -2
- data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_params.rb +10 -1
- data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +9 -1
- data/lib/finch_api/models/hris/company_retrieve_params.rb +9 -1
- data/lib/finch_api/models/hris/directory_list_individuals_params.rb +9 -1
- data/lib/finch_api/models/hris/directory_list_params.rb +9 -1
- data/lib/finch_api/models/hris/document_list_params.rb +9 -1
- data/lib/finch_api/models/hris/document_response.rb +11 -11
- data/lib/finch_api/models/hris/document_retreive_params.rb +9 -1
- data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +9 -1
- data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +11 -1
- data/lib/finch_api/models/hris/pay_statement.rb +53 -103
- data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +9 -1
- data/lib/finch_api/models/hris/payment_list_params.rb +9 -1
- data/lib/finch_api/models/hris/supported_benefit.rb +1 -0
- data/lib/finch_api/models/hris/w42005.rb +20 -20
- data/lib/finch_api/models/hris/w42020.rb +30 -30
- data/lib/finch_api/models/introspection.rb +38 -23
- data/lib/finch_api/models/jobs/automated_list_params.rb +1 -14
- data/lib/finch_api/models/jobs/automated_retrieve_params.rb +1 -14
- data/lib/finch_api/models/jobs/manual_retrieve_params.rb +1 -14
- data/lib/finch_api/models/payroll/pay_group_list_params.rb +11 -1
- data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +9 -1
- data/lib/finch_api/models/provider.rb +42 -1092
- data/lib/finch_api/models/provider_list_response.rb +143 -0
- data/lib/finch_api/models/request_forwarding_forward_params.rb +10 -6
- data/lib/finch_api/models/request_forwarding_forward_response.rb +69 -48
- data/lib/finch_api/resources/access_tokens.rb +3 -3
- data/lib/finch_api/resources/connect/sessions.rb +12 -12
- data/lib/finch_api/resources/hris/benefits/individuals.rb +24 -10
- data/lib/finch_api/resources/hris/benefits.rb +37 -16
- data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +38 -15
- data/lib/finch_api/resources/hris/company/pay_statement_item.rb +3 -1
- data/lib/finch_api/resources/hris/company.rb +6 -2
- data/lib/finch_api/resources/hris/directory.rb +3 -1
- data/lib/finch_api/resources/hris/documents.rb +9 -3
- data/lib/finch_api/resources/hris/employments.rb +7 -3
- data/lib/finch_api/resources/hris/individuals.rb +10 -4
- data/lib/finch_api/resources/hris/pay_statements.rb +7 -3
- data/lib/finch_api/resources/hris/payments.rb +3 -1
- data/lib/finch_api/resources/jobs/automated.rb +3 -16
- data/lib/finch_api/resources/jobs/manual.rb +2 -10
- data/lib/finch_api/resources/payroll/pay_groups.rb +12 -3
- data/lib/finch_api/resources/providers.rb +2 -2
- data/lib/finch_api/resources/request_forwarding.rb +2 -2
- data/lib/finch_api/version.rb +1 -1
- data/lib/finch_api.rb +1 -0
- data/rbi/finch_api/errors.rbi +29 -2
- data/rbi/finch_api/file_part.rbi +1 -1
- data/rbi/finch_api/internal/transport/base_client.rbi +4 -5
- data/rbi/finch_api/internal/type/base_page.rbi +1 -1
- data/rbi/finch_api/internal/util.rbi +1 -1
- data/rbi/finch_api/models/access_token_create_params.rbi +19 -13
- data/rbi/finch_api/models/connect/session_new_params.rbi +124 -98
- data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +23 -23
- data/rbi/finch_api/models/create_access_token_response.rbi +8 -0
- data/rbi/finch_api/models/hris/benefit_contribution.rbi +270 -52
- data/rbi/finch_api/models/hris/benefit_create_params.rbi +11 -0
- data/rbi/finch_api/models/hris/benefit_list_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_update_params.rbi +15 -1
- data/rbi/finch_api/models/hris/benefits/individual_benefit.rbi +515 -20
- data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +87 -0
- data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +22 -5
- data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +11 -0
- data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbi +22 -5
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbi +22 -5
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbi +15 -1
- data/rbi/finch_api/models/hris/company/pay_statement_item_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +11 -0
- data/rbi/finch_api/models/hris/directory_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/document_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/document_response.rbi +14 -29
- data/rbi/finch_api/models/hris/document_retreive_params.rbi +24 -5
- data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +16 -1
- data/rbi/finch_api/models/hris/pay_statement.rbi +69 -272
- data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/payment_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/supported_benefit.rbi +5 -0
- data/rbi/finch_api/models/hris/w42005.rbi +28 -38
- data/rbi/finch_api/models/hris/w42020.rbi +37 -43
- data/rbi/finch_api/models/introspection.rbi +57 -33
- data/rbi/finch_api/models/jobs/automated_list_params.rbi +0 -15
- data/rbi/finch_api/models/jobs/automated_retrieve_params.rbi +5 -25
- data/rbi/finch_api/models/jobs/manual_retrieve_params.rbi +5 -25
- data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +11 -0
- data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/provider.rbi +75 -2507
- data/rbi/finch_api/models/provider_list_response.rbi +280 -0
- data/rbi/finch_api/models/request_forwarding_forward_params.rbi +6 -6
- data/rbi/finch_api/models/request_forwarding_forward_response.rbi +93 -60
- data/rbi/finch_api/resources/access_tokens.rbi +5 -5
- data/rbi/finch_api/resources/connect/sessions.rbi +22 -14
- data/rbi/finch_api/resources/hris/benefits/individuals.rbi +20 -3
- data/rbi/finch_api/resources/hris/benefits.rbi +39 -12
- data/rbi/finch_api/resources/hris/company/pay_statement_item/rules.rbi +35 -8
- data/rbi/finch_api/resources/hris/company/pay_statement_item.rbi +3 -0
- data/rbi/finch_api/resources/hris/company.rbi +9 -4
- data/rbi/finch_api/resources/hris/directory.rbi +3 -0
- data/rbi/finch_api/resources/hris/documents.rbi +6 -0
- data/rbi/finch_api/resources/hris/employments.rbi +4 -1
- data/rbi/finch_api/resources/hris/individuals.rbi +10 -1
- data/rbi/finch_api/resources/hris/pay_statements.rbi +4 -1
- data/rbi/finch_api/resources/hris/payments.rbi +3 -0
- data/rbi/finch_api/resources/jobs/automated.rbi +1 -14
- data/rbi/finch_api/resources/jobs/manual.rbi +1 -9
- data/rbi/finch_api/resources/payroll/pay_groups.rbi +15 -2
- data/rbi/finch_api/resources/providers.rbi +1 -1
- data/rbi/finch_api/resources/request_forwarding.rbi +2 -2
- data/sig/finch_api/errors.rbs +7 -0
- data/sig/finch_api/file_part.rbs +1 -1
- data/sig/finch_api/models/access_token_create_params.rbs +11 -7
- data/sig/finch_api/models/connect/session_new_params.rbs +45 -45
- data/sig/finch_api/models/connect/session_reauthenticate_params.rbs +15 -15
- data/sig/finch_api/models/create_access_token_response.rbs +5 -0
- data/sig/finch_api/models/hris/benefit_contribution.rbs +107 -21
- data/sig/finch_api/models/hris/benefit_create_params.rbs +7 -0
- data/sig/finch_api/models/hris/benefit_list_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_list_supported_benefits_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_update_params.rbs +8 -1
- data/sig/finch_api/models/hris/benefits/individual_benefit.rbs +201 -8
- data/sig/finch_api/models/hris/benefits/individual_enroll_many_params.rbs +30 -1
- data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +7 -1
- data/sig/finch_api/models/hris/benefits/individual_unenroll_many_params.rbs +7 -1
- data/sig/finch_api/models/hris/benfit_contribution.rbs +1 -1
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +7 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +14 -3
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +14 -3
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +7 -1
- data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +7 -0
- data/sig/finch_api/models/hris/company_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/hris/directory_list_individuals_params.rbs +7 -1
- data/sig/finch_api/models/hris/directory_list_params.rbs +7 -1
- data/sig/finch_api/models/hris/document_list_params.rbs +7 -0
- data/sig/finch_api/models/hris/document_response.rbs +11 -19
- data/sig/finch_api/models/hris/document_retreive_params.rbs +14 -3
- data/sig/finch_api/models/hris/employment_retrieve_many_params.rbs +8 -1
- data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +7 -0
- data/sig/finch_api/models/hris/pay_statement.rbs +28 -96
- data/sig/finch_api/models/hris/pay_statement_retrieve_many_params.rbs +8 -1
- data/sig/finch_api/models/hris/payment_list_params.rbs +7 -1
- data/sig/finch_api/models/hris/supported_benefit.rbs +2 -1
- data/sig/finch_api/models/hris/w42005.rbs +23 -37
- data/sig/finch_api/models/hris/w42020.rbs +35 -45
- data/sig/finch_api/models/introspection.rbs +29 -20
- data/sig/finch_api/models/jobs/automated_list_params.rbs +1 -7
- data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +3 -13
- data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +3 -13
- data/sig/finch_api/models/payroll/pay_group_list_params.rbs +11 -1
- data/sig/finch_api/models/payroll/pay_group_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/provider.rbs +31 -1366
- data/sig/finch_api/models/provider_list_response.rbs +128 -0
- data/sig/finch_api/models/request_forwarding_forward_params.rbs +8 -8
- data/sig/finch_api/models/request_forwarding_forward_response.rbs +40 -30
- data/sig/finch_api/resources/access_tokens.rbs +2 -2
- data/sig/finch_api/resources/connect/sessions.rbs +9 -9
- data/sig/finch_api/resources/hris/benefits/individuals.rbs +4 -0
- data/sig/finch_api/resources/hris/benefits.rbs +5 -0
- data/sig/finch_api/resources/hris/company/pay_statement_item/rules.rbs +4 -0
- data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +1 -0
- data/sig/finch_api/resources/hris/company.rbs +1 -0
- data/sig/finch_api/resources/hris/directory.rbs +1 -0
- data/sig/finch_api/resources/hris/documents.rbs +2 -0
- data/sig/finch_api/resources/hris/employments.rbs +1 -0
- data/sig/finch_api/resources/hris/individuals.rbs +1 -0
- data/sig/finch_api/resources/hris/pay_statements.rbs +1 -0
- data/sig/finch_api/resources/hris/payments.rbs +1 -0
- data/sig/finch_api/resources/jobs/automated.rbs +0 -2
- data/sig/finch_api/resources/jobs/manual.rbs +0 -1
- data/sig/finch_api/resources/payroll/pay_groups.rbs +2 -0
- data/sig/finch_api/resources/providers.rbs +1 -1
- data/sig/finch_api/resources/request_forwarding.rbs +2 -2
- metadata +5 -2
|
@@ -7,36 +7,36 @@ module FinchAPI
|
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# A stable Finch id for the document.
|
|
9
9
|
#
|
|
10
|
-
# @return [String
|
|
11
|
-
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
12
|
|
|
13
13
|
# @!attribute individual_id
|
|
14
14
|
# The ID of the individual associated with the document. This will be null for
|
|
15
15
|
# employer-level documents.
|
|
16
16
|
#
|
|
17
17
|
# @return [String, nil]
|
|
18
|
-
|
|
18
|
+
required :individual_id, String, nil?: true
|
|
19
19
|
|
|
20
20
|
# @!attribute type
|
|
21
21
|
# The type of document.
|
|
22
22
|
#
|
|
23
|
-
# @return [Symbol, FinchAPI::Models::HRIS::DocumentResponse::Type
|
|
24
|
-
|
|
23
|
+
# @return [Symbol, FinchAPI::Models::HRIS::DocumentResponse::Type]
|
|
24
|
+
required :type, enum: -> { FinchAPI::HRIS::DocumentResponse::Type }
|
|
25
25
|
|
|
26
26
|
# @!attribute url
|
|
27
27
|
# A URL to access the document. Format:
|
|
28
28
|
# `https://api.tryfinch.com/employer/documents/:document_id`.
|
|
29
29
|
#
|
|
30
|
-
# @return [String
|
|
31
|
-
|
|
30
|
+
# @return [String]
|
|
31
|
+
required :url, String
|
|
32
32
|
|
|
33
33
|
# @!attribute year
|
|
34
34
|
# The year the document applies to, if available.
|
|
35
35
|
#
|
|
36
|
-
# @return [Float
|
|
37
|
-
|
|
36
|
+
# @return [Float]
|
|
37
|
+
required :year, Float
|
|
38
38
|
|
|
39
|
-
# @!method initialize(id
|
|
39
|
+
# @!method initialize(id:, individual_id:, type:, url:, year:)
|
|
40
40
|
# Some parameter documentations has been truncated, see
|
|
41
41
|
# {FinchAPI::Models::HRIS::DocumentResponse} for more details.
|
|
42
42
|
#
|
|
@@ -48,7 +48,7 @@ module FinchAPI
|
|
|
48
48
|
#
|
|
49
49
|
# @param url [String] A URL to access the document. Format: `https://api.tryfinch.com/employer/documen
|
|
50
50
|
#
|
|
51
|
-
# @param year [Float
|
|
51
|
+
# @param year [Float] The year the document applies to, if available.
|
|
52
52
|
|
|
53
53
|
# The type of document.
|
|
54
54
|
#
|
|
@@ -8,7 +8,15 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
17
|
+
# @!method initialize(entity_ids: nil, request_options: {})
|
|
18
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
19
|
+
#
|
|
12
20
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
13
21
|
end
|
|
14
22
|
end
|
|
@@ -15,9 +15,17 @@ module FinchAPI
|
|
|
15
15
|
required :requests,
|
|
16
16
|
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::EmploymentRetrieveManyParams::Request] }
|
|
17
17
|
|
|
18
|
-
# @!
|
|
18
|
+
# @!attribute entity_ids
|
|
19
|
+
# The entity IDs to specify which entities' data to access.
|
|
20
|
+
#
|
|
21
|
+
# @return [Array<String>, nil]
|
|
22
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
23
|
+
|
|
24
|
+
# @!method initialize(requests:, entity_ids: nil, request_options: {})
|
|
19
25
|
# @param requests [Array<FinchAPI::Models::HRIS::EmploymentRetrieveManyParams::Request>] The array of batch requests.
|
|
20
26
|
#
|
|
27
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
28
|
+
#
|
|
21
29
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
22
30
|
|
|
23
31
|
class Request < FinchAPI::Internal::Type::BaseModel
|
|
@@ -8,6 +8,12 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
11
17
|
# @!attribute options
|
|
12
18
|
#
|
|
13
19
|
# @return [FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Options, nil]
|
|
@@ -19,9 +25,13 @@ module FinchAPI
|
|
|
19
25
|
optional :requests,
|
|
20
26
|
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::IndividualRetrieveManyParams::Request] }
|
|
21
27
|
|
|
22
|
-
# @!method initialize(options: nil, requests: nil, request_options: {})
|
|
28
|
+
# @!method initialize(entity_ids: nil, options: nil, requests: nil, request_options: {})
|
|
29
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
30
|
+
#
|
|
23
31
|
# @param options [FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Options, nil]
|
|
32
|
+
#
|
|
24
33
|
# @param requests [Array<FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Request>]
|
|
34
|
+
#
|
|
25
35
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
26
36
|
|
|
27
37
|
class Options < FinchAPI::Internal::Type::BaseModel
|
|
@@ -15,22 +15,16 @@ module FinchAPI
|
|
|
15
15
|
# @!attribute employee_deductions
|
|
16
16
|
# The array of deductions objects associated with this pay statement.
|
|
17
17
|
#
|
|
18
|
-
# @return [Array<FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction
|
|
18
|
+
# @return [Array<FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction>, nil]
|
|
19
19
|
required :employee_deductions,
|
|
20
|
-
-> {
|
|
21
|
-
FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatement::EmployeeDeduction,
|
|
22
|
-
nil?: true]
|
|
23
|
-
},
|
|
20
|
+
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatement::EmployeeDeduction] },
|
|
24
21
|
nil?: true
|
|
25
22
|
|
|
26
23
|
# @!attribute employer_contributions
|
|
27
24
|
#
|
|
28
|
-
# @return [Array<FinchAPI::Models::HRIS::PayStatement::EmployerContribution
|
|
25
|
+
# @return [Array<FinchAPI::Models::HRIS::PayStatement::EmployerContribution>, nil]
|
|
29
26
|
required :employer_contributions,
|
|
30
|
-
-> {
|
|
31
|
-
FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatement::EmployerContribution,
|
|
32
|
-
nil?: true]
|
|
33
|
-
},
|
|
27
|
+
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatement::EmployerContribution] },
|
|
34
28
|
nil?: true
|
|
35
29
|
|
|
36
30
|
# @!attribute gross_pay
|
|
@@ -58,9 +52,11 @@ module FinchAPI
|
|
|
58
52
|
# @!attribute taxes
|
|
59
53
|
# The array of taxes objects associated with this pay statement.
|
|
60
54
|
#
|
|
61
|
-
# @return [Array<FinchAPI::Models::HRIS::PayStatement::Tax
|
|
55
|
+
# @return [Array<FinchAPI::Models::HRIS::PayStatement::Tax>, nil]
|
|
62
56
|
required :taxes,
|
|
63
|
-
-> {
|
|
57
|
+
-> {
|
|
58
|
+
FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatement::Tax]
|
|
59
|
+
},
|
|
64
60
|
nil?: true
|
|
65
61
|
|
|
66
62
|
# @!attribute total_hours
|
|
@@ -78,9 +74,9 @@ module FinchAPI
|
|
|
78
74
|
# @!method initialize(earnings:, employee_deductions:, employer_contributions:, gross_pay:, individual_id:, net_pay:, payment_method:, taxes:, total_hours:, type:)
|
|
79
75
|
# @param earnings [Array<FinchAPI::Models::HRIS::PayStatement::Earning, nil>, nil] The array of earnings objects associated with this pay statement
|
|
80
76
|
#
|
|
81
|
-
# @param employee_deductions [Array<FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction
|
|
77
|
+
# @param employee_deductions [Array<FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction>, nil] The array of deductions objects associated with this pay statement.
|
|
82
78
|
#
|
|
83
|
-
# @param employer_contributions [Array<FinchAPI::Models::HRIS::PayStatement::EmployerContribution
|
|
79
|
+
# @param employer_contributions [Array<FinchAPI::Models::HRIS::PayStatement::EmployerContribution>, nil]
|
|
84
80
|
#
|
|
85
81
|
# @param gross_pay [FinchAPI::Models::Money, nil]
|
|
86
82
|
#
|
|
@@ -90,7 +86,7 @@ module FinchAPI
|
|
|
90
86
|
#
|
|
91
87
|
# @param payment_method [Symbol, FinchAPI::Models::HRIS::PayStatement::PaymentMethod, nil] The payment method.
|
|
92
88
|
#
|
|
93
|
-
# @param taxes [Array<FinchAPI::Models::HRIS::PayStatement::Tax
|
|
89
|
+
# @param taxes [Array<FinchAPI::Models::HRIS::PayStatement::Tax>, nil] The array of taxes objects associated with this pay statement.
|
|
94
90
|
#
|
|
95
91
|
# @param total_hours [Float, nil] The number of hours worked for this pay period
|
|
96
92
|
#
|
|
@@ -176,31 +172,19 @@ module FinchAPI
|
|
|
176
172
|
# @see FinchAPI::Models::HRIS::PayStatement::Earning#attributes
|
|
177
173
|
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
178
174
|
# @!attribute metadata
|
|
175
|
+
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
176
|
+
# pairs where the values can be of any type (string, number, boolean, object,
|
|
177
|
+
# array, etc.).
|
|
179
178
|
#
|
|
180
|
-
# @return [
|
|
181
|
-
required :metadata,
|
|
179
|
+
# @return [Hash{Symbol=>Object, nil}]
|
|
180
|
+
required :metadata,
|
|
181
|
+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
182
182
|
|
|
183
183
|
# @!method initialize(metadata:)
|
|
184
|
-
#
|
|
185
|
-
|
|
186
|
-
#
|
|
187
|
-
|
|
188
|
-
# @!attribute metadata
|
|
189
|
-
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
190
|
-
# pairs where the values can be of any type (string, number, boolean, object,
|
|
191
|
-
# array, etc.).
|
|
192
|
-
#
|
|
193
|
-
# @return [Hash{Symbol=>Object, nil}]
|
|
194
|
-
required :metadata,
|
|
195
|
-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
196
|
-
|
|
197
|
-
# @!method initialize(metadata:)
|
|
198
|
-
# Some parameter documentations has been truncated, see
|
|
199
|
-
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes::Metadata} for more
|
|
200
|
-
# details.
|
|
201
|
-
#
|
|
202
|
-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
203
|
-
end
|
|
184
|
+
# Some parameter documentations has been truncated, see
|
|
185
|
+
# {FinchAPI::Models::HRIS::PayStatement::Earning::Attributes} for more details.
|
|
186
|
+
#
|
|
187
|
+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
204
188
|
end
|
|
205
189
|
end
|
|
206
190
|
|
|
@@ -256,31 +240,20 @@ module FinchAPI
|
|
|
256
240
|
# @see FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction#attributes
|
|
257
241
|
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
258
242
|
# @!attribute metadata
|
|
243
|
+
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
244
|
+
# pairs where the values can be of any type (string, number, boolean, object,
|
|
245
|
+
# array, etc.).
|
|
259
246
|
#
|
|
260
|
-
# @return [
|
|
261
|
-
required :metadata,
|
|
247
|
+
# @return [Hash{Symbol=>Object, nil}]
|
|
248
|
+
required :metadata,
|
|
249
|
+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
262
250
|
|
|
263
251
|
# @!method initialize(metadata:)
|
|
264
|
-
#
|
|
265
|
-
|
|
266
|
-
#
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
270
|
-
# pairs where the values can be of any type (string, number, boolean, object,
|
|
271
|
-
# array, etc.).
|
|
272
|
-
#
|
|
273
|
-
# @return [Hash{Symbol=>Object, nil}]
|
|
274
|
-
required :metadata,
|
|
275
|
-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
276
|
-
|
|
277
|
-
# @!method initialize(metadata:)
|
|
278
|
-
# Some parameter documentations has been truncated, see
|
|
279
|
-
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes::Metadata}
|
|
280
|
-
# for more details.
|
|
281
|
-
#
|
|
282
|
-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
283
|
-
end
|
|
252
|
+
# Some parameter documentations has been truncated, see
|
|
253
|
+
# {FinchAPI::Models::HRIS::PayStatement::EmployeeDeduction::Attributes} for more
|
|
254
|
+
# details.
|
|
255
|
+
#
|
|
256
|
+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
284
257
|
end
|
|
285
258
|
end
|
|
286
259
|
|
|
@@ -332,31 +305,20 @@ module FinchAPI
|
|
|
332
305
|
# @see FinchAPI::Models::HRIS::PayStatement::EmployerContribution#attributes
|
|
333
306
|
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
334
307
|
# @!attribute metadata
|
|
308
|
+
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
309
|
+
# pairs where the values can be of any type (string, number, boolean, object,
|
|
310
|
+
# array, etc.).
|
|
335
311
|
#
|
|
336
|
-
# @return [
|
|
337
|
-
required :metadata,
|
|
312
|
+
# @return [Hash{Symbol=>Object, nil}]
|
|
313
|
+
required :metadata,
|
|
314
|
+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
338
315
|
|
|
339
316
|
# @!method initialize(metadata:)
|
|
340
|
-
#
|
|
341
|
-
|
|
342
|
-
#
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
346
|
-
# pairs where the values can be of any type (string, number, boolean, object,
|
|
347
|
-
# array, etc.).
|
|
348
|
-
#
|
|
349
|
-
# @return [Hash{Symbol=>Object, nil}]
|
|
350
|
-
required :metadata,
|
|
351
|
-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
352
|
-
|
|
353
|
-
# @!method initialize(metadata:)
|
|
354
|
-
# Some parameter documentations has been truncated, see
|
|
355
|
-
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes::Metadata}
|
|
356
|
-
# for more details.
|
|
357
|
-
#
|
|
358
|
-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
359
|
-
end
|
|
317
|
+
# Some parameter documentations has been truncated, see
|
|
318
|
+
# {FinchAPI::Models::HRIS::PayStatement::EmployerContribution::Attributes} for
|
|
319
|
+
# more details.
|
|
320
|
+
#
|
|
321
|
+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
360
322
|
end
|
|
361
323
|
end
|
|
362
324
|
|
|
@@ -441,31 +403,19 @@ module FinchAPI
|
|
|
441
403
|
# @see FinchAPI::Models::HRIS::PayStatement::Tax#attributes
|
|
442
404
|
class Attributes < FinchAPI::Internal::Type::BaseModel
|
|
443
405
|
# @!attribute metadata
|
|
406
|
+
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
407
|
+
# pairs where the values can be of any type (string, number, boolean, object,
|
|
408
|
+
# array, etc.).
|
|
444
409
|
#
|
|
445
|
-
# @return [
|
|
446
|
-
required :metadata,
|
|
410
|
+
# @return [Hash{Symbol=>Object, nil}]
|
|
411
|
+
required :metadata,
|
|
412
|
+
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
447
413
|
|
|
448
414
|
# @!method initialize(metadata:)
|
|
449
|
-
#
|
|
450
|
-
|
|
451
|
-
#
|
|
452
|
-
|
|
453
|
-
# @!attribute metadata
|
|
454
|
-
# The metadata to be attached to the entity by existing rules. It is a key-value
|
|
455
|
-
# pairs where the values can be of any type (string, number, boolean, object,
|
|
456
|
-
# array, etc.).
|
|
457
|
-
#
|
|
458
|
-
# @return [Hash{Symbol=>Object, nil}]
|
|
459
|
-
required :metadata,
|
|
460
|
-
FinchAPI::Internal::Type::HashOf[FinchAPI::Internal::Type::Unknown, nil?: true]
|
|
461
|
-
|
|
462
|
-
# @!method initialize(metadata:)
|
|
463
|
-
# Some parameter documentations has been truncated, see
|
|
464
|
-
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes::Metadata} for more
|
|
465
|
-
# details.
|
|
466
|
-
#
|
|
467
|
-
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
468
|
-
end
|
|
415
|
+
# Some parameter documentations has been truncated, see
|
|
416
|
+
# {FinchAPI::Models::HRIS::PayStatement::Tax::Attributes} for more details.
|
|
417
|
+
#
|
|
418
|
+
# @param metadata [Hash{Symbol=>Object, nil}] The metadata to be attached to the entity by existing rules. It is a key-value p
|
|
469
419
|
end
|
|
470
420
|
end
|
|
471
421
|
|
|
@@ -15,9 +15,17 @@ module FinchAPI
|
|
|
15
15
|
required :requests,
|
|
16
16
|
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::PayStatementRetrieveManyParams::Request] }
|
|
17
17
|
|
|
18
|
-
# @!
|
|
18
|
+
# @!attribute entity_ids
|
|
19
|
+
# The entity IDs to specify which entities' data to access.
|
|
20
|
+
#
|
|
21
|
+
# @return [Array<String>, nil]
|
|
22
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
23
|
+
|
|
24
|
+
# @!method initialize(requests:, entity_ids: nil, request_options: {})
|
|
19
25
|
# @param requests [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] The array of batch requests.
|
|
20
26
|
#
|
|
27
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
28
|
+
#
|
|
21
29
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
22
30
|
|
|
23
31
|
class Request < FinchAPI::Internal::Type::BaseModel
|
|
@@ -22,7 +22,13 @@ module FinchAPI
|
|
|
22
22
|
# @return [Date]
|
|
23
23
|
required :start_date, Date
|
|
24
24
|
|
|
25
|
-
# @!
|
|
25
|
+
# @!attribute entity_ids
|
|
26
|
+
# The entity IDs to specify which entities' data to access.
|
|
27
|
+
#
|
|
28
|
+
# @return [Array<String>, nil]
|
|
29
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
30
|
+
|
|
31
|
+
# @!method initialize(end_date:, start_date:, entity_ids: nil, request_options: {})
|
|
26
32
|
# Some parameter documentations has been truncated, see
|
|
27
33
|
# {FinchAPI::Models::HRIS::PaymentListParams} for more details.
|
|
28
34
|
#
|
|
@@ -30,6 +36,8 @@ module FinchAPI
|
|
|
30
36
|
#
|
|
31
37
|
# @param start_date [Date] The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` for
|
|
32
38
|
#
|
|
39
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
40
|
+
#
|
|
33
41
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
34
42
|
end
|
|
35
43
|
end
|
|
@@ -7,22 +7,22 @@ module FinchAPI
|
|
|
7
7
|
# @!attribute data
|
|
8
8
|
# Detailed information specific to the 2005 W4 form.
|
|
9
9
|
#
|
|
10
|
-
# @return [FinchAPI::Models::HRIS::W42005::Data
|
|
11
|
-
|
|
10
|
+
# @return [FinchAPI::Models::HRIS::W42005::Data]
|
|
11
|
+
required :data, -> { FinchAPI::HRIS::W42005::Data }
|
|
12
12
|
|
|
13
13
|
# @!attribute type
|
|
14
14
|
# Specifies the form type, indicating that this document is a 2005 W4 form.
|
|
15
15
|
#
|
|
16
|
-
# @return [Symbol, FinchAPI::Models::HRIS::W42005::Type
|
|
17
|
-
|
|
16
|
+
# @return [Symbol, FinchAPI::Models::HRIS::W42005::Type]
|
|
17
|
+
required :type, enum: -> { FinchAPI::HRIS::W42005::Type }
|
|
18
18
|
|
|
19
19
|
# @!attribute year
|
|
20
20
|
# The tax year this W4 document applies to.
|
|
21
21
|
#
|
|
22
|
-
# @return [Float
|
|
23
|
-
|
|
22
|
+
# @return [Float]
|
|
23
|
+
required :year, Float
|
|
24
24
|
|
|
25
|
-
# @!method initialize(data
|
|
25
|
+
# @!method initialize(data:, type:, year:)
|
|
26
26
|
# A 2005 version of the W-4 tax form containing information on an individual's
|
|
27
27
|
# filing status, dependents, and withholding details.
|
|
28
28
|
#
|
|
@@ -30,52 +30,52 @@ module FinchAPI
|
|
|
30
30
|
#
|
|
31
31
|
# @param type [Symbol, FinchAPI::Models::HRIS::W42005::Type] Specifies the form type, indicating that this document is a 2005 W4 form.
|
|
32
32
|
#
|
|
33
|
-
# @param year [Float
|
|
33
|
+
# @param year [Float] The tax year this W4 document applies to.
|
|
34
34
|
|
|
35
35
|
# @see FinchAPI::Models::HRIS::W42005#data
|
|
36
36
|
class Data < FinchAPI::Internal::Type::BaseModel
|
|
37
37
|
# @!attribute additional_withholding
|
|
38
38
|
# Additional withholding amount (in cents).
|
|
39
39
|
#
|
|
40
|
-
# @return [Integer
|
|
41
|
-
|
|
40
|
+
# @return [Integer]
|
|
41
|
+
required :additional_withholding, Integer
|
|
42
42
|
|
|
43
43
|
# @!attribute exemption
|
|
44
44
|
# Indicates exemption status from federal tax withholding.
|
|
45
45
|
#
|
|
46
46
|
# @return [Symbol, FinchAPI::Models::HRIS::W42005::Data::Exemption, nil]
|
|
47
|
-
|
|
47
|
+
required :exemption, enum: -> { FinchAPI::HRIS::W42005::Data::Exemption }, nil?: true
|
|
48
48
|
|
|
49
49
|
# @!attribute filing_status
|
|
50
50
|
# The individual's filing status for tax purposes.
|
|
51
51
|
#
|
|
52
52
|
# @return [Symbol, FinchAPI::Models::HRIS::W42005::Data::FilingStatus, nil]
|
|
53
|
-
|
|
53
|
+
required :filing_status, enum: -> { FinchAPI::HRIS::W42005::Data::FilingStatus }, nil?: true
|
|
54
54
|
|
|
55
55
|
# @!attribute individual_id
|
|
56
56
|
# The unique identifier for the individual associated with this 2005 W4 form.
|
|
57
57
|
#
|
|
58
|
-
# @return [String
|
|
59
|
-
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :individual_id, String
|
|
60
60
|
|
|
61
61
|
# @!attribute total_number_of_allowances
|
|
62
62
|
# Total number of allowances claimed (in cents).
|
|
63
63
|
#
|
|
64
|
-
# @return [Integer
|
|
65
|
-
|
|
64
|
+
# @return [Integer]
|
|
65
|
+
required :total_number_of_allowances, Integer
|
|
66
66
|
|
|
67
|
-
# @!method initialize(additional_withholding
|
|
67
|
+
# @!method initialize(additional_withholding:, exemption:, filing_status:, individual_id:, total_number_of_allowances:)
|
|
68
68
|
# Detailed information specific to the 2005 W4 form.
|
|
69
69
|
#
|
|
70
|
-
# @param additional_withholding [Integer
|
|
70
|
+
# @param additional_withholding [Integer] Additional withholding amount (in cents).
|
|
71
71
|
#
|
|
72
|
-
# @param exemption [Symbol, FinchAPI::Models::HRIS::W42005::Data::Exemption] Indicates exemption status from federal tax withholding.
|
|
72
|
+
# @param exemption [Symbol, FinchAPI::Models::HRIS::W42005::Data::Exemption, nil] Indicates exemption status from federal tax withholding.
|
|
73
73
|
#
|
|
74
74
|
# @param filing_status [Symbol, FinchAPI::Models::HRIS::W42005::Data::FilingStatus, nil] The individual's filing status for tax purposes.
|
|
75
75
|
#
|
|
76
76
|
# @param individual_id [String] The unique identifier for the individual associated with this 2005 W4 form.
|
|
77
77
|
#
|
|
78
|
-
# @param total_number_of_allowances [Integer
|
|
78
|
+
# @param total_number_of_allowances [Integer] Total number of allowances claimed (in cents).
|
|
79
79
|
|
|
80
80
|
# Indicates exemption status from federal tax withholding.
|
|
81
81
|
#
|
|
@@ -7,22 +7,22 @@ module FinchAPI
|
|
|
7
7
|
# @!attribute data
|
|
8
8
|
# Detailed information specific to the 2020 W4 form.
|
|
9
9
|
#
|
|
10
|
-
# @return [FinchAPI::Models::HRIS::W42020::Data
|
|
11
|
-
|
|
10
|
+
# @return [FinchAPI::Models::HRIS::W42020::Data]
|
|
11
|
+
required :data, -> { FinchAPI::HRIS::W42020::Data }
|
|
12
12
|
|
|
13
13
|
# @!attribute type
|
|
14
14
|
# Specifies the form type, indicating that this document is a 2020 W4 form.
|
|
15
15
|
#
|
|
16
|
-
# @return [Symbol, FinchAPI::Models::HRIS::W42020::Type
|
|
17
|
-
|
|
16
|
+
# @return [Symbol, FinchAPI::Models::HRIS::W42020::Type]
|
|
17
|
+
required :type, enum: -> { FinchAPI::HRIS::W42020::Type }
|
|
18
18
|
|
|
19
19
|
# @!attribute year
|
|
20
20
|
# The tax year this W4 document applies to.
|
|
21
21
|
#
|
|
22
|
-
# @return [Float
|
|
23
|
-
|
|
22
|
+
# @return [Float]
|
|
23
|
+
required :year, Float
|
|
24
24
|
|
|
25
|
-
# @!method initialize(data
|
|
25
|
+
# @!method initialize(data:, type:, year:)
|
|
26
26
|
# A 2020 version of the W-4 tax form containing information on an individual's
|
|
27
27
|
# filing status, dependents, and withholding details.
|
|
28
28
|
#
|
|
@@ -30,7 +30,7 @@ module FinchAPI
|
|
|
30
30
|
#
|
|
31
31
|
# @param type [Symbol, FinchAPI::Models::HRIS::W42020::Type] Specifies the form type, indicating that this document is a 2020 W4 form.
|
|
32
32
|
#
|
|
33
|
-
# @param year [Float
|
|
33
|
+
# @param year [Float] The tax year this W4 document applies to.
|
|
34
34
|
|
|
35
35
|
# @see FinchAPI::Models::HRIS::W42020#data
|
|
36
36
|
class Data < FinchAPI::Internal::Type::BaseModel
|
|
@@ -38,72 +38,72 @@ module FinchAPI
|
|
|
38
38
|
# Amount claimed for dependents other than qualifying children under 17 (in
|
|
39
39
|
# cents).
|
|
40
40
|
#
|
|
41
|
-
# @return [Integer
|
|
42
|
-
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
required :amount_for_other_dependents, Integer
|
|
43
43
|
|
|
44
44
|
# @!attribute amount_for_qualifying_children_under_17
|
|
45
45
|
# Amount claimed for dependents under 17 years old (in cents).
|
|
46
46
|
#
|
|
47
|
-
# @return [Integer
|
|
48
|
-
|
|
47
|
+
# @return [Integer]
|
|
48
|
+
required :amount_for_qualifying_children_under_17, Integer
|
|
49
49
|
|
|
50
50
|
# @!attribute deductions
|
|
51
51
|
# Deductible expenses (in cents).
|
|
52
52
|
#
|
|
53
|
-
# @return [Integer
|
|
54
|
-
|
|
53
|
+
# @return [Integer]
|
|
54
|
+
required :deductions, Integer
|
|
55
55
|
|
|
56
56
|
# @!attribute extra_withholding
|
|
57
57
|
# Additional withholding amount (in cents).
|
|
58
58
|
#
|
|
59
|
-
# @return [Integer
|
|
60
|
-
|
|
59
|
+
# @return [Integer]
|
|
60
|
+
required :extra_withholding, Integer
|
|
61
61
|
|
|
62
62
|
# @!attribute filing_status
|
|
63
63
|
# The individual's filing status for tax purposes.
|
|
64
64
|
#
|
|
65
65
|
# @return [Symbol, FinchAPI::Models::HRIS::W42020::Data::FilingStatus, nil]
|
|
66
|
-
|
|
66
|
+
required :filing_status, enum: -> { FinchAPI::HRIS::W42020::Data::FilingStatus }, nil?: true
|
|
67
67
|
|
|
68
68
|
# @!attribute individual_id
|
|
69
69
|
# The unique identifier for the individual associated with this document.
|
|
70
70
|
#
|
|
71
|
-
# @return [String
|
|
72
|
-
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :individual_id, String
|
|
73
73
|
|
|
74
74
|
# @!attribute other_income
|
|
75
75
|
# Additional income from sources outside of primary employment (in cents).
|
|
76
76
|
#
|
|
77
|
-
# @return [Integer
|
|
78
|
-
|
|
77
|
+
# @return [Integer]
|
|
78
|
+
required :other_income, Integer
|
|
79
79
|
|
|
80
80
|
# @!attribute total_claim_dependent_and_other_credits
|
|
81
81
|
# Total amount claimed for dependents and other credits (in cents).
|
|
82
82
|
#
|
|
83
|
-
# @return [Integer
|
|
84
|
-
|
|
83
|
+
# @return [Integer]
|
|
84
|
+
required :total_claim_dependent_and_other_credits, Integer
|
|
85
85
|
|
|
86
|
-
# @!method initialize(amount_for_other_dependents
|
|
86
|
+
# @!method initialize(amount_for_other_dependents:, amount_for_qualifying_children_under_17:, deductions:, extra_withholding:, filing_status:, individual_id:, other_income:, total_claim_dependent_and_other_credits:)
|
|
87
87
|
# Some parameter documentations has been truncated, see
|
|
88
88
|
# {FinchAPI::Models::HRIS::W42020::Data} for more details.
|
|
89
89
|
#
|
|
90
90
|
# Detailed information specific to the 2020 W4 form.
|
|
91
91
|
#
|
|
92
|
-
# @param amount_for_other_dependents [Integer
|
|
92
|
+
# @param amount_for_other_dependents [Integer] Amount claimed for dependents other than qualifying children under 17 (in cents)
|
|
93
93
|
#
|
|
94
|
-
# @param amount_for_qualifying_children_under_17 [Integer
|
|
94
|
+
# @param amount_for_qualifying_children_under_17 [Integer] Amount claimed for dependents under 17 years old (in cents).
|
|
95
95
|
#
|
|
96
|
-
# @param deductions [Integer
|
|
96
|
+
# @param deductions [Integer] Deductible expenses (in cents).
|
|
97
97
|
#
|
|
98
|
-
# @param extra_withholding [Integer
|
|
98
|
+
# @param extra_withholding [Integer] Additional withholding amount (in cents).
|
|
99
99
|
#
|
|
100
100
|
# @param filing_status [Symbol, FinchAPI::Models::HRIS::W42020::Data::FilingStatus, nil] The individual's filing status for tax purposes.
|
|
101
101
|
#
|
|
102
102
|
# @param individual_id [String] The unique identifier for the individual associated with this document.
|
|
103
103
|
#
|
|
104
|
-
# @param other_income [Integer
|
|
104
|
+
# @param other_income [Integer] Additional income from sources outside of primary employment (in cents).
|
|
105
105
|
#
|
|
106
|
-
# @param total_claim_dependent_and_other_credits [Integer
|
|
106
|
+
# @param total_claim_dependent_and_other_credits [Integer] Total amount claimed for dependents and other credits (in cents).
|
|
107
107
|
|
|
108
108
|
# The individual's filing status for tax purposes.
|
|
109
109
|
#
|