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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avalara_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 25.8.
|
4
|
+
version: 25.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -75,13 +75,18 @@ files:
|
|
75
75
|
- docs/A1099/V2/CompanyModel.md
|
76
76
|
- docs/A1099/V2/CompanyResponse.md
|
77
77
|
- docs/A1099/V2/CompanyResponseModel.md
|
78
|
+
- docs/A1099/V2/CoveredIndividual.md
|
78
79
|
- docs/A1099/V2/CoveredIndividualReference.md
|
79
80
|
- docs/A1099/V2/CoveredIndividualReferenceResponse.md
|
80
81
|
- docs/A1099/V2/CoveredIndividualRequest.md
|
81
82
|
- docs/A1099/V2/Create1099Form201Response.md
|
83
|
+
- docs/A1099/V2/CreateAndSendW9FormEmailRequest.md
|
84
|
+
- docs/A1099/V2/CreateCompanyRequest.md
|
85
|
+
- docs/A1099/V2/CreateIssuerRequest.md
|
82
86
|
- docs/A1099/V2/CreateW9Form201Response.md
|
83
87
|
- docs/A1099/V2/CreateW9FormRequest.md
|
84
88
|
- docs/A1099/V2/Data.md
|
89
|
+
- docs/A1099/V2/EntryStatusResponse.md
|
85
90
|
- docs/A1099/V2/ErrorModel.md
|
86
91
|
- docs/A1099/V2/ErrorResponse.md
|
87
92
|
- docs/A1099/V2/ErrorResponseErrorsInner.md
|
@@ -98,6 +103,7 @@ files:
|
|
98
103
|
- docs/A1099/V2/Form1095BListItemResponse.md
|
99
104
|
- docs/A1099/V2/Form1095BRequest.md
|
100
105
|
- docs/A1099/V2/Form1095BResponse.md
|
106
|
+
- docs/A1099/V2/Form1095C.md
|
101
107
|
- docs/A1099/V2/Form1095CList.md
|
102
108
|
- docs/A1099/V2/Form1095CListItem.md
|
103
109
|
- docs/A1099/V2/Form1099Base.md
|
@@ -122,6 +128,7 @@ files:
|
|
122
128
|
- docs/A1099/V2/Form1099KResponse.md
|
123
129
|
- docs/A1099/V2/Form1099List.md
|
124
130
|
- docs/A1099/V2/Form1099ListDataInner.md
|
131
|
+
- docs/A1099/V2/Form1099ListRequest.md
|
125
132
|
- docs/A1099/V2/Form1099ListResponse.md
|
126
133
|
- docs/A1099/V2/Form1099ListResponseValueInner.md
|
127
134
|
- docs/A1099/V2/Form1099Misc.md
|
@@ -167,12 +174,16 @@ files:
|
|
167
174
|
- docs/A1099/V2/IssuerCommand.md
|
168
175
|
- docs/A1099/V2/IssuerResponse.md
|
169
176
|
- docs/A1099/V2/Issuers1099Api.md
|
177
|
+
- docs/A1099/V2/JobResponse.md
|
170
178
|
- docs/A1099/V2/JobResult.md
|
171
179
|
- docs/A1099/V2/Jobs1099Api.md
|
180
|
+
- docs/A1099/V2/JobsApi.md
|
172
181
|
- docs/A1099/V2/Link.md
|
182
|
+
- docs/A1099/V2/OfferAndCoverage.md
|
173
183
|
- docs/A1099/V2/OfferAndCoverageRequest.md
|
174
184
|
- docs/A1099/V2/PaginatedQueryResultModel.md
|
175
185
|
- docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md
|
186
|
+
- docs/A1099/V2/PaginatedQueryResultModelForm1099Base.md
|
176
187
|
- docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md
|
177
188
|
- docs/A1099/V2/PaginatedQueryResultModelW9FormBaseResponse.md
|
178
189
|
- docs/A1099/V2/PaginatedW9FormsModel.md
|
@@ -195,21 +206,27 @@ files:
|
|
195
206
|
- docs/A1099/V2/ValidationErrorApp.md
|
196
207
|
- docs/A1099/V2/ValidationErrorResponse.md
|
197
208
|
- docs/A1099/V2/W4FormDataModel.md
|
209
|
+
- docs/A1099/V2/W4FormMinimalRequest.md
|
198
210
|
- docs/A1099/V2/W4FormRequest.md
|
199
211
|
- docs/A1099/V2/W4FormResponse.md
|
212
|
+
- docs/A1099/V2/W8BenEFormMinimalRequest.md
|
200
213
|
- docs/A1099/V2/W8BenEFormRequest.md
|
201
214
|
- docs/A1099/V2/W8BenEFormResponse.md
|
202
215
|
- docs/A1099/V2/W8BenESubstantialUsOwnerDataModel.md
|
203
216
|
- docs/A1099/V2/W8BenFormDataModel.md
|
217
|
+
- docs/A1099/V2/W8BenFormMinimalRequest.md
|
204
218
|
- docs/A1099/V2/W8BenFormRequest.md
|
205
219
|
- docs/A1099/V2/W8BenFormResponse.md
|
206
220
|
- docs/A1099/V2/W8BeneFormDataModel.md
|
207
221
|
- docs/A1099/V2/W8ImyFormDataModel.md
|
222
|
+
- docs/A1099/V2/W8ImyFormMinimalRequest.md
|
208
223
|
- docs/A1099/V2/W8ImyFormRequest.md
|
209
224
|
- docs/A1099/V2/W8ImyFormResponse.md
|
225
|
+
- docs/A1099/V2/W9FormBaseMinimalRequest.md
|
210
226
|
- docs/A1099/V2/W9FormBaseRequest.md
|
211
227
|
- docs/A1099/V2/W9FormBaseResponse.md
|
212
228
|
- docs/A1099/V2/W9FormDataModel.md
|
229
|
+
- docs/A1099/V2/W9FormMinimalRequest.md
|
213
230
|
- docs/A1099/V2/W9FormRequest.md
|
214
231
|
- docs/A1099/V2/W9FormResponse.md
|
215
232
|
- docs/EInvoicing/V1/Address.md
|
@@ -308,7 +325,7 @@ files:
|
|
308
325
|
- lib/avalara_sdk/api/A1099/V2/forms1099_api.rb
|
309
326
|
- lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb
|
310
327
|
- lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb
|
311
|
-
- lib/avalara_sdk/api/A1099/V2/
|
328
|
+
- lib/avalara_sdk/api/A1099/V2/jobs_api.rb
|
312
329
|
- lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb
|
313
330
|
- lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb
|
314
331
|
- lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb
|
@@ -322,147 +339,73 @@ files:
|
|
322
339
|
- lib/avalara_sdk/auth/oauth_helper.rb
|
323
340
|
- lib/avalara_sdk/auth/token_response.rb
|
324
341
|
- lib/avalara_sdk/configuration.rb
|
325
|
-
- lib/avalara_sdk/models/A1099/V2/attribute.rb
|
326
342
|
- lib/avalara_sdk/models/A1099/V2/authorized_api_request_model.rb
|
327
343
|
- lib/avalara_sdk/models/A1099/V2/authorized_api_request_v2_data_model.rb
|
328
|
-
- lib/avalara_sdk/models/A1099/V2/base_company_model.rb
|
329
|
-
- lib/avalara_sdk/models/A1099/V2/base_form_list_request.rb
|
330
|
-
- lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb
|
331
344
|
- lib/avalara_sdk/models/A1099/V2/company_create_update_request_model.rb
|
332
|
-
- lib/avalara_sdk/models/A1099/V2/company_model.rb
|
333
345
|
- lib/avalara_sdk/models/A1099/V2/company_response.rb
|
334
|
-
- lib/avalara_sdk/models/A1099/V2/
|
335
|
-
- lib/avalara_sdk/models/A1099/V2/
|
336
|
-
- lib/avalara_sdk/models/A1099/V2/
|
337
|
-
- lib/avalara_sdk/models/A1099/V2/
|
338
|
-
- lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb
|
346
|
+
- lib/avalara_sdk/models/A1099/V2/covered_individual.rb
|
347
|
+
- lib/avalara_sdk/models/A1099/V2/create_and_send_w9_form_email_request.rb
|
348
|
+
- lib/avalara_sdk/models/A1099/V2/create_company_request.rb
|
349
|
+
- lib/avalara_sdk/models/A1099/V2/create_issuer_request.rb
|
339
350
|
- lib/avalara_sdk/models/A1099/V2/create_w9_form201_response.rb
|
340
351
|
- lib/avalara_sdk/models/A1099/V2/create_w9_form_request.rb
|
341
|
-
- lib/avalara_sdk/models/A1099/V2/
|
352
|
+
- lib/avalara_sdk/models/A1099/V2/entry_status_response.rb
|
342
353
|
- lib/avalara_sdk/models/A1099/V2/error_model.rb
|
343
354
|
- lib/avalara_sdk/models/A1099/V2/error_response.rb
|
344
|
-
- lib/avalara_sdk/models/A1099/V2/error_response_errors_inner.rb
|
345
355
|
- lib/avalara_sdk/models/A1099/V2/error_response_item.rb
|
346
356
|
- lib/avalara_sdk/models/A1099/V2/form1042_s.rb
|
347
|
-
- lib/avalara_sdk/models/A1099/V2/form1042_s_list.rb
|
348
|
-
- lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb
|
349
|
-
- lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb
|
350
|
-
- lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb
|
351
|
-
- lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb
|
352
357
|
- lib/avalara_sdk/models/A1099/V2/form1095_b.rb
|
353
|
-
- lib/avalara_sdk/models/A1099/V2/
|
354
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb
|
355
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb
|
356
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb
|
357
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_b_response.rb
|
358
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb
|
359
|
-
- lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb
|
358
|
+
- lib/avalara_sdk/models/A1099/V2/form1095_c.rb
|
360
359
|
- lib/avalara_sdk/models/A1099/V2/form1099_base.rb
|
361
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb
|
362
360
|
- lib/avalara_sdk/models/A1099/V2/form1099_div.rb
|
363
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_div_list.rb
|
364
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb
|
365
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb
|
366
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb
|
367
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb
|
368
361
|
- lib/avalara_sdk/models/A1099/V2/form1099_int.rb
|
369
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_int_list.rb
|
370
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_int_list_item.rb
|
371
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_int_list_item_response.rb
|
372
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_int_request.rb
|
373
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_int_response.rb
|
374
362
|
- lib/avalara_sdk/models/A1099/V2/form1099_k.rb
|
375
|
-
- lib/avalara_sdk/models/A1099/V2/
|
376
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb
|
377
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb
|
378
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb
|
379
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb
|
380
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_list.rb
|
381
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb
|
382
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_list_response.rb
|
383
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb
|
363
|
+
- lib/avalara_sdk/models/A1099/V2/form1099_list_request.rb
|
384
364
|
- lib/avalara_sdk/models/A1099/V2/form1099_misc.rb
|
385
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_misc_list.rb
|
386
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb
|
387
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb
|
388
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb
|
389
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb
|
390
365
|
- lib/avalara_sdk/models/A1099/V2/form1099_nec.rb
|
391
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_nec_list.rb
|
392
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb
|
393
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb
|
394
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb
|
395
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb
|
396
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_proccess_result.rb
|
397
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_proccess_result_processed_forms_inner.rb
|
398
366
|
- lib/avalara_sdk/models/A1099/V2/form1099_r.rb
|
399
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_r_list.rb
|
400
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb
|
401
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb
|
402
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb
|
403
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_r_response.rb
|
404
367
|
- lib/avalara_sdk/models/A1099/V2/form1099_status_detail.rb
|
405
|
-
- lib/avalara_sdk/models/A1099/V2/form1099_status_detail_response.rb
|
406
|
-
- lib/avalara_sdk/models/A1099/V2/form_request_base.rb
|
407
|
-
- lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb
|
408
|
-
- lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb
|
409
|
-
- lib/avalara_sdk/models/A1099/V2/form_request_model.rb
|
410
|
-
- lib/avalara_sdk/models/A1099/V2/form_response_base.rb
|
411
|
-
- lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb
|
412
368
|
- lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb
|
413
|
-
- lib/avalara_sdk/models/A1099/V2/http_validation_problem_details.rb
|
414
|
-
- lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb
|
415
|
-
- lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb
|
416
|
-
- lib/avalara_sdk/models/A1099/V2/included_base.rb
|
417
369
|
- lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb
|
418
|
-
- lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb
|
419
|
-
- lib/avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb
|
420
370
|
- lib/avalara_sdk/models/A1099/V2/irs_response.rb
|
421
371
|
- lib/avalara_sdk/models/A1099/V2/issuer_command.rb
|
422
372
|
- lib/avalara_sdk/models/A1099/V2/issuer_response.rb
|
423
373
|
- lib/avalara_sdk/models/A1099/V2/iw9_form_data_models_one_of.rb
|
424
|
-
- lib/avalara_sdk/models/A1099/V2/
|
425
|
-
- lib/avalara_sdk/models/A1099/V2/
|
426
|
-
- lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb
|
427
|
-
- lib/avalara_sdk/models/A1099/V2/paginated_query_result_model.rb
|
374
|
+
- lib/avalara_sdk/models/A1099/V2/job_response.rb
|
375
|
+
- lib/avalara_sdk/models/A1099/V2/offer_and_coverage.rb
|
428
376
|
- lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_company_response.rb
|
377
|
+
- lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_form1099_base.rb
|
429
378
|
- lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_issuer_response.rb
|
430
379
|
- lib/avalara_sdk/models/A1099/V2/paginated_query_result_model_w9_form_base_response.rb
|
431
|
-
- lib/avalara_sdk/models/A1099/V2/paginated_w9_forms_model.rb
|
432
380
|
- lib/avalara_sdk/models/A1099/V2/primary_withholding_agent.rb
|
433
|
-
- lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_request.rb
|
434
|
-
- lib/avalara_sdk/models/A1099/V2/primary_withholding_agent_response.rb
|
435
|
-
- lib/avalara_sdk/models/A1099/V2/problem_details.rb
|
436
381
|
- lib/avalara_sdk/models/A1099/V2/state_and_local_withholding.rb
|
437
|
-
- lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb
|
438
|
-
- lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb
|
439
382
|
- lib/avalara_sdk/models/A1099/V2/state_efile_status_detail.rb
|
440
|
-
- lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb
|
441
|
-
- lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_response.rb
|
442
|
-
- lib/avalara_sdk/models/A1099/V2/status_detail.rb
|
443
383
|
- lib/avalara_sdk/models/A1099/V2/substantial_us_owner_request.rb
|
444
384
|
- lib/avalara_sdk/models/A1099/V2/substantial_us_owner_response.rb
|
445
385
|
- lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb
|
446
|
-
- lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb
|
447
386
|
- lib/avalara_sdk/models/A1099/V2/validation_error.rb
|
448
|
-
- lib/avalara_sdk/models/A1099/V2/validation_error_app.rb
|
449
|
-
- lib/avalara_sdk/models/A1099/V2/validation_error_response.rb
|
450
387
|
- lib/avalara_sdk/models/A1099/V2/w4_form_data_model.rb
|
388
|
+
- lib/avalara_sdk/models/A1099/V2/w4_form_minimal_request.rb
|
451
389
|
- lib/avalara_sdk/models/A1099/V2/w4_form_request.rb
|
452
390
|
- lib/avalara_sdk/models/A1099/V2/w4_form_response.rb
|
391
|
+
- lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_minimal_request.rb
|
453
392
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_request.rb
|
454
393
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_e_form_response.rb
|
455
394
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.rb
|
456
395
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_form_data_model.rb
|
396
|
+
- lib/avalara_sdk/models/A1099/V2/w8_ben_form_minimal_request.rb
|
457
397
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_form_request.rb
|
458
398
|
- lib/avalara_sdk/models/A1099/V2/w8_ben_form_response.rb
|
459
399
|
- lib/avalara_sdk/models/A1099/V2/w8_bene_form_data_model.rb
|
460
400
|
- lib/avalara_sdk/models/A1099/V2/w8_imy_form_data_model.rb
|
401
|
+
- lib/avalara_sdk/models/A1099/V2/w8_imy_form_minimal_request.rb
|
461
402
|
- lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb
|
462
403
|
- lib/avalara_sdk/models/A1099/V2/w8_imy_form_response.rb
|
404
|
+
- lib/avalara_sdk/models/A1099/V2/w9_form_base_minimal_request.rb
|
463
405
|
- lib/avalara_sdk/models/A1099/V2/w9_form_base_request.rb
|
464
406
|
- lib/avalara_sdk/models/A1099/V2/w9_form_base_response.rb
|
465
407
|
- lib/avalara_sdk/models/A1099/V2/w9_form_data_model.rb
|
408
|
+
- lib/avalara_sdk/models/A1099/V2/w9_form_minimal_request.rb
|
466
409
|
- lib/avalara_sdk/models/A1099/V2/w9_form_request.rb
|
467
410
|
- lib/avalara_sdk/models/A1099/V2/w9_form_response.rb
|
468
411
|
- lib/avalara_sdk/models/EInvoicing/V1/address.rb
|
@@ -483,15 +426,7 @@ files:
|
|
483
426
|
- lib/avalara_sdk/models/EInvoicing/V1/data_input_field_optional_for.rb
|
484
427
|
- lib/avalara_sdk/models/EInvoicing/V1/data_input_field_required_for.rb
|
485
428
|
- lib/avalara_sdk/models/EInvoicing/V1/data_input_fields_response.rb
|
486
|
-
- lib/avalara_sdk/models/EInvoicing/V1/directory_search_response.rb
|
487
|
-
- lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner.rb
|
488
|
-
- lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_addresses_inner.rb
|
489
|
-
- lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_identifiers_inner.rb
|
490
|
-
- lib/avalara_sdk/models/EInvoicing/V1/directory_search_response_value_inner_supported_document_types_inner.rb
|
491
429
|
- lib/avalara_sdk/models/EInvoicing/V1/document_fetch.rb
|
492
|
-
- lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request.rb
|
493
|
-
- lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_data_inner.rb
|
494
|
-
- lib/avalara_sdk/models/EInvoicing/V1/document_fetch_request_metadata.rb
|
495
430
|
- lib/avalara_sdk/models/EInvoicing/V1/document_list_response.rb
|
496
431
|
- lib/avalara_sdk/models/EInvoicing/V1/document_status_response.rb
|
497
432
|
- lib/avalara_sdk/models/EInvoicing/V1/document_submission_error.rb
|
@@ -528,7 +463,6 @@ files:
|
|
528
463
|
- lib/avalara_sdk/models/EInvoicing/V1/signature_value.rb
|
529
464
|
- lib/avalara_sdk/models/EInvoicing/V1/signature_value_signature.rb
|
530
465
|
- lib/avalara_sdk/models/EInvoicing/V1/status_event.rb
|
531
|
-
- lib/avalara_sdk/models/EInvoicing/V1/submit_document_data.rb
|
532
466
|
- lib/avalara_sdk/models/EInvoicing/V1/submit_document_metadata.rb
|
533
467
|
- lib/avalara_sdk/models/EInvoicing/V1/submit_interop_document202_response.rb
|
534
468
|
- lib/avalara_sdk/models/EInvoicing/V1/subscription_common.rb
|
@@ -6615,6 +6549,6 @@ summary: Avalara Shipping Verification only Ruby Gem
|
|
6615
6549
|
test_files:
|
6616
6550
|
- spec/auth/oauth_helper_spec.rb
|
6617
6551
|
- spec/configuration_spec.rb
|
6618
|
-
- spec/integration/a1099_spec.rb
|
6619
6552
|
- spec/integration/einvoicing_spec.rb
|
6553
|
+
- spec/integration/a1099_spec.rb
|
6620
6554
|
- spec/spec_helper.rb
|
@@ -1,210 +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 BaseFormListRequest
|
14
|
-
attr_accessor :form_type
|
15
|
-
|
16
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
17
|
-
def self.attribute_map
|
18
|
-
{
|
19
|
-
:'form_type' => :'formType'
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
# Returns all the JSON keys this model knows about
|
24
|
-
def self.acceptable_attributes
|
25
|
-
attribute_map.values
|
26
|
-
end
|
27
|
-
|
28
|
-
# Attribute type mapping.
|
29
|
-
def self.openapi_types
|
30
|
-
{
|
31
|
-
:'form_type' => :'String'
|
32
|
-
}
|
33
|
-
end
|
34
|
-
|
35
|
-
# List of attributes with nullable: true
|
36
|
-
def self.openapi_nullable
|
37
|
-
Set.new([
|
38
|
-
])
|
39
|
-
end
|
40
|
-
|
41
|
-
# Initializes the object
|
42
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
-
def initialize(attributes = {})
|
44
|
-
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::BaseFormListRequest` initialize method"
|
46
|
-
end
|
47
|
-
|
48
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
49
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::BaseFormListRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
|
-
end
|
53
|
-
h[k.to_sym] = v
|
54
|
-
}
|
55
|
-
|
56
|
-
if attributes.key?(:'form_type')
|
57
|
-
self.form_type = attributes[:'form_type']
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
-
# @return Array for valid properties with the reasons
|
63
|
-
def list_invalid_properties
|
64
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
65
|
-
invalid_properties = Array.new
|
66
|
-
invalid_properties
|
67
|
-
end
|
68
|
-
|
69
|
-
# Check to see if the all the properties in the model are valid
|
70
|
-
# @return true if the model is valid
|
71
|
-
def valid?
|
72
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
73
|
-
true
|
74
|
-
end
|
75
|
-
|
76
|
-
# Checks equality by comparing each attribute.
|
77
|
-
# @param [Object] Object to be compared
|
78
|
-
def ==(o)
|
79
|
-
return true if self.equal?(o)
|
80
|
-
self.class == o.class &&
|
81
|
-
form_type == o.form_type
|
82
|
-
end
|
83
|
-
|
84
|
-
# @see the `==` method
|
85
|
-
# @param [Object] Object to be compared
|
86
|
-
def eql?(o)
|
87
|
-
self == o
|
88
|
-
end
|
89
|
-
|
90
|
-
# Calculates hash code according to all attributes.
|
91
|
-
# @return [Integer] Hash code
|
92
|
-
def hash
|
93
|
-
[form_type].hash
|
94
|
-
end
|
95
|
-
|
96
|
-
# Builds the object from hash
|
97
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
-
# @return [Object] Returns the model itself
|
99
|
-
def self.build_from_hash(attributes)
|
100
|
-
return nil unless attributes.is_a?(Hash)
|
101
|
-
attributes = attributes.transform_keys(&:to_sym)
|
102
|
-
transformed_hash = {}
|
103
|
-
openapi_types.each_pair do |key, type|
|
104
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
105
|
-
transformed_hash["#{key}"] = nil
|
106
|
-
elsif type =~ /\AArray<(.*)>/i
|
107
|
-
# check to ensure the input is an array given that the attribute
|
108
|
-
# is documented as an array but the input is not
|
109
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
110
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
111
|
-
end
|
112
|
-
elsif !attributes[attribute_map[key]].nil?
|
113
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
114
|
-
end
|
115
|
-
end
|
116
|
-
new(transformed_hash)
|
117
|
-
end
|
118
|
-
|
119
|
-
# Deserializes the data based on type
|
120
|
-
# @param string type Data type
|
121
|
-
# @param string value Value to be deserialized
|
122
|
-
# @return [Object] Deserialized data
|
123
|
-
def self._deserialize(type, value)
|
124
|
-
case type.to_sym
|
125
|
-
when :Time
|
126
|
-
Time.parse(value)
|
127
|
-
when :Date
|
128
|
-
Date.parse(value)
|
129
|
-
when :String
|
130
|
-
value.to_s
|
131
|
-
when :Integer
|
132
|
-
value.to_i
|
133
|
-
when :Float
|
134
|
-
value.to_f
|
135
|
-
when :Boolean
|
136
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
-
true
|
138
|
-
else
|
139
|
-
false
|
140
|
-
end
|
141
|
-
when :Object
|
142
|
-
# generic object (usually a Hash), return directly
|
143
|
-
value
|
144
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
-
inner_type = Regexp.last_match[:inner_type]
|
146
|
-
value.map { |v| _deserialize(inner_type, v) }
|
147
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
-
k_type = Regexp.last_match[:k_type]
|
149
|
-
v_type = Regexp.last_match[:v_type]
|
150
|
-
{}.tap do |hash|
|
151
|
-
value.each do |k, v|
|
152
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
-
end
|
154
|
-
end
|
155
|
-
else # model
|
156
|
-
# models (e.g. Pet) or oneOf
|
157
|
-
klass = AvalaraSdk::A1099::V2.const_get(type)
|
158
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the string representation of the object
|
163
|
-
# @return [String] String presentation of the object
|
164
|
-
def to_s
|
165
|
-
to_hash.to_s
|
166
|
-
end
|
167
|
-
|
168
|
-
# to_body is an alias to to_hash (backward compatibility)
|
169
|
-
# @return [Hash] Returns the object in the form of hash
|
170
|
-
def to_body
|
171
|
-
to_hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Returns the object in the form of hash
|
175
|
-
# @return [Hash] Returns the object in the form of hash
|
176
|
-
def to_hash
|
177
|
-
hash = {}
|
178
|
-
self.class.attribute_map.each_pair do |attr, param|
|
179
|
-
value = self.send(attr)
|
180
|
-
if value.nil?
|
181
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
|
-
end
|
184
|
-
|
185
|
-
hash[param] = _to_hash(value)
|
186
|
-
end
|
187
|
-
hash
|
188
|
-
end
|
189
|
-
|
190
|
-
# Outputs non-array value in the form of hash
|
191
|
-
# For object, use to_hash. Otherwise, just return the value
|
192
|
-
# @param [Object] value Any valid value
|
193
|
-
# @return [Hash] Returns the value in the form of hash
|
194
|
-
def _to_hash(value)
|
195
|
-
if value.is_a?(Array)
|
196
|
-
value.compact.map { |v| _to_hash(v) }
|
197
|
-
elsif value.is_a?(Hash)
|
198
|
-
{}.tap do |hash|
|
199
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
200
|
-
end
|
201
|
-
elsif value.respond_to? :to_hash
|
202
|
-
value.to_hash
|
203
|
-
else
|
204
|
-
value
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
end
|
209
|
-
|
210
|
-
end
|
@@ -1,108 +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
|
-
module BulkUpsert1099FormsRequest
|
14
|
-
class << self
|
15
|
-
# List of class defined in oneOf (OpenAPI v3)
|
16
|
-
def openapi_one_of
|
17
|
-
[
|
18
|
-
:'Form1042SList',
|
19
|
-
:'Form1095BList',
|
20
|
-
:'Form1095CList',
|
21
|
-
:'Form1099DivList',
|
22
|
-
:'Form1099IntList',
|
23
|
-
:'Form1099KList',
|
24
|
-
:'Form1099MiscList',
|
25
|
-
:'Form1099NecList',
|
26
|
-
:'Form1099RList'
|
27
|
-
]
|
28
|
-
end
|
29
|
-
|
30
|
-
# Builds the object
|
31
|
-
# @param [Mixed] Data to be matched against the list of oneOf items
|
32
|
-
# @return [Object] Returns the model or the data itself
|
33
|
-
def build(data)
|
34
|
-
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
35
|
-
# Note:
|
36
|
-
# - We do not attempt to check whether exactly one item matches.
|
37
|
-
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
38
|
-
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
39
|
-
# - TODO: scalar values are de facto behaving as if they were nullable.
|
40
|
-
# - TODO: logging when debugging is set.
|
41
|
-
openapi_one_of.each do |klass|
|
42
|
-
begin
|
43
|
-
next if klass == :AnyType # "nullable: true"
|
44
|
-
typed_data = find_and_cast_into_type(klass, data)
|
45
|
-
return typed_data if typed_data
|
46
|
-
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
openapi_one_of.include?(:AnyType) ? data : nil
|
51
|
-
end
|
52
|
-
|
53
|
-
private
|
54
|
-
|
55
|
-
SchemaMismatchError = Class.new(StandardError)
|
56
|
-
|
57
|
-
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
58
|
-
def find_and_cast_into_type(klass, data)
|
59
|
-
return if data.nil?
|
60
|
-
|
61
|
-
case klass.to_s
|
62
|
-
when 'Boolean'
|
63
|
-
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
64
|
-
when 'Float'
|
65
|
-
return data if data.instance_of?(Float)
|
66
|
-
when 'Integer'
|
67
|
-
return data if data.instance_of?(Integer)
|
68
|
-
when 'Time'
|
69
|
-
return Time.parse(data)
|
70
|
-
when 'Date'
|
71
|
-
return Date.parse(data)
|
72
|
-
when 'String'
|
73
|
-
return data if data.instance_of?(String)
|
74
|
-
when 'Object' # "type: object"
|
75
|
-
return data if data.instance_of?(Hash)
|
76
|
-
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
77
|
-
if data.instance_of?(Array)
|
78
|
-
sub_type = Regexp.last_match[:sub_type]
|
79
|
-
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
80
|
-
end
|
81
|
-
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
82
|
-
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
83
|
-
sub_type = Regexp.last_match[:sub_type]
|
84
|
-
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
85
|
-
end
|
86
|
-
else # model
|
87
|
-
const = AvalaraSdk::A1099::V2.const_get(klass)
|
88
|
-
if const
|
89
|
-
if const.respond_to?(:openapi_one_of) # nested oneOf model
|
90
|
-
model = const.build(data)
|
91
|
-
return model if model
|
92
|
-
else
|
93
|
-
# raise if data contains keys that are not known to the model
|
94
|
-
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
95
|
-
model = const.build_from_hash(data)
|
96
|
-
return model if model
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
raise # if no match by now, raise
|
102
|
-
rescue
|
103
|
-
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
end
|