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,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
|
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
|
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
|
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
|
+
# Type of TIN (Tax ID 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 for this form
|
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 for this form
|
142
|
+
attr_accessor :state_efile_date
|
99
143
|
|
100
|
-
|
144
|
+
# Date when recipient e-delivery should be scheduled for this form
|
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
|
163
|
+
attr_accessor :federal_efile_status
|
113
164
|
|
114
|
-
|
165
|
+
# State e-file status
|
166
|
+
attr_accessor :state_efile_status
|
115
167
|
|
116
|
-
|
168
|
+
# Postal mail to recipient status
|
169
|
+
attr_accessor :postal_mail_status
|
117
170
|
|
118
|
-
|
171
|
+
# TIN Match status
|
172
|
+
attr_accessor :tin_match_status
|
119
173
|
|
174
|
+
# Address verification status
|
175
|
+
attr_accessor :address_verification_status
|
176
|
+
|
177
|
+
# EDelivery status
|
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,41 @@ 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
|
+
:'federal_efile_status',
|
395
|
+
:'state_efile_status',
|
396
|
+
:'postal_mail_status',
|
397
|
+
:'tin_match_status',
|
398
|
+
:'address_verification_status',
|
399
|
+
:'e_delivery_status',
|
304
400
|
:'validation_errors',
|
305
|
-
:'state_and_local_withholding'
|
306
401
|
])
|
307
402
|
end
|
308
403
|
|
@@ -404,12 +499,14 @@ module AvalaraSdk::A1099::V2
|
|
404
499
|
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
405
500
|
end
|
406
501
|
|
407
|
-
if attributes.key?(:'id')
|
408
|
-
self.id = attributes[:'id']
|
409
|
-
end
|
410
|
-
|
411
502
|
if attributes.key?(:'type')
|
412
503
|
self.type = attributes[:'type']
|
504
|
+
else
|
505
|
+
self.type = nil
|
506
|
+
end
|
507
|
+
|
508
|
+
if attributes.key?(:'id')
|
509
|
+
self.id = attributes[:'id']
|
413
510
|
end
|
414
511
|
|
415
512
|
if attributes.key?(:'issuer_id')
|
@@ -428,118 +525,134 @@ module AvalaraSdk::A1099::V2
|
|
428
525
|
self.tax_year = attributes[:'tax_year']
|
429
526
|
end
|
430
527
|
|
431
|
-
if attributes.key?(:'
|
432
|
-
self.
|
528
|
+
if attributes.key?(:'reference_id')
|
529
|
+
self.reference_id = attributes[:'reference_id']
|
433
530
|
end
|
434
531
|
|
435
|
-
if attributes.key?(:'
|
436
|
-
self.
|
532
|
+
if attributes.key?(:'tin')
|
533
|
+
self.tin = attributes[:'tin']
|
437
534
|
end
|
438
535
|
|
439
|
-
if attributes.key?(:'
|
440
|
-
self.
|
536
|
+
if attributes.key?(:'recipient_name')
|
537
|
+
self.recipient_name = attributes[:'recipient_name']
|
538
|
+
else
|
539
|
+
self.recipient_name = nil
|
441
540
|
end
|
442
541
|
|
443
|
-
if attributes.key?(:'
|
444
|
-
|
445
|
-
self.state_efile_status = value
|
446
|
-
end
|
542
|
+
if attributes.key?(:'tin_type')
|
543
|
+
self.tin_type = attributes[:'tin_type']
|
447
544
|
end
|
448
545
|
|
449
|
-
if attributes.key?(:'
|
450
|
-
self.
|
546
|
+
if attributes.key?(:'recipient_second_name')
|
547
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
451
548
|
end
|
452
549
|
|
453
|
-
if attributes.key?(:'
|
454
|
-
self.
|
550
|
+
if attributes.key?(:'address')
|
551
|
+
self.address = attributes[:'address']
|
552
|
+
else
|
553
|
+
self.address = nil
|
455
554
|
end
|
456
555
|
|
457
|
-
if attributes.key?(:'
|
458
|
-
self.
|
556
|
+
if attributes.key?(:'address2')
|
557
|
+
self.address2 = attributes[:'address2']
|
459
558
|
end
|
460
559
|
|
461
|
-
if attributes.key?(:'
|
462
|
-
self.
|
560
|
+
if attributes.key?(:'city')
|
561
|
+
self.city = attributes[:'city']
|
562
|
+
else
|
563
|
+
self.city = nil
|
463
564
|
end
|
464
565
|
|
465
|
-
if attributes.key?(:'
|
466
|
-
self.
|
566
|
+
if attributes.key?(:'state')
|
567
|
+
self.state = attributes[:'state']
|
467
568
|
end
|
468
569
|
|
469
|
-
if attributes.key?(:'
|
470
|
-
self.
|
570
|
+
if attributes.key?(:'zip')
|
571
|
+
self.zip = attributes[:'zip']
|
471
572
|
end
|
472
573
|
|
473
|
-
if attributes.key?(:'
|
474
|
-
self.
|
574
|
+
if attributes.key?(:'email')
|
575
|
+
self.email = attributes[:'email']
|
475
576
|
end
|
476
577
|
|
477
|
-
if attributes.key?(:'
|
478
|
-
self.
|
578
|
+
if attributes.key?(:'account_number')
|
579
|
+
self.account_number = attributes[:'account_number']
|
479
580
|
end
|
480
581
|
|
481
|
-
if attributes.key?(:'
|
482
|
-
self.
|
582
|
+
if attributes.key?(:'office_code')
|
583
|
+
self.office_code = attributes[:'office_code']
|
483
584
|
end
|
484
585
|
|
485
|
-
if attributes.key?(:'
|
486
|
-
self.
|
586
|
+
if attributes.key?(:'non_us_province')
|
587
|
+
self.non_us_province = attributes[:'non_us_province']
|
487
588
|
end
|
488
589
|
|
489
|
-
if attributes.key?(:'
|
490
|
-
self.
|
590
|
+
if attributes.key?(:'country_code')
|
591
|
+
self.country_code = attributes[:'country_code']
|
592
|
+
else
|
593
|
+
self.country_code = nil
|
491
594
|
end
|
492
595
|
|
493
|
-
if attributes.key?(:'
|
494
|
-
self.
|
596
|
+
if attributes.key?(:'federal_efile_date')
|
597
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
495
598
|
end
|
496
599
|
|
497
|
-
if attributes.key?(:'
|
498
|
-
self.
|
600
|
+
if attributes.key?(:'postal_mail')
|
601
|
+
self.postal_mail = attributes[:'postal_mail']
|
499
602
|
end
|
500
603
|
|
501
|
-
if attributes.key?(:'
|
502
|
-
self.
|
604
|
+
if attributes.key?(:'state_efile_date')
|
605
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
503
606
|
end
|
504
607
|
|
505
|
-
if attributes.key?(:'
|
506
|
-
self.
|
608
|
+
if attributes.key?(:'recipient_edelivery_date')
|
609
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
507
610
|
end
|
508
611
|
|
509
|
-
if attributes.key?(:'
|
510
|
-
self.
|
612
|
+
if attributes.key?(:'tin_match')
|
613
|
+
self.tin_match = attributes[:'tin_match']
|
511
614
|
end
|
512
615
|
|
513
|
-
if attributes.key?(:'
|
514
|
-
self.
|
616
|
+
if attributes.key?(:'no_tin')
|
617
|
+
self.no_tin = attributes[:'no_tin']
|
515
618
|
end
|
516
619
|
|
517
|
-
if attributes.key?(:'
|
518
|
-
self.
|
620
|
+
if attributes.key?(:'address_verification')
|
621
|
+
self.address_verification = attributes[:'address_verification']
|
519
622
|
end
|
520
623
|
|
521
|
-
if attributes.key?(:'
|
522
|
-
self.
|
624
|
+
if attributes.key?(:'state_and_local_withholding')
|
625
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
523
626
|
end
|
524
627
|
|
525
|
-
if attributes.key?(:'
|
526
|
-
self.
|
628
|
+
if attributes.key?(:'second_tin_notice')
|
629
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
527
630
|
end
|
528
631
|
|
529
|
-
if attributes.key?(:'
|
530
|
-
self.
|
632
|
+
if attributes.key?(:'federal_efile_status')
|
633
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
531
634
|
end
|
532
635
|
|
533
|
-
if attributes.key?(:'
|
534
|
-
|
636
|
+
if attributes.key?(:'state_efile_status')
|
637
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
638
|
+
self.state_efile_status = value
|
639
|
+
end
|
535
640
|
end
|
536
641
|
|
537
|
-
if attributes.key?(:'
|
538
|
-
self.
|
642
|
+
if attributes.key?(:'postal_mail_status')
|
643
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
539
644
|
end
|
540
645
|
|
541
|
-
if attributes.key?(:'
|
542
|
-
self.
|
646
|
+
if attributes.key?(:'tin_match_status')
|
647
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
648
|
+
end
|
649
|
+
|
650
|
+
if attributes.key?(:'address_verification_status')
|
651
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
652
|
+
end
|
653
|
+
|
654
|
+
if attributes.key?(:'e_delivery_status')
|
655
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
543
656
|
end
|
544
657
|
|
545
658
|
if attributes.key?(:'validation_errors')
|
@@ -555,10 +668,6 @@ module AvalaraSdk::A1099::V2
|
|
555
668
|
if attributes.key?(:'updated_at')
|
556
669
|
self.updated_at = attributes[:'updated_at']
|
557
670
|
end
|
558
|
-
|
559
|
-
if attributes.key?(:'state_and_local_withholding')
|
560
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
561
|
-
end
|
562
671
|
end
|
563
672
|
|
564
673
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -566,6 +675,10 @@ module AvalaraSdk::A1099::V2
|
|
566
675
|
def list_invalid_properties
|
567
676
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
568
677
|
invalid_properties = Array.new
|
678
|
+
if @type.nil?
|
679
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
680
|
+
end
|
681
|
+
|
569
682
|
invalid_properties
|
570
683
|
end
|
571
684
|
|
@@ -573,9 +686,34 @@ module AvalaraSdk::A1099::V2
|
|
573
686
|
# @return true if the model is valid
|
574
687
|
def valid?
|
575
688
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
689
|
+
return false if @type.nil?
|
690
|
+
type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
691
|
+
return false unless type_validator.valid?(@type)
|
692
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
693
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
576
694
|
true
|
577
695
|
end
|
578
696
|
|
697
|
+
# Custom attribute writer method checking allowed values (enum).
|
698
|
+
# @param [Object] type Object to be assigned
|
699
|
+
def type=(type)
|
700
|
+
validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C", "1099-INT"])
|
701
|
+
unless validator.valid?(type)
|
702
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
703
|
+
end
|
704
|
+
@type = type
|
705
|
+
end
|
706
|
+
|
707
|
+
# Custom attribute writer method checking allowed values (enum).
|
708
|
+
# @param [Object] tin_type Object to be assigned
|
709
|
+
def tin_type=(tin_type)
|
710
|
+
validator = EnumAttributeValidator.new('String', ["Empty", "EIN", "SSN", "ITIN", "ATIN"])
|
711
|
+
unless validator.valid?(tin_type)
|
712
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
713
|
+
end
|
714
|
+
@tin_type = tin_type
|
715
|
+
end
|
716
|
+
|
579
717
|
# Custom attribute writer method with validation
|
580
718
|
# @param [Object] state_efile_status Value to be assigned
|
581
719
|
def state_efile_status=(state_efile_status)
|
@@ -612,44 +750,45 @@ module AvalaraSdk::A1099::V2
|
|
612
750
|
exempt_interest_dividends == o.exempt_interest_dividends &&
|
613
751
|
specified_private_activity_bond_interest_dividends == o.specified_private_activity_bond_interest_dividends &&
|
614
752
|
fatca_filing_requirement == o.fatca_filing_requirement &&
|
615
|
-
id == o.id &&
|
616
753
|
type == o.type &&
|
754
|
+
id == o.id &&
|
617
755
|
issuer_id == o.issuer_id &&
|
618
756
|
issuer_reference_id == o.issuer_reference_id &&
|
619
757
|
issuer_tin == o.issuer_tin &&
|
620
758
|
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
759
|
reference_id == o.reference_id &&
|
633
|
-
email == o.email &&
|
634
|
-
tin_type == o.tin_type &&
|
635
760
|
tin == o.tin &&
|
636
|
-
no_tin == o.no_tin &&
|
637
|
-
second_tin_notice == o.second_tin_notice &&
|
638
761
|
recipient_name == o.recipient_name &&
|
762
|
+
tin_type == o.tin_type &&
|
639
763
|
recipient_second_name == o.recipient_second_name &&
|
640
764
|
address == o.address &&
|
641
765
|
address2 == o.address2 &&
|
642
766
|
city == o.city &&
|
643
767
|
state == o.state &&
|
644
768
|
zip == o.zip &&
|
645
|
-
|
646
|
-
country_code == o.country_code &&
|
769
|
+
email == o.email &&
|
647
770
|
account_number == o.account_number &&
|
648
771
|
office_code == o.office_code &&
|
772
|
+
non_us_province == o.non_us_province &&
|
773
|
+
country_code == o.country_code &&
|
774
|
+
federal_efile_date == o.federal_efile_date &&
|
775
|
+
postal_mail == o.postal_mail &&
|
776
|
+
state_efile_date == o.state_efile_date &&
|
777
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
778
|
+
tin_match == o.tin_match &&
|
779
|
+
no_tin == o.no_tin &&
|
780
|
+
address_verification == o.address_verification &&
|
781
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
782
|
+
second_tin_notice == o.second_tin_notice &&
|
783
|
+
federal_efile_status == o.federal_efile_status &&
|
784
|
+
state_efile_status == o.state_efile_status &&
|
785
|
+
postal_mail_status == o.postal_mail_status &&
|
786
|
+
tin_match_status == o.tin_match_status &&
|
787
|
+
address_verification_status == o.address_verification_status &&
|
788
|
+
e_delivery_status == o.e_delivery_status &&
|
649
789
|
validation_errors == o.validation_errors &&
|
650
790
|
created_at == o.created_at &&
|
651
|
-
updated_at == o.updated_at
|
652
|
-
state_and_local_withholding == o.state_and_local_withholding
|
791
|
+
updated_at == o.updated_at
|
653
792
|
end
|
654
793
|
|
655
794
|
# @see the `==` method
|
@@ -661,7 +800,7 @@ module AvalaraSdk::A1099::V2
|
|
661
800
|
# Calculates hash code according to all attributes.
|
662
801
|
# @return [Integer] Hash code
|
663
802
|
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,
|
803
|
+
[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
804
|
end
|
666
805
|
|
667
806
|
# Builds the object from hash
|