avalara_sdk 25.8.2 → 25.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +20 -91
- data/docs/A1099/V2/CompaniesW9Api.md +18 -18
- data/docs/A1099/V2/CompanyBase.md +50 -0
- data/docs/A1099/V2/CompanyCreateUpdateRequestModel.md +18 -18
- data/docs/A1099/V2/CompanyRequest.md +50 -0
- data/docs/A1099/V2/CompanyResponse.md +37 -37
- data/docs/A1099/V2/CoveredIndividual.md +56 -0
- data/docs/A1099/V2/CreateAndSendW9FormEmailRequest.md +55 -0
- data/docs/A1099/V2/CreateCompanyRequest.md +49 -0
- data/docs/A1099/V2/CreateIssuerRequest.md +49 -0
- data/docs/A1099/V2/EntryStatusResponse.md +20 -0
- data/docs/A1099/V2/Form1042S.md +83 -83
- data/docs/A1099/V2/Form1095B.md +72 -62
- data/docs/A1099/V2/Form1095C.md +112 -0
- data/docs/A1099/V2/Form1099Base.md +60 -60
- data/docs/A1099/V2/Form1099Div.md +79 -77
- data/docs/A1099/V2/Form1099Int.md +76 -74
- data/docs/A1099/V2/Form1099K.md +83 -83
- data/docs/A1099/V2/Form1099ListRequest.md +20 -0
- data/docs/A1099/V2/Form1099Misc.md +79 -77
- data/docs/A1099/V2/Form1099Nec.md +64 -64
- data/docs/A1099/V2/Form1099R.md +95 -93
- data/docs/A1099/V2/Forms1099Api.md +47 -43
- data/docs/A1099/V2/FormsW9Api.md +104 -20
- data/docs/A1099/V2/Get1099Form200Response.md +19 -19
- data/docs/A1099/V2/IntermediaryOrFlowThrough.md +11 -11
- data/docs/A1099/V2/IssuerBase.md +46 -0
- data/docs/A1099/V2/IssuerCommand.md +16 -16
- data/docs/A1099/V2/IssuerRequest.md +46 -0
- data/docs/A1099/V2/IssuerResponse.md +35 -35
- data/docs/A1099/V2/Issuers1099Api.md +10 -10
- data/docs/A1099/V2/JobResponse.md +56 -0
- data/docs/A1099/V2/JobsApi.md +91 -0
- data/docs/A1099/V2/OfferAndCoverage.md +28 -0
- data/docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md +22 -0
- data/docs/A1099/V2/PrimaryWithholdingAgent.md +4 -4
- data/docs/A1099/V2/StateAndLocalWithholding.md +8 -8
- data/docs/A1099/V2/TinMatchStatusResponse.md +1 -1
- data/docs/A1099/V2/ValidationError.md +2 -2
- data/docs/A1099/V2/W4FormMinimalRequest.md +30 -0
- data/docs/A1099/V2/W4FormRequest.md +16 -16
- data/docs/A1099/V2/W4FormResponse.md +48 -20
- data/docs/A1099/V2/W8BenEFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenEFormRequest.md +15 -15
- data/docs/A1099/V2/W8BenEFormResponse.md +96 -68
- data/docs/A1099/V2/W8BenFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8BenFormRequest.md +11 -11
- data/docs/A1099/V2/W8BenFormResponse.md +55 -27
- data/docs/A1099/V2/W8ImyFormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W8ImyFormRequest.md +15 -15
- data/docs/A1099/V2/W8ImyFormResponse.md +118 -90
- data/docs/A1099/V2/W9FormBaseMinimalRequest.md +24 -0
- data/docs/A1099/V2/W9FormBaseRequest.md +7 -7
- data/docs/A1099/V2/W9FormBaseResponse.md +6 -6
- data/docs/A1099/V2/W9FormMinimalRequest.md +28 -0
- data/docs/A1099/V2/W9FormRequest.md +15 -15
- data/docs/A1099/V2/W9FormResponse.md +44 -16
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +27 -27
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +93 -61
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +157 -19
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +21 -21
- data/lib/avalara_sdk/api/A1099/V2/{jobs1099_api.rb → jobs_api.rb} +9 -9
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +1 -1
- data/lib/avalara_sdk/api_client.rb +10 -2
- data/lib/avalara_sdk/models/A1099/V2/{base_company_model.rb → company_base.rb} +61 -13
- data/lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb +58 -17
- data/lib/avalara_sdk/models/A1099/V2/{company_model.rb → company_request.rb} +62 -64
- data/lib/avalara_sdk/models/A1099/V2/company_response.rb +110 -69
- data/lib/avalara_sdk/models/A1099/V2/{covered_individual_request.rb → covered_individual.rb} +36 -7
- data/lib/avalara_sdk/models/A1099/V2/{i_create_form1099_request.rb → create_and_send_w9_form_email_request.rb} +6 -5
- data/lib/avalara_sdk/models/A1099/V2/{error_response_errors_inner.rb → create_company_request.rb} +3 -3
- data/lib/avalara_sdk/models/A1099/V2/{i_update_form1099_request.rb → create_issuer_request.rb} +3 -5
- data/lib/avalara_sdk/models/A1099/V2/{status_detail.rb → entry_status_response.rb} +20 -18
- data/lib/avalara_sdk/models/A1099/V2/error_response.rb +0 -6
- data/lib/avalara_sdk/models/A1099/V2/form1042_s.rb +422 -187
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +359 -194
- data/lib/avalara_sdk/models/A1099/V2/{form1095_b_response.rb → form1095_c.rb} +250 -133
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +283 -185
- data/lib/avalara_sdk/models/A1099/V2/form1099_div.rb +307 -179
- data/lib/avalara_sdk/models/A1099/V2/form1099_int.rb +307 -183
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +307 -198
- data/lib/avalara_sdk/models/A1099/V2/{http_validation_problem_details.rb → form1099_list_request.rb} +45 -59
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +334 -209
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +297 -192
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +437 -282
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +9 -9
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb +59 -1
- data/lib/avalara_sdk/models/A1099/V2/{intermediary_or_flow_through_request.rb → issuer_base.rb} +119 -46
- data/lib/avalara_sdk/models/A1099/V2/issuer_command.rb +42 -23
- data/lib/avalara_sdk/models/A1099/V2/{company_response_model.rb → issuer_request.rb} +113 -112
- data/lib/avalara_sdk/models/A1099/V2/issuer_response.rb +77 -46
- data/lib/avalara_sdk/models/A1099/V2/{job_result.rb → job_response.rb} +102 -42
- data/lib/avalara_sdk/models/A1099/V2/{offer_and_coverage_request.rb → offer_and_coverage.rb} +79 -9
- data/lib/avalara_sdk/models/A1099/V2/{paginated_query_result_model.rb → paginated_query_result_model_form1099_base.rb} +4 -4
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb +23 -16
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb +8 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error.rb +2 -6
- data/lib/avalara_sdk/models/A1099/V2/{attribute.rb → w4_form_minimal_request.rb} +142 -129
- data/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +62 -34
- data/lib/avalara_sdk/models/A1099/V2/w4_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb +68 -33
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb +190 -14
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb +51 -28
- data/lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +61 -33
- data/lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb +191 -15
- data/lib/avalara_sdk/models/A1099/V2/{problem_details.rb → w9_form_base_minimal_request.rb} +61 -35
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb +35 -28
- data/lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb +60 -31
- data/lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb +356 -0
- data/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +71 -30
- data/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +190 -14
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +22 -101
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debase-0.2.9/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/debug-1.10.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/erb-5.0.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/io-console-0.8.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/json-2.12.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/prism-1.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.7/gem_make.out +5 -5
- metadata +45 -103
- data/lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +0 -403
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference_response.rb +0 -407
- data/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/data.rb +0 -237
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +0 -816
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +0 -980
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +0 -778
- data/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +0 -619
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +0 -606
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +0 -627
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb +0 -662
- data/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +0 -726
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +0 -747
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb +0 -931
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +0 -729
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +0 -790
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb +0 -702
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb +0 -887
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb +0 -684
- data/lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb +0 -773
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +0 -788
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +0 -995
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +0 -770
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +0 -55
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb +0 -220
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +0 -688
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +0 -886
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +0 -670
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +0 -754
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +0 -586
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +0 -765
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +0 -567
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +0 -646
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb +0 -228
- data/lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb +0 -107
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb +0 -238
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +0 -763
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +0 -942
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +0 -720
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb +0 -839
- data/lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb +0 -223
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +0 -502
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +0 -475
- data/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +0 -548
- data/lib/avalara_sdk/models/A1099/V2/form_request_model.rb +0 -345
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +0 -612
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +0 -530
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +0 -219
- data/lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb +0 -311
- data/lib/avalara_sdk/models/A1099/V2/link.rb +0 -210
- data/lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb +0 -221
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +0 -278
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +0 -282
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb +0 -231
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +0 -108
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +0 -229
- data/lib/avalara_sdk/models/A1099/V2/validation_error_response.rb +0 -231
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb +0 -233
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb +0 -274
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb +0 -251
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb +0 -221
- data/lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb +0 -241
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb +0 -224
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb +0 -237
- data/lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb +0 -288
- data/lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb +0 -216
@@ -11,126 +11,187 @@ require 'time'
|
|
11
11
|
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
13
|
class Form1099Base
|
14
|
-
|
15
|
-
|
14
|
+
# Form type.
|
16
15
|
attr_accessor :type
|
17
16
|
|
17
|
+
# Form ID. Unique identifier set when the record is created.
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# Issuer ID - only required when creating forms
|
18
21
|
attr_accessor :issuer_id
|
19
22
|
|
23
|
+
# Issuer Reference ID - only required when creating forms via $bulk-upsert
|
20
24
|
attr_accessor :issuer_reference_id
|
21
25
|
|
26
|
+
# Issuer TIN - readonly
|
22
27
|
attr_accessor :issuer_tin
|
23
28
|
|
29
|
+
# Tax Year - only required when creating forms via $bulk-upsert
|
24
30
|
attr_accessor :tax_year
|
25
31
|
|
26
|
-
|
32
|
+
# Internal reference ID. Never shown to any agency or recipient.
|
33
|
+
attr_accessor :reference_id
|
27
34
|
|
28
|
-
|
35
|
+
# Recipient's Federal Tax Identification Number (TIN).
|
36
|
+
attr_accessor :tin
|
29
37
|
|
30
|
-
|
38
|
+
# Recipient name
|
39
|
+
attr_accessor :recipient_name
|
31
40
|
|
32
|
-
|
41
|
+
# Tax Identification Number (TIN) type. Available values: - EIN: Employer Identification Number - SSN: Social Security Number - ITIN: Individual Taxpayer Identification Number - ATIN: Adoption Taxpayer Identification Number
|
42
|
+
attr_accessor :tin_type
|
33
43
|
|
34
|
-
|
44
|
+
# Recipient second name
|
45
|
+
attr_accessor :recipient_second_name
|
35
46
|
|
36
|
-
|
47
|
+
# Address.
|
48
|
+
attr_accessor :address
|
37
49
|
|
38
|
-
|
50
|
+
# Address line 2.
|
51
|
+
attr_accessor :address2
|
39
52
|
|
40
|
-
|
53
|
+
# City.
|
54
|
+
attr_accessor :city
|
41
55
|
|
42
|
-
|
56
|
+
# Two-letter US state or Canadian province code (required for US/CA addresses).
|
57
|
+
attr_accessor :state
|
43
58
|
|
44
|
-
|
59
|
+
# ZIP/postal code.
|
60
|
+
attr_accessor :zip
|
45
61
|
|
46
|
-
|
62
|
+
# Recipient's Contact email address.
|
63
|
+
attr_accessor :email
|
47
64
|
|
48
|
-
|
65
|
+
# Account number
|
66
|
+
attr_accessor :account_number
|
49
67
|
|
50
|
-
|
68
|
+
# Office code
|
69
|
+
attr_accessor :office_code
|
51
70
|
|
52
|
-
|
71
|
+
# Province or region for non-US/CA addresses.
|
72
|
+
attr_accessor :non_us_province
|
53
73
|
|
54
|
-
|
74
|
+
# Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
|
75
|
+
attr_accessor :country_code
|
55
76
|
|
56
|
-
|
77
|
+
# Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
78
|
+
attr_accessor :federal_efile_date
|
57
79
|
|
58
|
-
|
80
|
+
# Boolean indicating that postal mailing to the recipient should be scheduled for this form
|
81
|
+
attr_accessor :postal_mail
|
59
82
|
|
60
|
-
|
83
|
+
# Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
84
|
+
attr_accessor :state_efile_date
|
61
85
|
|
62
|
-
|
86
|
+
# Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
|
87
|
+
attr_accessor :recipient_edelivery_date
|
63
88
|
|
64
|
-
|
89
|
+
# Boolean indicating that TIN Matching should be scheduled for this form
|
90
|
+
attr_accessor :tin_match
|
65
91
|
|
66
|
-
|
92
|
+
# No TIN indicator
|
93
|
+
attr_accessor :no_tin
|
67
94
|
|
68
|
-
|
95
|
+
# Boolean indicating that address verification should be scheduled for this form
|
96
|
+
attr_accessor :address_verification
|
69
97
|
|
70
|
-
|
98
|
+
# State and local withholding information
|
99
|
+
attr_accessor :state_and_local_withholding
|
71
100
|
|
72
|
-
|
101
|
+
# Second TIN notice
|
102
|
+
attr_accessor :second_tin_notice
|
73
103
|
|
74
|
-
|
104
|
+
# Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
|
105
|
+
attr_accessor :federal_efile_status
|
75
106
|
|
76
|
-
|
107
|
+
# State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
|
108
|
+
attr_accessor :state_efile_status
|
77
109
|
|
78
|
-
|
110
|
+
# Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
|
111
|
+
attr_accessor :postal_mail_status
|
79
112
|
|
80
|
-
|
113
|
+
# TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
|
114
|
+
attr_accessor :tin_match_status
|
81
115
|
|
82
|
-
|
116
|
+
# Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
|
117
|
+
attr_accessor :address_verification_status
|
118
|
+
|
119
|
+
# EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
|
120
|
+
attr_accessor :e_delivery_status
|
83
121
|
|
122
|
+
# Validation errors
|
84
123
|
attr_accessor :validation_errors
|
85
124
|
|
125
|
+
# Date time when the record was created.
|
86
126
|
attr_accessor :created_at
|
87
127
|
|
128
|
+
# Date time when the record was last updated.
|
88
129
|
attr_accessor :updated_at
|
89
130
|
|
90
|
-
|
131
|
+
class EnumAttributeValidator
|
132
|
+
attr_reader :datatype
|
133
|
+
attr_reader :allowable_values
|
134
|
+
|
135
|
+
def initialize(datatype, allowable_values)
|
136
|
+
@allowable_values = allowable_values.map do |value|
|
137
|
+
case datatype.to_s
|
138
|
+
when /Integer/i
|
139
|
+
value.to_i
|
140
|
+
when /Float/i
|
141
|
+
value.to_f
|
142
|
+
else
|
143
|
+
value
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
def valid?(value)
|
149
|
+
!value || allowable_values.include?(value)
|
150
|
+
end
|
151
|
+
end
|
91
152
|
|
92
153
|
# Attribute mapping from ruby-style variable name to JSON key.
|
93
154
|
def self.attribute_map
|
94
155
|
{
|
95
|
-
:'id' => :'id',
|
96
156
|
:'type' => :'type',
|
157
|
+
:'id' => :'id',
|
97
158
|
:'issuer_id' => :'issuerId',
|
98
159
|
:'issuer_reference_id' => :'issuerReferenceId',
|
99
160
|
:'issuer_tin' => :'issuerTin',
|
100
161
|
:'tax_year' => :'taxYear',
|
101
|
-
:'federal_efile' => :'federalEfile',
|
102
|
-
:'federal_efile_status' => :'federalEfileStatus',
|
103
|
-
:'state_efile' => :'stateEfile',
|
104
|
-
:'state_efile_status' => :'stateEfileStatus',
|
105
|
-
:'postal_mail' => :'postalMail',
|
106
|
-
:'postal_mail_status' => :'postalMailStatus',
|
107
|
-
:'tin_match' => :'tinMatch',
|
108
|
-
:'tin_match_status' => :'tinMatchStatus',
|
109
|
-
:'address_verification' => :'addressVerification',
|
110
|
-
:'address_verification_status' => :'addressVerificationStatus',
|
111
|
-
:'e_delivery_status' => :'eDeliveryStatus',
|
112
162
|
:'reference_id' => :'referenceId',
|
113
|
-
:'email' => :'email',
|
114
|
-
:'tin_type' => :'tinType',
|
115
|
-
:'fatca_filing_requirement' => :'fatcaFilingRequirement',
|
116
163
|
:'tin' => :'tin',
|
117
|
-
:'no_tin' => :'noTin',
|
118
|
-
:'second_tin_notice' => :'secondTinNotice',
|
119
164
|
:'recipient_name' => :'recipientName',
|
165
|
+
:'tin_type' => :'tinType',
|
120
166
|
:'recipient_second_name' => :'recipientSecondName',
|
121
167
|
:'address' => :'address',
|
122
168
|
:'address2' => :'address2',
|
123
169
|
:'city' => :'city',
|
124
170
|
:'state' => :'state',
|
125
171
|
:'zip' => :'zip',
|
126
|
-
:'
|
127
|
-
:'country_code' => :'countryCode',
|
172
|
+
:'email' => :'email',
|
128
173
|
:'account_number' => :'accountNumber',
|
129
174
|
:'office_code' => :'officeCode',
|
175
|
+
:'non_us_province' => :'nonUsProvince',
|
176
|
+
:'country_code' => :'countryCode',
|
177
|
+
:'federal_efile_date' => :'federalEfileDate',
|
178
|
+
:'postal_mail' => :'postalMail',
|
179
|
+
:'state_efile_date' => :'stateEfileDate',
|
180
|
+
:'recipient_edelivery_date' => :'recipientEdeliveryDate',
|
181
|
+
:'tin_match' => :'tinMatch',
|
182
|
+
:'no_tin' => :'noTin',
|
183
|
+
:'address_verification' => :'addressVerification',
|
184
|
+
:'state_and_local_withholding' => :'stateAndLocalWithholding',
|
185
|
+
:'second_tin_notice' => :'secondTinNotice',
|
186
|
+
:'federal_efile_status' => :'federalEfileStatus',
|
187
|
+
:'state_efile_status' => :'stateEfileStatus',
|
188
|
+
:'postal_mail_status' => :'postalMailStatus',
|
189
|
+
:'tin_match_status' => :'tinMatchStatus',
|
190
|
+
:'address_verification_status' => :'addressVerificationStatus',
|
191
|
+
:'e_delivery_status' => :'eDeliveryStatus',
|
130
192
|
:'validation_errors' => :'validationErrors',
|
131
193
|
:'created_at' => :'createdAt',
|
132
|
-
:'updated_at' => :'updatedAt'
|
133
|
-
:'state_and_local_withholding' => :'stateAndLocalWithholding'
|
194
|
+
:'updated_at' => :'updatedAt'
|
134
195
|
}
|
135
196
|
end
|
136
197
|
|
@@ -142,77 +203,87 @@ module AvalaraSdk::A1099::V2
|
|
142
203
|
# Attribute type mapping.
|
143
204
|
def self.openapi_types
|
144
205
|
{
|
145
|
-
:'id' => :'String',
|
146
206
|
:'type' => :'String',
|
147
|
-
:'
|
207
|
+
:'id' => :'String',
|
208
|
+
:'issuer_id' => :'String',
|
148
209
|
:'issuer_reference_id' => :'String',
|
149
210
|
:'issuer_tin' => :'String',
|
150
211
|
:'tax_year' => :'Integer',
|
151
|
-
:'federal_efile' => :'Boolean',
|
152
|
-
:'federal_efile_status' => :'Form1099StatusDetail',
|
153
|
-
:'state_efile' => :'Boolean',
|
154
|
-
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
155
|
-
:'postal_mail' => :'Boolean',
|
156
|
-
:'postal_mail_status' => :'Form1099StatusDetail',
|
157
|
-
:'tin_match' => :'Boolean',
|
158
|
-
:'tin_match_status' => :'Form1099StatusDetail',
|
159
|
-
:'address_verification' => :'Boolean',
|
160
|
-
:'address_verification_status' => :'Form1099StatusDetail',
|
161
|
-
:'e_delivery_status' => :'Form1099StatusDetail',
|
162
212
|
:'reference_id' => :'String',
|
163
|
-
:'email' => :'String',
|
164
|
-
:'tin_type' => :'String',
|
165
|
-
:'fatca_filing_requirement' => :'Boolean',
|
166
213
|
:'tin' => :'String',
|
167
|
-
:'no_tin' => :'Boolean',
|
168
|
-
:'second_tin_notice' => :'Boolean',
|
169
214
|
:'recipient_name' => :'String',
|
215
|
+
:'tin_type' => :'String',
|
170
216
|
:'recipient_second_name' => :'String',
|
171
217
|
:'address' => :'String',
|
172
218
|
:'address2' => :'String',
|
173
219
|
:'city' => :'String',
|
174
220
|
:'state' => :'String',
|
175
221
|
:'zip' => :'String',
|
176
|
-
:'
|
177
|
-
:'country_code' => :'String',
|
222
|
+
:'email' => :'String',
|
178
223
|
:'account_number' => :'String',
|
179
224
|
:'office_code' => :'String',
|
225
|
+
:'non_us_province' => :'String',
|
226
|
+
:'country_code' => :'String',
|
227
|
+
:'federal_efile_date' => :'Date',
|
228
|
+
:'postal_mail' => :'Boolean',
|
229
|
+
:'state_efile_date' => :'Date',
|
230
|
+
:'recipient_edelivery_date' => :'Date',
|
231
|
+
:'tin_match' => :'Boolean',
|
232
|
+
:'no_tin' => :'Boolean',
|
233
|
+
:'address_verification' => :'Boolean',
|
234
|
+
:'state_and_local_withholding' => :'StateAndLocalWithholding',
|
235
|
+
:'second_tin_notice' => :'Boolean',
|
236
|
+
:'federal_efile_status' => :'Form1099StatusDetail',
|
237
|
+
:'state_efile_status' => :'Array<StateEfileStatusDetail>',
|
238
|
+
:'postal_mail_status' => :'Form1099StatusDetail',
|
239
|
+
:'tin_match_status' => :'Form1099StatusDetail',
|
240
|
+
:'address_verification_status' => :'Form1099StatusDetail',
|
241
|
+
:'e_delivery_status' => :'Form1099StatusDetail',
|
180
242
|
:'validation_errors' => :'Array<ValidationError>',
|
181
243
|
:'created_at' => :'Time',
|
182
|
-
:'updated_at' => :'Time'
|
183
|
-
:'state_and_local_withholding' => :'StateAndLocalWithholding'
|
244
|
+
:'updated_at' => :'Time'
|
184
245
|
}
|
185
246
|
end
|
186
247
|
|
187
248
|
# List of attributes with nullable: true
|
188
249
|
def self.openapi_nullable
|
189
250
|
Set.new([
|
251
|
+
:'id',
|
252
|
+
:'issuer_id',
|
190
253
|
:'issuer_reference_id',
|
191
254
|
:'issuer_tin',
|
192
|
-
:'
|
193
|
-
:'postal_mail_status',
|
194
|
-
:'tin_match_status',
|
195
|
-
:'address_verification_status',
|
196
|
-
:'e_delivery_status',
|
255
|
+
:'tax_year',
|
197
256
|
:'reference_id',
|
198
|
-
:'email',
|
199
|
-
:'tin_type',
|
200
|
-
:'fatca_filing_requirement',
|
201
257
|
:'tin',
|
202
|
-
:'second_tin_notice',
|
203
258
|
:'recipient_name',
|
259
|
+
:'tin_type',
|
204
260
|
:'recipient_second_name',
|
205
261
|
:'address',
|
206
262
|
:'address2',
|
207
263
|
:'city',
|
208
264
|
:'state',
|
209
265
|
:'zip',
|
210
|
-
:'
|
211
|
-
:'country_code',
|
266
|
+
:'email',
|
212
267
|
:'account_number',
|
213
268
|
:'office_code',
|
269
|
+
:'non_us_province',
|
270
|
+
:'country_code',
|
271
|
+
:'federal_efile_date',
|
272
|
+
:'postal_mail',
|
273
|
+
:'state_efile_date',
|
274
|
+
:'recipient_edelivery_date',
|
275
|
+
:'tin_match',
|
276
|
+
:'no_tin',
|
277
|
+
:'address_verification',
|
278
|
+
:'state_and_local_withholding',
|
279
|
+
:'second_tin_notice',
|
280
|
+
:'federal_efile_status',
|
281
|
+
:'state_efile_status',
|
282
|
+
:'postal_mail_status',
|
283
|
+
:'tin_match_status',
|
284
|
+
:'address_verification_status',
|
285
|
+
:'e_delivery_status',
|
214
286
|
:'validation_errors',
|
215
|
-
:'state_and_local_withholding'
|
216
287
|
])
|
217
288
|
end
|
218
289
|
|
@@ -231,12 +302,14 @@ module AvalaraSdk::A1099::V2
|
|
231
302
|
h[k.to_sym] = v
|
232
303
|
}
|
233
304
|
|
234
|
-
if attributes.key?(:'id')
|
235
|
-
self.id = attributes[:'id']
|
236
|
-
end
|
237
|
-
|
238
305
|
if attributes.key?(:'type')
|
239
306
|
self.type = attributes[:'type']
|
307
|
+
else
|
308
|
+
self.type = nil
|
309
|
+
end
|
310
|
+
|
311
|
+
if attributes.key?(:'id')
|
312
|
+
self.id = attributes[:'id']
|
240
313
|
end
|
241
314
|
|
242
315
|
if attributes.key?(:'issuer_id')
|
@@ -255,122 +328,134 @@ module AvalaraSdk::A1099::V2
|
|
255
328
|
self.tax_year = attributes[:'tax_year']
|
256
329
|
end
|
257
330
|
|
258
|
-
if attributes.key?(:'
|
259
|
-
self.
|
331
|
+
if attributes.key?(:'reference_id')
|
332
|
+
self.reference_id = attributes[:'reference_id']
|
260
333
|
end
|
261
334
|
|
262
|
-
if attributes.key?(:'
|
263
|
-
self.
|
335
|
+
if attributes.key?(:'tin')
|
336
|
+
self.tin = attributes[:'tin']
|
264
337
|
end
|
265
338
|
|
266
|
-
if attributes.key?(:'
|
267
|
-
self.
|
339
|
+
if attributes.key?(:'recipient_name')
|
340
|
+
self.recipient_name = attributes[:'recipient_name']
|
341
|
+
else
|
342
|
+
self.recipient_name = nil
|
268
343
|
end
|
269
344
|
|
270
|
-
if attributes.key?(:'
|
271
|
-
|
272
|
-
self.state_efile_status = value
|
273
|
-
end
|
345
|
+
if attributes.key?(:'tin_type')
|
346
|
+
self.tin_type = attributes[:'tin_type']
|
274
347
|
end
|
275
348
|
|
276
|
-
if attributes.key?(:'
|
277
|
-
self.
|
349
|
+
if attributes.key?(:'recipient_second_name')
|
350
|
+
self.recipient_second_name = attributes[:'recipient_second_name']
|
278
351
|
end
|
279
352
|
|
280
|
-
if attributes.key?(:'
|
281
|
-
self.
|
353
|
+
if attributes.key?(:'address')
|
354
|
+
self.address = attributes[:'address']
|
355
|
+
else
|
356
|
+
self.address = nil
|
282
357
|
end
|
283
358
|
|
284
|
-
if attributes.key?(:'
|
285
|
-
self.
|
359
|
+
if attributes.key?(:'address2')
|
360
|
+
self.address2 = attributes[:'address2']
|
286
361
|
end
|
287
362
|
|
288
|
-
if attributes.key?(:'
|
289
|
-
self.
|
363
|
+
if attributes.key?(:'city')
|
364
|
+
self.city = attributes[:'city']
|
365
|
+
else
|
366
|
+
self.city = nil
|
290
367
|
end
|
291
368
|
|
292
|
-
if attributes.key?(:'
|
293
|
-
self.
|
369
|
+
if attributes.key?(:'state')
|
370
|
+
self.state = attributes[:'state']
|
294
371
|
end
|
295
372
|
|
296
|
-
if attributes.key?(:'
|
297
|
-
self.
|
373
|
+
if attributes.key?(:'zip')
|
374
|
+
self.zip = attributes[:'zip']
|
298
375
|
end
|
299
376
|
|
300
|
-
if attributes.key?(:'
|
301
|
-
self.
|
377
|
+
if attributes.key?(:'email')
|
378
|
+
self.email = attributes[:'email']
|
302
379
|
end
|
303
380
|
|
304
|
-
if attributes.key?(:'
|
305
|
-
self.
|
381
|
+
if attributes.key?(:'account_number')
|
382
|
+
self.account_number = attributes[:'account_number']
|
306
383
|
end
|
307
384
|
|
308
|
-
if attributes.key?(:'
|
309
|
-
self.
|
385
|
+
if attributes.key?(:'office_code')
|
386
|
+
self.office_code = attributes[:'office_code']
|
310
387
|
end
|
311
388
|
|
312
|
-
if attributes.key?(:'
|
313
|
-
self.
|
389
|
+
if attributes.key?(:'non_us_province')
|
390
|
+
self.non_us_province = attributes[:'non_us_province']
|
314
391
|
end
|
315
392
|
|
316
|
-
if attributes.key?(:'
|
317
|
-
self.
|
393
|
+
if attributes.key?(:'country_code')
|
394
|
+
self.country_code = attributes[:'country_code']
|
395
|
+
else
|
396
|
+
self.country_code = nil
|
318
397
|
end
|
319
398
|
|
320
|
-
if attributes.key?(:'
|
321
|
-
self.
|
399
|
+
if attributes.key?(:'federal_efile_date')
|
400
|
+
self.federal_efile_date = attributes[:'federal_efile_date']
|
322
401
|
end
|
323
402
|
|
324
|
-
if attributes.key?(:'
|
325
|
-
self.
|
403
|
+
if attributes.key?(:'postal_mail')
|
404
|
+
self.postal_mail = attributes[:'postal_mail']
|
326
405
|
end
|
327
406
|
|
328
|
-
if attributes.key?(:'
|
329
|
-
self.
|
407
|
+
if attributes.key?(:'state_efile_date')
|
408
|
+
self.state_efile_date = attributes[:'state_efile_date']
|
330
409
|
end
|
331
410
|
|
332
|
-
if attributes.key?(:'
|
333
|
-
self.
|
411
|
+
if attributes.key?(:'recipient_edelivery_date')
|
412
|
+
self.recipient_edelivery_date = attributes[:'recipient_edelivery_date']
|
334
413
|
end
|
335
414
|
|
336
|
-
if attributes.key?(:'
|
337
|
-
self.
|
415
|
+
if attributes.key?(:'tin_match')
|
416
|
+
self.tin_match = attributes[:'tin_match']
|
338
417
|
end
|
339
418
|
|
340
|
-
if attributes.key?(:'
|
341
|
-
self.
|
419
|
+
if attributes.key?(:'no_tin')
|
420
|
+
self.no_tin = attributes[:'no_tin']
|
342
421
|
end
|
343
422
|
|
344
|
-
if attributes.key?(:'
|
345
|
-
self.
|
423
|
+
if attributes.key?(:'address_verification')
|
424
|
+
self.address_verification = attributes[:'address_verification']
|
346
425
|
end
|
347
426
|
|
348
|
-
if attributes.key?(:'
|
349
|
-
self.
|
427
|
+
if attributes.key?(:'state_and_local_withholding')
|
428
|
+
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
350
429
|
end
|
351
430
|
|
352
|
-
if attributes.key?(:'
|
353
|
-
self.
|
431
|
+
if attributes.key?(:'second_tin_notice')
|
432
|
+
self.second_tin_notice = attributes[:'second_tin_notice']
|
354
433
|
end
|
355
434
|
|
356
|
-
if attributes.key?(:'
|
357
|
-
self.
|
435
|
+
if attributes.key?(:'federal_efile_status')
|
436
|
+
self.federal_efile_status = attributes[:'federal_efile_status']
|
358
437
|
end
|
359
438
|
|
360
|
-
if attributes.key?(:'
|
361
|
-
|
439
|
+
if attributes.key?(:'state_efile_status')
|
440
|
+
if (value = attributes[:'state_efile_status']).is_a?(Array)
|
441
|
+
self.state_efile_status = value
|
442
|
+
end
|
362
443
|
end
|
363
444
|
|
364
|
-
if attributes.key?(:'
|
365
|
-
self.
|
445
|
+
if attributes.key?(:'postal_mail_status')
|
446
|
+
self.postal_mail_status = attributes[:'postal_mail_status']
|
366
447
|
end
|
367
448
|
|
368
|
-
if attributes.key?(:'
|
369
|
-
self.
|
449
|
+
if attributes.key?(:'tin_match_status')
|
450
|
+
self.tin_match_status = attributes[:'tin_match_status']
|
370
451
|
end
|
371
452
|
|
372
|
-
if attributes.key?(:'
|
373
|
-
self.
|
453
|
+
if attributes.key?(:'address_verification_status')
|
454
|
+
self.address_verification_status = attributes[:'address_verification_status']
|
455
|
+
end
|
456
|
+
|
457
|
+
if attributes.key?(:'e_delivery_status')
|
458
|
+
self.e_delivery_status = attributes[:'e_delivery_status']
|
374
459
|
end
|
375
460
|
|
376
461
|
if attributes.key?(:'validation_errors')
|
@@ -386,10 +471,6 @@ module AvalaraSdk::A1099::V2
|
|
386
471
|
if attributes.key?(:'updated_at')
|
387
472
|
self.updated_at = attributes[:'updated_at']
|
388
473
|
end
|
389
|
-
|
390
|
-
if attributes.key?(:'state_and_local_withholding')
|
391
|
-
self.state_and_local_withholding = attributes[:'state_and_local_withholding']
|
392
|
-
end
|
393
474
|
end
|
394
475
|
|
395
476
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -397,6 +478,10 @@ module AvalaraSdk::A1099::V2
|
|
397
478
|
def list_invalid_properties
|
398
479
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
399
480
|
invalid_properties = Array.new
|
481
|
+
if @type.nil?
|
482
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
483
|
+
end
|
484
|
+
|
400
485
|
invalid_properties
|
401
486
|
end
|
402
487
|
|
@@ -404,19 +489,32 @@ module AvalaraSdk::A1099::V2
|
|
404
489
|
# @return true if the model is valid
|
405
490
|
def valid?
|
406
491
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
492
|
+
return false if @type.nil?
|
493
|
+
type_validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
494
|
+
return false unless type_validator.valid?(@type)
|
495
|
+
tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
496
|
+
return false unless tin_type_validator.valid?(@tin_type)
|
407
497
|
true
|
408
498
|
end
|
409
499
|
|
410
|
-
# Custom attribute writer method
|
411
|
-
# @param [Object]
|
412
|
-
def
|
413
|
-
|
500
|
+
# Custom attribute writer method checking allowed values (enum).
|
501
|
+
# @param [Object] type Object to be assigned
|
502
|
+
def type=(type)
|
503
|
+
validator = EnumAttributeValidator.new('String', ["Form1099Nec", "Form1099Misc", "Form1099Div", "Form1099R", "Form1099K", "Form1095B", "Form1042S", "Form1095C", "Form1099Int"])
|
504
|
+
unless validator.valid?(type)
|
505
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
506
|
+
end
|
507
|
+
@type = type
|
414
508
|
end
|
415
509
|
|
416
|
-
# Custom attribute writer method
|
417
|
-
# @param [Object]
|
418
|
-
def
|
419
|
-
|
510
|
+
# Custom attribute writer method checking allowed values (enum).
|
511
|
+
# @param [Object] tin_type Object to be assigned
|
512
|
+
def tin_type=(tin_type)
|
513
|
+
validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"])
|
514
|
+
unless validator.valid?(tin_type)
|
515
|
+
fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}."
|
516
|
+
end
|
517
|
+
@tin_type = tin_type
|
420
518
|
end
|
421
519
|
|
422
520
|
# Checks equality by comparing each attribute.
|
@@ -424,45 +522,45 @@ module AvalaraSdk::A1099::V2
|
|
424
522
|
def ==(o)
|
425
523
|
return true if self.equal?(o)
|
426
524
|
self.class == o.class &&
|
427
|
-
id == o.id &&
|
428
525
|
type == o.type &&
|
526
|
+
id == o.id &&
|
429
527
|
issuer_id == o.issuer_id &&
|
430
528
|
issuer_reference_id == o.issuer_reference_id &&
|
431
529
|
issuer_tin == o.issuer_tin &&
|
432
530
|
tax_year == o.tax_year &&
|
433
|
-
federal_efile == o.federal_efile &&
|
434
|
-
federal_efile_status == o.federal_efile_status &&
|
435
|
-
state_efile == o.state_efile &&
|
436
|
-
state_efile_status == o.state_efile_status &&
|
437
|
-
postal_mail == o.postal_mail &&
|
438
|
-
postal_mail_status == o.postal_mail_status &&
|
439
|
-
tin_match == o.tin_match &&
|
440
|
-
tin_match_status == o.tin_match_status &&
|
441
|
-
address_verification == o.address_verification &&
|
442
|
-
address_verification_status == o.address_verification_status &&
|
443
|
-
e_delivery_status == o.e_delivery_status &&
|
444
531
|
reference_id == o.reference_id &&
|
445
|
-
email == o.email &&
|
446
|
-
tin_type == o.tin_type &&
|
447
|
-
fatca_filing_requirement == o.fatca_filing_requirement &&
|
448
532
|
tin == o.tin &&
|
449
|
-
no_tin == o.no_tin &&
|
450
|
-
second_tin_notice == o.second_tin_notice &&
|
451
533
|
recipient_name == o.recipient_name &&
|
534
|
+
tin_type == o.tin_type &&
|
452
535
|
recipient_second_name == o.recipient_second_name &&
|
453
536
|
address == o.address &&
|
454
537
|
address2 == o.address2 &&
|
455
538
|
city == o.city &&
|
456
539
|
state == o.state &&
|
457
540
|
zip == o.zip &&
|
458
|
-
|
459
|
-
country_code == o.country_code &&
|
541
|
+
email == o.email &&
|
460
542
|
account_number == o.account_number &&
|
461
543
|
office_code == o.office_code &&
|
544
|
+
non_us_province == o.non_us_province &&
|
545
|
+
country_code == o.country_code &&
|
546
|
+
federal_efile_date == o.federal_efile_date &&
|
547
|
+
postal_mail == o.postal_mail &&
|
548
|
+
state_efile_date == o.state_efile_date &&
|
549
|
+
recipient_edelivery_date == o.recipient_edelivery_date &&
|
550
|
+
tin_match == o.tin_match &&
|
551
|
+
no_tin == o.no_tin &&
|
552
|
+
address_verification == o.address_verification &&
|
553
|
+
state_and_local_withholding == o.state_and_local_withholding &&
|
554
|
+
second_tin_notice == o.second_tin_notice &&
|
555
|
+
federal_efile_status == o.federal_efile_status &&
|
556
|
+
state_efile_status == o.state_efile_status &&
|
557
|
+
postal_mail_status == o.postal_mail_status &&
|
558
|
+
tin_match_status == o.tin_match_status &&
|
559
|
+
address_verification_status == o.address_verification_status &&
|
560
|
+
e_delivery_status == o.e_delivery_status &&
|
462
561
|
validation_errors == o.validation_errors &&
|
463
562
|
created_at == o.created_at &&
|
464
|
-
updated_at == o.updated_at
|
465
|
-
state_and_local_withholding == o.state_and_local_withholding
|
563
|
+
updated_at == o.updated_at
|
466
564
|
end
|
467
565
|
|
468
566
|
# @see the `==` method
|
@@ -474,7 +572,7 @@ module AvalaraSdk::A1099::V2
|
|
474
572
|
# Calculates hash code according to all attributes.
|
475
573
|
# @return [Integer] Hash code
|
476
574
|
def hash
|
477
|
-
[
|
575
|
+
[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
|
478
576
|
end
|
479
577
|
|
480
578
|
# Builds the object from hash
|