From f51549850046c6836faeb0f86a1e8b9f4265f07f Mon Sep 17 00:00:00 2001 From: Jonathan Wenger Date: Wed, 30 Jul 2025 19:13:23 -0700 Subject: [PATCH 1/2] 25.8.1 --- README.md | 8 +- docs/A1099/V2/BulkUpsert1099FormsRequest.md | 2 + docs/A1099/V2/CompaniesW9Api.md | 12 +- docs/A1099/V2/CoveredIndividualRequest.md | 52 +- docs/A1099/V2/Create1099Form201Response.md | 2 + docs/A1099/V2/Form1042SListItem.md | 12 +- docs/A1099/V2/Form1042SListItemResponse.md | 28 +- docs/A1099/V2/Form1042SRequest.md | 16 +- docs/A1099/V2/Form1042SResponse.md | 16 +- docs/A1099/V2/Form1095BListItem.md | 14 +- docs/A1099/V2/Form1095BListItemResponse.md | 28 +- docs/A1099/V2/Form1095BRequest.md | 14 +- docs/A1099/V2/Form1095CList.md | 20 + docs/A1099/V2/Form1095CListItem.md | 88 ++ docs/A1099/V2/Form1099BaseResponse.md | 28 +- docs/A1099/V2/Form1099DivListItem.md | 24 +- docs/A1099/V2/Form1099DivListItemResponse.md | 130 +++ docs/A1099/V2/Form1099DivRequest.md | 24 +- docs/A1099/V2/Form1099DivResponse.md | 16 +- docs/A1099/V2/Form1099KListItem.md | 14 +- docs/A1099/V2/Form1099KListItemResponse.md | 28 +- docs/A1099/V2/Form1099KRequest.md | 22 +- docs/A1099/V2/Form1099KResponse.md | 132 +++ .../V2/Form1099ListResponseValueInner.md | 2 + docs/A1099/V2/Form1099MiscListItem.md | 20 +- docs/A1099/V2/Form1099MiscListItemResponse.md | 46 +- docs/A1099/V2/Form1099MiscRequest.md | 20 +- docs/A1099/V2/Form1099MiscResponse.md | 22 +- docs/A1099/V2/Form1099NecListItem.md | 16 +- docs/A1099/V2/Form1099NecListItemResponse.md | 28 +- docs/A1099/V2/Form1099NecRequest.md | 16 +- docs/A1099/V2/Form1099NecResponse.md | 18 +- docs/A1099/V2/Form1099RListItem.md | 14 +- docs/A1099/V2/Form1099RListItemResponse.md | 28 +- docs/A1099/V2/Form1099RRequest.md | 14 +- docs/A1099/V2/FormRequestBase.md | 14 +- docs/A1099/V2/FormRequestListItemBase.md | 14 +- docs/A1099/V2/FormResponseBase.md | 16 +- docs/A1099/V2/FormSingleRequestBase.md | 14 +- docs/A1099/V2/Forms1099Api.md | 22 +- docs/A1099/V2/FormsW9Api.md | 14 +- docs/A1099/V2/Get1099Form200Response.md | 2 + docs/A1099/V2/ICreateForm1099Request.md | 2 + docs/A1099/V2/IUpdateForm1099Request.md | 2 + docs/A1099/V2/IrsResponse.md | 20 + docs/A1099/V2/Issuers1099Api.md | 12 +- docs/A1099/V2/Jobs1099Api.md | 2 +- docs/A1099/V2/OfferAndCoverageRequest.md | 26 + docs/A1099/V2/TinMatchStatusResponse.md | 22 + docs/A1099/V2/Update1099Form200Response.md | 2 + docs/A1099/V2/W9FormResponse.md | 2 + lib/avalara_sdk.rb | 7 + .../api/A1099/V2/companies_w9_api.rb | 2 +- lib/avalara_sdk/api/A1099/V2/forms1099_api.rb | 6 +- lib/avalara_sdk/api/A1099/V2/forms_w9_api.rb | 2 +- .../api/A1099/V2/issuers1099_api.rb | 2 +- lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb | 2 +- .../EInvoicing/V1/data_input_fields_api.rb | 2 +- .../api/EInvoicing/V1/documents_api.rb | 2 +- .../api/EInvoicing/V1/interop_api.rb | 2 +- .../api/EInvoicing/V1/mandates_api.rb | 2 +- .../api/EInvoicing/V1/subscriptions_api.rb | 2 +- .../api/EInvoicing/V1/tax_identifiers_api.rb | 2 +- .../api/EInvoicing/V1/trading_partners_api.rb | 2 +- .../A1099/V2/bulk_upsert1099_forms_request.rb | 1 + .../A1099/V2/covered_individual_request.rb | 158 +-- .../A1099/V2/create1099_form201_response.rb | 1 + .../models/A1099/V2/form1042_s_list_item.rb | 69 +- .../A1099/V2/form1042_s_list_item_response.rb | 79 +- .../models/A1099/V2/form1042_s_request.rb | 93 +- .../models/A1099/V2/form1042_s_response.rb | 67 +- .../models/A1099/V2/form1095_b_list_item.rb | 79 +- .../A1099/V2/form1095_b_list_item_response.rb | 89 +- .../models/A1099/V2/form1095_b_request.rb | 83 +- .../models/A1099/V2/form1095_c_list.rb | 238 +++++ .../models/A1099/V2/form1095_c_list_item.rb | 722 ++++++++++++++ .../models/A1099/V2/form1099_base_response.rb | 89 +- .../models/A1099/V2/form1099_div_list_item.rb | 124 ++- .../V2/form1099_div_list_item_response.rb | 931 ++++++++++++++++++ .../models/A1099/V2/form1099_div_request.rb | 128 +-- .../models/A1099/V2/form1099_div_response.rb | 67 +- .../models/A1099/V2/form1099_k_list_item.rb | 79 +- .../A1099/V2/form1099_k_list_item_response.rb | 89 +- .../models/A1099/V2/form1099_k_request.rb | 111 ++- .../models/A1099/V2/form1099_k_response.rb | 839 ++++++++++++++++ .../V2/form1099_list_response_value_inner.rb | 1 + .../A1099/V2/form1099_misc_list_item.rb | 101 +- .../V2/form1099_misc_list_item_response.rb | 156 ++- .../models/A1099/V2/form1099_misc_request.rb | 105 +- .../models/A1099/V2/form1099_misc_response.rb | 88 +- .../models/A1099/V2/form1099_nec_list_item.rb | 89 +- .../V2/form1099_nec_list_item_response.rb | 89 +- .../models/A1099/V2/form1099_nec_request.rb | 93 +- .../models/A1099/V2/form1099_nec_response.rb | 76 +- .../models/A1099/V2/form1099_r_list_item.rb | 79 +- .../A1099/V2/form1099_r_list_item_response.rb | 89 +- .../models/A1099/V2/form1099_r_request.rb | 83 +- .../models/A1099/V2/form_request_base.rb | 79 +- .../A1099/V2/form_request_list_item_base.rb | 79 +- .../models/A1099/V2/form_response_base.rb | 67 +- .../A1099/V2/form_single_request_base.rb | 83 +- .../A1099/V2/get1099_form200_response.rb | 1 + .../A1099/V2/i_create_form1099_request.rb | 1 + .../A1099/V2/i_update_form1099_request.rb | 1 + .../models/A1099/V2/irs_response.rb | 221 +++++ .../A1099/V2/offer_and_coverage_request.rb | 256 +++++ .../A1099/V2/tin_match_status_response.rb | 267 +++++ .../A1099/V2/update1099_form200_response.rb | 1 + .../models/A1099/V2/w9_form_response.rb | 12 +- 109 files changed, 6022 insertions(+), 1426 deletions(-) create mode 100644 docs/A1099/V2/Form1095CList.md create mode 100644 docs/A1099/V2/Form1095CListItem.md create mode 100644 docs/A1099/V2/Form1099DivListItemResponse.md create mode 100644 docs/A1099/V2/Form1099KResponse.md create mode 100644 docs/A1099/V2/IrsResponse.md create mode 100644 docs/A1099/V2/OfferAndCoverageRequest.md create mode 100644 docs/A1099/V2/TinMatchStatusResponse.md create mode 100644 lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/irs_response.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb create mode 100644 lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb diff --git a/README.md b/README.md index fa94ddf..a6bf23a 100644 --- a/README.md +++ b/README.md @@ -217,15 +217,19 @@ Class | Method | HTTP request | Description - [models.Form1095BListItem](docs/A1099/V2/Form1095BListItem.md) - [models.Form1095BListItemResponse](docs/A1099/V2/Form1095BListItemResponse.md) - [models.Form1095BRequest](docs/A1099/V2/Form1095BRequest.md) + - [models.Form1095CList](docs/A1099/V2/Form1095CList.md) + - [models.Form1095CListItem](docs/A1099/V2/Form1095CListItem.md) - [models.Form1099BaseResponse](docs/A1099/V2/Form1099BaseResponse.md) - [models.Form1099DivList](docs/A1099/V2/Form1099DivList.md) - [models.Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) + - [models.Form1099DivListItemResponse](docs/A1099/V2/Form1099DivListItemResponse.md) - [models.Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) - [models.Form1099DivResponse](docs/A1099/V2/Form1099DivResponse.md) - [models.Form1099KList](docs/A1099/V2/Form1099KList.md) - [models.Form1099KListItem](docs/A1099/V2/Form1099KListItem.md) - [models.Form1099KListItemResponse](docs/A1099/V2/Form1099KListItemResponse.md) - [models.Form1099KRequest](docs/A1099/V2/Form1099KRequest.md) + - [models.Form1099KResponse](docs/A1099/V2/Form1099KResponse.md) - [models.Form1099ListResponse](docs/A1099/V2/Form1099ListResponse.md) - [models.Form1099ListResponseValueInner](docs/A1099/V2/Form1099ListResponseValueInner.md) - [models.Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) @@ -243,7 +247,6 @@ Class | Method | HTTP request | Description - [models.Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) - [models.Form1099RListItemResponse](docs/A1099/V2/Form1099RListItemResponse.md) - [models.Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) - - [models.Form1099StatusDetailResponse](docs/A1099/V2/Form1099StatusDetailResponse.md) - [models.FormRequestBase](docs/A1099/V2/FormRequestBase.md) - [models.FormRequestListItemBase](docs/A1099/V2/FormRequestListItemBase.md) - [models.FormResponseBase](docs/A1099/V2/FormResponseBase.md) @@ -256,10 +259,12 @@ Class | Method | HTTP request | Description - [models.IntermediaryOrFlowThrough](docs/A1099/V2/IntermediaryOrFlowThrough.md) - [models.IntermediaryOrFlowThroughRequest](docs/A1099/V2/IntermediaryOrFlowThroughRequest.md) - [models.IntermediaryOrFlowThroughResponse](docs/A1099/V2/IntermediaryOrFlowThroughResponse.md) + - [models.IrsResponse](docs/A1099/V2/IrsResponse.md) - [models.IssuerCommand](docs/A1099/V2/IssuerCommand.md) - [models.IssuerResponse](docs/A1099/V2/IssuerResponse.md) - [models.JobResult](docs/A1099/V2/JobResult.md) - [models.Link](docs/A1099/V2/Link.md) + - [models.OfferAndCoverageRequest](docs/A1099/V2/OfferAndCoverageRequest.md) - [models.PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) - [models.PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) - [models.PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) @@ -274,6 +279,7 @@ Class | Method | HTTP request | Description - [models.StatusDetail](docs/A1099/V2/StatusDetail.md) - [models.SubstantialUsOwnerRequest](docs/A1099/V2/SubstantialUsOwnerRequest.md) - [models.SubstantialUsOwnerResponse](docs/A1099/V2/SubstantialUsOwnerResponse.md) + - [models.TinMatchStatusResponse](docs/A1099/V2/TinMatchStatusResponse.md) - [models.Update1099Form200Response](docs/A1099/V2/Update1099Form200Response.md) - [models.ValidationErrorResponse](docs/A1099/V2/ValidationErrorResponse.md) - [models.W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) diff --git a/docs/A1099/V2/BulkUpsert1099FormsRequest.md b/docs/A1099/V2/BulkUpsert1099FormsRequest.md index 642e252..f80aebc 100644 --- a/docs/A1099/V2/BulkUpsert1099FormsRequest.md +++ b/docs/A1099/V2/BulkUpsert1099FormsRequest.md @@ -16,6 +16,7 @@ AvalaraSdk::A1099::V2::BulkUpsert1099FormsRequest.openapi_one_of # [ # :'Form1042SList', # :'Form1095BList', +# :'Form1095CList', # :'Form1099DivList', # :'Form1099KList', # :'Form1099MiscList', @@ -50,6 +51,7 @@ AvalaraSdk::A1099::V2::BulkUpsert1099FormsRequest.build(data_that_doesnt_match) - `Form1042SList` - `Form1095BList` +- `Form1095CList` - `Form1099DivList` - `Form1099KList` - `Form1099MiscList` diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index 114dfe9..e66f0ef 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: '144f810d-5777-472b-b372-c1028d9a13ae', # String | Unique correlation Id in a GUID format + x_correlation_id: '097506be-b40b-4107-8d62-206070d11548', # 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_create_update_request_model: AvalaraSdk::A1099::V2::CompanyCreateUpdateRequestModel.new # CompanyCreateUpdateRequestModel | 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: 'db071c51-528f-4929-a031-523aa34002d1', # String | Unique correlation Id in a GUID format + x_correlation_id: '3af2abb1-7024-4cc7-9c52-53e793e1c863', # 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/) . } @@ -204,13 +204,13 @@ api_instance = AvalaraSdk::A1099::V2::CompaniesW9Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - filter: 'filter_example', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. + filter: 'name eq 'company name'', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. top: 56, # Integer | If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. skip: 56, # Integer | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. 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: '7ad30f3a-b27d-440e-98da-516663741d89', # String | Unique correlation Id in a GUID format + x_correlation_id: 'bbe9eb96-736f-4c5c-99d7-9df8f66819b3', # 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: '77521b27-805c-40b1-a6c8-3d6339acba99', # String | Unique correlation Id in a GUID format + x_correlation_id: 'e6013371-7d72-4c3d-8a5f-c4e08177c3ae', # 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: '9b982dee-5208-416e-8acf-84070e235acc', # String | Unique correlation Id in a GUID format + x_correlation_id: 'd8a0cb91-eb8b-4bd6-8812-2b690995afcc', # 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_create_update_request_model: AvalaraSdk::A1099::V2::CompanyCreateUpdateRequestModel.new # CompanyCreateUpdateRequestModel | The updated company data } diff --git a/docs/A1099/V2/CoveredIndividualRequest.md b/docs/A1099/V2/CoveredIndividualRequest.md index ec40116..b8e457e 100644 --- a/docs/A1099/V2/CoveredIndividualRequest.md +++ b/docs/A1099/V2/CoveredIndividualRequest.md @@ -10,19 +10,19 @@ | **name_suffix** | **String** | Covered individual's name suffix | [optional] | | **tin** | **String** | Covered individual's TIN (SSN or ITIN) | [optional] | | **birth_date** | **Time** | Covered individual's date of birth | [optional] | -| **covered_month_indicator0** | **Boolean** | Coverage indicator for all 12 months | [optional] | -| **covered_month_indicator1** | **Boolean** | Coverage indicator for January | [optional] | -| **covered_month_indicator2** | **Boolean** | Coverage indicator for February | [optional] | -| **covered_month_indicator3** | **Boolean** | Coverage indicator for March | [optional] | -| **covered_month_indicator4** | **Boolean** | Coverage indicator for April | [optional] | -| **covered_month_indicator5** | **Boolean** | Coverage indicator for May | [optional] | -| **covered_month_indicator6** | **Boolean** | Coverage indicator for June | [optional] | -| **covered_month_indicator7** | **Boolean** | Coverage indicator for July | [optional] | -| **covered_month_indicator8** | **Boolean** | Coverage indicator for August | [optional] | -| **covered_month_indicator9** | **Boolean** | Coverage indicator for September | [optional] | -| **covered_month_indicator10** | **Boolean** | Coverage indicator for October | [optional] | -| **covered_month_indicator11** | **Boolean** | Coverage indicator for November | [optional] | -| **covered_month_indicator12** | **Boolean** | Coverage indicator for December | [optional] | +| **covered_all_months** | **Boolean** | Coverage indicator for all 12 months | [optional] | +| **covered_january** | **Boolean** | Coverage indicator for January | [optional] | +| **covered_february** | **Boolean** | Coverage indicator for February | [optional] | +| **covered_march** | **Boolean** | Coverage indicator for March | [optional] | +| **covered_april** | **Boolean** | Coverage indicator for April | [optional] | +| **covered_may** | **Boolean** | Coverage indicator for May | [optional] | +| **covered_june** | **Boolean** | Coverage indicator for June | [optional] | +| **covered_july** | **Boolean** | Coverage indicator for July | [optional] | +| **covered_august** | **Boolean** | Coverage indicator for August | [optional] | +| **covered_september** | **Boolean** | Coverage indicator for September | [optional] | +| **covered_october** | **Boolean** | Coverage indicator for October | [optional] | +| **covered_november** | **Boolean** | Coverage indicator for November | [optional] | +| **covered_december** | **Boolean** | Coverage indicator for December | [optional] | ## Example @@ -36,19 +36,19 @@ instance = AvalaraSdk::A1099::V2::CoveredIndividualRequest.new( name_suffix: null, tin: null, birth_date: null, - covered_month_indicator0: null, - covered_month_indicator1: null, - covered_month_indicator2: null, - covered_month_indicator3: null, - covered_month_indicator4: null, - covered_month_indicator5: null, - covered_month_indicator6: null, - covered_month_indicator7: null, - covered_month_indicator8: null, - covered_month_indicator9: null, - covered_month_indicator10: null, - covered_month_indicator11: null, - covered_month_indicator12: null + covered_all_months: null, + covered_january: null, + covered_february: null, + covered_march: null, + covered_april: null, + covered_may: null, + covered_june: null, + covered_july: null, + covered_august: null, + covered_september: null, + covered_october: null, + covered_november: null, + covered_december: null ) ``` diff --git a/docs/A1099/V2/Create1099Form201Response.md b/docs/A1099/V2/Create1099Form201Response.md index 7fbea15..1567dc6 100644 --- a/docs/A1099/V2/Create1099Form201Response.md +++ b/docs/A1099/V2/Create1099Form201Response.md @@ -17,6 +17,7 @@ AvalaraSdk::A1099::V2::Create1099Form201Response.openapi_one_of # :'Form1042SListItemResponse', # :'Form1095BListItemResponse', # :'Form1099BaseResponse', +# :'Form1099DivListItemResponse', # :'Form1099KListItemResponse', # :'Form1099MiscListItemResponse', # :'Form1099NecListItemResponse', @@ -51,6 +52,7 @@ AvalaraSdk::A1099::V2::Create1099Form201Response.build(data_that_doesnt_match) - `Form1042SListItemResponse` - `Form1095BListItemResponse` - `Form1099BaseResponse` +- `Form1099DivListItemResponse` - `Form1099KListItemResponse` - `Form1099MiscListItemResponse` - `Form1099NecListItemResponse` diff --git a/docs/A1099/V2/Form1042SListItem.md b/docs/A1099/V2/Form1042SListItem.md index 8a5f493..b50b437 100644 --- a/docs/A1099/V2/Form1042SListItem.md +++ b/docs/A1099/V2/Form1042SListItem.md @@ -31,7 +31,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -39,15 +39,16 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -92,15 +93,16 @@ instance = AvalaraSdk::A1099::V2::Form1042SListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1042SListItemResponse.md b/docs/A1099/V2/Form1042SListItemResponse.md index e6606bd..8767251 100644 --- a/docs/A1099/V2/Form1042SListItemResponse.md +++ b/docs/A1099/V2/Form1042SListItemResponse.md @@ -35,19 +35,21 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -55,8 +57,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -69,7 +74,7 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1042SListItemResponse.new( unique_form_id: 1234567890, - no_tin: null, + no_tin: false, recipient_date_of_birth: null, recipient_giin: null, recipient_foreign_tin: GH48-827573, @@ -108,10 +113,12 @@ instance = AvalaraSdk::A1099::V2::Form1042SListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -119,11 +126,14 @@ instance = AvalaraSdk::A1099::V2::Form1042SListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1042SRequest.md b/docs/A1099/V2/Form1042SRequest.md index 3cbf5f4..e28ae44 100644 --- a/docs/A1099/V2/Form1042SRequest.md +++ b/docs/A1099/V2/Form1042SRequest.md @@ -5,7 +5,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **unique_form_id** | **String** | Unique form identifier | [optional] | -| **no_tin** | **Boolean** | No TIN indicator | [optional] | | **recipient_date_of_birth** | **Time** | Recipient's date of birth | [optional] | | **recipient_giin** | **String** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] | | **recipient_foreign_tin** | **String** | Recipient's foreign TIN | [optional] | @@ -33,7 +32,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -41,15 +40,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | ## Example @@ -59,7 +60,6 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1042SRequest.new( unique_form_id: null, - no_tin: null, recipient_date_of_birth: null, recipient_giin: null, recipient_foreign_tin: null, @@ -95,15 +95,17 @@ instance = AvalaraSdk::A1099::V2::Form1042SRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null ) ``` diff --git a/docs/A1099/V2/Form1042SResponse.md b/docs/A1099/V2/Form1042SResponse.md index b66ff36..f8f5348 100644 --- a/docs/A1099/V2/Form1042SResponse.md +++ b/docs/A1099/V2/Form1042SResponse.md @@ -7,7 +7,6 @@ | **type** | **String** | | [optional][readonly] | | **created_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [optional] | -| **user_id** | **String** | | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | | **tin_type** | **String** | | [optional] | | **id** | **String** | | [optional] | @@ -24,17 +23,20 @@ | **city** | **String** | | [optional] | | **state** | **String** | | [optional] | | **zip** | **String** | | [optional] | -| **recipient_email** | **String** | | [optional] | +| **email** | **String** | | [optional] | | **account_number** | **String** | | [optional] | | **office_code** | **String** | | [optional] | -| **recipient_non_us_province** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | | **country_code** | **String** | | [optional] | | **federal_e_file** | **Boolean** | | [optional] | | **postal_mail** | **Boolean** | | [optional] | | **state_e_file** | **Boolean** | | [optional] | | **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | | **address_verification** | **Boolean** | | [optional] | | **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | | **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | @@ -50,7 +52,6 @@ instance = AvalaraSdk::A1099::V2::Form1042SResponse.new( type: 1099-NEC, created_at: null, updated_at: null, - user_id: null, state_and_local_withholding: null, tin_type: EIN, id: null, @@ -67,17 +68,20 @@ instance = AvalaraSdk::A1099::V2::Form1042SResponse.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, federal_efile_status: null, + e_delivery_status: null, state_efile_status: null, postal_mail_status: null, tin_match_status: null, diff --git a/docs/A1099/V2/Form1095BListItem.md b/docs/A1099/V2/Form1095BListItem.md index ff0f28b..b13c93a 100644 --- a/docs/A1099/V2/Form1095BListItem.md +++ b/docs/A1099/V2/Form1095BListItem.md @@ -14,7 +14,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -22,15 +22,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -58,15 +60,17 @@ instance = AvalaraSdk::A1099::V2::Form1095BListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1095BListItemResponse.md b/docs/A1099/V2/Form1095BListItemResponse.md index 772e852..d943eec 100644 --- a/docs/A1099/V2/Form1095BListItemResponse.md +++ b/docs/A1099/V2/Form1095BListItemResponse.md @@ -13,19 +13,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -33,8 +36,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -64,10 +70,13 @@ instance = AvalaraSdk::A1099::V2::Form1095BListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -75,11 +84,14 @@ instance = AvalaraSdk::A1099::V2::Form1095BListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1095BRequest.md b/docs/A1099/V2/Form1095BRequest.md index 3ddcc01..9c0e1fd 100644 --- a/docs/A1099/V2/Form1095BRequest.md +++ b/docs/A1099/V2/Form1095BRequest.md @@ -15,7 +15,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -23,15 +23,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -60,15 +62,17 @@ instance = AvalaraSdk::A1099::V2::Form1095BRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1095CList.md b/docs/A1099/V2/Form1095CList.md new file mode 100644 index 0000000..5b32024 --- /dev/null +++ b/docs/A1099/V2/Form1095CList.md @@ -0,0 +1,20 @@ +# AvalaraSdk::A1099::V2::Form1095CList + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **forms** | [**Array<Form1095CListItem>**](Form1095CListItem.md) | | [optional] | +| **form_type** | **String** | | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::Form1095CList.new( + forms: null, + form_type: null +) +``` + diff --git a/docs/A1099/V2/Form1095CListItem.md b/docs/A1099/V2/Form1095CListItem.md new file mode 100644 index 0000000..0595f14 --- /dev/null +++ b/docs/A1099/V2/Form1095CListItem.md @@ -0,0 +1,88 @@ +# AvalaraSdk::A1099::V2::Form1095CListItem + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **employee_first_name** | **String** | Employee's first name | [optional] | +| **employee_middle_name** | **String** | Employee's middle name | [optional] | +| **employee_last_name** | **String** | Employee's last name | [optional] | +| **employee_name_suffix** | **String** | Employee's name suffix | [optional] | +| **recipient_date_of_birth** | **Time** | Recipient's date of birth | [optional] | +| **plan_start_month** | **String** | Plan start month | [optional] | +| **offer_and_coverages** | [**Array<OfferAndCoverageRequest>**](OfferAndCoverageRequest.md) | Offer and coverage information | [optional] | +| **employer_provided_si_coverage** | **Boolean** | Employer provided self-insured coverage | [optional] | +| **covered_individuals** | [**Array<CoveredIndividualRequest>**](CoveredIndividualRequest.md) | Covered individuals information | [optional] | +| **issuer_reference_id** | **String** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] | +| **issuer_tin** | **String** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] | +| **tax_year** | **Integer** | Tax year | | +| **issuer_id** | **String** | Issuer ID | [optional] | +| **reference_id** | **String** | Reference ID | [optional] | +| **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | +| **recipient_name** | **String** | Recipient name | [optional] | +| **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | +| **recipient_second_name** | **String** | Recipient second name | [optional] | +| **address** | **String** | Address | | +| **address2** | **String** | Address line 2 | [optional] | +| **city** | **String** | City | | +| **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | +| **zip** | **String** | Zip/postal code | [optional] | +| **email** | **String** | Recipient email address | [optional] | +| **account_number** | **String** | Account number | [optional] | +| **office_code** | **String** | Office code | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | +| **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | +| **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | +| **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | +| **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | +| **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | +| **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | +| **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::Form1095CListItem.new( + employee_first_name: null, + employee_middle_name: null, + employee_last_name: null, + employee_name_suffix: null, + recipient_date_of_birth: null, + plan_start_month: null, + offer_and_coverages: null, + employer_provided_si_coverage: null, + covered_individuals: null, + issuer_reference_id: null, + issuer_tin: null, + tax_year: null, + issuer_id: null, + reference_id: null, + recipient_tin: null, + recipient_name: null, + tin_type: EIN, + recipient_second_name: null, + address: null, + address2: null, + city: null, + state: null, + zip: null, + email: null, + account_number: null, + office_code: null, + non_us_province: null, + country_code: null, + federal_e_file: null, + postal_mail: null, + state_e_file: null, + tin_match: null, + no_tin: null, + second_tin_notice: null, + address_verification: null, + state_and_local_withholding: null +) +``` + diff --git a/docs/A1099/V2/Form1099BaseResponse.md b/docs/A1099/V2/Form1099BaseResponse.md index 5fbdea4..419eac8 100644 --- a/docs/A1099/V2/Form1099BaseResponse.md +++ b/docs/A1099/V2/Form1099BaseResponse.md @@ -11,19 +11,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -31,8 +34,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -60,10 +66,13 @@ instance = AvalaraSdk::A1099::V2::Form1099BaseResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -71,11 +80,14 @@ instance = AvalaraSdk::A1099::V2::Form1099BaseResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1099DivListItem.md b/docs/A1099/V2/Form1099DivListItem.md index 6e590b0..0893a73 100644 --- a/docs/A1099/V2/Form1099DivListItem.md +++ b/docs/A1099/V2/Form1099DivListItem.md @@ -6,8 +6,8 @@ | ---- | ---- | ----------- | ----- | | **total_ordinary_dividends** | **String** | Total ordinary dividends | [optional] | | **qualified_dividends** | **String** | Qualified dividends | [optional] | -| **total_capital_gain_distr** | **String** | Total capital gain distributions | [optional] | -| **unrecap_sec1250_gain** | **String** | Unrecaptured Section 1250 gain | [optional] | +| **total_capital_gain_distributions** | **String** | Total capital gain distributions | [optional] | +| **unrecaptured_section1250_gain** | **String** | Unrecaptured Section 1250 gain | [optional] | | **section1202_gain** | **String** | Section 1202 gain | [optional] | | **collectibles_gain** | **String** | Collectibles (28%) gain | [optional] | | **section897_ordinary_dividends** | **String** | Section 897 ordinary dividends | [optional] | @@ -22,14 +22,14 @@ | **noncash_liquidation_distributions** | **String** | Noncash liquidation distributions | [optional] | | **exempt_interest_dividends** | **String** | Exempt-interest dividends | [optional] | | **specified_private_activity_bond_interest_dividends** | **String** | Specified private activity bond interest dividends | [optional] | -| **fatca_filing_requirement** | **String** | FATCA filing requirement | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **issuer_reference_id** | **String** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] | | **issuer_tin** | **String** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] | | **tax_year** | **Integer** | Tax year | | | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -37,15 +37,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -57,8 +59,8 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099DivListItem.new( total_ordinary_dividends: null, qualified_dividends: null, - total_capital_gain_distr: null, - unrecap_sec1250_gain: null, + total_capital_gain_distributions: null, + unrecaptured_section1250_gain: null, section1202_gain: null, collectibles_gain: null, section897_ordinary_dividends: null, @@ -88,15 +90,17 @@ instance = AvalaraSdk::A1099::V2::Form1099DivListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099DivListItemResponse.md b/docs/A1099/V2/Form1099DivListItemResponse.md new file mode 100644 index 0000000..d237574 --- /dev/null +++ b/docs/A1099/V2/Form1099DivListItemResponse.md @@ -0,0 +1,130 @@ +# AvalaraSdk::A1099::V2::Form1099DivListItemResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **total_ordinary_dividends** | **String** | Total ordinary dividends | [optional] | +| **qualified_dividends** | **String** | Qualified dividends | [optional] | +| **total_capital_gain_distributions** | **String** | Total capital gain distributions | [optional] | +| **unrecaptured_section1250_gain** | **String** | Unrecaptured Section 1250 gain | [optional] | +| **section1202_gain** | **String** | Section 1202 gain | [optional] | +| **collectibles_gain** | **String** | Collectibles (28%) gain | [optional] | +| **section897_ordinary_dividends** | **String** | Section 897 ordinary dividends | [optional] | +| **section897_capital_gain** | **String** | Section 897 capital gain | [optional] | +| **nondividend_distributions** | **String** | Nondividend distributions | [optional] | +| **federal_income_tax_withheld** | **String** | Federal income tax withheld | [optional] | +| **section199_a_dividends** | **String** | Section 199A dividends | [optional] | +| **investment_expenses** | **String** | Investment expenses | [optional] | +| **foreign_tax_paid** | **String** | Foreign tax paid | [optional] | +| **foreign_country_or_us_possession** | **String** | Foreign country or U.S. possession | [optional] | +| **cash_liquidation_distributions** | **String** | Cash liquidation distributions | [optional] | +| **noncash_liquidation_distributions** | **String** | Noncash liquidation distributions | [optional] | +| **exempt_interest_dividends** | **String** | Exempt-interest dividends | [optional] | +| **specified_private_activity_bond_interest_dividends** | **String** | Specified private activity bond interest dividends | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | +| **id** | **String** | ID of the form | [readonly] | +| **type** | **String** | Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC | | +| **issuer_id** | **Integer** | Issuer ID | | +| **issuer_reference_id** | **String** | Issuer Reference ID | [optional] | +| **issuer_tin** | **String** | Issuer TIN | [optional] | +| **tax_year** | **Integer** | Tax year | [optional] | +| **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | +| **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | +| **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | +| **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | +| **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | +| **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | +| **reference_id** | **String** | Reference ID | [optional] | +| **email** | **String** | Recipient email address | [optional] | +| **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | +| **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | +| **recipient_name** | **String** | Recipient name | [optional] | +| **recipient_second_name** | **String** | Recipient second name | [optional] | +| **address** | **String** | Address | [optional] | +| **address2** | **String** | Address line 2 | [optional] | +| **city** | **String** | City | [optional] | +| **state** | **String** | US state | [optional] | +| **zip** | **String** | Zip/postal code | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | +| **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | +| **created_at** | **Time** | Creation time | [optional][readonly] | +| **updated_at** | **Time** | Update time | [optional][readonly] | +| **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::Form1099DivListItemResponse.new( + total_ordinary_dividends: null, + qualified_dividends: null, + total_capital_gain_distributions: null, + unrecaptured_section1250_gain: null, + section1202_gain: null, + collectibles_gain: null, + section897_ordinary_dividends: null, + section897_capital_gain: null, + nondividend_distributions: null, + federal_income_tax_withheld: null, + section199_a_dividends: null, + investment_expenses: null, + foreign_tax_paid: null, + foreign_country_or_us_possession: null, + cash_liquidation_distributions: null, + noncash_liquidation_distributions: null, + exempt_interest_dividends: null, + specified_private_activity_bond_interest_dividends: null, + fatca_filing_requirement: null, + id: 123456789, + type: 1099-NEC, + issuer_id: 987654321, + issuer_reference_id: R-3898734, + issuer_tin: 59-387274, + tax_year: 2024, + federal_efile: false, + federal_efile_status: null, + state_efile: false, + state_efile_status: null, + postal_mail: false, + postal_mail_status: null, + tin_match: false, + tin_match_status: null, + address_verification: false, + address_verification_status: null, + e_delivery_status: null, + reference_id: 1891810-9819891, + email: roadrunner@acmecorp.com, + tin_type: null, + tin: null, + no_tin: false, + second_tin_notice: null, + recipient_name: null, + recipient_second_name: null, + address: 1234 Meep Meep Blvd, + address2: null, + city: Tucson, + state: AZ, + zip: 35004, + non_us_province: , + country_code: US, + account_number: null, + office_code: null, + validation_errors: null, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, + state_and_local_withholding: null +) +``` + diff --git a/docs/A1099/V2/Form1099DivRequest.md b/docs/A1099/V2/Form1099DivRequest.md index 80e6cea..d564d9a 100644 --- a/docs/A1099/V2/Form1099DivRequest.md +++ b/docs/A1099/V2/Form1099DivRequest.md @@ -6,8 +6,8 @@ | ---- | ---- | ----------- | ----- | | **total_ordinary_dividends** | **String** | Total ordinary dividends | [optional] | | **qualified_dividends** | **String** | Qualified dividends | [optional] | -| **total_capital_gain_distr** | **String** | Total capital gain distributions | [optional] | -| **unrecap_sec1250_gain** | **String** | Unrecaptured Section 1250 gain | [optional] | +| **total_capital_gain_distributions** | **String** | Total capital gain distributions | [optional] | +| **unrecaptured_section1250_gain** | **String** | Unrecaptured Section 1250 gain | [optional] | | **section1202_gain** | **String** | Section 1202 gain | [optional] | | **collectibles_gain** | **String** | Collectibles (28%) gain | [optional] | | **section897_ordinary_dividends** | **String** | Section 897 ordinary dividends | [optional] | @@ -22,12 +22,12 @@ | **noncash_liquidation_distributions** | **String** | Noncash liquidation distributions | [optional] | | **exempt_interest_dividends** | **String** | Exempt-interest dividends | [optional] | | **specified_private_activity_bond_interest_dividends** | **String** | Specified private activity bond interest dividends | [optional] | -| **fatca_filing_requirement** | **String** | FATCA filing requirement | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **type** | **String** | | [optional] | | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -35,15 +35,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -55,8 +57,8 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099DivRequest.new( total_ordinary_dividends: null, qualified_dividends: null, - total_capital_gain_distr: null, - unrecap_sec1250_gain: null, + total_capital_gain_distributions: null, + unrecaptured_section1250_gain: null, section1202_gain: null, collectibles_gain: null, section897_ordinary_dividends: null, @@ -84,15 +86,17 @@ instance = AvalaraSdk::A1099::V2::Form1099DivRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099DivResponse.md b/docs/A1099/V2/Form1099DivResponse.md index 651cca8..45e6b9e 100644 --- a/docs/A1099/V2/Form1099DivResponse.md +++ b/docs/A1099/V2/Form1099DivResponse.md @@ -7,7 +7,6 @@ | **type** | **String** | | [optional][readonly] | | **created_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [optional] | -| **user_id** | **String** | | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | | **tin_type** | **String** | | [optional] | | **id** | **String** | | [optional] | @@ -24,17 +23,20 @@ | **city** | **String** | | [optional] | | **state** | **String** | | [optional] | | **zip** | **String** | | [optional] | -| **recipient_email** | **String** | | [optional] | +| **email** | **String** | | [optional] | | **account_number** | **String** | | [optional] | | **office_code** | **String** | | [optional] | -| **recipient_non_us_province** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | | **country_code** | **String** | | [optional] | | **federal_e_file** | **Boolean** | | [optional] | | **postal_mail** | **Boolean** | | [optional] | | **state_e_file** | **Boolean** | | [optional] | | **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | | **address_verification** | **Boolean** | | [optional] | | **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | | **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | @@ -50,7 +52,6 @@ instance = AvalaraSdk::A1099::V2::Form1099DivResponse.new( type: 1099-NEC, created_at: null, updated_at: null, - user_id: null, state_and_local_withholding: null, tin_type: EIN, id: null, @@ -67,17 +68,20 @@ instance = AvalaraSdk::A1099::V2::Form1099DivResponse.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, federal_efile_status: null, + e_delivery_status: null, state_efile_status: null, postal_mail_status: null, tin_match_status: null, diff --git a/docs/A1099/V2/Form1099KListItem.md b/docs/A1099/V2/Form1099KListItem.md index 8922859..e464371 100644 --- a/docs/A1099/V2/Form1099KListItem.md +++ b/docs/A1099/V2/Form1099KListItem.md @@ -30,7 +30,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -38,15 +38,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -90,15 +92,17 @@ instance = AvalaraSdk::A1099::V2::Form1099KListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099KListItemResponse.md b/docs/A1099/V2/Form1099KListItemResponse.md index e5d82cd..a69fc16 100644 --- a/docs/A1099/V2/Form1099KListItemResponse.md +++ b/docs/A1099/V2/Form1099KListItemResponse.md @@ -31,19 +31,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -51,8 +54,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -100,10 +106,13 @@ instance = AvalaraSdk::A1099::V2::Form1099KListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -111,11 +120,14 @@ instance = AvalaraSdk::A1099::V2::Form1099KListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1099KRequest.md b/docs/A1099/V2/Form1099KRequest.md index 55d1a94..7d19b52 100644 --- a/docs/A1099/V2/Form1099KRequest.md +++ b/docs/A1099/V2/Form1099KRequest.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **filer_type** | **Integer** | Filer type (PSE or EPF) | [optional] | -| **payment_type** | **Integer** | Payment type (payment card or third party network) | [optional] | +| **filer_type** | **String** | Filer type (PSE or EPF) | [optional] | +| **payment_type** | **String** | Payment type (payment card or third party network) | [optional] | | **payment_settlement_entity_name_phone_number** | **String** | Payment settlement entity name and phone number | [optional] | | **gross_amount_payment_card** | **Float** | Gross amount of payment card/third party network transactions | [optional] | | **card_not_present_transactions** | **Float** | Card not present transactions | [optional] | @@ -28,7 +28,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -36,15 +36,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -54,8 +56,8 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099KRequest.new( - filer_type: null, - payment_type: null, + filer_type: PSE, + payment_type: MerchantPaymentCard, payment_settlement_entity_name_phone_number: null, gross_amount_payment_card: null, card_not_present_transactions: null, @@ -86,15 +88,17 @@ instance = AvalaraSdk::A1099::V2::Form1099KRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099KResponse.md b/docs/A1099/V2/Form1099KResponse.md new file mode 100644 index 0000000..95544b4 --- /dev/null +++ b/docs/A1099/V2/Form1099KResponse.md @@ -0,0 +1,132 @@ +# AvalaraSdk::A1099::V2::Form1099KResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **filer_type** | **String** | | [optional] | +| **payment_type** | **String** | | [optional] | +| **payment_settlement_entity_name_phone_number** | **String** | | [optional] | +| **gross_amount_payment_card** | **Float** | | [optional] | +| **card_not_present_transactions** | **Float** | | [optional] | +| **merchant_category_code** | **String** | | [optional] | +| **payment_transaction_number** | **Float** | | [optional] | +| **federal_income_tax_withheld** | **Float** | | [optional] | +| **january** | **Float** | | [optional] | +| **february** | **Float** | | [optional] | +| **march** | **Float** | | [optional] | +| **april** | **Float** | | [optional] | +| **may** | **Float** | | [optional] | +| **june** | **Float** | | [optional] | +| **july** | **Float** | | [optional] | +| **august** | **Float** | | [optional] | +| **sept** | **Float** | | [optional] | +| **october** | **Float** | | [optional] | +| **november** | **Float** | | [optional] | +| **december** | **Float** | | [optional] | +| **type** | **String** | | [optional][readonly] | +| **created_at** | **Time** | | [optional] | +| **updated_at** | **Time** | | [optional] | +| **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | +| **tin_type** | **String** | | [optional] | +| **id** | **String** | | [optional] | +| **issuer_id** | **String** | | [optional] | +| **issuer_reference_id** | **String** | | [optional] | +| **issuer_tin** | **String** | | [optional] | +| **tax_year** | **Integer** | | [optional] | +| **reference_id** | **String** | | [optional] | +| **recipient_name** | **String** | | [optional] | +| **recipient_tin** | **String** | | [optional] | +| **recipient_second_name** | **String** | | [optional] | +| **address** | **String** | | [optional] | +| **address2** | **String** | | [optional] | +| **city** | **String** | | [optional] | +| **state** | **String** | | [optional] | +| **zip** | **String** | | [optional] | +| **email** | **String** | | [optional] | +| **account_number** | **String** | | [optional] | +| **office_code** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | +| **country_code** | **String** | | [optional] | +| **federal_e_file** | **Boolean** | | [optional] | +| **postal_mail** | **Boolean** | | [optional] | +| **state_e_file** | **Boolean** | | [optional] | +| **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | +| **address_verification** | **Boolean** | | [optional] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::Form1099KResponse.new( + filer_type: PSE, + payment_type: MerchantPaymentCard, + payment_settlement_entity_name_phone_number: null, + gross_amount_payment_card: null, + card_not_present_transactions: null, + merchant_category_code: null, + payment_transaction_number: null, + federal_income_tax_withheld: null, + january: null, + february: null, + march: null, + april: null, + may: null, + june: null, + july: null, + august: null, + sept: null, + october: null, + november: null, + december: null, + type: 1099-NEC, + created_at: null, + updated_at: null, + state_and_local_withholding: null, + tin_type: EIN, + id: null, + issuer_id: null, + issuer_reference_id: null, + issuer_tin: null, + tax_year: null, + reference_id: null, + recipient_name: null, + recipient_tin: null, + recipient_second_name: null, + address: null, + address2: null, + city: null, + state: null, + zip: null, + email: null, + account_number: null, + office_code: null, + non_us_province: null, + country_code: null, + federal_e_file: null, + postal_mail: null, + state_e_file: null, + tin_match: null, + no_tin: null, + second_tin_notice: null, + address_verification: null, + federal_efile_status: null, + e_delivery_status: null, + state_efile_status: null, + postal_mail_status: null, + tin_match_status: null, + address_verification_status: null, + validation_errors: null +) +``` + diff --git a/docs/A1099/V2/Form1099ListResponseValueInner.md b/docs/A1099/V2/Form1099ListResponseValueInner.md index 98edd07..8f52e56 100644 --- a/docs/A1099/V2/Form1099ListResponseValueInner.md +++ b/docs/A1099/V2/Form1099ListResponseValueInner.md @@ -17,6 +17,7 @@ AvalaraSdk::A1099::V2::Form1099ListResponseValueInner.openapi_one_of # :'Form1042SListItemResponse', # :'Form1095BListItemResponse', # :'Form1099BaseResponse', +# :'Form1099DivListItemResponse', # :'Form1099KListItemResponse', # :'Form1099MiscListItemResponse', # :'Form1099NecListItemResponse', @@ -51,6 +52,7 @@ AvalaraSdk::A1099::V2::Form1099ListResponseValueInner.build(data_that_doesnt_mat - `Form1042SListItemResponse` - `Form1095BListItemResponse` - `Form1099BaseResponse` +- `Form1099DivListItemResponse` - `Form1099KListItemResponse` - `Form1099MiscListItemResponse` - `Form1099NecListItemResponse` diff --git a/docs/A1099/V2/Form1099MiscListItem.md b/docs/A1099/V2/Form1099MiscListItem.md index 72a6ff7..0a5d16f 100644 --- a/docs/A1099/V2/Form1099MiscListItem.md +++ b/docs/A1099/V2/Form1099MiscListItem.md @@ -4,13 +4,12 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | Second TIN notice | [optional] | | **rents** | **Float** | Rents | [optional] | | **royalties** | **Float** | Royalties | [optional] | | **other_income** | **Float** | Other income | [optional] | | **fed_income_tax_withheld** | **Float** | Federal income tax withheld | [optional] | | **fishing_boat_proceeds** | **Float** | Fishing boat proceeds | [optional] | -| **medical_health_care_payments** | **Float** | Medical and health care payments | [optional] | +| **medical_and_health_care_payments** | **Float** | Medical and health care payments | [optional] | | **direct_sales_indicator** | **Boolean** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] | | **substitute_payments** | **Float** | Substitute payments in lieu of dividends or interest | [optional] | | **crop_insurance_proceeds** | **Float** | Crop insurance proceeds | [optional] | @@ -26,7 +25,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -34,15 +33,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -52,13 +53,12 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099MiscListItem.new( - second_tin_notice: null, rents: null, royalties: null, other_income: null, fed_income_tax_withheld: null, fishing_boat_proceeds: null, - medical_health_care_payments: null, + medical_and_health_care_payments: null, direct_sales_indicator: null, substitute_payments: null, crop_insurance_proceeds: null, @@ -82,15 +82,17 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099MiscListItemResponse.md b/docs/A1099/V2/Form1099MiscListItemResponse.md index fd25c27..520dec9 100644 --- a/docs/A1099/V2/Form1099MiscListItemResponse.md +++ b/docs/A1099/V2/Form1099MiscListItemResponse.md @@ -9,14 +9,15 @@ | **other_income** | **Float** | Other income | [optional] | | **fed_income_tax_withheld** | **Float** | Federal income tax withheld | [optional] | | **fishing_boat_proceeds** | **Float** | Fishing boat proceeds | [optional] | -| **medical_and_health_care** | **Float** | Medical and health care payments | [optional] | +| **medical_and_health_care_payments** | **Float** | Medical and health care payments | [optional] | | **substitute_payments** | **Float** | Substitute payments in lieu of dividends or interest | [optional] | | **direct_sales_indicator** | **Boolean** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] | | **crop_insurance_proceeds** | **Float** | Crop insurance proceeds | [optional] | -| **excess_golden_parachute** | **Float** | (Legacy field) Excess golden parachute payments | [optional] | -| **gross_amount_paid_attorney** | **Float** | Gross proceeds paid to an attorney | [optional] | +| **excess_golden_parachute_payments** | **Float** | (Legacy field) Excess golden parachute payments | [optional] | +| **gross_proceeds_paid_to_attorney** | **Float** | Gross proceeds paid to an attorney | [optional] | +| **fish_purchased_for_resale** | **Float** | Fish purchased for resale | [optional] | | **section409_a_deferrals** | **Float** | Section 409A deferrals | [optional] | -| **section409_a_income** | **Float** | Nonqualified deferred compensation | [optional] | +| **nonqualified_deferred_compensation** | **Float** | Nonqualified deferred compensation | [optional] | | **id** | **String** | ID of the form | [readonly] | | **type** | **String** | Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC | | | **issuer_id** | **Integer** | Issuer ID | | @@ -24,19 +25,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -44,8 +48,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -62,14 +69,15 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscListItemResponse.new( other_income: 1402.71, fed_income_tax_withheld: null, fishing_boat_proceeds: null, - medical_and_health_care: null, + medical_and_health_care_payments: null, substitute_payments: null, direct_sales_indicator: false, crop_insurance_proceeds: null, - excess_golden_parachute: null, - gross_amount_paid_attorney: null, + excess_golden_parachute_payments: null, + gross_proceeds_paid_to_attorney: null, + fish_purchased_for_resale: null, section409_a_deferrals: null, - section409_a_income: null, + nonqualified_deferred_compensation: null, id: 123456789, type: 1099-NEC, issuer_id: 987654321, @@ -86,10 +94,13 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -97,11 +108,14 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1099MiscRequest.md b/docs/A1099/V2/Form1099MiscRequest.md index a1d7ff1..9f94682 100644 --- a/docs/A1099/V2/Form1099MiscRequest.md +++ b/docs/A1099/V2/Form1099MiscRequest.md @@ -4,13 +4,12 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | Second TIN notice | [optional] | | **rents** | **Float** | Rents | [optional] | | **royalties** | **Float** | Royalties | [optional] | | **other_income** | **Float** | Other income | [optional] | | **fed_income_tax_withheld** | **Float** | Federal income tax withheld | [optional] | | **fishing_boat_proceeds** | **Float** | Fishing boat proceeds | [optional] | -| **medical_health_care_payments** | **Float** | Medical and health care payments | [optional] | +| **medical_and_health_care_payments** | **Float** | Medical and health care payments | [optional] | | **direct_sales_indicator** | **Boolean** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] | | **substitute_payments** | **Float** | Substitute payments in lieu of dividends or interest | [optional] | | **crop_insurance_proceeds** | **Float** | Crop insurance proceeds | [optional] | @@ -24,7 +23,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -32,15 +31,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -50,13 +51,12 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099MiscRequest.new( - second_tin_notice: null, rents: null, royalties: null, other_income: null, fed_income_tax_withheld: null, fishing_boat_proceeds: null, - medical_health_care_payments: null, + medical_and_health_care_payments: null, direct_sales_indicator: null, substitute_payments: null, crop_insurance_proceeds: null, @@ -78,15 +78,17 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099MiscResponse.md b/docs/A1099/V2/Form1099MiscResponse.md index 5753f1a..3d796ff 100644 --- a/docs/A1099/V2/Form1099MiscResponse.md +++ b/docs/A1099/V2/Form1099MiscResponse.md @@ -4,13 +4,12 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | | [optional] | | **rents** | **Float** | | [optional] | | **royalties** | **Float** | | [optional] | | **other_income** | **Float** | | [optional] | | **fed_income_tax_withheld** | **Float** | | [optional] | | **fishing_boat_proceeds** | **Float** | | [optional] | -| **medical_health_care_payments** | **Float** | | [optional] | +| **medical_and_health_care_payments** | **Float** | | [optional] | | **direct_sales_indicator** | **Boolean** | | [optional] | | **substitute_payments** | **Float** | | [optional] | | **crop_insurance_proceeds** | **Float** | | [optional] | @@ -23,7 +22,6 @@ | **type** | **String** | | [optional][readonly] | | **created_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [optional] | -| **user_id** | **String** | | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | | **tin_type** | **String** | | [optional] | | **id** | **String** | | [optional] | @@ -40,17 +38,20 @@ | **city** | **String** | | [optional] | | **state** | **String** | | [optional] | | **zip** | **String** | | [optional] | -| **recipient_email** | **String** | | [optional] | +| **email** | **String** | | [optional] | | **account_number** | **String** | | [optional] | | **office_code** | **String** | | [optional] | -| **recipient_non_us_province** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | | **country_code** | **String** | | [optional] | | **federal_e_file** | **Boolean** | | [optional] | | **postal_mail** | **Boolean** | | [optional] | | **state_e_file** | **Boolean** | | [optional] | | **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | | **address_verification** | **Boolean** | | [optional] | | **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | | **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | @@ -63,13 +64,12 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099MiscResponse.new( - second_tin_notice: null, rents: null, royalties: null, other_income: null, fed_income_tax_withheld: null, fishing_boat_proceeds: null, - medical_health_care_payments: null, + medical_and_health_care_payments: null, direct_sales_indicator: null, substitute_payments: null, crop_insurance_proceeds: null, @@ -82,7 +82,6 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscResponse.new( type: 1099-NEC, created_at: null, updated_at: null, - user_id: null, state_and_local_withholding: null, tin_type: EIN, id: null, @@ -99,17 +98,20 @@ instance = AvalaraSdk::A1099::V2::Form1099MiscResponse.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, federal_efile_status: null, + e_delivery_status: null, state_efile_status: null, postal_mail_status: null, tin_match_status: null, diff --git a/docs/A1099/V2/Form1099NecListItem.md b/docs/A1099/V2/Form1099NecListItem.md index 6e3bf47..45962d2 100644 --- a/docs/A1099/V2/Form1099NecListItem.md +++ b/docs/A1099/V2/Form1099NecListItem.md @@ -4,7 +4,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | Second TIN notice | [optional] | | **nonemployee_compensation** | **Float** | Nonemployee compensation | | | **direct_sales_indicator** | **Boolean** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] | | **federal_income_tax_withheld** | **Float** | Federal income tax withheld | [optional] | @@ -14,7 +13,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -22,15 +21,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -40,7 +41,6 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099NecListItem.new( - second_tin_notice: null, nonemployee_compensation: null, direct_sales_indicator: null, federal_income_tax_withheld: null, @@ -58,15 +58,17 @@ instance = AvalaraSdk::A1099::V2::Form1099NecListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099NecListItemResponse.md b/docs/A1099/V2/Form1099NecListItemResponse.md index aab96b8..26fb21c 100644 --- a/docs/A1099/V2/Form1099NecListItemResponse.md +++ b/docs/A1099/V2/Form1099NecListItemResponse.md @@ -14,19 +14,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -34,8 +37,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -66,10 +72,13 @@ instance = AvalaraSdk::A1099::V2::Form1099NecListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -77,11 +86,14 @@ instance = AvalaraSdk::A1099::V2::Form1099NecListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1099NecRequest.md b/docs/A1099/V2/Form1099NecRequest.md index 95210b1..9b9c010 100644 --- a/docs/A1099/V2/Form1099NecRequest.md +++ b/docs/A1099/V2/Form1099NecRequest.md @@ -4,7 +4,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | Second TIN notice | [optional] | | **nonemployee_compensation** | **Float** | Nonemployee compensation | | | **direct_sales_indicator** | **Boolean** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] | | **federal_income_tax_withheld** | **Float** | Federal income tax withheld | [optional] | @@ -12,7 +11,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -20,15 +19,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -38,7 +39,6 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099NecRequest.new( - second_tin_notice: null, nonemployee_compensation: null, direct_sales_indicator: null, federal_income_tax_withheld: null, @@ -54,15 +54,17 @@ instance = AvalaraSdk::A1099::V2::Form1099NecRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099NecResponse.md b/docs/A1099/V2/Form1099NecResponse.md index 4f17857..04c97e2 100644 --- a/docs/A1099/V2/Form1099NecResponse.md +++ b/docs/A1099/V2/Form1099NecResponse.md @@ -4,14 +4,12 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **second_tin_notice** | **Boolean** | | [optional] | | **nonemployee_compensation** | **Float** | | [optional] | | **direct_sales_indicator** | **Boolean** | | [optional] | | **federal_income_tax_withheld** | **Float** | | [optional] | | **type** | **String** | | [optional][readonly] | | **created_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [optional] | -| **user_id** | **String** | | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | | **tin_type** | **String** | | [optional] | | **id** | **String** | | [optional] | @@ -28,17 +26,20 @@ | **city** | **String** | | [optional] | | **state** | **String** | | [optional] | | **zip** | **String** | | [optional] | -| **recipient_email** | **String** | | [optional] | +| **email** | **String** | | [optional] | | **account_number** | **String** | | [optional] | | **office_code** | **String** | | [optional] | -| **recipient_non_us_province** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | | **country_code** | **String** | | [optional] | | **federal_e_file** | **Boolean** | | [optional] | | **postal_mail** | **Boolean** | | [optional] | | **state_e_file** | **Boolean** | | [optional] | | **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | | **address_verification** | **Boolean** | | [optional] | | **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | | **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | @@ -51,14 +52,12 @@ require 'avalara_sdk' instance = AvalaraSdk::A1099::V2::Form1099NecResponse.new( - second_tin_notice: null, nonemployee_compensation: null, direct_sales_indicator: null, federal_income_tax_withheld: null, type: 1099-NEC, created_at: null, updated_at: null, - user_id: null, state_and_local_withholding: null, tin_type: EIN, id: null, @@ -75,17 +74,20 @@ instance = AvalaraSdk::A1099::V2::Form1099NecResponse.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, federal_efile_status: null, + e_delivery_status: null, state_efile_status: null, postal_mail_status: null, tin_match_status: null, diff --git a/docs/A1099/V2/Form1099RListItem.md b/docs/A1099/V2/Form1099RListItem.md index b84148e..8ddce50 100644 --- a/docs/A1099/V2/Form1099RListItem.md +++ b/docs/A1099/V2/Form1099RListItem.md @@ -30,7 +30,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -38,15 +38,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -90,15 +92,17 @@ instance = AvalaraSdk::A1099::V2::Form1099RListItem.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Form1099RListItemResponse.md b/docs/A1099/V2/Form1099RListItemResponse.md index 88a3be8..0fef6d1 100644 --- a/docs/A1099/V2/Form1099RListItemResponse.md +++ b/docs/A1099/V2/Form1099RListItemResponse.md @@ -31,19 +31,22 @@ | **issuer_tin** | **String** | Issuer TIN | [optional] | | **tax_year** | **Integer** | Tax year | [optional] | | **federal_efile** | **Boolean** | Boolean indicating that federal e-filing has been scheduled for this form | | -| **federal_efile_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional][readonly] | +| **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | Federal e-file status | [optional][readonly] | | **state_efile** | **Boolean** | Boolean indicating that state e-filing has been scheduled for this form | | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | State e-file status | [optional][readonly] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | | -| **postal_mail_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional][readonly] | +| **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional][readonly] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching has been scheduled for this form | | -| **tin_match_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional][readonly] | +| **tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional][readonly] | | **address_verification** | **Boolean** | Boolean indicating that address verification has been scheduled for this form | | -| **address_verification_status** | [**Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional][readonly] | +| **address_verification_status** | [**StatusDetail**](StatusDetail.md) | Address verification status | [optional][readonly] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | EDelivery status | [optional][readonly] | | **reference_id** | **String** | Reference ID | [optional] | | **email** | **String** | Recipient email address | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **tin** | **String** | Recipient Tax ID Number | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second Tin Notice | [optional] | | **recipient_name** | **String** | Recipient name | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | [optional] | @@ -51,8 +54,11 @@ | **city** | **String** | City | [optional] | | **state** | **String** | US state | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **foreign_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] | +| **account_number** | **String** | Account Number | [optional] | +| **office_code** | **String** | Office Code | [optional] | +| **fatca_filing_requirement** | **Boolean** | FATCA filing requirement | [optional] | | **validation_errors** | [**Array<ValidationErrorResponse>**](ValidationErrorResponse.md) | Validation errors | [optional][readonly] | | **created_at** | **Time** | Creation time | [optional][readonly] | | **updated_at** | **Time** | Update time | [optional][readonly] | @@ -100,10 +106,13 @@ instance = AvalaraSdk::A1099::V2::Form1099RListItemResponse.new( tin_match_status: null, address_verification: false, address_verification_status: null, + e_delivery_status: null, reference_id: 1891810-9819891, email: roadrunner@acmecorp.com, tin_type: null, tin: null, + no_tin: false, + second_tin_notice: null, recipient_name: null, recipient_second_name: null, address: 1234 Meep Meep Blvd, @@ -111,11 +120,14 @@ instance = AvalaraSdk::A1099::V2::Form1099RListItemResponse.new( city: Tucson, state: AZ, zip: 35004, - foreign_province: , + non_us_province: , country_code: US, + account_number: null, + office_code: null, + fatca_filing_requirement: null, validation_errors: null, - created_at: 2025-07-29T15:47:39.396860Z, - updated_at: 2025-07-29T15:47:39.396860500Z, + created_at: 2025-07-31T02:07:40.939073500Z, + updated_at: 2025-07-31T02:07:40.939074300Z, state_and_local_withholding: null ) ``` diff --git a/docs/A1099/V2/Form1099RRequest.md b/docs/A1099/V2/Form1099RRequest.md index 54e17eb..87670ed 100644 --- a/docs/A1099/V2/Form1099RRequest.md +++ b/docs/A1099/V2/Form1099RRequest.md @@ -28,7 +28,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -36,15 +36,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -86,15 +88,17 @@ instance = AvalaraSdk::A1099::V2::Form1099RRequest.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/FormRequestBase.md b/docs/A1099/V2/FormRequestBase.md index f5859ad..17eb837 100644 --- a/docs/A1099/V2/FormRequestBase.md +++ b/docs/A1099/V2/FormRequestBase.md @@ -7,7 +7,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -15,15 +15,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -44,15 +46,17 @@ instance = AvalaraSdk::A1099::V2::FormRequestBase.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/FormRequestListItemBase.md b/docs/A1099/V2/FormRequestListItemBase.md index 0100446..abc80d4 100644 --- a/docs/A1099/V2/FormRequestListItemBase.md +++ b/docs/A1099/V2/FormRequestListItemBase.md @@ -10,7 +10,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -18,15 +18,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -50,15 +52,17 @@ instance = AvalaraSdk::A1099::V2::FormRequestListItemBase.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/FormResponseBase.md b/docs/A1099/V2/FormResponseBase.md index 32c374b..fa036bd 100644 --- a/docs/A1099/V2/FormResponseBase.md +++ b/docs/A1099/V2/FormResponseBase.md @@ -7,7 +7,6 @@ | **type** | **String** | | [optional][readonly] | | **created_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [optional] | -| **user_id** | **String** | | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] | | **tin_type** | **String** | | [optional] | | **id** | **String** | | [optional] | @@ -24,17 +23,20 @@ | **city** | **String** | | [optional] | | **state** | **String** | | [optional] | | **zip** | **String** | | [optional] | -| **recipient_email** | **String** | | [optional] | +| **email** | **String** | | [optional] | | **account_number** | **String** | | [optional] | | **office_code** | **String** | | [optional] | -| **recipient_non_us_province** | **String** | | [optional] | +| **non_us_province** | **String** | | [optional] | | **country_code** | **String** | | [optional] | | **federal_e_file** | **Boolean** | | [optional] | | **postal_mail** | **Boolean** | | [optional] | | **state_e_file** | **Boolean** | | [optional] | | **tin_match** | **Boolean** | | [optional] | +| **no_tin** | **Boolean** | | [optional] | +| **second_tin_notice** | **Boolean** | | [optional] | | **address_verification** | **Boolean** | | [optional] | | **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | +| **e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **state_efile_status** | [**Array<StateEfileStatusDetailResponse>**](StateEfileStatusDetailResponse.md) | | [optional] | | **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | | **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] | @@ -50,7 +52,6 @@ instance = AvalaraSdk::A1099::V2::FormResponseBase.new( type: 1099-NEC, created_at: null, updated_at: null, - user_id: null, state_and_local_withholding: null, tin_type: EIN, id: null, @@ -67,17 +68,20 @@ instance = AvalaraSdk::A1099::V2::FormResponseBase.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, federal_efile_status: null, + e_delivery_status: null, state_efile_status: null, postal_mail_status: null, tin_match_status: null, diff --git a/docs/A1099/V2/FormSingleRequestBase.md b/docs/A1099/V2/FormSingleRequestBase.md index 9e19a9f..18003bc 100644 --- a/docs/A1099/V2/FormSingleRequestBase.md +++ b/docs/A1099/V2/FormSingleRequestBase.md @@ -8,7 +8,7 @@ | **issuer_id** | **String** | Issuer ID | [optional] | | **reference_id** | **String** | Reference ID | [optional] | | **recipient_tin** | **String** | Recipient Tax ID Number | [optional] | -| **recipient_name** | **String** | Recipient name | | +| **recipient_name** | **String** | Recipient name | [optional] | | **tin_type** | **String** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] | | **recipient_second_name** | **String** | Recipient second name | [optional] | | **address** | **String** | Address | | @@ -16,15 +16,17 @@ | **city** | **String** | City | | | **state** | **String** | US state. Required if CountryCode is \"US\". | [optional] | | **zip** | **String** | Zip/postal code | [optional] | -| **recipient_email** | **String** | Recipient email address | [optional] | +| **email** | **String** | Recipient email address | [optional] | | **account_number** | **String** | Account number | [optional] | | **office_code** | **String** | Office code | [optional] | -| **recipient_non_us_province** | **String** | Foreign province | [optional] | +| **non_us_province** | **String** | Foreign province | [optional] | | **country_code** | **String** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | | | **federal_e_file** | **Boolean** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] | | **postal_mail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] | | **state_e_file** | **Boolean** | Boolean indicating that state e-filing should be scheduled for this form | [optional] | | **tin_match** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] | +| **no_tin** | **Boolean** | Indicates whether the recipient has no TIN | [optional] | +| **second_tin_notice** | **Boolean** | Second TIN notice in three years | [optional] | | **address_verification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] | | **state_and_local_withholding** | [**StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] | @@ -46,15 +48,17 @@ instance = AvalaraSdk::A1099::V2::FormSingleRequestBase.new( city: null, state: null, zip: null, - recipient_email: null, + email: null, account_number: null, office_code: null, - recipient_non_us_province: null, + non_us_province: null, country_code: null, federal_e_file: null, postal_mail: null, state_e_file: null, tin_match: null, + no_tin: null, + second_tin_notice: null, address_verification: null, state_and_local_withholding: null ) diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index 1a4831f..f3ff8fc 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -19,7 +19,7 @@ All URIs are relative to *https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/a Create or update multiple 1099/1095/W2/1042S forms -This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"RecipientEmail\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"RecipientNonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"recipientNonUsProvince\": \"\", \"recipientEmail\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. +This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"Email\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"NonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalAndHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"nonUsProvince\": \"\", \"email\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. ### Examples @@ -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 | - x_correlation_id: '032e11a9-1930-48bc-9cd5-865dfeb5f8bb', # String | Unique correlation Id in a GUID format + x_correlation_id: '85d89e46-adbc-4a36-a615-347bd0ad3549', # 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/) . bulk_upsert1099_forms_request: AvalaraSdk::A1099::V2::Form1042SList.new # BulkUpsert1099FormsRequest | } @@ -126,9 +126,9 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '2a525a1d-2ac8-4894-87a5-1bd347d76b1c', # String | Unique correlation Id in a GUID format + x_correlation_id: 'ac2b2725-9848-49c3-9255-1d638490cc87', # 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/) . - i_create_form1099_request: AvalaraSdk::A1099::V2::Form1099DivRequest.new({recipient_name: 'recipient_name_example', address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # ICreateForm1099Request | + i_create_form1099_request: AvalaraSdk::A1099::V2::Form1099DivRequest.new({address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # ICreateForm1099Request | } begin @@ -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: 'ba633be6-e650-424e-a01c-28c6693b9e3a', # String | Unique correlation Id in a GUID format + x_correlation_id: '0839267c-9208-438e-9fcd-3c193fd0216a', # 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: 'f311cf9a-de50-4d53-9663-bdf93020dd26', # String | Unique correlation Id in a GUID format + x_correlation_id: '4c3931c8-2cd4-42f3-9042-7c23336b9f32', # 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: 'a1c63b5e-c575-4315-90ad-0ac98e71a981', # String | Unique correlation Id in a GUID format + x_correlation_id: '9133bfa6-8661-46dc-bbf2-4d45d0439e76', # 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/) . } @@ -459,11 +459,11 @@ api_instance = AvalaraSdk::A1099::V2::Forms1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - filter: 'filter_example', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Collections support filtering only on certain fields. An attempt to filter on an unsupported field will receive a 400 Bad Request response. Supported filtering fields are as follows: issuerId issuerReferenceId taxYear addressVerificationStatus - possible values are: unknown, pending, failed, incomplete, unchanged, verified createdAt edeliveryStatus - possible values are: sent, unscheduled, bad_verify, bad_verify_limit, scheduled, bounced, accepted email federalEfileStatus - possible values are: unscheduled, scheduled, sent, corrected_scheduled, accepted, corrected, corrected_accepted, held recipientName mailStatus - possible values are: sent, unscheduled, pending, delivered referenceId tinMatchStatus - possible values are: none, pending, matched, failed type - possible values are: 940, 941, 943, 944, 945, 1042, 1042-S, 1095-B, 1095-C, 1097-BTC, 1098, 1098-C, 1098-E, 1098-Q, 1098-T, 3921, 3922, 5498, 5498-ESA, 5498-SA, 1099-MISC, 1099-A, 1099-B, 1099-C, 1099-CAP, 1099-DIV, 1099-G, 1099-INT, 1099-K, 1099-LS, 1099-LTC, 1099-NEC, 1099-OID, 1099-PATR, 1099-Q, 1099-R, 1099-S, 1099-SA, T4A, W-2, W-2G, 1099-HC updatedAt validity - possible values are: true, false + filter: 'issuerId eq 884781823', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Collections support filtering only on certain fields. An attempt to filter on an unsupported field will receive a 400 Bad Request response. Supported filtering fields are as follows: issuerId issuerReferenceId taxYear addressVerificationStatus - possible values are: unknown, pending, failed, incomplete, unchanged, verified createdAt edeliveryStatus - possible values are: sent, unscheduled, bad_verify, bad_verify_limit, scheduled, bounced, accepted email federalEfileStatus - possible values are: unscheduled, scheduled, sent, corrected_scheduled, accepted, corrected, corrected_accepted, held recipientName mailStatus - possible values are: sent, unscheduled, pending, delivered referenceId tinMatchStatus - possible values are: none, pending, matched, failed type - possible values are: 940, 941, 943, 944, 945, 1042, 1042-S, 1095-B, 1095-C, 1097-BTC, 1098, 1098-C, 1098-E, 1098-Q, 1098-T, 3921, 3922, 5498, 5498-ESA, 5498-SA, 1099-MISC, 1099-A, 1099-B, 1099-C, 1099-CAP, 1099-DIV, 1099-G, 1099-INT, 1099-K, 1099-LS, 1099-LTC, 1099-NEC, 1099-OID, 1099-PATR, 1099-Q, 1099-R, 1099-S, 1099-SA, T4A, W-2, W-2G, 1099-HC updatedAt validity - possible values are: true, false top: 56, # Integer | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. skip: 56, # Integer | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. order_by: 'order_by_example', # String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example issuerReferenceId ASC. Supported sorting fields are: issuerReferenceId taxYear createdAt recipientName updatedAt - x_correlation_id: '443e5440-659c-4f7d-865e-fd185b0ed923', # String | Unique correlation Id in a GUID format + x_correlation_id: '1d1f9e87-4684-46a4-9439-85058f82f858', # 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/) . } @@ -549,9 +549,9 @@ 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: 'd65ebcaf-e252-421c-a543-3d1ba4e4175b', # String | Unique correlation Id in a GUID format + x_correlation_id: 'e59dff29-007e-4aa7-8b11-5ba83766a56a', # 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/) . - i_update_form1099_request: AvalaraSdk::A1099::V2::Form1099DivRequest.new({recipient_name: 'recipient_name_example', address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # IUpdateForm1099Request | + i_update_form1099_request: AvalaraSdk::A1099::V2::Form1099DivRequest.new({address: 'address_example', city: 'city_example', country_code: 'country_code_example'}) # IUpdateForm1099Request | } begin diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index 4a414d4..167c679 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -41,7 +41,7 @@ api_instance = AvalaraSdk::A1099::V2::FormsW9Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - x_correlation_id: '968b9850-b859-4a5a-8165-bd1e444fbf47', # String | Unique correlation Id in a GUID format + x_correlation_id: '479b3bdd-2b5c-48b3-b24c-b0ecbe0d07c5', # 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 # CreateW9FormRequest | Form to be created } @@ -125,7 +125,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: '69926298-ed5b-4d78-8099-b5488589912d', # String | Unique correlation Id in a GUID format + x_correlation_id: '7d79301a-ebfd-40a1-a1af-a9a1e44f8936', # 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/) . } @@ -207,7 +207,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: 'e138390c-5561-49df-a969-49427e2c5ffa', # String | Unique correlation Id in a GUID format + x_correlation_id: 'b4cc81aa-1d2e-4cef-aa68-705ea2aaf594', # 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/) . } @@ -294,7 +294,7 @@ opts = { skip: 56, # Integer | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. 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 | When true, returns a @recordSetCount in the result set - x_correlation_id: 'f80bd20b-84ec-47de-913f-304dd9951b58', # String | Unique correlation Id in a GUID format + x_correlation_id: '8afdb9ff-bb10-414e-bd81-5cb5175aad0c', # 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::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: '75735dc9-2909-4f11-bc6c-6e1ec0d77264', # String | Unique correlation Id in a GUID format + x_correlation_id: '37d1fca1-1efa-454b-a3ff-94ec972b74b4', # 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/) . } @@ -464,7 +464,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: 'd24784a4-9522-46c7-b6e0-8f44cb176f17', # String | Unique correlation Id in a GUID format + x_correlation_id: '8c37ab84-020e-452c-ad69-df89a9ac9cfa', # 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/) . iw9_form_data_models_one_of: AvalaraSdk::A1099::V2::W4FormDataModel.new # IW9FormDataModelsOneOf | Form to be updated } @@ -549,7 +549,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: 'ee2e9278-6cdb-47ad-82a0-9d5a726f7412', # String | Unique correlation Id in a GUID format + x_correlation_id: '2ce587b6-7523-41b2-8033-347329740bcb', # 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/Get1099Form200Response.md b/docs/A1099/V2/Get1099Form200Response.md index 1667f0c..2b00d80 100644 --- a/docs/A1099/V2/Get1099Form200Response.md +++ b/docs/A1099/V2/Get1099Form200Response.md @@ -17,6 +17,7 @@ AvalaraSdk::A1099::V2::Get1099Form200Response.openapi_one_of # :'Form1042SListItemResponse', # :'Form1095BListItemResponse', # :'Form1099BaseResponse', +# :'Form1099DivListItemResponse', # :'Form1099KListItemResponse', # :'Form1099MiscListItemResponse', # :'Form1099NecListItemResponse', @@ -51,6 +52,7 @@ AvalaraSdk::A1099::V2::Get1099Form200Response.build(data_that_doesnt_match) - `Form1042SListItemResponse` - `Form1095BListItemResponse` - `Form1099BaseResponse` +- `Form1099DivListItemResponse` - `Form1099KListItemResponse` - `Form1099MiscListItemResponse` - `Form1099NecListItemResponse` diff --git a/docs/A1099/V2/ICreateForm1099Request.md b/docs/A1099/V2/ICreateForm1099Request.md index fa6be95..d249ed4 100644 --- a/docs/A1099/V2/ICreateForm1099Request.md +++ b/docs/A1099/V2/ICreateForm1099Request.md @@ -15,6 +15,7 @@ AvalaraSdk::A1099::V2::ICreateForm1099Request.openapi_one_of # => # [ # :'Form1099DivRequest', +# :'Form1099KRequest', # :'Form1099MiscRequest', # :'Form1099NecRequest' # ] @@ -45,6 +46,7 @@ AvalaraSdk::A1099::V2::ICreateForm1099Request.build(data_that_doesnt_match) #### Return type - `Form1099DivRequest` +- `Form1099KRequest` - `Form1099MiscRequest` - `Form1099NecRequest` - `nil` (if no type matches) diff --git a/docs/A1099/V2/IUpdateForm1099Request.md b/docs/A1099/V2/IUpdateForm1099Request.md index 78545f1..2d969c1 100644 --- a/docs/A1099/V2/IUpdateForm1099Request.md +++ b/docs/A1099/V2/IUpdateForm1099Request.md @@ -15,6 +15,7 @@ AvalaraSdk::A1099::V2::IUpdateForm1099Request.openapi_one_of # => # [ # :'Form1099DivRequest', +# :'Form1099KRequest', # :'Form1099MiscRequest', # :'Form1099NecRequest' # ] @@ -45,6 +46,7 @@ AvalaraSdk::A1099::V2::IUpdateForm1099Request.build(data_that_doesnt_match) #### Return type - `Form1099DivRequest` +- `Form1099KRequest` - `Form1099MiscRequest` - `Form1099NecRequest` - `nil` (if no type matches) diff --git a/docs/A1099/V2/IrsResponse.md b/docs/A1099/V2/IrsResponse.md new file mode 100644 index 0000000..4a487d5 --- /dev/null +++ b/docs/A1099/V2/IrsResponse.md @@ -0,0 +1,20 @@ +# AvalaraSdk::A1099::V2::IrsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **code** | **String** | The IRS response code. | [optional] | +| **description** | **String** | The description for the IRS response. | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::IrsResponse.new( + code: null, + description: null +) +``` + diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index 4d654ec..f339c5c 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: 'ce42bd72-2b6a-438a-8e8b-983910339267', # String | Unique correlation Id in a GUID format + x_correlation_id: 'cd08f20c-e93f-4ed9-9fcc-1c43161a5ab1', # 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_command: AvalaraSdk::A1099::V2::IssuerCommand.new # IssuerCommand | 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: '706821c8-d3fe-4fb8-82c2-5d6cf92c475e', # String | Unique correlation Id in a GUID format + x_correlation_id: 'b31ed293-452b-4f1a-9781-92bf4cc732b2', # 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: '14762757-396e-4e07-851b-2b7dd2542250', # String | Unique correlation Id in a GUID format + x_correlation_id: '6f7412dc-b5d2-4657-9ae0-9eb72e1cbaac', # 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/) . } @@ -287,13 +287,13 @@ api_instance = AvalaraSdk::A1099::V2::Issuers1099Api.new api_client avalara_version = '2.0.0' # String | API version opts = { - filter: 'filter_example', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. + filter: 'taxYear eq 2024', # String | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. top: 56, # Integer | If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. skip: 56, # Integer | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. 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: '99c911ff-f4eb-42a8-841d-342a6cd1c7d5', # String | Unique correlation Id in a GUID format + x_correlation_id: '6ab59fe8-83fc-4fa3-9617-abb9b8d1bdb7', # 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: '092e5597-f724-49e7-bffa-4f1f21cb6236', # String | Unique correlation Id in a GUID format + x_correlation_id: '2f427cf4-fa55-4abb-85da-d79a4a846191', # 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_command: AvalaraSdk::A1099::V2::IssuerCommand.new # IssuerCommand | The issuer to update } diff --git a/docs/A1099/V2/Jobs1099Api.md b/docs/A1099/V2/Jobs1099Api.md index f445591..a246616 100644 --- a/docs/A1099/V2/Jobs1099Api.md +++ b/docs/A1099/V2/Jobs1099Api.md @@ -36,7 +36,7 @@ api_instance = AvalaraSdk::A1099::V2::Jobs1099Api.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: '0d84e31f-0d44-4920-9f1b-5daa360e7925', # String | Unique correlation Id in a GUID format + x_correlation_id: '85be69fe-08d7-40f4-8ce2-dd043ea36143', # 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/OfferAndCoverageRequest.md b/docs/A1099/V2/OfferAndCoverageRequest.md new file mode 100644 index 0000000..5a02c5f --- /dev/null +++ b/docs/A1099/V2/OfferAndCoverageRequest.md @@ -0,0 +1,26 @@ +# AvalaraSdk::A1099::V2::OfferAndCoverageRequest + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **month** | **String** | Month of coverage | [optional] | +| **offer_code** | **String** | Offer of coverage code | [optional] | +| **share** | **Float** | Employee required contribution share | [optional] | +| **safe_harbor_code** | **String** | Safe harbor code | [optional] | +| **zip_code** | **String** | ZIP code for coverage area | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::OfferAndCoverageRequest.new( + month: null, + offer_code: null, + share: null, + safe_harbor_code: null, + zip_code: null +) +``` + diff --git a/docs/A1099/V2/TinMatchStatusResponse.md b/docs/A1099/V2/TinMatchStatusResponse.md new file mode 100644 index 0000000..81f7454 --- /dev/null +++ b/docs/A1099/V2/TinMatchStatusResponse.md @@ -0,0 +1,22 @@ +# AvalaraSdk::A1099::V2::TinMatchStatusResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **time** | **Time** | The current timestamp for the TIN match request. | [optional] | +| **status** | **String** | The current status for the TIN match request. | [optional] | +| **irs_response** | [**IrsResponse**](IrsResponse.md) | The IRS response. | [optional] | + +## Example + +```ruby +require 'avalara_sdk' + +instance = AvalaraSdk::A1099::V2::TinMatchStatusResponse.new( + time: null, + status: None, + irs_response: null +) +``` + diff --git a/docs/A1099/V2/Update1099Form200Response.md b/docs/A1099/V2/Update1099Form200Response.md index 4d13880..f21db79 100644 --- a/docs/A1099/V2/Update1099Form200Response.md +++ b/docs/A1099/V2/Update1099Form200Response.md @@ -16,6 +16,7 @@ AvalaraSdk::A1099::V2::Update1099Form200Response.openapi_one_of # [ # :'Form1042SResponse', # :'Form1099DivResponse', +# :'Form1099KResponse', # :'Form1099MiscResponse', # :'Form1099NecResponse', # :'FormResponseBase' @@ -48,6 +49,7 @@ AvalaraSdk::A1099::V2::Update1099Form200Response.build(data_that_doesnt_match) - `Form1042SResponse` - `Form1099DivResponse` +- `Form1099KResponse` - `Form1099MiscResponse` - `Form1099NecResponse` - `FormResponseBase` diff --git a/docs/A1099/V2/W9FormResponse.md b/docs/A1099/V2/W9FormResponse.md index 23f0cc9..42def54 100644 --- a/docs/A1099/V2/W9FormResponse.md +++ b/docs/A1099/V2/W9FormResponse.md @@ -22,6 +22,7 @@ | **tin** | **String** | The taxpayer identification number (TIN). | [optional] | | **backup_withholding** | **Boolean** | Indicates whether backup withholding applies. | [optional] | | **is1099able** | **Boolean** | Indicates whether the individual or entity should be issued a 1099 form. | [optional] | +| **tin_match_status** | [**TinMatchStatusResponse**](TinMatchStatusResponse.md) | The TIN Match status from IRS. | [optional] | | **id** | **String** | The unique identifier for the form. | [optional] | | **type** | **String** | The form type. | [optional] | | **entry_status** | **String** | The form status. | [optional] | @@ -61,6 +62,7 @@ instance = AvalaraSdk::A1099::V2::W9FormResponse.new( tin: 12-3456789, backup_withholding: false, is1099able: true, + tin_match_status: null, id: null, type: null, entry_status: null, diff --git a/lib/avalara_sdk.rb b/lib/avalara_sdk.rb index 87432bb..300f689 100644 --- a/lib/avalara_sdk.rb +++ b/lib/avalara_sdk.rb @@ -59,8 +59,11 @@ require File.expand_path( '../avalara_sdk/models/A1099/V2/form1095_b_list.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1095_b_request.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1095_b.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/form1095_c_list_item.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/form1095_c_list.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_base_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_base.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_div_list_item.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_div_list.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_div_request.rb', __FILE__) @@ -69,6 +72,7 @@ require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_k_list_item.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_k_list.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_k_request.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_k_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_k.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_list_data_inner.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb', __FILE__) @@ -102,11 +106,13 @@ require File.expand_path( '../avalara_sdk/models/A1099/V2/intermediary_or_flow_through_request.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/intermediary_or_flow_through_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/intermediary_or_flow_through.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/irs_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/issuer_command.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/issuer_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/iw9_form_data_models_one_of.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/job_result.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/link.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/paginated_query_result_model_company_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/paginated_query_result_model_issuer_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/paginated_query_result_model.rb', __FILE__) @@ -124,6 +130,7 @@ require File.expand_path( '../avalara_sdk/models/A1099/V2/status_detail.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/substantial_us_owner_request.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/substantial_us_owner_response.rb', __FILE__) +require File.expand_path( '../avalara_sdk/models/A1099/V2/tin_match_status_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/update1099_form200_response.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/validation_error_app.rb', __FILE__) require File.expand_path( '../avalara_sdk/models/A1099/V2/validation_error_response.rb', __FILE__) 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 40a643a..2343d18 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.8.0") + api_client.set_sdk_version("25.8.1") @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 b7acfaf..7da1dd9 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.8.0") + api_client.set_sdk_version("25.8.1") @api_client = api_client end @@ -226,7 +226,7 @@ def build_collection_param(param, collection_format) end # Create or update multiple 1099/1095/W2/1042S forms - # This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"RecipientEmail\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"RecipientNonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"recipientNonUsProvince\": \"\", \"recipientEmail\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. + # This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"Email\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"NonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalAndHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"nonUsProvince\": \"\", \"email\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. # @param avalara_version [String] API version # @param dry_run [Boolean] # @param x_correlation_id [String] Unique correlation Id in a GUID format # @param x_avalara_client [String] Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . # @param bulk_upsert1099_forms_request [BulkUpsert1099FormsRequest] # @return [Form1099ProccessResult] def bulk_upsert1099_forms(request_parameters) @@ -235,7 +235,7 @@ def bulk_upsert1099_forms(request_parameters) end # Create or update multiple 1099/1095/W2/1042S forms - # This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"RecipientEmail\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"RecipientNonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"recipientNonUsProvince\": \"\", \"recipientEmail\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. + # This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"Email\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"NonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalAndHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"nonUsProvince\": \"\", \"email\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. # @param avalara_version [String] API version # @param dry_run [Boolean] 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 7b1f15c..98cc8a4 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.8.0") + api_client.set_sdk_version("25.8.1") @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 ff75f5b..1185295 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.8.0") + api_client.set_sdk_version("25.8.1") @api_client = api_client end diff --git a/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb b/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb index 8000fa9..fe06309 100644 --- a/lib/avalara_sdk/api/A1099/V2/jobs1099_api.rb +++ b/lib/avalara_sdk/api/A1099/V2/jobs1099_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.8.0") + api_client.set_sdk_version("25.8.1") @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 d30f881..18a1b6a 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.8.0") + api_client.set_sdk_version("25.8.1") @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 2b904d9..d0fdfa2 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.8.0") + api_client.set_sdk_version("25.8.1") @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 f11dd17..d0dd8a9 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.8.0") + api_client.set_sdk_version("25.8.1") @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 8dfdc8b..7b25b02 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.8.0") + api_client.set_sdk_version("25.8.1") @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 dd5f6fa..3f0eb5a 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.8.0") + api_client.set_sdk_version("25.8.1") @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 d0b1e09..bdae480 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.8.0") + api_client.set_sdk_version("25.8.1") @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 1753a12..bc15a7c 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.8.0") + api_client.set_sdk_version("25.8.1") @api_client = api_client end diff --git a/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb b/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb index 3183f7f..78346cf 100644 --- a/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/bulk_upsert1099_forms_request.rb @@ -17,6 +17,7 @@ def openapi_one_of [ :'Form1042SList', :'Form1095BList', + :'Form1095CList', :'Form1099DivList', :'Form1099KList', :'Form1099MiscList', diff --git a/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb b/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb index ef4caaf..8c73eea 100644 --- a/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/covered_individual_request.rb @@ -30,43 +30,43 @@ class CoveredIndividualRequest attr_accessor :birth_date # Coverage indicator for all 12 months - attr_accessor :covered_month_indicator0 + attr_accessor :covered_all_months # Coverage indicator for January - attr_accessor :covered_month_indicator1 + attr_accessor :covered_january # Coverage indicator for February - attr_accessor :covered_month_indicator2 + attr_accessor :covered_february # Coverage indicator for March - attr_accessor :covered_month_indicator3 + attr_accessor :covered_march # Coverage indicator for April - attr_accessor :covered_month_indicator4 + attr_accessor :covered_april # Coverage indicator for May - attr_accessor :covered_month_indicator5 + attr_accessor :covered_may # Coverage indicator for June - attr_accessor :covered_month_indicator6 + attr_accessor :covered_june # Coverage indicator for July - attr_accessor :covered_month_indicator7 + attr_accessor :covered_july # Coverage indicator for August - attr_accessor :covered_month_indicator8 + attr_accessor :covered_august # Coverage indicator for September - attr_accessor :covered_month_indicator9 + attr_accessor :covered_september # Coverage indicator for October - attr_accessor :covered_month_indicator10 + attr_accessor :covered_october # Coverage indicator for November - attr_accessor :covered_month_indicator11 + attr_accessor :covered_november # Coverage indicator for December - attr_accessor :covered_month_indicator12 + attr_accessor :covered_december # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -77,19 +77,19 @@ def self.attribute_map :'name_suffix' => :'nameSuffix', :'tin' => :'tin', :'birth_date' => :'birthDate', - :'covered_month_indicator0' => :'coveredMonthIndicator0', - :'covered_month_indicator1' => :'coveredMonthIndicator1', - :'covered_month_indicator2' => :'coveredMonthIndicator2', - :'covered_month_indicator3' => :'coveredMonthIndicator3', - :'covered_month_indicator4' => :'coveredMonthIndicator4', - :'covered_month_indicator5' => :'coveredMonthIndicator5', - :'covered_month_indicator6' => :'coveredMonthIndicator6', - :'covered_month_indicator7' => :'coveredMonthIndicator7', - :'covered_month_indicator8' => :'coveredMonthIndicator8', - :'covered_month_indicator9' => :'coveredMonthIndicator9', - :'covered_month_indicator10' => :'coveredMonthIndicator10', - :'covered_month_indicator11' => :'coveredMonthIndicator11', - :'covered_month_indicator12' => :'coveredMonthIndicator12' + :'covered_all_months' => :'coveredAllMonths', + :'covered_january' => :'coveredJanuary', + :'covered_february' => :'coveredFebruary', + :'covered_march' => :'coveredMarch', + :'covered_april' => :'coveredApril', + :'covered_may' => :'coveredMay', + :'covered_june' => :'coveredJune', + :'covered_july' => :'coveredJuly', + :'covered_august' => :'coveredAugust', + :'covered_september' => :'coveredSeptember', + :'covered_october' => :'coveredOctober', + :'covered_november' => :'coveredNovember', + :'covered_december' => :'coveredDecember' } end @@ -107,19 +107,19 @@ def self.openapi_types :'name_suffix' => :'String', :'tin' => :'String', :'birth_date' => :'Time', - :'covered_month_indicator0' => :'Boolean', - :'covered_month_indicator1' => :'Boolean', - :'covered_month_indicator2' => :'Boolean', - :'covered_month_indicator3' => :'Boolean', - :'covered_month_indicator4' => :'Boolean', - :'covered_month_indicator5' => :'Boolean', - :'covered_month_indicator6' => :'Boolean', - :'covered_month_indicator7' => :'Boolean', - :'covered_month_indicator8' => :'Boolean', - :'covered_month_indicator9' => :'Boolean', - :'covered_month_indicator10' => :'Boolean', - :'covered_month_indicator11' => :'Boolean', - :'covered_month_indicator12' => :'Boolean' + :'covered_all_months' => :'Boolean', + :'covered_january' => :'Boolean', + :'covered_february' => :'Boolean', + :'covered_march' => :'Boolean', + :'covered_april' => :'Boolean', + :'covered_may' => :'Boolean', + :'covered_june' => :'Boolean', + :'covered_july' => :'Boolean', + :'covered_august' => :'Boolean', + :'covered_september' => :'Boolean', + :'covered_october' => :'Boolean', + :'covered_november' => :'Boolean', + :'covered_december' => :'Boolean' } end @@ -174,56 +174,56 @@ def initialize(attributes = {}) self.birth_date = attributes[:'birth_date'] end - if attributes.key?(:'covered_month_indicator0') - self.covered_month_indicator0 = attributes[:'covered_month_indicator0'] + if attributes.key?(:'covered_all_months') + self.covered_all_months = attributes[:'covered_all_months'] end - if attributes.key?(:'covered_month_indicator1') - self.covered_month_indicator1 = attributes[:'covered_month_indicator1'] + if attributes.key?(:'covered_january') + self.covered_january = attributes[:'covered_january'] end - if attributes.key?(:'covered_month_indicator2') - self.covered_month_indicator2 = attributes[:'covered_month_indicator2'] + if attributes.key?(:'covered_february') + self.covered_february = attributes[:'covered_february'] end - if attributes.key?(:'covered_month_indicator3') - self.covered_month_indicator3 = attributes[:'covered_month_indicator3'] + if attributes.key?(:'covered_march') + self.covered_march = attributes[:'covered_march'] end - if attributes.key?(:'covered_month_indicator4') - self.covered_month_indicator4 = attributes[:'covered_month_indicator4'] + if attributes.key?(:'covered_april') + self.covered_april = attributes[:'covered_april'] end - if attributes.key?(:'covered_month_indicator5') - self.covered_month_indicator5 = attributes[:'covered_month_indicator5'] + if attributes.key?(:'covered_may') + self.covered_may = attributes[:'covered_may'] end - if attributes.key?(:'covered_month_indicator6') - self.covered_month_indicator6 = attributes[:'covered_month_indicator6'] + if attributes.key?(:'covered_june') + self.covered_june = attributes[:'covered_june'] end - if attributes.key?(:'covered_month_indicator7') - self.covered_month_indicator7 = attributes[:'covered_month_indicator7'] + if attributes.key?(:'covered_july') + self.covered_july = attributes[:'covered_july'] end - if attributes.key?(:'covered_month_indicator8') - self.covered_month_indicator8 = attributes[:'covered_month_indicator8'] + if attributes.key?(:'covered_august') + self.covered_august = attributes[:'covered_august'] end - if attributes.key?(:'covered_month_indicator9') - self.covered_month_indicator9 = attributes[:'covered_month_indicator9'] + if attributes.key?(:'covered_september') + self.covered_september = attributes[:'covered_september'] end - if attributes.key?(:'covered_month_indicator10') - self.covered_month_indicator10 = attributes[:'covered_month_indicator10'] + if attributes.key?(:'covered_october') + self.covered_october = attributes[:'covered_october'] end - if attributes.key?(:'covered_month_indicator11') - self.covered_month_indicator11 = attributes[:'covered_month_indicator11'] + if attributes.key?(:'covered_november') + self.covered_november = attributes[:'covered_november'] end - if attributes.key?(:'covered_month_indicator12') - self.covered_month_indicator12 = attributes[:'covered_month_indicator12'] + if attributes.key?(:'covered_december') + self.covered_december = attributes[:'covered_december'] end end @@ -253,19 +253,19 @@ def ==(o) name_suffix == o.name_suffix && tin == o.tin && birth_date == o.birth_date && - covered_month_indicator0 == o.covered_month_indicator0 && - covered_month_indicator1 == o.covered_month_indicator1 && - covered_month_indicator2 == o.covered_month_indicator2 && - covered_month_indicator3 == o.covered_month_indicator3 && - covered_month_indicator4 == o.covered_month_indicator4 && - covered_month_indicator5 == o.covered_month_indicator5 && - covered_month_indicator6 == o.covered_month_indicator6 && - covered_month_indicator7 == o.covered_month_indicator7 && - covered_month_indicator8 == o.covered_month_indicator8 && - covered_month_indicator9 == o.covered_month_indicator9 && - covered_month_indicator10 == o.covered_month_indicator10 && - covered_month_indicator11 == o.covered_month_indicator11 && - covered_month_indicator12 == o.covered_month_indicator12 + covered_all_months == o.covered_all_months && + covered_january == o.covered_january && + covered_february == o.covered_february && + covered_march == o.covered_march && + covered_april == o.covered_april && + covered_may == o.covered_may && + covered_june == o.covered_june && + covered_july == o.covered_july && + covered_august == o.covered_august && + covered_september == o.covered_september && + covered_october == o.covered_october && + covered_november == o.covered_november && + covered_december == o.covered_december end # @see the `==` method @@ -277,7 +277,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_month_indicator0, covered_month_indicator1, covered_month_indicator2, covered_month_indicator3, covered_month_indicator4, covered_month_indicator5, covered_month_indicator6, covered_month_indicator7, covered_month_indicator8, covered_month_indicator9, covered_month_indicator10, covered_month_indicator11, covered_month_indicator12].hash + [first_name, middle_name, last_name, name_suffix, tin, birth_date, covered_all_months, covered_january, covered_february, covered_march, covered_april, covered_may, covered_june, covered_july, covered_august, covered_september, covered_october, covered_november, covered_december].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb b/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb index 9f2859f..3f75d6f 100644 --- a/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/create1099_form201_response.rb @@ -18,6 +18,7 @@ def openapi_one_of :'Form1042SListItemResponse', :'Form1095BListItemResponse', :'Form1099BaseResponse', + :'Form1099DivListItemResponse', :'Form1099KListItemResponse', :'Form1099MiscListItemResponse', :'Form1099NecListItemResponse', diff --git a/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb index 698ba17..24018b2 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item.rb @@ -117,7 +117,7 @@ class Form1042SListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -126,7 +126,7 @@ class Form1042SListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -143,6 +143,9 @@ class Form1042SListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -209,15 +212,16 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -266,15 +270,16 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -302,12 +307,15 @@ def self.openapi_nullable :'chap4_status_code', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -443,8 +451,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -479,8 +485,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -491,8 +497,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -517,6 +523,10 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -531,14 +541,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -580,8 +582,6 @@ def valid? return false unless chap3_status_code_validator.valid?(@chap3_status_code) chap4_status_code_validator = EnumAttributeValidator.new('String', ["UsWithholdingAgentFi", "UsWithholdingAgentOther", "TerritoryFiNotTreatedAsUsPerson", "TerritoryFiTreatedAsUsPerson", "ParticipatingFfiOther", "ParticipatingFfiReportingModel2Ffi", "RegisteredDeemedCompliantFfiReportingModel1Ffi", "RegisteredDeemedCompliantFfiSponsoredEntity", "RegisteredDeemedCompliantFfiOther", "CertifiedDeemedCompliantFfiOther", "CertifiedDeemedCompliantFfiffiWithLowValueAccounts", "CertifiedDeemedCompliantFfiNonRegisteringLocalBank", "CertifiedDeemedCompliantFfiSponsoredEntity", "CertifiedDeemedCompliantFfiInvestmentAdvisorOrManager", "NonparticipatingFfi", "OwnerDocumentedFfi", "UsBranchTreatedAsUsPerson", "UsBranchNotTreatedAsUsPerson", "PassiveNffeIdentifyingSubstantialUsOwners", "PassiveNffeWithNoSubstantialUsOwners", "PubliclyTradedNffeOrAffiliate", "ActiveNffe", "Individual", "Section501CEntities", "ExceptedTerritoryNffe", "ExceptedNffeOther", "ExemptBeneficialOwner", "EntityWhollyOwnedByExemptBeneficialOwners", "UnknownRecipient", "RecalcitrantAccountHolder", "NonreportingIgafii", "DirectReportingNffe", "UsReportableAccount", "NonConsentingUsAccount", "SponsoredDirectReportingNffe", "ExceptedInterAffiliateFfi", "UndocumentedPreexistingObligation", "UsBranchEciPresumptionApplied", "AccountHolderOfExcludedFinancialAccount", "PassiveNffeReportedByFfi", "NffeSubjectTo1472Withholding", "RecalcitrantPoolNoUsIndicia", "RecalcitrantPoolUsIndicia", "RecalcitrantPoolDormantAccount", "RecalcitrantPoolUsPersons", "RecalcitrantPoolPassiveNffEs", "NonparticipatingFfiPool", "UsPayeesPool", "QiRecalcitrantPoolGeneral", "UsWithholdingAgentForeignBranchOfFi"]) return false unless chap4_status_code_validator.valid?(@chap4_status_code) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -643,20 +643,6 @@ def chap4_status_code=(chap4_status_code) @chap4_status_code = chap4_status_code end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -749,15 +735,16 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -771,7 +758,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb index 0aebc4b..af481ca 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1042_s_list_item_response.rb @@ -131,6 +131,9 @@ class Form1042SListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -143,6 +146,9 @@ class Form1042SListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -165,11 +171,20 @@ class Form1042SListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -224,10 +239,12 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -235,8 +252,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -283,19 +303,21 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -303,8 +325,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -338,10 +363,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -349,8 +376,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -556,6 +586,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -572,6 +606,10 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -600,14 +638,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -777,10 +827,12 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -788,8 +840,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -805,7 +860,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb b/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb index 226d58a..86ffc92 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1042_s_request.rb @@ -14,9 +14,6 @@ class Form1042SRequest # Unique form identifier attr_accessor :unique_form_id - # No TIN indicator - attr_accessor :no_tin - # Recipient's date of birth attr_accessor :recipient_date_of_birth @@ -122,7 +119,7 @@ class Form1042SRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -131,7 +128,7 @@ class Form1042SRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -148,6 +145,12 @@ class Form1042SRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -177,7 +180,6 @@ def valid?(value) def self.attribute_map { :'unique_form_id' => :'uniqueFormId', - :'no_tin' => :'noTin', :'recipient_date_of_birth' => :'recipientDateOfBirth', :'recipient_giin' => :'recipientGiin', :'recipient_foreign_tin' => :'recipientForeignTin', @@ -213,15 +215,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification' } end @@ -235,7 +239,6 @@ def self.acceptable_attributes def self.openapi_types { :'unique_form_id' => :'String', - :'no_tin' => :'Boolean', :'recipient_date_of_birth' => :'Time', :'recipient_giin' => :'String', :'recipient_foreign_tin' => :'String', @@ -271,15 +274,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean' } end @@ -287,7 +292,6 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'no_tin', :'recipient_date_of_birth', :'recipient_giin', :'recipient_foreign_tin', @@ -309,12 +313,14 @@ def self.openapi_nullable :'chap4_status_code', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', ]) end @@ -344,10 +350,6 @@ def initialize(attributes = {}) self.unique_form_id = attributes[:'unique_form_id'] end - if attributes.key?(:'no_tin') - self.no_tin = attributes[:'no_tin'] - end - if attributes.key?(:'recipient_date_of_birth') self.recipient_date_of_birth = attributes[:'recipient_date_of_birth'] end @@ -458,8 +460,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -494,8 +494,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -506,8 +506,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -532,6 +532,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -542,14 +550,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -581,10 +581,8 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -599,27 +597,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -678,7 +662,6 @@ def ==(o) return true if self.equal?(o) self.class == o.class && unique_form_id == o.unique_form_id && - no_tin == o.no_tin && recipient_date_of_birth == o.recipient_date_of_birth && recipient_giin == o.recipient_giin && recipient_foreign_tin == o.recipient_foreign_tin && @@ -714,15 +697,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification end @@ -735,7 +720,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [unique_form_id, no_tin, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, state_and_local_withholding, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification].hash + [unique_form_id, recipient_date_of_birth, recipient_giin, recipient_foreign_tin, lob_code, income_code, gross_income, withholding_indicator, tax_country_code, exemption_code_chap3, exemption_code_chap4, tax_rate_chap3, withholding_allowance, federal_tax_withheld, tax_not_deposited_indicator, academic_indicator, tax_withheld_other_agents, amount_repaid, tax_paid_agent, chap3_status_code, chap4_status_code, primary_withholding_agent, intermediary_or_flow_through, state_and_local_withholding, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb b/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb index 0d9b306..8099753 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1042_s_response.rb @@ -17,8 +17,6 @@ class Form1042SResponse attr_accessor :updated_at - attr_accessor :user_id - attr_accessor :state_and_local_withholding attr_accessor :tin_type @@ -51,13 +49,13 @@ class Form1042SResponse attr_accessor :zip - attr_accessor :recipient_email + attr_accessor :email attr_accessor :account_number attr_accessor :office_code - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province attr_accessor :country_code @@ -69,10 +67,16 @@ class Form1042SResponse attr_accessor :tin_match + attr_accessor :no_tin + + attr_accessor :second_tin_notice + attr_accessor :address_verification attr_accessor :federal_efile_status + attr_accessor :e_delivery_status + attr_accessor :state_efile_status attr_accessor :postal_mail_status @@ -111,7 +115,6 @@ def self.attribute_map :'type' => :'type', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', - :'user_id' => :'userId', :'state_and_local_withholding' => :'stateAndLocalWithholding', :'tin_type' => :'tinType', :'id' => :'id', @@ -128,17 +131,20 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'state_efile_status' => :'stateEfileStatus', :'postal_mail_status' => :'postalMailStatus', :'tin_match_status' => :'tinMatchStatus', @@ -158,7 +164,6 @@ def self.openapi_types :'type' => :'String', :'created_at' => :'Time', :'updated_at' => :'Time', - :'user_id' => :'String', :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', :'tin_type' => :'String', :'id' => :'String', @@ -175,17 +180,20 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'state_efile_status' => :'Array', :'postal_mail_status' => :'StatusDetail', :'tin_match_status' => :'StatusDetail', @@ -198,6 +206,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'federal_efile_status', + :'e_delivery_status', :'state_efile_status', :'postal_mail_status', :'tin_match_status', @@ -240,10 +249,6 @@ def initialize(attributes = {}) self.updated_at = attributes[:'updated_at'] end - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - if attributes.key?(:'state_and_local_withholding') self.state_and_local_withholding = attributes[:'state_and_local_withholding'] end @@ -308,8 +313,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -320,8 +325,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -344,6 +349,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -352,6 +365,10 @@ def initialize(attributes = {}) self.federal_efile_status = attributes[:'federal_efile_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'state_efile_status') if (value = attributes[:'state_efile_status']).is_a?(Array) self.state_efile_status = value @@ -389,7 +406,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) @@ -399,7 +416,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -436,7 +453,6 @@ def ==(o) type == o.type && created_at == o.created_at && updated_at == o.updated_at && - user_id == o.user_id && state_and_local_withholding == o.state_and_local_withholding && tin_type == o.tin_type && id == o.id && @@ -453,17 +469,20 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && state_efile_status == o.state_efile_status && postal_mail_status == o.postal_mail_status && tin_match_status == o.tin_match_status && @@ -480,7 +499,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + [type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb index 0443831..fc7cd95 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item.rb @@ -66,7 +66,7 @@ class Form1095BListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -75,7 +75,7 @@ class Form1095BListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -92,6 +92,12 @@ class Form1095BListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -141,15 +147,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -181,15 +189,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -203,12 +213,15 @@ def self.openapi_nullable :'employee_date_of_birth', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -278,8 +291,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -314,8 +325,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -326,8 +337,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -352,6 +363,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -366,14 +385,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -407,8 +418,6 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"]) return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -440,20 +449,6 @@ def covered_individuals=(covered_individuals) @covered_individuals = covered_individuals end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -529,15 +524,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -551,7 +548,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb index 4eb1a30..5486153 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1095_b_list_item_response.rb @@ -65,6 +65,9 @@ class Form1095BListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -77,6 +80,12 @@ class Form1095BListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -99,11 +108,20 @@ class Form1095BListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -136,10 +154,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -147,8 +168,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -173,19 +197,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -193,8 +220,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -211,10 +241,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -222,8 +254,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -343,6 +378,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -359,6 +398,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -387,14 +434,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -552,10 +611,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -563,8 +625,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -580,7 +645,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [origin_of_health_coverage_code, covered_individuals, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [origin_of_health_coverage_code, covered_individuals, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb b/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb index 2647be2..f343869 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1095_b_request.rb @@ -68,7 +68,7 @@ class Form1095BRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -77,7 +77,7 @@ class Form1095BRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -94,6 +94,12 @@ class Form1095BRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -144,15 +150,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -185,15 +193,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -207,12 +217,15 @@ def self.openapi_nullable :'employee_date_of_birth', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -286,8 +299,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -322,8 +333,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -334,8 +345,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -360,6 +371,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -374,14 +393,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -415,10 +426,8 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' origin_of_health_coverage_code_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "D", "E", "F", "G"]) return false unless origin_of_health_coverage_code_validator.valid?(@origin_of_health_coverage_code) - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -453,27 +462,13 @@ def covered_individuals=(covered_individuals) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -550,15 +545,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -572,7 +569,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, employee_date_of_birth, origin_of_health_coverage_code, covered_individuals, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb b/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb new file mode 100644 index 0000000..edf28b8 --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/form1095_c_list.rb @@ -0,0 +1,238 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class Form1095CList + attr_accessor :forms + + attr_accessor :form_type + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'forms' => :'forms', + :'form_type' => :'formType' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'forms' => :'Array', + :'form_type' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'BaseFormListRequest' + ] + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1095CList` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1095CList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'forms') + if (value = attributes[:'forms']).is_a?(Array) + self.forms = value + end + end + + if attributes.key?(:'form_type') + self.form_type = attributes[:'form_type'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Custom attribute writer method with validation + # @param [Object] forms Value to be assigned + def forms=(forms) + if forms.nil? + fail ArgumentError, 'forms cannot be nil' + end + + @forms = forms + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + forms == o.forms && + form_type == o.form_type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [forms, form_type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb new file mode 100644 index 0000000..bc45171 --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/form1095_c_list_item.rb @@ -0,0 +1,722 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class Form1095CListItem + # Employee's first name + attr_accessor :employee_first_name + + # Employee's middle name + attr_accessor :employee_middle_name + + # Employee's last name + attr_accessor :employee_last_name + + # Employee's name suffix + attr_accessor :employee_name_suffix + + # Recipient's date of birth + attr_accessor :recipient_date_of_birth + + # Plan start month + attr_accessor :plan_start_month + + # Offer and coverage information + attr_accessor :offer_and_coverages + + # Employer provided self-insured coverage + attr_accessor :employer_provided_si_coverage + + # Covered individuals information + attr_accessor :covered_individuals + + # Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. + attr_accessor :issuer_reference_id + + # Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. + attr_accessor :issuer_tin + + # Tax year + attr_accessor :tax_year + + # Issuer ID + attr_accessor :issuer_id + + # Reference ID + attr_accessor :reference_id + + # Recipient Tax ID Number + attr_accessor :recipient_tin + + # Recipient name + attr_accessor :recipient_name + + # Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN + attr_accessor :tin_type + + # Recipient second name + attr_accessor :recipient_second_name + + # Address + attr_accessor :address + + # Address line 2 + attr_accessor :address2 + + # City + attr_accessor :city + + # US state. Required if CountryCode is \"US\". + attr_accessor :state + + # Zip/postal code + attr_accessor :zip + + # Recipient email address + attr_accessor :email + + # Account number + attr_accessor :account_number + + # Office code + attr_accessor :office_code + + # Foreign province + attr_accessor :non_us_province + + # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes + attr_accessor :country_code + + # Boolean indicating that federal e-filing should be scheduled for this form + attr_accessor :federal_e_file + + # Boolean indicating that postal mailing to the recipient should be scheduled for this form + attr_accessor :postal_mail + + # Boolean indicating that state e-filing should be scheduled for this form + attr_accessor :state_e_file + + # Boolean indicating that TIN Matching should be scheduled for this form + attr_accessor :tin_match + + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + + # Boolean indicating that address verification should be scheduled for this form + attr_accessor :address_verification + + # State and local withholding information + attr_accessor :state_and_local_withholding + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'employee_first_name' => :'employeeFirstName', + :'employee_middle_name' => :'employeeMiddleName', + :'employee_last_name' => :'employeeLastName', + :'employee_name_suffix' => :'employeeNameSuffix', + :'recipient_date_of_birth' => :'recipientDateOfBirth', + :'plan_start_month' => :'planStartMonth', + :'offer_and_coverages' => :'offerAndCoverages', + :'employer_provided_si_coverage' => :'employerProvidedSiCoverage', + :'covered_individuals' => :'coveredIndividuals', + :'issuer_reference_id' => :'issuerReferenceId', + :'issuer_tin' => :'issuerTin', + :'tax_year' => :'taxYear', + :'issuer_id' => :'issuerId', + :'reference_id' => :'referenceId', + :'recipient_tin' => :'recipientTin', + :'recipient_name' => :'recipientName', + :'tin_type' => :'tinType', + :'recipient_second_name' => :'recipientSecondName', + :'address' => :'address', + :'address2' => :'address2', + :'city' => :'city', + :'state' => :'state', + :'zip' => :'zip', + :'email' => :'email', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'non_us_province' => :'nonUsProvince', + :'country_code' => :'countryCode', + :'federal_e_file' => :'federalEFile', + :'postal_mail' => :'postalMail', + :'state_e_file' => :'stateEFile', + :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', + :'address_verification' => :'addressVerification', + :'state_and_local_withholding' => :'stateAndLocalWithholding' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'employee_first_name' => :'String', + :'employee_middle_name' => :'String', + :'employee_last_name' => :'String', + :'employee_name_suffix' => :'String', + :'recipient_date_of_birth' => :'Time', + :'plan_start_month' => :'String', + :'offer_and_coverages' => :'Array', + :'employer_provided_si_coverage' => :'Boolean', + :'covered_individuals' => :'Array', + :'issuer_reference_id' => :'String', + :'issuer_tin' => :'String', + :'tax_year' => :'Integer', + :'issuer_id' => :'String', + :'reference_id' => :'String', + :'recipient_tin' => :'String', + :'recipient_name' => :'String', + :'tin_type' => :'String', + :'recipient_second_name' => :'String', + :'address' => :'String', + :'address2' => :'String', + :'city' => :'String', + :'state' => :'String', + :'zip' => :'String', + :'email' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'non_us_province' => :'String', + :'country_code' => :'String', + :'federal_e_file' => :'Boolean', + :'postal_mail' => :'Boolean', + :'state_e_file' => :'Boolean', + :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', + :'address_verification' => :'Boolean', + :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'employee_first_name', + :'employee_middle_name', + :'employee_last_name', + :'employee_name_suffix', + :'recipient_date_of_birth', + :'plan_start_month', + :'offer_and_coverages', + :'covered_individuals', + :'issuer_id', + :'reference_id', + :'recipient_name', + :'recipient_second_name', + :'address2', + :'email', + :'account_number', + :'office_code', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'FormRequestListItemBase' + ] + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1095CListItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1095CListItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'employee_first_name') + self.employee_first_name = attributes[:'employee_first_name'] + end + + if attributes.key?(:'employee_middle_name') + self.employee_middle_name = attributes[:'employee_middle_name'] + end + + if attributes.key?(:'employee_last_name') + self.employee_last_name = attributes[:'employee_last_name'] + end + + if attributes.key?(:'employee_name_suffix') + self.employee_name_suffix = attributes[:'employee_name_suffix'] + end + + if attributes.key?(:'recipient_date_of_birth') + self.recipient_date_of_birth = attributes[:'recipient_date_of_birth'] + end + + if attributes.key?(:'plan_start_month') + self.plan_start_month = attributes[:'plan_start_month'] + end + + if attributes.key?(:'offer_and_coverages') + if (value = attributes[:'offer_and_coverages']).is_a?(Array) + self.offer_and_coverages = value + end + end + + if attributes.key?(:'employer_provided_si_coverage') + self.employer_provided_si_coverage = attributes[:'employer_provided_si_coverage'] + end + + if attributes.key?(:'covered_individuals') + if (value = attributes[:'covered_individuals']).is_a?(Array) + self.covered_individuals = value + end + end + + if attributes.key?(:'issuer_reference_id') + self.issuer_reference_id = attributes[:'issuer_reference_id'] + end + + if attributes.key?(:'issuer_tin') + self.issuer_tin = attributes[:'issuer_tin'] + end + + if attributes.key?(:'tax_year') + self.tax_year = attributes[:'tax_year'] + else + self.tax_year = nil + end + + if attributes.key?(:'issuer_id') + self.issuer_id = attributes[:'issuer_id'] + end + + if attributes.key?(:'reference_id') + self.reference_id = attributes[:'reference_id'] + end + + if attributes.key?(:'recipient_tin') + self.recipient_tin = attributes[:'recipient_tin'] + end + + if attributes.key?(:'recipient_name') + self.recipient_name = attributes[:'recipient_name'] + end + + if attributes.key?(:'tin_type') + self.tin_type = attributes[:'tin_type'] + end + + if attributes.key?(:'recipient_second_name') + self.recipient_second_name = attributes[:'recipient_second_name'] + end + + if attributes.key?(:'address') + self.address = attributes[:'address'] + else + self.address = nil + end + + if attributes.key?(:'address2') + self.address2 = attributes[:'address2'] + end + + if attributes.key?(:'city') + self.city = attributes[:'city'] + else + self.city = nil + end + + if attributes.key?(:'state') + self.state = attributes[:'state'] + end + + if attributes.key?(:'zip') + self.zip = attributes[:'zip'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] + end + + if attributes.key?(:'country_code') + self.country_code = attributes[:'country_code'] + else + self.country_code = nil + end + + if attributes.key?(:'federal_e_file') + self.federal_e_file = attributes[:'federal_e_file'] + end + + if attributes.key?(:'postal_mail') + self.postal_mail = attributes[:'postal_mail'] + end + + if attributes.key?(:'state_e_file') + self.state_e_file = attributes[:'state_e_file'] + end + + if attributes.key?(:'tin_match') + self.tin_match = attributes[:'tin_match'] + end + + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + + if attributes.key?(:'address_verification') + self.address_verification = attributes[:'address_verification'] + end + + if attributes.key?(:'state_and_local_withholding') + self.state_and_local_withholding = attributes[:'state_and_local_withholding'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @tax_year.nil? + invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') + end + + if @address.nil? + invalid_properties.push('invalid value for "address", address cannot be nil.') + end + + if @address.to_s.length < 1 + invalid_properties.push('invalid value for "address", the character length must be great than or equal to 1.') + end + + if @city.nil? + invalid_properties.push('invalid value for "city", city cannot be nil.') + end + + if @city.to_s.length < 1 + invalid_properties.push('invalid value for "city", the character length must be great than or equal to 1.') + end + + if @country_code.nil? + invalid_properties.push('invalid value for "country_code", country_code cannot be nil.') + end + + if @country_code.to_s.length < 1 + invalid_properties.push('invalid value for "country_code", the character length must be great than or equal to 1.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @tax_year.nil? + tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) + return false unless tin_type_validator.valid?(@tin_type) + return false if @address.nil? + return false if @address.to_s.length < 1 + return false if @city.nil? + return false if @city.to_s.length < 1 + return false if @country_code.nil? + return false if @country_code.to_s.length < 1 + true + end + + # Custom attribute writer method with validation + # @param [Object] offer_and_coverages Value to be assigned + def offer_and_coverages=(offer_and_coverages) + @offer_and_coverages = offer_and_coverages + end + + # Custom attribute writer method with validation + # @param [Object] covered_individuals Value to be assigned + def covered_individuals=(covered_individuals) + @covered_individuals = covered_individuals + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] tin_type Object to be assigned + def tin_type=(tin_type) + validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) + unless validator.valid?(tin_type) + fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}." + end + @tin_type = tin_type + end + + # Custom attribute writer method with validation + # @param [Object] address Value to be assigned + def address=(address) + if address.nil? + fail ArgumentError, 'address cannot be nil' + end + + if address.to_s.length < 1 + fail ArgumentError, 'invalid value for "address", the character length must be great than or equal to 1.' + end + + @address = address + end + + # Custom attribute writer method with validation + # @param [Object] city Value to be assigned + def city=(city) + if city.nil? + fail ArgumentError, 'city cannot be nil' + end + + if city.to_s.length < 1 + fail ArgumentError, 'invalid value for "city", the character length must be great than or equal to 1.' + end + + @city = city + end + + # Custom attribute writer method with validation + # @param [Object] country_code Value to be assigned + def country_code=(country_code) + if country_code.nil? + fail ArgumentError, 'country_code cannot be nil' + end + + if country_code.to_s.length < 1 + fail ArgumentError, 'invalid value for "country_code", the character length must be great than or equal to 1.' + end + + @country_code = country_code + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + employee_first_name == o.employee_first_name && + employee_middle_name == o.employee_middle_name && + employee_last_name == o.employee_last_name && + employee_name_suffix == o.employee_name_suffix && + recipient_date_of_birth == o.recipient_date_of_birth && + plan_start_month == o.plan_start_month && + offer_and_coverages == o.offer_and_coverages && + employer_provided_si_coverage == o.employer_provided_si_coverage && + covered_individuals == o.covered_individuals && + issuer_reference_id == o.issuer_reference_id && + issuer_tin == o.issuer_tin && + tax_year == o.tax_year && + issuer_id == o.issuer_id && + reference_id == o.reference_id && + recipient_tin == o.recipient_tin && + recipient_name == o.recipient_name && + tin_type == o.tin_type && + recipient_second_name == o.recipient_second_name && + address == o.address && + address2 == o.address2 && + city == o.city && + state == o.state && + zip == o.zip && + email == o.email && + account_number == o.account_number && + office_code == o.office_code && + non_us_province == o.non_us_province && + country_code == o.country_code && + federal_e_file == o.federal_e_file && + postal_mail == o.postal_mail && + state_e_file == o.state_e_file && + tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && + address_verification == o.address_verification && + state_and_local_withholding == o.state_and_local_withholding + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [employee_first_name, employee_middle_name, employee_last_name, employee_name_suffix, recipient_date_of_birth, plan_start_month, offer_and_coverages, employer_provided_si_coverage, covered_individuals, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb index 5aa9a10..1d07766 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_base_response.rb @@ -59,6 +59,9 @@ class Form1099BaseResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -71,6 +74,12 @@ class Form1099BaseResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -93,11 +102,20 @@ class Form1099BaseResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -128,10 +146,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -139,8 +160,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -163,19 +187,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -183,8 +210,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -201,10 +231,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -212,8 +244,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -316,6 +351,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -332,6 +371,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -360,14 +407,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -513,10 +572,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -524,8 +586,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -541,7 +606,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb index 099af25..1ab2c87 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item.rb @@ -18,10 +18,10 @@ class Form1099DivListItem attr_accessor :qualified_dividends # Total capital gain distributions - attr_accessor :total_capital_gain_distr + attr_accessor :total_capital_gain_distributions # Unrecaptured Section 1250 gain - attr_accessor :unrecap_sec1250_gain + attr_accessor :unrecaptured_section1250_gain # Section 1202 gain attr_accessor :section1202_gain @@ -111,7 +111,7 @@ class Form1099DivListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -120,7 +120,7 @@ class Form1099DivListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -137,6 +137,12 @@ class Form1099DivListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -170,8 +176,8 @@ def self.attribute_map { :'total_ordinary_dividends' => :'totalOrdinaryDividends', :'qualified_dividends' => :'qualifiedDividends', - :'total_capital_gain_distr' => :'totalCapitalGainDistr', - :'unrecap_sec1250_gain' => :'unrecapSec1250Gain', + :'total_capital_gain_distributions' => :'totalCapitalGainDistributions', + :'unrecaptured_section1250_gain' => :'unrecapturedSection1250Gain', :'section1202_gain' => :'section1202Gain', :'collectibles_gain' => :'collectiblesGain', :'section897_ordinary_dividends' => :'section897OrdinaryDividends', @@ -201,15 +207,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -225,8 +233,8 @@ def self.openapi_types { :'total_ordinary_dividends' => :'String', :'qualified_dividends' => :'String', - :'total_capital_gain_distr' => :'String', - :'unrecap_sec1250_gain' => :'String', + :'total_capital_gain_distributions' => :'String', + :'unrecaptured_section1250_gain' => :'String', :'section1202_gain' => :'String', :'collectibles_gain' => :'String', :'section897_ordinary_dividends' => :'String', @@ -241,7 +249,7 @@ def self.openapi_types :'noncash_liquidation_distributions' => :'String', :'exempt_interest_dividends' => :'String', :'specified_private_activity_bond_interest_dividends' => :'String', - :'fatca_filing_requirement' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'issuer_reference_id' => :'String', :'issuer_tin' => :'String', :'tax_year' => :'Integer', @@ -256,15 +264,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -273,14 +283,36 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'total_ordinary_dividends', + :'qualified_dividends', + :'total_capital_gain_distributions', + :'unrecaptured_section1250_gain', + :'section1202_gain', + :'collectibles_gain', + :'section897_ordinary_dividends', + :'section897_capital_gain', + :'nondividend_distributions', + :'federal_income_tax_withheld', + :'section199_a_dividends', + :'investment_expenses', + :'foreign_tax_paid', + :'foreign_country_or_us_possession', + :'cash_liquidation_distributions', + :'noncash_liquidation_distributions', + :'exempt_interest_dividends', + :'specified_private_activity_bond_interest_dividends', + :'fatca_filing_requirement', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -314,12 +346,12 @@ def initialize(attributes = {}) self.qualified_dividends = attributes[:'qualified_dividends'] end - if attributes.key?(:'total_capital_gain_distr') - self.total_capital_gain_distr = attributes[:'total_capital_gain_distr'] + if attributes.key?(:'total_capital_gain_distributions') + self.total_capital_gain_distributions = attributes[:'total_capital_gain_distributions'] end - if attributes.key?(:'unrecap_sec1250_gain') - self.unrecap_sec1250_gain = attributes[:'unrecap_sec1250_gain'] + if attributes.key?(:'unrecaptured_section1250_gain') + self.unrecaptured_section1250_gain = attributes[:'unrecaptured_section1250_gain'] end if attributes.key?(:'section1202_gain') @@ -410,8 +442,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -446,8 +476,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -458,8 +488,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -484,6 +514,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -502,14 +540,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -542,8 +572,6 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -555,20 +583,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -628,8 +642,8 @@ def ==(o) self.class == o.class && total_ordinary_dividends == o.total_ordinary_dividends && qualified_dividends == o.qualified_dividends && - total_capital_gain_distr == o.total_capital_gain_distr && - unrecap_sec1250_gain == o.unrecap_sec1250_gain && + total_capital_gain_distributions == o.total_capital_gain_distributions && + unrecaptured_section1250_gain == o.unrecaptured_section1250_gain && section1202_gain == o.section1202_gain && collectibles_gain == o.collectibles_gain && section897_ordinary_dividends == o.section897_ordinary_dividends && @@ -659,15 +673,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -681,7 +697,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [total_ordinary_dividends, qualified_dividends, total_capital_gain_distr, unrecap_sec1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [total_ordinary_dividends, qualified_dividends, total_capital_gain_distributions, unrecaptured_section1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb new file mode 100644 index 0000000..03dcbd9 --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/form1099_div_list_item_response.rb @@ -0,0 +1,931 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class Form1099DivListItemResponse + # Total ordinary dividends + attr_accessor :total_ordinary_dividends + + # Qualified dividends + attr_accessor :qualified_dividends + + # Total capital gain distributions + attr_accessor :total_capital_gain_distributions + + # Unrecaptured Section 1250 gain + attr_accessor :unrecaptured_section1250_gain + + # Section 1202 gain + attr_accessor :section1202_gain + + # Collectibles (28%) gain + attr_accessor :collectibles_gain + + # Section 897 ordinary dividends + attr_accessor :section897_ordinary_dividends + + # Section 897 capital gain + attr_accessor :section897_capital_gain + + # Nondividend distributions + attr_accessor :nondividend_distributions + + # Federal income tax withheld + attr_accessor :federal_income_tax_withheld + + # Section 199A dividends + attr_accessor :section199_a_dividends + + # Investment expenses + attr_accessor :investment_expenses + + # Foreign tax paid + attr_accessor :foreign_tax_paid + + # Foreign country or U.S. possession + attr_accessor :foreign_country_or_us_possession + + # Cash liquidation distributions + attr_accessor :cash_liquidation_distributions + + # Noncash liquidation distributions + attr_accessor :noncash_liquidation_distributions + + # Exempt-interest dividends + attr_accessor :exempt_interest_dividends + + # Specified private activity bond interest dividends + attr_accessor :specified_private_activity_bond_interest_dividends + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + + # ID of the form + attr_accessor :id + + # Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC + attr_accessor :type + + # Issuer ID + attr_accessor :issuer_id + + # Issuer Reference ID + attr_accessor :issuer_reference_id + + # Issuer TIN + attr_accessor :issuer_tin + + # Tax year + attr_accessor :tax_year + + # Boolean indicating that federal e-filing has been scheduled for this form + attr_accessor :federal_efile + + # Federal e-file status + attr_accessor :federal_efile_status + + # Boolean indicating that state e-filing has been scheduled for this form + attr_accessor :state_efile + + # State e-file status + attr_accessor :state_efile_status + + # Boolean indicating that postal mailing to the recipient has been scheduled for this form + attr_accessor :postal_mail + + # Postal mail to recipient status + attr_accessor :postal_mail_status + + # Boolean indicating that TIN Matching has been scheduled for this form + attr_accessor :tin_match + + # TIN Match status + attr_accessor :tin_match_status + + # Boolean indicating that address verification has been scheduled for this form + attr_accessor :address_verification + + # Address verification status + attr_accessor :address_verification_status + + # EDelivery status + attr_accessor :e_delivery_status + + # Reference ID + attr_accessor :reference_id + + # Recipient email address + attr_accessor :email + + # Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN + attr_accessor :tin_type + + # Recipient Tax ID Number + attr_accessor :tin + + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + + # Recipient name + attr_accessor :recipient_name + + # Recipient second name + attr_accessor :recipient_second_name + + # Address + attr_accessor :address + + # Address line 2 + attr_accessor :address2 + + # City + attr_accessor :city + + # US state + attr_accessor :state + + # Zip/postal code + attr_accessor :zip + + # Foreign province + attr_accessor :non_us_province + + # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes + attr_accessor :country_code + + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # Validation errors + attr_accessor :validation_errors + + # Creation time + attr_accessor :created_at + + # Update time + attr_accessor :updated_at + + attr_accessor :state_and_local_withholding + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'total_ordinary_dividends' => :'totalOrdinaryDividends', + :'qualified_dividends' => :'qualifiedDividends', + :'total_capital_gain_distributions' => :'totalCapitalGainDistributions', + :'unrecaptured_section1250_gain' => :'unrecapturedSection1250Gain', + :'section1202_gain' => :'section1202Gain', + :'collectibles_gain' => :'collectiblesGain', + :'section897_ordinary_dividends' => :'section897OrdinaryDividends', + :'section897_capital_gain' => :'section897CapitalGain', + :'nondividend_distributions' => :'nondividendDistributions', + :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld', + :'section199_a_dividends' => :'section199ADividends', + :'investment_expenses' => :'investmentExpenses', + :'foreign_tax_paid' => :'foreignTaxPaid', + :'foreign_country_or_us_possession' => :'foreignCountryOrUSPossession', + :'cash_liquidation_distributions' => :'cashLiquidationDistributions', + :'noncash_liquidation_distributions' => :'noncashLiquidationDistributions', + :'exempt_interest_dividends' => :'exemptInterestDividends', + :'specified_private_activity_bond_interest_dividends' => :'specifiedPrivateActivityBondInterestDividends', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', + :'id' => :'id', + :'type' => :'type', + :'issuer_id' => :'issuerId', + :'issuer_reference_id' => :'issuerReferenceId', + :'issuer_tin' => :'issuerTin', + :'tax_year' => :'taxYear', + :'federal_efile' => :'federalEfile', + :'federal_efile_status' => :'federalEfileStatus', + :'state_efile' => :'stateEfile', + :'state_efile_status' => :'stateEfileStatus', + :'postal_mail' => :'postalMail', + :'postal_mail_status' => :'postalMailStatus', + :'tin_match' => :'tinMatch', + :'tin_match_status' => :'tinMatchStatus', + :'address_verification' => :'addressVerification', + :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', + :'reference_id' => :'referenceId', + :'email' => :'email', + :'tin_type' => :'tinType', + :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', + :'recipient_name' => :'recipientName', + :'recipient_second_name' => :'recipientSecondName', + :'address' => :'address', + :'address2' => :'address2', + :'city' => :'city', + :'state' => :'state', + :'zip' => :'zip', + :'non_us_province' => :'nonUsProvince', + :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'validation_errors' => :'validationErrors', + :'created_at' => :'createdAt', + :'updated_at' => :'updatedAt', + :'state_and_local_withholding' => :'stateAndLocalWithholding' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'total_ordinary_dividends' => :'String', + :'qualified_dividends' => :'String', + :'total_capital_gain_distributions' => :'String', + :'unrecaptured_section1250_gain' => :'String', + :'section1202_gain' => :'String', + :'collectibles_gain' => :'String', + :'section897_ordinary_dividends' => :'String', + :'section897_capital_gain' => :'String', + :'nondividend_distributions' => :'String', + :'federal_income_tax_withheld' => :'String', + :'section199_a_dividends' => :'String', + :'investment_expenses' => :'String', + :'foreign_tax_paid' => :'String', + :'foreign_country_or_us_possession' => :'String', + :'cash_liquidation_distributions' => :'String', + :'noncash_liquidation_distributions' => :'String', + :'exempt_interest_dividends' => :'String', + :'specified_private_activity_bond_interest_dividends' => :'String', + :'fatca_filing_requirement' => :'Boolean', + :'id' => :'String', + :'type' => :'String', + :'issuer_id' => :'Integer', + :'issuer_reference_id' => :'String', + :'issuer_tin' => :'String', + :'tax_year' => :'Integer', + :'federal_efile' => :'Boolean', + :'federal_efile_status' => :'StatusDetail', + :'state_efile' => :'Boolean', + :'state_efile_status' => :'Array', + :'postal_mail' => :'Boolean', + :'postal_mail_status' => :'StatusDetail', + :'tin_match' => :'Boolean', + :'tin_match_status' => :'StatusDetail', + :'address_verification' => :'Boolean', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', + :'reference_id' => :'String', + :'email' => :'String', + :'tin_type' => :'String', + :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', + :'recipient_name' => :'String', + :'recipient_second_name' => :'String', + :'address' => :'String', + :'address2' => :'String', + :'city' => :'String', + :'state' => :'String', + :'zip' => :'String', + :'non_us_province' => :'String', + :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'validation_errors' => :'Array', + :'created_at' => :'Time', + :'updated_at' => :'Time', + :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'total_ordinary_dividends', + :'qualified_dividends', + :'total_capital_gain_distributions', + :'unrecaptured_section1250_gain', + :'section1202_gain', + :'collectibles_gain', + :'section897_ordinary_dividends', + :'section897_capital_gain', + :'nondividend_distributions', + :'federal_income_tax_withheld', + :'section199_a_dividends', + :'investment_expenses', + :'foreign_tax_paid', + :'foreign_country_or_us_possession', + :'cash_liquidation_distributions', + :'noncash_liquidation_distributions', + :'exempt_interest_dividends', + :'specified_private_activity_bond_interest_dividends', + :'fatca_filing_requirement', + :'issuer_reference_id', + :'issuer_tin', + :'state_efile_status', + :'postal_mail_status', + :'tin_match_status', + :'address_verification_status', + :'e_delivery_status', + :'reference_id', + :'email', + :'tin_type', + :'tin', + :'second_tin_notice', + :'recipient_name', + :'recipient_second_name', + :'address', + :'address2', + :'city', + :'state', + :'zip', + :'non_us_province', + :'country_code', + :'account_number', + :'office_code', + :'validation_errors', + :'state_and_local_withholding' + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'Form1099BaseResponse' + ] + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1099DivListItemResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1099DivListItemResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'total_ordinary_dividends') + self.total_ordinary_dividends = attributes[:'total_ordinary_dividends'] + end + + if attributes.key?(:'qualified_dividends') + self.qualified_dividends = attributes[:'qualified_dividends'] + end + + if attributes.key?(:'total_capital_gain_distributions') + self.total_capital_gain_distributions = attributes[:'total_capital_gain_distributions'] + end + + if attributes.key?(:'unrecaptured_section1250_gain') + self.unrecaptured_section1250_gain = attributes[:'unrecaptured_section1250_gain'] + end + + if attributes.key?(:'section1202_gain') + self.section1202_gain = attributes[:'section1202_gain'] + end + + if attributes.key?(:'collectibles_gain') + self.collectibles_gain = attributes[:'collectibles_gain'] + end + + if attributes.key?(:'section897_ordinary_dividends') + self.section897_ordinary_dividends = attributes[:'section897_ordinary_dividends'] + end + + if attributes.key?(:'section897_capital_gain') + self.section897_capital_gain = attributes[:'section897_capital_gain'] + end + + if attributes.key?(:'nondividend_distributions') + self.nondividend_distributions = attributes[:'nondividend_distributions'] + end + + if attributes.key?(:'federal_income_tax_withheld') + self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld'] + end + + if attributes.key?(:'section199_a_dividends') + self.section199_a_dividends = attributes[:'section199_a_dividends'] + end + + if attributes.key?(:'investment_expenses') + self.investment_expenses = attributes[:'investment_expenses'] + end + + if attributes.key?(:'foreign_tax_paid') + self.foreign_tax_paid = attributes[:'foreign_tax_paid'] + end + + if attributes.key?(:'foreign_country_or_us_possession') + self.foreign_country_or_us_possession = attributes[:'foreign_country_or_us_possession'] + end + + if attributes.key?(:'cash_liquidation_distributions') + self.cash_liquidation_distributions = attributes[:'cash_liquidation_distributions'] + end + + if attributes.key?(:'noncash_liquidation_distributions') + self.noncash_liquidation_distributions = attributes[:'noncash_liquidation_distributions'] + end + + if attributes.key?(:'exempt_interest_dividends') + self.exempt_interest_dividends = attributes[:'exempt_interest_dividends'] + end + + if attributes.key?(:'specified_private_activity_bond_interest_dividends') + self.specified_private_activity_bond_interest_dividends = attributes[:'specified_private_activity_bond_interest_dividends'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = nil + end + + if attributes.key?(:'issuer_id') + self.issuer_id = attributes[:'issuer_id'] + else + self.issuer_id = nil + end + + if attributes.key?(:'issuer_reference_id') + self.issuer_reference_id = attributes[:'issuer_reference_id'] + end + + if attributes.key?(:'issuer_tin') + self.issuer_tin = attributes[:'issuer_tin'] + end + + if attributes.key?(:'tax_year') + self.tax_year = attributes[:'tax_year'] + end + + if attributes.key?(:'federal_efile') + self.federal_efile = attributes[:'federal_efile'] + else + self.federal_efile = nil + end + + if attributes.key?(:'federal_efile_status') + self.federal_efile_status = attributes[:'federal_efile_status'] + end + + if attributes.key?(:'state_efile') + self.state_efile = attributes[:'state_efile'] + else + self.state_efile = nil + end + + if attributes.key?(:'state_efile_status') + if (value = attributes[:'state_efile_status']).is_a?(Array) + self.state_efile_status = value + end + end + + if attributes.key?(:'postal_mail') + self.postal_mail = attributes[:'postal_mail'] + else + self.postal_mail = nil + end + + if attributes.key?(:'postal_mail_status') + self.postal_mail_status = attributes[:'postal_mail_status'] + end + + if attributes.key?(:'tin_match') + self.tin_match = attributes[:'tin_match'] + else + self.tin_match = nil + end + + if attributes.key?(:'tin_match_status') + self.tin_match_status = attributes[:'tin_match_status'] + end + + if attributes.key?(:'address_verification') + self.address_verification = attributes[:'address_verification'] + else + self.address_verification = nil + end + + if attributes.key?(:'address_verification_status') + self.address_verification_status = attributes[:'address_verification_status'] + end + + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + + if attributes.key?(:'reference_id') + self.reference_id = attributes[:'reference_id'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'tin_type') + self.tin_type = attributes[:'tin_type'] + end + + if attributes.key?(:'tin') + self.tin = attributes[:'tin'] + end + + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + + if attributes.key?(:'recipient_name') + self.recipient_name = attributes[:'recipient_name'] + end + + if attributes.key?(:'recipient_second_name') + self.recipient_second_name = attributes[:'recipient_second_name'] + end + + if attributes.key?(:'address') + self.address = attributes[:'address'] + end + + if attributes.key?(:'address2') + self.address2 = attributes[:'address2'] + end + + if attributes.key?(:'city') + self.city = attributes[:'city'] + end + + if attributes.key?(:'state') + self.state = attributes[:'state'] + end + + if attributes.key?(:'zip') + self.zip = attributes[:'zip'] + end + + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] + end + + if attributes.key?(:'country_code') + self.country_code = attributes[:'country_code'] + end + + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.key?(:'state_and_local_withholding') + self.state_and_local_withholding = attributes[:'state_and_local_withholding'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @id.to_s.length < 1 + invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.') + end + + if @type.nil? + invalid_properties.push('invalid value for "type", type cannot be nil.') + end + + if @type.to_s.length < 1 + invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.') + end + + if @issuer_id.nil? + invalid_properties.push('invalid value for "issuer_id", issuer_id cannot be nil.') + end + + if @federal_efile.nil? + invalid_properties.push('invalid value for "federal_efile", federal_efile cannot be nil.') + end + + if @state_efile.nil? + invalid_properties.push('invalid value for "state_efile", state_efile cannot be nil.') + end + + if @postal_mail.nil? + invalid_properties.push('invalid value for "postal_mail", postal_mail cannot be nil.') + end + + if @tin_match.nil? + invalid_properties.push('invalid value for "tin_match", tin_match cannot be nil.') + end + + if @address_verification.nil? + invalid_properties.push('invalid value for "address_verification", address_verification cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @id.nil? + return false if @id.to_s.length < 1 + return false if @type.nil? + return false if @type.to_s.length < 1 + return false if @issuer_id.nil? + return false if @federal_efile.nil? + return false if @state_efile.nil? + return false if @postal_mail.nil? + return false if @tin_match.nil? + return false if @address_verification.nil? + true + end + + # Custom attribute writer method with validation + # @param [Object] id Value to be assigned + def id=(id) + if id.nil? + fail ArgumentError, 'id cannot be nil' + end + + if id.to_s.length < 1 + fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.' + end + + @id = id + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + if type.to_s.length < 1 + fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.' + end + + @type = type + end + + # Custom attribute writer method with validation + # @param [Object] state_efile_status Value to be assigned + def state_efile_status=(state_efile_status) + @state_efile_status = state_efile_status + end + + # Custom attribute writer method with validation + # @param [Object] validation_errors Value to be assigned + def validation_errors=(validation_errors) + @validation_errors = validation_errors + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + total_ordinary_dividends == o.total_ordinary_dividends && + qualified_dividends == o.qualified_dividends && + total_capital_gain_distributions == o.total_capital_gain_distributions && + unrecaptured_section1250_gain == o.unrecaptured_section1250_gain && + section1202_gain == o.section1202_gain && + collectibles_gain == o.collectibles_gain && + section897_ordinary_dividends == o.section897_ordinary_dividends && + section897_capital_gain == o.section897_capital_gain && + nondividend_distributions == o.nondividend_distributions && + federal_income_tax_withheld == o.federal_income_tax_withheld && + section199_a_dividends == o.section199_a_dividends && + investment_expenses == o.investment_expenses && + foreign_tax_paid == o.foreign_tax_paid && + foreign_country_or_us_possession == o.foreign_country_or_us_possession && + cash_liquidation_distributions == o.cash_liquidation_distributions && + noncash_liquidation_distributions == o.noncash_liquidation_distributions && + exempt_interest_dividends == o.exempt_interest_dividends && + specified_private_activity_bond_interest_dividends == o.specified_private_activity_bond_interest_dividends && + fatca_filing_requirement == o.fatca_filing_requirement && + id == o.id && + type == o.type && + issuer_id == o.issuer_id && + issuer_reference_id == o.issuer_reference_id && + issuer_tin == o.issuer_tin && + tax_year == o.tax_year && + federal_efile == o.federal_efile && + federal_efile_status == o.federal_efile_status && + state_efile == o.state_efile && + state_efile_status == o.state_efile_status && + postal_mail == o.postal_mail && + postal_mail_status == o.postal_mail_status && + tin_match == o.tin_match && + tin_match_status == o.tin_match_status && + address_verification == o.address_verification && + address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && + reference_id == o.reference_id && + email == o.email && + tin_type == o.tin_type && + tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && + recipient_name == o.recipient_name && + recipient_second_name == o.recipient_second_name && + address == o.address && + address2 == o.address2 && + city == o.city && + state == o.state && + zip == o.zip && + non_us_province == o.non_us_province && + country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + validation_errors == o.validation_errors && + created_at == o.created_at && + updated_at == o.updated_at && + state_and_local_withholding == o.state_and_local_withholding + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [total_ordinary_dividends, qualified_dividends, total_capital_gain_distributions, unrecaptured_section1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb b/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb index 674737e..559097d 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_div_request.rb @@ -18,10 +18,10 @@ class Form1099DivRequest attr_accessor :qualified_dividends # Total capital gain distributions - attr_accessor :total_capital_gain_distr + attr_accessor :total_capital_gain_distributions # Unrecaptured Section 1250 gain - attr_accessor :unrecap_sec1250_gain + attr_accessor :unrecaptured_section1250_gain # Section 1202 gain attr_accessor :section1202_gain @@ -104,7 +104,7 @@ class Form1099DivRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -113,7 +113,7 @@ class Form1099DivRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -130,6 +130,12 @@ class Form1099DivRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -163,8 +169,8 @@ def self.attribute_map { :'total_ordinary_dividends' => :'totalOrdinaryDividends', :'qualified_dividends' => :'qualifiedDividends', - :'total_capital_gain_distr' => :'totalCapitalGainDistr', - :'unrecap_sec1250_gain' => :'unrecapSec1250Gain', + :'total_capital_gain_distributions' => :'totalCapitalGainDistributions', + :'unrecaptured_section1250_gain' => :'unrecapturedSection1250Gain', :'section1202_gain' => :'section1202Gain', :'collectibles_gain' => :'collectiblesGain', :'section897_ordinary_dividends' => :'section897OrdinaryDividends', @@ -192,15 +198,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -216,8 +224,8 @@ def self.openapi_types { :'total_ordinary_dividends' => :'String', :'qualified_dividends' => :'String', - :'total_capital_gain_distr' => :'String', - :'unrecap_sec1250_gain' => :'String', + :'total_capital_gain_distributions' => :'String', + :'unrecaptured_section1250_gain' => :'String', :'section1202_gain' => :'String', :'collectibles_gain' => :'String', :'section897_ordinary_dividends' => :'String', @@ -232,7 +240,7 @@ def self.openapi_types :'noncash_liquidation_distributions' => :'String', :'exempt_interest_dividends' => :'String', :'specified_private_activity_bond_interest_dividends' => :'String', - :'fatca_filing_requirement' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'type' => :'String', :'issuer_id' => :'String', :'reference_id' => :'String', @@ -245,15 +253,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -262,14 +272,36 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'total_ordinary_dividends', + :'qualified_dividends', + :'total_capital_gain_distributions', + :'unrecaptured_section1250_gain', + :'section1202_gain', + :'collectibles_gain', + :'section897_ordinary_dividends', + :'section897_capital_gain', + :'nondividend_distributions', + :'federal_income_tax_withheld', + :'section199_a_dividends', + :'investment_expenses', + :'foreign_tax_paid', + :'foreign_country_or_us_possession', + :'cash_liquidation_distributions', + :'noncash_liquidation_distributions', + :'exempt_interest_dividends', + :'specified_private_activity_bond_interest_dividends', + :'fatca_filing_requirement', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -303,12 +335,12 @@ def initialize(attributes = {}) self.qualified_dividends = attributes[:'qualified_dividends'] end - if attributes.key?(:'total_capital_gain_distr') - self.total_capital_gain_distr = attributes[:'total_capital_gain_distr'] + if attributes.key?(:'total_capital_gain_distributions') + self.total_capital_gain_distributions = attributes[:'total_capital_gain_distributions'] end - if attributes.key?(:'unrecap_sec1250_gain') - self.unrecap_sec1250_gain = attributes[:'unrecap_sec1250_gain'] + if attributes.key?(:'unrecaptured_section1250_gain') + self.unrecaptured_section1250_gain = attributes[:'unrecaptured_section1250_gain'] end if attributes.key?(:'section1202_gain') @@ -389,8 +421,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -425,8 +455,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -437,8 +467,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -463,6 +493,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -477,14 +515,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -516,10 +546,8 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -534,27 +562,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -614,8 +628,8 @@ def ==(o) self.class == o.class && total_ordinary_dividends == o.total_ordinary_dividends && qualified_dividends == o.qualified_dividends && - total_capital_gain_distr == o.total_capital_gain_distr && - unrecap_sec1250_gain == o.unrecap_sec1250_gain && + total_capital_gain_distributions == o.total_capital_gain_distributions && + unrecaptured_section1250_gain == o.unrecaptured_section1250_gain && section1202_gain == o.section1202_gain && collectibles_gain == o.collectibles_gain && section897_ordinary_dividends == o.section897_ordinary_dividends && @@ -643,15 +657,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -665,7 +681,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [total_ordinary_dividends, qualified_dividends, total_capital_gain_distr, unrecap_sec1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [total_ordinary_dividends, qualified_dividends, total_capital_gain_distributions, unrecaptured_section1250_gain, section1202_gain, collectibles_gain, section897_ordinary_dividends, section897_capital_gain, nondividend_distributions, federal_income_tax_withheld, section199_a_dividends, investment_expenses, foreign_tax_paid, foreign_country_or_us_possession, cash_liquidation_distributions, noncash_liquidation_distributions, exempt_interest_dividends, specified_private_activity_bond_interest_dividends, fatca_filing_requirement, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb index 1456c5c..0e7eb00 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_div_response.rb @@ -17,8 +17,6 @@ class Form1099DivResponse attr_accessor :updated_at - attr_accessor :user_id - attr_accessor :state_and_local_withholding attr_accessor :tin_type @@ -51,13 +49,13 @@ class Form1099DivResponse attr_accessor :zip - attr_accessor :recipient_email + attr_accessor :email attr_accessor :account_number attr_accessor :office_code - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province attr_accessor :country_code @@ -69,10 +67,16 @@ class Form1099DivResponse attr_accessor :tin_match + attr_accessor :no_tin + + attr_accessor :second_tin_notice + attr_accessor :address_verification attr_accessor :federal_efile_status + attr_accessor :e_delivery_status + attr_accessor :state_efile_status attr_accessor :postal_mail_status @@ -111,7 +115,6 @@ def self.attribute_map :'type' => :'type', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', - :'user_id' => :'userId', :'state_and_local_withholding' => :'stateAndLocalWithholding', :'tin_type' => :'tinType', :'id' => :'id', @@ -128,17 +131,20 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'state_efile_status' => :'stateEfileStatus', :'postal_mail_status' => :'postalMailStatus', :'tin_match_status' => :'tinMatchStatus', @@ -158,7 +164,6 @@ def self.openapi_types :'type' => :'String', :'created_at' => :'Time', :'updated_at' => :'Time', - :'user_id' => :'String', :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', :'tin_type' => :'String', :'id' => :'String', @@ -175,17 +180,20 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'state_efile_status' => :'Array', :'postal_mail_status' => :'StatusDetail', :'tin_match_status' => :'StatusDetail', @@ -198,6 +206,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'federal_efile_status', + :'e_delivery_status', :'state_efile_status', :'postal_mail_status', :'tin_match_status', @@ -240,10 +249,6 @@ def initialize(attributes = {}) self.updated_at = attributes[:'updated_at'] end - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - if attributes.key?(:'state_and_local_withholding') self.state_and_local_withholding = attributes[:'state_and_local_withholding'] end @@ -308,8 +313,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -320,8 +325,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -344,6 +349,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -352,6 +365,10 @@ def initialize(attributes = {}) self.federal_efile_status = attributes[:'federal_efile_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'state_efile_status') if (value = attributes[:'state_efile_status']).is_a?(Array) self.state_efile_status = value @@ -389,7 +406,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) @@ -399,7 +416,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -436,7 +453,6 @@ def ==(o) type == o.type && created_at == o.created_at && updated_at == o.updated_at && - user_id == o.user_id && state_and_local_withholding == o.state_and_local_withholding && tin_type == o.tin_type && id == o.id && @@ -453,17 +469,20 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && state_efile_status == o.state_efile_status && postal_mail_status == o.postal_mail_status && tin_match_status == o.tin_match_status && @@ -480,7 +499,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + [type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb index a3e3de9..aba67c4 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item.rb @@ -114,7 +114,7 @@ class Form1099KListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -123,7 +123,7 @@ class Form1099KListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -140,6 +140,12 @@ class Form1099KListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -205,15 +211,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -261,15 +269,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -296,12 +306,15 @@ def self.openapi_nullable :'december', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -435,8 +448,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -471,8 +482,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -483,8 +494,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -509,6 +520,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -527,14 +546,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -571,8 +582,6 @@ def valid? payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"]) return false unless payment_type_validator.valid?(@payment_type) return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -604,20 +613,6 @@ def payment_type=(payment_type) @payment_type = payment_type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -709,15 +704,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -731,7 +728,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb index bfb4657..037ff6f 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_k_list_item_response.rb @@ -119,6 +119,9 @@ class Form1099KListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -131,6 +134,12 @@ class Form1099KListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -153,11 +162,20 @@ class Form1099KListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -230,10 +248,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -241,8 +262,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -285,19 +309,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -305,8 +332,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -339,10 +369,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -350,8 +382,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -541,6 +576,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -557,6 +596,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -585,14 +632,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -782,10 +841,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -793,8 +855,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -810,7 +875,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb b/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb index c3adb46..dd8beec 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_k_request.rb @@ -107,7 +107,7 @@ class Form1099KRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -116,7 +116,7 @@ class Form1099KRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -133,6 +133,12 @@ class Form1099KRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -196,15 +202,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -218,8 +226,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'filer_type' => :'Integer', - :'payment_type' => :'Integer', + :'filer_type' => :'String', + :'payment_type' => :'String', :'payment_settlement_entity_name_phone_number' => :'String', :'gross_amount_payment_card' => :'Float', :'card_not_present_transactions' => :'Float', @@ -250,15 +258,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -285,12 +295,15 @@ def self.openapi_nullable :'december', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -414,8 +427,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -450,8 +461,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -462,8 +473,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -488,6 +499,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -502,14 +521,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -541,10 +552,12 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + filer_type_validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"]) + return false unless filer_type_validator.valid?(@filer_type) + payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"]) + return false unless payment_type_validator.valid?(@payment_type) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -557,27 +570,33 @@ def valid? end # Custom attribute writer method checking allowed values (enum). - # @param [Object] type Object to be assigned - def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + # @param [Object] filer_type Object to be assigned + def filer_type=(filer_type) + validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"]) + unless validator.valid?(filer_type) + fail ArgumentError, "invalid value for \"filer_type\", must be one of #{validator.allowable_values}." end - @type = type + @filer_type = filer_type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' + # Custom attribute writer method checking allowed values (enum). + # @param [Object] payment_type Object to be assigned + def payment_type=(payment_type) + validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"]) + unless validator.valid?(payment_type) + fail ArgumentError, "invalid value for \"payment_type\", must be one of #{validator.allowable_values}." end + @payment_type = payment_type + end - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' + # Custom attribute writer method checking allowed values (enum). + # @param [Object] type Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end - - @recipient_name = recipient_name + @type = type end # Custom attribute writer method checking allowed values (enum). @@ -669,15 +688,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -691,7 +712,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb new file mode 100644 index 0000000..9ef361b --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/form1099_k_response.rb @@ -0,0 +1,839 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class Form1099KResponse + attr_accessor :filer_type + + attr_accessor :payment_type + + attr_accessor :payment_settlement_entity_name_phone_number + + attr_accessor :gross_amount_payment_card + + attr_accessor :card_not_present_transactions + + attr_accessor :merchant_category_code + + attr_accessor :payment_transaction_number + + attr_accessor :federal_income_tax_withheld + + attr_accessor :january + + attr_accessor :february + + attr_accessor :march + + attr_accessor :april + + attr_accessor :may + + attr_accessor :june + + attr_accessor :july + + attr_accessor :august + + attr_accessor :sept + + attr_accessor :october + + attr_accessor :november + + attr_accessor :december + + attr_accessor :type + + attr_accessor :created_at + + attr_accessor :updated_at + + attr_accessor :state_and_local_withholding + + attr_accessor :tin_type + + attr_accessor :id + + attr_accessor :issuer_id + + attr_accessor :issuer_reference_id + + attr_accessor :issuer_tin + + attr_accessor :tax_year + + attr_accessor :reference_id + + attr_accessor :recipient_name + + attr_accessor :recipient_tin + + attr_accessor :recipient_second_name + + attr_accessor :address + + attr_accessor :address2 + + attr_accessor :city + + attr_accessor :state + + attr_accessor :zip + + attr_accessor :email + + attr_accessor :account_number + + attr_accessor :office_code + + attr_accessor :non_us_province + + attr_accessor :country_code + + attr_accessor :federal_e_file + + attr_accessor :postal_mail + + attr_accessor :state_e_file + + attr_accessor :tin_match + + attr_accessor :no_tin + + attr_accessor :second_tin_notice + + attr_accessor :address_verification + + attr_accessor :federal_efile_status + + attr_accessor :e_delivery_status + + attr_accessor :state_efile_status + + attr_accessor :postal_mail_status + + attr_accessor :tin_match_status + + attr_accessor :address_verification_status + + attr_accessor :validation_errors + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'filer_type' => :'filerType', + :'payment_type' => :'paymentType', + :'payment_settlement_entity_name_phone_number' => :'paymentSettlementEntityNamePhoneNumber', + :'gross_amount_payment_card' => :'grossAmountPaymentCard', + :'card_not_present_transactions' => :'cardNotPresentTransactions', + :'merchant_category_code' => :'merchantCategoryCode', + :'payment_transaction_number' => :'paymentTransactionNumber', + :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld', + :'january' => :'january', + :'february' => :'february', + :'march' => :'march', + :'april' => :'april', + :'may' => :'may', + :'june' => :'june', + :'july' => :'july', + :'august' => :'august', + :'sept' => :'sept', + :'october' => :'october', + :'november' => :'november', + :'december' => :'december', + :'type' => :'type', + :'created_at' => :'createdAt', + :'updated_at' => :'updatedAt', + :'state_and_local_withholding' => :'stateAndLocalWithholding', + :'tin_type' => :'tinType', + :'id' => :'id', + :'issuer_id' => :'issuerId', + :'issuer_reference_id' => :'issuerReferenceId', + :'issuer_tin' => :'issuerTin', + :'tax_year' => :'taxYear', + :'reference_id' => :'referenceId', + :'recipient_name' => :'recipientName', + :'recipient_tin' => :'recipientTin', + :'recipient_second_name' => :'recipientSecondName', + :'address' => :'address', + :'address2' => :'address2', + :'city' => :'city', + :'state' => :'state', + :'zip' => :'zip', + :'email' => :'email', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'non_us_province' => :'nonUsProvince', + :'country_code' => :'countryCode', + :'federal_e_file' => :'federalEFile', + :'postal_mail' => :'postalMail', + :'state_e_file' => :'stateEFile', + :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', + :'address_verification' => :'addressVerification', + :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', + :'state_efile_status' => :'stateEfileStatus', + :'postal_mail_status' => :'postalMailStatus', + :'tin_match_status' => :'tinMatchStatus', + :'address_verification_status' => :'addressVerificationStatus', + :'validation_errors' => :'validationErrors' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'filer_type' => :'String', + :'payment_type' => :'String', + :'payment_settlement_entity_name_phone_number' => :'String', + :'gross_amount_payment_card' => :'Float', + :'card_not_present_transactions' => :'Float', + :'merchant_category_code' => :'String', + :'payment_transaction_number' => :'Float', + :'federal_income_tax_withheld' => :'Float', + :'january' => :'Float', + :'february' => :'Float', + :'march' => :'Float', + :'april' => :'Float', + :'may' => :'Float', + :'june' => :'Float', + :'july' => :'Float', + :'august' => :'Float', + :'sept' => :'Float', + :'october' => :'Float', + :'november' => :'Float', + :'december' => :'Float', + :'type' => :'String', + :'created_at' => :'Time', + :'updated_at' => :'Time', + :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', + :'tin_type' => :'String', + :'id' => :'String', + :'issuer_id' => :'String', + :'issuer_reference_id' => :'String', + :'issuer_tin' => :'String', + :'tax_year' => :'Integer', + :'reference_id' => :'String', + :'recipient_name' => :'String', + :'recipient_tin' => :'String', + :'recipient_second_name' => :'String', + :'address' => :'String', + :'address2' => :'String', + :'city' => :'String', + :'state' => :'String', + :'zip' => :'String', + :'email' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'non_us_province' => :'String', + :'country_code' => :'String', + :'federal_e_file' => :'Boolean', + :'postal_mail' => :'Boolean', + :'state_e_file' => :'Boolean', + :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', + :'address_verification' => :'Boolean', + :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', + :'state_efile_status' => :'Array', + :'postal_mail_status' => :'StatusDetail', + :'tin_match_status' => :'StatusDetail', + :'address_verification_status' => :'StatusDetail', + :'validation_errors' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'payment_settlement_entity_name_phone_number', + :'card_not_present_transactions', + :'merchant_category_code', + :'federal_income_tax_withheld', + :'january', + :'february', + :'march', + :'april', + :'may', + :'june', + :'july', + :'august', + :'sept', + :'october', + :'november', + :'december', + :'federal_efile_status', + :'e_delivery_status', + :'state_efile_status', + :'postal_mail_status', + :'tin_match_status', + :'address_verification_status', + :'validation_errors' + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'FormResponseBase' + ] + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::Form1099KResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::Form1099KResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'filer_type') + self.filer_type = attributes[:'filer_type'] + end + + if attributes.key?(:'payment_type') + self.payment_type = attributes[:'payment_type'] + end + + if attributes.key?(:'payment_settlement_entity_name_phone_number') + self.payment_settlement_entity_name_phone_number = attributes[:'payment_settlement_entity_name_phone_number'] + end + + if attributes.key?(:'gross_amount_payment_card') + self.gross_amount_payment_card = attributes[:'gross_amount_payment_card'] + end + + if attributes.key?(:'card_not_present_transactions') + self.card_not_present_transactions = attributes[:'card_not_present_transactions'] + end + + if attributes.key?(:'merchant_category_code') + self.merchant_category_code = attributes[:'merchant_category_code'] + end + + if attributes.key?(:'payment_transaction_number') + self.payment_transaction_number = attributes[:'payment_transaction_number'] + end + + if attributes.key?(:'federal_income_tax_withheld') + self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld'] + end + + if attributes.key?(:'january') + self.january = attributes[:'january'] + end + + if attributes.key?(:'february') + self.february = attributes[:'february'] + end + + if attributes.key?(:'march') + self.march = attributes[:'march'] + end + + if attributes.key?(:'april') + self.april = attributes[:'april'] + end + + if attributes.key?(:'may') + self.may = attributes[:'may'] + end + + if attributes.key?(:'june') + self.june = attributes[:'june'] + end + + if attributes.key?(:'july') + self.july = attributes[:'july'] + end + + if attributes.key?(:'august') + self.august = attributes[:'august'] + end + + if attributes.key?(:'sept') + self.sept = attributes[:'sept'] + end + + if attributes.key?(:'october') + self.october = attributes[:'october'] + end + + if attributes.key?(:'november') + self.november = attributes[:'november'] + end + + if attributes.key?(:'december') + self.december = attributes[:'december'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.key?(:'state_and_local_withholding') + self.state_and_local_withholding = attributes[:'state_and_local_withholding'] + end + + if attributes.key?(:'tin_type') + self.tin_type = attributes[:'tin_type'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'issuer_id') + self.issuer_id = attributes[:'issuer_id'] + end + + if attributes.key?(:'issuer_reference_id') + self.issuer_reference_id = attributes[:'issuer_reference_id'] + end + + if attributes.key?(:'issuer_tin') + self.issuer_tin = attributes[:'issuer_tin'] + end + + if attributes.key?(:'tax_year') + self.tax_year = attributes[:'tax_year'] + end + + if attributes.key?(:'reference_id') + self.reference_id = attributes[:'reference_id'] + end + + if attributes.key?(:'recipient_name') + self.recipient_name = attributes[:'recipient_name'] + end + + if attributes.key?(:'recipient_tin') + self.recipient_tin = attributes[:'recipient_tin'] + end + + if attributes.key?(:'recipient_second_name') + self.recipient_second_name = attributes[:'recipient_second_name'] + end + + if attributes.key?(:'address') + self.address = attributes[:'address'] + end + + if attributes.key?(:'address2') + self.address2 = attributes[:'address2'] + end + + if attributes.key?(:'city') + self.city = attributes[:'city'] + end + + if attributes.key?(:'state') + self.state = attributes[:'state'] + end + + if attributes.key?(:'zip') + self.zip = attributes[:'zip'] + end + + if attributes.key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] + end + + if attributes.key?(:'country_code') + self.country_code = attributes[:'country_code'] + end + + if attributes.key?(:'federal_e_file') + self.federal_e_file = attributes[:'federal_e_file'] + end + + if attributes.key?(:'postal_mail') + self.postal_mail = attributes[:'postal_mail'] + end + + if attributes.key?(:'state_e_file') + self.state_e_file = attributes[:'state_e_file'] + end + + if attributes.key?(:'tin_match') + self.tin_match = attributes[:'tin_match'] + end + + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + + if attributes.key?(:'address_verification') + self.address_verification = attributes[:'address_verification'] + end + + if attributes.key?(:'federal_efile_status') + self.federal_efile_status = attributes[:'federal_efile_status'] + end + + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + + if attributes.key?(:'state_efile_status') + if (value = attributes[:'state_efile_status']).is_a?(Array) + self.state_efile_status = value + end + end + + if attributes.key?(:'postal_mail_status') + self.postal_mail_status = attributes[:'postal_mail_status'] + end + + if attributes.key?(:'tin_match_status') + self.tin_match_status = attributes[:'tin_match_status'] + end + + if attributes.key?(:'address_verification_status') + self.address_verification_status = attributes[:'address_verification_status'] + end + + if attributes.key?(:'validation_errors') + if (value = attributes[:'validation_errors']).is_a?(Array) + self.validation_errors = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + filer_type_validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"]) + return false unless filer_type_validator.valid?(@filer_type) + payment_type_validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"]) + return false unless payment_type_validator.valid?(@payment_type) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) + return false unless type_validator.valid?(@type) + tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) + return false unless tin_type_validator.valid?(@tin_type) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] filer_type Object to be assigned + def filer_type=(filer_type) + validator = EnumAttributeValidator.new('String', ["PSE", "EPF", "Other"]) + unless validator.valid?(filer_type) + fail ArgumentError, "invalid value for \"filer_type\", must be one of #{validator.allowable_values}." + end + @filer_type = filer_type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] payment_type Object to be assigned + def payment_type=(payment_type) + validator = EnumAttributeValidator.new('String', ["MerchantPaymentCard", "ThirdPartyNetwork"]) + unless validator.valid?(payment_type) + fail ArgumentError, "invalid value for \"payment_type\", must be one of #{validator.allowable_values}." + end + @payment_type = payment_type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] type Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] tin_type Object to be assigned + def tin_type=(tin_type) + validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) + unless validator.valid?(tin_type) + fail ArgumentError, "invalid value for \"tin_type\", must be one of #{validator.allowable_values}." + end + @tin_type = tin_type + end + + # Custom attribute writer method with validation + # @param [Object] state_efile_status Value to be assigned + def state_efile_status=(state_efile_status) + @state_efile_status = state_efile_status + end + + # Custom attribute writer method with validation + # @param [Object] validation_errors Value to be assigned + def validation_errors=(validation_errors) + @validation_errors = validation_errors + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + filer_type == o.filer_type && + payment_type == o.payment_type && + payment_settlement_entity_name_phone_number == o.payment_settlement_entity_name_phone_number && + gross_amount_payment_card == o.gross_amount_payment_card && + card_not_present_transactions == o.card_not_present_transactions && + merchant_category_code == o.merchant_category_code && + payment_transaction_number == o.payment_transaction_number && + federal_income_tax_withheld == o.federal_income_tax_withheld && + january == o.january && + february == o.february && + march == o.march && + april == o.april && + may == o.may && + june == o.june && + july == o.july && + august == o.august && + sept == o.sept && + october == o.october && + november == o.november && + december == o.december && + type == o.type && + created_at == o.created_at && + updated_at == o.updated_at && + state_and_local_withholding == o.state_and_local_withholding && + tin_type == o.tin_type && + id == o.id && + issuer_id == o.issuer_id && + issuer_reference_id == o.issuer_reference_id && + issuer_tin == o.issuer_tin && + tax_year == o.tax_year && + reference_id == o.reference_id && + recipient_name == o.recipient_name && + recipient_tin == o.recipient_tin && + recipient_second_name == o.recipient_second_name && + address == o.address && + address2 == o.address2 && + city == o.city && + state == o.state && + zip == o.zip && + email == o.email && + account_number == o.account_number && + office_code == o.office_code && + non_us_province == o.non_us_province && + country_code == o.country_code && + federal_e_file == o.federal_e_file && + postal_mail == o.postal_mail && + state_e_file == o.state_e_file && + tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && + address_verification == o.address_verification && + federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && + state_efile_status == o.state_efile_status && + postal_mail_status == o.postal_mail_status && + tin_match_status == o.tin_match_status && + address_verification_status == o.address_verification_status && + validation_errors == o.validation_errors + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [filer_type, payment_type, payment_settlement_entity_name_phone_number, gross_amount_payment_card, card_not_present_transactions, merchant_category_code, payment_transaction_number, federal_income_tax_withheld, january, february, march, april, may, june, july, august, sept, october, november, december, type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb b/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb index 70a1078..5b03431 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_list_response_value_inner.rb @@ -18,6 +18,7 @@ def openapi_one_of :'Form1042SListItemResponse', :'Form1095BListItemResponse', :'Form1099BaseResponse', + :'Form1099DivListItemResponse', :'Form1099KListItemResponse', :'Form1099MiscListItemResponse', :'Form1099NecListItemResponse', diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb index 4d18871..1f819c0 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item.rb @@ -11,9 +11,6 @@ module AvalaraSdk::A1099::V2 class Form1099MiscListItem - # Second TIN notice - attr_accessor :second_tin_notice - # Rents attr_accessor :rents @@ -30,7 +27,7 @@ class Form1099MiscListItem attr_accessor :fishing_boat_proceeds # Medical and health care payments - attr_accessor :medical_health_care_payments + attr_accessor :medical_and_health_care_payments # Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale attr_accessor :direct_sales_indicator @@ -102,7 +99,7 @@ class Form1099MiscListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -111,7 +108,7 @@ class Form1099MiscListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -128,6 +125,12 @@ class Form1099MiscListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -159,13 +162,12 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'rents' => :'rents', :'royalties' => :'royalties', :'other_income' => :'otherIncome', :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld', :'fishing_boat_proceeds' => :'fishingBoatProceeds', - :'medical_health_care_payments' => :'medicalHealthCarePayments', + :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments', :'direct_sales_indicator' => :'directSalesIndicator', :'substitute_payments' => :'substitutePayments', :'crop_insurance_proceeds' => :'cropInsuranceProceeds', @@ -189,15 +191,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -211,13 +215,12 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'rents' => :'Float', :'royalties' => :'Float', :'other_income' => :'Float', :'fed_income_tax_withheld' => :'Float', :'fishing_boat_proceeds' => :'Float', - :'medical_health_care_payments' => :'Float', + :'medical_and_health_care_payments' => :'Float', :'direct_sales_indicator' => :'Boolean', :'substitute_payments' => :'Float', :'crop_insurance_proceeds' => :'Float', @@ -241,15 +244,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -260,12 +265,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -291,10 +299,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'rents') self.rents = attributes[:'rents'] end @@ -315,8 +319,8 @@ def initialize(attributes = {}) self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds'] end - if attributes.key?(:'medical_health_care_payments') - self.medical_health_care_payments = attributes[:'medical_health_care_payments'] + if attributes.key?(:'medical_and_health_care_payments') + self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments'] end if attributes.key?(:'direct_sales_indicator') @@ -383,8 +387,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -419,8 +421,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -431,8 +433,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -457,6 +459,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -475,14 +485,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -515,8 +517,6 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -528,20 +528,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -599,13 +585,12 @@ def country_code=(country_code) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && rents == o.rents && royalties == o.royalties && other_income == o.other_income && fed_income_tax_withheld == o.fed_income_tax_withheld && fishing_boat_proceeds == o.fishing_boat_proceeds && - medical_health_care_payments == o.medical_health_care_payments && + medical_and_health_care_payments == o.medical_and_health_care_payments && direct_sales_indicator == o.direct_sales_indicator && substitute_payments == o.substitute_payments && crop_insurance_proceeds == o.crop_insurance_proceeds && @@ -629,15 +614,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -651,7 +638,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb index 61d5351..75bcdc7 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_misc_list_item_response.rb @@ -27,7 +27,7 @@ class Form1099MiscListItemResponse attr_accessor :fishing_boat_proceeds # Medical and health care payments - attr_accessor :medical_and_health_care + attr_accessor :medical_and_health_care_payments # Substitute payments in lieu of dividends or interest attr_accessor :substitute_payments @@ -39,16 +39,19 @@ class Form1099MiscListItemResponse attr_accessor :crop_insurance_proceeds # (Legacy field) Excess golden parachute payments - attr_accessor :excess_golden_parachute + attr_accessor :excess_golden_parachute_payments # Gross proceeds paid to an attorney - attr_accessor :gross_amount_paid_attorney + attr_accessor :gross_proceeds_paid_to_attorney + + # Fish purchased for resale + attr_accessor :fish_purchased_for_resale # Section 409A deferrals attr_accessor :section409_a_deferrals # Nonqualified deferred compensation - attr_accessor :section409_a_income + attr_accessor :nonqualified_deferred_compensation # ID of the form attr_accessor :id @@ -98,6 +101,9 @@ class Form1099MiscListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -110,6 +116,12 @@ class Form1099MiscListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -132,11 +144,20 @@ class Form1099MiscListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -156,14 +177,15 @@ def self.attribute_map :'other_income' => :'otherIncome', :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld', :'fishing_boat_proceeds' => :'fishingBoatProceeds', - :'medical_and_health_care' => :'medicalAndHealthCare', + :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments', :'substitute_payments' => :'substitutePayments', :'direct_sales_indicator' => :'directSalesIndicator', :'crop_insurance_proceeds' => :'cropInsuranceProceeds', - :'excess_golden_parachute' => :'excessGoldenParachute', - :'gross_amount_paid_attorney' => :'grossAmountPaidAttorney', + :'excess_golden_parachute_payments' => :'excessGoldenParachutePayments', + :'gross_proceeds_paid_to_attorney' => :'grossProceedsPaidToAttorney', + :'fish_purchased_for_resale' => :'fishPurchasedForResale', :'section409_a_deferrals' => :'section409ADeferrals', - :'section409_a_income' => :'section409AIncome', + :'nonqualified_deferred_compensation' => :'nonqualifiedDeferredCompensation', :'id' => :'id', :'type' => :'type', :'issuer_id' => :'issuerId', @@ -180,10 +202,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -191,8 +216,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -213,14 +241,15 @@ def self.openapi_types :'other_income' => :'Float', :'fed_income_tax_withheld' => :'Float', :'fishing_boat_proceeds' => :'Float', - :'medical_and_health_care' => :'Float', + :'medical_and_health_care_payments' => :'Float', :'substitute_payments' => :'Float', :'direct_sales_indicator' => :'Boolean', :'crop_insurance_proceeds' => :'Float', - :'excess_golden_parachute' => :'Float', - :'gross_amount_paid_attorney' => :'Float', + :'excess_golden_parachute_payments' => :'Float', + :'gross_proceeds_paid_to_attorney' => :'Float', + :'fish_purchased_for_resale' => :'Float', :'section409_a_deferrals' => :'Float', - :'section409_a_income' => :'Float', + :'nonqualified_deferred_compensation' => :'Float', :'id' => :'String', :'type' => :'String', :'issuer_id' => :'Integer', @@ -228,19 +257,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -248,8 +280,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -265,23 +300,26 @@ def self.openapi_nullable :'other_income', :'fed_income_tax_withheld', :'fishing_boat_proceeds', - :'medical_and_health_care', + :'medical_and_health_care_payments', :'substitute_payments', :'crop_insurance_proceeds', - :'excess_golden_parachute', - :'gross_amount_paid_attorney', + :'excess_golden_parachute_payments', + :'gross_proceeds_paid_to_attorney', + :'fish_purchased_for_resale', :'section409_a_deferrals', - :'section409_a_income', + :'nonqualified_deferred_compensation', :'issuer_reference_id', :'issuer_tin', :'state_efile_status', :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -289,8 +327,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -338,8 +379,8 @@ def initialize(attributes = {}) self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds'] end - if attributes.key?(:'medical_and_health_care') - self.medical_and_health_care = attributes[:'medical_and_health_care'] + if attributes.key?(:'medical_and_health_care_payments') + self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments'] end if attributes.key?(:'substitute_payments') @@ -354,20 +395,24 @@ def initialize(attributes = {}) self.crop_insurance_proceeds = attributes[:'crop_insurance_proceeds'] end - if attributes.key?(:'excess_golden_parachute') - self.excess_golden_parachute = attributes[:'excess_golden_parachute'] + if attributes.key?(:'excess_golden_parachute_payments') + self.excess_golden_parachute_payments = attributes[:'excess_golden_parachute_payments'] + end + + if attributes.key?(:'gross_proceeds_paid_to_attorney') + self.gross_proceeds_paid_to_attorney = attributes[:'gross_proceeds_paid_to_attorney'] end - if attributes.key?(:'gross_amount_paid_attorney') - self.gross_amount_paid_attorney = attributes[:'gross_amount_paid_attorney'] + if attributes.key?(:'fish_purchased_for_resale') + self.fish_purchased_for_resale = attributes[:'fish_purchased_for_resale'] end if attributes.key?(:'section409_a_deferrals') self.section409_a_deferrals = attributes[:'section409_a_deferrals'] end - if attributes.key?(:'section409_a_income') - self.section409_a_income = attributes[:'section409_a_income'] + if attributes.key?(:'nonqualified_deferred_compensation') + self.nonqualified_deferred_compensation = attributes[:'nonqualified_deferred_compensation'] end if attributes.key?(:'id') @@ -452,6 +497,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -468,6 +517,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -496,14 +553,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -638,14 +707,15 @@ def ==(o) other_income == o.other_income && fed_income_tax_withheld == o.fed_income_tax_withheld && fishing_boat_proceeds == o.fishing_boat_proceeds && - medical_and_health_care == o.medical_and_health_care && + medical_and_health_care_payments == o.medical_and_health_care_payments && substitute_payments == o.substitute_payments && direct_sales_indicator == o.direct_sales_indicator && crop_insurance_proceeds == o.crop_insurance_proceeds && - excess_golden_parachute == o.excess_golden_parachute && - gross_amount_paid_attorney == o.gross_amount_paid_attorney && + excess_golden_parachute_payments == o.excess_golden_parachute_payments && + gross_proceeds_paid_to_attorney == o.gross_proceeds_paid_to_attorney && + fish_purchased_for_resale == o.fish_purchased_for_resale && section409_a_deferrals == o.section409_a_deferrals && - section409_a_income == o.section409_a_income && + nonqualified_deferred_compensation == o.nonqualified_deferred_compensation && id == o.id && type == o.type && issuer_id == o.issuer_id && @@ -662,10 +732,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -673,8 +746,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -690,7 +766,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care, substitute_payments, direct_sales_indicator, crop_insurance_proceeds, excess_golden_parachute, gross_amount_paid_attorney, section409_a_deferrals, section409_a_income, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, substitute_payments, direct_sales_indicator, crop_insurance_proceeds, excess_golden_parachute_payments, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, nonqualified_deferred_compensation, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb b/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb index 39c876e..499c8a2 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_misc_request.rb @@ -11,9 +11,6 @@ module AvalaraSdk::A1099::V2 class Form1099MiscRequest - # Second TIN notice - attr_accessor :second_tin_notice - # Rents attr_accessor :rents @@ -30,7 +27,7 @@ class Form1099MiscRequest attr_accessor :fishing_boat_proceeds # Medical and health care payments - attr_accessor :medical_health_care_payments + attr_accessor :medical_and_health_care_payments # Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale attr_accessor :direct_sales_indicator @@ -95,7 +92,7 @@ class Form1099MiscRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -104,7 +101,7 @@ class Form1099MiscRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -121,6 +118,12 @@ class Form1099MiscRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -152,13 +155,12 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'rents' => :'rents', :'royalties' => :'royalties', :'other_income' => :'otherIncome', :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld', :'fishing_boat_proceeds' => :'fishingBoatProceeds', - :'medical_health_care_payments' => :'medicalHealthCarePayments', + :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments', :'direct_sales_indicator' => :'directSalesIndicator', :'substitute_payments' => :'substitutePayments', :'crop_insurance_proceeds' => :'cropInsuranceProceeds', @@ -180,15 +182,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -202,13 +206,12 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'rents' => :'Float', :'royalties' => :'Float', :'other_income' => :'Float', :'fed_income_tax_withheld' => :'Float', :'fishing_boat_proceeds' => :'Float', - :'medical_health_care_payments' => :'Float', + :'medical_and_health_care_payments' => :'Float', :'direct_sales_indicator' => :'Boolean', :'substitute_payments' => :'Float', :'crop_insurance_proceeds' => :'Float', @@ -230,15 +233,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -249,12 +254,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -280,10 +288,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'rents') self.rents = attributes[:'rents'] end @@ -304,8 +308,8 @@ def initialize(attributes = {}) self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds'] end - if attributes.key?(:'medical_health_care_payments') - self.medical_health_care_payments = attributes[:'medical_health_care_payments'] + if attributes.key?(:'medical_and_health_care_payments') + self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments'] end if attributes.key?(:'direct_sales_indicator') @@ -362,8 +366,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -398,8 +400,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -410,8 +412,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -436,6 +438,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -450,14 +460,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -489,10 +491,8 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -507,27 +507,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -585,13 +571,12 @@ def country_code=(country_code) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && rents == o.rents && royalties == o.royalties && other_income == o.other_income && fed_income_tax_withheld == o.fed_income_tax_withheld && fishing_boat_proceeds == o.fishing_boat_proceeds && - medical_health_care_payments == o.medical_health_care_payments && + medical_and_health_care_payments == o.medical_and_health_care_payments && direct_sales_indicator == o.direct_sales_indicator && substitute_payments == o.substitute_payments && crop_insurance_proceeds == o.crop_insurance_proceeds && @@ -613,15 +598,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -635,7 +622,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb index ca449db..05a496f 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_misc_response.rb @@ -11,8 +11,6 @@ module AvalaraSdk::A1099::V2 class Form1099MiscResponse - attr_accessor :second_tin_notice - attr_accessor :rents attr_accessor :royalties @@ -23,7 +21,7 @@ class Form1099MiscResponse attr_accessor :fishing_boat_proceeds - attr_accessor :medical_health_care_payments + attr_accessor :medical_and_health_care_payments attr_accessor :direct_sales_indicator @@ -49,8 +47,6 @@ class Form1099MiscResponse attr_accessor :updated_at - attr_accessor :user_id - attr_accessor :state_and_local_withholding attr_accessor :tin_type @@ -83,13 +79,13 @@ class Form1099MiscResponse attr_accessor :zip - attr_accessor :recipient_email + attr_accessor :email attr_accessor :account_number attr_accessor :office_code - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province attr_accessor :country_code @@ -101,10 +97,16 @@ class Form1099MiscResponse attr_accessor :tin_match + attr_accessor :no_tin + + attr_accessor :second_tin_notice + attr_accessor :address_verification attr_accessor :federal_efile_status + attr_accessor :e_delivery_status + attr_accessor :state_efile_status attr_accessor :postal_mail_status @@ -140,13 +142,12 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'rents' => :'rents', :'royalties' => :'royalties', :'other_income' => :'otherIncome', :'fed_income_tax_withheld' => :'fedIncomeTaxWithheld', :'fishing_boat_proceeds' => :'fishingBoatProceeds', - :'medical_health_care_payments' => :'medicalHealthCarePayments', + :'medical_and_health_care_payments' => :'medicalAndHealthCarePayments', :'direct_sales_indicator' => :'directSalesIndicator', :'substitute_payments' => :'substitutePayments', :'crop_insurance_proceeds' => :'cropInsuranceProceeds', @@ -159,7 +160,6 @@ def self.attribute_map :'type' => :'type', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', - :'user_id' => :'userId', :'state_and_local_withholding' => :'stateAndLocalWithholding', :'tin_type' => :'tinType', :'id' => :'id', @@ -176,17 +176,20 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'state_efile_status' => :'stateEfileStatus', :'postal_mail_status' => :'postalMailStatus', :'tin_match_status' => :'tinMatchStatus', @@ -203,13 +206,12 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'rents' => :'Float', :'royalties' => :'Float', :'other_income' => :'Float', :'fed_income_tax_withheld' => :'Float', :'fishing_boat_proceeds' => :'Float', - :'medical_health_care_payments' => :'Float', + :'medical_and_health_care_payments' => :'Float', :'direct_sales_indicator' => :'Boolean', :'substitute_payments' => :'Float', :'crop_insurance_proceeds' => :'Float', @@ -222,7 +224,6 @@ def self.openapi_types :'type' => :'String', :'created_at' => :'Time', :'updated_at' => :'Time', - :'user_id' => :'String', :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', :'tin_type' => :'String', :'id' => :'String', @@ -239,17 +240,20 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'state_efile_status' => :'Array', :'postal_mail_status' => :'StatusDetail', :'tin_match_status' => :'StatusDetail', @@ -262,6 +266,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'federal_efile_status', + :'e_delivery_status', :'state_efile_status', :'postal_mail_status', :'tin_match_status', @@ -292,10 +297,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'rents') self.rents = attributes[:'rents'] end @@ -316,8 +317,8 @@ def initialize(attributes = {}) self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds'] end - if attributes.key?(:'medical_health_care_payments') - self.medical_health_care_payments = attributes[:'medical_health_care_payments'] + if attributes.key?(:'medical_and_health_care_payments') + self.medical_and_health_care_payments = attributes[:'medical_and_health_care_payments'] end if attributes.key?(:'direct_sales_indicator') @@ -368,10 +369,6 @@ def initialize(attributes = {}) self.updated_at = attributes[:'updated_at'] end - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - if attributes.key?(:'state_and_local_withholding') self.state_and_local_withholding = attributes[:'state_and_local_withholding'] end @@ -436,8 +433,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -448,8 +445,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -472,6 +469,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -480,6 +485,10 @@ def initialize(attributes = {}) self.federal_efile_status = attributes[:'federal_efile_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'state_efile_status') if (value = attributes[:'state_efile_status']).is_a?(Array) self.state_efile_status = value @@ -517,7 +526,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) @@ -527,7 +536,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -561,13 +570,12 @@ def validation_errors=(validation_errors) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && rents == o.rents && royalties == o.royalties && other_income == o.other_income && fed_income_tax_withheld == o.fed_income_tax_withheld && fishing_boat_proceeds == o.fishing_boat_proceeds && - medical_health_care_payments == o.medical_health_care_payments && + medical_and_health_care_payments == o.medical_and_health_care_payments && direct_sales_indicator == o.direct_sales_indicator && substitute_payments == o.substitute_payments && crop_insurance_proceeds == o.crop_insurance_proceeds && @@ -580,7 +588,6 @@ def ==(o) type == o.type && created_at == o.created_at && updated_at == o.updated_at && - user_id == o.user_id && state_and_local_withholding == o.state_and_local_withholding && tin_type == o.tin_type && id == o.id && @@ -597,17 +604,20 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && state_efile_status == o.state_efile_status && postal_mail_status == o.postal_mail_status && tin_match_status == o.tin_match_status && @@ -624,7 +634,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + [rents, royalties, other_income, fed_income_tax_withheld, fishing_boat_proceeds, medical_and_health_care_payments, direct_sales_indicator, substitute_payments, crop_insurance_proceeds, gross_proceeds_paid_to_attorney, fish_purchased_for_resale, section409_a_deferrals, fatca_filing_requirement, excess_golden_parachute_payments, nonqualified_deferred_compensation, type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb index d8e5798..9f5ed60 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item.rb @@ -12,9 +12,6 @@ module AvalaraSdk::A1099::V2 # 1099-NEC - Nonemployee compensation class Form1099NecListItem - # Second TIN notice - attr_accessor :second_tin_notice - # Nonemployee compensation attr_accessor :nonemployee_compensation @@ -67,7 +64,7 @@ class Form1099NecListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -76,7 +73,7 @@ class Form1099NecListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -93,6 +90,12 @@ class Form1099NecListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -124,7 +127,6 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'nonemployee_compensation' => :'nonemployeeCompensation', :'direct_sales_indicator' => :'directSalesIndicator', :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld', @@ -142,15 +144,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -164,7 +168,6 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'nonemployee_compensation' => :'Float', :'direct_sales_indicator' => :'Boolean', :'federal_income_tax_withheld' => :'Float', @@ -182,15 +185,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -201,12 +206,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -232,10 +240,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'nonemployee_compensation') self.nonemployee_compensation = attributes[:'nonemployee_compensation'] else @@ -278,8 +282,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -314,8 +316,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -326,8 +328,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -352,6 +354,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -374,14 +384,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -415,8 +417,6 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @nonemployee_compensation.nil? return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -428,20 +428,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -499,7 +485,6 @@ def country_code=(country_code) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && nonemployee_compensation == o.nonemployee_compensation && direct_sales_indicator == o.direct_sales_indicator && federal_income_tax_withheld == o.federal_income_tax_withheld && @@ -517,15 +502,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -539,7 +526,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb index 2be387b..c1d25f1 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_nec_list_item_response.rb @@ -68,6 +68,9 @@ class Form1099NecListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -80,6 +83,12 @@ class Form1099NecListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -102,11 +111,20 @@ class Form1099NecListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -140,10 +158,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -151,8 +172,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -178,19 +202,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -198,8 +225,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -218,10 +248,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -229,8 +261,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -352,6 +387,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -368,6 +407,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -396,14 +443,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -552,10 +611,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -563,8 +625,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -580,7 +645,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [nonemployee_compensation, federal_income_tax_withheld, direct_sales_indicator, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [nonemployee_compensation, federal_income_tax_withheld, direct_sales_indicator, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb b/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb index 5215fdf..30e28e3 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_nec_request.rb @@ -11,9 +11,6 @@ module AvalaraSdk::A1099::V2 class Form1099NecRequest - # Second TIN notice - attr_accessor :second_tin_notice - # Nonemployee compensation attr_accessor :nonemployee_compensation @@ -59,7 +56,7 @@ class Form1099NecRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -68,7 +65,7 @@ class Form1099NecRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -85,6 +82,12 @@ class Form1099NecRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -116,7 +119,6 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'nonemployee_compensation' => :'nonemployeeCompensation', :'direct_sales_indicator' => :'directSalesIndicator', :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld', @@ -132,15 +134,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -154,7 +158,6 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'nonemployee_compensation' => :'Float', :'direct_sales_indicator' => :'Boolean', :'federal_income_tax_withheld' => :'Float', @@ -170,15 +173,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -189,12 +194,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -220,10 +228,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'nonemployee_compensation') self.nonemployee_compensation = attributes[:'nonemployee_compensation'] else @@ -256,8 +260,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -292,8 +294,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -304,8 +306,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -330,6 +332,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -348,14 +358,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "nonemployee_compensation", nonemployee_compensation cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -388,10 +390,8 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @nonemployee_compensation.nil? - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -406,27 +406,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -484,7 +470,6 @@ def country_code=(country_code) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && nonemployee_compensation == o.nonemployee_compensation && direct_sales_indicator == o.direct_sales_indicator && federal_income_tax_withheld == o.federal_income_tax_withheld && @@ -500,15 +485,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -522,7 +509,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb index b37be12..27aeab6 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_nec_response.rb @@ -11,8 +11,6 @@ module AvalaraSdk::A1099::V2 class Form1099NecResponse - attr_accessor :second_tin_notice - attr_accessor :nonemployee_compensation attr_accessor :direct_sales_indicator @@ -25,8 +23,6 @@ class Form1099NecResponse attr_accessor :updated_at - attr_accessor :user_id - attr_accessor :state_and_local_withholding attr_accessor :tin_type @@ -59,13 +55,13 @@ class Form1099NecResponse attr_accessor :zip - attr_accessor :recipient_email + attr_accessor :email attr_accessor :account_number attr_accessor :office_code - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province attr_accessor :country_code @@ -77,10 +73,16 @@ class Form1099NecResponse attr_accessor :tin_match + attr_accessor :no_tin + + attr_accessor :second_tin_notice + attr_accessor :address_verification attr_accessor :federal_efile_status + attr_accessor :e_delivery_status + attr_accessor :state_efile_status attr_accessor :postal_mail_status @@ -116,14 +118,12 @@ def valid?(value) # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'second_tin_notice' => :'secondTinNotice', :'nonemployee_compensation' => :'nonemployeeCompensation', :'direct_sales_indicator' => :'directSalesIndicator', :'federal_income_tax_withheld' => :'federalIncomeTaxWithheld', :'type' => :'type', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', - :'user_id' => :'userId', :'state_and_local_withholding' => :'stateAndLocalWithholding', :'tin_type' => :'tinType', :'id' => :'id', @@ -140,17 +140,20 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'state_efile_status' => :'stateEfileStatus', :'postal_mail_status' => :'postalMailStatus', :'tin_match_status' => :'tinMatchStatus', @@ -167,14 +170,12 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'second_tin_notice' => :'Boolean', :'nonemployee_compensation' => :'Float', :'direct_sales_indicator' => :'Boolean', :'federal_income_tax_withheld' => :'Float', :'type' => :'String', :'created_at' => :'Time', :'updated_at' => :'Time', - :'user_id' => :'String', :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', :'tin_type' => :'String', :'id' => :'String', @@ -191,17 +192,20 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'state_efile_status' => :'Array', :'postal_mail_status' => :'StatusDetail', :'tin_match_status' => :'StatusDetail', @@ -214,6 +218,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'federal_efile_status', + :'e_delivery_status', :'state_efile_status', :'postal_mail_status', :'tin_match_status', @@ -244,10 +249,6 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:'second_tin_notice') - self.second_tin_notice = attributes[:'second_tin_notice'] - end - if attributes.key?(:'nonemployee_compensation') self.nonemployee_compensation = attributes[:'nonemployee_compensation'] end @@ -272,10 +273,6 @@ def initialize(attributes = {}) self.updated_at = attributes[:'updated_at'] end - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - if attributes.key?(:'state_and_local_withholding') self.state_and_local_withholding = attributes[:'state_and_local_withholding'] end @@ -340,8 +337,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -352,8 +349,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -376,6 +373,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -384,6 +389,10 @@ def initialize(attributes = {}) self.federal_efile_status = attributes[:'federal_efile_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'state_efile_status') if (value = attributes[:'state_efile_status']).is_a?(Array) self.state_efile_status = value @@ -421,7 +430,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) @@ -431,7 +440,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -465,14 +474,12 @@ def validation_errors=(validation_errors) def ==(o) return true if self.equal?(o) self.class == o.class && - second_tin_notice == o.second_tin_notice && nonemployee_compensation == o.nonemployee_compensation && direct_sales_indicator == o.direct_sales_indicator && federal_income_tax_withheld == o.federal_income_tax_withheld && type == o.type && created_at == o.created_at && updated_at == o.updated_at && - user_id == o.user_id && state_and_local_withholding == o.state_and_local_withholding && tin_type == o.tin_type && id == o.id && @@ -489,17 +496,20 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && state_efile_status == o.state_efile_status && postal_mail_status == o.postal_mail_status && tin_match_status == o.tin_match_status && @@ -516,7 +526,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [second_tin_notice, nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + [nonemployee_compensation, direct_sales_indicator, federal_income_tax_withheld, type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb b/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb index c808fa5..f84bbb9 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item.rb @@ -114,7 +114,7 @@ class Form1099RListItem attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -123,7 +123,7 @@ class Form1099RListItem attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -140,6 +140,12 @@ class Form1099RListItem # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -205,15 +211,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -261,15 +269,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -281,12 +291,15 @@ def self.openapi_nullable :'second_distribution_code', :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -420,8 +433,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -456,8 +467,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -468,8 +479,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -494,6 +505,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -512,14 +531,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -556,8 +567,6 @@ def valid? second_distribution_code_validator = EnumAttributeValidator.new('String', ["EarlyDistributionNoException", "EarlyDistributionWithException", "Disability", "Death", "ProhibitedTransaction", "Section1035Exchange", "NormalDistribution", "ExcessContributionsCurrentYear", "CurrentLifeInsuranceProtectionCost", "TenYearTaxOption", "DesignatedRothDistribution", "ReportableDeathBenefits", "NonqualifiedAnnuityPayments", "EPCRSDistribution", "CharitableGiftAnnuity", "DirectRollover", "RothAccountToIRADirectRollover", "EarlyRothIRADistribution", "IRAAssetsNoFMV", "LoansDeemedDistributions", "QualifiedPlanLoanOffsets", "RecharacterizedIRANextYear", "ExcessContributionsPreviousYear", "QualifiedRothIRADistribution", "RecharacterizedIRAPreviousYear", "EarlySimpleIRADistribution", "RothIRADistributionException", "ESOPDistribution", "LongTermCareInsurance"]) return false unless second_distribution_code_validator.valid?(@second_distribution_code) return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -589,20 +598,6 @@ def second_distribution_code=(second_distribution_code) @second_distribution_code = second_distribution_code end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -694,15 +689,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -716,7 +713,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb b/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb index 626bd72..89df1f0 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_r_list_item_response.rb @@ -119,6 +119,9 @@ class Form1099RListItemResponse # Address verification status attr_accessor :address_verification_status + # EDelivery status + attr_accessor :e_delivery_status + # Reference ID attr_accessor :reference_id @@ -131,6 +134,12 @@ class Form1099RListItemResponse # Recipient Tax ID Number attr_accessor :tin + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second Tin Notice + attr_accessor :second_tin_notice + # Recipient name attr_accessor :recipient_name @@ -153,11 +162,20 @@ class Form1099RListItemResponse attr_accessor :zip # Foreign province - attr_accessor :foreign_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code + # Account Number + attr_accessor :account_number + + # Office Code + attr_accessor :office_code + + # FATCA filing requirement + attr_accessor :fatca_filing_requirement + # Validation errors attr_accessor :validation_errors @@ -208,10 +226,13 @@ def self.attribute_map :'tin_match_status' => :'tinMatchStatus', :'address_verification' => :'addressVerification', :'address_verification_status' => :'addressVerificationStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'reference_id' => :'referenceId', :'email' => :'email', :'tin_type' => :'tinType', :'tin' => :'tin', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'recipient_name' => :'recipientName', :'recipient_second_name' => :'recipientSecondName', :'address' => :'address', @@ -219,8 +240,11 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'foreign_province' => :'foreignProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', + :'account_number' => :'accountNumber', + :'office_code' => :'officeCode', + :'fatca_filing_requirement' => :'fatcaFilingRequirement', :'validation_errors' => :'validationErrors', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', @@ -263,19 +287,22 @@ def self.openapi_types :'issuer_tin' => :'String', :'tax_year' => :'Integer', :'federal_efile' => :'Boolean', - :'federal_efile_status' => :'Form1099StatusDetailResponse', + :'federal_efile_status' => :'StatusDetail', :'state_efile' => :'Boolean', :'state_efile_status' => :'Array', :'postal_mail' => :'Boolean', - :'postal_mail_status' => :'Form1099StatusDetailResponse', + :'postal_mail_status' => :'StatusDetail', :'tin_match' => :'Boolean', - :'tin_match_status' => :'Form1099StatusDetailResponse', + :'tin_match_status' => :'StatusDetail', :'address_verification' => :'Boolean', - :'address_verification_status' => :'Form1099StatusDetailResponse', + :'address_verification_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'reference_id' => :'String', :'email' => :'String', :'tin_type' => :'String', :'tin' => :'String', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'recipient_name' => :'String', :'recipient_second_name' => :'String', :'address' => :'String', @@ -283,8 +310,11 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'foreign_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', + :'account_number' => :'String', + :'office_code' => :'String', + :'fatca_filing_requirement' => :'Boolean', :'validation_errors' => :'Array', :'created_at' => :'Time', :'updated_at' => :'Time', @@ -321,10 +351,12 @@ def self.openapi_nullable :'postal_mail_status', :'tin_match_status', :'address_verification_status', + :'e_delivery_status', :'reference_id', :'email', :'tin_type', :'tin', + :'second_tin_notice', :'recipient_name', :'recipient_second_name', :'address', @@ -332,8 +364,11 @@ def self.openapi_nullable :'city', :'state', :'zip', - :'foreign_province', + :'non_us_province', :'country_code', + :'account_number', + :'office_code', + :'fatca_filing_requirement', :'validation_errors', :'state_and_local_withholding' ]) @@ -523,6 +558,10 @@ def initialize(attributes = {}) self.address_verification_status = attributes[:'address_verification_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'reference_id') self.reference_id = attributes[:'reference_id'] end @@ -539,6 +578,14 @@ def initialize(attributes = {}) self.tin = attributes[:'tin'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] end @@ -567,14 +614,26 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'foreign_province') - self.foreign_province = attributes[:'foreign_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') self.country_code = attributes[:'country_code'] end + if attributes.key?(:'account_number') + self.account_number = attributes[:'account_number'] + end + + if attributes.key?(:'office_code') + self.office_code = attributes[:'office_code'] + end + + if attributes.key?(:'fatca_filing_requirement') + self.fatca_filing_requirement = attributes[:'fatca_filing_requirement'] + end + if attributes.key?(:'validation_errors') if (value = attributes[:'validation_errors']).is_a?(Array) self.validation_errors = value @@ -740,10 +799,13 @@ def ==(o) tin_match_status == o.tin_match_status && address_verification == o.address_verification && address_verification_status == o.address_verification_status && + e_delivery_status == o.e_delivery_status && reference_id == o.reference_id && email == o.email && tin_type == o.tin_type && tin == o.tin && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && recipient_name == o.recipient_name && recipient_second_name == o.recipient_second_name && address == o.address && @@ -751,8 +813,11 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - foreign_province == o.foreign_province && + non_us_province == o.non_us_province && country_code == o.country_code && + account_number == o.account_number && + office_code == o.office_code && + fatca_filing_requirement == o.fatca_filing_requirement && validation_errors == o.validation_errors && created_at == o.created_at && updated_at == o.updated_at && @@ -768,7 +833,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, fatca_requirement_indicator, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, reference_id, email, tin_type, tin, recipient_name, recipient_second_name, address, address2, city, state, zip, foreign_province, country_code, validation_errors, created_at, updated_at, state_and_local_withholding].hash + [gross_distributions, taxable_amount, taxable_amount_not_determined, total_distribution_indicator, capital_gain, fed_income_tax_withheld, employee_contributions, net_unrealized_appreciation, distribution_code_required, distribution_code_optional, ira_sep_simple_indicator, total_ira_sep_simple_distribution, other, other_percent, percentage_total_distribution, total_employee_contributions, amount_allocable_to_irr, first_year_designated_roth_contrib, fatca_requirement_indicator, date_of_payment, id, type, issuer_id, issuer_reference_id, issuer_tin, tax_year, federal_efile, federal_efile_status, state_efile, state_efile_status, postal_mail, postal_mail_status, tin_match, tin_match_status, address_verification, address_verification_status, e_delivery_status, reference_id, email, tin_type, tin, no_tin, second_tin_notice, recipient_name, recipient_second_name, address, address2, city, state, zip, non_us_province, country_code, account_number, office_code, fatca_filing_requirement, validation_errors, created_at, updated_at, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb b/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb index 5930ff2..7966c6a 100644 --- a/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/form1099_r_request.rb @@ -107,7 +107,7 @@ class Form1099RRequest attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -116,7 +116,7 @@ class Form1099RRequest attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -133,6 +133,12 @@ class Form1099RRequest # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -196,15 +202,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -250,15 +258,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -269,12 +279,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -398,8 +411,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -434,8 +445,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -446,8 +457,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -472,6 +483,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -486,14 +505,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -525,10 +536,8 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -543,27 +552,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -653,15 +648,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -675,7 +672,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [gross_distribution, taxable_amount, taxable_amount_not_determined, total_distribution_determined, capital_gain, federal_income_tax_withheld, employee_contributions_or_designated_roth_or_insurance_premiums, net_unrealized_appreciation_in_employer_securities, distribution_code, second_distribution_code, ira_sep_simple, traditional_ira_sep_simple_or_roth_conversion_amount, other_amount, other_percentage, total_distribution_percentage, total_employee_contributions, amount_allocable_to_irr_within5_years, first_year_of_designated_roth_contribution, fatca_filing_requirement, date_of_payment, type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form_request_base.rb b/lib/avalara_sdk/models/A1099/V2/form_request_base.rb index a925a9e..01901e1 100644 --- a/lib/avalara_sdk/models/A1099/V2/form_request_base.rb +++ b/lib/avalara_sdk/models/A1099/V2/form_request_base.rb @@ -45,7 +45,7 @@ class FormRequestBase attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -54,7 +54,7 @@ class FormRequestBase attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -71,6 +71,12 @@ class FormRequestBase # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -113,15 +119,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -146,15 +154,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -165,12 +175,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -203,8 +216,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -239,8 +250,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -251,8 +262,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -277,6 +288,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -291,14 +310,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -330,8 +341,6 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -343,20 +352,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -425,15 +420,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -447,7 +444,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb b/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb index 590b28c..366386f 100644 --- a/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb +++ b/lib/avalara_sdk/models/A1099/V2/form_request_list_item_base.rb @@ -54,7 +54,7 @@ class FormRequestListItemBase attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -63,7 +63,7 @@ class FormRequestListItemBase attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -80,6 +80,12 @@ class FormRequestListItemBase # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -125,15 +131,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -161,15 +169,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -180,12 +190,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -239,8 +252,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -275,8 +286,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -287,8 +298,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -313,6 +324,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -331,14 +350,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "tax_year", tax_year cannot be nil.') end - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -371,8 +382,6 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @tax_year.nil? - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -384,20 +393,6 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -469,15 +464,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -491,7 +488,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [issuer_reference_id, issuer_tin, tax_year, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form_response_base.rb b/lib/avalara_sdk/models/A1099/V2/form_response_base.rb index 0f6de3e..16abc9f 100644 --- a/lib/avalara_sdk/models/A1099/V2/form_response_base.rb +++ b/lib/avalara_sdk/models/A1099/V2/form_response_base.rb @@ -17,8 +17,6 @@ class FormResponseBase attr_accessor :updated_at - attr_accessor :user_id - attr_accessor :state_and_local_withholding attr_accessor :tin_type @@ -51,13 +49,13 @@ class FormResponseBase attr_accessor :zip - attr_accessor :recipient_email + attr_accessor :email attr_accessor :account_number attr_accessor :office_code - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province attr_accessor :country_code @@ -69,10 +67,16 @@ class FormResponseBase attr_accessor :tin_match + attr_accessor :no_tin + + attr_accessor :second_tin_notice + attr_accessor :address_verification attr_accessor :federal_efile_status + attr_accessor :e_delivery_status + attr_accessor :state_efile_status attr_accessor :postal_mail_status @@ -111,7 +115,6 @@ def self.attribute_map :'type' => :'type', :'created_at' => :'createdAt', :'updated_at' => :'updatedAt', - :'user_id' => :'userId', :'state_and_local_withholding' => :'stateAndLocalWithholding', :'tin_type' => :'tinType', :'id' => :'id', @@ -128,17 +131,20 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'federal_efile_status' => :'federalEfileStatus', + :'e_delivery_status' => :'eDeliveryStatus', :'state_efile_status' => :'stateEfileStatus', :'postal_mail_status' => :'postalMailStatus', :'tin_match_status' => :'tinMatchStatus', @@ -158,7 +164,6 @@ def self.openapi_types :'type' => :'String', :'created_at' => :'Time', :'updated_at' => :'Time', - :'user_id' => :'String', :'state_and_local_withholding' => :'StateAndLocalWithholdingResponse', :'tin_type' => :'String', :'id' => :'String', @@ -175,17 +180,20 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'federal_efile_status' => :'StatusDetail', + :'e_delivery_status' => :'StatusDetail', :'state_efile_status' => :'Array', :'postal_mail_status' => :'StatusDetail', :'tin_match_status' => :'StatusDetail', @@ -198,6 +206,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'federal_efile_status', + :'e_delivery_status', :'state_efile_status', :'postal_mail_status', :'tin_match_status', @@ -233,10 +242,6 @@ def initialize(attributes = {}) self.updated_at = attributes[:'updated_at'] end - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - if attributes.key?(:'state_and_local_withholding') self.state_and_local_withholding = attributes[:'state_and_local_withholding'] end @@ -301,8 +306,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -313,8 +318,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -337,6 +342,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -345,6 +358,10 @@ def initialize(attributes = {}) self.federal_efile_status = attributes[:'federal_efile_status'] end + if attributes.key?(:'e_delivery_status') + self.e_delivery_status = attributes[:'e_delivery_status'] + end + if attributes.key?(:'state_efile_status') if (value = attributes[:'state_efile_status']).is_a?(Array) self.state_efile_status = value @@ -382,7 +399,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) @@ -392,7 +409,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @@ -429,7 +446,6 @@ def ==(o) type == o.type && created_at == o.created_at && updated_at == o.updated_at && - user_id == o.user_id && state_and_local_withholding == o.state_and_local_withholding && tin_type == o.tin_type && id == o.id && @@ -446,17 +462,20 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && federal_efile_status == o.federal_efile_status && + e_delivery_status == o.e_delivery_status && state_efile_status == o.state_efile_status && postal_mail_status == o.postal_mail_status && tin_match_status == o.tin_match_status && @@ -473,7 +492,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, created_at, updated_at, user_id, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, federal_efile_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash + [type, created_at, updated_at, state_and_local_withholding, tin_type, id, issuer_id, issuer_reference_id, issuer_tin, tax_year, reference_id, recipient_name, recipient_tin, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, federal_efile_status, e_delivery_status, state_efile_status, postal_mail_status, tin_match_status, address_verification_status, validation_errors].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb b/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb index 72809e9..77266de 100644 --- a/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb +++ b/lib/avalara_sdk/models/A1099/V2/form_single_request_base.rb @@ -47,7 +47,7 @@ class FormSingleRequestBase attr_accessor :zip # Recipient email address - attr_accessor :recipient_email + attr_accessor :email # Account number attr_accessor :account_number @@ -56,7 +56,7 @@ class FormSingleRequestBase attr_accessor :office_code # Foreign province - attr_accessor :recipient_non_us_province + attr_accessor :non_us_province # Country code, as defined at https://www.irs.gov/e-file-providers/country-codes attr_accessor :country_code @@ -73,6 +73,12 @@ class FormSingleRequestBase # Boolean indicating that TIN Matching should be scheduled for this form attr_accessor :tin_match + # Indicates whether the recipient has no TIN + attr_accessor :no_tin + + # Second TIN notice in three years + attr_accessor :second_tin_notice + # Boolean indicating that address verification should be scheduled for this form attr_accessor :address_verification @@ -116,15 +122,17 @@ def self.attribute_map :'city' => :'city', :'state' => :'state', :'zip' => :'zip', - :'recipient_email' => :'recipientEmail', + :'email' => :'email', :'account_number' => :'accountNumber', :'office_code' => :'officeCode', - :'recipient_non_us_province' => :'recipientNonUsProvince', + :'non_us_province' => :'nonUsProvince', :'country_code' => :'countryCode', :'federal_e_file' => :'federalEFile', :'postal_mail' => :'postalMail', :'state_e_file' => :'stateEFile', :'tin_match' => :'tinMatch', + :'no_tin' => :'noTin', + :'second_tin_notice' => :'secondTinNotice', :'address_verification' => :'addressVerification', :'state_and_local_withholding' => :'stateAndLocalWithholding' } @@ -150,15 +158,17 @@ def self.openapi_types :'city' => :'String', :'state' => :'String', :'zip' => :'String', - :'recipient_email' => :'String', + :'email' => :'String', :'account_number' => :'String', :'office_code' => :'String', - :'recipient_non_us_province' => :'String', + :'non_us_province' => :'String', :'country_code' => :'String', :'federal_e_file' => :'Boolean', :'postal_mail' => :'Boolean', :'state_e_file' => :'Boolean', :'tin_match' => :'Boolean', + :'no_tin' => :'Boolean', + :'second_tin_notice' => :'Boolean', :'address_verification' => :'Boolean', :'state_and_local_withholding' => :'StateAndLocalWithholdingRequest' } @@ -169,12 +179,15 @@ def self.openapi_nullable Set.new([ :'issuer_id', :'reference_id', + :'recipient_name', :'recipient_second_name', :'address2', - :'recipient_email', + :'email', :'account_number', :'office_code', - :'recipient_non_us_province', + :'non_us_province', + :'second_tin_notice', + :'state_and_local_withholding' ]) end @@ -218,8 +231,6 @@ def initialize(attributes = {}) if attributes.key?(:'recipient_name') self.recipient_name = attributes[:'recipient_name'] - else - self.recipient_name = nil end if attributes.key?(:'tin_type') @@ -254,8 +265,8 @@ def initialize(attributes = {}) self.zip = attributes[:'zip'] end - if attributes.key?(:'recipient_email') - self.recipient_email = attributes[:'recipient_email'] + if attributes.key?(:'email') + self.email = attributes[:'email'] end if attributes.key?(:'account_number') @@ -266,8 +277,8 @@ def initialize(attributes = {}) self.office_code = attributes[:'office_code'] end - if attributes.key?(:'recipient_non_us_province') - self.recipient_non_us_province = attributes[:'recipient_non_us_province'] + if attributes.key?(:'non_us_province') + self.non_us_province = attributes[:'non_us_province'] end if attributes.key?(:'country_code') @@ -292,6 +303,14 @@ def initialize(attributes = {}) self.tin_match = attributes[:'tin_match'] end + if attributes.key?(:'no_tin') + self.no_tin = attributes[:'no_tin'] + end + + if attributes.key?(:'second_tin_notice') + self.second_tin_notice = attributes[:'second_tin_notice'] + end + if attributes.key?(:'address_verification') self.address_verification = attributes[:'address_verification'] end @@ -306,14 +325,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @recipient_name.nil? - invalid_properties.push('invalid value for "recipient_name", recipient_name cannot be nil.') - end - - if @recipient_name.to_s.length < 1 - invalid_properties.push('invalid value for "recipient_name", the character length must be great than or equal to 1.') - end - if @address.nil? invalid_properties.push('invalid value for "address", address cannot be nil.') end @@ -345,10 +356,8 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + type_validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) return false unless type_validator.valid?(@type) - return false if @recipient_name.nil? - return false if @recipient_name.to_s.length < 1 tin_type_validator = EnumAttributeValidator.new('String', ["EIN", "SSN", "ITIN", "ATIN"]) return false unless tin_type_validator.valid?(@tin_type) return false if @address.nil? @@ -363,27 +372,13 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S"]) + validator = EnumAttributeValidator.new('String', ["1099-NEC", "1099-MISC", "1099-DIV", "1099-R", "1099-K", "1095-B", "1042-S", "1095-C"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end @type = type end - # Custom attribute writer method with validation - # @param [Object] recipient_name Value to be assigned - def recipient_name=(recipient_name) - if recipient_name.nil? - fail ArgumentError, 'recipient_name cannot be nil' - end - - if recipient_name.to_s.length < 1 - fail ArgumentError, 'invalid value for "recipient_name", the character length must be great than or equal to 1.' - end - - @recipient_name = recipient_name - end - # Custom attribute writer method checking allowed values (enum). # @param [Object] tin_type Object to be assigned def tin_type=(tin_type) @@ -453,15 +448,17 @@ def ==(o) city == o.city && state == o.state && zip == o.zip && - recipient_email == o.recipient_email && + email == o.email && account_number == o.account_number && office_code == o.office_code && - recipient_non_us_province == o.recipient_non_us_province && + non_us_province == o.non_us_province && country_code == o.country_code && federal_e_file == o.federal_e_file && postal_mail == o.postal_mail && state_e_file == o.state_e_file && tin_match == o.tin_match && + no_tin == o.no_tin && + second_tin_notice == o.second_tin_notice && address_verification == o.address_verification && state_and_local_withholding == o.state_and_local_withholding end @@ -475,7 +472,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, recipient_email, account_number, office_code, recipient_non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, address_verification, state_and_local_withholding].hash + [type, issuer_id, reference_id, recipient_tin, recipient_name, tin_type, recipient_second_name, address, address2, city, state, zip, email, account_number, office_code, non_us_province, country_code, federal_e_file, postal_mail, state_e_file, tin_match, no_tin, second_tin_notice, address_verification, state_and_local_withholding].hash end # Builds the object from hash diff --git a/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb b/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb index 6b6072d..c1c1f53 100644 --- a/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/get1099_form200_response.rb @@ -18,6 +18,7 @@ def openapi_one_of :'Form1042SListItemResponse', :'Form1095BListItemResponse', :'Form1099BaseResponse', + :'Form1099DivListItemResponse', :'Form1099KListItemResponse', :'Form1099MiscListItemResponse', :'Form1099NecListItemResponse', diff --git a/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb b/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb index e786505..cffe31a 100644 --- a/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/i_create_form1099_request.rb @@ -16,6 +16,7 @@ class << self def openapi_one_of [ :'Form1099DivRequest', + :'Form1099KRequest', :'Form1099MiscRequest', :'Form1099NecRequest' ] diff --git a/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb b/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb index 572f5c0..87e3213 100644 --- a/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb +++ b/lib/avalara_sdk/models/A1099/V2/i_update_form1099_request.rb @@ -16,6 +16,7 @@ class << self def openapi_one_of [ :'Form1099DivRequest', + :'Form1099KRequest', :'Form1099MiscRequest', :'Form1099NecRequest' ] diff --git a/lib/avalara_sdk/models/A1099/V2/irs_response.rb b/lib/avalara_sdk/models/A1099/V2/irs_response.rb new file mode 100644 index 0000000..14be692 --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/irs_response.rb @@ -0,0 +1,221 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class IrsResponse + # The IRS response code. + attr_accessor :code + + # The description for the IRS response. + attr_accessor :description + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'code' => :'code', + :'description' => :'description' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'code' => :'String', + :'description' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::IrsResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::IrsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'code') + self.code = attributes[:'code'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + code == o.code && + description == o.description + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [code, description].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb b/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb new file mode 100644 index 0000000..999439d --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/offer_and_coverage_request.rb @@ -0,0 +1,256 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class OfferAndCoverageRequest + # Month of coverage + attr_accessor :month + + # Offer of coverage code + attr_accessor :offer_code + + # Employee required contribution share + attr_accessor :share + + # Safe harbor code + attr_accessor :safe_harbor_code + + # ZIP code for coverage area + attr_accessor :zip_code + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'month' => :'month', + :'offer_code' => :'offerCode', + :'share' => :'share', + :'safe_harbor_code' => :'safeHarborCode', + :'zip_code' => :'zipCode' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'month' => :'String', + :'offer_code' => :'String', + :'share' => :'Float', + :'safe_harbor_code' => :'String', + :'zip_code' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'month', + :'offer_code', + :'share', + :'safe_harbor_code', + :'zip_code' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::OfferAndCoverageRequest` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::OfferAndCoverageRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'month') + self.month = attributes[:'month'] + end + + if attributes.key?(:'offer_code') + self.offer_code = attributes[:'offer_code'] + end + + if attributes.key?(:'share') + self.share = attributes[:'share'] + end + + if attributes.key?(:'safe_harbor_code') + self.safe_harbor_code = attributes[:'safe_harbor_code'] + end + + if attributes.key?(:'zip_code') + self.zip_code = attributes[:'zip_code'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + month == o.month && + offer_code == o.offer_code && + share == o.share && + safe_harbor_code == o.safe_harbor_code && + zip_code == o.zip_code + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [month, offer_code, share, safe_harbor_code, zip_code].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb b/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb new file mode 100644 index 0000000..0d97ddb --- /dev/null +++ b/lib/avalara_sdk/models/A1099/V2/tin_match_status_response.rb @@ -0,0 +1,267 @@ +=begin +#Avalara 1099 & W-9 API Definition + +### 🔐 Authentication Generate a **license key** from: *[Avalara Portal](https://www.avalara.com/us/en/signin.html) → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk--the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + + +=end + +require 'date' +require 'time' + +module AvalaraSdk::A1099::V2 + class TinMatchStatusResponse + # The current timestamp for the TIN match request. + attr_accessor :time + + # The current status for the TIN match request. + attr_accessor :status + + # The IRS response. + attr_accessor :irs_response + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'time' => :'time', + :'status' => :'status', + :'irs_response' => :'irsResponse' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'time' => :'Time', + :'status' => :'String', + :'irs_response' => :'IrsResponse' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'time', + :'irs_response' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `AvalaraSdk::A1099::V2::TinMatchStatusResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `AvalaraSdk::A1099::V2::TinMatchStatusResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'time') + self.time = attributes[:'time'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.key?(:'irs_response') + self.irs_response = attributes[:'irs_response'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + status_validator = EnumAttributeValidator.new('String', ["None", "Pending", "Matched", "Failed"]) + return false unless status_validator.valid?(@status) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] status Object to be assigned + def status=(status) + validator = EnumAttributeValidator.new('String', ["None", "Pending", "Matched", "Failed"]) + unless validator.valid?(status) + fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." + end + @status = status + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + time == o.time && + status == o.status && + irs_response == o.irs_response + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [time, status, irs_response].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = AvalaraSdk::A1099::V2.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb b/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb index 8c2c5b9..622a5aa 100644 --- a/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/update1099_form200_response.rb @@ -17,6 +17,7 @@ def openapi_one_of [ :'Form1042SResponse', :'Form1099DivResponse', + :'Form1099KResponse', :'Form1099MiscResponse', :'Form1099NecResponse', :'FormResponseBase' diff --git a/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb b/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb index 9a580aa..f218066 100644 --- a/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb +++ b/lib/avalara_sdk/models/A1099/V2/w9_form_response.rb @@ -65,6 +65,9 @@ class W9FormResponse # Indicates whether the individual or entity should be issued a 1099 form. attr_accessor :is1099able + # The TIN Match status from IRS. + attr_accessor :tin_match_status + # The unique identifier for the form. attr_accessor :id @@ -128,6 +131,7 @@ def self.attribute_map :'tin' => :'tin', :'backup_withholding' => :'backupWithholding', :'is1099able' => :'is1099able', + :'tin_match_status' => :'tinMatchStatus', :'id' => :'id', :'type' => :'type', :'entry_status' => :'entryStatus', @@ -171,6 +175,7 @@ def self.openapi_types :'tin' => :'String', :'backup_withholding' => :'Boolean', :'is1099able' => :'Boolean', + :'tin_match_status' => :'TinMatchStatusResponse', :'id' => :'String', :'type' => :'String', :'entry_status' => :'String', @@ -303,6 +308,10 @@ def initialize(attributes = {}) self.is1099able = attributes[:'is1099able'] end + if attributes.key?(:'tin_match_status') + self.tin_match_status = attributes[:'tin_match_status'] + end + if attributes.key?(:'id') self.id = attributes[:'id'] end @@ -398,6 +407,7 @@ def ==(o) tin == o.tin && backup_withholding == o.backup_withholding && is1099able == o.is1099able && + tin_match_status == o.tin_match_status && id == o.id && type == o.type && entry_status == o.entry_status && @@ -423,7 +433,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, business_name, business_classification, business_other, foreign_partner_owner_or_beneficiary, exempt_payee_code, exempt_fatca_code, foreign_country_indicator, address, foreign_address, city, state, zip, account_number, tin_type, tin, backup_withholding, is1099able, id, type, entry_status, entry_status_date, reference_id, company_id, display_name, email, archived, signature, signed_date, e_delivery_consented_at, created_at, updated_at].hash + [name, business_name, business_classification, business_other, foreign_partner_owner_or_beneficiary, exempt_payee_code, exempt_fatca_code, foreign_country_indicator, address, foreign_address, city, state, zip, account_number, tin_type, tin, backup_withholding, is1099able, tin_match_status, id, type, entry_status, entry_status_date, reference_id, company_id, display_name, email, archived, signature, signed_date, e_delivery_consented_at, created_at, updated_at].hash end # Builds the object from hash From 2bb5386f8c97b82d61d9063966487ffd32ed1476 Mon Sep 17 00:00:00 2001 From: Jonathan Wenger Date: Wed, 30 Jul 2025 19:21:44 -0700 Subject: [PATCH 2/2] Update gemfile lock --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3b9927a..021af73 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - avalara_sdk (25.7.2) + avalara_sdk (25.8.0) faraday (~> 1.0, >= 1.0.1) GEM