avalara_sdk 25.8.2 → 25.8.3
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 +18 -79
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- 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 +45 -41
- data/docs/A1099/V2/FormsW9Api.md +98 -14
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- 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/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +6 -6
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +6 -6
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +89 -57
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +144 -6
- 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/models/A1099/V2/company_create_update_request_model.rb +58 -17
- 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/form1042_s.rb +424 -179
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +365 -179
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +259 -111
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +286 -177
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +310 -171
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +308 -174
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +298 -186
- data/lib/avalara_sdk/models/A1099/V2/{form1099_div_list.rb → form1099_list_request.rb} +49 -22
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +337 -201
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +298 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +414 -274
- 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 +13 -1
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- 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} +108 -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 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +418 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → w8_ben_e_form_minimal_request.rb} +139 -170
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → w8_ben_form_minimal_request.rb} +148 -122
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w8_imy_form_minimal_request.rb} +135 -132
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → w9_form_base_minimal_request.rb} +87 -53
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +60 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +14 -14
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → w9_form_minimal_request.rb} +140 -148
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +53 -27
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -105
- 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 +37 -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_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_request.rb +0 -311
- 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/problem_details.rb +0 -251
- 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,97 +10,152 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
13
|
+
# Form 1095-C: Employer-Provided Health Insurance Offer and Coverage
|
14
|
+
class Form1095C
|
15
|
+
# Employee's first name
|
14
16
|
attr_accessor :employee_first_name
|
15
17
|
|
18
|
+
# Employee's middle name
|
16
19
|
attr_accessor :employee_middle_name
|
17
20
|
|
21
|
+
# Employee's last name
|
18
22
|
attr_accessor :employee_last_name
|
19
23
|
|
24
|
+
# Employee's name suffix
|
20
25
|
attr_accessor :employee_name_suffix
|
21
26
|
|
22
|
-
|
27
|
+
# Recipient's date of birth
|
28
|
+
attr_accessor :recipient_date_of_birth
|
23
29
|
|
24
|
-
|
30
|
+
# Plan start month. The calendar month during which the plan year begins of the health plan in which the employee is offered coverage (or would be offered coverage if the employee were eligible to participate in the plan). Available values: - 00: None - 01: January - 02: February - 03: March - 04: April - 05: May - 06: June - 07: July - 08: August - 09: September - 10: October - 11: November - 12: December
|
31
|
+
attr_accessor :plan_start_month
|
25
32
|
|
26
|
-
|
27
|
-
|
28
|
-
attr_accessor :type
|
29
|
-
|
30
|
-
attr_accessor :created_at
|
33
|
+
# Employer provided self-insured coverage
|
34
|
+
attr_accessor :employer_provided_si_coverage
|
31
35
|
|
32
|
-
|
36
|
+
# Offer and coverage information
|
37
|
+
attr_accessor :offer_and_coverages
|
33
38
|
|
34
|
-
|
39
|
+
# Covered individuals information
|
40
|
+
attr_accessor :covered_individuals
|
35
41
|
|
36
|
-
|
42
|
+
# Form type
|
43
|
+
attr_accessor :type
|
37
44
|
|
45
|
+
# Form ID. Unique identifier set when the record is created.
|
38
46
|
attr_accessor :id
|
39
47
|
|
48
|
+
# Issuer ID - only required when creating forms
|
40
49
|
attr_accessor :issuer_id
|
41
50
|
|
51
|
+
# Issuer Reference ID - only required when creating forms
|
42
52
|
attr_accessor :issuer_reference_id
|
43
53
|
|
54
|
+
# Issuer TIN - readonly
|
44
55
|
attr_accessor :issuer_tin
|
45
56
|
|
57
|
+
# Tax Year - only required when creating forms
|
46
58
|
attr_accessor :tax_year
|
47
59
|
|
60
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
48
61
|
attr_accessor :reference_id
|
49
62
|
|
63
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
64
|
+
attr_accessor :tin
|
65
|
+
|
66
|
+
# Recipient name
|
50
67
|
attr_accessor :recipient_name
|
51
68
|
|
52
|
-
|
69
|
+
# Type of TIN (Tax ID Number)
|
70
|
+
attr_accessor :tin_type
|
53
71
|
|
72
|
+
# Recipient second name
|
54
73
|
attr_accessor :recipient_second_name
|
55
74
|
|
75
|
+
# Address.
|
56
76
|
attr_accessor :address
|
57
77
|
|
78
|
+
# Address line 2.
|
58
79
|
attr_accessor :address2
|
59
80
|
|
81
|
+
# City.
|
60
82
|
attr_accessor :city
|
61
83
|
|
84
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
62
85
|
attr_accessor :state
|
63
86
|
|
87
|
+
# ZIP/postal code.
|
64
88
|
attr_accessor :zip
|
65
89
|
|
90
|
+
# Recipient's Contact email address.
|
66
91
|
attr_accessor :email
|
67
92
|
|
93
|
+
# Account number
|
68
94
|
attr_accessor :account_number
|
69
95
|
|
96
|
+
# Office code
|
70
97
|
attr_accessor :office_code
|
71
98
|
|
99
|
+
# Province or region for non-US/CA addresses.
|
72
100
|
attr_accessor :non_us_province
|
73
101
|
|
102
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
74
103
|
attr_accessor :country_code
|
75
104
|
|
76
|
-
|
105
|
+
# Date when federal e-filing should be scheduled for this form
|
106
|
+
attr_accessor :federal_efile_date
|
77
107
|
|
108
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
78
109
|
attr_accessor :postal_mail
|
79
110
|
|
80
|
-
|
111
|
+
# Date when state e-filing should be scheduled for this form
|
112
|
+
attr_accessor :state_efile_date
|
81
113
|
|
114
|
+
# Date when recipient e-delivery should be scheduled for this form
|
115
|
+
attr_accessor :recipient_edelivery_date
|
116
|
+
|
117
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
82
118
|
attr_accessor :tin_match
|
83
119
|
|
120
|
+
# No TIN indicator
|
84
121
|
attr_accessor :no_tin
|
85
122
|
|
86
|
-
|
87
|
-
|
123
|
+
# Boolean indicating that address verification should be scheduled for this form
|
88
124
|
attr_accessor :address_verification
|
89
125
|
|
90
|
-
|
126
|
+
# State and local withholding information
|
127
|
+
attr_accessor :state_and_local_withholding
|
91
128
|
|
92
|
-
|
129
|
+
# Second TIN notice
|
130
|
+
attr_accessor :second_tin_notice
|
131
|
+
|
132
|
+
# Federal e-file status
|
133
|
+
attr_accessor :federal_efile_status
|
93
134
|
|
135
|
+
# State e-file status
|
94
136
|
attr_accessor :state_efile_status
|
95
137
|
|
138
|
+
# Postal mail to recipient status
|
96
139
|
attr_accessor :postal_mail_status
|
97
140
|
|
141
|
+
# TIN Match status
|
98
142
|
attr_accessor :tin_match_status
|
99
143
|
|
144
|
+
# Address verification status
|
100
145
|
attr_accessor :address_verification_status
|
101
146
|
|
147
|
+
# EDelivery status
|
148
|
+
attr_accessor :e_delivery_status
|
149
|
+
|
150
|
+
# Validation errors
|
102
151
|
attr_accessor :validation_errors
|
103
152
|
|
153
|
+
# Date time when the record was created.
|
154
|
+
attr_accessor :created_at
|
155
|
+
|
156
|
+
# Date time when the record was last updated.
|
157
|
+
attr_accessor :updated_at
|
158
|
+
|
104
159
|
class EnumAttributeValidator
|
105
160
|
attr_reader :datatype
|
106
161
|
attr_reader :allowable_values
|
@@ -130,22 +185,21 @@ module AvalaraSdk::A1099::V2
|
|
130
185
|
:'employee_middle_name' => :'employeeMiddleName',
|
131
186
|
:'employee_last_name' => :'employeeLastName',
|
132
187
|
:'employee_name_suffix' => :'employeeNameSuffix',
|
133
|
-
:'
|
134
|
-
:'
|
188
|
+
:'recipient_date_of_birth' => :'recipientDateOfBirth',
|
189
|
+
:'plan_start_month' => :'planStartMonth',
|
190
|
+
:'employer_provided_si_coverage' => :'employerProvidedSiCoverage',
|
191
|
+
:'offer_and_coverages' => :'offerAndCoverages',
|
135
192
|
:'covered_individuals' => :'coveredIndividuals',
|
136
193
|
:'type' => :'type',
|
137
|
-
:'created_at' => :'createdAt',
|
138
|
-
:'updated_at' => :'updatedAt',
|
139
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
140
|
-
:'tin_type' => :'tinType',
|
141
194
|
:'id' => :'id',
|
142
195
|
:'issuer_id' => :'issuerId',
|
143
196
|
:'issuer_reference_id' => :'issuerReferenceId',
|
144
197
|
:'issuer_tin' => :'issuerTin',
|
145
198
|
:'tax_year' => :'taxYear',
|
146
199
|
:'reference_id' => :'referenceId',
|
200
|
+
:'tin' => :'tin',
|
147
201
|
:'recipient_name' => :'recipientName',
|
148
|
-
:'
|
202
|
+
:'tin_type' => :'tinType',
|
149
203
|
:'recipient_second_name' => :'recipientSecondName',
|
150
204
|
:'address' => :'address',
|
151
205
|
:'address2' => :'address2',
|
@@ -157,20 +211,24 @@ module AvalaraSdk::A1099::V2
|
|
157
211
|
:'office_code' => :'officeCode',
|
158
212
|
:'non_us_province' => :'nonUsProvince',
|
159
213
|
:'country_code' => :'countryCode',
|
160
|
-
:'
|
214
|
+
:'federal_efile_date' => :'federalEfileDate',
|
161
215
|
:'postal_mail' => :'postalMail',
|
162
|
-
:'
|
216
|
+
:'state_efile_date' => :'stateEfileDate',
|
217
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
163
218
|
:'tin_match' => :'tinMatch',
|
164
219
|
:'no_tin' => :'noTin',
|
165
|
-
:'second_tin_notice' => :'secondTinNotice',
|
166
220
|
:'address_verification' => :'addressVerification',
|
221
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
222
|
+
:'second_tin_notice' => :'secondTinNotice',
|
167
223
|
:'federal_efile_status' => :'federalEfileStatus',
|
168
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
169
224
|
:'state_efile_status' => :'stateEfileStatus',
|
170
225
|
:'postal_mail_status' => :'postalMailStatus',
|
171
226
|
:'tin_match_status' => :'tinMatchStatus',
|
172
227
|
:'address_verification_status' => :'addressVerificationStatus',
|
173
|
-
:'
|
228
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
229
|
+
:'validation_errors' => :'validationErrors',
|
230
|
+
:'created_at' => :'createdAt',
|
231
|
+
:'updated_at' => :'updatedAt'
|
174
232
|
}
|
175
233
|
end
|
176
234
|
|
@@ -186,22 +244,21 @@ module AvalaraSdk::A1099::V2
|
|
186
244
|
:'employee_middle_name' => :'String',
|
187
245
|
:'employee_last_name' => :'String',
|
188
246
|
:'employee_name_suffix' => :'String',
|
189
|
-
:'
|
190
|
-
:'
|
191
|
-
:'
|
247
|
+
:'recipient_date_of_birth' => :'Date',
|
248
|
+
:'plan_start_month' => :'String',
|
249
|
+
:'employer_provided_si_coverage' => :'Boolean',
|
250
|
+
:'offer_and_coverages' => :'Array<OfferAndCoverage>',
|
251
|
+
:'covered_individuals' => :'Array<CoveredIndividual>',
|
192
252
|
:'type' => :'String',
|
193
|
-
:'created_at' => :'Time',
|
194
|
-
:'updated_at' => :'Time',
|
195
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholdingResponse',
|
196
|
-
:'tin_type' => :'String',
|
197
253
|
:'id' => :'String',
|
198
254
|
:'issuer_id' => :'String',
|
199
255
|
:'issuer_reference_id' => :'String',
|
200
256
|
:'issuer_tin' => :'String',
|
201
257
|
:'tax_year' => :'Integer',
|
202
258
|
:'reference_id' => :'String',
|
259
|
+
:'tin' => :'String',
|
203
260
|
:'recipient_name' => :'String',
|
204
|
-
:'
|
261
|
+
:'tin_type' => :'String',
|
205
262
|
:'recipient_second_name' => :'String',
|
206
263
|
:'address' => :'String',
|
207
264
|
:'address2' => :'String',
|
@@ -213,43 +270,79 @@ module AvalaraSdk::A1099::V2
|
|
213
270
|
:'office_code' => :'String',
|
214
271
|
:'non_us_province' => :'String',
|
215
272
|
:'country_code' => :'String',
|
216
|
-
:'
|
273
|
+
:'federal_efile_date' => :'Date',
|
217
274
|
:'postal_mail' => :'Boolean',
|
218
|
-
:'
|
275
|
+
:'state_efile_date' => :'Date',
|
276
|
+
:'recipient_edelivery_date' => :'Date',
|
219
277
|
:'tin_match' => :'Boolean',
|
220
278
|
:'no_tin' => :'Boolean',
|
221
|
-
:'second_tin_notice' => :'Boolean',
|
222
279
|
:'address_verification' => :'Boolean',
|
223
|
-
:'
|
224
|
-
:'
|
225
|
-
:'
|
226
|
-
:'
|
227
|
-
:'
|
228
|
-
:'
|
229
|
-
:'
|
280
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
281
|
+
:'second_tin_notice' => :'Boolean',
|
282
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
283
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
284
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
285
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
286
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
287
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
288
|
+
:'validation_errors' => :'Array<ValidationError>',
|
289
|
+
:'created_at' => :'Time',
|
290
|
+
:'updated_at' => :'Time'
|
230
291
|
}
|
231
292
|
end
|
232
293
|
|
233
294
|
# List of attributes with nullable: true
|
234
295
|
def self.openapi_nullable
|
235
296
|
Set.new([
|
297
|
+
:'employee_first_name',
|
236
298
|
:'employee_middle_name',
|
299
|
+
:'employee_last_name',
|
237
300
|
:'employee_name_suffix',
|
238
|
-
:'
|
301
|
+
:'recipient_date_of_birth',
|
302
|
+
:'plan_start_month',
|
303
|
+
:'employer_provided_si_coverage',
|
304
|
+
:'id',
|
305
|
+
:'issuer_id',
|
306
|
+
:'issuer_reference_id',
|
307
|
+
:'issuer_tin',
|
308
|
+
:'tax_year',
|
309
|
+
:'reference_id',
|
310
|
+
:'tin',
|
311
|
+
:'recipient_name',
|
312
|
+
:'tin_type',
|
313
|
+
:'recipient_second_name',
|
314
|
+
:'address',
|
315
|
+
:'address2',
|
316
|
+
:'city',
|
317
|
+
:'state',
|
318
|
+
:'zip',
|
319
|
+
:'email',
|
320
|
+
:'account_number',
|
321
|
+
:'office_code',
|
322
|
+
:'non_us_province',
|
323
|
+
:'country_code',
|
324
|
+
:'federal_efile_date',
|
325
|
+
:'postal_mail',
|
326
|
+
:'state_efile_date',
|
327
|
+
:'recipient_edelivery_date',
|
328
|
+
:'tin_match',
|
329
|
+
:'no_tin',
|
330
|
+
:'address_verification',
|
331
|
+
:'state_and_local_withholding',
|
239
332
|
:'federal_efile_status',
|
240
|
-
:'e_delivery_status',
|
241
333
|
:'state_efile_status',
|
242
334
|
:'postal_mail_status',
|
243
335
|
:'tin_match_status',
|
244
336
|
:'address_verification_status',
|
245
|
-
:'
|
337
|
+
:'e_delivery_status',
|
338
|
+
:'validation_errors',
|
246
339
|
])
|
247
340
|
end
|
248
341
|
|
249
342
|
# List of class defined in allOf (OpenAPI v3)
|
250
343
|
def self.openapi_all_of
|
251
344
|
[
|
252
|
-
:'
|
345
|
+
:'Form1099Base'
|
253
346
|
]
|
254
347
|
end
|
255
348
|
|
@@ -257,19 +350,21 @@ module AvalaraSdk::A1099::V2
|
|
257
350
|
# @param [Hash] attributes Model attributes in the form of hash
|
258
351
|
def initialize(attributes = {})
|
259
352
|
if (!attributes.is_a?(Hash))
|
260
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::
|
353
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1095C` initialize method"
|
261
354
|
end
|
262
355
|
|
263
356
|
# check to see if the attribute exists and convert string to symbol for hash key
|
264
357
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
265
358
|
if (!self.class.attribute_map.key?(k.to_sym))
|
266
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::
|
359
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1095C`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
267
360
|
end
|
268
361
|
h[k.to_sym] = v
|
269
362
|
}
|
270
363
|
|
271
364
|
if attributes.key?(:'employee_first_name')
|
272
365
|
self.employee_first_name = attributes[:'employee_first_name']
|
366
|
+
else
|
367
|
+
self.employee_first_name = nil
|
273
368
|
end
|
274
369
|
|
275
370
|
if attributes.key?(:'employee_middle_name')
|
@@ -278,18 +373,34 @@ module AvalaraSdk::A1099::V2
|
|
278
373
|
|
279
374
|
if attributes.key?(:'employee_last_name')
|
280
375
|
self.employee_last_name = attributes[:'employee_last_name']
|
376
|
+
else
|
377
|
+
self.employee_last_name = nil
|
281
378
|
end
|
282
379
|
|
283
380
|
if attributes.key?(:'employee_name_suffix')
|
284
381
|
self.employee_name_suffix = attributes[:'employee_name_suffix']
|
285
382
|
end
|
286
383
|
|
287
|
-
if attributes.key?(:'
|
288
|
-
self.
|
384
|
+
if attributes.key?(:'recipient_date_of_birth')
|
385
|
+
self.recipient_date_of_birth = attributes[:'recipient_date_of_birth']
|
386
|
+
end
|
387
|
+
|
388
|
+
if attributes.key?(:'plan_start_month')
|
389
|
+
self.plan_start_month = attributes[:'plan_start_month']
|
390
|
+
else
|
391
|
+
self.plan_start_month = nil
|
392
|
+
end
|
393
|
+
|
394
|
+
if attributes.key?(:'employer_provided_si_coverage')
|
395
|
+
self.employer_provided_si_coverage = attributes[:'employer_provided_si_coverage']
|
289
396
|
end
|
290
397
|
|
291
|
-
if attributes.key?(:'
|
292
|
-
|
398
|
+
if attributes.key?(:'offer_and_coverages')
|
399
|
+
if (value = attributes[:'offer_and_coverages']).is_a?(Array)
|
400
|
+
self.offer_and_coverages = value
|
401
|
+
end
|
402
|
+
else
|
403
|
+
self.offer_and_coverages = nil
|
293
404
|
end
|
294
405
|
|
295
406
|
if attributes.key?(:'covered_individuals')
|
@@ -300,22 +411,8 @@ module AvalaraSdk::A1099::V2
|
|
300
411
|
|
301
412
|
if attributes.key?(:'type')
|
302
413
|
self.type = attributes[:'type']
|
303
|
-
|
304
|
-
|
305
|
-
if attributes.key?(:'created_at')
|
306
|
-
self.created_at = attributes[:'created_at']
|
307
|
-
end
|
308
|
-
|
309
|
-
if attributes.key?(:'updated_at')
|
310
|
-
self.updated_at = attributes[:'updated_at']
|
311
|
-
end
|
312
|
-
|
313
|
-
if attributes.key?(:'state_and_local_withholding')
|
314
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
315
|
-
end
|
316
|
-
|
317
|
-
if attributes.key?(:'tin_type')
|
318
|
-
self.tin_type = attributes[:'tin_type']
|
414
|
+
else
|
415
|
+
self.type = nil
|
319
416
|
end
|
320
417
|
|
321
418
|
if attributes.key?(:'id')
|
@@ -342,12 +439,18 @@ module AvalaraSdk::A1099::V2
|
|
342
439
|
self.reference_id = attributes[:'reference_id']
|
343
440
|
end
|
344
441
|
|
442
|
+
if attributes.key?(:'tin')
|
443
|
+
self.tin = attributes[:'tin']
|
444
|
+
end
|
445
|
+
|
345
446
|
if attributes.key?(:'recipient_name')
|
346
447
|
self.recipient_name = attributes[:'recipient_name']
|
448
|
+
else
|
449
|
+
self.recipient_name = nil
|
347
450
|
end
|
348
451
|
|
349
|
-
if attributes.key?(:'
|
350
|
-
self.
|
452
|
+
if attributes.key?(:'tin_type')
|
453
|
+
self.tin_type = attributes[:'tin_type']
|
351
454
|
end
|
352
455
|
|
353
456
|
if attributes.key?(:'recipient_second_name')
|
@@ -356,6 +459,8 @@ module AvalaraSdk::A1099::V2
|
|
356
459
|
|
357
460
|
if attributes.key?(:'address')
|
358
461
|
self.address = attributes[:'address']
|
462
|
+
else
|
463
|
+
self.address = nil
|
359
464
|
end
|
360
465
|
|
361
466
|
if attributes.key?(:'address2')
|
@@ -364,6 +469,8 @@ module AvalaraSdk::A1099::V2
|
|
364
469
|
|
365
470
|
if attributes.key?(:'city')
|
366
471
|
self.city = attributes[:'city']
|
472
|
+
else
|
473
|
+
self.city = nil
|
367
474
|
end
|
368
475
|
|
369
476
|
if attributes.key?(:'state')
|
@@ -392,18 +499,24 @@ module AvalaraSdk::A1099::V2
|
|
392
499
|
|
393
500
|
if attributes.key?(:'country_code')
|
394
501
|
self.country_code = attributes[:'country_code']
|
502
|
+
else
|
503
|
+
self.country_code = nil
|
395
504
|
end
|
396
505
|
|
397
|
-
if attributes.key?(:'
|
398
|
-
self.
|
506
|
+
if attributes.key?(:'federal_efile_date')
|
507
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
399
508
|
end
|
400
509
|
|
401
510
|
if attributes.key?(:'postal_mail')
|
402
511
|
self.postal_mail = attributes[:'postal_mail']
|
403
512
|
end
|
404
513
|
|
405
|
-
if attributes.key?(:'
|
406
|
-
self.
|
514
|
+
if attributes.key?(:'state_efile_date')
|
515
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
516
|
+
end
|
517
|
+
|
518
|
+
if attributes.key?(:'recipient_edelivery_date')
|
519
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
407
520
|
end
|
408
521
|
|
409
522
|
if attributes.key?(:'tin_match')
|
@@ -414,20 +527,20 @@ module AvalaraSdk::A1099::V2
|
|
414
527
|
self.no_tin = attributes[:'no_tin']
|
415
528
|
end
|
416
529
|
|
417
|
-
if attributes.key?(:'second_tin_notice')
|
418
|
-
self.second_tin_notice = attributes[:'second_tin_notice']
|
419
|
-
end
|
420
|
-
|
421
530
|
if attributes.key?(:'address_verification')
|
422
531
|
self.address_verification = attributes[:'address_verification']
|
423
532
|
end
|
424
533
|
|
425
|
-
if attributes.key?(:'
|
426
|
-
self.
|
534
|
+
if attributes.key?(:'state_and_local_withholding')
|
535
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
427
536
|
end
|
428
537
|
|
429
|
-
if attributes.key?(:'
|
430
|
-
self.
|
538
|
+
if attributes.key?(:'second_tin_notice')
|
539
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
540
|
+
end
|
541
|
+
|
542
|
+
if attributes.key?(:'federal_efile_status')
|
543
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
431
544
|
end
|
432
545
|
|
433
546
|
if attributes.key?(:'state_efile_status')
|
@@ -448,11 +561,23 @@ module AvalaraSdk::A1099::V2
|
|
448
561
|
self.address_verification_status = attributes[:'address_verification_status']
|
449
562
|
end
|
450
563
|
|
564
|
+
if attributes.key?(:'e_delivery_status')
|
565
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
566
|
+
end
|
567
|
+
|
451
568
|
if attributes.key?(:'validation_errors')
|
452
569
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
453
570
|
self.validation_errors = value
|
454
571
|
end
|
455
572
|
end
|
573
|
+
|
574
|
+
if attributes.key?(:'created_at')
|
575
|
+
self.created_at = attributes[:'created_at']
|
576
|
+
end
|
577
|
+
|
578
|
+
if attributes.key?(:'updated_at')
|
579
|
+
self.updated_at = attributes[:'updated_at']
|
580
|
+
end
|
456
581
|
end
|
457
582
|
|
458
583
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -460,6 +585,14 @@ module AvalaraSdk::A1099::V2
|
|
460
585
|
def list_invalid_properties
|
461
586
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
462
587
|
invalid_properties = Array.new
|
588
|
+
if @offer_and_coverages.nil?
|
589
|
+
invalid_properties.push('invalid value for "offer_and_coverages", offer_and_coverages cannot be nil.')
|
590
|
+
end
|
591
|
+
|
592
|
+
if @type.nil?
|
593
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
594
|
+
end
|
595
|
+
|
463
596
|
invalid_properties
|
464
597
|
end
|
465
598
|
|
@@ -467,23 +600,35 @@ module AvalaraSdk::A1099::V2
|
|
467
600
|
# @return true if the model is valid
|
468
601
|
def valid?
|
469
602
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
470
|
-
|
471
|
-
return false unless
|
603
|
+
plan_start_month_validator = EnumAttributeValidator.new('String', ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"])
|
604
|
+
return false unless plan_start_month_validator.valid?(@plan_start_month)
|
605
|
+
return false if @offer_and_coverages.nil?
|
606
|
+
return false if @type.nil?
|
472
607
|
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
473
608
|
return false unless type_validator.valid?(@type)
|
474
|
-
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
609
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
475
610
|
return false unless tin_type_validator.valid?(@tin_type)
|
476
611
|
true
|
477
612
|
end
|
478
613
|
|
479
614
|
# Custom attribute writer method checking allowed values (enum).
|
480
|
-
# @param [Object]
|
481
|
-
def
|
482
|
-
validator = EnumAttributeValidator.new('String', ["
|
483
|
-
unless validator.valid?(
|
484
|
-
fail ArgumentError, "invalid value for \"
|
615
|
+
# @param [Object] plan_start_month Object to be assigned
|
616
|
+
def plan_start_month=(plan_start_month)
|
617
|
+
validator = EnumAttributeValidator.new('String', ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"])
|
618
|
+
unless validator.valid?(plan_start_month)
|
619
|
+
fail ArgumentError, "invalid value for \"plan_start_month\", must be one of #{validator.allowable_values}."
|
620
|
+
end
|
621
|
+
@plan_start_month = plan_start_month
|
622
|
+
end
|
623
|
+
|
624
|
+
# Custom attribute writer method with validation
|
625
|
+
# @param [Object] offer_and_coverages Value to be assigned
|
626
|
+
def offer_and_coverages=(offer_and_coverages)
|
627
|
+
if offer_and_coverages.nil?
|
628
|
+
fail ArgumentError, 'offer_and_coverages cannot be nil'
|
485
629
|
end
|
486
|
-
|
630
|
+
|
631
|
+
@offer_and_coverages = offer_and_coverages
|
487
632
|
end
|
488
633
|
|
489
634
|
# Custom attribute writer method with validation
|
@@ -509,7 +654,7 @@ module AvalaraSdk::A1099::V2
|
|
509
654
|
# Custom attribute writer method checking allowed values (enum).
|
510
655
|
# @param [Object] tin_type Object to be assigned
|
511
656
|
def tin_type=(tin_type)
|
512
|
-
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
657
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
513
658
|
unless validator.valid?(tin_type)
|
514
659
|
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
515
660
|
end
|
@@ -537,22 +682,21 @@ module AvalaraSdk::A1099::V2
|
|
537
682
|
employee_middle_name == o.employee_middle_name &&
|
538
683
|
employee_last_name == o.employee_last_name &&
|
539
684
|
employee_name_suffix == o.employee_name_suffix &&
|
540
|
-
|
541
|
-
|
685
|
+
recipient_date_of_birth == o.recipient_date_of_birth &&
|
686
|
+
plan_start_month == o.plan_start_month &&
|
687
|
+
employer_provided_si_coverage == o.employer_provided_si_coverage &&
|
688
|
+
offer_and_coverages == o.offer_and_coverages &&
|
542
689
|
covered_individuals == o.covered_individuals &&
|
543
690
|
type == o.type &&
|
544
|
-
created_at == o.created_at &&
|
545
|
-
updated_at == o.updated_at &&
|
546
|
-
state_and_local_withholding == o.state_and_local_withholding &&
|
547
|
-
tin_type == o.tin_type &&
|
548
691
|
id == o.id &&
|
549
692
|
issuer_id == o.issuer_id &&
|
550
693
|
issuer_reference_id == o.issuer_reference_id &&
|
551
694
|
issuer_tin == o.issuer_tin &&
|
552
695
|
tax_year == o.tax_year &&
|
553
696
|
reference_id == o.reference_id &&
|
697
|
+
tin == o.tin &&
|
554
698
|
recipient_name == o.recipient_name &&
|
555
|
-
|
699
|
+
tin_type == o.tin_type &&
|
556
700
|
recipient_second_name == o.recipient_second_name &&
|
557
701
|
address == o.address &&
|
558
702
|
address2 == o.address2 &&
|
@@ -564,20 +708,24 @@ module AvalaraSdk::A1099::V2
|
|
564
708
|
office_code == o.office_code &&
|
565
709
|
non_us_province == o.non_us_province &&
|
566
710
|
country_code == o.country_code &&
|
567
|
-
|
711
|
+
federal_efile_date == o.federal_efile_date &&
|
568
712
|
postal_mail == o.postal_mail &&
|
569
|
-
|
713
|
+
state_efile_date == o.state_efile_date &&
|
714
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
570
715
|
tin_match == o.tin_match &&
|
571
716
|
no_tin == o.no_tin &&
|
572
|
-
second_tin_notice == o.second_tin_notice &&
|
573
717
|
address_verification == o.address_verification &&
|
718
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
719
|
+
second_tin_notice == o.second_tin_notice &&
|
574
720
|
federal_efile_status == o.federal_efile_status &&
|
575
|
-
e_delivery_status == o.e_delivery_status &&
|
576
721
|
state_efile_status == o.state_efile_status &&
|
577
722
|
postal_mail_status == o.postal_mail_status &&
|
578
723
|
tin_match_status == o.tin_match_status &&
|
579
724
|
address_verification_status == o.address_verification_status &&
|
580
|
-
|
725
|
+
e_delivery_status == o.e_delivery_status &&
|
726
|
+
validation_errors == o.validation_errors &&
|
727
|
+
created_at == o.created_at &&
|
728
|
+
updated_at == o.updated_at
|
581
729
|
end
|
582
730
|
|
583
731
|
# @see the `==` method
|
@@ -589,7 +737,7 @@ module AvalaraSdk::A1099::V2
|
|
589
737
|
# Calculates hash code according to all attributes.
|
590
738
|
# @return [Integer] Hash code
|
591
739
|
def hash
|
592
|
-
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix,
|
740
|
+
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, recipient_date_of_birth, plan_start_month, employer_provided_si_coverage, offer_and_coverages, covered_individuals, type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_efile_date, postal_mail, state_efile_date, recipient_edelivery_date, tin_match, no_tin, address_verification, state_and_local_withholding, second_tin_notice, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, e_delivery_status, validation_errors, created_at, updated_at].hash
|
593
741
|
end
|
594
742
|
|
595
743
|
# Builds the object from hash
|