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,136 +10,201 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
13
|
+
# Form 1099-NEC: Nonemployee Compensation
|
14
|
+
class Form1099Nec
|
15
|
+
# Nonemployee compensation. Required if DirectSalesIndicator is false.
|
14
16
|
attr_accessor :nonemployee_compensation
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
+
# Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale. Should be true if Nonemployee compensation is not provided.
|
18
19
|
attr_accessor :direct_sales_indicator
|
19
20
|
|
20
|
-
|
21
|
+
# Federal income tax withheld.
|
22
|
+
attr_accessor :federal_income_tax_withheld
|
21
23
|
|
24
|
+
# Form type.
|
22
25
|
attr_accessor :type
|
23
26
|
|
27
|
+
# Form ID. Unique identifier set when the record is created.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# Issuer ID - only required when creating forms
|
24
31
|
attr_accessor :issuer_id
|
25
32
|
|
33
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
26
34
|
attr_accessor :issuer_reference_id
|
27
35
|
|
36
|
+
# Issuer TIN - readonly
|
28
37
|
attr_accessor :issuer_tin
|
29
38
|
|
39
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
30
40
|
attr_accessor :tax_year
|
31
41
|
|
32
|
-
|
42
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
43
|
+
attr_accessor :reference_id
|
33
44
|
|
34
|
-
|
45
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
46
|
+
attr_accessor :tin
|
35
47
|
|
36
|
-
|
48
|
+
# Recipient name
|
49
|
+
attr_accessor :recipient_name
|
37
50
|
|
38
|
-
|
51
|
+
# 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
|
52
|
+
attr_accessor :tin_type
|
39
53
|
|
40
|
-
|
54
|
+
# Recipient second name
|
55
|
+
attr_accessor :recipient_second_name
|
41
56
|
|
42
|
-
|
57
|
+
# Address.
|
58
|
+
attr_accessor :address
|
43
59
|
|
44
|
-
|
60
|
+
# Address line 2.
|
61
|
+
attr_accessor :address2
|
45
62
|
|
46
|
-
|
63
|
+
# City.
|
64
|
+
attr_accessor :city
|
47
65
|
|
48
|
-
|
66
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
67
|
+
attr_accessor :state
|
49
68
|
|
50
|
-
|
69
|
+
# ZIP/postal code.
|
70
|
+
attr_accessor :zip
|
51
71
|
|
52
|
-
|
72
|
+
# Recipient's Contact email address.
|
73
|
+
attr_accessor :email
|
53
74
|
|
54
|
-
|
75
|
+
# Account number
|
76
|
+
attr_accessor :account_number
|
55
77
|
|
56
|
-
|
78
|
+
# Office code
|
79
|
+
attr_accessor :office_code
|
57
80
|
|
58
|
-
|
81
|
+
# Province or region for non-US/CA addresses.
|
82
|
+
attr_accessor :non_us_province
|
59
83
|
|
60
|
-
|
84
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
85
|
+
attr_accessor :country_code
|
61
86
|
|
62
|
-
|
87
|
+
# 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.
|
88
|
+
attr_accessor :federal_efile_date
|
63
89
|
|
64
|
-
|
90
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
91
|
+
attr_accessor :postal_mail
|
65
92
|
|
66
|
-
|
93
|
+
# 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.
|
94
|
+
attr_accessor :state_efile_date
|
67
95
|
|
68
|
-
|
96
|
+
# 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.
|
97
|
+
attr_accessor :recipient_edelivery_date
|
69
98
|
|
70
|
-
|
99
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
100
|
+
attr_accessor :tin_match
|
71
101
|
|
72
|
-
|
102
|
+
# No TIN indicator
|
103
|
+
attr_accessor :no_tin
|
73
104
|
|
74
|
-
|
105
|
+
# Boolean indicating that address verification should be scheduled for this form
|
106
|
+
attr_accessor :address_verification
|
75
107
|
|
76
|
-
|
108
|
+
# State and local withholding information
|
109
|
+
attr_accessor :state_and_local_withholding
|
77
110
|
|
78
|
-
|
111
|
+
# Second TIN notice
|
112
|
+
attr_accessor :second_tin_notice
|
79
113
|
|
80
|
-
|
114
|
+
# 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)
|
115
|
+
attr_accessor :federal_efile_status
|
81
116
|
|
82
|
-
|
117
|
+
# 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
|
118
|
+
attr_accessor :state_efile_status
|
83
119
|
|
84
|
-
|
120
|
+
# 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
|
121
|
+
attr_accessor :postal_mail_status
|
85
122
|
|
86
|
-
|
123
|
+
# 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
|
124
|
+
attr_accessor :tin_match_status
|
87
125
|
|
88
|
-
|
126
|
+
# 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
|
127
|
+
attr_accessor :address_verification_status
|
128
|
+
|
129
|
+
# 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)
|
130
|
+
attr_accessor :e_delivery_status
|
89
131
|
|
132
|
+
# Validation errors
|
90
133
|
attr_accessor :validation_errors
|
91
134
|
|
135
|
+
# Date time when the record was created.
|
92
136
|
attr_accessor :created_at
|
93
137
|
|
138
|
+
# Date time when the record was last updated.
|
94
139
|
attr_accessor :updated_at
|
95
140
|
|
96
|
-
|
141
|
+
class EnumAttributeValidator
|
142
|
+
attr_reader :datatype
|
143
|
+
attr_reader :allowable_values
|
144
|
+
|
145
|
+
def initialize(datatype, allowable_values)
|
146
|
+
@allowable_values = allowable_values.map do |value|
|
147
|
+
case datatype.to_s
|
148
|
+
when /Integer/i
|
149
|
+
value.to_i
|
150
|
+
when /Float/i
|
151
|
+
value.to_f
|
152
|
+
else
|
153
|
+
value
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
def valid?(value)
|
159
|
+
!value || allowable_values.include?(value)
|
160
|
+
end
|
161
|
+
end
|
97
162
|
|
98
163
|
# Attribute mapping from ruby-style variable name to JSON key.
|
99
164
|
def self.attribute_map
|
100
165
|
{
|
101
166
|
:'nonemployee_compensation' => :'nonemployeeCompensation',
|
102
|
-
:'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
|
103
167
|
:'direct_sales_indicator' => :'directSalesIndicator',
|
104
|
-
:'
|
168
|
+
:'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
|
105
169
|
:'type' => :'type',
|
170
|
+
:'id' => :'id',
|
106
171
|
:'issuer_id' => :'issuerId',
|
107
172
|
:'issuer_reference_id' => :'issuerReferenceId',
|
108
173
|
:'issuer_tin' => :'issuerTin',
|
109
174
|
:'tax_year' => :'taxYear',
|
110
|
-
:'federal_efile' => :'federalEfile',
|
111
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
112
|
-
:'state_efile' => :'stateEfile',
|
113
|
-
:'state_efile_status' => :'stateEfileStatus',
|
114
|
-
:'postal_mail' => :'postalMail',
|
115
|
-
:'postal_mail_status' => :'postalMailStatus',
|
116
|
-
:'tin_match' => :'tinMatch',
|
117
|
-
:'tin_match_status' => :'tinMatchStatus',
|
118
|
-
:'address_verification' => :'addressVerification',
|
119
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
120
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
121
175
|
:'reference_id' => :'referenceId',
|
122
|
-
:'email' => :'email',
|
123
|
-
:'tin_type' => :'tinType',
|
124
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
125
176
|
:'tin' => :'tin',
|
126
|
-
:'no_tin' => :'noTin',
|
127
|
-
:'second_tin_notice' => :'secondTinNotice',
|
128
177
|
:'recipient_name' => :'recipientName',
|
178
|
+
:'tin_type' => :'tinType',
|
129
179
|
:'recipient_second_name' => :'recipientSecondName',
|
130
180
|
:'address' => :'address',
|
131
181
|
:'address2' => :'address2',
|
132
182
|
:'city' => :'city',
|
133
183
|
:'state' => :'state',
|
134
184
|
:'zip' => :'zip',
|
135
|
-
:'
|
136
|
-
:'country_code' => :'countryCode',
|
185
|
+
:'email' => :'email',
|
137
186
|
:'account_number' => :'accountNumber',
|
138
187
|
:'office_code' => :'officeCode',
|
188
|
+
:'non_us_province' => :'nonUsProvince',
|
189
|
+
:'country_code' => :'countryCode',
|
190
|
+
:'federal_efile_date' => :'federalEfileDate',
|
191
|
+
:'postal_mail' => :'postalMail',
|
192
|
+
:'state_efile_date' => :'stateEfileDate',
|
193
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
194
|
+
:'tin_match' => :'tinMatch',
|
195
|
+
:'no_tin' => :'noTin',
|
196
|
+
:'address_verification' => :'addressVerification',
|
197
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
198
|
+
:'second_tin_notice' => :'secondTinNotice',
|
199
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
200
|
+
:'state_efile_status' => :'stateEfileStatus',
|
201
|
+
:'postal_mail_status' => :'postalMailStatus',
|
202
|
+
:'tin_match_status' => :'tinMatchStatus',
|
203
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
204
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
139
205
|
:'validation_errors' => :'validationErrors',
|
140
206
|
:'created_at' => :'createdAt',
|
141
|
-
:'updated_at' => :'updatedAt'
|
142
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
207
|
+
:'updated_at' => :'updatedAt'
|
143
208
|
}
|
144
209
|
end
|
145
210
|
|
@@ -152,47 +217,47 @@ module AvalaraSdk::A1099::V2
|
|
152
217
|
def self.openapi_types
|
153
218
|
{
|
154
219
|
:'nonemployee_compensation' => :'Float',
|
155
|
-
:'federal_income_tax_withheld' => :'Float',
|
156
220
|
:'direct_sales_indicator' => :'Boolean',
|
157
|
-
:'
|
221
|
+
:'federal_income_tax_withheld' => :'Float',
|
158
222
|
:'type' => :'String',
|
159
|
-
:'
|
223
|
+
:'id' => :'String',
|
224
|
+
:'issuer_id' => :'String',
|
160
225
|
:'issuer_reference_id' => :'String',
|
161
226
|
:'issuer_tin' => :'String',
|
162
227
|
:'tax_year' => :'Integer',
|
163
|
-
:'federal_efile' => :'Boolean',
|
164
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
165
|
-
:'state_efile' => :'Boolean',
|
166
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
167
|
-
:'postal_mail' => :'Boolean',
|
168
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
169
|
-
:'tin_match' => :'Boolean',
|
170
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
171
|
-
:'address_verification' => :'Boolean',
|
172
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
173
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
174
228
|
:'reference_id' => :'String',
|
175
|
-
:'email' => :'String',
|
176
|
-
:'tin_type' => :'String',
|
177
|
-
:'fatca_filing_requirement' => :'Boolean',
|
178
229
|
:'tin' => :'String',
|
179
|
-
:'no_tin' => :'Boolean',
|
180
|
-
:'second_tin_notice' => :'Boolean',
|
181
230
|
:'recipient_name' => :'String',
|
231
|
+
:'tin_type' => :'String',
|
182
232
|
:'recipient_second_name' => :'String',
|
183
233
|
:'address' => :'String',
|
184
234
|
:'address2' => :'String',
|
185
235
|
:'city' => :'String',
|
186
236
|
:'state' => :'String',
|
187
237
|
:'zip' => :'String',
|
188
|
-
:'
|
189
|
-
:'country_code' => :'String',
|
238
|
+
:'email' => :'String',
|
190
239
|
:'account_number' => :'String',
|
191
240
|
:'office_code' => :'String',
|
241
|
+
:'non_us_province' => :'String',
|
242
|
+
:'country_code' => :'String',
|
243
|
+
:'federal_efile_date' => :'Date',
|
244
|
+
:'postal_mail' => :'Boolean',
|
245
|
+
:'state_efile_date' => :'Date',
|
246
|
+
:'recipient_edelivery_date' => :'Date',
|
247
|
+
:'tin_match' => :'Boolean',
|
248
|
+
:'no_tin' => :'Boolean',
|
249
|
+
:'address_verification' => :'Boolean',
|
250
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
251
|
+
:'second_tin_notice' => :'Boolean',
|
252
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
253
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
254
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
255
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
256
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
257
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
192
258
|
:'validation_errors' => :'Array<ValidationError>',
|
193
259
|
:'created_at' => :'Time',
|
194
|
-
:'updated_at' => :'Time'
|
195
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
260
|
+
:'updated_at' => :'Time'
|
196
261
|
}
|
197
262
|
end
|
198
263
|
|
@@ -200,33 +265,44 @@ module AvalaraSdk::A1099::V2
|
|
200
265
|
def self.openapi_nullable
|
201
266
|
Set.new([
|
202
267
|
:'nonemployee_compensation',
|
268
|
+
:'direct_sales_indicator',
|
203
269
|
:'federal_income_tax_withheld',
|
270
|
+
:'id',
|
271
|
+
:'issuer_id',
|
204
272
|
:'issuer_reference_id',
|
205
273
|
:'issuer_tin',
|
206
|
-
:'
|
207
|
-
:'postal_mail_status',
|
208
|
-
:'tin_match_status',
|
209
|
-
:'address_verification_status',
|
210
|
-
:'e_delivery_status',
|
274
|
+
:'tax_year',
|
211
275
|
:'reference_id',
|
212
|
-
:'email',
|
213
|
-
:'tin_type',
|
214
|
-
:'fatca_filing_requirement',
|
215
276
|
:'tin',
|
216
|
-
:'second_tin_notice',
|
217
277
|
:'recipient_name',
|
278
|
+
:'tin_type',
|
218
279
|
:'recipient_second_name',
|
219
280
|
:'address',
|
220
281
|
:'address2',
|
221
282
|
:'city',
|
222
283
|
:'state',
|
223
284
|
:'zip',
|
224
|
-
:'
|
225
|
-
:'country_code',
|
285
|
+
:'email',
|
226
286
|
:'account_number',
|
227
287
|
:'office_code',
|
288
|
+
:'non_us_province',
|
289
|
+
:'country_code',
|
290
|
+
:'federal_efile_date',
|
291
|
+
:'postal_mail',
|
292
|
+
:'state_efile_date',
|
293
|
+
:'recipient_edelivery_date',
|
294
|
+
:'tin_match',
|
295
|
+
:'no_tin',
|
296
|
+
:'address_verification',
|
297
|
+
:'state_and_local_withholding',
|
298
|
+
:'second_tin_notice',
|
299
|
+
:'federal_efile_status',
|
300
|
+
:'state_efile_status',
|
301
|
+
:'postal_mail_status',
|
302
|
+
:'tin_match_status',
|
303
|
+
:'address_verification_status',
|
304
|
+
:'e_delivery_status',
|
228
305
|
:'validation_errors',
|
229
|
-
:'state_and_local_withholding'
|
230
306
|
])
|
231
307
|
end
|
232
308
|
|
@@ -254,22 +330,26 @@ module AvalaraSdk::A1099::V2
|
|
254
330
|
|
255
331
|
if attributes.key?(:'nonemployee_compensation')
|
256
332
|
self.nonemployee_compensation = attributes[:'nonemployee_compensation']
|
257
|
-
|
258
|
-
|
259
|
-
if attributes.key?(:'federal_income_tax_withheld')
|
260
|
-
self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
|
333
|
+
else
|
334
|
+
self.nonemployee_compensation = nil
|
261
335
|
end
|
262
336
|
|
263
337
|
if attributes.key?(:'direct_sales_indicator')
|
264
338
|
self.direct_sales_indicator = attributes[:'direct_sales_indicator']
|
265
339
|
end
|
266
340
|
|
267
|
-
if attributes.key?(:'
|
268
|
-
self.
|
341
|
+
if attributes.key?(:'federal_income_tax_withheld')
|
342
|
+
self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
|
269
343
|
end
|
270
344
|
|
271
345
|
if attributes.key?(:'type')
|
272
346
|
self.type = attributes[:'type']
|
347
|
+
else
|
348
|
+
self.type = nil
|
349
|
+
end
|
350
|
+
|
351
|
+
if attributes.key?(:'id')
|
352
|
+
self.id = attributes[:'id']
|
273
353
|
end
|
274
354
|
|
275
355
|
if attributes.key?(:'issuer_id')
|
@@ -288,122 +368,134 @@ module AvalaraSdk::A1099::V2
|
|
288
368
|
self.tax_year = attributes[:'tax_year']
|
289
369
|
end
|
290
370
|
|
291
|
-
if attributes.key?(:'
|
292
|
-
self.
|
371
|
+
if attributes.key?(:'reference_id')
|
372
|
+
self.reference_id = attributes[:'reference_id']
|
293
373
|
end
|
294
374
|
|
295
|
-
if attributes.key?(:'
|
296
|
-
self.
|
375
|
+
if attributes.key?(:'tin')
|
376
|
+
self.tin = attributes[:'tin']
|
297
377
|
end
|
298
378
|
|
299
|
-
if attributes.key?(:'
|
300
|
-
self.
|
379
|
+
if attributes.key?(:'recipient_name')
|
380
|
+
self.recipient_name = attributes[:'recipient_name']
|
381
|
+
else
|
382
|
+
self.recipient_name = nil
|
301
383
|
end
|
302
384
|
|
303
|
-
if attributes.key?(:'
|
304
|
-
|
305
|
-
self.state_efile_status = value
|
306
|
-
end
|
385
|
+
if attributes.key?(:'tin_type')
|
386
|
+
self.tin_type = attributes[:'tin_type']
|
307
387
|
end
|
308
388
|
|
309
|
-
if attributes.key?(:'
|
310
|
-
self.
|
389
|
+
if attributes.key?(:'recipient_second_name')
|
390
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
311
391
|
end
|
312
392
|
|
313
|
-
if attributes.key?(:'
|
314
|
-
self.
|
393
|
+
if attributes.key?(:'address')
|
394
|
+
self.address = attributes[:'address']
|
395
|
+
else
|
396
|
+
self.address = nil
|
315
397
|
end
|
316
398
|
|
317
|
-
if attributes.key?(:'
|
318
|
-
self.
|
399
|
+
if attributes.key?(:'address2')
|
400
|
+
self.address2 = attributes[:'address2']
|
319
401
|
end
|
320
402
|
|
321
|
-
if attributes.key?(:'
|
322
|
-
self.
|
403
|
+
if attributes.key?(:'city')
|
404
|
+
self.city = attributes[:'city']
|
405
|
+
else
|
406
|
+
self.city = nil
|
323
407
|
end
|
324
408
|
|
325
|
-
if attributes.key?(:'
|
326
|
-
self.
|
409
|
+
if attributes.key?(:'state')
|
410
|
+
self.state = attributes[:'state']
|
327
411
|
end
|
328
412
|
|
329
|
-
if attributes.key?(:'
|
330
|
-
self.
|
413
|
+
if attributes.key?(:'zip')
|
414
|
+
self.zip = attributes[:'zip']
|
331
415
|
end
|
332
416
|
|
333
|
-
if attributes.key?(:'
|
334
|
-
self.
|
417
|
+
if attributes.key?(:'email')
|
418
|
+
self.email = attributes[:'email']
|
335
419
|
end
|
336
420
|
|
337
|
-
if attributes.key?(:'
|
338
|
-
self.
|
421
|
+
if attributes.key?(:'account_number')
|
422
|
+
self.account_number = attributes[:'account_number']
|
339
423
|
end
|
340
424
|
|
341
|
-
if attributes.key?(:'
|
342
|
-
self.
|
425
|
+
if attributes.key?(:'office_code')
|
426
|
+
self.office_code = attributes[:'office_code']
|
343
427
|
end
|
344
428
|
|
345
|
-
if attributes.key?(:'
|
346
|
-
self.
|
429
|
+
if attributes.key?(:'non_us_province')
|
430
|
+
self.non_us_province = attributes[:'non_us_province']
|
347
431
|
end
|
348
432
|
|
349
|
-
if attributes.key?(:'
|
350
|
-
self.
|
433
|
+
if attributes.key?(:'country_code')
|
434
|
+
self.country_code = attributes[:'country_code']
|
435
|
+
else
|
436
|
+
self.country_code = nil
|
351
437
|
end
|
352
438
|
|
353
|
-
if attributes.key?(:'
|
354
|
-
self.
|
439
|
+
if attributes.key?(:'federal_efile_date')
|
440
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
355
441
|
end
|
356
442
|
|
357
|
-
if attributes.key?(:'
|
358
|
-
self.
|
443
|
+
if attributes.key?(:'postal_mail')
|
444
|
+
self.postal_mail = attributes[:'postal_mail']
|
359
445
|
end
|
360
446
|
|
361
|
-
if attributes.key?(:'
|
362
|
-
self.
|
447
|
+
if attributes.key?(:'state_efile_date')
|
448
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
363
449
|
end
|
364
450
|
|
365
|
-
if attributes.key?(:'
|
366
|
-
self.
|
451
|
+
if attributes.key?(:'recipient_edelivery_date')
|
452
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
367
453
|
end
|
368
454
|
|
369
|
-
if attributes.key?(:'
|
370
|
-
self.
|
455
|
+
if attributes.key?(:'tin_match')
|
456
|
+
self.tin_match = attributes[:'tin_match']
|
371
457
|
end
|
372
458
|
|
373
|
-
if attributes.key?(:'
|
374
|
-
self.
|
459
|
+
if attributes.key?(:'no_tin')
|
460
|
+
self.no_tin = attributes[:'no_tin']
|
375
461
|
end
|
376
462
|
|
377
|
-
if attributes.key?(:'
|
378
|
-
self.
|
463
|
+
if attributes.key?(:'address_verification')
|
464
|
+
self.address_verification = attributes[:'address_verification']
|
379
465
|
end
|
380
466
|
|
381
|
-
if attributes.key?(:'
|
382
|
-
self.
|
467
|
+
if attributes.key?(:'state_and_local_withholding')
|
468
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
383
469
|
end
|
384
470
|
|
385
|
-
if attributes.key?(:'
|
386
|
-
self.
|
471
|
+
if attributes.key?(:'second_tin_notice')
|
472
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
387
473
|
end
|
388
474
|
|
389
|
-
if attributes.key?(:'
|
390
|
-
self.
|
475
|
+
if attributes.key?(:'federal_efile_status')
|
476
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
391
477
|
end
|
392
478
|
|
393
|
-
if attributes.key?(:'
|
394
|
-
|
479
|
+
if attributes.key?(:'state_efile_status')
|
480
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
481
|
+
self.state_efile_status = value
|
482
|
+
end
|
395
483
|
end
|
396
484
|
|
397
|
-
if attributes.key?(:'
|
398
|
-
self.
|
485
|
+
if attributes.key?(:'postal_mail_status')
|
486
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
399
487
|
end
|
400
488
|
|
401
|
-
if attributes.key?(:'
|
402
|
-
self.
|
489
|
+
if attributes.key?(:'tin_match_status')
|
490
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
403
491
|
end
|
404
492
|
|
405
|
-
if attributes.key?(:'
|
406
|
-
self.
|
493
|
+
if attributes.key?(:'address_verification_status')
|
494
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
495
|
+
end
|
496
|
+
|
497
|
+
if attributes.key?(:'e_delivery_status')
|
498
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
407
499
|
end
|
408
500
|
|
409
501
|
if attributes.key?(:'validation_errors')
|
@@ -419,10 +511,6 @@ module AvalaraSdk::A1099::V2
|
|
419
511
|
if attributes.key?(:'updated_at')
|
420
512
|
self.updated_at = attributes[:'updated_at']
|
421
513
|
end
|
422
|
-
|
423
|
-
if attributes.key?(:'state_and_local_withholding')
|
424
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
425
|
-
end
|
426
514
|
end
|
427
515
|
|
428
516
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -430,6 +518,10 @@ module AvalaraSdk::A1099::V2
|
|
430
518
|
def list_invalid_properties
|
431
519
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
432
520
|
invalid_properties = Array.new
|
521
|
+
if @type.nil?
|
522
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
523
|
+
end
|
524
|
+
|
433
525
|
invalid_properties
|
434
526
|
end
|
435
527
|
|
@@ -437,19 +529,32 @@ module AvalaraSdk::A1099::V2
|
|
437
529
|
# @return true if the model is valid
|
438
530
|
def valid?
|
439
531
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
532
|
+
return false if @type.nil?
|
533
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
534
|
+
return false unless type_validator.valid?(@type)
|
535
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
536
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
440
537
|
true
|
441
538
|
end
|
442
539
|
|
443
|
-
# Custom attribute writer method
|
444
|
-
# @param [Object]
|
445
|
-
def
|
446
|
-
|
540
|
+
# Custom attribute writer method checking allowed values (enum).
|
541
|
+
# @param [Object] type Object to be assigned
|
542
|
+
def type=(type)
|
543
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
544
|
+
unless validator.valid?(type)
|
545
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
546
|
+
end
|
547
|
+
@type = type
|
447
548
|
end
|
448
549
|
|
449
|
-
# Custom attribute writer method
|
450
|
-
# @param [Object]
|
451
|
-
def
|
452
|
-
|
550
|
+
# Custom attribute writer method checking allowed values (enum).
|
551
|
+
# @param [Object] tin_type Object to be assigned
|
552
|
+
def tin_type=(tin_type)
|
553
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
554
|
+
unless validator.valid?(tin_type)
|
555
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
556
|
+
end
|
557
|
+
@tin_type = tin_type
|
453
558
|
end
|
454
559
|
|
455
560
|
# Checks equality by comparing each attribute.
|
@@ -458,47 +563,47 @@ module AvalaraSdk::A1099::V2
|
|
458
563
|
return true if self.equal?(o)
|
459
564
|
self.class == o.class &&
|
460
565
|
nonemployee_compensation == o.nonemployee_compensation &&
|
461
|
-
federal_income_tax_withheld == o.federal_income_tax_withheld &&
|
462
566
|
direct_sales_indicator == o.direct_sales_indicator &&
|
463
|
-
|
567
|
+
federal_income_tax_withheld == o.federal_income_tax_withheld &&
|
464
568
|
type == o.type &&
|
569
|
+
id == o.id &&
|
465
570
|
issuer_id == o.issuer_id &&
|
466
571
|
issuer_reference_id == o.issuer_reference_id &&
|
467
572
|
issuer_tin == o.issuer_tin &&
|
468
573
|
tax_year == o.tax_year &&
|
469
|
-
federal_efile == o.federal_efile &&
|
470
|
-
federal_efile_status == o.federal_efile_status &&
|
471
|
-
state_efile == o.state_efile &&
|
472
|
-
state_efile_status == o.state_efile_status &&
|
473
|
-
postal_mail == o.postal_mail &&
|
474
|
-
postal_mail_status == o.postal_mail_status &&
|
475
|
-
tin_match == o.tin_match &&
|
476
|
-
tin_match_status == o.tin_match_status &&
|
477
|
-
address_verification == o.address_verification &&
|
478
|
-
address_verification_status == o.address_verification_status &&
|
479
|
-
e_delivery_status == o.e_delivery_status &&
|
480
574
|
reference_id == o.reference_id &&
|
481
|
-
email == o.email &&
|
482
|
-
tin_type == o.tin_type &&
|
483
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
484
575
|
tin == o.tin &&
|
485
|
-
no_tin == o.no_tin &&
|
486
|
-
second_tin_notice == o.second_tin_notice &&
|
487
576
|
recipient_name == o.recipient_name &&
|
577
|
+
tin_type == o.tin_type &&
|
488
578
|
recipient_second_name == o.recipient_second_name &&
|
489
579
|
address == o.address &&
|
490
580
|
address2 == o.address2 &&
|
491
581
|
city == o.city &&
|
492
582
|
state == o.state &&
|
493
583
|
zip == o.zip &&
|
494
|
-
|
495
|
-
country_code == o.country_code &&
|
584
|
+
email == o.email &&
|
496
585
|
account_number == o.account_number &&
|
497
586
|
office_code == o.office_code &&
|
587
|
+
non_us_province == o.non_us_province &&
|
588
|
+
country_code == o.country_code &&
|
589
|
+
federal_efile_date == o.federal_efile_date &&
|
590
|
+
postal_mail == o.postal_mail &&
|
591
|
+
state_efile_date == o.state_efile_date &&
|
592
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
593
|
+
tin_match == o.tin_match &&
|
594
|
+
no_tin == o.no_tin &&
|
595
|
+
address_verification == o.address_verification &&
|
596
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
597
|
+
second_tin_notice == o.second_tin_notice &&
|
598
|
+
federal_efile_status == o.federal_efile_status &&
|
599
|
+
state_efile_status == o.state_efile_status &&
|
600
|
+
postal_mail_status == o.postal_mail_status &&
|
601
|
+
tin_match_status == o.tin_match_status &&
|
602
|
+
address_verification_status == o.address_verification_status &&
|
603
|
+
e_delivery_status == o.e_delivery_status &&
|
498
604
|
validation_errors == o.validation_errors &&
|
499
605
|
created_at == o.created_at &&
|
500
|
-
updated_at == o.updated_at
|
501
|
-
state_and_local_withholding == o.state_and_local_withholding
|
606
|
+
updated_at == o.updated_at
|
502
607
|
end
|
503
608
|
|
504
609
|
# @see the `==` method
|
@@ -510,7 +615,7 @@ module AvalaraSdk::A1099::V2
|
|
510
615
|
# Calculates hash code according to all attributes.
|
511
616
|
# @return [Integer] Hash code
|
512
617
|
def hash
|
513
|
-
[nonemployee_compensation, federal_income_tax_withheld,
|
618
|
+
[nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, 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
|
514
619
|
end
|
515
620
|
|
516
621
|
# Builds the object from hash
|