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
@@ -17,7 +17,7 @@ module AvalaraSdk::A1099
|
|
17
17
|
if (api_client.nil?)
|
18
18
|
fail ArgumentError,'api_client is nil'
|
19
19
|
end
|
20
|
-
api_client.set_sdk_version("25.8.
|
20
|
+
api_client.set_sdk_version("25.8.3")
|
21
21
|
@api_client = api_client
|
22
22
|
end
|
23
23
|
|
@@ -225,6 +225,93 @@ module AvalaraSdk::A1099
|
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
228
|
+
# Create a minimal W9/W4/W8 form and sends the e-mail request
|
229
|
+
# Create a minimal W9/W4/W8 form and sends the e-mail request.
|
230
|
+
# @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param create_and_send_w9_form_email_request [CreateAndSendW9FormEmailRequest] Form to be created
|
231
|
+
# @return [CreateW9Form201Response]
|
232
|
+
def create_and_send_w9_form_email(request_parameters)
|
233
|
+
data, _status_code, _headers = create_and_send_w9_form_email_with_http_info(request_parameters)
|
234
|
+
data
|
235
|
+
end
|
236
|
+
|
237
|
+
# Create a minimal W9/W4/W8 form and sends the e-mail request
|
238
|
+
# Create a minimal W9/W4/W8 form and sends the e-mail request.
|
239
|
+
|
240
|
+
# @param avalara_version [String] API version
|
241
|
+
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
242
|
+
# @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
243
|
+
# @param create_and_send_w9_form_email_request [CreateAndSendW9FormEmailRequest] Form to be created
|
244
|
+
# @return [Array<(CreateW9Form201Response, Integer, Hash)>] CreateW9Form201Response data, response status code and response headers
|
245
|
+
def create_and_send_w9_form_email_with_http_info(request_parameters)
|
246
|
+
# OAuth2 Scopes
|
247
|
+
required_scopes = ''
|
248
|
+
# Request Parameters
|
249
|
+
avalara_version = request_parameters.get_avalara_version()
|
250
|
+
x_correlation_id = request_parameters.get_x_correlation_id()
|
251
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
252
|
+
create_and_send_w9_form_email_request = request_parameters.get_create_and_send_w9_form_email_request()
|
253
|
+
# verify the required parameter 'avalara_version' is set
|
254
|
+
if @api_client.config.client_side_validation && avalara_version.nil?
|
255
|
+
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.create_and_send_w9_form_email"
|
256
|
+
end
|
257
|
+
# resource path
|
258
|
+
local_var_path = '/w9/forms/$create-and-send-email'
|
259
|
+
|
260
|
+
# query parameters
|
261
|
+
query_params = {}
|
262
|
+
|
263
|
+
# header parameters
|
264
|
+
header_params = {}
|
265
|
+
# HTTP header 'Accept' (if needed)
|
266
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
267
|
+
# HTTP header 'Content-Type'
|
268
|
+
content_type = @api_client.select_header_content_type(['application/json', 'text/json', 'application/*+json'])
|
269
|
+
if !content_type.nil?
|
270
|
+
header_params['Content-Type'] = content_type
|
271
|
+
end
|
272
|
+
if !avalara_version.nil?
|
273
|
+
header_params[:'avalara-version'] = avalara_version
|
274
|
+
end
|
275
|
+
if !x_correlation_id.nil?
|
276
|
+
header_params[:'X-Correlation-Id'] = x_correlation_id
|
277
|
+
end
|
278
|
+
if !x_avalara_client.nil?
|
279
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
280
|
+
end
|
281
|
+
|
282
|
+
# form parameters
|
283
|
+
form_params = {}
|
284
|
+
|
285
|
+
# http body (model)
|
286
|
+
post_body = @api_client.object_to_http_body(create_and_send_w9_form_email_request) || {}
|
287
|
+
|
288
|
+
# return_type
|
289
|
+
return_type = 'CreateW9Form201Response'
|
290
|
+
|
291
|
+
# auth_names
|
292
|
+
auth_names = ['bearer']
|
293
|
+
|
294
|
+
@api_client.apply_auth_to_request!(header_params, auth_names, required_scopes)
|
295
|
+
|
296
|
+
new_options = {
|
297
|
+
:operation => :"FormsW9Api.create_and_send_w9_form_email",
|
298
|
+
:header_params => header_params,
|
299
|
+
:query_params => query_params,
|
300
|
+
:form_params => form_params,
|
301
|
+
:body => post_body,
|
302
|
+
:auth_names => auth_names,
|
303
|
+
:return_type => return_type
|
304
|
+
}
|
305
|
+
|
306
|
+
response = @api_client.call_api(:POST, local_var_path, new_options, required_scopes, false, :A1099)
|
307
|
+
if new_options[:return_type]
|
308
|
+
data = deserialize(response, new_options[:return_type])
|
309
|
+
else
|
310
|
+
data = nil
|
311
|
+
end
|
312
|
+
return data, response.code, response.headers
|
313
|
+
end
|
314
|
+
|
228
315
|
# Create a W9/W4/W8 form
|
229
316
|
# Create a W9/W4/W8 form.
|
230
317
|
# @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param create_w9_form_request [CreateW9FormRequest] Form to be created
|
@@ -595,22 +682,22 @@ module AvalaraSdk::A1099
|
|
595
682
|
end
|
596
683
|
|
597
684
|
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form
|
598
|
-
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form.
|
685
|
+
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form. If the form is not in 'Requested' status, it will either use an existing descendant form in 'Requested' status or create a new minimal form and send the email request.
|
599
686
|
# @param id [String] The ID of the W9/W4/W8 form. # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
600
|
-
# @return [
|
687
|
+
# @return [CreateW9Form201Response]
|
601
688
|
def send_w9_form_email(request_parameters)
|
602
689
|
data, _status_code, _headers = send_w9_form_email_with_http_info(request_parameters)
|
603
690
|
data
|
604
691
|
end
|
605
692
|
|
606
693
|
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form
|
607
|
-
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form.
|
694
|
+
# Send an email to the vendor/payee requesting they fill out a W9/W4/W8 form. If the form is not in 'Requested' status, it will either use an existing descendant form in 'Requested' status or create a new minimal form and send the email request.
|
608
695
|
|
609
696
|
# @param id [String] The ID of the W9/W4/W8 form.
|
610
697
|
# @param avalara_version [String] API version
|
611
698
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
612
699
|
# @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
613
|
-
# @return [Array<(
|
700
|
+
# @return [Array<(CreateW9Form201Response, Integer, Hash)>] CreateW9Form201Response data, response status code and response headers
|
614
701
|
def send_w9_form_email_with_http_info(request_parameters)
|
615
702
|
# OAuth2 Scopes
|
616
703
|
required_scopes = ''
|
@@ -654,7 +741,7 @@ module AvalaraSdk::A1099
|
|
654
741
|
post_body = {}
|
655
742
|
|
656
743
|
# return_type
|
657
|
-
return_type = '
|
744
|
+
return_type = 'CreateW9Form201Response'
|
658
745
|
|
659
746
|
# auth_names
|
660
747
|
auth_names = ['bearer']
|
@@ -869,6 +956,57 @@ module AvalaraSdk::A1099
|
|
869
956
|
return data, response.code, response.headers
|
870
957
|
end
|
871
958
|
end
|
959
|
+
# Represents the Request object for the CreateAndSendW9FormEmail API
|
960
|
+
#
|
961
|
+
# @param String $avalara_version API version (required)
|
962
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
963
|
+
# @param String $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional)
|
964
|
+
# @param CreateAndSendW9FormEmailRequest $create_and_send_w9_form_email_request Form to be created (optional)
|
965
|
+
#
|
966
|
+
class CreateAndSendW9FormEmailRequestSdk
|
967
|
+
attr_accessor :avalara_version
|
968
|
+
|
969
|
+
attr_accessor :x_correlation_id
|
970
|
+
|
971
|
+
attr_accessor :x_avalara_client
|
972
|
+
|
973
|
+
attr_accessor :create_and_send_w9_form_email_request
|
974
|
+
|
975
|
+
def initialize()
|
976
|
+
end
|
977
|
+
|
978
|
+
def get_avalara_version()
|
979
|
+
return @avalara_version || '2.0'
|
980
|
+
end
|
981
|
+
|
982
|
+
def set_avalara_version(avalara_version)
|
983
|
+
@avalara_version = avalara_version
|
984
|
+
end
|
985
|
+
|
986
|
+
def get_x_correlation_id()
|
987
|
+
return @x_correlation_id
|
988
|
+
end
|
989
|
+
|
990
|
+
def set_x_correlation_id(x_correlation_id)
|
991
|
+
@x_correlation_id = x_correlation_id
|
992
|
+
end
|
993
|
+
|
994
|
+
def get_x_avalara_client()
|
995
|
+
return @x_avalara_client
|
996
|
+
end
|
997
|
+
|
998
|
+
def set_x_avalara_client(x_avalara_client)
|
999
|
+
@x_avalara_client = x_avalara_client
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
def get_create_and_send_w9_form_email_request()
|
1003
|
+
return @create_and_send_w9_form_email_request
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
def set_create_and_send_w9_form_email_request(create_and_send_w9_form_email_request)
|
1007
|
+
@create_and_send_w9_form_email_request = create_and_send_w9_form_email_request
|
1008
|
+
end
|
1009
|
+
end
|
872
1010
|
# Represents the Request object for the CreateW9Form API
|
873
1011
|
#
|
874
1012
|
# @param String $avalara_version API version (required)
|
@@ -17,7 +17,7 @@ module AvalaraSdk::A1099
|
|
17
17
|
if (api_client.nil?)
|
18
18
|
fail ArgumentError,'api_client is nil'
|
19
19
|
end
|
20
|
-
api_client.set_sdk_version("25.8.
|
20
|
+
api_client.set_sdk_version("25.8.3")
|
21
21
|
@api_client = api_client
|
22
22
|
end
|
23
23
|
|
@@ -227,7 +227,7 @@ module AvalaraSdk::A1099
|
|
227
227
|
|
228
228
|
# Create an issuer
|
229
229
|
# Create an issuer (also known as a Payer).
|
230
|
-
# @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param
|
230
|
+
# @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param create_issuer_request [CreateIssuerRequest] The issuer to create
|
231
231
|
# @return [IssuerResponse]
|
232
232
|
def create_issuer(request_parameters)
|
233
233
|
data, _status_code, _headers = create_issuer_with_http_info(request_parameters)
|
@@ -240,7 +240,7 @@ module AvalaraSdk::A1099
|
|
240
240
|
# @param avalara_version [String] API version
|
241
241
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
242
242
|
# @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
243
|
-
# @param
|
243
|
+
# @param create_issuer_request [CreateIssuerRequest] The issuer to create
|
244
244
|
# @return [Array<(IssuerResponse, Integer, Hash)>] IssuerResponse data, response status code and response headers
|
245
245
|
def create_issuer_with_http_info(request_parameters)
|
246
246
|
# OAuth2 Scopes
|
@@ -249,7 +249,7 @@ module AvalaraSdk::A1099
|
|
249
249
|
avalara_version = request_parameters.get_avalara_version()
|
250
250
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
251
251
|
x_avalara_client = request_parameters.get_x_avalara_client()
|
252
|
-
|
252
|
+
create_issuer_request = request_parameters.get_create_issuer_request()
|
253
253
|
# verify the required parameter 'avalara_version' is set
|
254
254
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
255
255
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling Issuers1099Api.create_issuer"
|
@@ -283,7 +283,7 @@ module AvalaraSdk::A1099
|
|
283
283
|
form_params = {}
|
284
284
|
|
285
285
|
# http body (model)
|
286
|
-
post_body = @api_client.object_to_http_body(
|
286
|
+
post_body = @api_client.object_to_http_body(create_issuer_request) || {}
|
287
287
|
|
288
288
|
# return_type
|
289
289
|
return_type = 'IssuerResponse'
|
@@ -596,7 +596,7 @@ module AvalaraSdk::A1099
|
|
596
596
|
|
597
597
|
# Update an issuer
|
598
598
|
# Update an issuer (also known as a Payer).
|
599
|
-
# @param id [String] Id of the issuer to update # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param
|
599
|
+
# @param id [String] Id of the issuer to update # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param create_issuer_request [CreateIssuerRequest] The issuer to update
|
600
600
|
# @return [nil]
|
601
601
|
def update_issuer(request_parameters)
|
602
602
|
update_issuer_with_http_info(request_parameters)
|
@@ -610,7 +610,7 @@ module AvalaraSdk::A1099
|
|
610
610
|
# @param avalara_version [String] API version
|
611
611
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
612
612
|
# @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
613
|
-
# @param
|
613
|
+
# @param create_issuer_request [CreateIssuerRequest] The issuer to update
|
614
614
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
615
615
|
def update_issuer_with_http_info(request_parameters)
|
616
616
|
# OAuth2 Scopes
|
@@ -620,7 +620,7 @@ module AvalaraSdk::A1099
|
|
620
620
|
avalara_version = request_parameters.get_avalara_version()
|
621
621
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
622
622
|
x_avalara_client = request_parameters.get_x_avalara_client()
|
623
|
-
|
623
|
+
create_issuer_request = request_parameters.get_create_issuer_request()
|
624
624
|
# verify the required parameter 'id' is set
|
625
625
|
if @api_client.config.client_side_validation && id.nil?
|
626
626
|
fail ArgumentError, "Missing the required parameter 'id' when calling Issuers1099Api.update_issuer"
|
@@ -658,7 +658,7 @@ module AvalaraSdk::A1099
|
|
658
658
|
form_params = {}
|
659
659
|
|
660
660
|
# http body (model)
|
661
|
-
post_body = @api_client.object_to_http_body(
|
661
|
+
post_body = @api_client.object_to_http_body(create_issuer_request) || {}
|
662
662
|
|
663
663
|
# return_type
|
664
664
|
return_type = ''
|
@@ -692,7 +692,7 @@ module AvalaraSdk::A1099
|
|
692
692
|
# @param String $avalara_version API version (required)
|
693
693
|
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
694
694
|
# @param String $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional)
|
695
|
-
# @param
|
695
|
+
# @param CreateIssuerRequest $create_issuer_request The issuer to create (optional)
|
696
696
|
#
|
697
697
|
class CreateIssuerRequestSdk
|
698
698
|
attr_accessor :avalara_version
|
@@ -701,7 +701,7 @@ module AvalaraSdk::A1099
|
|
701
701
|
|
702
702
|
attr_accessor :x_avalara_client
|
703
703
|
|
704
|
-
attr_accessor :
|
704
|
+
attr_accessor :create_issuer_request
|
705
705
|
|
706
706
|
def initialize()
|
707
707
|
end
|
@@ -730,12 +730,12 @@ module AvalaraSdk::A1099
|
|
730
730
|
@x_avalara_client = x_avalara_client
|
731
731
|
end
|
732
732
|
|
733
|
-
def
|
734
|
-
return @
|
733
|
+
def get_create_issuer_request()
|
734
|
+
return @create_issuer_request
|
735
735
|
end
|
736
736
|
|
737
|
-
def
|
738
|
-
@
|
737
|
+
def set_create_issuer_request(create_issuer_request)
|
738
|
+
@create_issuer_request = create_issuer_request
|
739
739
|
end
|
740
740
|
end
|
741
741
|
# Represents the Request object for the DeleteIssuer API
|
@@ -952,7 +952,7 @@ module AvalaraSdk::A1099
|
|
952
952
|
# @param String $avalara_version API version (required)
|
953
953
|
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
954
954
|
# @param String $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional)
|
955
|
-
# @param
|
955
|
+
# @param CreateIssuerRequest $create_issuer_request The issuer to update (optional)
|
956
956
|
#
|
957
957
|
class UpdateIssuerRequestSdk
|
958
958
|
attr_accessor :id
|
@@ -963,7 +963,7 @@ module AvalaraSdk::A1099
|
|
963
963
|
|
964
964
|
attr_accessor :x_avalara_client
|
965
965
|
|
966
|
-
attr_accessor :
|
966
|
+
attr_accessor :create_issuer_request
|
967
967
|
|
968
968
|
def initialize()
|
969
969
|
end
|
@@ -1000,12 +1000,12 @@ module AvalaraSdk::A1099
|
|
1000
1000
|
@x_avalara_client = x_avalara_client
|
1001
1001
|
end
|
1002
1002
|
|
1003
|
-
def
|
1004
|
-
return @
|
1003
|
+
def get_create_issuer_request()
|
1004
|
+
return @create_issuer_request
|
1005
1005
|
end
|
1006
1006
|
|
1007
|
-
def
|
1008
|
-
@
|
1007
|
+
def set_create_issuer_request(create_issuer_request)
|
1008
|
+
@create_issuer_request = create_issuer_request
|
1009
1009
|
end
|
1010
1010
|
end
|
1011
1011
|
end
|
@@ -10,14 +10,14 @@ require 'cgi'
|
|
10
10
|
|
11
11
|
module AvalaraSdk::A1099
|
12
12
|
module AvalaraSdk::A1099::V2
|
13
|
-
class
|
13
|
+
class JobsApi
|
14
14
|
attr_accessor :api_client
|
15
15
|
|
16
16
|
def initialize(api_client)
|
17
17
|
if (api_client.nil?)
|
18
18
|
fail ArgumentError,'api_client is nil'
|
19
19
|
end
|
20
|
-
api_client.set_sdk_version("25.8.
|
20
|
+
api_client.set_sdk_version("25.8.3")
|
21
21
|
@api_client = api_client
|
22
22
|
end
|
23
23
|
|
@@ -228,7 +228,7 @@ module AvalaraSdk::A1099
|
|
228
228
|
# Retrieves information about the job
|
229
229
|
# Retrieves information about the job
|
230
230
|
# @param id [String] Job id obtained from other API responses, like `/1099/bulk-upsert`. # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
231
|
-
# @return [
|
231
|
+
# @return [JobResponse]
|
232
232
|
def get_job(request_parameters)
|
233
233
|
data, _status_code, _headers = get_job_with_http_info(request_parameters)
|
234
234
|
data
|
@@ -241,7 +241,7 @@ module AvalaraSdk::A1099
|
|
241
241
|
# @param avalara_version [String] API version
|
242
242
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
243
243
|
# @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
|
244
|
-
# @return [Array<(
|
244
|
+
# @return [Array<(JobResponse, Integer, Hash)>] JobResponse data, response status code and response headers
|
245
245
|
def get_job_with_http_info(request_parameters)
|
246
246
|
# OAuth2 Scopes
|
247
247
|
required_scopes = ''
|
@@ -252,14 +252,14 @@ module AvalaraSdk::A1099
|
|
252
252
|
x_avalara_client = request_parameters.get_x_avalara_client()
|
253
253
|
# verify the required parameter 'id' is set
|
254
254
|
if @api_client.config.client_side_validation && id.nil?
|
255
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
255
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.get_job"
|
256
256
|
end
|
257
257
|
# verify the required parameter 'avalara_version' is set
|
258
258
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
259
|
-
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling
|
259
|
+
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling JobsApi.get_job"
|
260
260
|
end
|
261
261
|
# resource path
|
262
|
-
local_var_path = '/
|
262
|
+
local_var_path = '/jobs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
263
263
|
|
264
264
|
# query parameters
|
265
265
|
query_params = {}
|
@@ -285,7 +285,7 @@ module AvalaraSdk::A1099
|
|
285
285
|
post_body = {}
|
286
286
|
|
287
287
|
# return_type
|
288
|
-
return_type = '
|
288
|
+
return_type = 'JobResponse'
|
289
289
|
|
290
290
|
# auth_names
|
291
291
|
auth_names = ['bearer']
|
@@ -293,7 +293,7 @@ module AvalaraSdk::A1099
|
|
293
293
|
@api_client.apply_auth_to_request!(header_params, auth_names, required_scopes)
|
294
294
|
|
295
295
|
new_options = {
|
296
|
-
:operation => :"
|
296
|
+
:operation => :"JobsApi.get_job",
|
297
297
|
:header_params => header_params,
|
298
298
|
:query_params => query_params,
|
299
299
|
:form_params => form_params,
|