avalara_sdk 25.8.2 → 25.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -79
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- data/docs/A1099/V2/CompanyResponse.md +37 -37
- data/docs/A1099/V2/CoveredIndividual.md +56 -0
- data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
- data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
- data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
- data/docs/A1099/V2/EntryStatusResponse.md +20 -0
- data/docs/A1099/V2/Form1042S.md +83 -83
- data/docs/A1099/V2/Form1095B.md +72 -62
- data/docs/A1099/V2/Form1095C.md +112 -0
- data/docs/A1099/V2/Form1099Base.md +60 -60
- data/docs/A1099/V2/Form1099Div.md +79 -77
- data/docs/A1099/V2/Form1099Int.md +76 -74
- data/docs/A1099/V2/Form1099K.md +83 -83
- data/docs/A1099/V2/Form1099ListRequest.md +20 -0
- data/docs/A1099/V2/Form1099Misc.md +79 -77
- data/docs/A1099/V2/Form1099Nec.md +64 -64
- data/docs/A1099/V2/Form1099R.md +95 -93
- data/docs/A1099/V2/Forms1099Api.md +45 -41
- data/docs/A1099/V2/FormsW9Api.md +98 -14
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- data/docs/A1099/V2/IssuerResponse.md +35 -35
- data/docs/A1099/V2/Issuers1099Api.md +10 -10
- data/docs/A1099/V2/JobResponse.md +56 -0
- data/docs/A1099/V2/JobsApi.md +91 -0
- data/docs/A1099/V2/OfferAndCoverage.md +28 -0
- data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
- data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
- data/docs/A1099/V2/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +6 -6
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +6 -6
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +6 -6
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +6 -6
- data/docs/A1099/V2/W9FormBaseResponse.md +3 -3
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +6 -6
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +89 -57
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +144 -6
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
- data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
- data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
- data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
- data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
- data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +424 -179
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +365 -179
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +259 -111
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +286 -177
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +310 -171
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +308 -174
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +298 -186
- data/lib/avalara_sdk/models/A1099/V2/{form1099_div_list.rb → form1099_list_request.rb} +49 -22
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +337 -201
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +298 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +414 -274
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +13 -1
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
- data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +108 -42
- data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
- data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb +418 -0
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → w8_ben_e_form_minimal_request.rb} +139 -170
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → w8_ben_form_minimal_request.rb} +148 -122
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w8_imy_form_minimal_request.rb} +135 -132
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +53 -27
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → w9_form_base_minimal_request.rb} +87 -53
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +60 -27
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +14 -14
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → w9_form_minimal_request.rb} +140 -148
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +53 -27
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -105
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +37 -103
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
- data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/problem_details.rb +0 -251
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
- data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -10,184 +10,269 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
|
14
|
-
|
13
|
+
# Form 1099-R: Distributions From Pensions, Annuities, Retirement or Profit-Sharing Plans, IRAs, Insurance Contracts, etc.
|
14
|
+
class Form1099R
|
15
|
+
# Gross distribution
|
16
|
+
attr_accessor :gross_distribution
|
15
17
|
|
18
|
+
# Taxable amount
|
16
19
|
attr_accessor :taxable_amount
|
17
20
|
|
21
|
+
# Taxable amount not determined
|
18
22
|
attr_accessor :taxable_amount_not_determined
|
19
23
|
|
20
|
-
|
24
|
+
# Total distribution
|
25
|
+
attr_accessor :total_distribution_determined
|
21
26
|
|
27
|
+
# Capital gain (included in Box 2a)
|
22
28
|
attr_accessor :capital_gain
|
23
29
|
|
24
|
-
|
30
|
+
# Federal income tax withheld
|
31
|
+
attr_accessor :federal_income_tax_withheld
|
25
32
|
|
26
|
-
|
33
|
+
# Employee contributions/Designated Roth contributions or insurance premiums
|
34
|
+
attr_accessor :employee_contributions_or_designated_roth_or_insurance_premiums
|
27
35
|
|
28
|
-
|
36
|
+
# Net unrealized appreciation in employer's securities
|
37
|
+
attr_accessor :net_unrealized_appreciation_in_employer_securities
|
29
38
|
|
30
|
-
|
39
|
+
# Distribution code
|
40
|
+
attr_accessor :distribution_code
|
31
41
|
|
32
|
-
|
42
|
+
# Second distribution code
|
43
|
+
attr_accessor :second_distribution_code
|
33
44
|
|
34
|
-
|
45
|
+
# IRA/SEP/SIMPLE
|
46
|
+
attr_accessor :ira_sep_simple
|
35
47
|
|
36
|
-
|
48
|
+
# Traditional IRA/SEP/SIMPLE or Roth conversion amount
|
49
|
+
attr_accessor :traditional_ira_sep_simple_or_roth_conversion_amount
|
37
50
|
|
38
|
-
|
51
|
+
# Other amount
|
52
|
+
attr_accessor :other_amount
|
39
53
|
|
40
|
-
|
54
|
+
# Other percentage
|
55
|
+
attr_accessor :other_percentage
|
41
56
|
|
42
|
-
|
57
|
+
# Total distribution percentage
|
58
|
+
attr_accessor :total_distribution_percentage
|
43
59
|
|
60
|
+
# Total employee contributions
|
44
61
|
attr_accessor :total_employee_contributions
|
45
62
|
|
46
|
-
|
63
|
+
# Amount allocable to IRR within 5 years
|
64
|
+
attr_accessor :amount_allocable_to_irr_within5_years
|
47
65
|
|
48
|
-
|
66
|
+
# First year of designated Roth contribution
|
67
|
+
attr_accessor :first_year_of_designated_roth_contribution
|
49
68
|
|
69
|
+
# Date of payment
|
50
70
|
attr_accessor :date_of_payment
|
51
71
|
|
52
|
-
|
72
|
+
# FATCA filing requirement
|
73
|
+
attr_accessor :fatca_filing_requirement
|
53
74
|
|
75
|
+
# Form type
|
54
76
|
attr_accessor :type
|
55
77
|
|
78
|
+
# Form ID. Unique identifier set when the record is created.
|
79
|
+
attr_accessor :id
|
80
|
+
|
81
|
+
# Issuer ID - only required when creating forms
|
56
82
|
attr_accessor :issuer_id
|
57
83
|
|
84
|
+
# Issuer Reference ID - only required when creating forms
|
58
85
|
attr_accessor :issuer_reference_id
|
59
86
|
|
87
|
+
# Issuer TIN - readonly
|
60
88
|
attr_accessor :issuer_tin
|
61
89
|
|
90
|
+
# Tax Year - only required when creating forms
|
62
91
|
attr_accessor :tax_year
|
63
92
|
|
64
|
-
|
93
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
94
|
+
attr_accessor :reference_id
|
65
95
|
|
66
|
-
|
96
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
97
|
+
attr_accessor :tin
|
67
98
|
|
68
|
-
|
99
|
+
# Recipient name
|
100
|
+
attr_accessor :recipient_name
|
69
101
|
|
70
|
-
|
102
|
+
# Type of TIN (Tax ID Number)
|
103
|
+
attr_accessor :tin_type
|
71
104
|
|
72
|
-
|
105
|
+
# Recipient second name
|
106
|
+
attr_accessor :recipient_second_name
|
73
107
|
|
74
|
-
|
108
|
+
# Address.
|
109
|
+
attr_accessor :address
|
75
110
|
|
76
|
-
|
111
|
+
# Address line 2.
|
112
|
+
attr_accessor :address2
|
77
113
|
|
78
|
-
|
114
|
+
# City.
|
115
|
+
attr_accessor :city
|
79
116
|
|
80
|
-
|
117
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
118
|
+
attr_accessor :state
|
81
119
|
|
82
|
-
|
120
|
+
# ZIP/postal code.
|
121
|
+
attr_accessor :zip
|
83
122
|
|
84
|
-
|
123
|
+
# Recipient's Contact email address.
|
124
|
+
attr_accessor :email
|
85
125
|
|
86
|
-
|
126
|
+
# Account number
|
127
|
+
attr_accessor :account_number
|
87
128
|
|
88
|
-
|
129
|
+
# Office code
|
130
|
+
attr_accessor :office_code
|
89
131
|
|
90
|
-
|
132
|
+
# Province or region for non-US/CA addresses.
|
133
|
+
attr_accessor :non_us_province
|
91
134
|
|
92
|
-
|
135
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
136
|
+
attr_accessor :country_code
|
93
137
|
|
94
|
-
|
138
|
+
# Date when federal e-filing should be scheduled for this form
|
139
|
+
attr_accessor :federal_efile_date
|
95
140
|
|
96
|
-
|
141
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
142
|
+
attr_accessor :postal_mail
|
97
143
|
|
98
|
-
|
144
|
+
# Date when state e-filing should be scheduled for this form
|
145
|
+
attr_accessor :state_efile_date
|
99
146
|
|
100
|
-
|
147
|
+
# Date when recipient e-delivery should be scheduled for this form
|
148
|
+
attr_accessor :recipient_edelivery_date
|
101
149
|
|
102
|
-
|
150
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
151
|
+
attr_accessor :tin_match
|
103
152
|
|
104
|
-
|
153
|
+
# No TIN indicator
|
154
|
+
attr_accessor :no_tin
|
105
155
|
|
106
|
-
|
156
|
+
# Boolean indicating that address verification should be scheduled for this form
|
157
|
+
attr_accessor :address_verification
|
107
158
|
|
108
|
-
|
159
|
+
# State and local withholding information
|
160
|
+
attr_accessor :state_and_local_withholding
|
109
161
|
|
110
|
-
|
162
|
+
# Second TIN notice
|
163
|
+
attr_accessor :second_tin_notice
|
111
164
|
|
112
|
-
|
165
|
+
# Federal e-file status
|
166
|
+
attr_accessor :federal_efile_status
|
113
167
|
|
114
|
-
|
168
|
+
# State e-file status
|
169
|
+
attr_accessor :state_efile_status
|
115
170
|
|
116
|
-
|
171
|
+
# Postal mail to recipient status
|
172
|
+
attr_accessor :postal_mail_status
|
117
173
|
|
118
|
-
|
174
|
+
# TIN Match status
|
175
|
+
attr_accessor :tin_match_status
|
119
176
|
|
120
|
-
|
177
|
+
# Address verification status
|
178
|
+
attr_accessor :address_verification_status
|
121
179
|
|
180
|
+
# EDelivery status
|
181
|
+
attr_accessor :e_delivery_status
|
182
|
+
|
183
|
+
# Validation errors
|
122
184
|
attr_accessor :validation_errors
|
123
185
|
|
186
|
+
# Date time when the record was created.
|
124
187
|
attr_accessor :created_at
|
125
188
|
|
189
|
+
# Date time when the record was last updated.
|
126
190
|
attr_accessor :updated_at
|
127
191
|
|
128
|
-
|
192
|
+
class EnumAttributeValidator
|
193
|
+
attr_reader :datatype
|
194
|
+
attr_reader :allowable_values
|
195
|
+
|
196
|
+
def initialize(datatype, allowable_values)
|
197
|
+
@allowable_values = allowable_values.map do |value|
|
198
|
+
case datatype.to_s
|
199
|
+
when /Integer/i
|
200
|
+
value.to_i
|
201
|
+
when /Float/i
|
202
|
+
value.to_f
|
203
|
+
else
|
204
|
+
value
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
def valid?(value)
|
210
|
+
!value || allowable_values.include?(value)
|
211
|
+
end
|
212
|
+
end
|
129
213
|
|
130
214
|
# Attribute mapping from ruby-style variable name to JSON key.
|
131
215
|
def self.attribute_map
|
132
216
|
{
|
133
|
-
:'
|
217
|
+
:'gross_distribution' => :'grossDistribution',
|
134
218
|
:'taxable_amount' => :'taxableAmount',
|
135
219
|
:'taxable_amount_not_determined' => :'taxableAmountNotDetermined',
|
136
|
-
:'
|
220
|
+
:'total_distribution_determined' => :'totalDistributionDetermined',
|
137
221
|
:'capital_gain' => :'capitalGain',
|
138
|
-
:'
|
139
|
-
:'
|
140
|
-
:'
|
141
|
-
:'
|
142
|
-
:'
|
143
|
-
:'
|
144
|
-
:'
|
145
|
-
:'
|
146
|
-
:'
|
147
|
-
:'
|
222
|
+
:'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
|
223
|
+
:'employee_contributions_or_designated_roth_or_insurance_premiums' => :'employeeContributionsOrDesignatedRothOrInsurancePremiums',
|
224
|
+
:'net_unrealized_appreciation_in_employer_securities' => :'netUnrealizedAppreciationInEmployerSecurities',
|
225
|
+
:'distribution_code' => :'distributionCode',
|
226
|
+
:'second_distribution_code' => :'secondDistributionCode',
|
227
|
+
:'ira_sep_simple' => :'iraSepSimple',
|
228
|
+
:'traditional_ira_sep_simple_or_roth_conversion_amount' => :'traditionalIraSepSimpleOrRothConversionAmount',
|
229
|
+
:'other_amount' => :'otherAmount',
|
230
|
+
:'other_percentage' => :'otherPercentage',
|
231
|
+
:'total_distribution_percentage' => :'totalDistributionPercentage',
|
148
232
|
:'total_employee_contributions' => :'totalEmployeeContributions',
|
149
|
-
:'
|
150
|
-
:'
|
233
|
+
:'amount_allocable_to_irr_within5_years' => :'amountAllocableToIrrWithin5Years',
|
234
|
+
:'first_year_of_designated_roth_contribution' => :'firstYearOfDesignatedRothContribution',
|
151
235
|
:'date_of_payment' => :'dateOfPayment',
|
152
|
-
:'
|
236
|
+
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
153
237
|
:'type' => :'type',
|
238
|
+
:'id' => :'id',
|
154
239
|
:'issuer_id' => :'issuerId',
|
155
240
|
:'issuer_reference_id' => :'issuerReferenceId',
|
156
241
|
:'issuer_tin' => :'issuerTin',
|
157
242
|
:'tax_year' => :'taxYear',
|
158
|
-
:'federal_efile' => :'federalEfile',
|
159
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
160
|
-
:'state_efile' => :'stateEfile',
|
161
|
-
:'state_efile_status' => :'stateEfileStatus',
|
162
|
-
:'postal_mail' => :'postalMail',
|
163
|
-
:'postal_mail_status' => :'postalMailStatus',
|
164
|
-
:'tin_match' => :'tinMatch',
|
165
|
-
:'tin_match_status' => :'tinMatchStatus',
|
166
|
-
:'address_verification' => :'addressVerification',
|
167
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
168
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
169
243
|
:'reference_id' => :'referenceId',
|
170
|
-
:'email' => :'email',
|
171
|
-
:'tin_type' => :'tinType',
|
172
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
173
244
|
:'tin' => :'tin',
|
174
|
-
:'no_tin' => :'noTin',
|
175
|
-
:'second_tin_notice' => :'secondTinNotice',
|
176
245
|
:'recipient_name' => :'recipientName',
|
246
|
+
:'tin_type' => :'tinType',
|
177
247
|
:'recipient_second_name' => :'recipientSecondName',
|
178
248
|
:'address' => :'address',
|
179
249
|
:'address2' => :'address2',
|
180
250
|
:'city' => :'city',
|
181
251
|
:'state' => :'state',
|
182
252
|
:'zip' => :'zip',
|
183
|
-
:'
|
184
|
-
:'country_code' => :'countryCode',
|
253
|
+
:'email' => :'email',
|
185
254
|
:'account_number' => :'accountNumber',
|
186
255
|
:'office_code' => :'officeCode',
|
256
|
+
:'non_us_province' => :'nonUsProvince',
|
257
|
+
:'country_code' => :'countryCode',
|
258
|
+
:'federal_efile_date' => :'federalEfileDate',
|
259
|
+
:'postal_mail' => :'postalMail',
|
260
|
+
:'state_efile_date' => :'stateEfileDate',
|
261
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
262
|
+
:'tin_match' => :'tinMatch',
|
263
|
+
:'no_tin' => :'noTin',
|
264
|
+
:'address_verification' => :'addressVerification',
|
265
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
266
|
+
:'second_tin_notice' => :'secondTinNotice',
|
267
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
268
|
+
:'state_efile_status' => :'stateEfileStatus',
|
269
|
+
:'postal_mail_status' => :'postalMailStatus',
|
270
|
+
:'tin_match_status' => :'tinMatchStatus',
|
271
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
272
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
187
273
|
:'validation_errors' => :'validationErrors',
|
188
274
|
:'created_at' => :'createdAt',
|
189
|
-
:'updated_at' => :'updatedAt'
|
190
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
275
|
+
:'updated_at' => :'updatedAt'
|
191
276
|
}
|
192
277
|
end
|
193
278
|
|
@@ -199,115 +284,126 @@ module AvalaraSdk::A1099::V2
|
|
199
284
|
# Attribute type mapping.
|
200
285
|
def self.openapi_types
|
201
286
|
{
|
202
|
-
:'
|
287
|
+
:'gross_distribution' => :'Float',
|
203
288
|
:'taxable_amount' => :'Float',
|
204
289
|
:'taxable_amount_not_determined' => :'Boolean',
|
205
|
-
:'
|
290
|
+
:'total_distribution_determined' => :'Boolean',
|
206
291
|
:'capital_gain' => :'Float',
|
207
|
-
:'
|
208
|
-
:'
|
209
|
-
:'
|
210
|
-
:'
|
211
|
-
:'
|
212
|
-
:'
|
213
|
-
:'
|
214
|
-
:'
|
215
|
-
:'
|
216
|
-
:'
|
292
|
+
:'federal_income_tax_withheld' => :'Float',
|
293
|
+
:'employee_contributions_or_designated_roth_or_insurance_premiums' => :'Float',
|
294
|
+
:'net_unrealized_appreciation_in_employer_securities' => :'Float',
|
295
|
+
:'distribution_code' => :'String',
|
296
|
+
:'second_distribution_code' => :'String',
|
297
|
+
:'ira_sep_simple' => :'Boolean',
|
298
|
+
:'traditional_ira_sep_simple_or_roth_conversion_amount' => :'Float',
|
299
|
+
:'other_amount' => :'Float',
|
300
|
+
:'other_percentage' => :'String',
|
301
|
+
:'total_distribution_percentage' => :'String',
|
217
302
|
:'total_employee_contributions' => :'Float',
|
218
|
-
:'
|
219
|
-
:'
|
220
|
-
:'date_of_payment' => :'
|
221
|
-
:'
|
303
|
+
:'amount_allocable_to_irr_within5_years' => :'Float',
|
304
|
+
:'first_year_of_designated_roth_contribution' => :'String',
|
305
|
+
:'date_of_payment' => :'Date',
|
306
|
+
:'fatca_filing_requirement' => :'Boolean',
|
222
307
|
:'type' => :'String',
|
223
|
-
:'
|
308
|
+
:'id' => :'String',
|
309
|
+
:'issuer_id' => :'String',
|
224
310
|
:'issuer_reference_id' => :'String',
|
225
311
|
:'issuer_tin' => :'String',
|
226
312
|
:'tax_year' => :'Integer',
|
227
|
-
:'federal_efile' => :'Boolean',
|
228
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
229
|
-
:'state_efile' => :'Boolean',
|
230
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
231
|
-
:'postal_mail' => :'Boolean',
|
232
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
233
|
-
:'tin_match' => :'Boolean',
|
234
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
235
|
-
:'address_verification' => :'Boolean',
|
236
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
237
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
238
313
|
:'reference_id' => :'String',
|
239
|
-
:'email' => :'String',
|
240
|
-
:'tin_type' => :'String',
|
241
|
-
:'fatca_filing_requirement' => :'Boolean',
|
242
314
|
:'tin' => :'String',
|
243
|
-
:'no_tin' => :'Boolean',
|
244
|
-
:'second_tin_notice' => :'Boolean',
|
245
315
|
:'recipient_name' => :'String',
|
316
|
+
:'tin_type' => :'String',
|
246
317
|
:'recipient_second_name' => :'String',
|
247
318
|
:'address' => :'String',
|
248
319
|
:'address2' => :'String',
|
249
320
|
:'city' => :'String',
|
250
321
|
:'state' => :'String',
|
251
322
|
:'zip' => :'String',
|
252
|
-
:'
|
253
|
-
:'country_code' => :'String',
|
323
|
+
:'email' => :'String',
|
254
324
|
:'account_number' => :'String',
|
255
325
|
:'office_code' => :'String',
|
326
|
+
:'non_us_province' => :'String',
|
327
|
+
:'country_code' => :'String',
|
328
|
+
:'federal_efile_date' => :'Date',
|
329
|
+
:'postal_mail' => :'Boolean',
|
330
|
+
:'state_efile_date' => :'Date',
|
331
|
+
:'recipient_edelivery_date' => :'Date',
|
332
|
+
:'tin_match' => :'Boolean',
|
333
|
+
:'no_tin' => :'Boolean',
|
334
|
+
:'address_verification' => :'Boolean',
|
335
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
336
|
+
:'second_tin_notice' => :'Boolean',
|
337
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
338
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
339
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
340
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
341
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
342
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
256
343
|
:'validation_errors' => :'Array<ValidationError>',
|
257
344
|
:'created_at' => :'Time',
|
258
|
-
:'updated_at' => :'Time'
|
259
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
345
|
+
:'updated_at' => :'Time'
|
260
346
|
}
|
261
347
|
end
|
262
348
|
|
263
349
|
# List of attributes with nullable: true
|
264
350
|
def self.openapi_nullable
|
265
351
|
Set.new([
|
266
|
-
:'
|
352
|
+
:'gross_distribution',
|
267
353
|
:'taxable_amount',
|
268
354
|
:'taxable_amount_not_determined',
|
269
|
-
:'
|
355
|
+
:'total_distribution_determined',
|
270
356
|
:'capital_gain',
|
271
|
-
:'
|
272
|
-
:'
|
273
|
-
:'
|
274
|
-
:'
|
275
|
-
:'
|
276
|
-
:'
|
277
|
-
:'
|
278
|
-
:'
|
279
|
-
:'
|
280
|
-
:'
|
357
|
+
:'federal_income_tax_withheld',
|
358
|
+
:'employee_contributions_or_designated_roth_or_insurance_premiums',
|
359
|
+
:'net_unrealized_appreciation_in_employer_securities',
|
360
|
+
:'distribution_code',
|
361
|
+
:'second_distribution_code',
|
362
|
+
:'ira_sep_simple',
|
363
|
+
:'traditional_ira_sep_simple_or_roth_conversion_amount',
|
364
|
+
:'other_amount',
|
365
|
+
:'other_percentage',
|
366
|
+
:'total_distribution_percentage',
|
281
367
|
:'total_employee_contributions',
|
282
|
-
:'
|
283
|
-
:'
|
368
|
+
:'amount_allocable_to_irr_within5_years',
|
369
|
+
:'first_year_of_designated_roth_contribution',
|
284
370
|
:'date_of_payment',
|
371
|
+
:'fatca_filing_requirement',
|
372
|
+
:'id',
|
373
|
+
:'issuer_id',
|
285
374
|
:'issuer_reference_id',
|
286
375
|
:'issuer_tin',
|
287
|
-
:'
|
288
|
-
:'postal_mail_status',
|
289
|
-
:'tin_match_status',
|
290
|
-
:'address_verification_status',
|
291
|
-
:'e_delivery_status',
|
376
|
+
:'tax_year',
|
292
377
|
:'reference_id',
|
293
|
-
:'email',
|
294
|
-
:'tin_type',
|
295
|
-
:'fatca_filing_requirement',
|
296
378
|
:'tin',
|
297
|
-
:'second_tin_notice',
|
298
379
|
:'recipient_name',
|
380
|
+
:'tin_type',
|
299
381
|
:'recipient_second_name',
|
300
382
|
:'address',
|
301
383
|
:'address2',
|
302
384
|
:'city',
|
303
385
|
:'state',
|
304
386
|
:'zip',
|
305
|
-
:'
|
306
|
-
:'country_code',
|
387
|
+
:'email',
|
307
388
|
:'account_number',
|
308
389
|
:'office_code',
|
390
|
+
:'non_us_province',
|
391
|
+
:'country_code',
|
392
|
+
:'federal_efile_date',
|
393
|
+
:'postal_mail',
|
394
|
+
:'state_efile_date',
|
395
|
+
:'recipient_edelivery_date',
|
396
|
+
:'tin_match',
|
397
|
+
:'no_tin',
|
398
|
+
:'address_verification',
|
399
|
+
:'state_and_local_withholding',
|
400
|
+
:'federal_efile_status',
|
401
|
+
:'state_efile_status',
|
402
|
+
:'postal_mail_status',
|
403
|
+
:'tin_match_status',
|
404
|
+
:'address_verification_status',
|
405
|
+
:'e_delivery_status',
|
309
406
|
:'validation_errors',
|
310
|
-
:'state_and_local_withholding'
|
311
407
|
])
|
312
408
|
end
|
313
409
|
|
@@ -333,8 +429,8 @@ module AvalaraSdk::A1099::V2
|
|
333
429
|
h[k.to_sym] = v
|
334
430
|
}
|
335
431
|
|
336
|
-
if attributes.key?(:'
|
337
|
-
self.
|
432
|
+
if attributes.key?(:'gross_distribution')
|
433
|
+
self.gross_distribution = attributes[:'gross_distribution']
|
338
434
|
end
|
339
435
|
|
340
436
|
if attributes.key?(:'taxable_amount')
|
@@ -345,76 +441,82 @@ module AvalaraSdk::A1099::V2
|
|
345
441
|
self.taxable_amount_not_determined = attributes[:'taxable_amount_not_determined']
|
346
442
|
end
|
347
443
|
|
348
|
-
if attributes.key?(:'
|
349
|
-
self.
|
444
|
+
if attributes.key?(:'total_distribution_determined')
|
445
|
+
self.total_distribution_determined = attributes[:'total_distribution_determined']
|
350
446
|
end
|
351
447
|
|
352
448
|
if attributes.key?(:'capital_gain')
|
353
449
|
self.capital_gain = attributes[:'capital_gain']
|
354
450
|
end
|
355
451
|
|
356
|
-
if attributes.key?(:'
|
357
|
-
self.
|
452
|
+
if attributes.key?(:'federal_income_tax_withheld')
|
453
|
+
self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
|
358
454
|
end
|
359
455
|
|
360
|
-
if attributes.key?(:'
|
361
|
-
self.
|
456
|
+
if attributes.key?(:'employee_contributions_or_designated_roth_or_insurance_premiums')
|
457
|
+
self.employee_contributions_or_designated_roth_or_insurance_premiums = attributes[:'employee_contributions_or_designated_roth_or_insurance_premiums']
|
362
458
|
end
|
363
459
|
|
364
|
-
if attributes.key?(:'
|
365
|
-
self.
|
460
|
+
if attributes.key?(:'net_unrealized_appreciation_in_employer_securities')
|
461
|
+
self.net_unrealized_appreciation_in_employer_securities = attributes[:'net_unrealized_appreciation_in_employer_securities']
|
366
462
|
end
|
367
463
|
|
368
|
-
if attributes.key?(:'
|
369
|
-
self.
|
464
|
+
if attributes.key?(:'distribution_code')
|
465
|
+
self.distribution_code = attributes[:'distribution_code']
|
370
466
|
end
|
371
467
|
|
372
|
-
if attributes.key?(:'
|
373
|
-
self.
|
468
|
+
if attributes.key?(:'second_distribution_code')
|
469
|
+
self.second_distribution_code = attributes[:'second_distribution_code']
|
374
470
|
end
|
375
471
|
|
376
|
-
if attributes.key?(:'
|
377
|
-
self.
|
472
|
+
if attributes.key?(:'ira_sep_simple')
|
473
|
+
self.ira_sep_simple = attributes[:'ira_sep_simple']
|
378
474
|
end
|
379
475
|
|
380
|
-
if attributes.key?(:'
|
381
|
-
self.
|
476
|
+
if attributes.key?(:'traditional_ira_sep_simple_or_roth_conversion_amount')
|
477
|
+
self.traditional_ira_sep_simple_or_roth_conversion_amount = attributes[:'traditional_ira_sep_simple_or_roth_conversion_amount']
|
382
478
|
end
|
383
479
|
|
384
|
-
if attributes.key?(:'
|
385
|
-
self.
|
480
|
+
if attributes.key?(:'other_amount')
|
481
|
+
self.other_amount = attributes[:'other_amount']
|
386
482
|
end
|
387
483
|
|
388
|
-
if attributes.key?(:'
|
389
|
-
self.
|
484
|
+
if attributes.key?(:'other_percentage')
|
485
|
+
self.other_percentage = attributes[:'other_percentage']
|
390
486
|
end
|
391
487
|
|
392
|
-
if attributes.key?(:'
|
393
|
-
self.
|
488
|
+
if attributes.key?(:'total_distribution_percentage')
|
489
|
+
self.total_distribution_percentage = attributes[:'total_distribution_percentage']
|
394
490
|
end
|
395
491
|
|
396
492
|
if attributes.key?(:'total_employee_contributions')
|
397
493
|
self.total_employee_contributions = attributes[:'total_employee_contributions']
|
398
494
|
end
|
399
495
|
|
400
|
-
if attributes.key?(:'
|
401
|
-
self.
|
496
|
+
if attributes.key?(:'amount_allocable_to_irr_within5_years')
|
497
|
+
self.amount_allocable_to_irr_within5_years = attributes[:'amount_allocable_to_irr_within5_years']
|
402
498
|
end
|
403
499
|
|
404
|
-
if attributes.key?(:'
|
405
|
-
self.
|
500
|
+
if attributes.key?(:'first_year_of_designated_roth_contribution')
|
501
|
+
self.first_year_of_designated_roth_contribution = attributes[:'first_year_of_designated_roth_contribution']
|
406
502
|
end
|
407
503
|
|
408
504
|
if attributes.key?(:'date_of_payment')
|
409
505
|
self.date_of_payment = attributes[:'date_of_payment']
|
410
506
|
end
|
411
507
|
|
412
|
-
if attributes.key?(:'
|
413
|
-
self.
|
508
|
+
if attributes.key?(:'fatca_filing_requirement')
|
509
|
+
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
414
510
|
end
|
415
511
|
|
416
512
|
if attributes.key?(:'type')
|
417
513
|
self.type = attributes[:'type']
|
514
|
+
else
|
515
|
+
self.type = nil
|
516
|
+
end
|
517
|
+
|
518
|
+
if attributes.key?(:'id')
|
519
|
+
self.id = attributes[:'id']
|
418
520
|
end
|
419
521
|
|
420
522
|
if attributes.key?(:'issuer_id')
|
@@ -433,122 +535,134 @@ module AvalaraSdk::A1099::V2
|
|
433
535
|
self.tax_year = attributes[:'tax_year']
|
434
536
|
end
|
435
537
|
|
436
|
-
if attributes.key?(:'
|
437
|
-
self.
|
538
|
+
if attributes.key?(:'reference_id')
|
539
|
+
self.reference_id = attributes[:'reference_id']
|
438
540
|
end
|
439
541
|
|
440
|
-
if attributes.key?(:'
|
441
|
-
self.
|
542
|
+
if attributes.key?(:'tin')
|
543
|
+
self.tin = attributes[:'tin']
|
442
544
|
end
|
443
545
|
|
444
|
-
if attributes.key?(:'
|
445
|
-
self.
|
546
|
+
if attributes.key?(:'recipient_name')
|
547
|
+
self.recipient_name = attributes[:'recipient_name']
|
548
|
+
else
|
549
|
+
self.recipient_name = nil
|
446
550
|
end
|
447
551
|
|
448
|
-
if attributes.key?(:'
|
449
|
-
|
450
|
-
self.state_efile_status = value
|
451
|
-
end
|
552
|
+
if attributes.key?(:'tin_type')
|
553
|
+
self.tin_type = attributes[:'tin_type']
|
452
554
|
end
|
453
555
|
|
454
|
-
if attributes.key?(:'
|
455
|
-
self.
|
556
|
+
if attributes.key?(:'recipient_second_name')
|
557
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
456
558
|
end
|
457
559
|
|
458
|
-
if attributes.key?(:'
|
459
|
-
self.
|
560
|
+
if attributes.key?(:'address')
|
561
|
+
self.address = attributes[:'address']
|
562
|
+
else
|
563
|
+
self.address = nil
|
460
564
|
end
|
461
565
|
|
462
|
-
if attributes.key?(:'
|
463
|
-
self.
|
566
|
+
if attributes.key?(:'address2')
|
567
|
+
self.address2 = attributes[:'address2']
|
464
568
|
end
|
465
569
|
|
466
|
-
if attributes.key?(:'
|
467
|
-
self.
|
570
|
+
if attributes.key?(:'city')
|
571
|
+
self.city = attributes[:'city']
|
572
|
+
else
|
573
|
+
self.city = nil
|
468
574
|
end
|
469
575
|
|
470
|
-
if attributes.key?(:'
|
471
|
-
self.
|
576
|
+
if attributes.key?(:'state')
|
577
|
+
self.state = attributes[:'state']
|
472
578
|
end
|
473
579
|
|
474
|
-
if attributes.key?(:'
|
475
|
-
self.
|
580
|
+
if attributes.key?(:'zip')
|
581
|
+
self.zip = attributes[:'zip']
|
476
582
|
end
|
477
583
|
|
478
|
-
if attributes.key?(:'
|
479
|
-
self.
|
584
|
+
if attributes.key?(:'email')
|
585
|
+
self.email = attributes[:'email']
|
480
586
|
end
|
481
587
|
|
482
|
-
if attributes.key?(:'
|
483
|
-
self.
|
588
|
+
if attributes.key?(:'account_number')
|
589
|
+
self.account_number = attributes[:'account_number']
|
484
590
|
end
|
485
591
|
|
486
|
-
if attributes.key?(:'
|
487
|
-
self.
|
592
|
+
if attributes.key?(:'office_code')
|
593
|
+
self.office_code = attributes[:'office_code']
|
488
594
|
end
|
489
595
|
|
490
|
-
if attributes.key?(:'
|
491
|
-
self.
|
596
|
+
if attributes.key?(:'non_us_province')
|
597
|
+
self.non_us_province = attributes[:'non_us_province']
|
492
598
|
end
|
493
599
|
|
494
|
-
if attributes.key?(:'
|
495
|
-
self.
|
600
|
+
if attributes.key?(:'country_code')
|
601
|
+
self.country_code = attributes[:'country_code']
|
602
|
+
else
|
603
|
+
self.country_code = nil
|
496
604
|
end
|
497
605
|
|
498
|
-
if attributes.key?(:'
|
499
|
-
self.
|
606
|
+
if attributes.key?(:'federal_efile_date')
|
607
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
500
608
|
end
|
501
609
|
|
502
|
-
if attributes.key?(:'
|
503
|
-
self.
|
610
|
+
if attributes.key?(:'postal_mail')
|
611
|
+
self.postal_mail = attributes[:'postal_mail']
|
504
612
|
end
|
505
613
|
|
506
|
-
if attributes.key?(:'
|
507
|
-
self.
|
614
|
+
if attributes.key?(:'state_efile_date')
|
615
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
508
616
|
end
|
509
617
|
|
510
|
-
if attributes.key?(:'
|
511
|
-
self.
|
618
|
+
if attributes.key?(:'recipient_edelivery_date')
|
619
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
512
620
|
end
|
513
621
|
|
514
|
-
if attributes.key?(:'
|
515
|
-
self.
|
622
|
+
if attributes.key?(:'tin_match')
|
623
|
+
self.tin_match = attributes[:'tin_match']
|
516
624
|
end
|
517
625
|
|
518
|
-
if attributes.key?(:'
|
519
|
-
self.
|
626
|
+
if attributes.key?(:'no_tin')
|
627
|
+
self.no_tin = attributes[:'no_tin']
|
520
628
|
end
|
521
629
|
|
522
|
-
if attributes.key?(:'
|
523
|
-
self.
|
630
|
+
if attributes.key?(:'address_verification')
|
631
|
+
self.address_verification = attributes[:'address_verification']
|
524
632
|
end
|
525
633
|
|
526
|
-
if attributes.key?(:'
|
527
|
-
self.
|
634
|
+
if attributes.key?(:'state_and_local_withholding')
|
635
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
528
636
|
end
|
529
637
|
|
530
|
-
if attributes.key?(:'
|
531
|
-
self.
|
638
|
+
if attributes.key?(:'second_tin_notice')
|
639
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
532
640
|
end
|
533
641
|
|
534
|
-
if attributes.key?(:'
|
535
|
-
self.
|
642
|
+
if attributes.key?(:'federal_efile_status')
|
643
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
536
644
|
end
|
537
645
|
|
538
|
-
if attributes.key?(:'
|
539
|
-
|
646
|
+
if attributes.key?(:'state_efile_status')
|
647
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
648
|
+
self.state_efile_status = value
|
649
|
+
end
|
540
650
|
end
|
541
651
|
|
542
|
-
if attributes.key?(:'
|
543
|
-
self.
|
652
|
+
if attributes.key?(:'postal_mail_status')
|
653
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
544
654
|
end
|
545
655
|
|
546
|
-
if attributes.key?(:'
|
547
|
-
self.
|
656
|
+
if attributes.key?(:'tin_match_status')
|
657
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
548
658
|
end
|
549
659
|
|
550
|
-
if attributes.key?(:'
|
551
|
-
self.
|
660
|
+
if attributes.key?(:'address_verification_status')
|
661
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
662
|
+
end
|
663
|
+
|
664
|
+
if attributes.key?(:'e_delivery_status')
|
665
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
552
666
|
end
|
553
667
|
|
554
668
|
if attributes.key?(:'validation_errors')
|
@@ -564,10 +678,6 @@ module AvalaraSdk::A1099::V2
|
|
564
678
|
if attributes.key?(:'updated_at')
|
565
679
|
self.updated_at = attributes[:'updated_at']
|
566
680
|
end
|
567
|
-
|
568
|
-
if attributes.key?(:'state_and_local_withholding')
|
569
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
570
|
-
end
|
571
681
|
end
|
572
682
|
|
573
683
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -575,6 +685,10 @@ module AvalaraSdk::A1099::V2
|
|
575
685
|
def list_invalid_properties
|
576
686
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
577
687
|
invalid_properties = Array.new
|
688
|
+
if @type.nil?
|
689
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
690
|
+
end
|
691
|
+
|
578
692
|
invalid_properties
|
579
693
|
end
|
580
694
|
|
@@ -582,9 +696,34 @@ module AvalaraSdk::A1099::V2
|
|
582
696
|
# @return true if the model is valid
|
583
697
|
def valid?
|
584
698
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
699
|
+
return false if @type.nil?
|
700
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
701
|
+
return false unless type_validator.valid?(@type)
|
702
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
703
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
585
704
|
true
|
586
705
|
end
|
587
706
|
|
707
|
+
# Custom attribute writer method checking allowed values (enum).
|
708
|
+
# @param [Object] type Object to be assigned
|
709
|
+
def type=(type)
|
710
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
711
|
+
unless validator.valid?(type)
|
712
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
713
|
+
end
|
714
|
+
@type = type
|
715
|
+
end
|
716
|
+
|
717
|
+
# Custom attribute writer method checking allowed values (enum).
|
718
|
+
# @param [Object] tin_type Object to be assigned
|
719
|
+
def tin_type=(tin_type)
|
720
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
721
|
+
unless validator.valid?(tin_type)
|
722
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
723
|
+
end
|
724
|
+
@tin_type = tin_type
|
725
|
+
end
|
726
|
+
|
588
727
|
# Custom attribute writer method with validation
|
589
728
|
# @param [Object] state_efile_status Value to be assigned
|
590
729
|
def state_efile_status=(state_efile_status)
|
@@ -602,64 +741,65 @@ module AvalaraSdk::A1099::V2
|
|
602
741
|
def ==(o)
|
603
742
|
return true if self.equal?(o)
|
604
743
|
self.class == o.class &&
|
605
|
-
|
744
|
+
gross_distribution == o.gross_distribution &&
|
606
745
|
taxable_amount == o.taxable_amount &&
|
607
746
|
taxable_amount_not_determined == o.taxable_amount_not_determined &&
|
608
|
-
|
747
|
+
total_distribution_determined == o.total_distribution_determined &&
|
609
748
|
capital_gain == o.capital_gain &&
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
749
|
+
federal_income_tax_withheld == o.federal_income_tax_withheld &&
|
750
|
+
employee_contributions_or_designated_roth_or_insurance_premiums == o.employee_contributions_or_designated_roth_or_insurance_premiums &&
|
751
|
+
net_unrealized_appreciation_in_employer_securities == o.net_unrealized_appreciation_in_employer_securities &&
|
752
|
+
distribution_code == o.distribution_code &&
|
753
|
+
second_distribution_code == o.second_distribution_code &&
|
754
|
+
ira_sep_simple == o.ira_sep_simple &&
|
755
|
+
traditional_ira_sep_simple_or_roth_conversion_amount == o.traditional_ira_sep_simple_or_roth_conversion_amount &&
|
756
|
+
other_amount == o.other_amount &&
|
757
|
+
other_percentage == o.other_percentage &&
|
758
|
+
total_distribution_percentage == o.total_distribution_percentage &&
|
620
759
|
total_employee_contributions == o.total_employee_contributions &&
|
621
|
-
|
622
|
-
|
760
|
+
amount_allocable_to_irr_within5_years == o.amount_allocable_to_irr_within5_years &&
|
761
|
+
first_year_of_designated_roth_contribution == o.first_year_of_designated_roth_contribution &&
|
623
762
|
date_of_payment == o.date_of_payment &&
|
624
|
-
|
763
|
+
fatca_filing_requirement == o.fatca_filing_requirement &&
|
625
764
|
type == o.type &&
|
765
|
+
id == o.id &&
|
626
766
|
issuer_id == o.issuer_id &&
|
627
767
|
issuer_reference_id == o.issuer_reference_id &&
|
628
768
|
issuer_tin == o.issuer_tin &&
|
629
769
|
tax_year == o.tax_year &&
|
630
|
-
federal_efile == o.federal_efile &&
|
631
|
-
federal_efile_status == o.federal_efile_status &&
|
632
|
-
state_efile == o.state_efile &&
|
633
|
-
state_efile_status == o.state_efile_status &&
|
634
|
-
postal_mail == o.postal_mail &&
|
635
|
-
postal_mail_status == o.postal_mail_status &&
|
636
|
-
tin_match == o.tin_match &&
|
637
|
-
tin_match_status == o.tin_match_status &&
|
638
|
-
address_verification == o.address_verification &&
|
639
|
-
address_verification_status == o.address_verification_status &&
|
640
|
-
e_delivery_status == o.e_delivery_status &&
|
641
770
|
reference_id == o.reference_id &&
|
642
|
-
email == o.email &&
|
643
|
-
tin_type == o.tin_type &&
|
644
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
645
771
|
tin == o.tin &&
|
646
|
-
no_tin == o.no_tin &&
|
647
|
-
second_tin_notice == o.second_tin_notice &&
|
648
772
|
recipient_name == o.recipient_name &&
|
773
|
+
tin_type == o.tin_type &&
|
649
774
|
recipient_second_name == o.recipient_second_name &&
|
650
775
|
address == o.address &&
|
651
776
|
address2 == o.address2 &&
|
652
777
|
city == o.city &&
|
653
778
|
state == o.state &&
|
654
779
|
zip == o.zip &&
|
655
|
-
|
656
|
-
country_code == o.country_code &&
|
780
|
+
email == o.email &&
|
657
781
|
account_number == o.account_number &&
|
658
782
|
office_code == o.office_code &&
|
783
|
+
non_us_province == o.non_us_province &&
|
784
|
+
country_code == o.country_code &&
|
785
|
+
federal_efile_date == o.federal_efile_date &&
|
786
|
+
postal_mail == o.postal_mail &&
|
787
|
+
state_efile_date == o.state_efile_date &&
|
788
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
789
|
+
tin_match == o.tin_match &&
|
790
|
+
no_tin == o.no_tin &&
|
791
|
+
address_verification == o.address_verification &&
|
792
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
793
|
+
second_tin_notice == o.second_tin_notice &&
|
794
|
+
federal_efile_status == o.federal_efile_status &&
|
795
|
+
state_efile_status == o.state_efile_status &&
|
796
|
+
postal_mail_status == o.postal_mail_status &&
|
797
|
+
tin_match_status == o.tin_match_status &&
|
798
|
+
address_verification_status == o.address_verification_status &&
|
799
|
+
e_delivery_status == o.e_delivery_status &&
|
659
800
|
validation_errors == o.validation_errors &&
|
660
801
|
created_at == o.created_at &&
|
661
|
-
updated_at == o.updated_at
|
662
|
-
state_and_local_withholding == o.state_and_local_withholding
|
802
|
+
updated_at == o.updated_at
|
663
803
|
end
|
664
804
|
|
665
805
|
# @see the `==` method
|
@@ -671,7 +811,7 @@ module AvalaraSdk::A1099::V2
|
|
671
811
|
# Calculates hash code according to all attributes.
|
672
812
|
# @return [Integer] Hash code
|
673
813
|
def hash
|
674
|
-
[
|
814
|
+
[gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, date_of_payment, 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
|
675
815
|
end
|
676
816
|
|
677
817
|
# Builds the object from hash
|