avalara_sdk 25.8.2 → 25.9.0
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/Gemfile.lock +1 -1
- data/README.md +20 -91
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyBase.md +50 -0
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- data/docs/A1099/V2/CompanyRequest.md +50 -0
- data/docs/A1099/V2/CompanyResponse.md +37 -37
- data/docs/A1099/V2/CoveredIndividual.md +56 -0
- data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
- data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
- data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
- data/docs/A1099/V2/EntryStatusResponse.md +20 -0
- data/docs/A1099/V2/Form1042S.md +83 -83
- data/docs/A1099/V2/Form1095B.md +72 -62
- data/docs/A1099/V2/Form1095C.md +112 -0
- data/docs/A1099/V2/Form1099Base.md +60 -60
- data/docs/A1099/V2/Form1099Div.md +79 -77
- data/docs/A1099/V2/Form1099Int.md +76 -74
- data/docs/A1099/V2/Form1099K.md +83 -83
- data/docs/A1099/V2/Form1099ListRequest.md +20 -0
- data/docs/A1099/V2/Form1099Misc.md +79 -77
- data/docs/A1099/V2/Form1099Nec.md +64 -64
- data/docs/A1099/V2/Form1099R.md +95 -93
- data/docs/A1099/V2/Forms1099Api.md +47 -43
- data/docs/A1099/V2/FormsW9Api.md +104 -20
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerBase.md +46 -0
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- data/docs/A1099/V2/IssuerRequest.md +46 -0
- data/docs/A1099/V2/IssuerResponse.md +35 -35
- data/docs/A1099/V2/Issuers1099Api.md +10 -10
- data/docs/A1099/V2/JobResponse.md +56 -0
- data/docs/A1099/V2/JobsApi.md +91 -0
- data/docs/A1099/V2/OfferAndCoverage.md +28 -0
- data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
- data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
- data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
- data/docs/A1099/V2/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +16 -16
- data/docs/A1099/V2/W4FormResponse.md +48 -20
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +15 -15
- data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +11 -11
- data/docs/A1099/V2/W8BenFormResponse.md +55 -27
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +15 -15
- data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +7 -7
- data/docs/A1099/V2/W9FormBaseResponse.md +6 -6
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +15 -15
- data/docs/A1099/V2/W9FormResponse.md +44 -16
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +93 -61
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +157 -19
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/api_client.rb +10 -2
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → company_base.rb} +61 -13
- data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → company_request.rb} +62 -64
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
- data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
- data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
- data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
- data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
- data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +422 -187
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +359 -194
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +250 -133
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +283 -185
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +307 -179
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +307 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +307 -198
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → form1099_list_request.rb} +45 -59
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +334 -209
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +297 -192
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +437 -282
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +59 -1
- data/lib/avalara_sdk/models/A1099/V2/{intermediary_or_flow_through_request.rb → issuer_base.rb} +119 -46
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → issuer_request.rb} +113 -112
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
- data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +102 -42
- data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
- data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -6
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w4_form_minimal_request.rb} +142 -129
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +62 -34
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +68 -33
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +51 -28
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +61 -33
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/{problem_details.rb → w9_form_base_minimal_request.rb} +61 -35
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +35 -28
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +60 -31
- data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +71 -30
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -101
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +45 -103
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
- data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
- data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,38 +10,27 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
class
|
14
|
-
|
13
|
+
class W4FormMinimalRequest
|
14
|
+
# The form type (always \"w4\" for this model).
|
15
|
+
attr_accessor :type
|
15
16
|
|
16
|
-
|
17
|
+
# The email address of the individual associated with the form.
|
18
|
+
attr_accessor :email
|
17
19
|
|
18
|
-
|
20
|
+
# The first name of the employee.
|
21
|
+
attr_accessor :employee_first_name
|
19
22
|
|
20
|
-
|
23
|
+
# The last name of the employee.
|
24
|
+
attr_accessor :employee_last_name
|
21
25
|
|
22
|
-
|
26
|
+
# The office code associated with the form.
|
27
|
+
attr_accessor :office_code
|
23
28
|
|
24
|
-
|
29
|
+
# The ID of the associated company. Required when creating a form.
|
30
|
+
attr_accessor :company_id
|
25
31
|
|
26
|
-
|
27
|
-
|
28
|
-
attr_accessor :updated_no_email
|
29
|
-
|
30
|
-
attr_accessor :updated_invalid
|
31
|
-
|
32
|
-
attr_accessor :skipped_duplicate
|
33
|
-
|
34
|
-
attr_accessor :skipped_invalid
|
35
|
-
|
36
|
-
attr_accessor :skipped_multiple_matches
|
37
|
-
|
38
|
-
attr_accessor :not_found
|
39
|
-
|
40
|
-
attr_accessor :created_invalid
|
41
|
-
|
42
|
-
attr_accessor :created_no_email
|
43
|
-
|
44
|
-
attr_accessor :created_valid
|
32
|
+
# A reference identifier for the form.
|
33
|
+
attr_accessor :reference_id
|
45
34
|
|
46
35
|
class EnumAttributeValidator
|
47
36
|
attr_reader :datatype
|
@@ -68,22 +57,13 @@ module AvalaraSdk::A1099::V2
|
|
68
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
58
|
def self.attribute_map
|
70
59
|
{
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'
|
77
|
-
:'
|
78
|
-
:'updated_no_email' => :'updatedNoEmail',
|
79
|
-
:'updated_invalid' => :'updatedInvalid',
|
80
|
-
:'skipped_duplicate' => :'skippedDuplicate',
|
81
|
-
:'skipped_invalid' => :'skippedInvalid',
|
82
|
-
:'skipped_multiple_matches' => :'skippedMultipleMatches',
|
83
|
-
:'not_found' => :'notFound',
|
84
|
-
:'created_invalid' => :'createdInvalid',
|
85
|
-
:'created_no_email' => :'createdNoEmail',
|
86
|
-
:'created_valid' => :'createdValid'
|
60
|
+
:'type' => :'type',
|
61
|
+
:'email' => :'email',
|
62
|
+
:'employee_first_name' => :'employeeFirstName',
|
63
|
+
:'employee_last_name' => :'employeeLastName',
|
64
|
+
:'office_code' => :'officeCode',
|
65
|
+
:'company_id' => :'companyId',
|
66
|
+
:'reference_id' => :'referenceId'
|
87
67
|
}
|
88
68
|
end
|
89
69
|
|
@@ -95,116 +75,110 @@ module AvalaraSdk::A1099::V2
|
|
95
75
|
# Attribute type mapping.
|
96
76
|
def self.openapi_types
|
97
77
|
{
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'
|
102
|
-
:'
|
103
|
-
:'
|
104
|
-
:'
|
105
|
-
:'updated_no_email' => :'Integer',
|
106
|
-
:'updated_invalid' => :'Integer',
|
107
|
-
:'skipped_duplicate' => :'Integer',
|
108
|
-
:'skipped_invalid' => :'Integer',
|
109
|
-
:'skipped_multiple_matches' => :'Integer',
|
110
|
-
:'not_found' => :'Integer',
|
111
|
-
:'created_invalid' => :'Integer',
|
112
|
-
:'created_no_email' => :'Integer',
|
113
|
-
:'created_valid' => :'Integer'
|
78
|
+
:'type' => :'String',
|
79
|
+
:'email' => :'String',
|
80
|
+
:'employee_first_name' => :'String',
|
81
|
+
:'employee_last_name' => :'String',
|
82
|
+
:'office_code' => :'String',
|
83
|
+
:'company_id' => :'String',
|
84
|
+
:'reference_id' => :'String'
|
114
85
|
}
|
115
86
|
end
|
116
87
|
|
117
88
|
# List of attributes with nullable: true
|
118
89
|
def self.openapi_nullable
|
119
90
|
Set.new([
|
91
|
+
:'office_code',
|
92
|
+
:'reference_id'
|
120
93
|
])
|
121
94
|
end
|
122
95
|
|
96
|
+
# List of class defined in allOf (OpenAPI v3)
|
97
|
+
def self.openapi_all_of
|
98
|
+
[
|
99
|
+
:'W9FormBaseMinimalRequest'
|
100
|
+
]
|
101
|
+
end
|
102
|
+
|
123
103
|
# Initializes the object
|
124
104
|
# @param [Hash] attributes Model attributes in the form of hash
|
125
105
|
def initialize(attributes = {})
|
126
106
|
if (!attributes.is_a?(Hash))
|
127
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::W4FormMinimalRequest` initialize method"
|
128
108
|
end
|
129
109
|
|
130
110
|
# check to see if the attribute exists and convert string to symbol for hash key
|
131
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
132
112
|
if (!self.class.attribute_map.key?(k.to_sym))
|
133
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::W4FormMinimalRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
134
114
|
end
|
135
115
|
h[k.to_sym] = v
|
136
116
|
}
|
137
117
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
self.
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.key?(:'upsert')
|
143
|
-
self.upsert = attributes[:'upsert']
|
118
|
+
if attributes.key?(:'type')
|
119
|
+
self.type = attributes[:'type']
|
144
120
|
end
|
145
121
|
|
146
|
-
if attributes.key?(:'
|
147
|
-
self.
|
148
|
-
|
149
|
-
|
150
|
-
if attributes.key?(:'error_message')
|
151
|
-
self.error_message = attributes[:'error_message']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.key?(:'total_processed')
|
155
|
-
self.total_processed = attributes[:'total_processed']
|
122
|
+
if attributes.key?(:'email')
|
123
|
+
self.email = attributes[:'email']
|
124
|
+
else
|
125
|
+
self.email = nil
|
156
126
|
end
|
157
127
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
128
|
+
if attributes.key?(:'employee_first_name')
|
129
|
+
self.employee_first_name = attributes[:'employee_first_name']
|
130
|
+
else
|
131
|
+
self.employee_first_name = nil
|
160
132
|
end
|
161
133
|
|
162
|
-
if attributes.key?(:'
|
163
|
-
self.
|
134
|
+
if attributes.key?(:'employee_last_name')
|
135
|
+
self.employee_last_name = attributes[:'employee_last_name']
|
136
|
+
else
|
137
|
+
self.employee_last_name = nil
|
164
138
|
end
|
165
139
|
|
166
|
-
if attributes.key?(:'
|
167
|
-
self.
|
140
|
+
if attributes.key?(:'office_code')
|
141
|
+
self.office_code = attributes[:'office_code']
|
168
142
|
end
|
169
143
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
144
|
+
if attributes.key?(:'company_id')
|
145
|
+
self.company_id = attributes[:'company_id']
|
172
146
|
end
|
173
147
|
|
174
|
-
if attributes.key?(:'
|
175
|
-
self.
|
148
|
+
if attributes.key?(:'reference_id')
|
149
|
+
self.reference_id = attributes[:'reference_id']
|
176
150
|
end
|
151
|
+
end
|
177
152
|
|
178
|
-
|
179
|
-
|
153
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
154
|
+
# @return Array for valid properties with the reasons
|
155
|
+
def list_invalid_properties
|
156
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
157
|
+
invalid_properties = Array.new
|
158
|
+
if @email.nil?
|
159
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
180
160
|
end
|
181
161
|
|
182
|
-
if
|
183
|
-
|
162
|
+
if @email.to_s.length < 1
|
163
|
+
invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
|
184
164
|
end
|
185
165
|
|
186
|
-
if
|
187
|
-
|
166
|
+
if @employee_first_name.nil?
|
167
|
+
invalid_properties.push('invalid value for "employee_first_name", employee_first_name cannot be nil.')
|
188
168
|
end
|
189
169
|
|
190
|
-
if
|
191
|
-
|
170
|
+
if @employee_first_name.to_s.length < 1
|
171
|
+
invalid_properties.push('invalid value for "employee_first_name", the character length must be great than or equal to 1.')
|
192
172
|
end
|
193
173
|
|
194
|
-
if
|
195
|
-
|
174
|
+
if @employee_last_name.nil?
|
175
|
+
invalid_properties.push('invalid value for "employee_last_name", employee_last_name cannot be nil.')
|
196
176
|
end
|
197
177
|
|
198
|
-
if
|
199
|
-
|
178
|
+
if @employee_last_name.to_s.length < 1
|
179
|
+
invalid_properties.push('invalid value for "employee_last_name", the character length must be great than or equal to 1.')
|
200
180
|
end
|
201
|
-
end
|
202
181
|
|
203
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
204
|
-
# @return Array for valid properties with the reasons
|
205
|
-
def list_invalid_properties
|
206
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
207
|
-
invalid_properties = Array.new
|
208
182
|
invalid_properties
|
209
183
|
end
|
210
184
|
|
@@ -212,19 +186,67 @@ module AvalaraSdk::A1099::V2
|
|
212
186
|
# @return true if the model is valid
|
213
187
|
def valid?
|
214
188
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
215
|
-
|
216
|
-
return false unless
|
189
|
+
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
190
|
+
return false unless type_validator.valid?(@type)
|
191
|
+
return false if @email.nil?
|
192
|
+
return false if @email.to_s.length < 1
|
193
|
+
return false if @employee_first_name.nil?
|
194
|
+
return false if @employee_first_name.to_s.length < 1
|
195
|
+
return false if @employee_last_name.nil?
|
196
|
+
return false if @employee_last_name.to_s.length < 1
|
217
197
|
true
|
218
198
|
end
|
219
199
|
|
220
200
|
# Custom attribute writer method checking allowed values (enum).
|
221
|
-
# @param [Object]
|
222
|
-
def
|
223
|
-
validator = EnumAttributeValidator.new('String', ["
|
224
|
-
unless validator.valid?(
|
225
|
-
fail ArgumentError, "invalid value for \"
|
201
|
+
# @param [Object] type Object to be assigned
|
202
|
+
def type=(type)
|
203
|
+
validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
204
|
+
unless validator.valid?(type)
|
205
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
226
206
|
end
|
227
|
-
@
|
207
|
+
@type = type
|
208
|
+
end
|
209
|
+
|
210
|
+
# Custom attribute writer method with validation
|
211
|
+
# @param [Object] email Value to be assigned
|
212
|
+
def email=(email)
|
213
|
+
if email.nil?
|
214
|
+
fail ArgumentError, 'email cannot be nil'
|
215
|
+
end
|
216
|
+
|
217
|
+
if email.to_s.length < 1
|
218
|
+
fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
|
219
|
+
end
|
220
|
+
|
221
|
+
@email = email
|
222
|
+
end
|
223
|
+
|
224
|
+
# Custom attribute writer method with validation
|
225
|
+
# @param [Object] employee_first_name Value to be assigned
|
226
|
+
def employee_first_name=(employee_first_name)
|
227
|
+
if employee_first_name.nil?
|
228
|
+
fail ArgumentError, 'employee_first_name cannot be nil'
|
229
|
+
end
|
230
|
+
|
231
|
+
if employee_first_name.to_s.length < 1
|
232
|
+
fail ArgumentError, 'invalid value for "employee_first_name", the character length must be great than or equal to 1.'
|
233
|
+
end
|
234
|
+
|
235
|
+
@employee_first_name = employee_first_name
|
236
|
+
end
|
237
|
+
|
238
|
+
# Custom attribute writer method with validation
|
239
|
+
# @param [Object] employee_last_name Value to be assigned
|
240
|
+
def employee_last_name=(employee_last_name)
|
241
|
+
if employee_last_name.nil?
|
242
|
+
fail ArgumentError, 'employee_last_name cannot be nil'
|
243
|
+
end
|
244
|
+
|
245
|
+
if employee_last_name.to_s.length < 1
|
246
|
+
fail ArgumentError, 'invalid value for "employee_last_name", the character length must be great than or equal to 1.'
|
247
|
+
end
|
248
|
+
|
249
|
+
@employee_last_name = employee_last_name
|
228
250
|
end
|
229
251
|
|
230
252
|
# Checks equality by comparing each attribute.
|
@@ -232,22 +254,13 @@ module AvalaraSdk::A1099::V2
|
|
232
254
|
def ==(o)
|
233
255
|
return true if self.equal?(o)
|
234
256
|
self.class == o.class &&
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
updated_no_email == o.updated_no_email &&
|
243
|
-
updated_invalid == o.updated_invalid &&
|
244
|
-
skipped_duplicate == o.skipped_duplicate &&
|
245
|
-
skipped_invalid == o.skipped_invalid &&
|
246
|
-
skipped_multiple_matches == o.skipped_multiple_matches &&
|
247
|
-
not_found == o.not_found &&
|
248
|
-
created_invalid == o.created_invalid &&
|
249
|
-
created_no_email == o.created_no_email &&
|
250
|
-
created_valid == o.created_valid
|
257
|
+
type == o.type &&
|
258
|
+
email == o.email &&
|
259
|
+
employee_first_name == o.employee_first_name &&
|
260
|
+
employee_last_name == o.employee_last_name &&
|
261
|
+
office_code == o.office_code &&
|
262
|
+
company_id == o.company_id &&
|
263
|
+
reference_id == o.reference_id
|
251
264
|
end
|
252
265
|
|
253
266
|
# @see the `==` method
|
@@ -259,7 +272,7 @@ module AvalaraSdk::A1099::V2
|
|
259
272
|
# Calculates hash code according to all attributes.
|
260
273
|
# @return [Integer] Hash code
|
261
274
|
def hash
|
262
|
-
[
|
275
|
+
[type, email, employee_first_name, employee_last_name, office_code, company_id, reference_id].hash
|
263
276
|
end
|
264
277
|
|
265
278
|
# Builds the object from hash
|
@@ -26,25 +26,25 @@ module AvalaraSdk::A1099::V2
|
|
26
26
|
# The name suffix of the employee.
|
27
27
|
attr_accessor :employee_name_suffix
|
28
28
|
|
29
|
-
#
|
29
|
+
# Tax Identification Number (TIN) type.
|
30
30
|
attr_accessor :tin_type
|
31
31
|
|
32
32
|
# The taxpayer identification number (TIN).
|
33
33
|
attr_accessor :tin
|
34
34
|
|
35
|
-
# The address of the employee.
|
35
|
+
# The address of the employee. Required unless exempt.
|
36
36
|
attr_accessor :address
|
37
37
|
|
38
|
-
# The city of residence of the employee.
|
38
|
+
# The city of residence of the employee. Required unless exempt.
|
39
39
|
attr_accessor :city
|
40
40
|
|
41
|
-
# The state of residence of the employee.
|
41
|
+
# The state of residence of the employee. Required unless exempt.
|
42
42
|
attr_accessor :state
|
43
43
|
|
44
|
-
# The ZIP code of residence of the employee.
|
44
|
+
# The ZIP code of residence of the employee. Required unless exempt.
|
45
45
|
attr_accessor :zip
|
46
46
|
|
47
|
-
# The marital status of the employee.
|
47
|
+
# The marital status of the employee. Required unless exempt. Available values: - Single: Single or Married filing separately - Married: Married filing jointly or qualifying surviving spouse - MarriedBut: Head of household. Check only if you're unmarried and pay more than half the costs of keeping up a home for yourself and a qualifying individual.
|
48
48
|
attr_accessor :marital_status
|
49
49
|
|
50
50
|
# Indicates whether the last name differs from prior records.
|
@@ -71,7 +71,13 @@ module AvalaraSdk::A1099::V2
|
|
71
71
|
# The office code associated with the form.
|
72
72
|
attr_accessor :office_code
|
73
73
|
|
74
|
-
# The
|
74
|
+
# The date when e-delivery was consented.
|
75
|
+
attr_accessor :e_delivery_consented_at
|
76
|
+
|
77
|
+
# The signature of the form.
|
78
|
+
attr_accessor :signature
|
79
|
+
|
80
|
+
# The ID of the associated company. Required when creating a form.
|
75
81
|
attr_accessor :company_id
|
76
82
|
|
77
83
|
# A reference identifier for the form.
|
@@ -80,12 +86,6 @@ module AvalaraSdk::A1099::V2
|
|
80
86
|
# The email address of the individual associated with the form.
|
81
87
|
attr_accessor :email
|
82
88
|
|
83
|
-
# The date when e-delivery was consented.
|
84
|
-
attr_accessor :e_delivery_consented_at
|
85
|
-
|
86
|
-
# The signature of the form.
|
87
|
-
attr_accessor :signature
|
88
|
-
|
89
89
|
class EnumAttributeValidator
|
90
90
|
attr_reader :datatype
|
91
91
|
attr_reader :allowable_values
|
@@ -131,11 +131,11 @@ module AvalaraSdk::A1099::V2
|
|
131
131
|
:'additional_withheld' => :'additionalWithheld',
|
132
132
|
:'exempt_from_withholding' => :'exemptFromWithholding',
|
133
133
|
:'office_code' => :'officeCode',
|
134
|
+
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
135
|
+
:'signature' => :'signature',
|
134
136
|
:'company_id' => :'companyId',
|
135
137
|
:'reference_id' => :'referenceId',
|
136
|
-
:'email' => :'email'
|
137
|
-
:'e_delivery_consented_at' => :'eDeliveryConsentedAt',
|
138
|
-
:'signature' => :'signature'
|
138
|
+
:'email' => :'email'
|
139
139
|
}
|
140
140
|
end
|
141
141
|
|
@@ -167,11 +167,11 @@ module AvalaraSdk::A1099::V2
|
|
167
167
|
:'additional_withheld' => :'Float',
|
168
168
|
:'exempt_from_withholding' => :'Boolean',
|
169
169
|
:'office_code' => :'String',
|
170
|
+
:'e_delivery_consented_at' => :'Time',
|
171
|
+
:'signature' => :'String',
|
170
172
|
:'company_id' => :'String',
|
171
173
|
:'reference_id' => :'String',
|
172
|
-
:'email' => :'String'
|
173
|
-
:'e_delivery_consented_at' => :'Time',
|
174
|
-
:'signature' => :'String'
|
174
|
+
:'email' => :'String'
|
175
175
|
}
|
176
176
|
end
|
177
177
|
|
@@ -191,10 +191,10 @@ module AvalaraSdk::A1099::V2
|
|
191
191
|
:'deductions',
|
192
192
|
:'additional_withheld',
|
193
193
|
:'office_code',
|
194
|
-
:'reference_id',
|
195
|
-
:'email',
|
196
194
|
:'e_delivery_consented_at',
|
197
|
-
:'signature'
|
195
|
+
:'signature',
|
196
|
+
:'reference_id',
|
197
|
+
:'email'
|
198
198
|
])
|
199
199
|
end
|
200
200
|
|
@@ -226,6 +226,8 @@ module AvalaraSdk::A1099::V2
|
|
226
226
|
|
227
227
|
if attributes.key?(:'employee_first_name')
|
228
228
|
self.employee_first_name = attributes[:'employee_first_name']
|
229
|
+
else
|
230
|
+
self.employee_first_name = nil
|
229
231
|
end
|
230
232
|
|
231
233
|
if attributes.key?(:'employee_middle_name')
|
@@ -234,6 +236,8 @@ module AvalaraSdk::A1099::V2
|
|
234
236
|
|
235
237
|
if attributes.key?(:'employee_last_name')
|
236
238
|
self.employee_last_name = attributes[:'employee_last_name']
|
239
|
+
else
|
240
|
+
self.employee_last_name = nil
|
237
241
|
end
|
238
242
|
|
239
243
|
if attributes.key?(:'employee_name_suffix')
|
@@ -242,10 +246,14 @@ module AvalaraSdk::A1099::V2
|
|
242
246
|
|
243
247
|
if attributes.key?(:'tin_type')
|
244
248
|
self.tin_type = attributes[:'tin_type']
|
249
|
+
else
|
250
|
+
self.tin_type = nil
|
245
251
|
end
|
246
252
|
|
247
253
|
if attributes.key?(:'tin')
|
248
254
|
self.tin = attributes[:'tin']
|
255
|
+
else
|
256
|
+
self.tin = nil
|
249
257
|
end
|
250
258
|
|
251
259
|
if attributes.key?(:'address')
|
@@ -300,6 +308,14 @@ module AvalaraSdk::A1099::V2
|
|
300
308
|
self.office_code = attributes[:'office_code']
|
301
309
|
end
|
302
310
|
|
311
|
+
if attributes.key?(:'e_delivery_consented_at')
|
312
|
+
self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
|
313
|
+
end
|
314
|
+
|
315
|
+
if attributes.key?(:'signature')
|
316
|
+
self.signature = attributes[:'signature']
|
317
|
+
end
|
318
|
+
|
303
319
|
if attributes.key?(:'company_id')
|
304
320
|
self.company_id = attributes[:'company_id']
|
305
321
|
end
|
@@ -311,14 +327,6 @@ module AvalaraSdk::A1099::V2
|
|
311
327
|
if attributes.key?(:'email')
|
312
328
|
self.email = attributes[:'email']
|
313
329
|
end
|
314
|
-
|
315
|
-
if attributes.key?(:'e_delivery_consented_at')
|
316
|
-
self.e_delivery_consented_at = attributes[:'e_delivery_consented_at']
|
317
|
-
end
|
318
|
-
|
319
|
-
if attributes.key?(:'signature')
|
320
|
-
self.signature = attributes[:'signature']
|
321
|
-
end
|
322
330
|
end
|
323
331
|
|
324
332
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -326,6 +334,22 @@ module AvalaraSdk::A1099::V2
|
|
326
334
|
def list_invalid_properties
|
327
335
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
328
336
|
invalid_properties = Array.new
|
337
|
+
if @employee_first_name.nil?
|
338
|
+
invalid_properties.push('invalid value for "employee_first_name", employee_first_name cannot be nil.')
|
339
|
+
end
|
340
|
+
|
341
|
+
if @employee_last_name.nil?
|
342
|
+
invalid_properties.push('invalid value for "employee_last_name", employee_last_name cannot be nil.')
|
343
|
+
end
|
344
|
+
|
345
|
+
if @tin_type.nil?
|
346
|
+
invalid_properties.push('invalid value for "tin_type", tin_type cannot be nil.')
|
347
|
+
end
|
348
|
+
|
349
|
+
if @tin.nil?
|
350
|
+
invalid_properties.push('invalid value for "tin", tin cannot be nil.')
|
351
|
+
end
|
352
|
+
|
329
353
|
invalid_properties
|
330
354
|
end
|
331
355
|
|
@@ -335,6 +359,10 @@ module AvalaraSdk::A1099::V2
|
|
335
359
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
336
360
|
type_validator = EnumAttributeValidator.new('String', ["W4", "W8Ben", "W8BenE", "W8Imy", "W9"])
|
337
361
|
return false unless type_validator.valid?(@type)
|
362
|
+
return false if @employee_first_name.nil?
|
363
|
+
return false if @employee_last_name.nil?
|
364
|
+
return false if @tin_type.nil?
|
365
|
+
return false if @tin.nil?
|
338
366
|
true
|
339
367
|
end
|
340
368
|
|
@@ -373,11 +401,11 @@ module AvalaraSdk::A1099::V2
|
|
373
401
|
additional_withheld == o.additional_withheld &&
|
374
402
|
exempt_from_withholding == o.exempt_from_withholding &&
|
375
403
|
office_code == o.office_code &&
|
404
|
+
e_delivery_consented_at == o.e_delivery_consented_at &&
|
405
|
+
signature == o.signature &&
|
376
406
|
company_id == o.company_id &&
|
377
407
|
reference_id == o.reference_id &&
|
378
|
-
email == o.email
|
379
|
-
e_delivery_consented_at == o.e_delivery_consented_at &&
|
380
|
-
signature == o.signature
|
408
|
+
email == o.email
|
381
409
|
end
|
382
410
|
|
383
411
|
# @see the `==` method
|
@@ -389,7 +417,7 @@ module AvalaraSdk::A1099::V2
|
|
389
417
|
# Calculates hash code according to all attributes.
|
390
418
|
# @return [Integer] Hash code
|
391
419
|
def hash
|
392
|
-
[type, employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code,
|
420
|
+
[type, employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, tin_type, tin, address, city, state, zip, marital_status, last_name_differs, num_allowances, other_dependents, non_job_income, deductions, additional_withheld, exempt_from_withholding, office_code, e_delivery_consented_at, signature, company_id, reference_id, email].hash
|
393
421
|
end
|
394
422
|
|
395
423
|
# Builds the object from hash
|