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,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 via $bulk-upsert
|
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 via $bulk-upsert
|
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
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification 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. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
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. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
106
|
+
attr_accessor :state_efile_date
|
65
107
|
|
66
|
-
|
108
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
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. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
127
|
+
attr_accessor :federal_efile_status
|
79
128
|
|
80
|
-
|
129
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
130
|
+
attr_accessor :state_efile_status
|
81
131
|
|
82
|
-
|
132
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
133
|
+
attr_accessor :postal_mail_status
|
83
134
|
|
84
|
-
|
135
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
136
|
+
attr_accessor :tin_match_status
|
85
137
|
|
86
|
-
|
138
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
139
|
+
attr_accessor :address_verification_status
|
140
|
+
|
141
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
142
|
+
attr_accessor :e_delivery_status
|
87
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,100 @@ 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
|
+
:'second_tin_notice',
|
322
|
+
:'federal_efile_status',
|
323
|
+
:'state_efile_status',
|
324
|
+
:'postal_mail_status',
|
325
|
+
:'tin_match_status',
|
326
|
+
:'address_verification_status',
|
327
|
+
:'e_delivery_status',
|
222
328
|
:'validation_errors',
|
223
|
-
:'state_and_local_withholding'
|
224
329
|
])
|
225
330
|
end
|
226
331
|
|
@@ -246,8 +351,34 @@ module AvalaraSdk::A1099::V2
|
|
246
351
|
h[k.to_sym] = v
|
247
352
|
}
|
248
353
|
|
354
|
+
if attributes.key?(:'employee_first_name')
|
355
|
+
self.employee_first_name = attributes[:'employee_first_name']
|
356
|
+
else
|
357
|
+
self.employee_first_name = nil
|
358
|
+
end
|
359
|
+
|
360
|
+
if attributes.key?(:'employee_middle_name')
|
361
|
+
self.employee_middle_name = attributes[:'employee_middle_name']
|
362
|
+
end
|
363
|
+
|
364
|
+
if attributes.key?(:'employee_last_name')
|
365
|
+
self.employee_last_name = attributes[:'employee_last_name']
|
366
|
+
else
|
367
|
+
self.employee_last_name = nil
|
368
|
+
end
|
369
|
+
|
370
|
+
if attributes.key?(:'employee_name_suffix')
|
371
|
+
self.employee_name_suffix = attributes[:'employee_name_suffix']
|
372
|
+
end
|
373
|
+
|
374
|
+
if attributes.key?(:'employee_date_of_birth')
|
375
|
+
self.employee_date_of_birth = attributes[:'employee_date_of_birth']
|
376
|
+
end
|
377
|
+
|
249
378
|
if attributes.key?(:'origin_of_health_coverage_code')
|
250
379
|
self.origin_of_health_coverage_code = attributes[:'origin_of_health_coverage_code']
|
380
|
+
else
|
381
|
+
self.origin_of_health_coverage_code = nil
|
251
382
|
end
|
252
383
|
|
253
384
|
if attributes.key?(:'covered_individuals')
|
@@ -256,12 +387,14 @@ module AvalaraSdk::A1099::V2
|
|
256
387
|
end
|
257
388
|
end
|
258
389
|
|
259
|
-
if attributes.key?(:'id')
|
260
|
-
self.id = attributes[:'id']
|
261
|
-
end
|
262
|
-
|
263
390
|
if attributes.key?(:'type')
|
264
391
|
self.type = attributes[:'type']
|
392
|
+
else
|
393
|
+
self.type = nil
|
394
|
+
end
|
395
|
+
|
396
|
+
if attributes.key?(:'id')
|
397
|
+
self.id = attributes[:'id']
|
265
398
|
end
|
266
399
|
|
267
400
|
if attributes.key?(:'issuer_id')
|
@@ -280,122 +413,134 @@ module AvalaraSdk::A1099::V2
|
|
280
413
|
self.tax_year = attributes[:'tax_year']
|
281
414
|
end
|
282
415
|
|
283
|
-
if attributes.key?(:'
|
284
|
-
self.
|
416
|
+
if attributes.key?(:'reference_id')
|
417
|
+
self.reference_id = attributes[:'reference_id']
|
285
418
|
end
|
286
419
|
|
287
|
-
if attributes.key?(:'
|
288
|
-
self.
|
420
|
+
if attributes.key?(:'tin')
|
421
|
+
self.tin = attributes[:'tin']
|
289
422
|
end
|
290
423
|
|
291
|
-
if attributes.key?(:'
|
292
|
-
self.
|
424
|
+
if attributes.key?(:'recipient_name')
|
425
|
+
self.recipient_name = attributes[:'recipient_name']
|
426
|
+
else
|
427
|
+
self.recipient_name = nil
|
293
428
|
end
|
294
429
|
|
295
|
-
if attributes.key?(:'
|
296
|
-
|
297
|
-
self.state_efile_status = value
|
298
|
-
end
|
430
|
+
if attributes.key?(:'tin_type')
|
431
|
+
self.tin_type = attributes[:'tin_type']
|
299
432
|
end
|
300
433
|
|
301
|
-
if attributes.key?(:'
|
302
|
-
self.
|
434
|
+
if attributes.key?(:'recipient_second_name')
|
435
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
303
436
|
end
|
304
437
|
|
305
|
-
if attributes.key?(:'
|
306
|
-
self.
|
438
|
+
if attributes.key?(:'address')
|
439
|
+
self.address = attributes[:'address']
|
440
|
+
else
|
441
|
+
self.address = nil
|
307
442
|
end
|
308
443
|
|
309
|
-
if attributes.key?(:'
|
310
|
-
self.
|
444
|
+
if attributes.key?(:'address2')
|
445
|
+
self.address2 = attributes[:'address2']
|
311
446
|
end
|
312
447
|
|
313
|
-
if attributes.key?(:'
|
314
|
-
self.
|
448
|
+
if attributes.key?(:'city')
|
449
|
+
self.city = attributes[:'city']
|
450
|
+
else
|
451
|
+
self.city = nil
|
315
452
|
end
|
316
453
|
|
317
|
-
if attributes.key?(:'
|
318
|
-
self.
|
454
|
+
if attributes.key?(:'state')
|
455
|
+
self.state = attributes[:'state']
|
319
456
|
end
|
320
457
|
|
321
|
-
if attributes.key?(:'
|
322
|
-
self.
|
458
|
+
if attributes.key?(:'zip')
|
459
|
+
self.zip = attributes[:'zip']
|
323
460
|
end
|
324
461
|
|
325
|
-
if attributes.key?(:'
|
326
|
-
self.
|
462
|
+
if attributes.key?(:'email')
|
463
|
+
self.email = attributes[:'email']
|
327
464
|
end
|
328
465
|
|
329
|
-
if attributes.key?(:'
|
330
|
-
self.
|
466
|
+
if attributes.key?(:'account_number')
|
467
|
+
self.account_number = attributes[:'account_number']
|
331
468
|
end
|
332
469
|
|
333
|
-
if attributes.key?(:'
|
334
|
-
self.
|
470
|
+
if attributes.key?(:'office_code')
|
471
|
+
self.office_code = attributes[:'office_code']
|
335
472
|
end
|
336
473
|
|
337
|
-
if attributes.key?(:'
|
338
|
-
self.
|
474
|
+
if attributes.key?(:'non_us_province')
|
475
|
+
self.non_us_province = attributes[:'non_us_province']
|
339
476
|
end
|
340
477
|
|
341
|
-
if attributes.key?(:'
|
342
|
-
self.
|
478
|
+
if attributes.key?(:'country_code')
|
479
|
+
self.country_code = attributes[:'country_code']
|
480
|
+
else
|
481
|
+
self.country_code = nil
|
343
482
|
end
|
344
483
|
|
345
|
-
if attributes.key?(:'
|
346
|
-
self.
|
484
|
+
if attributes.key?(:'federal_efile_date')
|
485
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
347
486
|
end
|
348
487
|
|
349
|
-
if attributes.key?(:'
|
350
|
-
self.
|
488
|
+
if attributes.key?(:'postal_mail')
|
489
|
+
self.postal_mail = attributes[:'postal_mail']
|
351
490
|
end
|
352
491
|
|
353
|
-
if attributes.key?(:'
|
354
|
-
self.
|
492
|
+
if attributes.key?(:'state_efile_date')
|
493
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
355
494
|
end
|
356
495
|
|
357
|
-
if attributes.key?(:'
|
358
|
-
self.
|
496
|
+
if attributes.key?(:'recipient_edelivery_date')
|
497
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
359
498
|
end
|
360
499
|
|
361
|
-
if attributes.key?(:'
|
362
|
-
self.
|
500
|
+
if attributes.key?(:'tin_match')
|
501
|
+
self.tin_match = attributes[:'tin_match']
|
363
502
|
end
|
364
503
|
|
365
|
-
if attributes.key?(:'
|
366
|
-
self.
|
504
|
+
if attributes.key?(:'no_tin')
|
505
|
+
self.no_tin = attributes[:'no_tin']
|
367
506
|
end
|
368
507
|
|
369
|
-
if attributes.key?(:'
|
370
|
-
self.
|
508
|
+
if attributes.key?(:'address_verification')
|
509
|
+
self.address_verification = attributes[:'address_verification']
|
371
510
|
end
|
372
511
|
|
373
|
-
if attributes.key?(:'
|
374
|
-
self.
|
512
|
+
if attributes.key?(:'state_and_local_withholding')
|
513
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
375
514
|
end
|
376
515
|
|
377
|
-
if attributes.key?(:'
|
378
|
-
self.
|
516
|
+
if attributes.key?(:'second_tin_notice')
|
517
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
379
518
|
end
|
380
519
|
|
381
|
-
if attributes.key?(:'
|
382
|
-
self.
|
520
|
+
if attributes.key?(:'federal_efile_status')
|
521
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
383
522
|
end
|
384
523
|
|
385
|
-
if attributes.key?(:'
|
386
|
-
|
524
|
+
if attributes.key?(:'state_efile_status')
|
525
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
526
|
+
self.state_efile_status = value
|
527
|
+
end
|
387
528
|
end
|
388
529
|
|
389
|
-
if attributes.key?(:'
|
390
|
-
self.
|
530
|
+
if attributes.key?(:'postal_mail_status')
|
531
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
391
532
|
end
|
392
533
|
|
393
|
-
if attributes.key?(:'
|
394
|
-
self.
|
534
|
+
if attributes.key?(:'tin_match_status')
|
535
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
395
536
|
end
|
396
537
|
|
397
|
-
if attributes.key?(:'
|
398
|
-
self.
|
538
|
+
if attributes.key?(:'address_verification_status')
|
539
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
540
|
+
end
|
541
|
+
|
542
|
+
if attributes.key?(:'e_delivery_status')
|
543
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
399
544
|
end
|
400
545
|
|
401
546
|
if attributes.key?(:'validation_errors')
|
@@ -411,10 +556,6 @@ module AvalaraSdk::A1099::V2
|
|
411
556
|
if attributes.key?(:'updated_at')
|
412
557
|
self.updated_at = attributes[:'updated_at']
|
413
558
|
end
|
414
|
-
|
415
|
-
if attributes.key?(:'state_and_local_withholding')
|
416
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
417
|
-
end
|
418
559
|
end
|
419
560
|
|
420
561
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -422,6 +563,10 @@ module AvalaraSdk::A1099::V2
|
|
422
563
|
def list_invalid_properties
|
423
564
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
424
565
|
invalid_properties = Array.new
|
566
|
+
if @type.nil?
|
567
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
568
|
+
end
|
569
|
+
|
425
570
|
invalid_properties
|
426
571
|
end
|
427
572
|
|
@@ -429,29 +574,44 @@ module AvalaraSdk::A1099::V2
|
|
429
574
|
# @return true if the model is valid
|
430
575
|
def valid?
|
431
576
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
577
|
+
origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
578
|
+
return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code)
|
579
|
+
return false if @type.nil?
|
580
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
581
|
+
return false unless type_validator.valid?(@type)
|
582
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
583
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
432
584
|
true
|
433
585
|
end
|
434
586
|
|
435
|
-
# Custom attribute writer method
|
436
|
-
# @param [Object]
|
437
|
-
def
|
438
|
-
|
439
|
-
|
587
|
+
# Custom attribute writer method checking allowed values (enum).
|
588
|
+
# @param [Object] origin_of_health_coverage_code Object to be assigned
|
589
|
+
def origin_of_health_coverage_code=(origin_of_health_coverage_code)
|
590
|
+
validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"])
|
591
|
+
unless validator.valid?(origin_of_health_coverage_code)
|
592
|
+
fail ArgumentError, "invalid value for \"origin_of_health_coverage_code\", must be one of #{validator.allowable_values}."
|
440
593
|
end
|
441
|
-
|
442
|
-
@covered_individuals = covered_individuals
|
594
|
+
@origin_of_health_coverage_code = origin_of_health_coverage_code
|
443
595
|
end
|
444
596
|
|
445
|
-
# Custom attribute writer method
|
446
|
-
# @param [Object]
|
447
|
-
def
|
448
|
-
|
597
|
+
# Custom attribute writer method checking allowed values (enum).
|
598
|
+
# @param [Object] type Object to be assigned
|
599
|
+
def type=(type)
|
600
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
601
|
+
unless validator.valid?(type)
|
602
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
603
|
+
end
|
604
|
+
@type = type
|
449
605
|
end
|
450
606
|
|
451
|
-
# Custom attribute writer method
|
452
|
-
# @param [Object]
|
453
|
-
def
|
454
|
-
|
607
|
+
# Custom attribute writer method checking allowed values (enum).
|
608
|
+
# @param [Object] tin_type Object to be assigned
|
609
|
+
def tin_type=(tin_type)
|
610
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
611
|
+
unless validator.valid?(tin_type)
|
612
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
613
|
+
end
|
614
|
+
@tin_type = tin_type
|
455
615
|
end
|
456
616
|
|
457
617
|
# Checks equality by comparing each attribute.
|
@@ -459,47 +619,52 @@ module AvalaraSdk::A1099::V2
|
|
459
619
|
def ==(o)
|
460
620
|
return true if self.equal?(o)
|
461
621
|
self.class == o.class &&
|
622
|
+
employee_first_name == o.employee_first_name &&
|
623
|
+
employee_middle_name == o.employee_middle_name &&
|
624
|
+
employee_last_name == o.employee_last_name &&
|
625
|
+
employee_name_suffix == o.employee_name_suffix &&
|
626
|
+
employee_date_of_birth == o.employee_date_of_birth &&
|
462
627
|
origin_of_health_coverage_code == o.origin_of_health_coverage_code &&
|
463
628
|
covered_individuals == o.covered_individuals &&
|
464
|
-
id == o.id &&
|
465
629
|
type == o.type &&
|
630
|
+
id == o.id &&
|
466
631
|
issuer_id == o.issuer_id &&
|
467
632
|
issuer_reference_id == o.issuer_reference_id &&
|
468
633
|
issuer_tin == o.issuer_tin &&
|
469
634
|
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
635
|
reference_id == o.reference_id &&
|
482
|
-
email == o.email &&
|
483
|
-
tin_type == o.tin_type &&
|
484
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
485
636
|
tin == o.tin &&
|
486
|
-
no_tin == o.no_tin &&
|
487
|
-
second_tin_notice == o.second_tin_notice &&
|
488
637
|
recipient_name == o.recipient_name &&
|
638
|
+
tin_type == o.tin_type &&
|
489
639
|
recipient_second_name == o.recipient_second_name &&
|
490
640
|
address == o.address &&
|
491
641
|
address2 == o.address2 &&
|
492
642
|
city == o.city &&
|
493
643
|
state == o.state &&
|
494
644
|
zip == o.zip &&
|
495
|
-
|
496
|
-
country_code == o.country_code &&
|
645
|
+
email == o.email &&
|
497
646
|
account_number == o.account_number &&
|
498
647
|
office_code == o.office_code &&
|
648
|
+
non_us_province == o.non_us_province &&
|
649
|
+
country_code == o.country_code &&
|
650
|
+
federal_efile_date == o.federal_efile_date &&
|
651
|
+
postal_mail == o.postal_mail &&
|
652
|
+
state_efile_date == o.state_efile_date &&
|
653
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
654
|
+
tin_match == o.tin_match &&
|
655
|
+
no_tin == o.no_tin &&
|
656
|
+
address_verification == o.address_verification &&
|
657
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
658
|
+
second_tin_notice == o.second_tin_notice &&
|
659
|
+
federal_efile_status == o.federal_efile_status &&
|
660
|
+
state_efile_status == o.state_efile_status &&
|
661
|
+
postal_mail_status == o.postal_mail_status &&
|
662
|
+
tin_match_status == o.tin_match_status &&
|
663
|
+
address_verification_status == o.address_verification_status &&
|
664
|
+
e_delivery_status == o.e_delivery_status &&
|
499
665
|
validation_errors == o.validation_errors &&
|
500
666
|
created_at == o.created_at &&
|
501
|
-
updated_at == o.updated_at
|
502
|
-
state_and_local_withholding == o.state_and_local_withholding
|
667
|
+
updated_at == o.updated_at
|
503
668
|
end
|
504
669
|
|
505
670
|
# @see the `==` method
|
@@ -511,7 +676,7 @@ module AvalaraSdk::A1099::V2
|
|
511
676
|
# Calculates hash code according to all attributes.
|
512
677
|
# @return [Integer] Hash code
|
513
678
|
def hash
|
514
|
-
[origin_of_health_coverage_code, covered_individuals,
|
679
|
+
[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
680
|
end
|
516
681
|
|
517
682
|
# Builds the object from hash
|