diff --git a/Gemfile.lock b/Gemfile.lock index 60ae73b..b03d3a8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - avalara_sdk (25.8.3) + avalara_sdk (25.9.0) faraday (~> 1.0, >= 1.0.1) GEM diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index ca1bc34..79b4bf8 100644 --- a/docs/A1099/V2/CompaniesW9Api.md +++ b/docs/A1099/V2/CompaniesW9Api.md @@ -39,7 +39,7 @@ api_instance = AvalaraSdk::A1099::V2::CompaniesW9Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'a607ad38-398e-43d2-918d-d809e43dbd6b', # String | Unique correlation Id in a GUID format + x_correlation_id: '6df88900-1e19-42cb-b5a0-fc2442681327', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . company_request: AvalaraSdk::A1099::V2::CompanyRequest.new({name: 'name_example', email: 'email_example', address: 'address_example', city: 'city_example', zip: 'zip_example', telephone: 'telephone_example', tin: 'tin_example', country_code: 'country_code_example'}) # CompanyRequest | The company to create } @@ -123,7 +123,7 @@ api_instance = AvalaraSdk::A1099::V2::CompaniesW9Api.new api_client id = 'id_example' # String | The company to delete avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '54780530-dee1-472f-8626-a1ef1d6f3bfa', # String | Unique correlation Id in a GUID format + x_correlation_id: '33931030-471d-4055-be36-8dcc3c48c11d', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -210,7 +210,7 @@ opts = { order_by: 'order_by_example', # String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. count: true, # Boolean | If true, return the global count of elements in the collection. count_only: true, # Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - x_correlation_id: '7ee6e06e-ae28-4317-9053-d966f0b24a94', # String | Unique correlation Id in a GUID format + x_correlation_id: 'cf08fb7e-1d1c-43e2-a2b8-dfe7be26d43f', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -298,7 +298,7 @@ api_instance = AvalaraSdk::A1099::V2::CompaniesW9Api.new api_client id = 'id_example' # String | Id of the company avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'c2254966-bcae-4b32-a7b4-67f0518ca748', # String | Unique correlation Id in a GUID format + x_correlation_id: 'f29e8436-2c45-494b-b537-a22ae251829e', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -381,7 +381,7 @@ api_instance = AvalaraSdk::A1099::V2::CompaniesW9Api.new api_client id = 'id_example' # String | The ID of the company to update avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'b730ea19-59f4-4cc8-8ef0-94a9d4637a6a', # String | Unique correlation Id in a GUID format + x_correlation_id: '595ee1c9-2b9e-4d5a-8aa6-661b1fe4669f', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . company_request: AvalaraSdk::A1099::V2::CompanyRequest.new({name: 'name_example', email: 'email_example', address: 'address_example', city: 'city_example', zip: 'zip_example', telephone: 'telephone_example', tin: 'tin_example', country_code: 'country_code_example'}) # CompanyRequest | The updated company data } diff --git a/docs/A1099/V2/ErrorResponse.md b/docs/A1099/V2/ErrorResponse.md index 31fa425..51004dd 100644 --- a/docs/A1099/V2/ErrorResponse.md +++ b/docs/A1099/V2/ErrorResponse.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **title** | **String** | | [optional] | -| **errors** | [**Array<ErrorResponseItem>**](ErrorResponseItem.md) | | [optional] | +| **title** | **String** | A summary of the problem type. | [optional] | +| **errors** | [**Array<ErrorResponseItem>**](ErrorResponseItem.md) | A list of errors detailing the problem type. | [optional] | ## Example diff --git a/docs/A1099/V2/ErrorResponseItem.md b/docs/A1099/V2/ErrorResponseItem.md index 5216d6b..63ba750 100644 --- a/docs/A1099/V2/ErrorResponseItem.md +++ b/docs/A1099/V2/ErrorResponseItem.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **type** | **String** | | [optional] | -| **detail** | **String** | | [optional] | +| **type** | **String** | An identifier for this occurrence of the problem. It is the name of a request's field when specific to that field. Otherwise, for other types of errors, its value is empty. | [optional] | +| **detail** | **String** | An explanation specific to this occurrence of the problem. | [optional] | ## Example diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index 9dd0940..208b5a7 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -42,7 +42,7 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { dry_run: true, # 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 - x_correlation_id: '5ef65de0-c394-4aa2-b249-d8bfcbe9b23a', # String | Unique correlation Id in a GUID format + x_correlation_id: 'eec0b095-bfa8-4786-bbad-3f20a4b61ac2', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . form1099_list_request: AvalaraSdk::A1099::V2::Form1099ListRequest.new # Form1099ListRequest | } @@ -126,7 +126,7 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '5b55b569-4e1e-44d3-920c-65153461c426', # String | Unique correlation Id in a GUID format + x_correlation_id: 'ea80e3d4-6198-4297-9fff-4b12b5d270a0', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . get1099_form200_response: AvalaraSdk::A1099::V2::Form1042S.new({unique_form_id: 'unique_form_id_example', income_code: '01', gross_income: 3.56, withholding_indicator: '3', tax_country_code: 'tax_country_code_example', type: 'Form1099Nec', recipient_name: 'recipient_name_example', address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # Get1099Form200Response | } @@ -210,7 +210,7 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client id = 'id_example' # String | The unique identifier of the desired form to delete. avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'e82ee14f-7146-41a5-b856-28f403d65e29', # String | Unique correlation Id in a GUID format + x_correlation_id: '6f61d545-12cb-445a-b60c-bd21c3f78ae3', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -292,7 +292,7 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client id = 'id_example' # String | avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'f5198e72-fc87-4a4d-a09a-b2aa6cf70c38', # String | Unique correlation Id in a GUID format + x_correlation_id: '3dda6df9-8f00-4ac0-8eab-0e56263c2895', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -376,7 +376,7 @@ id = 'id_example' # String | The ID of the form avalara_version = '2.0.0' # String | API version opts = { mark_edelivered: true, # Boolean | Optional boolean that if set indicates that the form should be marked as having been successfully edelivered - x_correlation_id: '7fdfd0b2-cebf-4f25-8a65-6dd03811e77d', # String | Unique correlation Id in a GUID format + x_correlation_id: '83471033-6587-4425-a03e-1057de8d14cf', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -465,7 +465,7 @@ opts = { order_by: 'order_by_example', # String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. count: true, # Boolean | If true, return the global count of elements in the collection. count_only: true, # Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - x_correlation_id: '97f7596c-99c0-4879-b47c-57df572a32c9', # String | Unique correlation Id in a GUID format + x_correlation_id: '9cd2b713-72ed-419c-8c1f-4aeef9f6b0d4', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -553,7 +553,7 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client id = 'id_example' # String | avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '560aa857-d5ba-484b-9375-a14e9e57d7a8', # String | Unique correlation Id in a GUID format + x_correlation_id: 'b0bb9771-ffdf-4884-bac3-7cf00bf7c745', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . get1099_form200_response: AvalaraSdk::A1099::V2::Form1042S.new({unique_form_id: 'unique_form_id_example', income_code: '01', gross_income: 3.56, withholding_indicator: '3', tax_country_code: 'tax_country_code_example', type: 'Form1099Nec', recipient_name: 'recipient_name_example', address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # Get1099Form200Response | } diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index 76a5f21..b44f5cd 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -42,7 +42,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '96f3173e-05e5-496d-b7a2-8f3c8711164f', # String | Unique correlation Id in a GUID format + x_correlation_id: '0ab9baaf-56ae-484d-a812-1586d6141797', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . create_and_send_w9_form_email_request: AvalaraSdk::A1099::V2::W4FormMinimalRequest.new({email: 'email_example', employee_first_name: 'employee_first_name_example', employee_last_name: 'employee_last_name_example'}) # CreateAndSendW9FormEmailRequest | Form to be created } @@ -125,7 +125,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '4fef31cf-2985-471b-83bb-59b4bf4cee0e', # String | Unique correlation Id in a GUID format + x_correlation_id: 'd1c7d02a-c0be-4a64-9fbb-0b4aed2f526c', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . create_w9_form_request: AvalaraSdk::A1099::V2::W4FormRequest.new({employee_first_name: 'employee_first_name_example', employee_last_name: 'employee_last_name_example', tin_type: 'tin_type_example', tin: 'tin_example'}) # CreateW9FormRequest | Form to be created } @@ -209,7 +209,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client id = 'id_example' # String | ID of the form to delete avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'b1cd71dd-2fd3-483d-b611-0dd8306b5201', # String | Unique correlation Id in a GUID format + x_correlation_id: '5c349318-0f66-4478-bcc0-ce6af3c9f485', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -291,7 +291,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client id = 'id_example' # String | ID of the form avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '6d803604-fec0-4f42-9114-e77ddd25d823', # String | Unique correlation Id in a GUID format + x_correlation_id: 'f39583e2-33c6-460f-aed2-66bc23ef3b6a', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -379,7 +379,7 @@ opts = { order_by: 'order_by_example', # String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. count: true, # Boolean | If true, return the global count of elements in the collection. count_only: true, # Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - x_correlation_id: '5473c6dd-8986-4b62-b027-9a94c94f9401', # String | Unique correlation Id in a GUID format + x_correlation_id: 'a60536fb-e758-4f92-a0cd-7d99addcc735', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -467,7 +467,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client id = 'id_example' # String | The ID of the W9/W4/W8 form. avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '1204a47d-7c4d-4b63-8776-560f89e236e6', # String | Unique correlation Id in a GUID format + x_correlation_id: '8f2f717b-24cb-4bf1-9820-ded88ed93798', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -550,7 +550,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client id = 'id_example' # String | ID of the form to update avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '2f240777-dd4f-4aaf-b4b6-fcb22df6de90', # String | Unique correlation Id in a GUID format + x_correlation_id: '8688fb2d-d79c-433a-9abf-4f96ea744f32', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . create_w9_form_request: AvalaraSdk::A1099::V2::W4FormRequest.new({employee_first_name: 'employee_first_name_example', employee_last_name: 'employee_last_name_example', tin_type: 'tin_type_example', tin: 'tin_example'}) # CreateW9FormRequest | Form to be updated } @@ -635,7 +635,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client id = 'id_example' # String | Id of the form avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'ba65d92c-2a2a-4b4e-9731-c7b385d7fb59', # String | Unique correlation Id in a GUID format + x_correlation_id: '13008974-9cbc-417c-a3d1-7779277a2077', # String | Unique correlation Id in a GUID format x_avalara_client: '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('/path/to/some/file') # File | } diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index c386473..664d787 100644 --- a/docs/A1099/V2/Issuers1099Api.md +++ b/docs/A1099/V2/Issuers1099Api.md @@ -39,7 +39,7 @@ api_instance = AvalaraSdk::A1099::V2::Issuers1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '5c70e4f3-3885-4757-84f3-86323c1af033', # String | Unique correlation Id in a GUID format + x_correlation_id: '019c2b9f-42e4-424f-a440-2de4183e50c9', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . issuer_request: AvalaraSdk::A1099::V2::IssuerRequest.new({name: 'name_example', telephone: 'telephone_example', tax_year: 37, email: 'email_example', address: 'address_example', city: 'city_example', state: 'state_example', zip: 'zip_example', last_filing: false}) # IssuerRequest | The issuer to create } @@ -123,7 +123,7 @@ api_instance = AvalaraSdk::A1099::V2::Issuers1099Api.new api_client id = 'id_example' # String | Id of the issuer to delete avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'ebe59aa0-745c-44da-b86b-67ad7994619c', # String | Unique correlation Id in a GUID format + x_correlation_id: '2c4f0724-28b8-4321-940c-7aea4e6a1ae4', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -205,7 +205,7 @@ api_instance = AvalaraSdk::A1099::V2::Issuers1099Api.new api_client id = 'id_example' # String | Id of the issuer to retrieve avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'cfc604e9-15ae-4c65-a59f-123475fad2ef', # String | Unique correlation Id in a GUID format + x_correlation_id: 'e7d6ad5f-3589-4822-b711-bb658238ebf6', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -293,7 +293,7 @@ opts = { order_by: 'order_by_example', # String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. count: true, # Boolean | If true, return the global count of elements in the collection. count_only: true, # Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true. - x_correlation_id: '3302a30f-61fc-4b94-af04-c683c6064eed', # String | Unique correlation Id in a GUID format + x_correlation_id: '2c3cf6e2-a30b-4934-8dad-94105b6b668c', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } @@ -381,7 +381,7 @@ api_instance = AvalaraSdk::A1099::V2::Issuers1099Api.new api_client id = 'id_example' # String | Id of the issuer to update avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '4f30c58e-f8fd-4635-99d4-ea710f1d0182', # String | Unique correlation Id in a GUID format + x_correlation_id: '1d3cb56d-6c88-4c68-863a-81b0f64c270f', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . issuer_request: AvalaraSdk::A1099::V2::IssuerRequest.new({name: 'name_example', telephone: 'telephone_example', tax_year: 37, email: 'email_example', address: 'address_example', city: 'city_example', state: 'state_example', zip: 'zip_example', last_filing: false}) # IssuerRequest | The issuer to update } diff --git a/docs/A1099/V2/JobsApi.md b/docs/A1099/V2/JobsApi.md index c139fa2..7479a40 100644 --- a/docs/A1099/V2/JobsApi.md +++ b/docs/A1099/V2/JobsApi.md @@ -36,7 +36,7 @@ api_instance = AvalaraSdk::A1099::V2::JobsApi.new api_client id = 'id_example' # String | Job id obtained from other API responses, like `/1099/bulk-upsert`. avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: 'af6414fe-0bd6-4ddb-91bb-43108aa78fa5', # String | Unique correlation Id in a GUID format + x_correlation_id: 'a5bf9066-6d69-4811-95f8-646108327017', # String | Unique correlation Id in a GUID format x_avalara_client: '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/) . } diff --git a/docs/A1099/V2/W8ImyFormRequest.md b/docs/A1099/V2/W8ImyFormRequest.md index 76e70db..d9cff75 100644 --- a/docs/A1099/V2/W8ImyFormRequest.md +++ b/docs/A1099/V2/W8ImyFormRequest.md @@ -8,8 +8,8 @@ | **name** | **String** | The name of the individual or entity associated with the form. | | | **citizenship_country** | **String** | The country of citizenship. | | | **disregarded_entity** | **String** | The name of the disregarded entity receiving the payment (if applicable). | [optional] | -| **entity_type** | **String** | The entity type. Available values: - 1: QI (including a QDD). Complete Part III. - 2: Nonqualified intermediary. Complete Part IV. - 3: Territory financial institution. Complete Part V. - 4: U.S. branch. Complete Part VI. - 5: Withholding foreign partnership. Complete Part VII. - 6: Withholding foreign trust. Complete Part VII. - 7: Nonwithholding foreign partnership. Complete Part VIII. - 8: Nonwithholding foreign simple trust. Complete Part VIII. - 9: Nonwithholding foreign grantor trust. Complete Part VIII. | | -| **fatca_status** | **String** | The FATCA status. Available values: - 1: Nonparticipating foreign financial institution (FFI) (including an FFI related to a Reporting IGA FFI other than a deemed-compliant FFI, participating FFI, or exempt beneficial owner). Complete Part IX (if applicable). - 2: Participating FFI. - 3: Reporting Model 1 FFI. - 4: Reporting Model 2 FFI. - 5: Registered deemed-compliant FFI (other than a reporting Model 1 FFI, sponsored FFI, or nonreporting IGA FFI covered in Part XIX). - 6: Territory financial institution. Complete Part V. - 7: Sponsored FFI (other than a certified deemed-compliant sponsored, closely held investment vehicle). Complete Part X. - 8: Certified deemed-compliant nonregistering local bank. Complete Part XII. - 9: Certified deemed-compliant FFI with only low-value accounts. Complete Part XIII. - 10: Certified deemed-compliant sponsored, closely held investment vehicle. Complete Part XIV. - 11: Certified deemed-compliant limited life debt investment entity. Complete Part XV. - 12: Certain investment entities that do not maintain financial accounts. Complete Part XVI. - 13: Owner-documented FFI. Complete Part XI. - 14: Restricted distributor. Complete Part XVII. - 15: Foreign central bank of issue. Complete Part XVIII. - 16: Nonreporting IGA FFI. Complete Part XIX. - 17: Exempt retirement plans. Complete Part XX. - 18: Excepted nonfinancial group entity. Complete Part XXI. - 19: Excepted nonfinancial start-up company. Complete Part XXII. - 20: Excepted nonfinancial entity in liquidation or bankruptcy. Complete Part XXIII. - 21: Publicly traded NFFE or NFFE affiliate of a publicly traded corporation. Complete Part XXIV. - 22: Excepted territory NFFE. Complete Part XXV. - 23: Active NFFE. Complete Part XXVI. - 24: Passive NFFE. Complete Part XXVII. - 25: Direct reporting NFFE. - 26: Sponsored direct reporting NFFE. Complete Part XXVIII. | [optional] | +| **entity_type** | **String** | Represents the entity type for W-8IMY tax forms. W-8IMY forms only accept entity types 1-9, which is a subset of the full EntityType enum. | | +| **fatca_status** | **String** | Represents the FATCA status types specifically for W8-IMY forms. This is a subset of the full FatcaStatus enum, restricted to values 1-26 for W8-IMY forms. | [optional] | | **residence_address** | **String** | The residential address of the individual or entity. | [optional] | | **residence_city** | **String** | The city of residence. | [optional] | | **residence_state** | **String** | The state of residence. | [optional] | diff --git a/docs/A1099/V2/W9FormRequest.md b/docs/A1099/V2/W9FormRequest.md index 8824bd8..28a1317 100644 --- a/docs/A1099/V2/W9FormRequest.md +++ b/docs/A1099/V2/W9FormRequest.md @@ -10,8 +10,8 @@ | **business_classification** | **String** | The classification of the business. Available values: - Individual: Individual/sole proprietor - C Corporation: C Corporation - S Corporation: S Corporation - Partnership: Partnership - Trust/estate: Trust/estate - LLC-C: Limited liability company (C Corporation) - LLC-S: Limited liability company (S Corporation) - LLC-P: Limited liability company (Partnership) - Other: Other (requires BusinessOther field to be populated) | | | **business_other** | **String** | The classification description when \"businessClassification\" is \"Other\". | [optional] | | **foreign_partner_owner_or_beneficiary** | **Boolean** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] | -| **exempt_payee_code** | **String** | The exempt payee code. | [optional] | -| **exempt_fatca_code** | **String** | The exemption from FATCA reporting code. | [optional] | +| **exempt_payee_code** | **String** | The exempt payee code. Allowed values (1–13): - 1 — Organization exempt under §501(a) or IRA; custodial account under §403(b)(7) - 2 — U.S. government or its agencies/instrumentalities - 3 — U.S. state, DC, U.S. territory/possession, or their political subdivisions/agencies/instrumentalities - 4 — Foreign government or its political subdivisions/agencies/instrumentalities - 5 — Corporation - 6 — Dealer in securities or commodities required to register in the U.S., DC, or U.S. territory/possession - 7 — Futures commission merchant registered with the CFTC - 8 — Real estate investment trust (REIT) - 9 — Entity registered at all times during the tax year under the Investment Company Act of 1940 - 10 — Common trust fund operated by a bank under §584(a) - 11 — Financial institution (see §581) - 12 — Broker (nominee/custodian) - 13 — Trust exempt under §664 or described in §4947 | [optional] | +| **exempt_fatca_code** | **String** | The exemption from FATCA reporting code. Allowed values (A–M): - A — Tax‑exempt organization under §501(a) or IRA (§7701(a)(37)) - B — U.S. government or any of its agencies/instrumentalities - C — U.S. state, DC, territory/possession, or their political subdivisions/instrumentalities - D — Corporation whose stock is regularly traded on an established securities market - E — Corporation that is a member of the same expanded affiliated group as a D corporation - F — Registered dealer in securities/commodities/derivatives - G — REIT (Real Estate Investment Trust) - H — Regulated investment company (§851) or entity registered all year under the Investment Company Act of 1940 - I — Common trust fund (§584(a)) - J — Bank (§581) - K — Broker - L — Charitable remainder trust (§664) or trust described in §4947(a)(1) - M — Trust under §403(b) plan or §457(g) plan | [optional] | | **foreign_country_indicator** | **Boolean** | Indicates whether the individual or entity is in a foreign country. | [optional] | | **address** | **String** | The address of the individual or entity. | | | **foreign_address** | **String** | The foreign address of the individual or entity. | [optional] | diff --git a/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb b/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb index fa1973b..0005856 100644 --- a/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/companies_w9_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb b/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb index 318562f..e3852ff 100644 --- a/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/forms1099_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb b/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb index 2e67a95..621557f 100644 --- a/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb b/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb index 222e75d..b32c80e 100644 --- a/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/issuers1099_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/A1099/V2/jobs_api.rb b/lib/avalara_sdk/api/A1099/V2/jobs_api.rb index 39c00ea..273f65e 100644 --- a/lib/avalara_sdk/api/A1099/V2/jobs_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/jobs_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb index f8b351a..d1d75b6 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/data_input_fields_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb index 666ebc1..35043d3 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/documents_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb index 9010df3..d42219f 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/interop_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb index d73fb23..83925ad 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/mandates_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb index 872248f..312ad73 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/subscriptions_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb index ab69731..77acd96 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/tax_identifiers_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb b/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb index af6f132..d0e0d13 100644 --- a/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb +++ b/lib/avalara_sdk/api/EInvoicing/V1/trading_partners_api.rb @@ -17,7 +17,7 @@ def initialize(api_client) if (api_client.nil?) fail ArgumentError,'api_client is nil' end - api_client.set_sdk_version("25.9.0") + api_client.set_sdk_version("25.10.0") @api_client = api_client end diff --git a/lib/avalara_sdk/models/A1099/V2/error_response.rb b/lib/avalara_sdk/models/A1099/V2/error_response.rb index 313c6df..437ae2e 100644 --- a/lib/avalara_sdk/models/A1099/V2/error_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/error_response.rb @@ -11,8 +11,10 @@ module AvalaraSdk::A1099::V2 class ErrorResponse + # A summary of the problem type. attr_accessor :title + # A list of errors detailing the problem type. attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/avalara_sdk/models/A1099/V2/error_response_item.rb b/lib/avalara_sdk/models/A1099/V2/error_response_item.rb index d9e8401..b68f3bf 100644 --- a/lib/avalara_sdk/models/A1099/V2/error_response_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/error_response_item.rb @@ -11,8 +11,10 @@ module AvalaraSdk::A1099::V2 class ErrorResponseItem + # An identifier for this occurrence of the problem. It is the name of a request's field when specific to that field. Otherwise, for other types of errors, its value is empty. attr_accessor :type + # An explanation specific to this occurrence of the problem. attr_accessor :detail # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb b/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb index 9d3c69b..afd3e40 100644 --- a/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/w4_form_request.rb @@ -363,6 +363,10 @@ def valid? return false if @employee_last_name.nil? return false if @tin_type.nil? return false if @tin.nil? + state_validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"]) + return false unless state_validator.valid?(@state) + marital_status_validator = EnumAttributeValidator.new('String', ["Single", "Married", "MarriedBut"]) + return false unless marital_status_validator.valid?(@marital_status) true end @@ -376,6 +380,26 @@ def type=(type) @type = type end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] state Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"]) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] marital_status Object to be assigned + def marital_status=(marital_status) + validator = EnumAttributeValidator.new('String', ["Single", "Married", "MarriedBut"]) + unless validator.valid?(marital_status) + fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}." + end + @marital_status = marital_status + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb b/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb index 5179806..d3a8f2d 100644 --- a/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/w8_imy_form_request.rb @@ -23,10 +23,10 @@ class W8ImyFormRequest # The name of the disregarded entity receiving the payment (if applicable). attr_accessor :disregarded_entity - # The entity type. Available values: - 1: QI (including a QDD). Complete Part III. - 2: Nonqualified intermediary. Complete Part IV. - 3: Territory financial institution. Complete Part V. - 4: U.S. branch. Complete Part VI. - 5: Withholding foreign partnership. Complete Part VII. - 6: Withholding foreign trust. Complete Part VII. - 7: Nonwithholding foreign partnership. Complete Part VIII. - 8: Nonwithholding foreign simple trust. Complete Part VIII. - 9: Nonwithholding foreign grantor trust. Complete Part VIII. + # Represents the entity type for W-8IMY tax forms. W-8IMY forms only accept entity types 1-9, which is a subset of the full EntityType enum. attr_accessor :entity_type - # The FATCA status. Available values: - 1: Nonparticipating foreign financial institution (FFI) (including an FFI related to a Reporting IGA FFI other than a deemed-compliant FFI, participating FFI, or exempt beneficial owner). Complete Part IX (if applicable). - 2: Participating FFI. - 3: Reporting Model 1 FFI. - 4: Reporting Model 2 FFI. - 5: Registered deemed-compliant FFI (other than a reporting Model 1 FFI, sponsored FFI, or nonreporting IGA FFI covered in Part XIX). - 6: Territory financial institution. Complete Part V. - 7: Sponsored FFI (other than a certified deemed-compliant sponsored, closely held investment vehicle). Complete Part X. - 8: Certified deemed-compliant nonregistering local bank. Complete Part XII. - 9: Certified deemed-compliant FFI with only low-value accounts. Complete Part XIII. - 10: Certified deemed-compliant sponsored, closely held investment vehicle. Complete Part XIV. - 11: Certified deemed-compliant limited life debt investment entity. Complete Part XV. - 12: Certain investment entities that do not maintain financial accounts. Complete Part XVI. - 13: Owner-documented FFI. Complete Part XI. - 14: Restricted distributor. Complete Part XVII. - 15: Foreign central bank of issue. Complete Part XVIII. - 16: Nonreporting IGA FFI. Complete Part XIX. - 17: Exempt retirement plans. Complete Part XX. - 18: Excepted nonfinancial group entity. Complete Part XXI. - 19: Excepted nonfinancial start-up company. Complete Part XXII. - 20: Excepted nonfinancial entity in liquidation or bankruptcy. Complete Part XXIII. - 21: Publicly traded NFFE or NFFE affiliate of a publicly traded corporation. Complete Part XXIV. - 22: Excepted territory NFFE. Complete Part XXV. - 23: Active NFFE. Complete Part XXVI. - 24: Passive NFFE. Complete Part XXVII. - 25: Direct reporting NFFE. - 26: Sponsored direct reporting NFFE. Complete Part XXVIII. + # Represents the FATCA status types specifically for W8-IMY forms. This is a subset of the full FatcaStatus enum, restricted to values 1-26 for W8-IMY forms. attr_accessor :fatca_status # The residential address of the individual or entity. @@ -1279,7 +1279,15 @@ def valid? return false if @name.nil? return false if @citizenship_country.nil? return false if @entity_type.nil? + entity_type_validator = EnumAttributeValidator.new('String', ["QI", "NonqualifiedIntermediary", "TerritoryFinancialInstitution", "USBranch", "WithholdingForeignPartnership", "WithholdingForeignTrust", "NonwithholdingForeignPartnership", "NonwithholdingForeignSimpleTrust", "NonwithholdingForeignGrantorTrust"]) + return false unless entity_type_validator.valid?(@entity_type) + fatca_status_validator = EnumAttributeValidator.new('String', ["NonparticipatingFFI", "ParticipatingFFI", "ReportingModel1FFI", "ReportingModel2FFI", "RegisteredDeemedCompliantFFI", "TerritoryFinancialInstitution", "SponsoredFFI", "CertifiedDeemedCompliantNonregisteringLocalBank", "CertifiedDeemedCompliantFFIWithLowValueAccounts", "CertifiedDeemedCompliantSponsoredCloselyHeldInvestmentVehicle", "CertifiedDeemedCompliantLimitedLifeDebtInvestmentEntity", "CertainInvestmentEntitiesWithoutFinancialAccounts", "OwnerDocumentedFFI", "RestrictedDistributor", "ForeignCentralBankOfIssue", "NonreportingIGAFFI", "ExemptRetirementPlans", "ExceptedNonfinancialGroupEntity", "ExceptedNonfinancialStartUpCompany", "ExceptedNonfinancialEntityInLiquidationOrBankruptcy", "PubliclyTradedNFFEOrAffiliateOfPubliclyTradedCorporation", "ExceptedTerritoryNFFE", "ActiveNFFE", "PassiveNFFE", "DirectReportingNFFE", "SponsoredDirectReportingNFFE"]) + return false unless fatca_status_validator.valid?(@fatca_status) return false if @residence_country.nil? + disregarded_entity_fatca_status_validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5"]) + return false unless disregarded_entity_fatca_status_validator.valid?(@disregarded_entity_fatca_status) + iga_model_validator = EnumAttributeValidator.new('String', ["1", "2"]) + return false unless iga_model_validator.valid?(@iga_model) true end @@ -1293,6 +1301,46 @@ def type=(type) @type = type end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] entity_type Object to be assigned + def entity_type=(entity_type) + validator = EnumAttributeValidator.new('String', ["QI", "NonqualifiedIntermediary", "TerritoryFinancialInstitution", "USBranch", "WithholdingForeignPartnership", "WithholdingForeignTrust", "NonwithholdingForeignPartnership", "NonwithholdingForeignSimpleTrust", "NonwithholdingForeignGrantorTrust"]) + unless validator.valid?(entity_type) + fail ArgumentError, "invalid value for \"entity_type\", must be one of #{validator.allowable_values}." + end + @entity_type = entity_type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] fatca_status Object to be assigned + def fatca_status=(fatca_status) + validator = EnumAttributeValidator.new('String', ["NonparticipatingFFI", "ParticipatingFFI", "ReportingModel1FFI", "ReportingModel2FFI", "RegisteredDeemedCompliantFFI", "TerritoryFinancialInstitution", "SponsoredFFI", "CertifiedDeemedCompliantNonregisteringLocalBank", "CertifiedDeemedCompliantFFIWithLowValueAccounts", "CertifiedDeemedCompliantSponsoredCloselyHeldInvestmentVehicle", "CertifiedDeemedCompliantLimitedLifeDebtInvestmentEntity", "CertainInvestmentEntitiesWithoutFinancialAccounts", "OwnerDocumentedFFI", "RestrictedDistributor", "ForeignCentralBankOfIssue", "NonreportingIGAFFI", "ExemptRetirementPlans", "ExceptedNonfinancialGroupEntity", "ExceptedNonfinancialStartUpCompany", "ExceptedNonfinancialEntityInLiquidationOrBankruptcy", "PubliclyTradedNFFEOrAffiliateOfPubliclyTradedCorporation", "ExceptedTerritoryNFFE", "ActiveNFFE", "PassiveNFFE", "DirectReportingNFFE", "SponsoredDirectReportingNFFE"]) + unless validator.valid?(fatca_status) + fail ArgumentError, "invalid value for \"fatca_status\", must be one of #{validator.allowable_values}." + end + @fatca_status = fatca_status + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] disregarded_entity_fatca_status Object to be assigned + def disregarded_entity_fatca_status=(disregarded_entity_fatca_status) + validator = EnumAttributeValidator.new('String', ["1", "2", "3", "4", "5"]) + unless validator.valid?(disregarded_entity_fatca_status) + fail ArgumentError, "invalid value for \"disregarded_entity_fatca_status\", must be one of #{validator.allowable_values}." + end + @disregarded_entity_fatca_status = disregarded_entity_fatca_status + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] iga_model Object to be assigned + def iga_model=(iga_model) + validator = EnumAttributeValidator.new('String', ["1", "2"]) + unless validator.valid?(iga_model) + fail ArgumentError, "invalid value for \"iga_model\", must be one of #{validator.allowable_values}." + end + @iga_model = iga_model + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb b/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb index 1b2f464..aa2840c 100644 --- a/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/w9_form_request.rb @@ -29,10 +29,10 @@ class W9FormRequest # Indicates whether the individual is a foreign partner, owner, or beneficiary. attr_accessor :foreign_partner_owner_or_beneficiary - # The exempt payee code. + # The exempt payee code. Allowed values (1–13): - 1 — Organization exempt under §501(a) or IRA; custodial account under §403(b)(7) - 2 — U.S. government or its agencies/instrumentalities - 3 — U.S. state, DC, U.S. territory/possession, or their political subdivisions/agencies/instrumentalities - 4 — Foreign government or its political subdivisions/agencies/instrumentalities - 5 — Corporation - 6 — Dealer in securities or commodities required to register in the U.S., DC, or U.S. territory/possession - 7 — Futures commission merchant registered with the CFTC - 8 — Real estate investment trust (REIT) - 9 — Entity registered at all times during the tax year under the Investment Company Act of 1940 - 10 — Common trust fund operated by a bank under §584(a) - 11 — Financial institution (see §581) - 12 — Broker (nominee/custodian) - 13 — Trust exempt under §664 or described in §4947 attr_accessor :exempt_payee_code - # The exemption from FATCA reporting code. + # The exemption from FATCA reporting code. Allowed values (A–M): - A — Tax‑exempt organization under §501(a) or IRA (§7701(a)(37)) - B — U.S. government or any of its agencies/instrumentalities - C — U.S. state, DC, territory/possession, or their political subdivisions/instrumentalities - D — Corporation whose stock is regularly traded on an established securities market - E — Corporation that is a member of the same expanded affiliated group as a D corporation - F — Registered dealer in securities/commodities/derivatives - G — REIT (Real Estate Investment Trust) - H — Regulated investment company (§851) or entity registered all year under the Investment Company Act of 1940 - I — Common trust fund (§584(a)) - J — Bank (§581) - K — Broker - L — Charitable remainder trust (§664) or trust described in §4947(a)(1) - M — Trust under §403(b) plan or §457(g) plan attr_accessor :exempt_fatca_code # Indicates whether the individual or entity is in a foreign country. @@ -360,7 +360,11 @@ def valid? return false unless type_validator.valid?(@type) return false if @name.nil? return false if @business_classification.nil? + business_classification_validator = EnumAttributeValidator.new('String', ["Individual", "CCorporation", "SCorporation", "Partnership", "TrustEstate", "LlcC", "LlcS", "LlcP", "Other"]) + return false unless business_classification_validator.valid?(@business_classification) return false if @address.nil? + state_validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"]) + return false unless state_validator.valid?(@state) return false if @tin_type.nil? return false if @tin.nil? true @@ -376,6 +380,26 @@ def type=(type) @type = type end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] business_classification Object to be assigned + def business_classification=(business_classification) + validator = EnumAttributeValidator.new('String', ["Individual", "CCorporation", "SCorporation", "Partnership", "TrustEstate", "LlcC", "LlcS", "LlcP", "Other"]) + unless validator.valid?(business_classification) + fail ArgumentError, "invalid value for \"business_classification\", must be one of #{validator.allowable_values}." + end + @business_classification = business_classification + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] state Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('String', ["AA", "AE", "AK", "AL", "AP", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "FM", "GA", "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MH", "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "PR", "PW", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY"]) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o)