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