diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index 640b37c..3193559 100644 --- a/docs/A1099/V2/CompaniesW9Api.md +++ b/docs/A1099/V2/CompaniesW9Api.md @@ -49,7 +49,7 @@ public class Example { CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "7c95bc18-e364-4e63-aab4-9260cdc4c00a"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "045715ac-dfd3-4f63-ba82-2276c5cb9c7b"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . CompanyRequest companyRequest = new CompanyRequest(); // CompanyRequest | The company to create try { @@ -136,7 +136,7 @@ public class Example { CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient); String id = "id_example"; // String | The company to delete String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "f5ef0c70-61e2-4454-b9ef-8bfde6bc6bb8"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "bdfb4c9b-5dd4-45c3-8dad-630ba1d31df1"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { apiInstance.deleteCompany(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -228,7 +228,7 @@ public class Example { String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. Boolean count = true; // Boolean | If true, return the global count of elements in the collection. Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - String xCorrelationId = "aa61595a-1a76-4245-ba16-fd1d202d84a9"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "d8c76c7d-ddae-47da-bfde-e696155b0689"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { PaginatedQueryResultModelCompanyResponse result = apiInstance.getCompanies(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient); @@ -321,7 +321,7 @@ public class Example { CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient); String id = "id_example"; // String | Id of the company String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "e2bddbfd-bef8-4dbd-a0b8-db8773b8848e"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "e0312268-c9e8-4db6-95bd-99d216095728"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { CompanyResponse result = apiInstance.getCompany(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -409,7 +409,7 @@ public class Example { CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient); String id = "id_example"; // String | The ID of the company to update String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "8579d504-d27d-495e-8c27-a2ab95610b10"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "715aa1d1-d1b9-4d18-adb3-fffb9e26c197"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . CompanyRequest companyRequest = new CompanyRequest(); // CompanyRequest | The updated company data try { diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index 20fd18a..3852cfd 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -52,7 +52,7 @@ public class Example { Forms1099Api apiInstance = new Forms1099Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version Boolean dryRun = false; // Boolean | defaults to false. If true, it will NOT change the DB. It will just return a report of what would've have been changed in the DB - String xCorrelationId = "0a003f2f-5501-4250-ab7b-8d19badbfc37"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "6e64cd85-8016-4753-83f5-e78c041e8ab1"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . Form1099ListRequest form1099ListRequest = new Form1099ListRequest(); // Form1099ListRequest | try { @@ -141,7 +141,7 @@ public class Example { Forms1099Api apiInstance = new Forms1099Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "57792295-a7b1-4533-b84b-80801d8a3029"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "05146ed0-5ef3-4d21-a139-bceaf30183da"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . Get1099Form200Response get1099Form200Response = new Get1099Form200Response(); // Get1099Form200Response | try { @@ -229,7 +229,7 @@ public class Example { Forms1099Api apiInstance = new Forms1099Api(apiClient); String id = "id_example"; // String | The unique identifier of the desired form to delete. String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "09b8e2c9-03af-4e93-a089-3815a9772bff"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "dfa0ca1e-71ad-4ea3-b2a0-e33a88ae9418"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { apiInstance.delete1099Form(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -317,7 +317,7 @@ public class Example { Forms1099Api apiInstance = new Forms1099Api(apiClient); String id = "id_example"; // String | String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "82187008-2768-4604-ab7e-c85895698b44"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "7cee7d23-fb69-4dd0-bbb5-e2afaf72a72e"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { Get1099Form200Response result = apiInstance.get1099Form(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -406,7 +406,7 @@ public class Example { String id = "id_example"; // String | The ID of the form String avalaraVersion = "2.0.0"; // String | API version Boolean markEdelivered = true; // Boolean | Optional boolean that if set indicates that the form should be marked as having been successfully edelivered - String xCorrelationId = "b394da48-4847-404d-9b08-ba462c76558a"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "751b64d2-bcd9-46d8-a671-cb88f65b2eb7"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { File result = apiInstance.get1099FormPdf(id, avalaraVersion, markEdelivered, xCorrelationId, xAvalaraClient); @@ -500,7 +500,7 @@ public class Example { String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. Boolean count = true; // Boolean | If true, return the global count of elements in the collection. Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - String xCorrelationId = "e0a2a426-d793-43ac-b268-ffc5de391e38"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "a5957b23-68b0-4987-b6d8-6f2246d72c27"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { PaginatedQueryResultModelForm1099Base result = apiInstance.list1099Forms(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient); @@ -593,7 +593,7 @@ public class Example { Forms1099Api apiInstance = new Forms1099Api(apiClient); String id = "id_example"; // String | String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "4ce0c187-5acb-4d13-98dd-5027249b2bae"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "f907e539-ce8b-4d8d-846e-793f9d00ba77"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . Get1099Form200Response get1099Form200Response = new Get1099Form200Response(); // Get1099Form200Response | try { diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index 983c96f..23f1301 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -53,7 +53,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "c38d2382-701f-45cd-a8f6-1266dffa2568"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "f288b7a0-8ae8-4fa4-a0e1-b294d597b7a3"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . CreateAndSendW9FormEmailRequest createAndSendW9FormEmailRequest = new CreateAndSendW9FormEmailRequest(); // CreateAndSendW9FormEmailRequest | Form to be created try { @@ -139,7 +139,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "b9de84ae-a81f-4bea-8e20-636f527a793a"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "0508a682-ec3b-4686-9f1c-800b1c16cb02"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . CreateW9FormRequest createW9FormRequest = new CreateW9FormRequest(); // CreateW9FormRequest | Form to be created try { @@ -226,7 +226,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | ID of the form to delete String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "7c3b1d91-24b2-4837-81f3-53dfee39af27"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "b6cde878-ee95-404d-864e-46cd2d3e3e85"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { apiInstance.deleteW9Form(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -311,7 +311,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | ID of the form String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "762f55d1-2a73-4d5b-bf72-8cfe3eeb88a2"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "6923a86c-3ac5-4826-8b32-b6f5c04bd49b"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { CreateW9Form201Response result = apiInstance.getW9Form(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -397,7 +397,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | Id of the form String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "89d3ec3b-0f67-45c9-a2ca-4962052f518c"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "f14992b5-c401-4059-a78e-5e4f4f389334"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { File result = apiInstance.getW9FormPdf(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -489,7 +489,7 @@ public class Example { String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. Boolean count = true; // Boolean | If true, return the global count of elements in the collection. Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - String xCorrelationId = "ce3e18ce-6c27-4e4d-8d1f-86e3c4edb2f8"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "99af27b9-a391-417e-a443-69f93286eb92"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { PaginatedQueryResultModelW9FormBaseResponse result = apiInstance.listW9Forms(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient); @@ -580,7 +580,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | The ID of the W9/W4/W8 form. String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "0984d2ea-40e7-4c14-8df6-4fb38d7b58bf"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "af3f06c2-8e69-4ce1-b283-a387ea3e7763"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { CreateW9Form201Response result = apiInstance.sendW9FormEmail(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -668,7 +668,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | ID of the form to update String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "a9ecdca0-c53b-475a-b5b2-2bab07d1a4ae"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "605a2261-2ae9-46f7-b597-d2e88867e827"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . CreateW9FormRequest createW9FormRequest = new CreateW9FormRequest(); // CreateW9FormRequest | Form to be updated try { @@ -757,7 +757,7 @@ public class Example { FormsW9Api apiInstance = new FormsW9Api(apiClient); String id = "id_example"; // String | Id of the form String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "e92920ea-0dfb-498f-a01c-b883102a2868"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "57662456-54a0-47c9-a5c5-4fe315a77ae7"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . File _file = new File("/path/to/file"); // File | try { diff --git a/docs/A1099/V2/IssuerBase.md b/docs/A1099/V2/IssuerBase.md index 1b1685d..de956d8 100644 --- a/docs/A1099/V2/IssuerBase.md +++ b/docs/A1099/V2/IssuerBase.md @@ -12,9 +12,9 @@ |**tin** | **String** | Federal Tax Identification Number (TIN). | [optional] | |**referenceId** | **String** | Internal reference ID. Never shown to any agency or recipient. If present, it will prefix download filenames. Allowed characters: letters, numbers, dashes, underscores, and spaces. | [optional] | |**telephone** | **String** | Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries. | | -|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. | | -|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | [optional] | -|**email** | **String** | Contact email address. For recipient inquiries. | | +|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. | | +|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | | +|**email** | **String** | Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email | [optional] | |**address** | **String** | Address. | | |**city** | **String** | City. | | |**state** | **String** | Two-letter US state or Canadian province code (required for US/CA addresses). | | diff --git a/docs/A1099/V2/IssuerRequest.md b/docs/A1099/V2/IssuerRequest.md index b4c16e3..2299589 100644 --- a/docs/A1099/V2/IssuerRequest.md +++ b/docs/A1099/V2/IssuerRequest.md @@ -12,9 +12,9 @@ |**tin** | **String** | Federal Tax Identification Number (TIN). | [optional] | |**referenceId** | **String** | Internal reference ID. Never shown to any agency or recipient. If present, it will prefix download filenames. Allowed characters: letters, numbers, dashes, underscores, and spaces. | [optional] | |**telephone** | **String** | Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries. | | -|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. | | -|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | [optional] | -|**email** | **String** | Contact email address. For recipient inquiries. | | +|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. | | +|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | | +|**email** | **String** | Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email | [optional] | |**address** | **String** | Address. | | |**city** | **String** | City. | | |**state** | **String** | Two-letter US state or Canadian province code (required for US/CA addresses). | | diff --git a/docs/A1099/V2/IssuerResponse.md b/docs/A1099/V2/IssuerResponse.md index 20dc13a..f4b674b 100644 --- a/docs/A1099/V2/IssuerResponse.md +++ b/docs/A1099/V2/IssuerResponse.md @@ -15,9 +15,9 @@ |**tin** | **String** | Federal Tax Identification Number (TIN). | [optional] | |**referenceId** | **String** | Internal reference ID. Never shown to any agency or recipient. If present, it will prefix download filenames. Allowed characters: letters, numbers, dashes, underscores, and spaces. | [optional] | |**telephone** | **String** | Contact phone number (must contain at least 10 digits, max 15 characters). For recipient inquiries. | | -|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. | | -|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | [optional] | -|**email** | **String** | Contact email address. For recipient inquiries. | | +|**taxYear** | **Integer** | Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. | | +|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. If there is a transfer agent, use the transfer agent's shipping address. | | +|**email** | **String** | Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email | [optional] | |**address** | **String** | Address. | | |**city** | **String** | City. | | |**state** | **String** | Two-letter US state or Canadian province code (required for US/CA addresses). | | diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index adf8f26..d904f97 100644 --- a/docs/A1099/V2/Issuers1099Api.md +++ b/docs/A1099/V2/Issuers1099Api.md @@ -49,7 +49,7 @@ public class Example { Issuers1099Api apiInstance = new Issuers1099Api(apiClient); String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "0728787f-f85c-4e15-ba07-25253a945623"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "1b668e82-569a-4e33-9b59-496c627c5239"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . IssuerRequest issuerRequest = new IssuerRequest(); // IssuerRequest | The issuer to create try { @@ -136,7 +136,7 @@ public class Example { Issuers1099Api apiInstance = new Issuers1099Api(apiClient); String id = "id_example"; // String | Id of the issuer to delete String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "8c2fac3b-c278-4322-a578-64155b016fa4"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "af861a36-f0a6-4e6c-aa8b-c4ca6b715a26"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { apiInstance.deleteIssuer(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -221,7 +221,7 @@ public class Example { Issuers1099Api apiInstance = new Issuers1099Api(apiClient); String id = "id_example"; // String | Id of the issuer to retrieve String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "e2dfb3b2-e280-4c1e-aedb-4beef717f272"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "d72af416-f173-416a-9eb6-fa3cb5ea2028"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { IssuerResponse result = apiInstance.getIssuer(id, avalaraVersion, xCorrelationId, xAvalaraClient); @@ -312,7 +312,7 @@ public class Example { String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. Boolean count = true; // Boolean | If true, return the global count of elements in the collection. Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - String xCorrelationId = "9b820982-4b99-47ce-a52a-9d9fb13ca71c"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "954f179a-8653-47ca-a40f-d7ee9ff36a61"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { PaginatedQueryResultModelIssuerResponse result = apiInstance.getIssuers(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient); @@ -405,7 +405,7 @@ public class Example { Issuers1099Api apiInstance = new Issuers1099Api(apiClient); String id = "id_example"; // String | Id of the issuer to update String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "e4f25699-cd85-43eb-929a-f4ce7a5c91b5"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "59fe2706-9acd-4fc3-8cd9-a575e82916d6"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . IssuerRequest issuerRequest = new IssuerRequest(); // IssuerRequest | The issuer to update try { diff --git a/docs/A1099/V2/JobsApi.md b/docs/A1099/V2/JobsApi.md index 52b1ca2..f3a16d3 100644 --- a/docs/A1099/V2/JobsApi.md +++ b/docs/A1099/V2/JobsApi.md @@ -46,7 +46,7 @@ public class Example { JobsApi apiInstance = new JobsApi(apiClient); String id = "id_example"; // String | Job id obtained from other API responses, like `/1099/bulk-upsert`. String avalaraVersion = "2.0.0"; // String | API version - String xCorrelationId = "120bb5f5-b0ca-4c10-8790-142f997e8336"; // String | Unique correlation Id in a GUID format + String xCorrelationId = "404add46-17ce-4740-8684-de29503d6500"; // String | Unique correlation Id in a GUID format String xAvalaraClient = "Swagger UI; 22.1.0"; // 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/) . try { JobResponse result = apiInstance.getJob(id, avalaraVersion, xCorrelationId, xAvalaraClient); diff --git a/docs/A1099/V2/StateAndLocalWithholding.md b/docs/A1099/V2/StateAndLocalWithholding.md index dd341d4..bb7a1aa 100644 --- a/docs/A1099/V2/StateAndLocalWithholding.md +++ b/docs/A1099/V2/StateAndLocalWithholding.md @@ -9,11 +9,11 @@ |------------ | ------------- | ------------- | -------------| |**stateTaxWithheld** | **Double** | Amount of state tax that was withheld | [optional] | |**state** | **String** | US state | [optional] | -|**stateIdNumber** | **String** | State ID number of the entity issuing the form | [optional] | +|**stateId** | **String** | State ID of the entity issuing the form | [optional] | |**stateIncome** | **Double** | Amount of state income | [optional] | |**localTaxWithheld** | **Double** | Amount of local tax that was withheld | [optional] | |**locality** | **String** | Locality name | [optional] | -|**localityIdNumber** | **String** | Locality ID number of the entity issuing the form | [optional] | +|**localityId** | **String** | Locality ID of the entity issuing the form | [optional] | |**localIncome** | **Double** | Amount of local income | [optional] | diff --git a/docs/A1099/V2/ValidationError.md b/docs/A1099/V2/ValidationError.md index 554e0d5..80b8e62 100644 --- a/docs/A1099/V2/ValidationError.md +++ b/docs/A1099/V2/ValidationError.md @@ -9,6 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**field** | **String** | The field containing the error | [optional] | |**errors** | **List<String>** | The list of error messages | [optional] | +|**errorCodes** | **List<String>** | The list of error codes (only present when api_error_codes flag is enabled) | [optional] | diff --git a/pom.xml b/pom.xml index 1de8ce1..69c5d7e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ avalara-sdk jar avalara-sdk - 25.11.1 + 25.11.2 https://github.com/avadev/Avalara-SDK-Java OpenAPI Java diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java index 9d97788..3a0c400 100644 --- a/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java +++ b/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java @@ -1089,7 +1089,7 @@ public UpdateCompanyRequest getUpdateCompanyRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java index ae2689c..b3a37e5 100644 --- a/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java +++ b/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java @@ -1509,7 +1509,7 @@ public Update1099FormRequest getUpdate1099FormRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java index 30d42f2..6782e6f 100644 --- a/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java +++ b/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java @@ -1841,7 +1841,7 @@ public UploadW9FilesRequest getUploadW9FilesRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java index ea41bd5..eeb399f 100644 --- a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java +++ b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java @@ -1069,7 +1069,7 @@ public UpdateIssuerRequest getUpdateIssuerRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java index 88ffbac..90d6edb 100644 --- a/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java +++ b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java @@ -275,7 +275,7 @@ public GetJobRequest getGetJobRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java index b2f7710..71d438d 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java @@ -294,7 +294,7 @@ public GetDataInputFieldsRequest getGetDataInputFieldsRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java index db17680..6cd3511 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java @@ -1105,7 +1105,7 @@ public SubmitDocumentRequest getSubmitDocumentRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java index d10d025..10e4a3e 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java @@ -300,7 +300,7 @@ public SubmitInteropDocumentRequest getSubmitInteropDocumentRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java index 31b14e7..a0c5f52 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java @@ -521,7 +521,7 @@ public GetMandatesRequest getGetMandatesRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java index efc7e6a..afb6e14 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java @@ -873,7 +873,7 @@ public ListWebhookSubscriptionsRequest getListWebhookSubscriptionsRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java index 1036422..fa2c331 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java @@ -489,7 +489,7 @@ public ValidateTaxIdentifierRequest getValidateTaxIdentifierRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java index 9d0bf12..c7c3f09 100644 --- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java +++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java @@ -1993,7 +1993,7 @@ public UpdateTradingPartnerRequest getUpdateTradingPartnerRequest() { private void SetConfiguration(ApiClient client) { if (client == null) throw new MissingFormatArgumentException("client"); - this.localVarApiClient.setSdkVersion("25.11.1"); + this.localVarApiClient.setSdkVersion("25.11.2"); } } diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerBase.java b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerBase.java index b9a70c3..5fcc0aa 100644 --- a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerBase.java +++ b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerBase.java @@ -222,7 +222,7 @@ public IssuerBase taxYear(Integer taxYear) { } /** - * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. + * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. * @return taxYear */ @javax.annotation.Nullable @@ -260,7 +260,7 @@ public IssuerBase email(String email) { } /** - * Contact email address. For recipient inquiries. + * Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email * @return email */ @javax.annotation.Nullable @@ -511,7 +511,7 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); openapiRequiredFields.add("telephone"); openapiRequiredFields.add("taxYear"); - openapiRequiredFields.add("email"); + openapiRequiredFields.add("countryCode"); openapiRequiredFields.add("address"); openapiRequiredFields.add("city"); openapiRequiredFields.add("state"); diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerRequest.java b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerRequest.java index 09de4a1..fbbb0a5 100644 --- a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerRequest.java +++ b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerRequest.java @@ -222,7 +222,7 @@ public IssuerRequest taxYear(Integer taxYear) { } /** - * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. + * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. * @return taxYear */ @javax.annotation.Nullable @@ -260,7 +260,7 @@ public IssuerRequest email(String email) { } /** - * Contact email address. For recipient inquiries. + * Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email * @return email */ @javax.annotation.Nullable @@ -511,7 +511,7 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); openapiRequiredFields.add("telephone"); openapiRequiredFields.add("taxYear"); - openapiRequiredFields.add("email"); + openapiRequiredFields.add("countryCode"); openapiRequiredFields.add("address"); openapiRequiredFields.add("city"); openapiRequiredFields.add("state"); diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerResponse.java b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerResponse.java index c3b4988..bec444d 100644 --- a/src/main/java/Avalara/SDK/model/A1099/V2/IssuerResponse.java +++ b/src/main/java/Avalara/SDK/model/A1099/V2/IssuerResponse.java @@ -292,7 +292,7 @@ public IssuerResponse taxYear(Integer taxYear) { } /** - * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. + * Tax year for which the forms are being filed (e.g., 2024). Must be within current tax year and current tax year - 4. It's only required on creation, and cannot be modified on update. * @return taxYear */ @javax.annotation.Nullable @@ -330,7 +330,7 @@ public IssuerResponse email(String email) { } /** - * Contact email address. For recipient inquiries. + * Contact email address. For recipient inquiries. Phone will be used on communications if you don't specify an email * @return email */ @javax.annotation.Nullable @@ -587,7 +587,7 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("name"); openapiRequiredFields.add("telephone"); openapiRequiredFields.add("taxYear"); - openapiRequiredFields.add("email"); + openapiRequiredFields.add("countryCode"); openapiRequiredFields.add("address"); openapiRequiredFields.add("city"); openapiRequiredFields.add("state"); diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/StateAndLocalWithholding.java b/src/main/java/Avalara/SDK/model/A1099/V2/StateAndLocalWithholding.java index 539bcfc..eb1636e 100644 --- a/src/main/java/Avalara/SDK/model/A1099/V2/StateAndLocalWithholding.java +++ b/src/main/java/Avalara/SDK/model/A1099/V2/StateAndLocalWithholding.java @@ -66,9 +66,9 @@ public class StateAndLocalWithholding { @SerializedName(SERIALIZED_NAME_STATE) private String state; - public static final String SERIALIZED_NAME_STATE_ID_NUMBER = "stateIdNumber"; - @SerializedName(SERIALIZED_NAME_STATE_ID_NUMBER) - private String stateIdNumber; + public static final String SERIALIZED_NAME_STATE_ID = "stateId"; + @SerializedName(SERIALIZED_NAME_STATE_ID) + private String stateId; public static final String SERIALIZED_NAME_STATE_INCOME = "stateIncome"; @SerializedName(SERIALIZED_NAME_STATE_INCOME) @@ -82,9 +82,9 @@ public class StateAndLocalWithholding { @SerializedName(SERIALIZED_NAME_LOCALITY) private String locality; - public static final String SERIALIZED_NAME_LOCALITY_ID_NUMBER = "localityIdNumber"; - @SerializedName(SERIALIZED_NAME_LOCALITY_ID_NUMBER) - private String localityIdNumber; + public static final String SERIALIZED_NAME_LOCALITY_ID = "localityId"; + @SerializedName(SERIALIZED_NAME_LOCALITY_ID) + private String localityId; public static final String SERIALIZED_NAME_LOCAL_INCOME = "localIncome"; @SerializedName(SERIALIZED_NAME_LOCAL_INCOME) @@ -131,22 +131,22 @@ public void setState(String state) { } - public StateAndLocalWithholding stateIdNumber(String stateIdNumber) { - this.stateIdNumber = stateIdNumber; + public StateAndLocalWithholding stateId(String stateId) { + this.stateId = stateId; return this; } /** - * State ID number of the entity issuing the form - * @return stateIdNumber + * State ID of the entity issuing the form + * @return stateId */ @javax.annotation.Nullable - public String getStateIdNumber() { - return stateIdNumber; + public String getStateId() { + return stateId; } - public void setStateIdNumber(String stateIdNumber) { - this.stateIdNumber = stateIdNumber; + public void setStateId(String stateId) { + this.stateId = stateId; } @@ -207,22 +207,22 @@ public void setLocality(String locality) { } - public StateAndLocalWithholding localityIdNumber(String localityIdNumber) { - this.localityIdNumber = localityIdNumber; + public StateAndLocalWithholding localityId(String localityId) { + this.localityId = localityId; return this; } /** - * Locality ID number of the entity issuing the form - * @return localityIdNumber + * Locality ID of the entity issuing the form + * @return localityId */ @javax.annotation.Nullable - public String getLocalityIdNumber() { - return localityIdNumber; + public String getLocalityId() { + return localityId; } - public void setLocalityIdNumber(String localityIdNumber) { - this.localityIdNumber = localityIdNumber; + public void setLocalityId(String localityId) { + this.localityId = localityId; } @@ -257,11 +257,11 @@ public boolean equals(Object o) { StateAndLocalWithholding stateAndLocalWithholding = (StateAndLocalWithholding) o; return Objects.equals(this.stateTaxWithheld, stateAndLocalWithholding.stateTaxWithheld) && Objects.equals(this.state, stateAndLocalWithholding.state) && - Objects.equals(this.stateIdNumber, stateAndLocalWithholding.stateIdNumber) && + Objects.equals(this.stateId, stateAndLocalWithholding.stateId) && Objects.equals(this.stateIncome, stateAndLocalWithholding.stateIncome) && Objects.equals(this.localTaxWithheld, stateAndLocalWithholding.localTaxWithheld) && Objects.equals(this.locality, stateAndLocalWithholding.locality) && - Objects.equals(this.localityIdNumber, stateAndLocalWithholding.localityIdNumber) && + Objects.equals(this.localityId, stateAndLocalWithholding.localityId) && Objects.equals(this.localIncome, stateAndLocalWithholding.localIncome); } @@ -271,7 +271,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(stateTaxWithheld, state, stateIdNumber, stateIncome, localTaxWithheld, locality, localityIdNumber, localIncome); + return Objects.hash(stateTaxWithheld, state, stateId, stateIncome, localTaxWithheld, locality, localityId, localIncome); } private static int hashCodeNullable(JsonNullable a) { @@ -287,11 +287,11 @@ public String toString() { sb.append("class StateAndLocalWithholding {\n"); sb.append(" stateTaxWithheld: ").append(toIndentedString(stateTaxWithheld)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); - sb.append(" stateIdNumber: ").append(toIndentedString(stateIdNumber)).append("\n"); + sb.append(" stateId: ").append(toIndentedString(stateId)).append("\n"); sb.append(" stateIncome: ").append(toIndentedString(stateIncome)).append("\n"); sb.append(" localTaxWithheld: ").append(toIndentedString(localTaxWithheld)).append("\n"); sb.append(" locality: ").append(toIndentedString(locality)).append("\n"); - sb.append(" localityIdNumber: ").append(toIndentedString(localityIdNumber)).append("\n"); + sb.append(" localityId: ").append(toIndentedString(localityId)).append("\n"); sb.append(" localIncome: ").append(toIndentedString(localIncome)).append("\n"); sb.append("}"); return sb.toString(); @@ -317,11 +317,11 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("stateTaxWithheld"); openapiFields.add("state"); - openapiFields.add("stateIdNumber"); + openapiFields.add("stateId"); openapiFields.add("stateIncome"); openapiFields.add("localTaxWithheld"); openapiFields.add("locality"); - openapiFields.add("localityIdNumber"); + openapiFields.add("localityId"); openapiFields.add("localIncome"); // a set of required properties/fields (JSON key names) @@ -352,14 +352,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); } - if ((jsonObj.get("stateIdNumber") != null && !jsonObj.get("stateIdNumber").isJsonNull()) && !jsonObj.get("stateIdNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `stateIdNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stateIdNumber").toString())); + if ((jsonObj.get("stateId") != null && !jsonObj.get("stateId").isJsonNull()) && !jsonObj.get("stateId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `stateId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stateId").toString())); } if ((jsonObj.get("locality") != null && !jsonObj.get("locality").isJsonNull()) && !jsonObj.get("locality").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `locality` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locality").toString())); } - if ((jsonObj.get("localityIdNumber") != null && !jsonObj.get("localityIdNumber").isJsonNull()) && !jsonObj.get("localityIdNumber").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `localityIdNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localityIdNumber").toString())); + if ((jsonObj.get("localityId") != null && !jsonObj.get("localityId").isJsonNull()) && !jsonObj.get("localityId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `localityId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("localityId").toString())); } } diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/ValidationError.java b/src/main/java/Avalara/SDK/model/A1099/V2/ValidationError.java index 7ef87ea..8f04dff 100644 --- a/src/main/java/Avalara/SDK/model/A1099/V2/ValidationError.java +++ b/src/main/java/Avalara/SDK/model/A1099/V2/ValidationError.java @@ -68,6 +68,10 @@ public class ValidationError { @SerializedName(SERIALIZED_NAME_ERRORS) private List errors; + public static final String SERIALIZED_NAME_ERROR_CODES = "errorCodes"; + @SerializedName(SERIALIZED_NAME_ERROR_CODES) + private List errorCodes; + public ValidationError() { } @@ -117,6 +121,33 @@ public void setErrors(List errors) { } + public ValidationError errorCodes(List errorCodes) { + this.errorCodes = errorCodes; + return this; + } + + public ValidationError addErrorCodesItem(String errorCodesItem) { + if (this.errorCodes == null) { + this.errorCodes = new ArrayList<>(); + } + this.errorCodes.add(errorCodesItem); + return this; + } + + /** + * The list of error codes (only present when api_error_codes flag is enabled) + * @return errorCodes + */ + @javax.annotation.Nullable + public List getErrorCodes() { + return errorCodes; + } + + public void setErrorCodes(List errorCodes) { + this.errorCodes = errorCodes; + } + + @Override public boolean equals(Object o) { @@ -128,7 +159,8 @@ public boolean equals(Object o) { } ValidationError validationError = (ValidationError) o; return Objects.equals(this.field, validationError.field) && - Objects.equals(this.errors, validationError.errors); + Objects.equals(this.errors, validationError.errors) && + Objects.equals(this.errorCodes, validationError.errorCodes); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -137,7 +169,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(field, errors); + return Objects.hash(field, errors, errorCodes); } private static int hashCodeNullable(JsonNullable a) { @@ -153,6 +185,7 @@ public String toString() { sb.append("class ValidationError {\n"); sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append(" errorCodes: ").append(toIndentedString(errorCodes)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,6 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("field"); openapiFields.add("errors"); + openapiFields.add("errorCodes"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -210,6 +244,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull() && !jsonObj.get("errors").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("errorCodes") != null && !jsonObj.get("errorCodes").isJsonNull() && !jsonObj.get("errorCodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `errorCodes` to be an array in the JSON string but got `%s`", jsonObj.get("errorCodes").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory {