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
@@ -1,887 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Avalara 1099 & W-9 API Definition
|
3
|
-
|
4
|
-
### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget)
|
5
|
-
|
6
|
-
|
7
|
-
=end
|
8
|
-
|
9
|
-
require 'date'
|
10
|
-
require 'time'
|
11
|
-
|
12
|
-
module AvalaraSdk::A1099::V2
|
13
|
-
class Form1099IntListItemResponse
|
14
|
-
# Interest Income
|
15
|
-
attr_accessor :interest_income
|
16
|
-
|
17
|
-
# Early withdrawal penalty
|
18
|
-
attr_accessor :early_withdrawal_penalty
|
19
|
-
|
20
|
-
# Interest on U.S. Savings Bonds and Treasury obligations
|
21
|
-
attr_accessor :us_savings_bonds_interest
|
22
|
-
|
23
|
-
# Federal income tax withheld
|
24
|
-
attr_accessor :federal_income_tax_withheld
|
25
|
-
|
26
|
-
# Investment expenses
|
27
|
-
attr_accessor :investment_expenses
|
28
|
-
|
29
|
-
# Foreign tax paid
|
30
|
-
attr_accessor :foreign_tax_paid
|
31
|
-
|
32
|
-
# Foreign country or U.S. possession
|
33
|
-
attr_accessor :foreign_country
|
34
|
-
|
35
|
-
# Tax-exempt interest
|
36
|
-
attr_accessor :tax_exempt_interest
|
37
|
-
|
38
|
-
# Specified private activity bond interest
|
39
|
-
attr_accessor :specified_private_activity_bond_interest
|
40
|
-
|
41
|
-
# Market discount
|
42
|
-
attr_accessor :market_discount
|
43
|
-
|
44
|
-
# Bond premium
|
45
|
-
attr_accessor :bond_premium
|
46
|
-
|
47
|
-
# Bond premium on Treasury obligations
|
48
|
-
attr_accessor :bond_premium_on_treasury_obligations
|
49
|
-
|
50
|
-
# Bond premium on tax exempt bond
|
51
|
-
attr_accessor :bond_premium_on_tax_exempt_bond
|
52
|
-
|
53
|
-
# Tax exempt bond CUSIP number
|
54
|
-
attr_accessor :tax_exempt_bond_cusip_number
|
55
|
-
|
56
|
-
# ID of the form
|
57
|
-
attr_accessor :id
|
58
|
-
|
59
|
-
# Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC
|
60
|
-
attr_accessor :type
|
61
|
-
|
62
|
-
# Issuer ID
|
63
|
-
attr_accessor :issuer_id
|
64
|
-
|
65
|
-
# Issuer Reference ID
|
66
|
-
attr_accessor :issuer_reference_id
|
67
|
-
|
68
|
-
# Issuer TIN
|
69
|
-
attr_accessor :issuer_tin
|
70
|
-
|
71
|
-
# Tax year
|
72
|
-
attr_accessor :tax_year
|
73
|
-
|
74
|
-
# Boolean indicating that federal e-filing has been scheduled for this form
|
75
|
-
attr_accessor :federal_efile
|
76
|
-
|
77
|
-
# Federal e-file status
|
78
|
-
attr_accessor :federal_efile_status
|
79
|
-
|
80
|
-
# Boolean indicating that state e-filing has been scheduled for this form
|
81
|
-
attr_accessor :state_efile
|
82
|
-
|
83
|
-
# State e-file status
|
84
|
-
attr_accessor :state_efile_status
|
85
|
-
|
86
|
-
# Boolean indicating that postal mailing to the recipient has been scheduled for this form
|
87
|
-
attr_accessor :postal_mail
|
88
|
-
|
89
|
-
# Postal mail to recipient status
|
90
|
-
attr_accessor :postal_mail_status
|
91
|
-
|
92
|
-
# Boolean indicating that TIN Matching has been scheduled for this form
|
93
|
-
attr_accessor :tin_match
|
94
|
-
|
95
|
-
# TIN Match status
|
96
|
-
attr_accessor :tin_match_status
|
97
|
-
|
98
|
-
# Boolean indicating that address verification has been scheduled for this form
|
99
|
-
attr_accessor :address_verification
|
100
|
-
|
101
|
-
# Address verification status
|
102
|
-
attr_accessor :address_verification_status
|
103
|
-
|
104
|
-
# EDelivery status
|
105
|
-
attr_accessor :e_delivery_status
|
106
|
-
|
107
|
-
# Reference ID
|
108
|
-
attr_accessor :reference_id
|
109
|
-
|
110
|
-
# Recipient email address
|
111
|
-
attr_accessor :email
|
112
|
-
|
113
|
-
# Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN
|
114
|
-
attr_accessor :tin_type
|
115
|
-
|
116
|
-
# Recipient Tax ID Number
|
117
|
-
attr_accessor :tin
|
118
|
-
|
119
|
-
# Indicates whether the recipient has no TIN
|
120
|
-
attr_accessor :no_tin
|
121
|
-
|
122
|
-
# Second Tin Notice
|
123
|
-
attr_accessor :second_tin_notice
|
124
|
-
|
125
|
-
# Recipient name
|
126
|
-
attr_accessor :recipient_name
|
127
|
-
|
128
|
-
# Recipient second name
|
129
|
-
attr_accessor :recipient_second_name
|
130
|
-
|
131
|
-
# Address
|
132
|
-
attr_accessor :address
|
133
|
-
|
134
|
-
# Address line 2
|
135
|
-
attr_accessor :address2
|
136
|
-
|
137
|
-
# City
|
138
|
-
attr_accessor :city
|
139
|
-
|
140
|
-
# US state
|
141
|
-
attr_accessor :state
|
142
|
-
|
143
|
-
# Zip/postal code
|
144
|
-
attr_accessor :zip
|
145
|
-
|
146
|
-
# Foreign province
|
147
|
-
attr_accessor :non_us_province
|
148
|
-
|
149
|
-
# Country code, as defined at https://www.irs.gov/e-file-providers/country-codes
|
150
|
-
attr_accessor :country_code
|
151
|
-
|
152
|
-
# Account Number
|
153
|
-
attr_accessor :account_number
|
154
|
-
|
155
|
-
# Office Code
|
156
|
-
attr_accessor :office_code
|
157
|
-
|
158
|
-
# FATCA filing requirement
|
159
|
-
attr_accessor :fatca_filing_requirement
|
160
|
-
|
161
|
-
# Validation errors
|
162
|
-
attr_accessor :validation_errors
|
163
|
-
|
164
|
-
# Creation time
|
165
|
-
attr_accessor :created_at
|
166
|
-
|
167
|
-
# Update time
|
168
|
-
attr_accessor :updated_at
|
169
|
-
|
170
|
-
attr_accessor :state_and_local_withholding
|
171
|
-
|
172
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
173
|
-
def self.attribute_map
|
174
|
-
{
|
175
|
-
:'interest_income' => :'interestIncome',
|
176
|
-
:'early_withdrawal_penalty' => :'earlyWithdrawalPenalty',
|
177
|
-
:'us_savings_bonds_interest' => :'usSavingsBondsInterest',
|
178
|
-
:'federal_income_tax_withheld' => :'federalIncomeTaxWithheld',
|
179
|
-
:'investment_expenses' => :'investmentExpenses',
|
180
|
-
:'foreign_tax_paid' => :'foreignTaxPaid',
|
181
|
-
:'foreign_country' => :'foreignCountry',
|
182
|
-
:'tax_exempt_interest' => :'taxExemptInterest',
|
183
|
-
:'specified_private_activity_bond_interest' => :'specifiedPrivateActivityBondInterest',
|
184
|
-
:'market_discount' => :'marketDiscount',
|
185
|
-
:'bond_premium' => :'bondPremium',
|
186
|
-
:'bond_premium_on_treasury_obligations' => :'bondPremiumOnTreasuryObligations',
|
187
|
-
:'bond_premium_on_tax_exempt_bond' => :'bondPremiumOnTaxExemptBond',
|
188
|
-
:'tax_exempt_bond_cusip_number' => :'taxExemptBondCusipNumber',
|
189
|
-
:'id' => :'id',
|
190
|
-
:'type' => :'type',
|
191
|
-
:'issuer_id' => :'issuerId',
|
192
|
-
:'issuer_reference_id' => :'issuerReferenceId',
|
193
|
-
:'issuer_tin' => :'issuerTin',
|
194
|
-
:'tax_year' => :'taxYear',
|
195
|
-
:'federal_efile' => :'federalEfile',
|
196
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
197
|
-
:'state_efile' => :'stateEfile',
|
198
|
-
:'state_efile_status' => :'stateEfileStatus',
|
199
|
-
:'postal_mail' => :'postalMail',
|
200
|
-
:'postal_mail_status' => :'postalMailStatus',
|
201
|
-
:'tin_match' => :'tinMatch',
|
202
|
-
:'tin_match_status' => :'tinMatchStatus',
|
203
|
-
:'address_verification' => :'addressVerification',
|
204
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
205
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
206
|
-
:'reference_id' => :'referenceId',
|
207
|
-
:'email' => :'email',
|
208
|
-
:'tin_type' => :'tinType',
|
209
|
-
:'tin' => :'tin',
|
210
|
-
:'no_tin' => :'noTin',
|
211
|
-
:'second_tin_notice' => :'secondTinNotice',
|
212
|
-
:'recipient_name' => :'recipientName',
|
213
|
-
:'recipient_second_name' => :'recipientSecondName',
|
214
|
-
:'address' => :'address',
|
215
|
-
:'address2' => :'address2',
|
216
|
-
:'city' => :'city',
|
217
|
-
:'state' => :'state',
|
218
|
-
:'zip' => :'zip',
|
219
|
-
:'non_us_province' => :'nonUsProvince',
|
220
|
-
:'country_code' => :'countryCode',
|
221
|
-
:'account_number' => :'accountNumber',
|
222
|
-
:'office_code' => :'officeCode',
|
223
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
224
|
-
:'validation_errors' => :'validationErrors',
|
225
|
-
:'created_at' => :'createdAt',
|
226
|
-
:'updated_at' => :'updatedAt',
|
227
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
228
|
-
}
|
229
|
-
end
|
230
|
-
|
231
|
-
# Returns all the JSON keys this model knows about
|
232
|
-
def self.acceptable_attributes
|
233
|
-
attribute_map.values
|
234
|
-
end
|
235
|
-
|
236
|
-
# Attribute type mapping.
|
237
|
-
def self.openapi_types
|
238
|
-
{
|
239
|
-
:'interest_income' => :'Float',
|
240
|
-
:'early_withdrawal_penalty' => :'Float',
|
241
|
-
:'us_savings_bonds_interest' => :'Float',
|
242
|
-
:'federal_income_tax_withheld' => :'Float',
|
243
|
-
:'investment_expenses' => :'Float',
|
244
|
-
:'foreign_tax_paid' => :'Float',
|
245
|
-
:'foreign_country' => :'String',
|
246
|
-
:'tax_exempt_interest' => :'Float',
|
247
|
-
:'specified_private_activity_bond_interest' => :'Float',
|
248
|
-
:'market_discount' => :'Float',
|
249
|
-
:'bond_premium' => :'Float',
|
250
|
-
:'bond_premium_on_treasury_obligations' => :'Float',
|
251
|
-
:'bond_premium_on_tax_exempt_bond' => :'Float',
|
252
|
-
:'tax_exempt_bond_cusip_number' => :'String',
|
253
|
-
:'id' => :'String',
|
254
|
-
:'type' => :'String',
|
255
|
-
:'issuer_id' => :'Integer',
|
256
|
-
:'issuer_reference_id' => :'String',
|
257
|
-
:'issuer_tin' => :'String',
|
258
|
-
:'tax_year' => :'Integer',
|
259
|
-
:'federal_efile' => :'Boolean',
|
260
|
-
:'federal_efile_status' => :'StatusDetail',
|
261
|
-
:'state_efile' => :'Boolean',
|
262
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetailResponse>',
|
263
|
-
:'postal_mail' => :'Boolean',
|
264
|
-
:'postal_mail_status' => :'StatusDetail',
|
265
|
-
:'tin_match' => :'Boolean',
|
266
|
-
:'tin_match_status' => :'StatusDetail',
|
267
|
-
:'address_verification' => :'Boolean',
|
268
|
-
:'address_verification_status' => :'StatusDetail',
|
269
|
-
:'e_delivery_status' => :'StatusDetail',
|
270
|
-
:'reference_id' => :'String',
|
271
|
-
:'email' => :'String',
|
272
|
-
:'tin_type' => :'String',
|
273
|
-
:'tin' => :'String',
|
274
|
-
:'no_tin' => :'Boolean',
|
275
|
-
:'second_tin_notice' => :'Boolean',
|
276
|
-
:'recipient_name' => :'String',
|
277
|
-
:'recipient_second_name' => :'String',
|
278
|
-
:'address' => :'String',
|
279
|
-
:'address2' => :'String',
|
280
|
-
:'city' => :'String',
|
281
|
-
:'state' => :'String',
|
282
|
-
:'zip' => :'String',
|
283
|
-
:'non_us_province' => :'String',
|
284
|
-
:'country_code' => :'String',
|
285
|
-
:'account_number' => :'String',
|
286
|
-
:'office_code' => :'String',
|
287
|
-
:'fatca_filing_requirement' => :'Boolean',
|
288
|
-
:'validation_errors' => :'Array<ValidationErrorResponse>',
|
289
|
-
:'created_at' => :'Time',
|
290
|
-
:'updated_at' => :'Time',
|
291
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholdingResponse'
|
292
|
-
}
|
293
|
-
end
|
294
|
-
|
295
|
-
# List of attributes with nullable: true
|
296
|
-
def self.openapi_nullable
|
297
|
-
Set.new([
|
298
|
-
:'interest_income',
|
299
|
-
:'early_withdrawal_penalty',
|
300
|
-
:'us_savings_bonds_interest',
|
301
|
-
:'federal_income_tax_withheld',
|
302
|
-
:'investment_expenses',
|
303
|
-
:'foreign_tax_paid',
|
304
|
-
:'foreign_country',
|
305
|
-
:'tax_exempt_interest',
|
306
|
-
:'specified_private_activity_bond_interest',
|
307
|
-
:'market_discount',
|
308
|
-
:'bond_premium',
|
309
|
-
:'bond_premium_on_treasury_obligations',
|
310
|
-
:'bond_premium_on_tax_exempt_bond',
|
311
|
-
:'tax_exempt_bond_cusip_number',
|
312
|
-
:'issuer_reference_id',
|
313
|
-
:'issuer_tin',
|
314
|
-
:'state_efile_status',
|
315
|
-
:'postal_mail_status',
|
316
|
-
:'tin_match_status',
|
317
|
-
:'address_verification_status',
|
318
|
-
:'e_delivery_status',
|
319
|
-
:'reference_id',
|
320
|
-
:'email',
|
321
|
-
:'tin_type',
|
322
|
-
:'tin',
|
323
|
-
:'second_tin_notice',
|
324
|
-
:'recipient_name',
|
325
|
-
:'recipient_second_name',
|
326
|
-
:'address',
|
327
|
-
:'address2',
|
328
|
-
:'city',
|
329
|
-
:'state',
|
330
|
-
:'zip',
|
331
|
-
:'non_us_province',
|
332
|
-
:'country_code',
|
333
|
-
:'account_number',
|
334
|
-
:'office_code',
|
335
|
-
:'fatca_filing_requirement',
|
336
|
-
:'validation_errors',
|
337
|
-
:'state_and_local_withholding'
|
338
|
-
])
|
339
|
-
end
|
340
|
-
|
341
|
-
# List of class defined in allOf (OpenAPI v3)
|
342
|
-
def self.openapi_all_of
|
343
|
-
[
|
344
|
-
:'Form1099BaseResponse'
|
345
|
-
]
|
346
|
-
end
|
347
|
-
|
348
|
-
# Initializes the object
|
349
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
350
|
-
def initialize(attributes = {})
|
351
|
-
if (!attributes.is_a?(Hash))
|
352
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1099IntListItemResponse` initialize method"
|
353
|
-
end
|
354
|
-
|
355
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
356
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
357
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
358
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1099IntListItemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
359
|
-
end
|
360
|
-
h[k.to_sym] = v
|
361
|
-
}
|
362
|
-
|
363
|
-
if attributes.key?(:'interest_income')
|
364
|
-
self.interest_income = attributes[:'interest_income']
|
365
|
-
end
|
366
|
-
|
367
|
-
if attributes.key?(:'early_withdrawal_penalty')
|
368
|
-
self.early_withdrawal_penalty = attributes[:'early_withdrawal_penalty']
|
369
|
-
end
|
370
|
-
|
371
|
-
if attributes.key?(:'us_savings_bonds_interest')
|
372
|
-
self.us_savings_bonds_interest = attributes[:'us_savings_bonds_interest']
|
373
|
-
end
|
374
|
-
|
375
|
-
if attributes.key?(:'federal_income_tax_withheld')
|
376
|
-
self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
|
377
|
-
end
|
378
|
-
|
379
|
-
if attributes.key?(:'investment_expenses')
|
380
|
-
self.investment_expenses = attributes[:'investment_expenses']
|
381
|
-
end
|
382
|
-
|
383
|
-
if attributes.key?(:'foreign_tax_paid')
|
384
|
-
self.foreign_tax_paid = attributes[:'foreign_tax_paid']
|
385
|
-
end
|
386
|
-
|
387
|
-
if attributes.key?(:'foreign_country')
|
388
|
-
self.foreign_country = attributes[:'foreign_country']
|
389
|
-
end
|
390
|
-
|
391
|
-
if attributes.key?(:'tax_exempt_interest')
|
392
|
-
self.tax_exempt_interest = attributes[:'tax_exempt_interest']
|
393
|
-
end
|
394
|
-
|
395
|
-
if attributes.key?(:'specified_private_activity_bond_interest')
|
396
|
-
self.specified_private_activity_bond_interest = attributes[:'specified_private_activity_bond_interest']
|
397
|
-
end
|
398
|
-
|
399
|
-
if attributes.key?(:'market_discount')
|
400
|
-
self.market_discount = attributes[:'market_discount']
|
401
|
-
end
|
402
|
-
|
403
|
-
if attributes.key?(:'bond_premium')
|
404
|
-
self.bond_premium = attributes[:'bond_premium']
|
405
|
-
end
|
406
|
-
|
407
|
-
if attributes.key?(:'bond_premium_on_treasury_obligations')
|
408
|
-
self.bond_premium_on_treasury_obligations = attributes[:'bond_premium_on_treasury_obligations']
|
409
|
-
end
|
410
|
-
|
411
|
-
if attributes.key?(:'bond_premium_on_tax_exempt_bond')
|
412
|
-
self.bond_premium_on_tax_exempt_bond = attributes[:'bond_premium_on_tax_exempt_bond']
|
413
|
-
end
|
414
|
-
|
415
|
-
if attributes.key?(:'tax_exempt_bond_cusip_number')
|
416
|
-
self.tax_exempt_bond_cusip_number = attributes[:'tax_exempt_bond_cusip_number']
|
417
|
-
end
|
418
|
-
|
419
|
-
if attributes.key?(:'id')
|
420
|
-
self.id = attributes[:'id']
|
421
|
-
else
|
422
|
-
self.id = nil
|
423
|
-
end
|
424
|
-
|
425
|
-
if attributes.key?(:'type')
|
426
|
-
self.type = attributes[:'type']
|
427
|
-
else
|
428
|
-
self.type = nil
|
429
|
-
end
|
430
|
-
|
431
|
-
if attributes.key?(:'issuer_id')
|
432
|
-
self.issuer_id = attributes[:'issuer_id']
|
433
|
-
else
|
434
|
-
self.issuer_id = nil
|
435
|
-
end
|
436
|
-
|
437
|
-
if attributes.key?(:'issuer_reference_id')
|
438
|
-
self.issuer_reference_id = attributes[:'issuer_reference_id']
|
439
|
-
end
|
440
|
-
|
441
|
-
if attributes.key?(:'issuer_tin')
|
442
|
-
self.issuer_tin = attributes[:'issuer_tin']
|
443
|
-
end
|
444
|
-
|
445
|
-
if attributes.key?(:'tax_year')
|
446
|
-
self.tax_year = attributes[:'tax_year']
|
447
|
-
end
|
448
|
-
|
449
|
-
if attributes.key?(:'federal_efile')
|
450
|
-
self.federal_efile = attributes[:'federal_efile']
|
451
|
-
else
|
452
|
-
self.federal_efile = nil
|
453
|
-
end
|
454
|
-
|
455
|
-
if attributes.key?(:'federal_efile_status')
|
456
|
-
self.federal_efile_status = attributes[:'federal_efile_status']
|
457
|
-
end
|
458
|
-
|
459
|
-
if attributes.key?(:'state_efile')
|
460
|
-
self.state_efile = attributes[:'state_efile']
|
461
|
-
else
|
462
|
-
self.state_efile = nil
|
463
|
-
end
|
464
|
-
|
465
|
-
if attributes.key?(:'state_efile_status')
|
466
|
-
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
467
|
-
self.state_efile_status = value
|
468
|
-
end
|
469
|
-
end
|
470
|
-
|
471
|
-
if attributes.key?(:'postal_mail')
|
472
|
-
self.postal_mail = attributes[:'postal_mail']
|
473
|
-
else
|
474
|
-
self.postal_mail = nil
|
475
|
-
end
|
476
|
-
|
477
|
-
if attributes.key?(:'postal_mail_status')
|
478
|
-
self.postal_mail_status = attributes[:'postal_mail_status']
|
479
|
-
end
|
480
|
-
|
481
|
-
if attributes.key?(:'tin_match')
|
482
|
-
self.tin_match = attributes[:'tin_match']
|
483
|
-
else
|
484
|
-
self.tin_match = nil
|
485
|
-
end
|
486
|
-
|
487
|
-
if attributes.key?(:'tin_match_status')
|
488
|
-
self.tin_match_status = attributes[:'tin_match_status']
|
489
|
-
end
|
490
|
-
|
491
|
-
if attributes.key?(:'address_verification')
|
492
|
-
self.address_verification = attributes[:'address_verification']
|
493
|
-
else
|
494
|
-
self.address_verification = nil
|
495
|
-
end
|
496
|
-
|
497
|
-
if attributes.key?(:'address_verification_status')
|
498
|
-
self.address_verification_status = attributes[:'address_verification_status']
|
499
|
-
end
|
500
|
-
|
501
|
-
if attributes.key?(:'e_delivery_status')
|
502
|
-
self.e_delivery_status = attributes[:'e_delivery_status']
|
503
|
-
end
|
504
|
-
|
505
|
-
if attributes.key?(:'reference_id')
|
506
|
-
self.reference_id = attributes[:'reference_id']
|
507
|
-
end
|
508
|
-
|
509
|
-
if attributes.key?(:'email')
|
510
|
-
self.email = attributes[:'email']
|
511
|
-
end
|
512
|
-
|
513
|
-
if attributes.key?(:'tin_type')
|
514
|
-
self.tin_type = attributes[:'tin_type']
|
515
|
-
end
|
516
|
-
|
517
|
-
if attributes.key?(:'tin')
|
518
|
-
self.tin = attributes[:'tin']
|
519
|
-
end
|
520
|
-
|
521
|
-
if attributes.key?(:'no_tin')
|
522
|
-
self.no_tin = attributes[:'no_tin']
|
523
|
-
end
|
524
|
-
|
525
|
-
if attributes.key?(:'second_tin_notice')
|
526
|
-
self.second_tin_notice = attributes[:'second_tin_notice']
|
527
|
-
end
|
528
|
-
|
529
|
-
if attributes.key?(:'recipient_name')
|
530
|
-
self.recipient_name = attributes[:'recipient_name']
|
531
|
-
end
|
532
|
-
|
533
|
-
if attributes.key?(:'recipient_second_name')
|
534
|
-
self.recipient_second_name = attributes[:'recipient_second_name']
|
535
|
-
end
|
536
|
-
|
537
|
-
if attributes.key?(:'address')
|
538
|
-
self.address = attributes[:'address']
|
539
|
-
end
|
540
|
-
|
541
|
-
if attributes.key?(:'address2')
|
542
|
-
self.address2 = attributes[:'address2']
|
543
|
-
end
|
544
|
-
|
545
|
-
if attributes.key?(:'city')
|
546
|
-
self.city = attributes[:'city']
|
547
|
-
end
|
548
|
-
|
549
|
-
if attributes.key?(:'state')
|
550
|
-
self.state = attributes[:'state']
|
551
|
-
end
|
552
|
-
|
553
|
-
if attributes.key?(:'zip')
|
554
|
-
self.zip = attributes[:'zip']
|
555
|
-
end
|
556
|
-
|
557
|
-
if attributes.key?(:'non_us_province')
|
558
|
-
self.non_us_province = attributes[:'non_us_province']
|
559
|
-
end
|
560
|
-
|
561
|
-
if attributes.key?(:'country_code')
|
562
|
-
self.country_code = attributes[:'country_code']
|
563
|
-
end
|
564
|
-
|
565
|
-
if attributes.key?(:'account_number')
|
566
|
-
self.account_number = attributes[:'account_number']
|
567
|
-
end
|
568
|
-
|
569
|
-
if attributes.key?(:'office_code')
|
570
|
-
self.office_code = attributes[:'office_code']
|
571
|
-
end
|
572
|
-
|
573
|
-
if attributes.key?(:'fatca_filing_requirement')
|
574
|
-
self.fatca_filing_requirement = attributes[:'fatca_filing_requirement']
|
575
|
-
end
|
576
|
-
|
577
|
-
if attributes.key?(:'validation_errors')
|
578
|
-
if (value = attributes[:'validation_errors']).is_a?(Array)
|
579
|
-
self.validation_errors = value
|
580
|
-
end
|
581
|
-
end
|
582
|
-
|
583
|
-
if attributes.key?(:'created_at')
|
584
|
-
self.created_at = attributes[:'created_at']
|
585
|
-
end
|
586
|
-
|
587
|
-
if attributes.key?(:'updated_at')
|
588
|
-
self.updated_at = attributes[:'updated_at']
|
589
|
-
end
|
590
|
-
|
591
|
-
if attributes.key?(:'state_and_local_withholding')
|
592
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
593
|
-
end
|
594
|
-
end
|
595
|
-
|
596
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
597
|
-
# @return Array for valid properties with the reasons
|
598
|
-
def list_invalid_properties
|
599
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
600
|
-
invalid_properties = Array.new
|
601
|
-
if @id.nil?
|
602
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
603
|
-
end
|
604
|
-
|
605
|
-
if @id.to_s.length < 1
|
606
|
-
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
|
607
|
-
end
|
608
|
-
|
609
|
-
if @type.nil?
|
610
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
611
|
-
end
|
612
|
-
|
613
|
-
if @type.to_s.length < 1
|
614
|
-
invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.')
|
615
|
-
end
|
616
|
-
|
617
|
-
if @issuer_id.nil?
|
618
|
-
invalid_properties.push('invalid value for "issuer_id", issuer_id cannot be nil.')
|
619
|
-
end
|
620
|
-
|
621
|
-
if @federal_efile.nil?
|
622
|
-
invalid_properties.push('invalid value for "federal_efile", federal_efile cannot be nil.')
|
623
|
-
end
|
624
|
-
|
625
|
-
if @state_efile.nil?
|
626
|
-
invalid_properties.push('invalid value for "state_efile", state_efile cannot be nil.')
|
627
|
-
end
|
628
|
-
|
629
|
-
if @postal_mail.nil?
|
630
|
-
invalid_properties.push('invalid value for "postal_mail", postal_mail cannot be nil.')
|
631
|
-
end
|
632
|
-
|
633
|
-
if @tin_match.nil?
|
634
|
-
invalid_properties.push('invalid value for "tin_match", tin_match cannot be nil.')
|
635
|
-
end
|
636
|
-
|
637
|
-
if @address_verification.nil?
|
638
|
-
invalid_properties.push('invalid value for "address_verification", address_verification cannot be nil.')
|
639
|
-
end
|
640
|
-
|
641
|
-
invalid_properties
|
642
|
-
end
|
643
|
-
|
644
|
-
# Check to see if the all the properties in the model are valid
|
645
|
-
# @return true if the model is valid
|
646
|
-
def valid?
|
647
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
648
|
-
return false if @id.nil?
|
649
|
-
return false if @id.to_s.length < 1
|
650
|
-
return false if @type.nil?
|
651
|
-
return false if @type.to_s.length < 1
|
652
|
-
return false if @issuer_id.nil?
|
653
|
-
return false if @federal_efile.nil?
|
654
|
-
return false if @state_efile.nil?
|
655
|
-
return false if @postal_mail.nil?
|
656
|
-
return false if @tin_match.nil?
|
657
|
-
return false if @address_verification.nil?
|
658
|
-
true
|
659
|
-
end
|
660
|
-
|
661
|
-
# Custom attribute writer method with validation
|
662
|
-
# @param [Object] id Value to be assigned
|
663
|
-
def id=(id)
|
664
|
-
if id.nil?
|
665
|
-
fail ArgumentError, 'id cannot be nil'
|
666
|
-
end
|
667
|
-
|
668
|
-
if id.to_s.length < 1
|
669
|
-
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
|
670
|
-
end
|
671
|
-
|
672
|
-
@id = id
|
673
|
-
end
|
674
|
-
|
675
|
-
# Custom attribute writer method with validation
|
676
|
-
# @param [Object] type Value to be assigned
|
677
|
-
def type=(type)
|
678
|
-
if type.nil?
|
679
|
-
fail ArgumentError, 'type cannot be nil'
|
680
|
-
end
|
681
|
-
|
682
|
-
if type.to_s.length < 1
|
683
|
-
fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.'
|
684
|
-
end
|
685
|
-
|
686
|
-
@type = type
|
687
|
-
end
|
688
|
-
|
689
|
-
# Custom attribute writer method with validation
|
690
|
-
# @param [Object] state_efile_status Value to be assigned
|
691
|
-
def state_efile_status=(state_efile_status)
|
692
|
-
@state_efile_status = state_efile_status
|
693
|
-
end
|
694
|
-
|
695
|
-
# Custom attribute writer method with validation
|
696
|
-
# @param [Object] validation_errors Value to be assigned
|
697
|
-
def validation_errors=(validation_errors)
|
698
|
-
@validation_errors = validation_errors
|
699
|
-
end
|
700
|
-
|
701
|
-
# Checks equality by comparing each attribute.
|
702
|
-
# @param [Object] Object to be compared
|
703
|
-
def ==(o)
|
704
|
-
return true if self.equal?(o)
|
705
|
-
self.class == o.class &&
|
706
|
-
interest_income == o.interest_income &&
|
707
|
-
early_withdrawal_penalty == o.early_withdrawal_penalty &&
|
708
|
-
us_savings_bonds_interest == o.us_savings_bonds_interest &&
|
709
|
-
federal_income_tax_withheld == o.federal_income_tax_withheld &&
|
710
|
-
investment_expenses == o.investment_expenses &&
|
711
|
-
foreign_tax_paid == o.foreign_tax_paid &&
|
712
|
-
foreign_country == o.foreign_country &&
|
713
|
-
tax_exempt_interest == o.tax_exempt_interest &&
|
714
|
-
specified_private_activity_bond_interest == o.specified_private_activity_bond_interest &&
|
715
|
-
market_discount == o.market_discount &&
|
716
|
-
bond_premium == o.bond_premium &&
|
717
|
-
bond_premium_on_treasury_obligations == o.bond_premium_on_treasury_obligations &&
|
718
|
-
bond_premium_on_tax_exempt_bond == o.bond_premium_on_tax_exempt_bond &&
|
719
|
-
tax_exempt_bond_cusip_number == o.tax_exempt_bond_cusip_number &&
|
720
|
-
id == o.id &&
|
721
|
-
type == o.type &&
|
722
|
-
issuer_id == o.issuer_id &&
|
723
|
-
issuer_reference_id == o.issuer_reference_id &&
|
724
|
-
issuer_tin == o.issuer_tin &&
|
725
|
-
tax_year == o.tax_year &&
|
726
|
-
federal_efile == o.federal_efile &&
|
727
|
-
federal_efile_status == o.federal_efile_status &&
|
728
|
-
state_efile == o.state_efile &&
|
729
|
-
state_efile_status == o.state_efile_status &&
|
730
|
-
postal_mail == o.postal_mail &&
|
731
|
-
postal_mail_status == o.postal_mail_status &&
|
732
|
-
tin_match == o.tin_match &&
|
733
|
-
tin_match_status == o.tin_match_status &&
|
734
|
-
address_verification == o.address_verification &&
|
735
|
-
address_verification_status == o.address_verification_status &&
|
736
|
-
e_delivery_status == o.e_delivery_status &&
|
737
|
-
reference_id == o.reference_id &&
|
738
|
-
email == o.email &&
|
739
|
-
tin_type == o.tin_type &&
|
740
|
-
tin == o.tin &&
|
741
|
-
no_tin == o.no_tin &&
|
742
|
-
second_tin_notice == o.second_tin_notice &&
|
743
|
-
recipient_name == o.recipient_name &&
|
744
|
-
recipient_second_name == o.recipient_second_name &&
|
745
|
-
address == o.address &&
|
746
|
-
address2 == o.address2 &&
|
747
|
-
city == o.city &&
|
748
|
-
state == o.state &&
|
749
|
-
zip == o.zip &&
|
750
|
-
non_us_province == o.non_us_province &&
|
751
|
-
country_code == o.country_code &&
|
752
|
-
account_number == o.account_number &&
|
753
|
-
office_code == o.office_code &&
|
754
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
755
|
-
validation_errors == o.validation_errors &&
|
756
|
-
created_at == o.created_at &&
|
757
|
-
updated_at == o.updated_at &&
|
758
|
-
state_and_local_withholding == o.state_and_local_withholding
|
759
|
-
end
|
760
|
-
|
761
|
-
# @see the `==` method
|
762
|
-
# @param [Object] Object to be compared
|
763
|
-
def eql?(o)
|
764
|
-
self == o
|
765
|
-
end
|
766
|
-
|
767
|
-
# Calculates hash code according to all attributes.
|
768
|
-
# @return [Integer] Hash code
|
769
|
-
def hash
|
770
|
-
[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, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash
|
771
|
-
end
|
772
|
-
|
773
|
-
# Builds the object from hash
|
774
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
775
|
-
# @return [Object] Returns the model itself
|
776
|
-
def self.build_from_hash(attributes)
|
777
|
-
return nil unless attributes.is_a?(Hash)
|
778
|
-
attributes = attributes.transform_keys(&:to_sym)
|
779
|
-
transformed_hash = {}
|
780
|
-
openapi_types.each_pair do |key, type|
|
781
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
782
|
-
transformed_hash["#{key}"] = nil
|
783
|
-
elsif type =~ /\AArray<(.*)>/i
|
784
|
-
# check to ensure the input is an array given that the attribute
|
785
|
-
# is documented as an array but the input is not
|
786
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
787
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
788
|
-
end
|
789
|
-
elsif !attributes[attribute_map[key]].nil?
|
790
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
791
|
-
end
|
792
|
-
end
|
793
|
-
new(transformed_hash)
|
794
|
-
end
|
795
|
-
|
796
|
-
# Deserializes the data based on type
|
797
|
-
# @param string type Data type
|
798
|
-
# @param string value Value to be deserialized
|
799
|
-
# @return [Object] Deserialized data
|
800
|
-
def self._deserialize(type, value)
|
801
|
-
case type.to_sym
|
802
|
-
when :Time
|
803
|
-
Time.parse(value)
|
804
|
-
when :Date
|
805
|
-
Date.parse(value)
|
806
|
-
when :String
|
807
|
-
value.to_s
|
808
|
-
when :Integer
|
809
|
-
value.to_i
|
810
|
-
when :Float
|
811
|
-
value.to_f
|
812
|
-
when :Boolean
|
813
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
814
|
-
true
|
815
|
-
else
|
816
|
-
false
|
817
|
-
end
|
818
|
-
when :Object
|
819
|
-
# generic object (usually a Hash), return directly
|
820
|
-
value
|
821
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
822
|
-
inner_type = Regexp.last_match[:inner_type]
|
823
|
-
value.map { |v| _deserialize(inner_type, v) }
|
824
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
825
|
-
k_type = Regexp.last_match[:k_type]
|
826
|
-
v_type = Regexp.last_match[:v_type]
|
827
|
-
{}.tap do |hash|
|
828
|
-
value.each do |k, v|
|
829
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
830
|
-
end
|
831
|
-
end
|
832
|
-
else # model
|
833
|
-
# models (e.g. Pet) or oneOf
|
834
|
-
klass = AvalaraSdk::A1099::V2.const_get(type)
|
835
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
836
|
-
end
|
837
|
-
end
|
838
|
-
|
839
|
-
# Returns the string representation of the object
|
840
|
-
# @return [String] String presentation of the object
|
841
|
-
def to_s
|
842
|
-
to_hash.to_s
|
843
|
-
end
|
844
|
-
|
845
|
-
# to_body is an alias to to_hash (backward compatibility)
|
846
|
-
# @return [Hash] Returns the object in the form of hash
|
847
|
-
def to_body
|
848
|
-
to_hash
|
849
|
-
end
|
850
|
-
|
851
|
-
# Returns the object in the form of hash
|
852
|
-
# @return [Hash] Returns the object in the form of hash
|
853
|
-
def to_hash
|
854
|
-
hash = {}
|
855
|
-
self.class.attribute_map.each_pair do |attr, param|
|
856
|
-
value = self.send(attr)
|
857
|
-
if value.nil?
|
858
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
859
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
860
|
-
end
|
861
|
-
|
862
|
-
hash[param] = _to_hash(value)
|
863
|
-
end
|
864
|
-
hash
|
865
|
-
end
|
866
|
-
|
867
|
-
# Outputs non-array value in the form of hash
|
868
|
-
# For object, use to_hash. Otherwise, just return the value
|
869
|
-
# @param [Object] value Any valid value
|
870
|
-
# @return [Hash] Returns the value in the form of hash
|
871
|
-
def _to_hash(value)
|
872
|
-
if value.is_a?(Array)
|
873
|
-
value.compact.map { |v| _to_hash(v) }
|
874
|
-
elsif value.is_a?(Hash)
|
875
|
-
{}.tap do |hash|
|
876
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
877
|
-
end
|
878
|
-
elsif value.respond_to? :to_hash
|
879
|
-
value.to_hash
|
880
|
-
else
|
881
|
-
value
|
882
|
-
end
|
883
|
-
end
|
884
|
-
|
885
|
-
end
|
886
|
-
|
887
|
-
end
|