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