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,133 +10,217 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
13
|
+
# Form 1095-B: Health Coverage
|
14
|
+
class Form1095B
|
15
|
+
# Employee's first name
|
16
|
+
attr_accessor :employee_first_name
|
17
|
+
|
18
|
+
# Employee's middle name
|
19
|
+
attr_accessor :employee_middle_name
|
20
|
+
|
21
|
+
# Employee's last name
|
22
|
+
attr_accessor :employee_last_name
|
23
|
+
|
24
|
+
# Employee's name suffix
|
25
|
+
attr_accessor :employee_name_suffix
|
26
|
+
|
27
|
+
# Employee's date of birth
|
28
|
+
attr_accessor :employee_date_of_birth
|
29
|
+
|
30
|
+
# Origin of health coverage code Available values: - A: Small Business Health Options Program (SHOP) - B: Employer-sponsored coverage - C: Government-sponsored program - D: Individual market insurance - E: Multiemployer plan - F: Other designated minimum essential coverage - G: Employer-sponsored coverage that is an individual coverage HRA (valid for tax years 2020 and later)
|
14
31
|
attr_accessor :origin_of_health_coverage_code
|
15
32
|
|
33
|
+
# Covered individuals information - At least one month of coverage must be entered if it's not a correction.
|
16
34
|
attr_accessor :covered_individuals
|
17
35
|
|
18
|
-
|
19
|
-
|
36
|
+
# Form type
|
20
37
|
attr_accessor :type
|
21
38
|
|
39
|
+
# Form ID. Unique identifier set when the record is created.
|
40
|
+
attr_accessor :id
|
41
|
+
|
42
|
+
# Issuer ID - only required when creating forms
|
22
43
|
attr_accessor :issuer_id
|
23
44
|
|
45
|
+
# Issuer Reference ID - only required when creating forms
|
24
46
|
attr_accessor :issuer_reference_id
|
25
47
|
|
48
|
+
# Issuer TIN - readonly
|
26
49
|
attr_accessor :issuer_tin
|
27
50
|
|
51
|
+
# Tax Year - only required when creating forms
|
28
52
|
attr_accessor :tax_year
|
29
53
|
|
30
|
-
|
54
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
55
|
+
attr_accessor :reference_id
|
31
56
|
|
32
|
-
|
57
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
58
|
+
attr_accessor :tin
|
33
59
|
|
34
|
-
|
60
|
+
# Recipient name
|
61
|
+
attr_accessor :recipient_name
|
35
62
|
|
36
|
-
|
63
|
+
# Type of TIN (Tax ID Number)
|
64
|
+
attr_accessor :tin_type
|
37
65
|
|
38
|
-
|
66
|
+
# Recipient second name
|
67
|
+
attr_accessor :recipient_second_name
|
39
68
|
|
40
|
-
|
69
|
+
# Address.
|
70
|
+
attr_accessor :address
|
41
71
|
|
42
|
-
|
72
|
+
# Address line 2.
|
73
|
+
attr_accessor :address2
|
43
74
|
|
44
|
-
|
75
|
+
# City.
|
76
|
+
attr_accessor :city
|
45
77
|
|
46
|
-
|
78
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
79
|
+
attr_accessor :state
|
47
80
|
|
48
|
-
|
81
|
+
# ZIP/postal code.
|
82
|
+
attr_accessor :zip
|
49
83
|
|
50
|
-
|
84
|
+
# Recipient's Contact email address.
|
85
|
+
attr_accessor :email
|
51
86
|
|
52
|
-
|
87
|
+
# Account number
|
88
|
+
attr_accessor :account_number
|
53
89
|
|
54
|
-
|
90
|
+
# Office code
|
91
|
+
attr_accessor :office_code
|
55
92
|
|
56
|
-
|
93
|
+
# Province or region for non-US/CA addresses.
|
94
|
+
attr_accessor :non_us_province
|
57
95
|
|
58
|
-
|
96
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
97
|
+
attr_accessor :country_code
|
59
98
|
|
60
|
-
|
99
|
+
# Date when federal e-filing should be scheduled for this form
|
100
|
+
attr_accessor :federal_efile_date
|
61
101
|
|
62
|
-
|
102
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
103
|
+
attr_accessor :postal_mail
|
63
104
|
|
64
|
-
|
105
|
+
# Date when state e-filing should be scheduled for this form
|
106
|
+
attr_accessor :state_efile_date
|
65
107
|
|
66
|
-
|
108
|
+
# Date when recipient e-delivery should be scheduled for this form
|
109
|
+
attr_accessor :recipient_edelivery_date
|
67
110
|
|
68
|
-
|
111
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
112
|
+
attr_accessor :tin_match
|
69
113
|
|
70
|
-
|
114
|
+
# No TIN indicator
|
115
|
+
attr_accessor :no_tin
|
71
116
|
|
72
|
-
|
117
|
+
# Boolean indicating that address verification should be scheduled for this form
|
118
|
+
attr_accessor :address_verification
|
73
119
|
|
74
|
-
|
120
|
+
# State and local withholding information
|
121
|
+
attr_accessor :state_and_local_withholding
|
75
122
|
|
76
|
-
|
123
|
+
# Second TIN notice
|
124
|
+
attr_accessor :second_tin_notice
|
77
125
|
|
78
|
-
|
126
|
+
# Federal e-file status
|
127
|
+
attr_accessor :federal_efile_status
|
79
128
|
|
80
|
-
|
129
|
+
# State e-file status
|
130
|
+
attr_accessor :state_efile_status
|
81
131
|
|
82
|
-
|
132
|
+
# Postal mail to recipient status
|
133
|
+
attr_accessor :postal_mail_status
|
83
134
|
|
84
|
-
|
135
|
+
# TIN Match status
|
136
|
+
attr_accessor :tin_match_status
|
85
137
|
|
86
|
-
|
138
|
+
# Address verification status
|
139
|
+
attr_accessor :address_verification_status
|
87
140
|
|
141
|
+
# EDelivery status
|
142
|
+
attr_accessor :e_delivery_status
|
143
|
+
|
144
|
+
# Validation errors
|
88
145
|
attr_accessor :validation_errors
|
89
146
|
|
147
|
+
# Date time when the record was created.
|
90
148
|
attr_accessor :created_at
|
91
149
|
|
150
|
+
# Date time when the record was last updated.
|
92
151
|
attr_accessor :updated_at
|
93
152
|
|
94
|
-
|
153
|
+
class EnumAttributeValidator
|
154
|
+
attr_reader :datatype
|
155
|
+
attr_reader :allowable_values
|
156
|
+
|
157
|
+
def initialize(datatype, allowable_values)
|
158
|
+
@allowable_values = allowable_values.map do |value|
|
159
|
+
case datatype.to_s
|
160
|
+
when /Integer/i
|
161
|
+
value.to_i
|
162
|
+
when /Float/i
|
163
|
+
value.to_f
|
164
|
+
else
|
165
|
+
value
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
def valid?(value)
|
171
|
+
!value || allowable_values.include?(value)
|
172
|
+
end
|
173
|
+
end
|
95
174
|
|
96
175
|
# Attribute mapping from ruby-style variable name to JSON key.
|
97
176
|
def self.attribute_map
|
98
177
|
{
|
178
|
+
:'employee_first_name' => :'employeeFirstName',
|
179
|
+
:'employee_middle_name' => :'employeeMiddleName',
|
180
|
+
:'employee_last_name' => :'employeeLastName',
|
181
|
+
:'employee_name_suffix' => :'employeeNameSuffix',
|
182
|
+
:'employee_date_of_birth' => :'employeeDateOfBirth',
|
99
183
|
:'origin_of_health_coverage_code' => :'originOfHealthCoverageCode',
|
100
184
|
:'covered_individuals' => :'coveredIndividuals',
|
101
|
-
:'id' => :'id',
|
102
185
|
:'type' => :'type',
|
186
|
+
:'id' => :'id',
|
103
187
|
:'issuer_id' => :'issuerId',
|
104
188
|
:'issuer_reference_id' => :'issuerReferenceId',
|
105
189
|
:'issuer_tin' => :'issuerTin',
|
106
190
|
:'tax_year' => :'taxYear',
|
107
|
-
:'federal_efile' => :'federalEfile',
|
108
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
109
|
-
:'state_efile' => :'stateEfile',
|
110
|
-
:'state_efile_status' => :'stateEfileStatus',
|
111
|
-
:'postal_mail' => :'postalMail',
|
112
|
-
:'postal_mail_status' => :'postalMailStatus',
|
113
|
-
:'tin_match' => :'tinMatch',
|
114
|
-
:'tin_match_status' => :'tinMatchStatus',
|
115
|
-
:'address_verification' => :'addressVerification',
|
116
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
117
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
118
191
|
:'reference_id' => :'referenceId',
|
119
|
-
:'email' => :'email',
|
120
|
-
:'tin_type' => :'tinType',
|
121
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
122
192
|
:'tin' => :'tin',
|
123
|
-
:'no_tin' => :'noTin',
|
124
|
-
:'second_tin_notice' => :'secondTinNotice',
|
125
193
|
:'recipient_name' => :'recipientName',
|
194
|
+
:'tin_type' => :'tinType',
|
126
195
|
:'recipient_second_name' => :'recipientSecondName',
|
127
196
|
:'address' => :'address',
|
128
197
|
:'address2' => :'address2',
|
129
198
|
:'city' => :'city',
|
130
199
|
:'state' => :'state',
|
131
200
|
:'zip' => :'zip',
|
132
|
-
:'
|
133
|
-
:'country_code' => :'countryCode',
|
201
|
+
:'email' => :'email',
|
134
202
|
:'account_number' => :'accountNumber',
|
135
203
|
:'office_code' => :'officeCode',
|
204
|
+
:'non_us_province' => :'nonUsProvince',
|
205
|
+
:'country_code' => :'countryCode',
|
206
|
+
:'federal_efile_date' => :'federalEfileDate',
|
207
|
+
:'postal_mail' => :'postalMail',
|
208
|
+
:'state_efile_date' => :'stateEfileDate',
|
209
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
210
|
+
:'tin_match' => :'tinMatch',
|
211
|
+
:'no_tin' => :'noTin',
|
212
|
+
:'address_verification' => :'addressVerification',
|
213
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
214
|
+
:'second_tin_notice' => :'secondTinNotice',
|
215
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
216
|
+
:'state_efile_status' => :'stateEfileStatus',
|
217
|
+
:'postal_mail_status' => :'postalMailStatus',
|
218
|
+
:'tin_match_status' => :'tinMatchStatus',
|
219
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
220
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
136
221
|
:'validation_errors' => :'validationErrors',
|
137
222
|
:'created_at' => :'createdAt',
|
138
|
-
:'updated_at' => :'updatedAt'
|
139
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
223
|
+
:'updated_at' => :'updatedAt'
|
140
224
|
}
|
141
225
|
end
|
142
226
|
|
@@ -148,79 +232,99 @@ module AvalaraSdk::A1099::V2
|
|
148
232
|
# Attribute type mapping.
|
149
233
|
def self.openapi_types
|
150
234
|
{
|
235
|
+
:'employee_first_name' => :'String',
|
236
|
+
:'employee_middle_name' => :'String',
|
237
|
+
:'employee_last_name' => :'String',
|
238
|
+
:'employee_name_suffix' => :'String',
|
239
|
+
:'employee_date_of_birth' => :'Date',
|
151
240
|
:'origin_of_health_coverage_code' => :'String',
|
152
|
-
:'covered_individuals' => :'Array<
|
153
|
-
:'id' => :'String',
|
241
|
+
:'covered_individuals' => :'Array<CoveredIndividual>',
|
154
242
|
:'type' => :'String',
|
155
|
-
:'
|
243
|
+
:'id' => :'String',
|
244
|
+
:'issuer_id' => :'String',
|
156
245
|
:'issuer_reference_id' => :'String',
|
157
246
|
:'issuer_tin' => :'String',
|
158
247
|
:'tax_year' => :'Integer',
|
159
|
-
:'federal_efile' => :'Boolean',
|
160
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
161
|
-
:'state_efile' => :'Boolean',
|
162
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
163
|
-
:'postal_mail' => :'Boolean',
|
164
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
165
|
-
:'tin_match' => :'Boolean',
|
166
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
167
|
-
:'address_verification' => :'Boolean',
|
168
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
169
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
170
248
|
:'reference_id' => :'String',
|
171
|
-
:'email' => :'String',
|
172
|
-
:'tin_type' => :'String',
|
173
|
-
:'fatca_filing_requirement' => :'Boolean',
|
174
249
|
:'tin' => :'String',
|
175
|
-
:'no_tin' => :'Boolean',
|
176
|
-
:'second_tin_notice' => :'Boolean',
|
177
250
|
:'recipient_name' => :'String',
|
251
|
+
:'tin_type' => :'String',
|
178
252
|
:'recipient_second_name' => :'String',
|
179
253
|
:'address' => :'String',
|
180
254
|
:'address2' => :'String',
|
181
255
|
:'city' => :'String',
|
182
256
|
:'state' => :'String',
|
183
257
|
:'zip' => :'String',
|
184
|
-
:'
|
185
|
-
:'country_code' => :'String',
|
258
|
+
:'email' => :'String',
|
186
259
|
:'account_number' => :'String',
|
187
260
|
:'office_code' => :'String',
|
261
|
+
:'non_us_province' => :'String',
|
262
|
+
:'country_code' => :'String',
|
263
|
+
:'federal_efile_date' => :'Date',
|
264
|
+
:'postal_mail' => :'Boolean',
|
265
|
+
:'state_efile_date' => :'Date',
|
266
|
+
:'recipient_edelivery_date' => :'Date',
|
267
|
+
:'tin_match' => :'Boolean',
|
268
|
+
:'no_tin' => :'Boolean',
|
269
|
+
:'address_verification' => :'Boolean',
|
270
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
271
|
+
:'second_tin_notice' => :'Boolean',
|
272
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
273
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
274
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
275
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
276
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
277
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
188
278
|
:'validation_errors' => :'Array<ValidationError>',
|
189
279
|
:'created_at' => :'Time',
|
190
|
-
:'updated_at' => :'Time'
|
191
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
280
|
+
:'updated_at' => :'Time'
|
192
281
|
}
|
193
282
|
end
|
194
283
|
|
195
284
|
# List of attributes with nullable: true
|
196
285
|
def self.openapi_nullable
|
197
286
|
Set.new([
|
287
|
+
:'employee_first_name',
|
288
|
+
:'employee_middle_name',
|
289
|
+
:'employee_last_name',
|
290
|
+
:'employee_name_suffix',
|
291
|
+
:'employee_date_of_birth',
|
292
|
+
:'origin_of_health_coverage_code',
|
293
|
+
:'id',
|
294
|
+
:'issuer_id',
|
198
295
|
:'issuer_reference_id',
|
199
296
|
:'issuer_tin',
|
200
|
-
:'
|
201
|
-
:'postal_mail_status',
|
202
|
-
:'tin_match_status',
|
203
|
-
:'address_verification_status',
|
204
|
-
:'e_delivery_status',
|
297
|
+
:'tax_year',
|
205
298
|
:'reference_id',
|
206
|
-
:'email',
|
207
|
-
:'tin_type',
|
208
|
-
:'fatca_filing_requirement',
|
209
299
|
:'tin',
|
210
|
-
:'second_tin_notice',
|
211
300
|
:'recipient_name',
|
301
|
+
:'tin_type',
|
212
302
|
:'recipient_second_name',
|
213
303
|
:'address',
|
214
304
|
:'address2',
|
215
305
|
:'city',
|
216
306
|
:'state',
|
217
307
|
:'zip',
|
218
|
-
:'
|
219
|
-
:'country_code',
|
308
|
+
:'email',
|
220
309
|
:'account_number',
|
221
310
|
:'office_code',
|
311
|
+
:'non_us_province',
|
312
|
+
:'country_code',
|
313
|
+
:'federal_efile_date',
|
314
|
+
:'postal_mail',
|
315
|
+
:'state_efile_date',
|
316
|
+
:'recipient_edelivery_date',
|
317
|
+
:'tin_match',
|
318
|
+
:'no_tin',
|
319
|
+
:'address_verification',
|
320
|
+
:'state_and_local_withholding',
|
321
|
+
:'federal_efile_status',
|
322
|
+
:'state_efile_status',
|
323
|
+
:'postal_mail_status',
|
324
|
+
:'tin_match_status',
|
325
|
+
:'address_verification_status',
|
326
|
+
:'e_delivery_status',
|
222
327
|
:'validation_errors',
|
223
|
-
:'state_and_local_withholding'
|
224
328
|
])
|
225
329
|
end
|
226
330
|
|
@@ -246,8 +350,34 @@ module AvalaraSdk::A1099::V2
|
|
246
350
|
h[k.to_sym] = v
|
247
351
|
}
|
248
352
|
|
353
|
+
if attributes.key?(:'employee_first_name')
|
354
|
+
self.employee_first_name = attributes[:'employee_first_name']
|
355
|
+
else
|
356
|
+
self.employee_first_name = nil
|
357
|
+
end
|
358
|
+
|
359
|
+
if attributes.key?(:'employee_middle_name')
|
360
|
+
self.employee_middle_name = attributes[:'employee_middle_name']
|
361
|
+
end
|
362
|
+
|
363
|
+
if attributes.key?(:'employee_last_name')
|
364
|
+
self.employee_last_name = attributes[:'employee_last_name']
|
365
|
+
else
|
366
|
+
self.employee_last_name = nil
|
367
|
+
end
|
368
|
+
|
369
|
+
if attributes.key?(:'employee_name_suffix')
|
370
|
+
self.employee_name_suffix = attributes[:'employee_name_suffix']
|
371
|
+
end
|
372
|
+
|
373
|
+
if attributes.key?(:'employee_date_of_birth')
|
374
|
+
self.employee_date_of_birth = attributes[:'employee_date_of_birth']
|
375
|
+
end
|
376
|
+
|
249
377
|
if attributes.key?(:'origin_of_health_coverage_code')
|
250
378
|
self.origin_of_health_coverage_code = attributes[:'origin_of_health_coverage_code']
|
379
|
+
else
|
380
|
+
self.origin_of_health_coverage_code = nil
|
251
381
|
end
|
252
382
|
|
253
383
|
if attributes.key?(:'covered_individuals')
|
@@ -256,12 +386,14 @@ module AvalaraSdk::A1099::V2
|
|
256
386
|
end
|
257
387
|
end
|
258
388
|
|
259
|
-
if attributes.key?(:'id')
|
260
|
-
self.id = attributes[:'id']
|
261
|
-
end
|
262
|
-
|
263
389
|
if attributes.key?(:'type')
|
264
390
|
self.type = attributes[:'type']
|
391
|
+
else
|
392
|
+
self.type = nil
|
393
|
+
end
|
394
|
+
|
395
|
+
if attributes.key?(:'id')
|
396
|
+
self.id = attributes[:'id']
|
265
397
|
end
|
266
398
|
|
267
399
|
if attributes.key?(:'issuer_id')
|
@@ -280,122 +412,134 @@ module AvalaraSdk::A1099::V2
|
|
280
412
|
self.tax_year = attributes[:'tax_year']
|
281
413
|
end
|
282
414
|
|
283
|
-
if attributes.key?(:'
|
284
|
-
self.
|
415
|
+
if attributes.key?(:'reference_id')
|
416
|
+
self.reference_id = attributes[:'reference_id']
|
285
417
|
end
|
286
418
|
|
287
|
-
if attributes.key?(:'
|
288
|
-
self.
|
419
|
+
if attributes.key?(:'tin')
|
420
|
+
self.tin = attributes[:'tin']
|
289
421
|
end
|
290
422
|
|
291
|
-
if attributes.key?(:'
|
292
|
-
self.
|
423
|
+
if attributes.key?(:'recipient_name')
|
424
|
+
self.recipient_name = attributes[:'recipient_name']
|
425
|
+
else
|
426
|
+
self.recipient_name = nil
|
293
427
|
end
|
294
428
|
|
295
|
-
if attributes.key?(:'
|
296
|
-
|
297
|
-
self.state_efile_status = value
|
298
|
-
end
|
429
|
+
if attributes.key?(:'tin_type')
|
430
|
+
self.tin_type = attributes[:'tin_type']
|
299
431
|
end
|
300
432
|
|
301
|
-
if attributes.key?(:'
|
302
|
-
self.
|
433
|
+
if attributes.key?(:'recipient_second_name')
|
434
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
303
435
|
end
|
304
436
|
|
305
|
-
if attributes.key?(:'
|
306
|
-
self.
|
437
|
+
if attributes.key?(:'address')
|
438
|
+
self.address = attributes[:'address']
|
439
|
+
else
|
440
|
+
self.address = nil
|
307
441
|
end
|
308
442
|
|
309
|
-
if attributes.key?(:'
|
310
|
-
self.
|
443
|
+
if attributes.key?(:'address2')
|
444
|
+
self.address2 = attributes[:'address2']
|
311
445
|
end
|
312
446
|
|
313
|
-
if attributes.key?(:'
|
314
|
-
self.
|
447
|
+
if attributes.key?(:'city')
|
448
|
+
self.city = attributes[:'city']
|
449
|
+
else
|
450
|
+
self.city = nil
|
315
451
|
end
|
316
452
|
|
317
|
-
if attributes.key?(:'
|
318
|
-
self.
|
453
|
+
if attributes.key?(:'state')
|
454
|
+
self.state = attributes[:'state']
|
319
455
|
end
|
320
456
|
|
321
|
-
if attributes.key?(:'
|
322
|
-
self.
|
457
|
+
if attributes.key?(:'zip')
|
458
|
+
self.zip = attributes[:'zip']
|
323
459
|
end
|
324
460
|
|
325
|
-
if attributes.key?(:'
|
326
|
-
self.
|
461
|
+
if attributes.key?(:'email')
|
462
|
+
self.email = attributes[:'email']
|
327
463
|
end
|
328
464
|
|
329
|
-
if attributes.key?(:'
|
330
|
-
self.
|
465
|
+
if attributes.key?(:'account_number')
|
466
|
+
self.account_number = attributes[:'account_number']
|
331
467
|
end
|
332
468
|
|
333
|
-
if attributes.key?(:'
|
334
|
-
self.
|
469
|
+
if attributes.key?(:'office_code')
|
470
|
+
self.office_code = attributes[:'office_code']
|
335
471
|
end
|
336
472
|
|
337
|
-
if attributes.key?(:'
|
338
|
-
self.
|
473
|
+
if attributes.key?(:'non_us_province')
|
474
|
+
self.non_us_province = attributes[:'non_us_province']
|
339
475
|
end
|
340
476
|
|
341
|
-
if attributes.key?(:'
|
342
|
-
self.
|
477
|
+
if attributes.key?(:'country_code')
|
478
|
+
self.country_code = attributes[:'country_code']
|
479
|
+
else
|
480
|
+
self.country_code = nil
|
343
481
|
end
|
344
482
|
|
345
|
-
if attributes.key?(:'
|
346
|
-
self.
|
483
|
+
if attributes.key?(:'federal_efile_date')
|
484
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
347
485
|
end
|
348
486
|
|
349
|
-
if attributes.key?(:'
|
350
|
-
self.
|
487
|
+
if attributes.key?(:'postal_mail')
|
488
|
+
self.postal_mail = attributes[:'postal_mail']
|
351
489
|
end
|
352
490
|
|
353
|
-
if attributes.key?(:'
|
354
|
-
self.
|
491
|
+
if attributes.key?(:'state_efile_date')
|
492
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
355
493
|
end
|
356
494
|
|
357
|
-
if attributes.key?(:'
|
358
|
-
self.
|
495
|
+
if attributes.key?(:'recipient_edelivery_date')
|
496
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
359
497
|
end
|
360
498
|
|
361
|
-
if attributes.key?(:'
|
362
|
-
self.
|
499
|
+
if attributes.key?(:'tin_match')
|
500
|
+
self.tin_match = attributes[:'tin_match']
|
363
501
|
end
|
364
502
|
|
365
|
-
if attributes.key?(:'
|
366
|
-
self.
|
503
|
+
if attributes.key?(:'no_tin')
|
504
|
+
self.no_tin = attributes[:'no_tin']
|
367
505
|
end
|
368
506
|
|
369
|
-
if attributes.key?(:'
|
370
|
-
self.
|
507
|
+
if attributes.key?(:'address_verification')
|
508
|
+
self.address_verification = attributes[:'address_verification']
|
371
509
|
end
|
372
510
|
|
373
|
-
if attributes.key?(:'
|
374
|
-
self.
|
511
|
+
if attributes.key?(:'state_and_local_withholding')
|
512
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
375
513
|
end
|
376
514
|
|
377
|
-
if attributes.key?(:'
|
378
|
-
self.
|
515
|
+
if attributes.key?(:'second_tin_notice')
|
516
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
379
517
|
end
|
380
518
|
|
381
|
-
if attributes.key?(:'
|
382
|
-
self.
|
519
|
+
if attributes.key?(:'federal_efile_status')
|
520
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
383
521
|
end
|
384
522
|
|
385
|
-
if attributes.key?(:'
|
386
|
-
|
523
|
+
if attributes.key?(:'state_efile_status')
|
524
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
525
|
+
self.state_efile_status = value
|
526
|
+
end
|
387
527
|
end
|
388
528
|
|
389
|
-
if attributes.key?(:'
|
390
|
-
self.
|
529
|
+
if attributes.key?(:'postal_mail_status')
|
530
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
391
531
|
end
|
392
532
|
|
393
|
-
if attributes.key?(:'
|
394
|
-
self.
|
533
|
+
if attributes.key?(:'tin_match_status')
|
534
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
395
535
|
end
|
396
536
|
|
397
|
-
if attributes.key?(:'
|
398
|
-
self.
|
537
|
+
if attributes.key?(:'address_verification_status')
|
538
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
539
|
+
end
|
540
|
+
|
541
|
+
if attributes.key?(:'e_delivery_status')
|
542
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
399
543
|
end
|
400
544
|
|
401
545
|
if attributes.key?(:'validation_errors')
|
@@ -411,10 +555,6 @@ module AvalaraSdk::A1099::V2
|
|
411
555
|
if attributes.key?(:'updated_at')
|
412
556
|
self.updated_at = attributes[:'updated_at']
|
413
557
|
end
|
414
|
-
|
415
|
-
if attributes.key?(:'state_and_local_withholding')
|
416
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
417
|
-
end
|
418
558
|
end
|
419
559
|
|
420
560
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -422,6 +562,10 @@ module AvalaraSdk::A1099::V2
|
|
422
562
|
def list_invalid_properties
|
423
563
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
424
564
|
invalid_properties = Array.new
|
565
|
+
if @type.nil?
|
566
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
567
|
+
end
|
568
|
+
|
425
569
|
invalid_properties
|
426
570
|
end
|
427
571
|
|
@@ -429,9 +573,26 @@ module AvalaraSdk::A1099::V2
|
|
429
573
|
# @return true if the model is valid
|
430
574
|
def valid?
|
431
575
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
576
|
+
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
577
|
+
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
578
|
+
return false if @type.nil?
|
579
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
580
|
+
return false unless type_validator.valid?(@type)
|
581
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
582
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
432
583
|
true
|
433
584
|
end
|
434
585
|
|
586
|
+
# Custom attribute writer method checking allowed values (enum).
|
587
|
+
# @param [Object] origin_of_health_coverage_code Object to be assigned
|
588
|
+
def origin_of_health_coverage_code=(origin_of_health_coverage_code)
|
589
|
+
validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
590
|
+
unless validator.valid?(origin_of_health_coverage_code)
|
591
|
+
fail ArgumentError, "invalid value for \"origin_of_health_coverage_code\", must be one of #{validator.allowable_values}."
|
592
|
+
end
|
593
|
+
@origin_of_health_coverage_code = origin_of_health_coverage_code
|
594
|
+
end
|
595
|
+
|
435
596
|
# Custom attribute writer method with validation
|
436
597
|
# @param [Object] covered_individuals Value to be assigned
|
437
598
|
def covered_individuals=(covered_individuals)
|
@@ -442,6 +603,26 @@ module AvalaraSdk::A1099::V2
|
|
442
603
|
@covered_individuals = covered_individuals
|
443
604
|
end
|
444
605
|
|
606
|
+
# Custom attribute writer method checking allowed values (enum).
|
607
|
+
# @param [Object] type Object to be assigned
|
608
|
+
def type=(type)
|
609
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
610
|
+
unless validator.valid?(type)
|
611
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
612
|
+
end
|
613
|
+
@type = type
|
614
|
+
end
|
615
|
+
|
616
|
+
# Custom attribute writer method checking allowed values (enum).
|
617
|
+
# @param [Object] tin_type Object to be assigned
|
618
|
+
def tin_type=(tin_type)
|
619
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
620
|
+
unless validator.valid?(tin_type)
|
621
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
622
|
+
end
|
623
|
+
@tin_type = tin_type
|
624
|
+
end
|
625
|
+
|
445
626
|
# Custom attribute writer method with validation
|
446
627
|
# @param [Object] state_efile_status Value to be assigned
|
447
628
|
def state_efile_status=(state_efile_status)
|
@@ -459,47 +640,52 @@ module AvalaraSdk::A1099::V2
|
|
459
640
|
def ==(o)
|
460
641
|
return true if self.equal?(o)
|
461
642
|
self.class == o.class &&
|
643
|
+
employee_first_name == o.employee_first_name &&
|
644
|
+
employee_middle_name == o.employee_middle_name &&
|
645
|
+
employee_last_name == o.employee_last_name &&
|
646
|
+
employee_name_suffix == o.employee_name_suffix &&
|
647
|
+
employee_date_of_birth == o.employee_date_of_birth &&
|
462
648
|
origin_of_health_coverage_code == o.origin_of_health_coverage_code &&
|
463
649
|
covered_individuals == o.covered_individuals &&
|
464
|
-
id == o.id &&
|
465
650
|
type == o.type &&
|
651
|
+
id == o.id &&
|
466
652
|
issuer_id == o.issuer_id &&
|
467
653
|
issuer_reference_id == o.issuer_reference_id &&
|
468
654
|
issuer_tin == o.issuer_tin &&
|
469
655
|
tax_year == o.tax_year &&
|
470
|
-
federal_efile == o.federal_efile &&
|
471
|
-
federal_efile_status == o.federal_efile_status &&
|
472
|
-
state_efile == o.state_efile &&
|
473
|
-
state_efile_status == o.state_efile_status &&
|
474
|
-
postal_mail == o.postal_mail &&
|
475
|
-
postal_mail_status == o.postal_mail_status &&
|
476
|
-
tin_match == o.tin_match &&
|
477
|
-
tin_match_status == o.tin_match_status &&
|
478
|
-
address_verification == o.address_verification &&
|
479
|
-
address_verification_status == o.address_verification_status &&
|
480
|
-
e_delivery_status == o.e_delivery_status &&
|
481
656
|
reference_id == o.reference_id &&
|
482
|
-
email == o.email &&
|
483
|
-
tin_type == o.tin_type &&
|
484
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
485
657
|
tin == o.tin &&
|
486
|
-
no_tin == o.no_tin &&
|
487
|
-
second_tin_notice == o.second_tin_notice &&
|
488
658
|
recipient_name == o.recipient_name &&
|
659
|
+
tin_type == o.tin_type &&
|
489
660
|
recipient_second_name == o.recipient_second_name &&
|
490
661
|
address == o.address &&
|
491
662
|
address2 == o.address2 &&
|
492
663
|
city == o.city &&
|
493
664
|
state == o.state &&
|
494
665
|
zip == o.zip &&
|
495
|
-
|
496
|
-
country_code == o.country_code &&
|
666
|
+
email == o.email &&
|
497
667
|
account_number == o.account_number &&
|
498
668
|
office_code == o.office_code &&
|
669
|
+
non_us_province == o.non_us_province &&
|
670
|
+
country_code == o.country_code &&
|
671
|
+
federal_efile_date == o.federal_efile_date &&
|
672
|
+
postal_mail == o.postal_mail &&
|
673
|
+
state_efile_date == o.state_efile_date &&
|
674
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
675
|
+
tin_match == o.tin_match &&
|
676
|
+
no_tin == o.no_tin &&
|
677
|
+
address_verification == o.address_verification &&
|
678
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
679
|
+
second_tin_notice == o.second_tin_notice &&
|
680
|
+
federal_efile_status == o.federal_efile_status &&
|
681
|
+
state_efile_status == o.state_efile_status &&
|
682
|
+
postal_mail_status == o.postal_mail_status &&
|
683
|
+
tin_match_status == o.tin_match_status &&
|
684
|
+
address_verification_status == o.address_verification_status &&
|
685
|
+
e_delivery_status == o.e_delivery_status &&
|
499
686
|
validation_errors == o.validation_errors &&
|
500
687
|
created_at == o.created_at &&
|
501
|
-
updated_at == o.updated_at
|
502
|
-
state_and_local_withholding == o.state_and_local_withholding
|
688
|
+
updated_at == o.updated_at
|
503
689
|
end
|
504
690
|
|
505
691
|
# @see the `==` method
|
@@ -511,7 +697,7 @@ module AvalaraSdk::A1099::V2
|
|
511
697
|
# Calculates hash code according to all attributes.
|
512
698
|
# @return [Integer] Hash code
|
513
699
|
def hash
|
514
|
-
[origin_of_health_coverage_code, covered_individuals,
|
700
|
+
[employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, 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
|
515
701
|
end
|
516
702
|
|
517
703
|
# Builds the object from hash
|