avalara_sdk 25.6.0 → 25.7.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/README.md +17 -3
- data/docs/A1099/V2/BulkUpsert1099FormsRequest.md +3 -1
- data/docs/A1099/V2/CompaniesW9Api.md +45 -31
- data/docs/A1099/V2/CoveredIndividualReference.md +58 -0
- data/docs/A1099/V2/CoveredIndividualRequest.md +54 -0
- data/docs/A1099/V2/Form1095B.md +86 -0
- data/docs/A1099/V2/Form1095BList.md +20 -0
- data/docs/A1099/V2/Form1095BListItem.md +74 -0
- data/docs/A1099/V2/Form1095BRequest.md +76 -0
- data/docs/A1099/V2/Form1099Base.md +8 -8
- data/docs/A1099/V2/Form1099DivListItem.md +11 -11
- data/docs/A1099/V2/Form1099DivRequest.md +11 -17
- data/docs/A1099/V2/Form1099DivResponse.md +88 -0
- data/docs/A1099/V2/Form1099K.md +8 -8
- data/docs/A1099/V2/Form1099KListItem.md +11 -11
- data/docs/A1099/V2/Form1099KRequest.md +11 -17
- data/docs/A1099/V2/Form1099List.md +1 -1
- data/docs/A1099/V2/Form1099ListDataInner.md +32 -0
- data/docs/A1099/V2/Form1099Misc.md +8 -8
- data/docs/A1099/V2/Form1099MiscListItem.md +11 -11
- data/docs/A1099/V2/Form1099MiscRequest.md +11 -17
- data/docs/A1099/V2/Form1099MiscResponse.md +120 -0
- data/docs/A1099/V2/Form1099Nec.md +8 -8
- data/docs/A1099/V2/Form1099NecListItem.md +11 -11
- data/docs/A1099/V2/Form1099NecRequest.md +11 -17
- data/docs/A1099/V2/Form1099NecResponse.md +96 -0
- data/docs/A1099/V2/Form1099R.md +8 -8
- data/docs/A1099/V2/Form1099RListItem.md +11 -11
- data/docs/A1099/V2/Form1099RRequest.md +11 -17
- data/docs/A1099/V2/FormRequestBase.md +9 -13
- data/docs/A1099/V2/FormRequestCsvBase.md +66 -0
- data/docs/A1099/V2/FormResponseBase.md +43 -9
- data/docs/A1099/V2/FormSingleRequestBase.md +11 -15
- data/docs/A1099/V2/Forms1099Api.md +75 -57
- data/docs/A1099/V2/FormsW9Api.md +63 -123
- data/docs/A1099/V2/Get1099Form200Response.md +55 -0
- data/docs/A1099/V2/IncludedBase.md +20 -0
- data/docs/A1099/V2/Issuers1099Api.md +45 -31
- data/docs/A1099/V2/Jobs1099Api.md +10 -6
- data/docs/A1099/V2/StateAndLocalWithholdingResponse.md +32 -0
- data/docs/A1099/V2/StateEfileStatusDetail.md +1 -1
- data/docs/A1099/V2/StateEfileStatusDetailApp.md +22 -0
- data/docs/A1099/V2/StatusDetail.md +20 -0
- data/docs/A1099/V2/Update1099Form200Response.md +53 -0
- data/docs/A1099/V2/ValidationErrorApp.md +20 -0
- data/docs/EInvoicing/V1/DataInputFieldsApi.md +4 -4
- data/docs/EInvoicing/V1/DocumentsApi.md +2 -2
- data/docs/EInvoicing/V1/MandatesApi.md +4 -4
- data/docs/EInvoicing/V1/SubscriptionsApi.md +4 -4
- data/docs/EInvoicing/V1/TradingPartnersApi.md +4 -4
- data/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +103 -43
- data/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +171 -87
- data/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +135 -176
- data/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +103 -43
- data/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +19 -7
- data/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +4 -4
- data/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +1 -1
- data/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +6 -6
- data/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +7 -7
- data/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_reference.rb +403 -0
- data/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +378 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b.rb +572 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list.rb +238 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +538 -0
- data/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +559 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_base.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +600 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_k.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +56 -37
- data/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +80 -54
- data/lib/avalara_sdk/models/A1099/V2/form1099_list.rb +1 -1
- data/lib/avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb +20 -68
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +744 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +78 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +636 -0
- data/lib/avalara_sdk/models/A1099/V2/form1099_r.rb +29 -29
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +56 -36
- data/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +80 -53
- data/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +68 -44
- data/lib/avalara_sdk/models/A1099/V2/form_request_csv_base.rb +475 -0
- data/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +252 -31
- data/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +80 -44
- data/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +104 -0
- data/lib/avalara_sdk/models/A1099/V2/included_base.rb +219 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_request.rb +1 -0
- data/lib/avalara_sdk/models/A1099/V2/state_and_local_withholding_response.rb +274 -0
- data/lib/avalara_sdk/models/A1099/V2/state_efile_status_detail_app.rb +231 -0
- data/lib/avalara_sdk/models/A1099/V2/status_detail.rb +221 -0
- data/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +103 -0
- data/lib/avalara_sdk/models/A1099/V2/validation_error_app.rb +229 -0
- data/lib/avalara_sdk/version.rb +1 -1
- data/lib/avalara_sdk.rb +17 -0
- data/spec/integration/a1099_spec.rb +12 -12
- 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 +36 -2
@@ -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.
|
20
|
+
api_client.set_sdk_version("25.7.0")
|
21
21
|
@api_client = api_client
|
22
22
|
end
|
23
23
|
|
@@ -226,7 +226,7 @@ module AvalaraSdk::A1099
|
|
226
226
|
end
|
227
227
|
|
228
228
|
# Create a W9/W4/W8 form
|
229
|
-
# @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be created
|
229
|
+
# @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 iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be created
|
230
230
|
# @return [IW9FormDataModelsOneOf]
|
231
231
|
def create_w9_form(request_parameters)
|
232
232
|
data, _status_code, _headers = create_w9_form_with_http_info(request_parameters)
|
@@ -237,6 +237,7 @@ module AvalaraSdk::A1099
|
|
237
237
|
|
238
238
|
# @param avalara_version [String] API version
|
239
239
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
240
|
+
# @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/) .
|
240
241
|
# @param iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be created
|
241
242
|
# @return [Array<(IW9FormDataModelsOneOf, Integer, Hash)>] IW9FormDataModelsOneOf data, response status code and response headers
|
242
243
|
def create_w9_form_with_http_info(request_parameters)
|
@@ -245,15 +246,12 @@ module AvalaraSdk::A1099
|
|
245
246
|
# Request Parameters
|
246
247
|
avalara_version = request_parameters.get_avalara_version()
|
247
248
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
249
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
248
250
|
iw9_form_data_models_one_of = request_parameters.get_iw9_form_data_models_one_of()
|
249
251
|
# verify the required parameter 'avalara_version' is set
|
250
252
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
251
253
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.create_w9_form"
|
252
254
|
end
|
253
|
-
# verify the required parameter 'x_correlation_id' is set
|
254
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
255
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.create_w9_form"
|
256
|
-
end
|
257
255
|
# resource path
|
258
256
|
local_var_path = '/w9/forms'
|
259
257
|
|
@@ -275,6 +273,9 @@ module AvalaraSdk::A1099
|
|
275
273
|
if !x_correlation_id.nil?
|
276
274
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
277
275
|
end
|
276
|
+
if !x_avalara_client.nil?
|
277
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
278
|
+
end
|
278
279
|
|
279
280
|
# form parameters
|
280
281
|
form_params = {}
|
@@ -311,7 +312,7 @@ module AvalaraSdk::A1099
|
|
311
312
|
|
312
313
|
# Delete a form
|
313
314
|
# Delete a form
|
314
|
-
# @param id [String] Id of the form to delete # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format
|
315
|
+
# @param id [String] Id of the form to delete # @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/) .
|
315
316
|
# @return [nil]
|
316
317
|
def delete_w9_form(request_parameters)
|
317
318
|
delete_w9_form_with_http_info(request_parameters)
|
@@ -324,6 +325,7 @@ module AvalaraSdk::A1099
|
|
324
325
|
# @param id [String] Id of the form to delete
|
325
326
|
# @param avalara_version [String] API version
|
326
327
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
328
|
+
# @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/) .
|
327
329
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
328
330
|
def delete_w9_form_with_http_info(request_parameters)
|
329
331
|
# OAuth2 Scopes
|
@@ -332,6 +334,7 @@ module AvalaraSdk::A1099
|
|
332
334
|
id = request_parameters.get_id()
|
333
335
|
avalara_version = request_parameters.get_avalara_version()
|
334
336
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
337
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
335
338
|
# verify the required parameter 'id' is set
|
336
339
|
if @api_client.config.client_side_validation && id.nil?
|
337
340
|
fail ArgumentError, "Missing the required parameter 'id' when calling FormsW9Api.delete_w9_form"
|
@@ -340,10 +343,6 @@ module AvalaraSdk::A1099
|
|
340
343
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
341
344
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.delete_w9_form"
|
342
345
|
end
|
343
|
-
# verify the required parameter 'x_correlation_id' is set
|
344
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
345
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.delete_w9_form"
|
346
|
-
end
|
347
346
|
# resource path
|
348
347
|
local_var_path = '/w9/forms/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
349
348
|
|
@@ -360,6 +359,9 @@ module AvalaraSdk::A1099
|
|
360
359
|
if !x_correlation_id.nil?
|
361
360
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
362
361
|
end
|
362
|
+
if !x_avalara_client.nil?
|
363
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
364
|
+
end
|
363
365
|
|
364
366
|
# form parameters
|
365
367
|
form_params = {}
|
@@ -396,7 +398,7 @@ module AvalaraSdk::A1099
|
|
396
398
|
|
397
399
|
# Retrieve a W9/W4/W8 form
|
398
400
|
# Retrieve a W9/W4/W8 form
|
399
|
-
# @param id [String] Id of the form # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format
|
401
|
+
# @param id [String] Id of the 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/) .
|
400
402
|
# @return [IW9FormDataModelsOneOf]
|
401
403
|
def get_w9_form(request_parameters)
|
402
404
|
data, _status_code, _headers = get_w9_form_with_http_info(request_parameters)
|
@@ -409,6 +411,7 @@ module AvalaraSdk::A1099
|
|
409
411
|
# @param id [String] Id of the form
|
410
412
|
# @param avalara_version [String] API version
|
411
413
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
414
|
+
# @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/) .
|
412
415
|
# @return [Array<(IW9FormDataModelsOneOf, Integer, Hash)>] IW9FormDataModelsOneOf data, response status code and response headers
|
413
416
|
def get_w9_form_with_http_info(request_parameters)
|
414
417
|
# OAuth2 Scopes
|
@@ -417,6 +420,7 @@ module AvalaraSdk::A1099
|
|
417
420
|
id = request_parameters.get_id()
|
418
421
|
avalara_version = request_parameters.get_avalara_version()
|
419
422
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
423
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
420
424
|
# verify the required parameter 'id' is set
|
421
425
|
if @api_client.config.client_side_validation && id.nil?
|
422
426
|
fail ArgumentError, "Missing the required parameter 'id' when calling FormsW9Api.get_w9_form"
|
@@ -425,10 +429,6 @@ module AvalaraSdk::A1099
|
|
425
429
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
426
430
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.get_w9_form"
|
427
431
|
end
|
428
|
-
# verify the required parameter 'x_correlation_id' is set
|
429
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
430
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.get_w9_form"
|
431
|
-
end
|
432
432
|
# resource path
|
433
433
|
local_var_path = '/w9/forms/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
434
434
|
|
@@ -445,6 +445,9 @@ module AvalaraSdk::A1099
|
|
445
445
|
if !x_correlation_id.nil?
|
446
446
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
447
447
|
end
|
448
|
+
if !x_avalara_client.nil?
|
449
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
450
|
+
end
|
448
451
|
|
449
452
|
# form parameters
|
450
453
|
form_params = {}
|
@@ -479,94 +482,9 @@ module AvalaraSdk::A1099
|
|
479
482
|
return data, response.code, response.headers
|
480
483
|
end
|
481
484
|
|
482
|
-
# Retrieve a form request
|
483
|
-
# Retrieve a form request after creation: not likely to be useful except in testing. Previously-valid form requests will be Not Found after `expires_at`.
|
484
|
-
# @param form_request_id [String] # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format
|
485
|
-
# @return [FormRequestModel]
|
486
|
-
def get_w9_form_request(request_parameters)
|
487
|
-
data, _status_code, _headers = get_w9_form_request_with_http_info(request_parameters)
|
488
|
-
data
|
489
|
-
end
|
490
|
-
|
491
|
-
# Retrieve a form request
|
492
|
-
# Retrieve a form request after creation: not likely to be useful except in testing. Previously-valid form requests will be Not Found after `expires_at`.
|
493
|
-
|
494
|
-
# @param form_request_id [String]
|
495
|
-
# @param avalara_version [String] API version
|
496
|
-
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
497
|
-
# @return [Array<(FormRequestModel, Integer, Hash)>] FormRequestModel data, response status code and response headers
|
498
|
-
def get_w9_form_request_with_http_info(request_parameters)
|
499
|
-
# OAuth2 Scopes
|
500
|
-
required_scopes = ''
|
501
|
-
# Request Parameters
|
502
|
-
form_request_id = request_parameters.get_form_request_id()
|
503
|
-
avalara_version = request_parameters.get_avalara_version()
|
504
|
-
x_correlation_id = request_parameters.get_x_correlation_id()
|
505
|
-
# verify the required parameter 'form_request_id' is set
|
506
|
-
if @api_client.config.client_side_validation && form_request_id.nil?
|
507
|
-
fail ArgumentError, "Missing the required parameter 'form_request_id' when calling FormsW9Api.get_w9_form_request"
|
508
|
-
end
|
509
|
-
# verify the required parameter 'avalara_version' is set
|
510
|
-
if @api_client.config.client_side_validation && avalara_version.nil?
|
511
|
-
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.get_w9_form_request"
|
512
|
-
end
|
513
|
-
# verify the required parameter 'x_correlation_id' is set
|
514
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
515
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.get_w9_form_request"
|
516
|
-
end
|
517
|
-
# resource path
|
518
|
-
local_var_path = '/w9/forms/requests/{formRequestId}'.sub('{' + 'formRequestId' + '}', CGI.escape(form_request_id.to_s))
|
519
|
-
|
520
|
-
# query parameters
|
521
|
-
query_params = {}
|
522
|
-
|
523
|
-
# header parameters
|
524
|
-
header_params = {}
|
525
|
-
# HTTP header 'Accept' (if needed)
|
526
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
527
|
-
if !avalara_version.nil?
|
528
|
-
header_params[:'avalara-version'] = avalara_version
|
529
|
-
end
|
530
|
-
if !x_correlation_id.nil?
|
531
|
-
header_params[:'X-Correlation-Id'] = x_correlation_id
|
532
|
-
end
|
533
|
-
|
534
|
-
# form parameters
|
535
|
-
form_params = {}
|
536
|
-
|
537
|
-
# http body (model)
|
538
|
-
post_body = {}
|
539
|
-
|
540
|
-
# return_type
|
541
|
-
return_type = 'FormRequestModel'
|
542
|
-
|
543
|
-
# auth_names
|
544
|
-
auth_names = ['bearer']
|
545
|
-
|
546
|
-
@api_client.apply_auth_to_request!(header_params, auth_names, required_scopes)
|
547
|
-
|
548
|
-
new_options = {
|
549
|
-
:operation => :"FormsW9Api.get_w9_form_request",
|
550
|
-
:header_params => header_params,
|
551
|
-
:query_params => query_params,
|
552
|
-
:form_params => form_params,
|
553
|
-
:body => post_body,
|
554
|
-
:auth_names => auth_names,
|
555
|
-
:return_type => return_type
|
556
|
-
}
|
557
|
-
|
558
|
-
response = @api_client.call_api(:GET, local_var_path, new_options, required_scopes, false, :A1099)
|
559
|
-
if new_options[:return_type]
|
560
|
-
data = deserialize(response, new_options[:return_type])
|
561
|
-
else
|
562
|
-
data = nil
|
563
|
-
end
|
564
|
-
return data, response.code, response.headers
|
565
|
-
end
|
566
|
-
|
567
485
|
# List W9/W4/W8 forms.
|
568
486
|
# List W9/W4/W8 forms.
|
569
|
-
# @param avalara_version [String] API version # @param
|
487
|
+
# @param avalara_version [String] API version # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. # @param top [Integer] If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. # @param order_by [String] A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. # @param count [Boolean] When true, returns a @recordSetCount in the result set # @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/) .
|
570
488
|
# @return [PaginatedW9FormsModel]
|
571
489
|
def list_w9_forms(request_parameters)
|
572
490
|
data, _status_code, _headers = list_w9_forms_with_http_info(request_parameters)
|
@@ -577,32 +495,30 @@ module AvalaraSdk::A1099
|
|
577
495
|
# List W9/W4/W8 forms.
|
578
496
|
|
579
497
|
# @param avalara_version [String] API version
|
580
|
-
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
581
498
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>.
|
582
499
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
583
500
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets.
|
584
501
|
# @param order_by [String] A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.
|
585
502
|
# @param count [Boolean] When true, returns a @recordSetCount in the result set
|
503
|
+
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
504
|
+
# @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/) .
|
586
505
|
# @return [Array<(PaginatedW9FormsModel, Integer, Hash)>] PaginatedW9FormsModel data, response status code and response headers
|
587
506
|
def list_w9_forms_with_http_info(request_parameters)
|
588
507
|
# OAuth2 Scopes
|
589
508
|
required_scopes = ''
|
590
509
|
# Request Parameters
|
591
510
|
avalara_version = request_parameters.get_avalara_version()
|
592
|
-
x_correlation_id = request_parameters.get_x_correlation_id()
|
593
511
|
filter = request_parameters.get_filter()
|
594
512
|
top = request_parameters.get_top()
|
595
513
|
skip = request_parameters.get_skip()
|
596
514
|
order_by = request_parameters.get_order_by()
|
597
515
|
count = request_parameters.get_count()
|
516
|
+
x_correlation_id = request_parameters.get_x_correlation_id()
|
517
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
598
518
|
# verify the required parameter 'avalara_version' is set
|
599
519
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
600
520
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.list_w9_forms"
|
601
521
|
end
|
602
|
-
# verify the required parameter 'x_correlation_id' is set
|
603
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
604
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.list_w9_forms"
|
605
|
-
end
|
606
522
|
# resource path
|
607
523
|
local_var_path = '/w9/forms'
|
608
524
|
|
@@ -634,6 +550,9 @@ module AvalaraSdk::A1099
|
|
634
550
|
if !x_correlation_id.nil?
|
635
551
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
636
552
|
end
|
553
|
+
if !x_avalara_client.nil?
|
554
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
555
|
+
end
|
637
556
|
|
638
557
|
# form parameters
|
639
558
|
form_params = {}
|
@@ -669,7 +588,7 @@ module AvalaraSdk::A1099
|
|
669
588
|
end
|
670
589
|
|
671
590
|
# Sends a W9 email request to a vendor/payee
|
672
|
-
# @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
|
591
|
+
# @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/) .
|
673
592
|
# @return [IW9FormDataModelsOneOf]
|
674
593
|
def send_w9_form_email(request_parameters)
|
675
594
|
data, _status_code, _headers = send_w9_form_email_with_http_info(request_parameters)
|
@@ -681,6 +600,7 @@ module AvalaraSdk::A1099
|
|
681
600
|
# @param id [String] The ID of the W9/W4/W8 form.
|
682
601
|
# @param avalara_version [String] API version
|
683
602
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
603
|
+
# @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/) .
|
684
604
|
# @return [Array<(IW9FormDataModelsOneOf, Integer, Hash)>] IW9FormDataModelsOneOf data, response status code and response headers
|
685
605
|
def send_w9_form_email_with_http_info(request_parameters)
|
686
606
|
# OAuth2 Scopes
|
@@ -689,6 +609,7 @@ module AvalaraSdk::A1099
|
|
689
609
|
id = request_parameters.get_id()
|
690
610
|
avalara_version = request_parameters.get_avalara_version()
|
691
611
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
612
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
692
613
|
# verify the required parameter 'id' is set
|
693
614
|
if @api_client.config.client_side_validation && id.nil?
|
694
615
|
fail ArgumentError, "Missing the required parameter 'id' when calling FormsW9Api.send_w9_form_email"
|
@@ -697,10 +618,6 @@ module AvalaraSdk::A1099
|
|
697
618
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
698
619
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.send_w9_form_email"
|
699
620
|
end
|
700
|
-
# verify the required parameter 'x_correlation_id' is set
|
701
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
702
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.send_w9_form_email"
|
703
|
-
end
|
704
621
|
# resource path
|
705
622
|
local_var_path = '/w9/forms/{id}/$send-email'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
706
623
|
|
@@ -717,6 +634,9 @@ module AvalaraSdk::A1099
|
|
717
634
|
if !x_correlation_id.nil?
|
718
635
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
719
636
|
end
|
637
|
+
if !x_avalara_client.nil?
|
638
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
639
|
+
end
|
720
640
|
|
721
641
|
# form parameters
|
722
642
|
form_params = {}
|
@@ -752,7 +672,7 @@ module AvalaraSdk::A1099
|
|
752
672
|
end
|
753
673
|
|
754
674
|
# Update a W9/W4/W8 form
|
755
|
-
# @param id [String] Id of the form to update # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be updated
|
675
|
+
# @param id [String] Id of the form 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 iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be updated
|
756
676
|
# @return [IW9FormDataModelsOneOf]
|
757
677
|
def update_w9_form(request_parameters)
|
758
678
|
data, _status_code, _headers = update_w9_form_with_http_info(request_parameters)
|
@@ -764,6 +684,7 @@ module AvalaraSdk::A1099
|
|
764
684
|
# @param id [String] Id of the form to update
|
765
685
|
# @param avalara_version [String] API version
|
766
686
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
687
|
+
# @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/) .
|
767
688
|
# @param iw9_form_data_models_one_of [IW9FormDataModelsOneOf] Form to be updated
|
768
689
|
# @return [Array<(IW9FormDataModelsOneOf, Integer, Hash)>] IW9FormDataModelsOneOf data, response status code and response headers
|
769
690
|
def update_w9_form_with_http_info(request_parameters)
|
@@ -773,6 +694,7 @@ module AvalaraSdk::A1099
|
|
773
694
|
id = request_parameters.get_id()
|
774
695
|
avalara_version = request_parameters.get_avalara_version()
|
775
696
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
697
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
776
698
|
iw9_form_data_models_one_of = request_parameters.get_iw9_form_data_models_one_of()
|
777
699
|
# verify the required parameter 'id' is set
|
778
700
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -782,10 +704,6 @@ module AvalaraSdk::A1099
|
|
782
704
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
783
705
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.update_w9_form"
|
784
706
|
end
|
785
|
-
# verify the required parameter 'x_correlation_id' is set
|
786
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
787
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.update_w9_form"
|
788
|
-
end
|
789
707
|
# resource path
|
790
708
|
local_var_path = '/w9/forms/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
791
709
|
|
@@ -807,6 +725,9 @@ module AvalaraSdk::A1099
|
|
807
725
|
if !x_correlation_id.nil?
|
808
726
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
809
727
|
end
|
728
|
+
if !x_avalara_client.nil?
|
729
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
730
|
+
end
|
810
731
|
|
811
732
|
# form parameters
|
812
733
|
form_params = {}
|
@@ -843,7 +764,7 @@ module AvalaraSdk::A1099
|
|
843
764
|
|
844
765
|
# Upload files for a W9/W4/W8 form
|
845
766
|
# Upload files for a W9/W4/W8 form
|
846
|
-
# @param id [String] Id of the form # @param avalara_version [String] API version # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param file [File]
|
767
|
+
# @param id [String] Id of the 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/) . # @param file [File]
|
847
768
|
# @return [String]
|
848
769
|
def upload_w9_files(request_parameters)
|
849
770
|
data, _status_code, _headers = upload_w9_files_with_http_info(request_parameters)
|
@@ -856,6 +777,7 @@ module AvalaraSdk::A1099
|
|
856
777
|
# @param id [String] Id of the form
|
857
778
|
# @param avalara_version [String] API version
|
858
779
|
# @param x_correlation_id [String] Unique correlation Id in a GUID format
|
780
|
+
# @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/) .
|
859
781
|
# @param file [File]
|
860
782
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
861
783
|
def upload_w9_files_with_http_info(request_parameters)
|
@@ -865,6 +787,7 @@ module AvalaraSdk::A1099
|
|
865
787
|
id = request_parameters.get_id()
|
866
788
|
avalara_version = request_parameters.get_avalara_version()
|
867
789
|
x_correlation_id = request_parameters.get_x_correlation_id()
|
790
|
+
x_avalara_client = request_parameters.get_x_avalara_client()
|
868
791
|
file = request_parameters.get_file()
|
869
792
|
# verify the required parameter 'id' is set
|
870
793
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -874,10 +797,6 @@ module AvalaraSdk::A1099
|
|
874
797
|
if @api_client.config.client_side_validation && avalara_version.nil?
|
875
798
|
fail ArgumentError, "Missing the required parameter 'avalara_version' when calling FormsW9Api.upload_w9_files"
|
876
799
|
end
|
877
|
-
# verify the required parameter 'x_correlation_id' is set
|
878
|
-
if @api_client.config.client_side_validation && x_correlation_id.nil?
|
879
|
-
fail ArgumentError, "Missing the required parameter 'x_correlation_id' when calling FormsW9Api.upload_w9_files"
|
880
|
-
end
|
881
800
|
# resource path
|
882
801
|
local_var_path = '/w9/forms/{id}/attachment'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
883
802
|
|
@@ -899,6 +818,9 @@ module AvalaraSdk::A1099
|
|
899
818
|
if !x_correlation_id.nil?
|
900
819
|
header_params[:'X-Correlation-Id'] = x_correlation_id
|
901
820
|
end
|
821
|
+
if !x_avalara_client.nil?
|
822
|
+
header_params[:'X-Avalara-Client'] = x_avalara_client
|
823
|
+
end
|
902
824
|
|
903
825
|
# form parameters
|
904
826
|
form_params = {}
|
@@ -939,7 +861,8 @@ module AvalaraSdk::A1099
|
|
939
861
|
# Represents the Request object for the CreateW9Form API
|
940
862
|
#
|
941
863
|
# @param String $avalara_version API version (required)
|
942
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
864
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
865
|
+
# @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)
|
943
866
|
# @param IW9FormDataModelsOneOf $iw9_form_data_models_one_of Form to be created (optional)
|
944
867
|
#
|
945
868
|
class CreateW9FormRequestSdk
|
@@ -947,6 +870,8 @@ module AvalaraSdk::A1099
|
|
947
870
|
|
948
871
|
attr_accessor :x_correlation_id
|
949
872
|
|
873
|
+
attr_accessor :x_avalara_client
|
874
|
+
|
950
875
|
attr_accessor :iw9_form_data_models_one_of
|
951
876
|
|
952
877
|
def initialize()
|
@@ -968,6 +893,14 @@ module AvalaraSdk::A1099
|
|
968
893
|
@x_correlation_id = x_correlation_id
|
969
894
|
end
|
970
895
|
|
896
|
+
def get_x_avalara_client()
|
897
|
+
return @x_avalara_client
|
898
|
+
end
|
899
|
+
|
900
|
+
def set_x_avalara_client(x_avalara_client)
|
901
|
+
@x_avalara_client = x_avalara_client
|
902
|
+
end
|
903
|
+
|
971
904
|
def get_iw9_form_data_models_one_of()
|
972
905
|
return @iw9_form_data_models_one_of
|
973
906
|
end
|
@@ -980,7 +913,8 @@ module AvalaraSdk::A1099
|
|
980
913
|
#
|
981
914
|
# @param String $id Id of the form to delete (required)
|
982
915
|
# @param String $avalara_version API version (required)
|
983
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
916
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
917
|
+
# @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)
|
984
918
|
#
|
985
919
|
class DeleteW9FormRequestSdk
|
986
920
|
attr_accessor :id
|
@@ -989,6 +923,8 @@ module AvalaraSdk::A1099
|
|
989
923
|
|
990
924
|
attr_accessor :x_correlation_id
|
991
925
|
|
926
|
+
attr_accessor :x_avalara_client
|
927
|
+
|
992
928
|
def initialize()
|
993
929
|
end
|
994
930
|
|
@@ -1015,12 +951,21 @@ module AvalaraSdk::A1099
|
|
1015
951
|
def set_x_correlation_id(x_correlation_id)
|
1016
952
|
@x_correlation_id = x_correlation_id
|
1017
953
|
end
|
954
|
+
|
955
|
+
def get_x_avalara_client()
|
956
|
+
return @x_avalara_client
|
957
|
+
end
|
958
|
+
|
959
|
+
def set_x_avalara_client(x_avalara_client)
|
960
|
+
@x_avalara_client = x_avalara_client
|
961
|
+
end
|
1018
962
|
end
|
1019
963
|
# Represents the Request object for the GetW9Form API
|
1020
964
|
#
|
1021
965
|
# @param String $id Id of the form (required)
|
1022
966
|
# @param String $avalara_version API version (required)
|
1023
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
967
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
968
|
+
# @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)
|
1024
969
|
#
|
1025
970
|
class GetW9FormRequestSdk
|
1026
971
|
attr_accessor :id
|
@@ -1029,6 +974,8 @@ module AvalaraSdk::A1099
|
|
1029
974
|
|
1030
975
|
attr_accessor :x_correlation_id
|
1031
976
|
|
977
|
+
attr_accessor :x_avalara_client
|
978
|
+
|
1032
979
|
def initialize()
|
1033
980
|
end
|
1034
981
|
|
@@ -1055,62 +1002,29 @@ module AvalaraSdk::A1099
|
|
1055
1002
|
def set_x_correlation_id(x_correlation_id)
|
1056
1003
|
@x_correlation_id = x_correlation_id
|
1057
1004
|
end
|
1058
|
-
end
|
1059
|
-
# Represents the Request object for the GetW9FormRequest API
|
1060
|
-
#
|
1061
|
-
# @param String $form_request_id (required)
|
1062
|
-
# @param String $avalara_version API version (required)
|
1063
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (required)
|
1064
|
-
#
|
1065
|
-
class GetW9FormRequestRequestSdk
|
1066
|
-
attr_accessor :form_request_id
|
1067
|
-
|
1068
|
-
attr_accessor :avalara_version
|
1069
|
-
|
1070
|
-
attr_accessor :x_correlation_id
|
1071
|
-
|
1072
|
-
def initialize()
|
1073
|
-
end
|
1074
|
-
|
1075
|
-
def get_form_request_id()
|
1076
|
-
return @form_request_id
|
1077
|
-
end
|
1078
|
-
|
1079
|
-
def set_form_request_id(form_request_id)
|
1080
|
-
@form_request_id = form_request_id
|
1081
|
-
end
|
1082
|
-
|
1083
|
-
def get_avalara_version()
|
1084
|
-
return @avalara_version || '2.0'
|
1085
|
-
end
|
1086
|
-
|
1087
|
-
def set_avalara_version(avalara_version)
|
1088
|
-
@avalara_version = avalara_version
|
1089
|
-
end
|
1090
1005
|
|
1091
|
-
def
|
1092
|
-
return @
|
1006
|
+
def get_x_avalara_client()
|
1007
|
+
return @x_avalara_client
|
1093
1008
|
end
|
1094
1009
|
|
1095
|
-
def
|
1096
|
-
@
|
1010
|
+
def set_x_avalara_client(x_avalara_client)
|
1011
|
+
@x_avalara_client = x_avalara_client
|
1097
1012
|
end
|
1098
1013
|
end
|
1099
1014
|
# Represents the Request object for the ListW9Forms API
|
1100
1015
|
#
|
1101
1016
|
# @param String $avalara_version API version (required)
|
1102
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (required)
|
1103
1017
|
# @param String $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. (optional)
|
1104
1018
|
# @param Integer $top If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional, default to 10)
|
1105
1019
|
# @param Integer $skip If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional, default to 0)
|
1106
1020
|
# @param String $order_by A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional)
|
1107
1021
|
# @param Boolean $count When true, returns a @recordSetCount in the result set (optional)
|
1022
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
1023
|
+
# @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)
|
1108
1024
|
#
|
1109
1025
|
class ListW9FormsRequestSdk
|
1110
1026
|
attr_accessor :avalara_version
|
1111
1027
|
|
1112
|
-
attr_accessor :x_correlation_id
|
1113
|
-
|
1114
1028
|
attr_accessor :filter
|
1115
1029
|
|
1116
1030
|
attr_accessor :top
|
@@ -1121,6 +1035,10 @@ module AvalaraSdk::A1099
|
|
1121
1035
|
|
1122
1036
|
attr_accessor :count
|
1123
1037
|
|
1038
|
+
attr_accessor :x_correlation_id
|
1039
|
+
|
1040
|
+
attr_accessor :x_avalara_client
|
1041
|
+
|
1124
1042
|
def initialize()
|
1125
1043
|
end
|
1126
1044
|
|
@@ -1132,14 +1050,6 @@ module AvalaraSdk::A1099
|
|
1132
1050
|
@avalara_version = avalara_version
|
1133
1051
|
end
|
1134
1052
|
|
1135
|
-
def get_x_correlation_id()
|
1136
|
-
return @x_correlation_id
|
1137
|
-
end
|
1138
|
-
|
1139
|
-
def set_x_correlation_id(x_correlation_id)
|
1140
|
-
@x_correlation_id = x_correlation_id
|
1141
|
-
end
|
1142
|
-
|
1143
1053
|
def get_filter()
|
1144
1054
|
return @filter
|
1145
1055
|
end
|
@@ -1179,12 +1089,29 @@ module AvalaraSdk::A1099
|
|
1179
1089
|
def set_count(count)
|
1180
1090
|
@count = count
|
1181
1091
|
end
|
1092
|
+
|
1093
|
+
def get_x_correlation_id()
|
1094
|
+
return @x_correlation_id
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
def set_x_correlation_id(x_correlation_id)
|
1098
|
+
@x_correlation_id = x_correlation_id
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
def get_x_avalara_client()
|
1102
|
+
return @x_avalara_client
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
def set_x_avalara_client(x_avalara_client)
|
1106
|
+
@x_avalara_client = x_avalara_client
|
1107
|
+
end
|
1182
1108
|
end
|
1183
1109
|
# Represents the Request object for the SendW9FormEmail API
|
1184
1110
|
#
|
1185
1111
|
# @param String $id The ID of the W9/W4/W8 form. (required)
|
1186
1112
|
# @param String $avalara_version API version (required)
|
1187
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
1113
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
1114
|
+
# @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)
|
1188
1115
|
#
|
1189
1116
|
class SendW9FormEmailRequestSdk
|
1190
1117
|
attr_accessor :id
|
@@ -1193,6 +1120,8 @@ module AvalaraSdk::A1099
|
|
1193
1120
|
|
1194
1121
|
attr_accessor :x_correlation_id
|
1195
1122
|
|
1123
|
+
attr_accessor :x_avalara_client
|
1124
|
+
|
1196
1125
|
def initialize()
|
1197
1126
|
end
|
1198
1127
|
|
@@ -1219,12 +1148,21 @@ module AvalaraSdk::A1099
|
|
1219
1148
|
def set_x_correlation_id(x_correlation_id)
|
1220
1149
|
@x_correlation_id = x_correlation_id
|
1221
1150
|
end
|
1151
|
+
|
1152
|
+
def get_x_avalara_client()
|
1153
|
+
return @x_avalara_client
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
def set_x_avalara_client(x_avalara_client)
|
1157
|
+
@x_avalara_client = x_avalara_client
|
1158
|
+
end
|
1222
1159
|
end
|
1223
1160
|
# Represents the Request object for the UpdateW9Form API
|
1224
1161
|
#
|
1225
1162
|
# @param String $id Id of the form to update (required)
|
1226
1163
|
# @param String $avalara_version API version (required)
|
1227
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
1164
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
1165
|
+
# @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)
|
1228
1166
|
# @param IW9FormDataModelsOneOf $iw9_form_data_models_one_of Form to be updated (optional)
|
1229
1167
|
#
|
1230
1168
|
class UpdateW9FormRequestSdk
|
@@ -1234,6 +1172,8 @@ module AvalaraSdk::A1099
|
|
1234
1172
|
|
1235
1173
|
attr_accessor :x_correlation_id
|
1236
1174
|
|
1175
|
+
attr_accessor :x_avalara_client
|
1176
|
+
|
1237
1177
|
attr_accessor :iw9_form_data_models_one_of
|
1238
1178
|
|
1239
1179
|
def initialize()
|
@@ -1263,6 +1203,14 @@ module AvalaraSdk::A1099
|
|
1263
1203
|
@x_correlation_id = x_correlation_id
|
1264
1204
|
end
|
1265
1205
|
|
1206
|
+
def get_x_avalara_client()
|
1207
|
+
return @x_avalara_client
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
def set_x_avalara_client(x_avalara_client)
|
1211
|
+
@x_avalara_client = x_avalara_client
|
1212
|
+
end
|
1213
|
+
|
1266
1214
|
def get_iw9_form_data_models_one_of()
|
1267
1215
|
return @iw9_form_data_models_one_of
|
1268
1216
|
end
|
@@ -1275,7 +1223,8 @@ module AvalaraSdk::A1099
|
|
1275
1223
|
#
|
1276
1224
|
# @param String $id Id of the form (required)
|
1277
1225
|
# @param String $avalara_version API version (required)
|
1278
|
-
# @param String $x_correlation_id Unique correlation Id in a GUID format (
|
1226
|
+
# @param String $x_correlation_id Unique correlation Id in a GUID format (optional)
|
1227
|
+
# @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)
|
1279
1228
|
# @param File $file file (optional)
|
1280
1229
|
#
|
1281
1230
|
class UploadW9FilesRequestSdk
|
@@ -1285,6 +1234,8 @@ module AvalaraSdk::A1099
|
|
1285
1234
|
|
1286
1235
|
attr_accessor :x_correlation_id
|
1287
1236
|
|
1237
|
+
attr_accessor :x_avalara_client
|
1238
|
+
|
1288
1239
|
attr_accessor :file
|
1289
1240
|
|
1290
1241
|
def initialize()
|
@@ -1314,6 +1265,14 @@ module AvalaraSdk::A1099
|
|
1314
1265
|
@x_correlation_id = x_correlation_id
|
1315
1266
|
end
|
1316
1267
|
|
1268
|
+
def get_x_avalara_client()
|
1269
|
+
return @x_avalara_client
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def set_x_avalara_client(x_avalara_client)
|
1273
|
+
@x_avalara_client = x_avalara_client
|
1274
|
+
end
|
1275
|
+
|
1317
1276
|
def get_file()
|
1318
1277
|
return @file
|
1319
1278
|
end
|