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