From 8d0231593d5792a742bf5b41b48ff00723714afc Mon Sep 17 00:00:00 2001 From: Jonathan Wenger Date: Wed, 30 Jul 2025 19:13:21 -0700 Subject: [PATCH] 25.8.1 --- Avalara/SDK/api/A1099/V2/companies_w9_api.py | 4 +- Avalara/SDK/api/A1099/V2/forms1099_api.py | 6 +- Avalara/SDK/api/A1099/V2/forms_w9_api.py | 4 +- Avalara/SDK/api/A1099/V2/issuers1099_api.py | 4 +- Avalara/SDK/api/A1099/V2/jobs1099_api.py | 4 +- .../EInvoicing/V1/data_input_fields_api.py | 4 +- .../SDK/api/EInvoicing/V1/documents_api.py | 4 +- Avalara/SDK/api/EInvoicing/V1/interop_api.py | 4 +- Avalara/SDK/api/EInvoicing/V1/mandates_api.py | 4 +- .../api/EInvoicing/V1/subscriptions_api.py | 4 +- .../api/EInvoicing/V1/tax_identifiers_api.py | 4 +- .../api/EInvoicing/V1/trading_partners_api.py | 4 +- Avalara/SDK/models/A1099/V2/attribute.py | 2 +- .../A1099/V2/authorized_api_request_model.py | 2 +- .../authorized_api_request_v2_data_model.py | 2 +- .../SDK/models/A1099/V2/base_company_model.py | 2 +- .../models/A1099/V2/base_form_list_request.py | 2 +- .../A1099/V2/bulk_upsert1099_forms_request.py | 42 +- .../V2/company_create_update_request_model.py | 2 +- Avalara/SDK/models/A1099/V2/company_model.py | 2 +- .../SDK/models/A1099/V2/company_response.py | 2 +- .../models/A1099/V2/company_response_model.py | 2 +- .../covered_individual_reference_response.py | 2 +- .../A1099/V2/covered_individual_request.py | 56 +-- .../A1099/V2/create1099_form201_response.py | 40 +- .../A1099/V2/create_w9_form201_response.py | 2 +- .../models/A1099/V2/create_w9_form_request.py | 2 +- Avalara/SDK/models/A1099/V2/data.py | 2 +- Avalara/SDK/models/A1099/V2/error_model.py | 2 +- Avalara/SDK/models/A1099/V2/error_response.py | 2 +- .../A1099/V2/error_response_errors_inner.py | 2 +- .../SDK/models/A1099/V2/form1042_s_list.py | 2 +- .../models/A1099/V2/form1042_s_list_item.py | 44 +- .../A1099/V2/form1042_s_list_item_response.py | 73 +++- .../SDK/models/A1099/V2/form1042_s_request.py | 50 ++- .../models/A1099/V2/form1042_s_response.py | 32 +- .../SDK/models/A1099/V2/form1095_b_list.py | 2 +- .../models/A1099/V2/form1095_b_list_item.py | 45 +- .../A1099/V2/form1095_b_list_item_response.py | 74 +++- .../SDK/models/A1099/V2/form1095_b_request.py | 49 ++- .../SDK/models/A1099/V2/form1095_c_list.py | 105 +++++ .../models/A1099/V2/form1095_c_list_item.py | 237 +++++++++++ .../models/A1099/V2/form1099_base_response.py | 22 +- .../SDK/models/A1099/V2/form1099_div_list.py | 2 +- .../models/A1099/V2/form1099_div_list_item.py | 51 ++- .../V2/form1099_div_list_item_response.py | 385 ++++++++++++++++++ .../models/A1099/V2/form1099_div_request.py | 55 ++- .../models/A1099/V2/form1099_div_response.py | 32 +- .../SDK/models/A1099/V2/form1099_k_list.py | 2 +- .../models/A1099/V2/form1099_k_list_item.py | 45 +- .../A1099/V2/form1099_k_list_item_response.py | 74 +++- .../SDK/models/A1099/V2/form1099_k_request.py | 73 +++- .../models/A1099/V2/form1099_k_response.py | 311 ++++++++++++++ .../models/A1099/V2/form1099_list_response.py | 2 +- .../V2/form1099_list_response_value_inner.py | 40 +- .../SDK/models/A1099/V2/form1099_misc_list.py | 2 +- .../A1099/V2/form1099_misc_list_item.py | 48 ++- .../V2/form1099_misc_list_item_response.py | 83 +++- .../models/A1099/V2/form1099_misc_request.py | 52 ++- .../models/A1099/V2/form1099_misc_response.py | 35 +- .../SDK/models/A1099/V2/form1099_nec_list.py | 2 +- .../models/A1099/V2/form1099_nec_list_item.py | 46 ++- .../V2/form1099_nec_list_item_response.py | 74 +++- .../models/A1099/V2/form1099_nec_request.py | 50 ++- .../models/A1099/V2/form1099_nec_response.py | 33 +- .../A1099/V2/form1099_proccess_result.py | 2 +- .../SDK/models/A1099/V2/form1099_r_list.py | 2 +- .../models/A1099/V2/form1099_r_list_item.py | 45 +- .../A1099/V2/form1099_r_list_item_response.py | 74 +++- .../SDK/models/A1099/V2/form1099_r_request.py | 49 ++- .../SDK/models/A1099/V2/form_request_base.py | 45 +- .../A1099/V2/form_request_list_item_base.py | 45 +- .../SDK/models/A1099/V2/form_response_base.py | 32 +- .../A1099/V2/form_single_request_base.py | 49 ++- .../A1099/V2/get1099_form200_response.py | 40 +- .../V2/http_validation_problem_details.py | 2 +- .../A1099/V2/i_create_form1099_request.py | 34 +- .../A1099/V2/i_update_form1099_request.py | 34 +- .../A1099/V2/intermediary_or_flow_through.py | 2 +- .../intermediary_or_flow_through_request.py | 2 +- .../intermediary_or_flow_through_response.py | 2 +- Avalara/SDK/models/A1099/V2/irs_response.py | 105 +++++ Avalara/SDK/models/A1099/V2/issuer_command.py | 2 +- .../SDK/models/A1099/V2/issuer_response.py | 2 +- .../A1099/V2/iw9_form_data_models_one_of.py | 2 +- Avalara/SDK/models/A1099/V2/job_result.py | 2 +- Avalara/SDK/models/A1099/V2/link.py | 2 +- .../A1099/V2/offer_and_coverage_request.py | 136 +++++++ .../A1099/V2/paginated_query_result_model.py | 2 +- ...ted_query_result_model_company_response.py | 2 +- ...ated_query_result_model_issuer_response.py | 2 +- .../A1099/V2/paginated_w9_forms_model.py | 2 +- .../A1099/V2/primary_withholding_agent.py | 2 +- .../V2/primary_withholding_agent_request.py | 2 +- .../V2/primary_withholding_agent_response.py | 2 +- .../SDK/models/A1099/V2/problem_details.py | 2 +- .../V2/state_and_local_withholding_request.py | 2 +- .../state_and_local_withholding_response.py | 2 +- .../V2/state_efile_status_detail_response.py | 2 +- Avalara/SDK/models/A1099/V2/status_detail.py | 2 +- .../A1099/V2/substantial_us_owner_request.py | 2 +- .../A1099/V2/substantial_us_owner_response.py | 2 +- .../A1099/V2/tin_match_status_response.py | 132 ++++++ .../A1099/V2/update1099_form200_response.py | 36 +- .../A1099/V2/validation_error_response.py | 2 +- .../SDK/models/A1099/V2/w4_form_data_model.py | 2 +- .../SDK/models/A1099/V2/w4_form_request.py | 2 +- .../SDK/models/A1099/V2/w4_form_response.py | 2 +- .../models/A1099/V2/w8_ben_e_form_request.py | 2 +- .../models/A1099/V2/w8_ben_e_form_response.py | 2 +- ...8_ben_e_substantial_us_owner_data_model.py | 2 +- .../models/A1099/V2/w8_ben_form_data_model.py | 2 +- .../models/A1099/V2/w8_ben_form_request.py | 2 +- .../models/A1099/V2/w8_ben_form_response.py | 2 +- .../A1099/V2/w8_bene_form_data_model.py | 2 +- .../models/A1099/V2/w8_imy_form_data_model.py | 2 +- .../models/A1099/V2/w8_imy_form_request.py | 2 +- .../models/A1099/V2/w8_imy_form_response.py | 2 +- .../models/A1099/V2/w9_form_base_request.py | 2 +- .../models/A1099/V2/w9_form_base_response.py | 2 +- .../SDK/models/A1099/V2/w9_form_data_model.py | 2 +- .../SDK/models/A1099/V2/w9_form_request.py | 2 +- .../SDK/models/A1099/V2/w9_form_response.py | 4 +- Avalara/SDK/models/EInvoicing/V1/address.py | 2 +- .../EInvoicing/V1/bad_download_request.py | 2 +- .../SDK/models/EInvoicing/V1/bad_request.py | 2 +- .../EInvoicing/V1/batch_error_detail.py | 2 +- .../SDK/models/EInvoicing/V1/batch_search.py | 2 +- .../V1/batch_search_list_response.py | 2 +- .../batch_search_participants202_response.py | 2 +- .../EInvoicing/V1/conditional_for_field.py | 2 +- Avalara/SDK/models/EInvoicing/V1/consents.py | 2 +- .../V1/create_trading_partner201_response.py | 2 +- ...eate_trading_partners_batch200_response.py | 2 +- ..._partners_batch200_response_value_inner.py | 2 +- .../create_trading_partners_batch_request.py | 2 +- .../models/EInvoicing/V1/data_input_field.py | 2 +- .../V1/data_input_field_not_used_for.py | 2 +- .../V1/data_input_field_optional_for.py | 2 +- .../V1/data_input_field_required_for.py | 2 +- .../V1/data_input_fields_response.py | 2 +- .../models/EInvoicing/V1/document_fetch.py | 2 +- .../EInvoicing/V1/document_list_response.py | 2 +- .../EInvoicing/V1/document_status_response.py | 2 +- .../V1/document_submission_error.py | 2 +- .../EInvoicing/V1/document_submit_response.py | 2 +- .../models/EInvoicing/V1/document_summary.py | 2 +- .../models/EInvoicing/V1/error_response.py | 2 +- Avalara/SDK/models/EInvoicing/V1/event_id.py | 2 +- .../SDK/models/EInvoicing/V1/event_message.py | 2 +- .../SDK/models/EInvoicing/V1/event_payload.py | 2 +- .../EInvoicing/V1/event_subscription.py | 2 +- Avalara/SDK/models/EInvoicing/V1/extension.py | 2 +- .../EInvoicing/V1/fetch_documents_request.py | 2 +- .../V1/fetch_documents_request_data_inner.py | 2 +- .../V1/fetch_documents_request_metadata.py | 2 +- .../models/EInvoicing/V1/forbidden_error.py | 2 +- .../models/EInvoicing/V1/hmac_signature.py | 2 +- .../EInvoicing/V1/hmac_signature_value.py | 2 +- Avalara/SDK/models/EInvoicing/V1/id.py | 2 +- .../SDK/models/EInvoicing/V1/identifier.py | 2 +- .../EInvoicing/V1/input_data_formats.py | 2 +- .../EInvoicing/V1/internal_server_error.py | 2 +- Avalara/SDK/models/EInvoicing/V1/mandate.py | 2 +- .../EInvoicing/V1/mandate_data_input_field.py | 2 +- .../V1/mandate_data_input_field_namespace.py | 2 +- .../models/EInvoicing/V1/mandates_response.py | 2 +- .../models/EInvoicing/V1/not_found_error.py | 2 +- .../EInvoicing/V1/not_used_for_field.py | 2 +- .../EInvoicing/V1/output_data_formats.py | 2 +- .../SDK/models/EInvoicing/V1/pagination.py | 2 +- .../EInvoicing/V1/required_when_field.py | 2 +- .../V1/search_participants200_response.py | 2 +- Avalara/SDK/models/EInvoicing/V1/signature.py | 2 +- .../EInvoicing/V1/signature_signature.py | 2 +- .../models/EInvoicing/V1/signature_value.py | 2 +- .../V1/signature_value_signature.py | 2 +- .../SDK/models/EInvoicing/V1/status_event.py | 2 +- .../EInvoicing/V1/submit_document_metadata.py | 2 +- .../V1/submit_interop_document202_response.py | 2 +- .../EInvoicing/V1/subscription_common.py | 2 +- .../EInvoicing/V1/subscription_detail.py | 2 +- .../V1/subscription_list_response.py | 2 +- .../V1/subscription_registration.py | 2 +- .../models/EInvoicing/V1/success_response.py | 2 +- .../EInvoicing/V1/supported_document_types.py | 2 +- .../EInvoicing/V1/tax_identifier_request.py | 2 +- .../EInvoicing/V1/tax_identifier_response.py | 2 +- .../V1/tax_identifier_response_value.py | 2 +- ...dentifier_schema_by_country200_response.py | 2 +- .../models/EInvoicing/V1/trading_partner.py | 2 +- .../V1/update_trading_partner200_response.py | 2 +- .../models/EInvoicing/V1/validation_error.py | 2 +- .../EInvoicing/V1/webhook_invocation.py | 2 +- .../EInvoicing/V1/webhooks_error_info.py | 2 +- .../EInvoicing/V1/webhooks_error_response.py | 2 +- .../SDK/models/EInvoicing/V1/workflow_ids.py | 2 +- README.md | 8 +- docs/A1099/V2/CompaniesW9Api.md | 12 +- docs/A1099/V2/CoveredIndividualRequest.md | 26 +- docs/A1099/V2/Create1099Form201Response.md | 45 +- docs/A1099/V2/CreateW9Form201Response.md | 1 + docs/A1099/V2/Form1042SListItem.md | 7 +- docs/A1099/V2/Form1042SListItemResponse.md | 15 +- docs/A1099/V2/Form1042SRequest.md | 9 +- docs/A1099/V2/Form1042SResponse.md | 8 +- docs/A1099/V2/Form1095BListItem.md | 8 +- docs/A1099/V2/Form1095BListItemResponse.md | 16 +- docs/A1099/V2/Form1095BRequest.md | 8 +- docs/A1099/V2/Form1095CList.md | 30 ++ docs/A1099/V2/Form1095CListItem.md | 64 +++ docs/A1099/V2/Form1099BaseResponse.md | 16 +- docs/A1099/V2/Form1099DivListItem.md | 14 +- docs/A1099/V2/Form1099DivListItemResponse.md | 85 ++++ docs/A1099/V2/Form1099DivRequest.md | 14 +- docs/A1099/V2/Form1099DivResponse.md | 8 +- docs/A1099/V2/Form1099KListItem.md | 8 +- docs/A1099/V2/Form1099KListItemResponse.md | 16 +- docs/A1099/V2/Form1099KRequest.md | 12 +- docs/A1099/V2/Form1099KResponse.md | 86 ++++ .../V2/Form1099ListResponseValueInner.md | 45 +- docs/A1099/V2/Form1099MiscListItem.md | 11 +- docs/A1099/V2/Form1099MiscListItemResponse.md | 25 +- docs/A1099/V2/Form1099MiscRequest.md | 11 +- docs/A1099/V2/Form1099MiscResponse.md | 11 +- docs/A1099/V2/Form1099NecListItem.md | 9 +- docs/A1099/V2/Form1099NecListItemResponse.md | 16 +- docs/A1099/V2/Form1099NecRequest.md | 9 +- docs/A1099/V2/Form1099NecResponse.md | 9 +- docs/A1099/V2/Form1099RListItem.md | 8 +- docs/A1099/V2/Form1099RListItemResponse.md | 16 +- docs/A1099/V2/Form1099RRequest.md | 8 +- docs/A1099/V2/FormRequestBase.md | 8 +- docs/A1099/V2/FormRequestListItemBase.md | 8 +- docs/A1099/V2/FormResponseBase.md | 8 +- docs/A1099/V2/FormSingleRequestBase.md | 8 +- docs/A1099/V2/Forms1099Api.md | 18 +- docs/A1099/V2/FormsW9Api.md | 14 +- docs/A1099/V2/Get1099Form200Response.md | 45 +- docs/A1099/V2/ICreateForm1099Request.md | 34 +- docs/A1099/V2/IUpdateForm1099Request.md | 34 +- docs/A1099/V2/IrsResponse.md | 30 ++ docs/A1099/V2/Issuers1099Api.md | 12 +- docs/A1099/V2/Jobs1099Api.md | 2 +- docs/A1099/V2/OfferAndCoverageRequest.md | 33 ++ docs/A1099/V2/TinMatchStatusResponse.md | 31 ++ docs/A1099/V2/Update1099Form200Response.md | 32 +- docs/A1099/V2/W9FormResponse.md | 1 + setup.py | 4 +- 249 files changed, 3651 insertions(+), 911 deletions(-) create mode 100644 Avalara/SDK/models/A1099/V2/form1095_c_list.py create mode 100644 Avalara/SDK/models/A1099/V2/form1095_c_list_item.py create mode 100644 Avalara/SDK/models/A1099/V2/form1099_div_list_item_response.py create mode 100644 Avalara/SDK/models/A1099/V2/form1099_k_response.py create mode 100644 Avalara/SDK/models/A1099/V2/irs_response.py create mode 100644 Avalara/SDK/models/A1099/V2/offer_and_coverage_request.py create mode 100644 Avalara/SDK/models/A1099/V2/tin_match_status_response.py 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 diff --git a/Avalara/SDK/api/A1099/V2/companies_w9_api.py b/Avalara/SDK/api/A1099/V2/companies_w9_api.py index 973a0ab..30229a3 100644 --- a/Avalara/SDK/api/A1099/V2/companies_w9_api.py +++ b/Avalara/SDK/api/A1099/V2/companies_w9_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.create_company_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/A1099/V2/forms1099_api.py b/Avalara/SDK/api/A1099/V2/forms1099_api.py index 2fb4d18..cb5227b 100644 --- a/Avalara/SDK/api/A1099/V2/forms1099_api.py +++ b/Avalara/SDK/api/A1099/V2/forms1099_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -65,7 +65,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.bulk_upsert1099_forms_endpoint = _Endpoint( @@ -604,7 +604,7 @@ def bulk_upsert1099_forms( ): """Create or update multiple 1099/1095/W2/1042S forms # noqa: E501 - 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. # noqa: E501 + 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. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/Avalara/SDK/api/A1099/V2/forms_w9_api.py b/Avalara/SDK/api/A1099/V2/forms_w9_api.py index 87c523c..98e7d16 100644 --- a/Avalara/SDK/api/A1099/V2/forms_w9_api.py +++ b/Avalara/SDK/api/A1099/V2/forms_w9_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.create_w9_form_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/A1099/V2/issuers1099_api.py b/Avalara/SDK/api/A1099/V2/issuers1099_api.py index 1aed0a1..8ca7fc6 100644 --- a/Avalara/SDK/api/A1099/V2/issuers1099_api.py +++ b/Avalara/SDK/api/A1099/V2/issuers1099_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -60,7 +60,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.create_issuer_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/A1099/V2/jobs1099_api.py b/Avalara/SDK/api/A1099/V2/jobs1099_api.py index 42ef86c..88d02e0 100644 --- a/Avalara/SDK/api/A1099/V2/jobs1099_api.py +++ b/Avalara/SDK/api/A1099/V2/jobs1099_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.get_job_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py b/Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py index bfd83b4..f30edcb 100644 --- a/Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/data_input_fields_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.get_data_input_fields_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/documents_api.py b/Avalara/SDK/api/EInvoicing/V1/documents_api.py index 4848a27..62e920e 100644 --- a/Avalara/SDK/api/EInvoicing/V1/documents_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/documents_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -64,7 +64,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.download_document_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/interop_api.py b/Avalara/SDK/api/EInvoicing/V1/interop_api.py index bfa179c..843c4f3 100644 --- a/Avalara/SDK/api/EInvoicing/V1/interop_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/interop_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -58,7 +58,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.submit_interop_document_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/mandates_api.py b/Avalara/SDK/api/EInvoicing/V1/mandates_api.py index 98461d0..b3704a3 100644 --- a/Avalara/SDK/api/EInvoicing/V1/mandates_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/mandates_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -59,7 +59,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.get_mandate_data_input_fields_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py b/Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py index 43866fb..ffaafb0 100644 --- a/Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/subscriptions_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -61,7 +61,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.create_webhook_subscription_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/tax_identifiers_api.py b/Avalara/SDK/api/EInvoicing/V1/tax_identifiers_api.py index 931f272..6171566 100644 --- a/Avalara/SDK/api/EInvoicing/V1/tax_identifiers_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/tax_identifiers_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -60,7 +60,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.tax_identifier_schema_by_country_endpoint = _Endpoint( diff --git a/Avalara/SDK/api/EInvoicing/V1/trading_partners_api.py b/Avalara/SDK/api/EInvoicing/V1/trading_partners_api.py index 7001ad0..e32db6d 100644 --- a/Avalara/SDK/api/EInvoicing/V1/trading_partners_api.py +++ b/Avalara/SDK/api/EInvoicing/V1/trading_partners_api.py @@ -22,7 +22,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -66,7 +66,7 @@ def __verify_api_client(self,api_client): def __set_configuration(self, api_client): self.__verify_api_client(api_client) - api_client.set_sdk_version("25.8.0") + api_client.set_sdk_version("25.8.1") self.api_client = api_client self.batch_search_participants_endpoint = _Endpoint( diff --git a/Avalara/SDK/models/A1099/V2/attribute.py b/Avalara/SDK/models/A1099/V2/attribute.py index 71aa45d..e19a8fe 100644 --- a/Avalara/SDK/models/A1099/V2/attribute.py +++ b/Avalara/SDK/models/A1099/V2/attribute.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/authorized_api_request_model.py b/Avalara/SDK/models/A1099/V2/authorized_api_request_model.py index df1ef77..1d81ebc 100644 --- a/Avalara/SDK/models/A1099/V2/authorized_api_request_model.py +++ b/Avalara/SDK/models/A1099/V2/authorized_api_request_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/authorized_api_request_v2_data_model.py b/Avalara/SDK/models/A1099/V2/authorized_api_request_v2_data_model.py index 6d4b780..2a6ed71 100644 --- a/Avalara/SDK/models/A1099/V2/authorized_api_request_v2_data_model.py +++ b/Avalara/SDK/models/A1099/V2/authorized_api_request_v2_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/base_company_model.py b/Avalara/SDK/models/A1099/V2/base_company_model.py index 1398583..6f5ff24 100644 --- a/Avalara/SDK/models/A1099/V2/base_company_model.py +++ b/Avalara/SDK/models/A1099/V2/base_company_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/base_form_list_request.py b/Avalara/SDK/models/A1099/V2/base_form_list_request.py index 98e9c79..bb8045c 100644 --- a/Avalara/SDK/models/A1099/V2/base_form_list_request.py +++ b/Avalara/SDK/models/A1099/V2/base_form_list_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/bulk_upsert1099_forms_request.py b/Avalara/SDK/models/A1099/V2/bulk_upsert1099_forms_request.py index 6a4f3c7..18f2872 100644 --- a/Avalara/SDK/models/A1099/V2/bulk_upsert1099_forms_request.py +++ b/Avalara/SDK/models/A1099/V2/bulk_upsert1099_forms_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -35,6 +35,7 @@ from typing import Any, List, Optional from Avalara.SDK.models.A1099.V2.form1042_s_list import Form1042SList from Avalara.SDK.models.A1099.V2.form1095_b_list import Form1095BList +from Avalara.SDK.models.A1099.V2.form1095_c_list import Form1095CList from Avalara.SDK.models.A1099.V2.form1099_div_list import Form1099DivList from Avalara.SDK.models.A1099.V2.form1099_k_list import Form1099KList from Avalara.SDK.models.A1099.V2.form1099_misc_list import Form1099MiscList @@ -44,7 +45,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -BULKUPSERT1099FORMSREQUEST_ONE_OF_SCHEMAS = ["Form1042SList", "Form1095BList", "Form1099DivList", "Form1099KList", "Form1099MiscList", "Form1099NecList", "Form1099RList"] +BULKUPSERT1099FORMSREQUEST_ONE_OF_SCHEMAS = ["Form1042SList", "Form1095BList", "Form1095CList", "Form1099DivList", "Form1099KList", "Form1099MiscList", "Form1099NecList", "Form1099RList"] class BulkUpsert1099FormsRequest(BaseModel): """ @@ -54,18 +55,20 @@ class BulkUpsert1099FormsRequest(BaseModel): oneof_schema_1_validator: Optional[Form1042SList] = None # data type: Form1095BList oneof_schema_2_validator: Optional[Form1095BList] = None + # data type: Form1095CList + oneof_schema_3_validator: Optional[Form1095CList] = None # data type: Form1099DivList - oneof_schema_3_validator: Optional[Form1099DivList] = None + oneof_schema_4_validator: Optional[Form1099DivList] = None # data type: Form1099KList - oneof_schema_4_validator: Optional[Form1099KList] = None + oneof_schema_5_validator: Optional[Form1099KList] = None # data type: Form1099MiscList - oneof_schema_5_validator: Optional[Form1099MiscList] = None + oneof_schema_6_validator: Optional[Form1099MiscList] = None # data type: Form1099NecList - oneof_schema_6_validator: Optional[Form1099NecList] = None + oneof_schema_7_validator: Optional[Form1099NecList] = None # data type: Form1099RList - oneof_schema_7_validator: Optional[Form1099RList] = None - actual_instance: Optional[Union[Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList]] = None - one_of_schemas: Set[str] = { "Form1042SList", "Form1095BList", "Form1099DivList", "Form1099KList", "Form1099MiscList", "Form1099NecList", "Form1099RList" } + oneof_schema_8_validator: Optional[Form1099RList] = None + actual_instance: Optional[Union[Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList]] = None + one_of_schemas: Set[str] = { "Form1042SList", "Form1095BList", "Form1095CList", "Form1099DivList", "Form1099KList", "Form1099MiscList", "Form1099NecList", "Form1099RList" } model_config = ConfigDict( validate_assignment=True, @@ -98,6 +101,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1095BList`") else: match += 1 + # validate data type: Form1095CList + if not isinstance(v, Form1095CList): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1095CList`") + else: + match += 1 # validate data type: Form1099DivList if not isinstance(v, Form1099DivList): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099DivList`") @@ -125,10 +133,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) else: return v @@ -155,6 +163,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1095CList + try: + instance.actual_instance = Form1095CList.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099DivList try: instance.actual_instance = Form1099DivList.from_json(json_str) @@ -188,10 +202,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BulkUpsert1099FormsRequest with oneOf schemas: Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList. Details: " + ", ".join(error_messages)) else: return instance @@ -205,7 +219,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SList, Form1095BList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SList, Form1095BList, Form1095CList, Form1099DivList, Form1099KList, Form1099MiscList, Form1099NecList, Form1099RList]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/company_create_update_request_model.py b/Avalara/SDK/models/A1099/V2/company_create_update_request_model.py index 30a40a3..5db5f7d 100644 --- a/Avalara/SDK/models/A1099/V2/company_create_update_request_model.py +++ b/Avalara/SDK/models/A1099/V2/company_create_update_request_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/company_model.py b/Avalara/SDK/models/A1099/V2/company_model.py index 62ca5ca..4169eff 100644 --- a/Avalara/SDK/models/A1099/V2/company_model.py +++ b/Avalara/SDK/models/A1099/V2/company_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/company_response.py b/Avalara/SDK/models/A1099/V2/company_response.py index 789b4e1..90972f7 100644 --- a/Avalara/SDK/models/A1099/V2/company_response.py +++ b/Avalara/SDK/models/A1099/V2/company_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/company_response_model.py b/Avalara/SDK/models/A1099/V2/company_response_model.py index cd8bf34..36e6945 100644 --- a/Avalara/SDK/models/A1099/V2/company_response_model.py +++ b/Avalara/SDK/models/A1099/V2/company_response_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/covered_individual_reference_response.py b/Avalara/SDK/models/A1099/V2/covered_individual_reference_response.py index 133addf..c9445ab 100644 --- a/Avalara/SDK/models/A1099/V2/covered_individual_reference_response.py +++ b/Avalara/SDK/models/A1099/V2/covered_individual_reference_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/covered_individual_request.py b/Avalara/SDK/models/A1099/V2/covered_individual_request.py index da4fea0..551a4ff 100644 --- a/Avalara/SDK/models/A1099/V2/covered_individual_request.py +++ b/Avalara/SDK/models/A1099/V2/covered_individual_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -49,20 +49,20 @@ class CoveredIndividualRequest(BaseModel): name_suffix: Optional[StrictStr] = Field(default=None, description="Covered individual's name suffix", alias="nameSuffix") tin: Optional[StrictStr] = Field(default=None, description="Covered individual's TIN (SSN or ITIN)") birth_date: Optional[datetime] = Field(default=None, description="Covered individual's date of birth", alias="birthDate") - covered_month_indicator0: Optional[StrictBool] = Field(default=None, description="Coverage indicator for all 12 months", alias="coveredMonthIndicator0") - covered_month_indicator1: Optional[StrictBool] = Field(default=None, description="Coverage indicator for January", alias="coveredMonthIndicator1") - covered_month_indicator2: Optional[StrictBool] = Field(default=None, description="Coverage indicator for February", alias="coveredMonthIndicator2") - covered_month_indicator3: Optional[StrictBool] = Field(default=None, description="Coverage indicator for March", alias="coveredMonthIndicator3") - covered_month_indicator4: Optional[StrictBool] = Field(default=None, description="Coverage indicator for April", alias="coveredMonthIndicator4") - covered_month_indicator5: Optional[StrictBool] = Field(default=None, description="Coverage indicator for May", alias="coveredMonthIndicator5") - covered_month_indicator6: Optional[StrictBool] = Field(default=None, description="Coverage indicator for June", alias="coveredMonthIndicator6") - covered_month_indicator7: Optional[StrictBool] = Field(default=None, description="Coverage indicator for July", alias="coveredMonthIndicator7") - covered_month_indicator8: Optional[StrictBool] = Field(default=None, description="Coverage indicator for August", alias="coveredMonthIndicator8") - covered_month_indicator9: Optional[StrictBool] = Field(default=None, description="Coverage indicator for September", alias="coveredMonthIndicator9") - covered_month_indicator10: Optional[StrictBool] = Field(default=None, description="Coverage indicator for October", alias="coveredMonthIndicator10") - covered_month_indicator11: Optional[StrictBool] = Field(default=None, description="Coverage indicator for November", alias="coveredMonthIndicator11") - covered_month_indicator12: Optional[StrictBool] = Field(default=None, description="Coverage indicator for December", alias="coveredMonthIndicator12") - __properties: ClassVar[List[str]] = ["firstName", "middleName", "lastName", "nameSuffix", "tin", "birthDate", "coveredMonthIndicator0", "coveredMonthIndicator1", "coveredMonthIndicator2", "coveredMonthIndicator3", "coveredMonthIndicator4", "coveredMonthIndicator5", "coveredMonthIndicator6", "coveredMonthIndicator7", "coveredMonthIndicator8", "coveredMonthIndicator9", "coveredMonthIndicator10", "coveredMonthIndicator11", "coveredMonthIndicator12"] + covered_all_months: Optional[StrictBool] = Field(default=None, description="Coverage indicator for all 12 months", alias="coveredAllMonths") + covered_january: Optional[StrictBool] = Field(default=None, description="Coverage indicator for January", alias="coveredJanuary") + covered_february: Optional[StrictBool] = Field(default=None, description="Coverage indicator for February", alias="coveredFebruary") + covered_march: Optional[StrictBool] = Field(default=None, description="Coverage indicator for March", alias="coveredMarch") + covered_april: Optional[StrictBool] = Field(default=None, description="Coverage indicator for April", alias="coveredApril") + covered_may: Optional[StrictBool] = Field(default=None, description="Coverage indicator for May", alias="coveredMay") + covered_june: Optional[StrictBool] = Field(default=None, description="Coverage indicator for June", alias="coveredJune") + covered_july: Optional[StrictBool] = Field(default=None, description="Coverage indicator for July", alias="coveredJuly") + covered_august: Optional[StrictBool] = Field(default=None, description="Coverage indicator for August", alias="coveredAugust") + covered_september: Optional[StrictBool] = Field(default=None, description="Coverage indicator for September", alias="coveredSeptember") + covered_october: Optional[StrictBool] = Field(default=None, description="Coverage indicator for October", alias="coveredOctober") + covered_november: Optional[StrictBool] = Field(default=None, description="Coverage indicator for November", alias="coveredNovember") + covered_december: Optional[StrictBool] = Field(default=None, description="Coverage indicator for December", alias="coveredDecember") + __properties: ClassVar[List[str]] = ["firstName", "middleName", "lastName", "nameSuffix", "tin", "birthDate", "coveredAllMonths", "coveredJanuary", "coveredFebruary", "coveredMarch", "coveredApril", "coveredMay", "coveredJune", "coveredJuly", "coveredAugust", "coveredSeptember", "coveredOctober", "coveredNovember", "coveredDecember"] model_config = ConfigDict( populate_by_name=True, @@ -151,19 +151,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "nameSuffix": obj.get("nameSuffix"), "tin": obj.get("tin"), "birthDate": obj.get("birthDate"), - "coveredMonthIndicator0": obj.get("coveredMonthIndicator0"), - "coveredMonthIndicator1": obj.get("coveredMonthIndicator1"), - "coveredMonthIndicator2": obj.get("coveredMonthIndicator2"), - "coveredMonthIndicator3": obj.get("coveredMonthIndicator3"), - "coveredMonthIndicator4": obj.get("coveredMonthIndicator4"), - "coveredMonthIndicator5": obj.get("coveredMonthIndicator5"), - "coveredMonthIndicator6": obj.get("coveredMonthIndicator6"), - "coveredMonthIndicator7": obj.get("coveredMonthIndicator7"), - "coveredMonthIndicator8": obj.get("coveredMonthIndicator8"), - "coveredMonthIndicator9": obj.get("coveredMonthIndicator9"), - "coveredMonthIndicator10": obj.get("coveredMonthIndicator10"), - "coveredMonthIndicator11": obj.get("coveredMonthIndicator11"), - "coveredMonthIndicator12": obj.get("coveredMonthIndicator12") + "coveredAllMonths": obj.get("coveredAllMonths"), + "coveredJanuary": obj.get("coveredJanuary"), + "coveredFebruary": obj.get("coveredFebruary"), + "coveredMarch": obj.get("coveredMarch"), + "coveredApril": obj.get("coveredApril"), + "coveredMay": obj.get("coveredMay"), + "coveredJune": obj.get("coveredJune"), + "coveredJuly": obj.get("coveredJuly"), + "coveredAugust": obj.get("coveredAugust"), + "coveredSeptember": obj.get("coveredSeptember"), + "coveredOctober": obj.get("coveredOctober"), + "coveredNovember": obj.get("coveredNovember"), + "coveredDecember": obj.get("coveredDecember") }) return _obj diff --git a/Avalara/SDK/models/A1099/V2/create1099_form201_response.py b/Avalara/SDK/models/A1099/V2/create1099_form201_response.py index e18f4d5..1ec5165 100644 --- a/Avalara/SDK/models/A1099/V2/create1099_form201_response.py +++ b/Avalara/SDK/models/A1099/V2/create1099_form201_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -36,6 +36,7 @@ from Avalara.SDK.models.A1099.V2.form1042_s_list_item_response import Form1042SListItemResponse from Avalara.SDK.models.A1099.V2.form1095_b_list_item_response import Form1095BListItemResponse from Avalara.SDK.models.A1099.V2.form1099_base_response import Form1099BaseResponse +from Avalara.SDK.models.A1099.V2.form1099_div_list_item_response import Form1099DivListItemResponse from Avalara.SDK.models.A1099.V2.form1099_k_list_item_response import Form1099KListItemResponse from Avalara.SDK.models.A1099.V2.form1099_misc_list_item_response import Form1099MiscListItemResponse from Avalara.SDK.models.A1099.V2.form1099_nec_list_item_response import Form1099NecListItemResponse @@ -44,7 +45,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -CREATE1099FORM201RESPONSE_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] +CREATE1099FORM201RESPONSE_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] class Create1099Form201Response(BaseModel): """ @@ -56,16 +57,18 @@ class Create1099Form201Response(BaseModel): oneof_schema_2_validator: Optional[Form1042SListItemResponse] = None # data type: Form1095BListItemResponse oneof_schema_3_validator: Optional[Form1095BListItemResponse] = None + # data type: Form1099DivListItemResponse + oneof_schema_4_validator: Optional[Form1099DivListItemResponse] = None # data type: Form1099KListItemResponse - oneof_schema_4_validator: Optional[Form1099KListItemResponse] = None + oneof_schema_5_validator: Optional[Form1099KListItemResponse] = None # data type: Form1099MiscListItemResponse - oneof_schema_5_validator: Optional[Form1099MiscListItemResponse] = None + oneof_schema_6_validator: Optional[Form1099MiscListItemResponse] = None # data type: Form1099NecListItemResponse - oneof_schema_6_validator: Optional[Form1099NecListItemResponse] = None + oneof_schema_7_validator: Optional[Form1099NecListItemResponse] = None # data type: Form1099RListItemResponse - oneof_schema_7_validator: Optional[Form1099RListItemResponse] = None - actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None - one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } + oneof_schema_8_validator: Optional[Form1099RListItemResponse] = None + actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None + one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } model_config = ConfigDict( validate_assignment=True, @@ -103,6 +106,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1095BListItemResponse`") else: match += 1 + # validate data type: Form1099DivListItemResponse + if not isinstance(v, Form1099DivListItemResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099DivListItemResponse`") + else: + match += 1 # validate data type: Form1099KListItemResponse if not isinstance(v, Form1099KListItemResponse): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KListItemResponse`") @@ -125,10 +133,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return v @@ -161,6 +169,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099DivListItemResponse + try: + instance.actual_instance = Form1099DivListItemResponse.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099KListItemResponse try: instance.actual_instance = Form1099KListItemResponse.from_json(json_str) @@ -188,10 +202,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into Create1099Form201Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -205,7 +219,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/create_w9_form201_response.py b/Avalara/SDK/models/A1099/V2/create_w9_form201_response.py index 9c4ae81..5251440 100644 --- a/Avalara/SDK/models/A1099/V2/create_w9_form201_response.py +++ b/Avalara/SDK/models/A1099/V2/create_w9_form201_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/create_w9_form_request.py b/Avalara/SDK/models/A1099/V2/create_w9_form_request.py index a8914e6..f221c93 100644 --- a/Avalara/SDK/models/A1099/V2/create_w9_form_request.py +++ b/Avalara/SDK/models/A1099/V2/create_w9_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/data.py b/Avalara/SDK/models/A1099/V2/data.py index e690c6c..4d8d77d 100644 --- a/Avalara/SDK/models/A1099/V2/data.py +++ b/Avalara/SDK/models/A1099/V2/data.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/error_model.py b/Avalara/SDK/models/A1099/V2/error_model.py index fb4e2b9..7405205 100644 --- a/Avalara/SDK/models/A1099/V2/error_model.py +++ b/Avalara/SDK/models/A1099/V2/error_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/error_response.py b/Avalara/SDK/models/A1099/V2/error_response.py index d017448..f7e5feb 100644 --- a/Avalara/SDK/models/A1099/V2/error_response.py +++ b/Avalara/SDK/models/A1099/V2/error_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/error_response_errors_inner.py b/Avalara/SDK/models/A1099/V2/error_response_errors_inner.py index 8e40611..205e695 100644 --- a/Avalara/SDK/models/A1099/V2/error_response_errors_inner.py +++ b/Avalara/SDK/models/A1099/V2/error_response_errors_inner.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1042_s_list.py b/Avalara/SDK/models/A1099/V2/form1042_s_list.py index 69ed223..e862457 100644 --- a/Avalara/SDK/models/A1099/V2/form1042_s_list.py +++ b/Avalara/SDK/models/A1099/V2/form1042_s_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1042_s_list_item.py b/Avalara/SDK/models/A1099/V2/form1042_s_list_item.py index 6419ad7..b714b54 100644 --- a/Avalara/SDK/models/A1099/V2/form1042_s_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1042_s_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -74,7 +74,7 @@ class Form1042SListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -82,18 +82,19 @@ class Form1042SListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('lob_code') def lob_code_validate_enum(cls, value): @@ -207,6 +208,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -217,10 +223,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -232,10 +238,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -260,15 +276,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1042_s_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1042_s_list_item_response.py index 7479e05..9fd2af2 100644 --- a/Avalara/SDK/models/A1099/V2/form1042_s_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1042_s_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,11 +37,11 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.intermediary_or_flow_through_response import IntermediaryOrFlowThroughResponse from Avalara.SDK.models.A1099.V2.primary_withholding_agent_response import PrimaryWithholdingAgentResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -81,19 +81,21 @@ class Form1042SListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -101,13 +103,16 @@ class Form1042SListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] model_config = ConfigDict( populate_by_name=True, @@ -148,6 +153,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -156,6 +162,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -185,6 +192,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -225,6 +235,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -245,6 +260,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -280,16 +300,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -319,19 +354,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -339,8 +377,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1042_s_request.py b/Avalara/SDK/models/A1099/V2/form1042_s_request.py index 62cca12..b875fb7 100644 --- a/Avalara/SDK/models/A1099/V2/form1042_s_request.py +++ b/Avalara/SDK/models/A1099/V2/form1042_s_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -48,7 +48,6 @@ class Form1042SRequest(BaseModel): Form1042SRequest """ # noqa: E501 unique_form_id: Optional[StrictStr] = Field(default=None, description="Unique form identifier", alias="uniqueFormId") - no_tin: Optional[StrictBool] = Field(default=None, description="No TIN indicator", alias="noTin") recipient_date_of_birth: Optional[datetime] = Field(default=None, description="Recipient's date of birth", alias="recipientDateOfBirth") recipient_giin: Optional[StrictStr] = Field(default=None, description="Recipient's GIIN (Global Intermediary Identification Number)", alias="recipientGiin") recipient_foreign_tin: Optional[StrictStr] = Field(default=None, description="Recipient's foreign TIN", alias="recipientForeignTin") @@ -76,7 +75,7 @@ class Form1042SRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -84,17 +83,19 @@ class Form1042SRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -102,8 +103,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -168,6 +169,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -178,10 +184,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -193,10 +199,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -222,15 +238,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1042_s_response.py b/Avalara/SDK/models/A1099/V2/form1042_s_response.py index 3cffdc4..698ae6a 100644 --- a/Avalara/SDK/models/A1099/V2/form1042_s_response.py +++ b/Avalara/SDK/models/A1099/V2/form1042_s_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -50,7 +50,6 @@ class Form1042SResponse(BaseModel): type: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") id: Optional[StrictStr] = None @@ -67,23 +66,26 @@ class Form1042SResponse(BaseModel): city: Optional[StrictStr] = None state: Optional[StrictStr] = None zip: Optional[StrictStr] = None - recipient_email: Optional[StrictStr] = Field(default=None, alias="recipientEmail") + email: Optional[StrictStr] = None account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") - __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "userId", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "federalEfileStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] @field_validator('type') def type_validate_enum(cls, value): @@ -91,8 +93,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -152,6 +154,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of federal_efile_status if self.federal_efile_status: _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) _items = [] if self.state_efile_status: @@ -180,6 +185,11 @@ def to_dict(self) -> Dict[str, Any]: if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: _dict['federalEfileStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if state_efile_status (nullable) is None # and model_fields_set contains the field if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: @@ -220,7 +230,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), - "userId": obj.get("userId"), "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, "tinType": obj.get("tinType"), "id": obj.get("id"), @@ -237,17 +246,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, diff --git a/Avalara/SDK/models/A1099/V2/form1095_b_list.py b/Avalara/SDK/models/A1099/V2/form1095_b_list.py index 5c4ea7a..12efa3e 100644 --- a/Avalara/SDK/models/A1099/V2/form1095_b_list.py +++ b/Avalara/SDK/models/A1099/V2/form1095_b_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1095_b_list_item.py b/Avalara/SDK/models/A1099/V2/form1095_b_list_item.py index f0567db..6284438 100644 --- a/Avalara/SDK/models/A1099/V2/form1095_b_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1095_b_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -56,7 +56,7 @@ class Form1095BListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -64,18 +64,20 @@ class Form1095BListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('origin_of_health_coverage_code') def origin_of_health_coverage_code_validate_enum(cls, value): @@ -149,6 +151,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -159,10 +166,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -174,10 +181,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -202,15 +219,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1095_b_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1095_b_list_item_response.py index a40b8df..b4df000 100644 --- a/Avalara/SDK/models/A1099/V2/form1095_b_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1095_b_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -38,9 +38,9 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from Avalara.SDK.models.A1099.V2.covered_individual_reference_response import CoveredIndividualReferenceResponse -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -58,19 +58,22 @@ class Form1095BListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -78,13 +81,16 @@ class Form1095BListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] model_config = ConfigDict( populate_by_name=True, @@ -125,6 +131,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -133,6 +140,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -162,6 +170,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -202,6 +213,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -222,6 +238,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -257,16 +278,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -296,19 +332,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -316,8 +355,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1095_b_request.py b/Avalara/SDK/models/A1099/V2/form1095_b_request.py index f02f46f..5923fed 100644 --- a/Avalara/SDK/models/A1099/V2/form1095_b_request.py +++ b/Avalara/SDK/models/A1099/V2/form1095_b_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -57,7 +57,7 @@ class Form1095BRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -65,18 +65,20 @@ class Form1095BRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('origin_of_health_coverage_code') def origin_of_health_coverage_code_validate_enum(cls, value): @@ -94,8 +96,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -160,6 +162,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -170,10 +177,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -185,10 +192,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -214,15 +231,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1095_c_list.py b/Avalara/SDK/models/A1099/V2/form1095_c_list.py new file mode 100644 index 0000000..6e108d1 --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/form1095_c_list.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from Avalara.SDK.models.A1099.V2.form1095_c_list_item import Form1095CListItem +from typing import Optional, Set +from typing_extensions import Self + +class Form1095CList(BaseModel): + """ + Form1095CList + """ # noqa: E501 + forms: Optional[List[Form1095CListItem]] = None + form_type: Optional[StrictStr] = Field(default=None, alias="formType") + __properties: ClassVar[List[str]] = ["formType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Form1095CList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Form1095CList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "formType": obj.get("formType") + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/form1095_c_list_item.py b/Avalara/SDK/models/A1099/V2/form1095_c_list_item.py new file mode 100644 index 0000000..547bb5b --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/form1095_c_list_item.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from Avalara.SDK.models.A1099.V2.covered_individual_request import CoveredIndividualRequest +from Avalara.SDK.models.A1099.V2.offer_and_coverage_request import OfferAndCoverageRequest +from Avalara.SDK.models.A1099.V2.state_and_local_withholding_request import StateAndLocalWithholdingRequest +from typing import Optional, Set +from typing_extensions import Self + +class Form1095CListItem(BaseModel): + """ + Form1095CListItem + """ # noqa: E501 + employee_first_name: Optional[StrictStr] = Field(default=None, description="Employee's first name", alias="employeeFirstName") + employee_middle_name: Optional[StrictStr] = Field(default=None, description="Employee's middle name", alias="employeeMiddleName") + employee_last_name: Optional[StrictStr] = Field(default=None, description="Employee's last name", alias="employeeLastName") + employee_name_suffix: Optional[StrictStr] = Field(default=None, description="Employee's name suffix", alias="employeeNameSuffix") + recipient_date_of_birth: Optional[datetime] = Field(default=None, description="Recipient's date of birth", alias="recipientDateOfBirth") + plan_start_month: Optional[StrictStr] = Field(default=None, description="Plan start month", alias="planStartMonth") + offer_and_coverages: Optional[List[OfferAndCoverageRequest]] = Field(default=None, description="Offer and coverage information", alias="offerAndCoverages") + employer_provided_si_coverage: Optional[StrictBool] = Field(default=None, description="Employer provided self-insured coverage", alias="employerProvidedSiCoverage") + covered_individuals: Optional[List[CoveredIndividualRequest]] = Field(default=None, description="Covered individuals information", alias="coveredIndividuals") + issuer_reference_id: Optional[StrictStr] = Field(default=None, description="Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required.", alias="issuerReferenceId") + issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required.", alias="issuerTin") + tax_year: StrictInt = Field(description="Tax year", alias="taxYear") + issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") + reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") + recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") + tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") + recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") + address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") + address2: Optional[StrictStr] = Field(default=None, description="Address line 2") + city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") + state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") + zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") + account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") + country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") + postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") + state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") + tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") + address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") + state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] + + @field_validator('tin_type') + def tin_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EIN', 'SSN', 'ITIN', 'ATIN']): + raise ValueError("must be one of enum values ('EIN', 'SSN', 'ITIN', 'ATIN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Form1095CListItem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of state_and_local_withholding + if self.state_and_local_withholding: + _dict['stateAndLocalWithholding'] = self.state_and_local_withholding.to_dict() + # set to None if issuer_id (nullable) is None + # and model_fields_set contains the field + if self.issuer_id is None and "issuer_id" in self.model_fields_set: + _dict['issuerId'] = None + + # set to None if reference_id (nullable) is None + # and model_fields_set contains the field + if self.reference_id is None and "reference_id" in self.model_fields_set: + _dict['referenceId'] = None + + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + + # set to None if recipient_second_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: + _dict['recipientSecondName'] = None + + # set to None if address2 (nullable) is None + # and model_fields_set contains the field + if self.address2 is None and "address2" in self.model_fields_set: + _dict['address2'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None + # and model_fields_set contains the field + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Form1095CListItem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "issuerReferenceId": obj.get("issuerReferenceId"), + "issuerTin": obj.get("issuerTin"), + "taxYear": obj.get("taxYear"), + "issuerId": obj.get("issuerId"), + "referenceId": obj.get("referenceId"), + "recipientTin": obj.get("recipientTin"), + "recipientName": obj.get("recipientName"), + "tinType": obj.get("tinType"), + "recipientSecondName": obj.get("recipientSecondName"), + "address": obj.get("address"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "state": obj.get("state"), + "zip": obj.get("zip"), + "email": obj.get("email"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "nonUsProvince": obj.get("nonUsProvince"), + "countryCode": obj.get("countryCode"), + "federalEFile": obj.get("federalEFile"), + "postalMail": obj.get("postalMail"), + "stateEFile": obj.get("stateEFile"), + "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), + "addressVerification": obj.get("addressVerification"), + "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/form1099_base_response.py b/Avalara/SDK/models/A1099/V2/form1099_base_response.py index 738609f..86474bc 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_base_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_base_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,9 +37,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -55,19 +55,22 @@ class Form1099BaseResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -75,8 +78,11 @@ class Form1099BaseResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") @@ -122,6 +128,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -130,6 +137,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", diff --git a/Avalara/SDK/models/A1099/V2/form1099_div_list.py b/Avalara/SDK/models/A1099/V2/form1099_div_list.py index bfc0653..e98c7f0 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_div_list.py +++ b/Avalara/SDK/models/A1099/V2/form1099_div_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_div_list_item.py b/Avalara/SDK/models/A1099/V2/form1099_div_list_item.py index 095b156..751e4e2 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_div_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1099_div_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -46,8 +46,8 @@ class Form1099DivListItem(BaseModel): """ # noqa: E501 total_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Total ordinary dividends", alias="totalOrdinaryDividends") qualified_dividends: Optional[StrictStr] = Field(default=None, description="Qualified dividends", alias="qualifiedDividends") - total_capital_gain_distr: Optional[StrictStr] = Field(default=None, description="Total capital gain distributions", alias="totalCapitalGainDistr") - unrecap_sec1250_gain: Optional[StrictStr] = Field(default=None, description="Unrecaptured Section 1250 gain", alias="unrecapSec1250Gain") + total_capital_gain_distributions: Optional[StrictStr] = Field(default=None, description="Total capital gain distributions", alias="totalCapitalGainDistributions") + unrecaptured_section1250_gain: Optional[StrictStr] = Field(default=None, description="Unrecaptured Section 1250 gain", alias="unrecapturedSection1250Gain") section1202_gain: Optional[StrictStr] = Field(default=None, description="Section 1202 gain", alias="section1202Gain") collectibles_gain: Optional[StrictStr] = Field(default=None, description="Collectibles (28%) gain", alias="collectiblesGain") section897_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Section 897 ordinary dividends", alias="section897OrdinaryDividends") @@ -62,14 +62,14 @@ class Form1099DivListItem(BaseModel): noncash_liquidation_distributions: Optional[StrictStr] = Field(default=None, description="Noncash liquidation distributions", alias="noncashLiquidationDistributions") exempt_interest_dividends: Optional[StrictStr] = Field(default=None, description="Exempt-interest dividends", alias="exemptInterestDividends") specified_private_activity_bond_interest_dividends: Optional[StrictStr] = Field(default=None, description="Specified private activity bond interest dividends", alias="specifiedPrivateActivityBondInterestDividends") - fatca_filing_requirement: Optional[StrictStr] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") issuer_reference_id: Optional[StrictStr] = Field(default=None, description="Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required.", alias="issuerReferenceId") issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required.", alias="issuerTin") tax_year: StrictInt = Field(description="Tax year", alias="taxYear") issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -77,18 +77,20 @@ class Form1099DivListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('tin_type') def tin_type_validate_enum(cls, value): @@ -152,6 +154,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -162,10 +169,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -177,10 +184,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -208,15 +225,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_div_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1099_div_list_item_response.py new file mode 100644 index 0000000..d339f95 --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/form1099_div_list_item_response.py @@ -0,0 +1,385 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse +from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail +from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse +from typing import Optional, Set +from typing_extensions import Self + +class Form1099DivListItemResponse(BaseModel): + """ + Form1099DivListItemResponse + """ # noqa: E501 + total_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Total ordinary dividends", alias="totalOrdinaryDividends") + qualified_dividends: Optional[StrictStr] = Field(default=None, description="Qualified dividends", alias="qualifiedDividends") + total_capital_gain_distributions: Optional[StrictStr] = Field(default=None, description="Total capital gain distributions", alias="totalCapitalGainDistributions") + unrecaptured_section1250_gain: Optional[StrictStr] = Field(default=None, description="Unrecaptured Section 1250 gain", alias="unrecapturedSection1250Gain") + section1202_gain: Optional[StrictStr] = Field(default=None, description="Section 1202 gain", alias="section1202Gain") + collectibles_gain: Optional[StrictStr] = Field(default=None, description="Collectibles (28%) gain", alias="collectiblesGain") + section897_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Section 897 ordinary dividends", alias="section897OrdinaryDividends") + section897_capital_gain: Optional[StrictStr] = Field(default=None, description="Section 897 capital gain", alias="section897CapitalGain") + nondividend_distributions: Optional[StrictStr] = Field(default=None, description="Nondividend distributions", alias="nondividendDistributions") + federal_income_tax_withheld: Optional[StrictStr] = Field(default=None, description="Federal income tax withheld", alias="federalIncomeTaxWithheld") + section199_a_dividends: Optional[StrictStr] = Field(default=None, description="Section 199A dividends", alias="section199ADividends") + investment_expenses: Optional[StrictStr] = Field(default=None, description="Investment expenses", alias="investmentExpenses") + foreign_tax_paid: Optional[StrictStr] = Field(default=None, description="Foreign tax paid", alias="foreignTaxPaid") + foreign_country_or_us_possession: Optional[StrictStr] = Field(default=None, description="Foreign country or U.S. possession", alias="foreignCountryOrUSPossession") + cash_liquidation_distributions: Optional[StrictStr] = Field(default=None, description="Cash liquidation distributions", alias="cashLiquidationDistributions") + noncash_liquidation_distributions: Optional[StrictStr] = Field(default=None, description="Noncash liquidation distributions", alias="noncashLiquidationDistributions") + exempt_interest_dividends: Optional[StrictStr] = Field(default=None, description="Exempt-interest dividends", alias="exemptInterestDividends") + specified_private_activity_bond_interest_dividends: Optional[StrictStr] = Field(default=None, description="Specified private activity bond interest dividends", alias="specifiedPrivateActivityBondInterestDividends") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") + id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="ID of the form") + type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="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: StrictInt = Field(description="Issuer ID", alias="issuerId") + issuer_reference_id: Optional[StrictStr] = Field(default=None, description="Issuer Reference ID", alias="issuerReferenceId") + issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") + tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") + federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") + state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") + postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") + reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") + tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") + tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") + recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") + address: Optional[StrictStr] = Field(default=None, description="Address") + address2: Optional[StrictStr] = Field(default=None, description="Address line 2") + city: Optional[StrictStr] = Field(default=None, description="City") + state: Optional[StrictStr] = Field(default=None, description="US state") + zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") + country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") + created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") + state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Form1099DivListItemResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "id", + "federal_efile_status", + "state_efile_status", + "postal_mail_status", + "tin_match_status", + "address_verification_status", + "e_delivery_status", + "validation_errors", + "created_at", + "updated_at", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of federal_efile_status + if self.federal_efile_status: + _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) + _items = [] + if self.state_efile_status: + for _item in self.state_efile_status: + if _item: + _items.append(_item.to_dict()) + _dict['stateEfileStatus'] = _items + # override the default output from pydantic by calling `to_dict()` of postal_mail_status + if self.postal_mail_status: + _dict['postalMailStatus'] = self.postal_mail_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of tin_match_status + if self.tin_match_status: + _dict['tinMatchStatus'] = self.tin_match_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of address_verification_status + if self.address_verification_status: + _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) + _items = [] + if self.validation_errors: + for _item in self.validation_errors: + if _item: + _items.append(_item.to_dict()) + _dict['validationErrors'] = _items + # override the default output from pydantic by calling `to_dict()` of state_and_local_withholding + if self.state_and_local_withholding: + _dict['stateAndLocalWithholding'] = self.state_and_local_withholding.to_dict() + # set to None if issuer_reference_id (nullable) is None + # and model_fields_set contains the field + if self.issuer_reference_id is None and "issuer_reference_id" in self.model_fields_set: + _dict['issuerReferenceId'] = None + + # set to None if issuer_tin (nullable) is None + # and model_fields_set contains the field + if self.issuer_tin is None and "issuer_tin" in self.model_fields_set: + _dict['issuerTin'] = None + + # set to None if state_efile_status (nullable) is None + # and model_fields_set contains the field + if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: + _dict['stateEfileStatus'] = None + + # set to None if postal_mail_status (nullable) is None + # and model_fields_set contains the field + if self.postal_mail_status is None and "postal_mail_status" in self.model_fields_set: + _dict['postalMailStatus'] = None + + # set to None if tin_match_status (nullable) is None + # and model_fields_set contains the field + if self.tin_match_status is None and "tin_match_status" in self.model_fields_set: + _dict['tinMatchStatus'] = None + + # set to None if address_verification_status (nullable) is None + # and model_fields_set contains the field + if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: + _dict['addressVerificationStatus'] = None + + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + + # set to None if reference_id (nullable) is None + # and model_fields_set contains the field + if self.reference_id is None and "reference_id" in self.model_fields_set: + _dict['referenceId'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if tin_type (nullable) is None + # and model_fields_set contains the field + if self.tin_type is None and "tin_type" in self.model_fields_set: + _dict['tinType'] = None + + # set to None if tin (nullable) is None + # and model_fields_set contains the field + if self.tin is None and "tin" in self.model_fields_set: + _dict['tin'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + + # set to None if recipient_second_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: + _dict['recipientSecondName'] = None + + # set to None if address (nullable) is None + # and model_fields_set contains the field + if self.address is None and "address" in self.model_fields_set: + _dict['address'] = None + + # set to None if address2 (nullable) is None + # and model_fields_set contains the field + if self.address2 is None and "address2" in self.model_fields_set: + _dict['address2'] = None + + # set to None if city (nullable) is None + # and model_fields_set contains the field + if self.city is None and "city" in self.model_fields_set: + _dict['city'] = None + + # set to None if state (nullable) is None + # and model_fields_set contains the field + if self.state is None and "state" in self.model_fields_set: + _dict['state'] = None + + # set to None if zip (nullable) is None + # and model_fields_set contains the field + if self.zip is None and "zip" in self.model_fields_set: + _dict['zip'] = None + + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if country_code (nullable) is None + # and model_fields_set contains the field + if self.country_code is None and "country_code" in self.model_fields_set: + _dict['countryCode'] = None + + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + + # set to None if validation_errors (nullable) is None + # and model_fields_set contains the field + if self.validation_errors is None and "validation_errors" in self.model_fields_set: + _dict['validationErrors'] = None + + # set to None if state_and_local_withholding (nullable) is None + # and model_fields_set contains the field + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Form1099DivListItemResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "issuerId": obj.get("issuerId"), + "issuerReferenceId": obj.get("issuerReferenceId"), + "issuerTin": obj.get("issuerTin"), + "taxYear": obj.get("taxYear"), + "federalEfile": obj.get("federalEfile"), + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "stateEfile": obj.get("stateEfile"), + "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, + "postalMail": obj.get("postalMail"), + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "tinMatch": obj.get("tinMatch"), + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "addressVerification": obj.get("addressVerification"), + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, + "referenceId": obj.get("referenceId"), + "email": obj.get("email"), + "tinType": obj.get("tinType"), + "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), + "recipientName": obj.get("recipientName"), + "recipientSecondName": obj.get("recipientSecondName"), + "address": obj.get("address"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "state": obj.get("state"), + "zip": obj.get("zip"), + "nonUsProvince": obj.get("nonUsProvince"), + "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), + "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/form1099_div_request.py b/Avalara/SDK/models/A1099/V2/form1099_div_request.py index 783471c..c3c3c3d 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_div_request.py +++ b/Avalara/SDK/models/A1099/V2/form1099_div_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -46,8 +46,8 @@ class Form1099DivRequest(BaseModel): """ # noqa: E501 total_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Total ordinary dividends", alias="totalOrdinaryDividends") qualified_dividends: Optional[StrictStr] = Field(default=None, description="Qualified dividends", alias="qualifiedDividends") - total_capital_gain_distr: Optional[StrictStr] = Field(default=None, description="Total capital gain distributions", alias="totalCapitalGainDistr") - unrecap_sec1250_gain: Optional[StrictStr] = Field(default=None, description="Unrecaptured Section 1250 gain", alias="unrecapSec1250Gain") + total_capital_gain_distributions: Optional[StrictStr] = Field(default=None, description="Total capital gain distributions", alias="totalCapitalGainDistributions") + unrecaptured_section1250_gain: Optional[StrictStr] = Field(default=None, description="Unrecaptured Section 1250 gain", alias="unrecapturedSection1250Gain") section1202_gain: Optional[StrictStr] = Field(default=None, description="Section 1202 gain", alias="section1202Gain") collectibles_gain: Optional[StrictStr] = Field(default=None, description="Collectibles (28%) gain", alias="collectiblesGain") section897_ordinary_dividends: Optional[StrictStr] = Field(default=None, description="Section 897 ordinary dividends", alias="section897OrdinaryDividends") @@ -62,12 +62,12 @@ class Form1099DivRequest(BaseModel): noncash_liquidation_distributions: Optional[StrictStr] = Field(default=None, description="Noncash liquidation distributions", alias="noncashLiquidationDistributions") exempt_interest_dividends: Optional[StrictStr] = Field(default=None, description="Exempt-interest dividends", alias="exemptInterestDividends") specified_private_activity_bond_interest_dividends: Optional[StrictStr] = Field(default=None, description="Specified private activity bond interest dividends", alias="specifiedPrivateActivityBondInterestDividends") - fatca_filing_requirement: Optional[StrictStr] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") type: Optional[StrictStr] = None issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -75,18 +75,20 @@ class Form1099DivRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -94,8 +96,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -160,6 +162,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -170,10 +177,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -185,10 +192,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -214,15 +231,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_div_response.py b/Avalara/SDK/models/A1099/V2/form1099_div_response.py index 9a7279a..c6ce4c0 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_div_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_div_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -50,7 +50,6 @@ class Form1099DivResponse(BaseModel): type: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") id: Optional[StrictStr] = None @@ -67,23 +66,26 @@ class Form1099DivResponse(BaseModel): city: Optional[StrictStr] = None state: Optional[StrictStr] = None zip: Optional[StrictStr] = None - recipient_email: Optional[StrictStr] = Field(default=None, alias="recipientEmail") + email: Optional[StrictStr] = None account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") - __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "userId", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "federalEfileStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] @field_validator('type') def type_validate_enum(cls, value): @@ -91,8 +93,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -152,6 +154,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of federal_efile_status if self.federal_efile_status: _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) _items = [] if self.state_efile_status: @@ -180,6 +185,11 @@ def to_dict(self) -> Dict[str, Any]: if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: _dict['federalEfileStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if state_efile_status (nullable) is None # and model_fields_set contains the field if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: @@ -220,7 +230,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), - "userId": obj.get("userId"), "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, "tinType": obj.get("tinType"), "id": obj.get("id"), @@ -237,17 +246,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, diff --git a/Avalara/SDK/models/A1099/V2/form1099_k_list.py b/Avalara/SDK/models/A1099/V2/form1099_k_list.py index bc2092b..4182219 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_k_list.py +++ b/Avalara/SDK/models/A1099/V2/form1099_k_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_k_list_item.py b/Avalara/SDK/models/A1099/V2/form1099_k_list_item.py index e4e34fb..39eeeeb 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_k_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1099_k_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -70,7 +70,7 @@ class Form1099KListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -78,18 +78,20 @@ class Form1099KListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('filer_type') def filer_type_validate_enum(cls, value): @@ -173,6 +175,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -183,10 +190,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -198,10 +205,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -229,15 +246,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_k_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1099_k_list_item_response.py index 4f4c1a5..b2147e1 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_k_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_k_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,9 +37,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -75,19 +75,22 @@ class Form1099KListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -95,13 +98,16 @@ class Form1099KListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] @field_validator('filer_type') def filer_type_validate_enum(cls, value): @@ -162,6 +168,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -170,6 +177,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -199,6 +207,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -239,6 +250,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -259,6 +275,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -294,16 +315,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -333,19 +369,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -353,8 +392,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1099_k_request.py b/Avalara/SDK/models/A1099/V2/form1099_k_request.py index 3449e20..037d03a 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_k_request.py +++ b/Avalara/SDK/models/A1099/V2/form1099_k_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -44,8 +44,8 @@ class Form1099KRequest(BaseModel): """ Form1099KRequest """ # noqa: E501 - filer_type: Optional[StrictInt] = Field(default=None, description="Filer type (PSE or EPF)", alias="filerType") - payment_type: Optional[StrictInt] = Field(default=None, description="Payment type (payment card or third party network)", alias="paymentType") + filer_type: Optional[StrictStr] = Field(default=None, description="Filer type (PSE or EPF)", alias="filerType") + payment_type: Optional[StrictStr] = Field(default=None, description="Payment type (payment card or third party network)", alias="paymentType") payment_settlement_entity_name_phone_number: Optional[StrictStr] = Field(default=None, description="Payment settlement entity name and phone number", alias="paymentSettlementEntityNamePhoneNumber") gross_amount_payment_card: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross amount of payment card/third party network transactions", alias="grossAmountPaymentCard") card_not_present_transactions: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Card not present transactions", alias="cardNotPresentTransactions") @@ -68,7 +68,7 @@ class Form1099KRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -76,18 +76,40 @@ class Form1099KRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] + + @field_validator('filer_type') + def filer_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['PSE', 'EPF', 'Other']): + raise ValueError("must be one of enum values ('PSE', 'EPF', 'Other')") + return value + + @field_validator('payment_type') + def payment_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MerchantPaymentCard', 'ThirdPartyNetwork']): + raise ValueError("must be one of enum values ('MerchantPaymentCard', 'ThirdPartyNetwork')") + return value @field_validator('type') def type_validate_enum(cls, value): @@ -95,8 +117,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -161,6 +183,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -171,10 +198,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -186,10 +213,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -215,15 +252,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_k_response.py b/Avalara/SDK/models/A1099/V2/form1099_k_response.py new file mode 100644 index 0000000..c90ee2b --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/form1099_k_response.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse +from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail +from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse +from typing import Optional, Set +from typing_extensions import Self + +class Form1099KResponse(BaseModel): + """ + Form1099KResponse + """ # noqa: E501 + filer_type: Optional[StrictStr] = Field(default=None, alias="filerType") + payment_type: Optional[StrictStr] = Field(default=None, alias="paymentType") + payment_settlement_entity_name_phone_number: Optional[StrictStr] = Field(default=None, alias="paymentSettlementEntityNamePhoneNumber") + gross_amount_payment_card: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="grossAmountPaymentCard") + card_not_present_transactions: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="cardNotPresentTransactions") + merchant_category_code: Optional[StrictStr] = Field(default=None, alias="merchantCategoryCode") + payment_transaction_number: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="paymentTransactionNumber") + federal_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="federalIncomeTaxWithheld") + january: Optional[Union[StrictFloat, StrictInt]] = None + february: Optional[Union[StrictFloat, StrictInt]] = None + march: Optional[Union[StrictFloat, StrictInt]] = None + april: Optional[Union[StrictFloat, StrictInt]] = None + may: Optional[Union[StrictFloat, StrictInt]] = None + june: Optional[Union[StrictFloat, StrictInt]] = None + july: Optional[Union[StrictFloat, StrictInt]] = None + august: Optional[Union[StrictFloat, StrictInt]] = None + sept: Optional[Union[StrictFloat, StrictInt]] = None + october: Optional[Union[StrictFloat, StrictInt]] = None + november: Optional[Union[StrictFloat, StrictInt]] = None + december: Optional[Union[StrictFloat, StrictInt]] = None + type: Optional[StrictStr] = None + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") + state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") + tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") + id: Optional[StrictStr] = None + issuer_id: Optional[StrictStr] = Field(default=None, alias="issuerId") + issuer_reference_id: Optional[StrictStr] = Field(default=None, alias="issuerReferenceId") + issuer_tin: Optional[StrictStr] = Field(default=None, alias="issuerTin") + tax_year: Optional[StrictInt] = Field(default=None, alias="taxYear") + reference_id: Optional[StrictStr] = Field(default=None, alias="referenceId") + recipient_name: Optional[StrictStr] = Field(default=None, alias="recipientName") + recipient_tin: Optional[StrictStr] = Field(default=None, alias="recipientTin") + recipient_second_name: Optional[StrictStr] = Field(default=None, alias="recipientSecondName") + address: Optional[StrictStr] = None + address2: Optional[StrictStr] = None + city: Optional[StrictStr] = None + state: Optional[StrictStr] = None + zip: Optional[StrictStr] = None + email: Optional[StrictStr] = None + account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") + country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") + federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") + postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") + state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") + tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") + address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") + federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") + state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") + validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + + @field_validator('filer_type') + def filer_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['PSE', 'EPF', 'Other']): + raise ValueError("must be one of enum values ('PSE', 'EPF', 'Other')") + return value + + @field_validator('payment_type') + def payment_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['MerchantPaymentCard', 'ThirdPartyNetwork']): + raise ValueError("must be one of enum values ('MerchantPaymentCard', 'ThirdPartyNetwork')") + return value + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") + return value + + @field_validator('tin_type') + def tin_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['EIN', 'SSN', 'ITIN', 'ATIN']): + raise ValueError("must be one of enum values ('EIN', 'SSN', 'ITIN', 'ATIN')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Form1099KResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "type", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of state_and_local_withholding + if self.state_and_local_withholding: + _dict['stateAndLocalWithholding'] = self.state_and_local_withholding.to_dict() + # override the default output from pydantic by calling `to_dict()` of federal_efile_status + if self.federal_efile_status: + _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) + _items = [] + if self.state_efile_status: + for _item in self.state_efile_status: + if _item: + _items.append(_item.to_dict()) + _dict['stateEfileStatus'] = _items + # override the default output from pydantic by calling `to_dict()` of postal_mail_status + if self.postal_mail_status: + _dict['postalMailStatus'] = self.postal_mail_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of tin_match_status + if self.tin_match_status: + _dict['tinMatchStatus'] = self.tin_match_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of address_verification_status + if self.address_verification_status: + _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) + _items = [] + if self.validation_errors: + for _item in self.validation_errors: + if _item: + _items.append(_item.to_dict()) + _dict['validationErrors'] = _items + # set to None if federal_efile_status (nullable) is None + # and model_fields_set contains the field + if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: + _dict['federalEfileStatus'] = None + + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + + # set to None if state_efile_status (nullable) is None + # and model_fields_set contains the field + if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: + _dict['stateEfileStatus'] = None + + # set to None if postal_mail_status (nullable) is None + # and model_fields_set contains the field + if self.postal_mail_status is None and "postal_mail_status" in self.model_fields_set: + _dict['postalMailStatus'] = None + + # set to None if tin_match_status (nullable) is None + # and model_fields_set contains the field + if self.tin_match_status is None and "tin_match_status" in self.model_fields_set: + _dict['tinMatchStatus'] = None + + # set to None if address_verification_status (nullable) is None + # and model_fields_set contains the field + if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: + _dict['addressVerificationStatus'] = None + + # set to None if validation_errors (nullable) is None + # and model_fields_set contains the field + if self.validation_errors is None and "validation_errors" in self.model_fields_set: + _dict['validationErrors'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Form1099KResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "createdAt": obj.get("createdAt"), + "updatedAt": obj.get("updatedAt"), + "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, + "tinType": obj.get("tinType"), + "id": obj.get("id"), + "issuerId": obj.get("issuerId"), + "issuerReferenceId": obj.get("issuerReferenceId"), + "issuerTin": obj.get("issuerTin"), + "taxYear": obj.get("taxYear"), + "referenceId": obj.get("referenceId"), + "recipientName": obj.get("recipientName"), + "recipientTin": obj.get("recipientTin"), + "recipientSecondName": obj.get("recipientSecondName"), + "address": obj.get("address"), + "address2": obj.get("address2"), + "city": obj.get("city"), + "state": obj.get("state"), + "zip": obj.get("zip"), + "email": obj.get("email"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "nonUsProvince": obj.get("nonUsProvince"), + "countryCode": obj.get("countryCode"), + "federalEFile": obj.get("federalEFile"), + "postalMail": obj.get("postalMail"), + "stateEFile": obj.get("stateEFile"), + "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), + "addressVerification": obj.get("addressVerification"), + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, + "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/form1099_list_response.py b/Avalara/SDK/models/A1099/V2/form1099_list_response.py index d56bc74..a3706c0 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_list_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_list_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_list_response_value_inner.py b/Avalara/SDK/models/A1099/V2/form1099_list_response_value_inner.py index f62de12..b1741e7 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_list_response_value_inner.py +++ b/Avalara/SDK/models/A1099/V2/form1099_list_response_value_inner.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -36,6 +36,7 @@ from Avalara.SDK.models.A1099.V2.form1042_s_list_item_response import Form1042SListItemResponse from Avalara.SDK.models.A1099.V2.form1095_b_list_item_response import Form1095BListItemResponse from Avalara.SDK.models.A1099.V2.form1099_base_response import Form1099BaseResponse +from Avalara.SDK.models.A1099.V2.form1099_div_list_item_response import Form1099DivListItemResponse from Avalara.SDK.models.A1099.V2.form1099_k_list_item_response import Form1099KListItemResponse from Avalara.SDK.models.A1099.V2.form1099_misc_list_item_response import Form1099MiscListItemResponse from Avalara.SDK.models.A1099.V2.form1099_nec_list_item_response import Form1099NecListItemResponse @@ -44,7 +45,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -FORM1099LISTRESPONSEVALUEINNER_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] +FORM1099LISTRESPONSEVALUEINNER_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] class Form1099ListResponseValueInner(BaseModel): """ @@ -56,16 +57,18 @@ class Form1099ListResponseValueInner(BaseModel): oneof_schema_2_validator: Optional[Form1042SListItemResponse] = None # data type: Form1095BListItemResponse oneof_schema_3_validator: Optional[Form1095BListItemResponse] = None + # data type: Form1099DivListItemResponse + oneof_schema_4_validator: Optional[Form1099DivListItemResponse] = None # data type: Form1099KListItemResponse - oneof_schema_4_validator: Optional[Form1099KListItemResponse] = None + oneof_schema_5_validator: Optional[Form1099KListItemResponse] = None # data type: Form1099MiscListItemResponse - oneof_schema_5_validator: Optional[Form1099MiscListItemResponse] = None + oneof_schema_6_validator: Optional[Form1099MiscListItemResponse] = None # data type: Form1099NecListItemResponse - oneof_schema_6_validator: Optional[Form1099NecListItemResponse] = None + oneof_schema_7_validator: Optional[Form1099NecListItemResponse] = None # data type: Form1099RListItemResponse - oneof_schema_7_validator: Optional[Form1099RListItemResponse] = None - actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None - one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } + oneof_schema_8_validator: Optional[Form1099RListItemResponse] = None + actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None + one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } model_config = ConfigDict( validate_assignment=True, @@ -103,6 +106,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1095BListItemResponse`") else: match += 1 + # validate data type: Form1099DivListItemResponse + if not isinstance(v, Form1099DivListItemResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099DivListItemResponse`") + else: + match += 1 # validate data type: Form1099KListItemResponse if not isinstance(v, Form1099KListItemResponse): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KListItemResponse`") @@ -125,10 +133,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return v @@ -161,6 +169,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099DivListItemResponse + try: + instance.actual_instance = Form1099DivListItemResponse.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099KListItemResponse try: instance.actual_instance = Form1099KListItemResponse.from_json(json_str) @@ -188,10 +202,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into Form1099ListResponseValueInner with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -205,7 +219,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/form1099_misc_list.py b/Avalara/SDK/models/A1099/V2/form1099_misc_list.py index 23ff7f8..482736f 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_misc_list.py +++ b/Avalara/SDK/models/A1099/V2/form1099_misc_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_misc_list_item.py b/Avalara/SDK/models/A1099/V2/form1099_misc_list_item.py index 8404417..fcc4541 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_misc_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1099_misc_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -44,13 +44,12 @@ class Form1099MiscListItem(BaseModel): """ Form1099MiscListItem """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice", alias="secondTinNotice") rents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Rents") royalties: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Royalties") other_income: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Other income", alias="otherIncome") fed_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Federal income tax withheld", alias="fedIncomeTaxWithheld") fishing_boat_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fishing boat proceeds", alias="fishingBoatProceeds") - medical_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalHealthCarePayments") + medical_and_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalAndHealthCarePayments") direct_sales_indicator: Optional[StrictBool] = Field(default=None, description="Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale", alias="directSalesIndicator") substitute_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Substitute payments in lieu of dividends or interest", alias="substitutePayments") crop_insurance_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Crop insurance proceeds", alias="cropInsuranceProceeds") @@ -66,7 +65,7 @@ class Form1099MiscListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -74,18 +73,20 @@ class Form1099MiscListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('tin_type') def tin_type_validate_enum(cls, value): @@ -149,6 +150,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -159,10 +165,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -174,10 +180,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -205,15 +221,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_misc_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1099_misc_list_item_response.py index 1dc7003..e1eb179 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_misc_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_misc_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,9 +37,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -53,14 +53,15 @@ class Form1099MiscListItemResponse(BaseModel): other_income: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Other income", alias="otherIncome") fed_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Federal income tax withheld", alias="fedIncomeTaxWithheld") fishing_boat_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fishing boat proceeds", alias="fishingBoatProceeds") - medical_and_health_care: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalAndHealthCare") + medical_and_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalAndHealthCarePayments") substitute_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Substitute payments in lieu of dividends or interest", alias="substitutePayments") direct_sales_indicator: Optional[StrictBool] = Field(default=None, description="Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale", alias="directSalesIndicator") crop_insurance_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Crop insurance proceeds", alias="cropInsuranceProceeds") - excess_golden_parachute: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="(Legacy field) Excess golden parachute payments", alias="excessGoldenParachute") - gross_amount_paid_attorney: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross proceeds paid to an attorney", alias="grossAmountPaidAttorney") + excess_golden_parachute_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="(Legacy field) Excess golden parachute payments", alias="excessGoldenParachutePayments") + gross_proceeds_paid_to_attorney: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gross proceeds paid to an attorney", alias="grossProceedsPaidToAttorney") + fish_purchased_for_resale: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fish purchased for resale", alias="fishPurchasedForResale") section409_a_deferrals: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Section 409A deferrals", alias="section409ADeferrals") - section409_a_income: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Nonqualified deferred compensation", alias="section409AIncome") + nonqualified_deferred_compensation: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Nonqualified deferred compensation", alias="nonqualifiedDeferredCompensation") id: Annotated[str, Field(min_length=1, strict=True)] = Field(description="ID of the form") type: Annotated[str, Field(min_length=1, strict=True)] = Field(description="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: StrictInt = Field(description="Issuer ID", alias="issuerId") @@ -68,19 +69,22 @@ class Form1099MiscListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -88,13 +92,16 @@ class Form1099MiscListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] model_config = ConfigDict( populate_by_name=True, @@ -135,6 +142,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -143,6 +151,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -172,6 +181,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -212,6 +224,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -232,6 +249,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -267,16 +289,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -306,19 +343,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -326,8 +366,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1099_misc_request.py b/Avalara/SDK/models/A1099/V2/form1099_misc_request.py index a48ca3f..3a53987 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_misc_request.py +++ b/Avalara/SDK/models/A1099/V2/form1099_misc_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -44,13 +44,12 @@ class Form1099MiscRequest(BaseModel): """ Form1099MiscRequest """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice", alias="secondTinNotice") rents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Rents") royalties: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Royalties") other_income: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Other income", alias="otherIncome") fed_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Federal income tax withheld", alias="fedIncomeTaxWithheld") fishing_boat_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Fishing boat proceeds", alias="fishingBoatProceeds") - medical_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalHealthCarePayments") + medical_and_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Medical and health care payments", alias="medicalAndHealthCarePayments") direct_sales_indicator: Optional[StrictBool] = Field(default=None, description="Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale", alias="directSalesIndicator") substitute_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Substitute payments in lieu of dividends or interest", alias="substitutePayments") crop_insurance_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Crop insurance proceeds", alias="cropInsuranceProceeds") @@ -64,7 +63,7 @@ class Form1099MiscRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -72,18 +71,20 @@ class Form1099MiscRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -91,8 +92,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -157,6 +158,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -167,10 +173,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -182,10 +188,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -211,15 +227,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_misc_response.py b/Avalara/SDK/models/A1099/V2/form1099_misc_response.py index 07b2158..47acf4a 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_misc_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_misc_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -47,13 +47,12 @@ class Form1099MiscResponse(BaseModel): """ Form1099MiscResponse """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") rents: Optional[Union[StrictFloat, StrictInt]] = None royalties: Optional[Union[StrictFloat, StrictInt]] = None other_income: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="otherIncome") fed_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="fedIncomeTaxWithheld") fishing_boat_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="fishingBoatProceeds") - medical_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="medicalHealthCarePayments") + medical_and_health_care_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="medicalAndHealthCarePayments") direct_sales_indicator: Optional[StrictBool] = Field(default=None, alias="directSalesIndicator") substitute_payments: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="substitutePayments") crop_insurance_proceeds: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="cropInsuranceProceeds") @@ -66,7 +65,6 @@ class Form1099MiscResponse(BaseModel): type: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") id: Optional[StrictStr] = None @@ -83,23 +81,26 @@ class Form1099MiscResponse(BaseModel): city: Optional[StrictStr] = None state: Optional[StrictStr] = None zip: Optional[StrictStr] = None - recipient_email: Optional[StrictStr] = Field(default=None, alias="recipientEmail") + email: Optional[StrictStr] = None account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") - __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "userId", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "federalEfileStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] @field_validator('type') def type_validate_enum(cls, value): @@ -107,8 +108,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -168,6 +169,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of federal_efile_status if self.federal_efile_status: _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) _items = [] if self.state_efile_status: @@ -196,6 +200,11 @@ def to_dict(self) -> Dict[str, Any]: if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: _dict['federalEfileStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if state_efile_status (nullable) is None # and model_fields_set contains the field if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: @@ -236,7 +245,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), - "userId": obj.get("userId"), "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, "tinType": obj.get("tinType"), "id": obj.get("id"), @@ -253,17 +261,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, diff --git a/Avalara/SDK/models/A1099/V2/form1099_nec_list.py b/Avalara/SDK/models/A1099/V2/form1099_nec_list.py index 5f0effe..7dbe137 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_nec_list.py +++ b/Avalara/SDK/models/A1099/V2/form1099_nec_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_nec_list_item.py b/Avalara/SDK/models/A1099/V2/form1099_nec_list_item.py index 601a860..fa96192 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_nec_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1099_nec_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -44,7 +44,6 @@ class Form1099NecListItem(BaseModel): """ 1099-NEC - Nonemployee compensation """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice", alias="secondTinNotice") nonemployee_compensation: Union[StrictFloat, StrictInt] = Field(description="Nonemployee compensation", alias="nonemployeeCompensation") direct_sales_indicator: Optional[StrictBool] = Field(default=None, description="Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale", alias="directSalesIndicator") federal_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Federal income tax withheld", alias="federalIncomeTaxWithheld") @@ -54,7 +53,7 @@ class Form1099NecListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -62,18 +61,20 @@ class Form1099NecListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('tin_type') def tin_type_validate_enum(cls, value): @@ -137,6 +138,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -147,10 +153,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -162,10 +168,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -193,15 +209,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_nec_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1099_nec_list_item_response.py index abd2a14..9e4280b 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_nec_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_nec_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,9 +37,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -58,19 +58,22 @@ class Form1099NecListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -78,13 +81,16 @@ class Form1099NecListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] model_config = ConfigDict( populate_by_name=True, @@ -125,6 +131,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -133,6 +140,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -162,6 +170,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -202,6 +213,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -222,6 +238,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -257,16 +278,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -296,19 +332,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -316,8 +355,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1099_nec_request.py b/Avalara/SDK/models/A1099/V2/form1099_nec_request.py index 2a5fa98..3a203e7 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_nec_request.py +++ b/Avalara/SDK/models/A1099/V2/form1099_nec_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -44,7 +44,6 @@ class Form1099NecRequest(BaseModel): """ Form1099NecRequest """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice", alias="secondTinNotice") nonemployee_compensation: Union[StrictFloat, StrictInt] = Field(description="Nonemployee compensation", alias="nonemployeeCompensation") direct_sales_indicator: Optional[StrictBool] = Field(default=None, description="Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale", alias="directSalesIndicator") federal_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Federal income tax withheld", alias="federalIncomeTaxWithheld") @@ -52,7 +51,7 @@ class Form1099NecRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -60,18 +59,20 @@ class Form1099NecRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -79,8 +80,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -145,6 +146,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -155,10 +161,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -170,10 +176,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -199,15 +215,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_nec_response.py b/Avalara/SDK/models/A1099/V2/form1099_nec_response.py index 6d8ba8e..c33707f 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_nec_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_nec_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -47,14 +47,12 @@ class Form1099NecResponse(BaseModel): """ Form1099NecResponse """ # noqa: E501 - second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") nonemployee_compensation: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="nonemployeeCompensation") direct_sales_indicator: Optional[StrictBool] = Field(default=None, alias="directSalesIndicator") federal_income_tax_withheld: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="federalIncomeTaxWithheld") type: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") id: Optional[StrictStr] = None @@ -71,23 +69,26 @@ class Form1099NecResponse(BaseModel): city: Optional[StrictStr] = None state: Optional[StrictStr] = None zip: Optional[StrictStr] = None - recipient_email: Optional[StrictStr] = Field(default=None, alias="recipientEmail") + email: Optional[StrictStr] = None account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") - __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "userId", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "federalEfileStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] @field_validator('type') def type_validate_enum(cls, value): @@ -95,8 +96,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -156,6 +157,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of federal_efile_status if self.federal_efile_status: _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) _items = [] if self.state_efile_status: @@ -184,6 +188,11 @@ def to_dict(self) -> Dict[str, Any]: if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: _dict['federalEfileStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if state_efile_status (nullable) is None # and model_fields_set contains the field if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: @@ -224,7 +233,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), - "userId": obj.get("userId"), "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, "tinType": obj.get("tinType"), "id": obj.get("id"), @@ -241,17 +249,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, diff --git a/Avalara/SDK/models/A1099/V2/form1099_proccess_result.py b/Avalara/SDK/models/A1099/V2/form1099_proccess_result.py index fdc3d99..3b1d92f 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_proccess_result.py +++ b/Avalara/SDK/models/A1099/V2/form1099_proccess_result.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_r_list.py b/Avalara/SDK/models/A1099/V2/form1099_r_list.py index 446b54e..30662bc 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_r_list.py +++ b/Avalara/SDK/models/A1099/V2/form1099_r_list.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/form1099_r_list_item.py b/Avalara/SDK/models/A1099/V2/form1099_r_list_item.py index 65c3e27..7c32b9b 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_r_list_item.py +++ b/Avalara/SDK/models/A1099/V2/form1099_r_list_item.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -71,7 +71,7 @@ class Form1099RListItem(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -79,18 +79,20 @@ class Form1099RListItem(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerReferenceId", "issuerTin", "taxYear", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('distribution_code') def distribution_code_validate_enum(cls, value): @@ -174,6 +176,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -184,10 +191,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -199,10 +206,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -230,15 +247,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form1099_r_list_item_response.py b/Avalara/SDK/models/A1099/V2/form1099_r_list_item_response.py index be68451..f7a0d93 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_r_list_item_response.py +++ b/Avalara/SDK/models/A1099/V2/form1099_r_list_item_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -37,9 +37,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from Avalara.SDK.models.A1099.V2.form1099_status_detail_response import Form1099StatusDetailResponse from Avalara.SDK.models.A1099.V2.state_and_local_withholding_response import StateAndLocalWithholdingResponse from Avalara.SDK.models.A1099.V2.state_efile_status_detail_response import StateEfileStatusDetailResponse +from Avalara.SDK.models.A1099.V2.status_detail import StatusDetail from Avalara.SDK.models.A1099.V2.validation_error_response import ValidationErrorResponse from typing import Optional, Set from typing_extensions import Self @@ -75,19 +75,22 @@ class Form1099RListItemResponse(BaseModel): issuer_tin: Optional[StrictStr] = Field(default=None, description="Issuer TIN", alias="issuerTin") tax_year: Optional[StrictInt] = Field(default=None, description="Tax year", alias="taxYear") federal_efile: StrictBool = Field(description="Boolean indicating that federal e-filing has been scheduled for this form", alias="federalEfile") - federal_efile_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") + federal_efile_status: Optional[StatusDetail] = Field(default=None, description="Federal e-file status", alias="federalEfileStatus") state_efile: StrictBool = Field(description="Boolean indicating that state e-filing has been scheduled for this form", alias="stateEfile") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, description="State e-file status", alias="stateEfileStatus") postal_mail: StrictBool = Field(description="Boolean indicating that postal mailing to the recipient has been scheduled for this form", alias="postalMail") - postal_mail_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") + postal_mail_status: Optional[StatusDetail] = Field(default=None, description="Postal mail to recipient status", alias="postalMailStatus") tin_match: StrictBool = Field(description="Boolean indicating that TIN Matching has been scheduled for this form", alias="tinMatch") - tin_match_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") + tin_match_status: Optional[StatusDetail] = Field(default=None, description="TIN Match status", alias="tinMatchStatus") address_verification: StrictBool = Field(description="Boolean indicating that address verification has been scheduled for this form", alias="addressVerification") - address_verification_status: Optional[Form1099StatusDetailResponse] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + address_verification_status: Optional[StatusDetail] = Field(default=None, description="Address verification status", alias="addressVerificationStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, description="EDelivery status", alias="eDeliveryStatus") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") email: Optional[StrictStr] = Field(default=None, description="Recipient email address") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second Tin Notice", alias="secondTinNotice") recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Optional[StrictStr] = Field(default=None, description="Address") @@ -95,13 +98,16 @@ class Form1099RListItemResponse(BaseModel): city: Optional[StrictStr] = Field(default=None, description="City") state: Optional[StrictStr] = Field(default=None, description="US state") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - foreign_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="foreignProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") + account_number: Optional[StrictStr] = Field(default=None, description="Account Number", alias="accountNumber") + office_code: Optional[StrictStr] = Field(default=None, description="Office Code", alias="officeCode") + fatca_filing_requirement: Optional[StrictBool] = Field(default=None, description="FATCA filing requirement", alias="fatcaFilingRequirement") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, description="Validation errors", alias="validationErrors") created_at: Optional[datetime] = Field(default=None, description="Creation time", alias="createdAt") updated_at: Optional[datetime] = Field(default=None, description="Update time", alias="updatedAt") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "referenceId", "email", "tinType", "tin", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "foreignProvince", "countryCode", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["id", "type", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "federalEfile", "federalEfileStatus", "stateEfile", "stateEfileStatus", "postalMail", "postalMailStatus", "tinMatch", "tinMatchStatus", "addressVerification", "addressVerificationStatus", "eDeliveryStatus", "referenceId", "email", "tinType", "tin", "noTin", "secondTinNotice", "recipientName", "recipientSecondName", "address", "address2", "city", "state", "zip", "nonUsProvince", "countryCode", "accountNumber", "officeCode", "fatcaFilingRequirement", "validationErrors", "createdAt", "updatedAt", "stateAndLocalWithholding"] model_config = ConfigDict( populate_by_name=True, @@ -142,6 +148,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", @@ -150,6 +157,7 @@ def to_dict(self) -> Dict[str, Any]: "postal_mail_status", "tin_match_status", "address_verification_status", + "e_delivery_status", "validation_errors", "created_at", "updated_at", @@ -179,6 +187,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of address_verification_status if self.address_verification_status: _dict['addressVerificationStatus'] = self.address_verification_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in validation_errors (list) _items = [] if self.validation_errors: @@ -219,6 +230,11 @@ def to_dict(self) -> Dict[str, Any]: if self.address_verification_status is None and "address_verification_status" in self.model_fields_set: _dict['addressVerificationStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if reference_id (nullable) is None # and model_fields_set contains the field if self.reference_id is None and "reference_id" in self.model_fields_set: @@ -239,6 +255,11 @@ def to_dict(self) -> Dict[str, Any]: if self.tin is None and "tin" in self.model_fields_set: _dict['tin'] = None + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + # set to None if recipient_name (nullable) is None # and model_fields_set contains the field if self.recipient_name is None and "recipient_name" in self.model_fields_set: @@ -274,16 +295,31 @@ def to_dict(self) -> Dict[str, Any]: if self.zip is None and "zip" in self.model_fields_set: _dict['zip'] = None - # set to None if foreign_province (nullable) is None + # set to None if non_us_province (nullable) is None # and model_fields_set contains the field - if self.foreign_province is None and "foreign_province" in self.model_fields_set: - _dict['foreignProvince'] = None + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None # set to None if country_code (nullable) is None # and model_fields_set contains the field if self.country_code is None and "country_code" in self.model_fields_set: _dict['countryCode'] = None + # set to None if account_number (nullable) is None + # and model_fields_set contains the field + if self.account_number is None and "account_number" in self.model_fields_set: + _dict['accountNumber'] = None + + # set to None if office_code (nullable) is None + # and model_fields_set contains the field + if self.office_code is None and "office_code" in self.model_fields_set: + _dict['officeCode'] = None + + # set to None if fatca_filing_requirement (nullable) is None + # and model_fields_set contains the field + if self.fatca_filing_requirement is None and "fatca_filing_requirement" in self.model_fields_set: + _dict['fatcaFilingRequirement'] = None + # set to None if validation_errors (nullable) is None # and model_fields_set contains the field if self.validation_errors is None and "validation_errors" in self.model_fields_set: @@ -313,19 +349,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "issuerTin": obj.get("issuerTin"), "taxYear": obj.get("taxYear"), "federalEfile": obj.get("federalEfile"), - "federalEfileStatus": Form1099StatusDetailResponse.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, "stateEfile": obj.get("stateEfile"), "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMail": obj.get("postalMail"), - "postalMailStatus": Form1099StatusDetailResponse.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, + "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatch": obj.get("tinMatch"), - "tinMatchStatus": Form1099StatusDetailResponse.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, + "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, "addressVerification": obj.get("addressVerification"), - "addressVerificationStatus": Form1099StatusDetailResponse.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "addressVerificationStatus": StatusDetail.from_dict(obj["addressVerificationStatus"]) if obj.get("addressVerificationStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "referenceId": obj.get("referenceId"), "email": obj.get("email"), "tinType": obj.get("tinType"), "tin": obj.get("tin"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "recipientName": obj.get("recipientName"), "recipientSecondName": obj.get("recipientSecondName"), "address": obj.get("address"), @@ -333,8 +372,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "foreignProvince": obj.get("foreignProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), + "accountNumber": obj.get("accountNumber"), + "officeCode": obj.get("officeCode"), + "fatcaFilingRequirement": obj.get("fatcaFilingRequirement"), "validationErrors": [ValidationErrorResponse.from_dict(_item) for _item in obj["validationErrors"]] if obj.get("validationErrors") is not None else None, "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), diff --git a/Avalara/SDK/models/A1099/V2/form1099_r_request.py b/Avalara/SDK/models/A1099/V2/form1099_r_request.py index 0391280..b65def9 100644 --- a/Avalara/SDK/models/A1099/V2/form1099_r_request.py +++ b/Avalara/SDK/models/A1099/V2/form1099_r_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -69,7 +69,7 @@ class Form1099RRequest(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -77,18 +77,20 @@ class Form1099RRequest(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["type", "issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -96,8 +98,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -162,6 +164,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -172,10 +179,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -187,10 +194,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -216,15 +233,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form_request_base.py b/Avalara/SDK/models/A1099/V2/form_request_base.py index 93f1450..17699d5 100644 --- a/Avalara/SDK/models/A1099/V2/form_request_base.py +++ b/Avalara/SDK/models/A1099/V2/form_request_base.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -47,7 +47,7 @@ class FormRequestBase(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -55,18 +55,20 @@ class FormRequestBase(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('tin_type') def tin_type_validate_enum(cls, value): @@ -130,6 +132,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -140,10 +147,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -155,10 +162,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -183,15 +200,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form_request_list_item_base.py b/Avalara/SDK/models/A1099/V2/form_request_list_item_base.py index 05cbe54..2c7d2a1 100644 --- a/Avalara/SDK/models/A1099/V2/form_request_list_item_base.py +++ b/Avalara/SDK/models/A1099/V2/form_request_list_item_base.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -50,7 +50,7 @@ class FormRequestListItemBase(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -58,18 +58,20 @@ class FormRequestListItemBase(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('tin_type') def tin_type_validate_enum(cls, value): @@ -133,6 +135,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -143,10 +150,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -158,10 +165,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -186,15 +203,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/form_response_base.py b/Avalara/SDK/models/A1099/V2/form_response_base.py index 5afbd43..946b5f1 100644 --- a/Avalara/SDK/models/A1099/V2/form_response_base.py +++ b/Avalara/SDK/models/A1099/V2/form_response_base.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -50,7 +50,6 @@ class FormResponseBase(BaseModel): type: Optional[StrictStr] = None created_at: Optional[datetime] = Field(default=None, alias="createdAt") updated_at: Optional[datetime] = Field(default=None, alias="updatedAt") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") state_and_local_withholding: Optional[StateAndLocalWithholdingResponse] = Field(default=None, alias="stateAndLocalWithholding") tin_type: Optional[StrictStr] = Field(default=None, alias="tinType") id: Optional[StrictStr] = None @@ -67,23 +66,26 @@ class FormResponseBase(BaseModel): city: Optional[StrictStr] = None state: Optional[StrictStr] = None zip: Optional[StrictStr] = None - recipient_email: Optional[StrictStr] = Field(default=None, alias="recipientEmail") + email: Optional[StrictStr] = None account_number: Optional[StrictStr] = Field(default=None, alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, alias="nonUsProvince") country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, alias="addressVerification") federal_efile_status: Optional[StatusDetail] = Field(default=None, alias="federalEfileStatus") + e_delivery_status: Optional[StatusDetail] = Field(default=None, alias="eDeliveryStatus") state_efile_status: Optional[List[StateEfileStatusDetailResponse]] = Field(default=None, alias="stateEfileStatus") postal_mail_status: Optional[StatusDetail] = Field(default=None, alias="postalMailStatus") tin_match_status: Optional[StatusDetail] = Field(default=None, alias="tinMatchStatus") address_verification_status: Optional[StatusDetail] = Field(default=None, alias="addressVerificationStatus") validation_errors: Optional[List[ValidationErrorResponse]] = Field(default=None, alias="validationErrors") - __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "userId", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "federalEfileStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] + __properties: ClassVar[List[str]] = ["type", "createdAt", "updatedAt", "stateAndLocalWithholding", "tinType", "id", "issuerId", "issuerReferenceId", "issuerTin", "taxYear", "referenceId", "recipientName", "recipientTin", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "federalEfileStatus", "eDeliveryStatus", "stateEfileStatus", "postalMailStatus", "tinMatchStatus", "addressVerificationStatus", "validationErrors"] @field_validator('type') def type_validate_enum(cls, value): @@ -91,8 +93,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -152,6 +154,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of federal_efile_status if self.federal_efile_status: _dict['federalEfileStatus'] = self.federal_efile_status.to_dict() + # override the default output from pydantic by calling `to_dict()` of e_delivery_status + if self.e_delivery_status: + _dict['eDeliveryStatus'] = self.e_delivery_status.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in state_efile_status (list) _items = [] if self.state_efile_status: @@ -180,6 +185,11 @@ def to_dict(self) -> Dict[str, Any]: if self.federal_efile_status is None and "federal_efile_status" in self.model_fields_set: _dict['federalEfileStatus'] = None + # set to None if e_delivery_status (nullable) is None + # and model_fields_set contains the field + if self.e_delivery_status is None and "e_delivery_status" in self.model_fields_set: + _dict['eDeliveryStatus'] = None + # set to None if state_efile_status (nullable) is None # and model_fields_set contains the field if self.state_efile_status is None and "state_efile_status" in self.model_fields_set: @@ -220,7 +230,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "type": obj.get("type"), "createdAt": obj.get("createdAt"), "updatedAt": obj.get("updatedAt"), - "userId": obj.get("userId"), "stateAndLocalWithholding": StateAndLocalWithholdingResponse.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None, "tinType": obj.get("tinType"), "id": obj.get("id"), @@ -237,17 +246,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "federalEfileStatus": StatusDetail.from_dict(obj["federalEfileStatus"]) if obj.get("federalEfileStatus") is not None else None, + "eDeliveryStatus": StatusDetail.from_dict(obj["eDeliveryStatus"]) if obj.get("eDeliveryStatus") is not None else None, "stateEfileStatus": [StateEfileStatusDetailResponse.from_dict(_item) for _item in obj["stateEfileStatus"]] if obj.get("stateEfileStatus") is not None else None, "postalMailStatus": StatusDetail.from_dict(obj["postalMailStatus"]) if obj.get("postalMailStatus") is not None else None, "tinMatchStatus": StatusDetail.from_dict(obj["tinMatchStatus"]) if obj.get("tinMatchStatus") is not None else None, diff --git a/Avalara/SDK/models/A1099/V2/form_single_request_base.py b/Avalara/SDK/models/A1099/V2/form_single_request_base.py index d4b8786..499db23 100644 --- a/Avalara/SDK/models/A1099/V2/form_single_request_base.py +++ b/Avalara/SDK/models/A1099/V2/form_single_request_base.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -48,7 +48,7 @@ class FormSingleRequestBase(BaseModel): issuer_id: Optional[StrictStr] = Field(default=None, description="Issuer ID", alias="issuerId") reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID", alias="referenceId") recipient_tin: Optional[StrictStr] = Field(default=None, description="Recipient Tax ID Number", alias="recipientTin") - recipient_name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Recipient name", alias="recipientName") + recipient_name: Optional[StrictStr] = Field(default=None, description="Recipient name", alias="recipientName") tin_type: Optional[StrictStr] = Field(default=None, description="Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN", alias="tinType") recipient_second_name: Optional[StrictStr] = Field(default=None, description="Recipient second name", alias="recipientSecondName") address: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Address") @@ -56,18 +56,20 @@ class FormSingleRequestBase(BaseModel): city: Annotated[str, Field(min_length=1, strict=True)] = Field(description="City") state: Optional[StrictStr] = Field(default=None, description="US state. Required if CountryCode is \"US\".") zip: Optional[StrictStr] = Field(default=None, description="Zip/postal code") - recipient_email: Optional[StrictStr] = Field(default=None, description="Recipient email address", alias="recipientEmail") + email: Optional[StrictStr] = Field(default=None, description="Recipient email address") account_number: Optional[StrictStr] = Field(default=None, description="Account number", alias="accountNumber") office_code: Optional[StrictStr] = Field(default=None, description="Office code", alias="officeCode") - recipient_non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="recipientNonUsProvince") + non_us_province: Optional[StrictStr] = Field(default=None, description="Foreign province", alias="nonUsProvince") country_code: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Country code, as defined at https://www.irs.gov/e-file-providers/country-codes", alias="countryCode") federal_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that federal e-filing should be scheduled for this form", alias="federalEFile") postal_mail: Optional[StrictBool] = Field(default=None, description="Boolean indicating that postal mailing to the recipient should be scheduled for this form", alias="postalMail") state_e_file: Optional[StrictBool] = Field(default=None, description="Boolean indicating that state e-filing should be scheduled for this form", alias="stateEFile") tin_match: Optional[StrictBool] = Field(default=None, description="Boolean indicating that TIN Matching should be scheduled for this form", alias="tinMatch") + no_tin: Optional[StrictBool] = Field(default=None, description="Indicates whether the recipient has no TIN", alias="noTin") + second_tin_notice: Optional[StrictBool] = Field(default=None, description="Second TIN notice in three years", alias="secondTinNotice") address_verification: Optional[StrictBool] = Field(default=None, description="Boolean indicating that address verification should be scheduled for this form", alias="addressVerification") state_and_local_withholding: Optional[StateAndLocalWithholdingRequest] = Field(default=None, description="State and local withholding information", alias="stateAndLocalWithholding") - __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "recipientEmail", "accountNumber", "officeCode", "recipientNonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "addressVerification", "stateAndLocalWithholding"] + __properties: ClassVar[List[str]] = ["issuerId", "referenceId", "recipientTin", "recipientName", "tinType", "recipientSecondName", "address", "address2", "city", "state", "zip", "email", "accountNumber", "officeCode", "nonUsProvince", "countryCode", "federalEFile", "postalMail", "stateEFile", "tinMatch", "noTin", "secondTinNotice", "addressVerification", "stateAndLocalWithholding"] @field_validator('type') def type_validate_enum(cls, value): @@ -75,8 +77,8 @@ def type_validate_enum(cls, value): if value is None: return value - if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S']): - raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S')") + if value not in set(['1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C']): + raise ValueError("must be one of enum values ('1099-NEC', '1099-MISC', '1099-DIV', '1099-R', '1099-K', '1095-B', '1042-S', '1095-C')") return value @field_validator('tin_type') @@ -141,6 +143,11 @@ def to_dict(self) -> Dict[str, Any]: if self.reference_id is None and "reference_id" in self.model_fields_set: _dict['referenceId'] = None + # set to None if recipient_name (nullable) is None + # and model_fields_set contains the field + if self.recipient_name is None and "recipient_name" in self.model_fields_set: + _dict['recipientName'] = None + # set to None if recipient_second_name (nullable) is None # and model_fields_set contains the field if self.recipient_second_name is None and "recipient_second_name" in self.model_fields_set: @@ -151,10 +158,10 @@ def to_dict(self) -> Dict[str, Any]: if self.address2 is None and "address2" in self.model_fields_set: _dict['address2'] = None - # set to None if recipient_email (nullable) is None + # set to None if email (nullable) is None # and model_fields_set contains the field - if self.recipient_email is None and "recipient_email" in self.model_fields_set: - _dict['recipientEmail'] = None + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None # set to None if account_number (nullable) is None # and model_fields_set contains the field @@ -166,10 +173,20 @@ def to_dict(self) -> Dict[str, Any]: if self.office_code is None and "office_code" in self.model_fields_set: _dict['officeCode'] = None - # set to None if recipient_non_us_province (nullable) is None + # set to None if non_us_province (nullable) is None + # and model_fields_set contains the field + if self.non_us_province is None and "non_us_province" in self.model_fields_set: + _dict['nonUsProvince'] = None + + # set to None if second_tin_notice (nullable) is None + # and model_fields_set contains the field + if self.second_tin_notice is None and "second_tin_notice" in self.model_fields_set: + _dict['secondTinNotice'] = None + + # set to None if state_and_local_withholding (nullable) is None # and model_fields_set contains the field - if self.recipient_non_us_province is None and "recipient_non_us_province" in self.model_fields_set: - _dict['recipientNonUsProvince'] = None + if self.state_and_local_withholding is None and "state_and_local_withholding" in self.model_fields_set: + _dict['stateAndLocalWithholding'] = None return _dict @@ -194,15 +211,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "city": obj.get("city"), "state": obj.get("state"), "zip": obj.get("zip"), - "recipientEmail": obj.get("recipientEmail"), + "email": obj.get("email"), "accountNumber": obj.get("accountNumber"), "officeCode": obj.get("officeCode"), - "recipientNonUsProvince": obj.get("recipientNonUsProvince"), + "nonUsProvince": obj.get("nonUsProvince"), "countryCode": obj.get("countryCode"), "federalEFile": obj.get("federalEFile"), "postalMail": obj.get("postalMail"), "stateEFile": obj.get("stateEFile"), "tinMatch": obj.get("tinMatch"), + "noTin": obj.get("noTin"), + "secondTinNotice": obj.get("secondTinNotice"), "addressVerification": obj.get("addressVerification"), "stateAndLocalWithholding": StateAndLocalWithholdingRequest.from_dict(obj["stateAndLocalWithholding"]) if obj.get("stateAndLocalWithholding") is not None else None }) diff --git a/Avalara/SDK/models/A1099/V2/get1099_form200_response.py b/Avalara/SDK/models/A1099/V2/get1099_form200_response.py index 00b57cf..aa0cec4 100644 --- a/Avalara/SDK/models/A1099/V2/get1099_form200_response.py +++ b/Avalara/SDK/models/A1099/V2/get1099_form200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -36,6 +36,7 @@ from Avalara.SDK.models.A1099.V2.form1042_s_list_item_response import Form1042SListItemResponse from Avalara.SDK.models.A1099.V2.form1095_b_list_item_response import Form1095BListItemResponse from Avalara.SDK.models.A1099.V2.form1099_base_response import Form1099BaseResponse +from Avalara.SDK.models.A1099.V2.form1099_div_list_item_response import Form1099DivListItemResponse from Avalara.SDK.models.A1099.V2.form1099_k_list_item_response import Form1099KListItemResponse from Avalara.SDK.models.A1099.V2.form1099_misc_list_item_response import Form1099MiscListItemResponse from Avalara.SDK.models.A1099.V2.form1099_nec_list_item_response import Form1099NecListItemResponse @@ -44,7 +45,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -GET1099FORM200RESPONSE_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] +GET1099FORM200RESPONSE_ONE_OF_SCHEMAS = ["Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse"] class Get1099Form200Response(BaseModel): """ @@ -56,16 +57,18 @@ class Get1099Form200Response(BaseModel): oneof_schema_2_validator: Optional[Form1042SListItemResponse] = None # data type: Form1095BListItemResponse oneof_schema_3_validator: Optional[Form1095BListItemResponse] = None + # data type: Form1099DivListItemResponse + oneof_schema_4_validator: Optional[Form1099DivListItemResponse] = None # data type: Form1099KListItemResponse - oneof_schema_4_validator: Optional[Form1099KListItemResponse] = None + oneof_schema_5_validator: Optional[Form1099KListItemResponse] = None # data type: Form1099MiscListItemResponse - oneof_schema_5_validator: Optional[Form1099MiscListItemResponse] = None + oneof_schema_6_validator: Optional[Form1099MiscListItemResponse] = None # data type: Form1099NecListItemResponse - oneof_schema_6_validator: Optional[Form1099NecListItemResponse] = None + oneof_schema_7_validator: Optional[Form1099NecListItemResponse] = None # data type: Form1099RListItemResponse - oneof_schema_7_validator: Optional[Form1099RListItemResponse] = None - actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None - one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } + oneof_schema_8_validator: Optional[Form1099RListItemResponse] = None + actual_instance: Optional[Union[Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]] = None + one_of_schemas: Set[str] = { "Form1042SListItemResponse", "Form1095BListItemResponse", "Form1099BaseResponse", "Form1099DivListItemResponse", "Form1099KListItemResponse", "Form1099MiscListItemResponse", "Form1099NecListItemResponse", "Form1099RListItemResponse" } model_config = ConfigDict( validate_assignment=True, @@ -103,6 +106,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1095BListItemResponse`") else: match += 1 + # validate data type: Form1099DivListItemResponse + if not isinstance(v, Form1099DivListItemResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099DivListItemResponse`") + else: + match += 1 # validate data type: Form1099KListItemResponse if not isinstance(v, Form1099KListItemResponse): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KListItemResponse`") @@ -125,10 +133,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return v @@ -161,6 +169,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099DivListItemResponse + try: + instance.actual_instance = Form1099DivListItemResponse.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099KListItemResponse try: instance.actual_instance = Form1099KListItemResponse.from_json(json_str) @@ -188,10 +202,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into Get1099Form200Response with oneOf schemas: Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -205,7 +219,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SListItemResponse, Form1095BListItemResponse, Form1099BaseResponse, Form1099DivListItemResponse, Form1099KListItemResponse, Form1099MiscListItemResponse, Form1099NecListItemResponse, Form1099RListItemResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/http_validation_problem_details.py b/Avalara/SDK/models/A1099/V2/http_validation_problem_details.py index 8a48204..048996d 100644 --- a/Avalara/SDK/models/A1099/V2/http_validation_problem_details.py +++ b/Avalara/SDK/models/A1099/V2/http_validation_problem_details.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/i_create_form1099_request.py b/Avalara/SDK/models/A1099/V2/i_create_form1099_request.py index 29ce9c8..4c24f89 100644 --- a/Avalara/SDK/models/A1099/V2/i_create_form1099_request.py +++ b/Avalara/SDK/models/A1099/V2/i_create_form1099_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -34,13 +34,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional from Avalara.SDK.models.A1099.V2.form1099_div_request import Form1099DivRequest +from Avalara.SDK.models.A1099.V2.form1099_k_request import Form1099KRequest from Avalara.SDK.models.A1099.V2.form1099_misc_request import Form1099MiscRequest from Avalara.SDK.models.A1099.V2.form1099_nec_request import Form1099NecRequest from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -ICREATEFORM1099REQUEST_ONE_OF_SCHEMAS = ["Form1099DivRequest", "Form1099MiscRequest", "Form1099NecRequest"] +ICREATEFORM1099REQUEST_ONE_OF_SCHEMAS = ["Form1099DivRequest", "Form1099KRequest", "Form1099MiscRequest", "Form1099NecRequest"] class ICreateForm1099Request(BaseModel): """ @@ -50,10 +51,12 @@ class ICreateForm1099Request(BaseModel): oneof_schema_1_validator: Optional[Form1099DivRequest] = None # data type: Form1099MiscRequest oneof_schema_2_validator: Optional[Form1099MiscRequest] = None + # data type: Form1099KRequest + oneof_schema_3_validator: Optional[Form1099KRequest] = None # data type: Form1099NecRequest - oneof_schema_3_validator: Optional[Form1099NecRequest] = None - actual_instance: Optional[Union[Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest]] = None - one_of_schemas: Set[str] = { "Form1099DivRequest", "Form1099MiscRequest", "Form1099NecRequest" } + oneof_schema_4_validator: Optional[Form1099NecRequest] = None + actual_instance: Optional[Union[Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest]] = None + one_of_schemas: Set[str] = { "Form1099DivRequest", "Form1099KRequest", "Form1099MiscRequest", "Form1099NecRequest" } model_config = ConfigDict( validate_assignment=True, @@ -86,6 +89,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099MiscRequest`") else: match += 1 + # validate data type: Form1099KRequest + if not isinstance(v, Form1099KRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KRequest`") + else: + match += 1 # validate data type: Form1099NecRequest if not isinstance(v, Form1099NecRequest): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099NecRequest`") @@ -93,10 +101,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) else: return v @@ -123,6 +131,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099KRequest + try: + instance.actual_instance = Form1099KRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099NecRequest try: instance.actual_instance = Form1099NecRequest.from_json(json_str) @@ -132,10 +146,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into ICreateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) else: return instance @@ -149,7 +163,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/i_update_form1099_request.py b/Avalara/SDK/models/A1099/V2/i_update_form1099_request.py index 9d13173..3c3991d 100644 --- a/Avalara/SDK/models/A1099/V2/i_update_form1099_request.py +++ b/Avalara/SDK/models/A1099/V2/i_update_form1099_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -34,13 +34,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional from Avalara.SDK.models.A1099.V2.form1099_div_request import Form1099DivRequest +from Avalara.SDK.models.A1099.V2.form1099_k_request import Form1099KRequest from Avalara.SDK.models.A1099.V2.form1099_misc_request import Form1099MiscRequest from Avalara.SDK.models.A1099.V2.form1099_nec_request import Form1099NecRequest from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -IUPDATEFORM1099REQUEST_ONE_OF_SCHEMAS = ["Form1099DivRequest", "Form1099MiscRequest", "Form1099NecRequest"] +IUPDATEFORM1099REQUEST_ONE_OF_SCHEMAS = ["Form1099DivRequest", "Form1099KRequest", "Form1099MiscRequest", "Form1099NecRequest"] class IUpdateForm1099Request(BaseModel): """ @@ -50,10 +51,12 @@ class IUpdateForm1099Request(BaseModel): oneof_schema_1_validator: Optional[Form1099DivRequest] = None # data type: Form1099MiscRequest oneof_schema_2_validator: Optional[Form1099MiscRequest] = None + # data type: Form1099KRequest + oneof_schema_3_validator: Optional[Form1099KRequest] = None # data type: Form1099NecRequest - oneof_schema_3_validator: Optional[Form1099NecRequest] = None - actual_instance: Optional[Union[Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest]] = None - one_of_schemas: Set[str] = { "Form1099DivRequest", "Form1099MiscRequest", "Form1099NecRequest" } + oneof_schema_4_validator: Optional[Form1099NecRequest] = None + actual_instance: Optional[Union[Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest]] = None + one_of_schemas: Set[str] = { "Form1099DivRequest", "Form1099KRequest", "Form1099MiscRequest", "Form1099NecRequest" } model_config = ConfigDict( validate_assignment=True, @@ -86,6 +89,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099MiscRequest`") else: match += 1 + # validate data type: Form1099KRequest + if not isinstance(v, Form1099KRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KRequest`") + else: + match += 1 # validate data type: Form1099NecRequest if not isinstance(v, Form1099NecRequest): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099NecRequest`") @@ -93,10 +101,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) else: return v @@ -123,6 +131,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099KRequest + try: + instance.actual_instance = Form1099KRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099NecRequest try: instance.actual_instance = Form1099NecRequest.from_json(json_str) @@ -132,10 +146,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into IUpdateForm1099Request with oneOf schemas: Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest. Details: " + ", ".join(error_messages)) else: return instance @@ -149,7 +163,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1099DivRequest, Form1099MiscRequest, Form1099NecRequest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1099DivRequest, Form1099KRequest, Form1099MiscRequest, Form1099NecRequest]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through.py b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through.py index db93fc5..ab9a24a 100644 --- a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through.py +++ b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_request.py b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_request.py index e191598..4f8a5b6 100644 --- a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_request.py +++ b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_response.py b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_response.py index 88264c1..d4421f4 100644 --- a/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_response.py +++ b/Avalara/SDK/models/A1099/V2/intermediary_or_flow_through_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/irs_response.py b/Avalara/SDK/models/A1099/V2/irs_response.py new file mode 100644 index 0000000..06a20e0 --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/irs_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class IrsResponse(BaseModel): + """ + IrsResponse + """ # noqa: E501 + code: Optional[StrictStr] = Field(default=None, description="The IRS response code.") + description: Optional[StrictStr] = Field(default=None, description="The description for the IRS response.") + __properties: ClassVar[List[str]] = ["code", "description"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IrsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IrsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "description": obj.get("description") + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/issuer_command.py b/Avalara/SDK/models/A1099/V2/issuer_command.py index 74f53bc..b060407 100644 --- a/Avalara/SDK/models/A1099/V2/issuer_command.py +++ b/Avalara/SDK/models/A1099/V2/issuer_command.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/issuer_response.py b/Avalara/SDK/models/A1099/V2/issuer_response.py index 1593a40..764b868 100644 --- a/Avalara/SDK/models/A1099/V2/issuer_response.py +++ b/Avalara/SDK/models/A1099/V2/issuer_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/iw9_form_data_models_one_of.py b/Avalara/SDK/models/A1099/V2/iw9_form_data_models_one_of.py index a5cc37f..d2d5390 100644 --- a/Avalara/SDK/models/A1099/V2/iw9_form_data_models_one_of.py +++ b/Avalara/SDK/models/A1099/V2/iw9_form_data_models_one_of.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/job_result.py b/Avalara/SDK/models/A1099/V2/job_result.py index f49b16b..9a9f2a7 100644 --- a/Avalara/SDK/models/A1099/V2/job_result.py +++ b/Avalara/SDK/models/A1099/V2/job_result.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/link.py b/Avalara/SDK/models/A1099/V2/link.py index 9b5f319..918defb 100644 --- a/Avalara/SDK/models/A1099/V2/link.py +++ b/Avalara/SDK/models/A1099/V2/link.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/offer_and_coverage_request.py b/Avalara/SDK/models/A1099/V2/offer_and_coverage_request.py new file mode 100644 index 0000000..24b50be --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/offer_and_coverage_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class OfferAndCoverageRequest(BaseModel): + """ + OfferAndCoverageRequest + """ # noqa: E501 + month: Optional[StrictStr] = Field(default=None, description="Month of coverage") + offer_code: Optional[StrictStr] = Field(default=None, description="Offer of coverage code", alias="offerCode") + share: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Employee required contribution share") + safe_harbor_code: Optional[StrictStr] = Field(default=None, description="Safe harbor code", alias="safeHarborCode") + zip_code: Optional[StrictStr] = Field(default=None, description="ZIP code for coverage area", alias="zipCode") + __properties: ClassVar[List[str]] = ["month", "offerCode", "share", "safeHarborCode", "zipCode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OfferAndCoverageRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if month (nullable) is None + # and model_fields_set contains the field + if self.month is None and "month" in self.model_fields_set: + _dict['month'] = None + + # set to None if offer_code (nullable) is None + # and model_fields_set contains the field + if self.offer_code is None and "offer_code" in self.model_fields_set: + _dict['offerCode'] = None + + # set to None if share (nullable) is None + # and model_fields_set contains the field + if self.share is None and "share" in self.model_fields_set: + _dict['share'] = None + + # set to None if safe_harbor_code (nullable) is None + # and model_fields_set contains the field + if self.safe_harbor_code is None and "safe_harbor_code" in self.model_fields_set: + _dict['safeHarborCode'] = None + + # set to None if zip_code (nullable) is None + # and model_fields_set contains the field + if self.zip_code is None and "zip_code" in self.model_fields_set: + _dict['zipCode'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OfferAndCoverageRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "month": obj.get("month"), + "offerCode": obj.get("offerCode"), + "share": obj.get("share"), + "safeHarborCode": obj.get("safeHarborCode"), + "zipCode": obj.get("zipCode") + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/paginated_query_result_model.py b/Avalara/SDK/models/A1099/V2/paginated_query_result_model.py index 3cd4679..40461f9 100644 --- a/Avalara/SDK/models/A1099/V2/paginated_query_result_model.py +++ b/Avalara/SDK/models/A1099/V2/paginated_query_result_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/paginated_query_result_model_company_response.py b/Avalara/SDK/models/A1099/V2/paginated_query_result_model_company_response.py index de4dd23..62c5ca4 100644 --- a/Avalara/SDK/models/A1099/V2/paginated_query_result_model_company_response.py +++ b/Avalara/SDK/models/A1099/V2/paginated_query_result_model_company_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/paginated_query_result_model_issuer_response.py b/Avalara/SDK/models/A1099/V2/paginated_query_result_model_issuer_response.py index 2c4b69e..b50bae6 100644 --- a/Avalara/SDK/models/A1099/V2/paginated_query_result_model_issuer_response.py +++ b/Avalara/SDK/models/A1099/V2/paginated_query_result_model_issuer_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/paginated_w9_forms_model.py b/Avalara/SDK/models/A1099/V2/paginated_w9_forms_model.py index ae782c8..f34f307 100644 --- a/Avalara/SDK/models/A1099/V2/paginated_w9_forms_model.py +++ b/Avalara/SDK/models/A1099/V2/paginated_w9_forms_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/primary_withholding_agent.py b/Avalara/SDK/models/A1099/V2/primary_withholding_agent.py index b2a98a7..b959a09 100644 --- a/Avalara/SDK/models/A1099/V2/primary_withholding_agent.py +++ b/Avalara/SDK/models/A1099/V2/primary_withholding_agent.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/primary_withholding_agent_request.py b/Avalara/SDK/models/A1099/V2/primary_withholding_agent_request.py index a4ffefc..26c2776 100644 --- a/Avalara/SDK/models/A1099/V2/primary_withholding_agent_request.py +++ b/Avalara/SDK/models/A1099/V2/primary_withholding_agent_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/primary_withholding_agent_response.py b/Avalara/SDK/models/A1099/V2/primary_withholding_agent_response.py index a713eb3..536767e 100644 --- a/Avalara/SDK/models/A1099/V2/primary_withholding_agent_response.py +++ b/Avalara/SDK/models/A1099/V2/primary_withholding_agent_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/problem_details.py b/Avalara/SDK/models/A1099/V2/problem_details.py index f6cd0a8..17a4623 100644 --- a/Avalara/SDK/models/A1099/V2/problem_details.py +++ b/Avalara/SDK/models/A1099/V2/problem_details.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/state_and_local_withholding_request.py b/Avalara/SDK/models/A1099/V2/state_and_local_withholding_request.py index b95430c..f5976d7 100644 --- a/Avalara/SDK/models/A1099/V2/state_and_local_withholding_request.py +++ b/Avalara/SDK/models/A1099/V2/state_and_local_withholding_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/state_and_local_withholding_response.py b/Avalara/SDK/models/A1099/V2/state_and_local_withholding_response.py index ba5f814..ceccc3e 100644 --- a/Avalara/SDK/models/A1099/V2/state_and_local_withholding_response.py +++ b/Avalara/SDK/models/A1099/V2/state_and_local_withholding_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/state_efile_status_detail_response.py b/Avalara/SDK/models/A1099/V2/state_efile_status_detail_response.py index 264dfe2..6680a90 100644 --- a/Avalara/SDK/models/A1099/V2/state_efile_status_detail_response.py +++ b/Avalara/SDK/models/A1099/V2/state_efile_status_detail_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/status_detail.py b/Avalara/SDK/models/A1099/V2/status_detail.py index af93c13..9793d07 100644 --- a/Avalara/SDK/models/A1099/V2/status_detail.py +++ b/Avalara/SDK/models/A1099/V2/status_detail.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/substantial_us_owner_request.py b/Avalara/SDK/models/A1099/V2/substantial_us_owner_request.py index 243feb8..d0ffba4 100644 --- a/Avalara/SDK/models/A1099/V2/substantial_us_owner_request.py +++ b/Avalara/SDK/models/A1099/V2/substantial_us_owner_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/substantial_us_owner_response.py b/Avalara/SDK/models/A1099/V2/substantial_us_owner_response.py index 1421c25..983ce5a 100644 --- a/Avalara/SDK/models/A1099/V2/substantial_us_owner_response.py +++ b/Avalara/SDK/models/A1099/V2/substantial_us_owner_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/tin_match_status_response.py b/Avalara/SDK/models/A1099/V2/tin_match_status_response.py new file mode 100644 index 0000000..dc7a376 --- /dev/null +++ b/Avalara/SDK/models/A1099/V2/tin_match_status_response.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" +AvaTax Software Development Kit for Python. + + Copyright 2022 Avalara, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + 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) + +@author Sachin Baijal +@author Jonathan Wenger +@copyright 2022 Avalara, Inc. +@license https://www.apache.org/licenses/LICENSE-2.0 +@version 25.8.1 +@link https://github.com/avadev/AvaTax-REST-V3-Python-SDK +""" + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from Avalara.SDK.models.A1099.V2.irs_response import IrsResponse +from typing import Optional, Set +from typing_extensions import Self + +class TinMatchStatusResponse(BaseModel): + """ + TinMatchStatusResponse + """ # noqa: E501 + time: Optional[datetime] = Field(default=None, description="The current timestamp for the TIN match request.") + status: Optional[StrictStr] = Field(default=None, description="The current status for the TIN match request.") + irs_response: Optional[IrsResponse] = Field(default=None, description="The IRS response.", alias="irsResponse") + __properties: ClassVar[List[str]] = ["time", "status", "irsResponse"] + + @field_validator('status') + def status_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['None', 'Pending', 'Matched', 'Failed']): + raise ValueError("must be one of enum values ('None', 'Pending', 'Matched', 'Failed')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TinMatchStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of irs_response + if self.irs_response: + _dict['irsResponse'] = self.irs_response.to_dict() + # set to None if time (nullable) is None + # and model_fields_set contains the field + if self.time is None and "time" in self.model_fields_set: + _dict['time'] = None + + # set to None if irs_response (nullable) is None + # and model_fields_set contains the field + if self.irs_response is None and "irs_response" in self.model_fields_set: + _dict['irsResponse'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TinMatchStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "time": obj.get("time"), + "status": obj.get("status"), + "irsResponse": IrsResponse.from_dict(obj["irsResponse"]) if obj.get("irsResponse") is not None else None + }) + return _obj + + diff --git a/Avalara/SDK/models/A1099/V2/update1099_form200_response.py b/Avalara/SDK/models/A1099/V2/update1099_form200_response.py index 38d3bd4..db0e9a0 100644 --- a/Avalara/SDK/models/A1099/V2/update1099_form200_response.py +++ b/Avalara/SDK/models/A1099/V2/update1099_form200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -35,6 +35,7 @@ from typing import Any, List, Optional from Avalara.SDK.models.A1099.V2.form1042_s_response import Form1042SResponse from Avalara.SDK.models.A1099.V2.form1099_div_response import Form1099DivResponse +from Avalara.SDK.models.A1099.V2.form1099_k_response import Form1099KResponse from Avalara.SDK.models.A1099.V2.form1099_misc_response import Form1099MiscResponse from Avalara.SDK.models.A1099.V2.form1099_nec_response import Form1099NecResponse from Avalara.SDK.models.A1099.V2.form_response_base import FormResponseBase @@ -42,7 +43,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -UPDATE1099FORM200RESPONSE_ONE_OF_SCHEMAS = ["Form1042SResponse", "Form1099DivResponse", "Form1099MiscResponse", "Form1099NecResponse", "FormResponseBase"] +UPDATE1099FORM200RESPONSE_ONE_OF_SCHEMAS = ["Form1042SResponse", "Form1099DivResponse", "Form1099KResponse", "Form1099MiscResponse", "Form1099NecResponse", "FormResponseBase"] class Update1099Form200Response(BaseModel): """ @@ -54,12 +55,14 @@ class Update1099Form200Response(BaseModel): oneof_schema_2_validator: Optional[Form1042SResponse] = None # data type: Form1099DivResponse oneof_schema_3_validator: Optional[Form1099DivResponse] = None + # data type: Form1099KResponse + oneof_schema_4_validator: Optional[Form1099KResponse] = None # data type: Form1099MiscResponse - oneof_schema_4_validator: Optional[Form1099MiscResponse] = None + oneof_schema_5_validator: Optional[Form1099MiscResponse] = None # data type: Form1099NecResponse - oneof_schema_5_validator: Optional[Form1099NecResponse] = None - actual_instance: Optional[Union[Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase]] = None - one_of_schemas: Set[str] = { "Form1042SResponse", "Form1099DivResponse", "Form1099MiscResponse", "Form1099NecResponse", "FormResponseBase" } + oneof_schema_6_validator: Optional[Form1099NecResponse] = None + actual_instance: Optional[Union[Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase]] = None + one_of_schemas: Set[str] = { "Form1042SResponse", "Form1099DivResponse", "Form1099KResponse", "Form1099MiscResponse", "Form1099NecResponse", "FormResponseBase" } model_config = ConfigDict( validate_assignment=True, @@ -97,6 +100,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099DivResponse`") else: match += 1 + # validate data type: Form1099KResponse + if not isinstance(v, Form1099KResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099KResponse`") + else: + match += 1 # validate data type: Form1099MiscResponse if not isinstance(v, Form1099MiscResponse): error_messages.append(f"Error! Input type `{type(v)}` is not `Form1099MiscResponse`") @@ -109,10 +117,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) else: return v @@ -145,6 +153,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Form1099KResponse + try: + instance.actual_instance = Form1099KResponse.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Form1099MiscResponse try: instance.actual_instance = Form1099MiscResponse.from_json(json_str) @@ -160,10 +174,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into Update1099Form200Response with oneOf schemas: Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase. Details: " + ", ".join(error_messages)) else: return instance @@ -177,7 +191,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SResponse, Form1099DivResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Form1042SResponse, Form1099DivResponse, Form1099KResponse, Form1099MiscResponse, Form1099NecResponse, FormResponseBase]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/Avalara/SDK/models/A1099/V2/validation_error_response.py b/Avalara/SDK/models/A1099/V2/validation_error_response.py index 1f5e6cd..b7c9cf5 100644 --- a/Avalara/SDK/models/A1099/V2/validation_error_response.py +++ b/Avalara/SDK/models/A1099/V2/validation_error_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w4_form_data_model.py b/Avalara/SDK/models/A1099/V2/w4_form_data_model.py index 602c6cd..aa675eb 100644 --- a/Avalara/SDK/models/A1099/V2/w4_form_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w4_form_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w4_form_request.py b/Avalara/SDK/models/A1099/V2/w4_form_request.py index e908400..eeafb15 100644 --- a/Avalara/SDK/models/A1099/V2/w4_form_request.py +++ b/Avalara/SDK/models/A1099/V2/w4_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w4_form_response.py b/Avalara/SDK/models/A1099/V2/w4_form_response.py index ccbb84f..cc96b31 100644 --- a/Avalara/SDK/models/A1099/V2/w4_form_response.py +++ b/Avalara/SDK/models/A1099/V2/w4_form_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_e_form_request.py b/Avalara/SDK/models/A1099/V2/w8_ben_e_form_request.py index 95d8558..f0a51ff 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_e_form_request.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_e_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_e_form_response.py b/Avalara/SDK/models/A1099/V2/w8_ben_e_form_response.py index ab90665..6314347 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_e_form_response.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_e_form_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.py b/Avalara/SDK/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.py index 0b75fe9..031e2ed 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_e_substantial_us_owner_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_form_data_model.py b/Avalara/SDK/models/A1099/V2/w8_ben_form_data_model.py index b189be6..3b93345 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_form_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_form_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_form_request.py b/Avalara/SDK/models/A1099/V2/w8_ben_form_request.py index d460f85..823d0d0 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_form_request.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_ben_form_response.py b/Avalara/SDK/models/A1099/V2/w8_ben_form_response.py index 342c81f..afc3780 100644 --- a/Avalara/SDK/models/A1099/V2/w8_ben_form_response.py +++ b/Avalara/SDK/models/A1099/V2/w8_ben_form_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_bene_form_data_model.py b/Avalara/SDK/models/A1099/V2/w8_bene_form_data_model.py index 476ea27..1b5d7ca 100644 --- a/Avalara/SDK/models/A1099/V2/w8_bene_form_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w8_bene_form_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_imy_form_data_model.py b/Avalara/SDK/models/A1099/V2/w8_imy_form_data_model.py index 54d2fa1..8bc5d33 100644 --- a/Avalara/SDK/models/A1099/V2/w8_imy_form_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w8_imy_form_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_imy_form_request.py b/Avalara/SDK/models/A1099/V2/w8_imy_form_request.py index 0b057f4..29529e3 100644 --- a/Avalara/SDK/models/A1099/V2/w8_imy_form_request.py +++ b/Avalara/SDK/models/A1099/V2/w8_imy_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w8_imy_form_response.py b/Avalara/SDK/models/A1099/V2/w8_imy_form_response.py index c2a083b..bc925e3 100644 --- a/Avalara/SDK/models/A1099/V2/w8_imy_form_response.py +++ b/Avalara/SDK/models/A1099/V2/w8_imy_form_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w9_form_base_request.py b/Avalara/SDK/models/A1099/V2/w9_form_base_request.py index 8c8d6b2..fff39ee 100644 --- a/Avalara/SDK/models/A1099/V2/w9_form_base_request.py +++ b/Avalara/SDK/models/A1099/V2/w9_form_base_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w9_form_base_response.py b/Avalara/SDK/models/A1099/V2/w9_form_base_response.py index b07de9c..601eceb 100644 --- a/Avalara/SDK/models/A1099/V2/w9_form_base_response.py +++ b/Avalara/SDK/models/A1099/V2/w9_form_base_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w9_form_data_model.py b/Avalara/SDK/models/A1099/V2/w9_form_data_model.py index 3a059cd..06338e6 100644 --- a/Avalara/SDK/models/A1099/V2/w9_form_data_model.py +++ b/Avalara/SDK/models/A1099/V2/w9_form_data_model.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w9_form_request.py b/Avalara/SDK/models/A1099/V2/w9_form_request.py index 71bb7fb..8b0f50e 100644 --- a/Avalara/SDK/models/A1099/V2/w9_form_request.py +++ b/Avalara/SDK/models/A1099/V2/w9_form_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/A1099/V2/w9_form_response.py b/Avalara/SDK/models/A1099/V2/w9_form_response.py index d0702fd..881cff9 100644 --- a/Avalara/SDK/models/A1099/V2/w9_form_response.py +++ b/Avalara/SDK/models/A1099/V2/w9_form_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -36,6 +36,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from Avalara.SDK.models.A1099.V2.tin_match_status_response import TinMatchStatusResponse from typing import Optional, Set from typing_extensions import Self @@ -61,6 +62,7 @@ class W9FormResponse(BaseModel): tin: Optional[StrictStr] = Field(default=None, description="The taxpayer identification number (TIN).") backup_withholding: Optional[StrictBool] = Field(default=None, description="Indicates whether backup withholding applies.", alias="backupWithholding") is1099able: Optional[StrictBool] = Field(default=None, description="Indicates whether the individual or entity should be issued a 1099 form.") + tin_match_status: Optional[TinMatchStatusResponse] = Field(default=None, description="The TIN Match status from IRS.", alias="tinMatchStatus") id: Optional[StrictStr] = Field(default=None, description="The unique identifier for the form.") type: Optional[StrictStr] = Field(default=None, description="The form type.") entry_status: Optional[StrictStr] = Field(default=None, description="The form status.", alias="entryStatus") diff --git a/Avalara/SDK/models/EInvoicing/V1/address.py b/Avalara/SDK/models/EInvoicing/V1/address.py index 2b6a518..5c9cd92 100644 --- a/Avalara/SDK/models/EInvoicing/V1/address.py +++ b/Avalara/SDK/models/EInvoicing/V1/address.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/bad_download_request.py b/Avalara/SDK/models/EInvoicing/V1/bad_download_request.py index b5df97e..4e670e1 100644 --- a/Avalara/SDK/models/EInvoicing/V1/bad_download_request.py +++ b/Avalara/SDK/models/EInvoicing/V1/bad_download_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/bad_request.py b/Avalara/SDK/models/EInvoicing/V1/bad_request.py index c0d23d0..8a987a7 100644 --- a/Avalara/SDK/models/EInvoicing/V1/bad_request.py +++ b/Avalara/SDK/models/EInvoicing/V1/bad_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/batch_error_detail.py b/Avalara/SDK/models/EInvoicing/V1/batch_error_detail.py index e0936d2..723faa0 100644 --- a/Avalara/SDK/models/EInvoicing/V1/batch_error_detail.py +++ b/Avalara/SDK/models/EInvoicing/V1/batch_error_detail.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/batch_search.py b/Avalara/SDK/models/EInvoicing/V1/batch_search.py index 9b81bf7..fbf3264 100644 --- a/Avalara/SDK/models/EInvoicing/V1/batch_search.py +++ b/Avalara/SDK/models/EInvoicing/V1/batch_search.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/batch_search_list_response.py b/Avalara/SDK/models/EInvoicing/V1/batch_search_list_response.py index adcc009..1167bcd 100644 --- a/Avalara/SDK/models/EInvoicing/V1/batch_search_list_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/batch_search_list_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/batch_search_participants202_response.py b/Avalara/SDK/models/EInvoicing/V1/batch_search_participants202_response.py index 1ea774c..b3b536d 100644 --- a/Avalara/SDK/models/EInvoicing/V1/batch_search_participants202_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/batch_search_participants202_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/conditional_for_field.py b/Avalara/SDK/models/EInvoicing/V1/conditional_for_field.py index 503fa86..2ac655b 100644 --- a/Avalara/SDK/models/EInvoicing/V1/conditional_for_field.py +++ b/Avalara/SDK/models/EInvoicing/V1/conditional_for_field.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/consents.py b/Avalara/SDK/models/EInvoicing/V1/consents.py index b5e8168..68e6436 100644 --- a/Avalara/SDK/models/EInvoicing/V1/consents.py +++ b/Avalara/SDK/models/EInvoicing/V1/consents.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/create_trading_partner201_response.py b/Avalara/SDK/models/EInvoicing/V1/create_trading_partner201_response.py index a3eb634..2d8799f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/create_trading_partner201_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/create_trading_partner201_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response.py b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response.py index e3dab8f..761ae7b 100644 --- a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.py b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.py index 2436e7c..17ffc5d 100644 --- a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.py +++ b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch200_response_value_inner.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch_request.py b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch_request.py index 8dcc986..c6be117 100644 --- a/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch_request.py +++ b/Avalara/SDK/models/EInvoicing/V1/create_trading_partners_batch_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/data_input_field.py b/Avalara/SDK/models/EInvoicing/V1/data_input_field.py index b12c302..e368448 100644 --- a/Avalara/SDK/models/EInvoicing/V1/data_input_field.py +++ b/Avalara/SDK/models/EInvoicing/V1/data_input_field.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/data_input_field_not_used_for.py b/Avalara/SDK/models/EInvoicing/V1/data_input_field_not_used_for.py index 9ba52f4..7be957c 100644 --- a/Avalara/SDK/models/EInvoicing/V1/data_input_field_not_used_for.py +++ b/Avalara/SDK/models/EInvoicing/V1/data_input_field_not_used_for.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/data_input_field_optional_for.py b/Avalara/SDK/models/EInvoicing/V1/data_input_field_optional_for.py index dac5bfb..d87759a 100644 --- a/Avalara/SDK/models/EInvoicing/V1/data_input_field_optional_for.py +++ b/Avalara/SDK/models/EInvoicing/V1/data_input_field_optional_for.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/data_input_field_required_for.py b/Avalara/SDK/models/EInvoicing/V1/data_input_field_required_for.py index 1d81e2e..8c1ba9f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/data_input_field_required_for.py +++ b/Avalara/SDK/models/EInvoicing/V1/data_input_field_required_for.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/data_input_fields_response.py b/Avalara/SDK/models/EInvoicing/V1/data_input_fields_response.py index 0ce51bb..a448c2e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/data_input_fields_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/data_input_fields_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_fetch.py b/Avalara/SDK/models/EInvoicing/V1/document_fetch.py index 246fe9d..acb4d94 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_fetch.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_fetch.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_list_response.py b/Avalara/SDK/models/EInvoicing/V1/document_list_response.py index a18384a..ce9ddb3 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_list_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_list_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_status_response.py b/Avalara/SDK/models/EInvoicing/V1/document_status_response.py index 74a4cd2..cbd5106 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_status_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_status_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_submission_error.py b/Avalara/SDK/models/EInvoicing/V1/document_submission_error.py index 416127b..98adbf0 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_submission_error.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_submission_error.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_submit_response.py b/Avalara/SDK/models/EInvoicing/V1/document_submit_response.py index 063e55a..8bbe0f1 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_submit_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_submit_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/document_summary.py b/Avalara/SDK/models/EInvoicing/V1/document_summary.py index 4210514..db9e4ea 100644 --- a/Avalara/SDK/models/EInvoicing/V1/document_summary.py +++ b/Avalara/SDK/models/EInvoicing/V1/document_summary.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/error_response.py b/Avalara/SDK/models/EInvoicing/V1/error_response.py index 8193d8d..8f78203 100644 --- a/Avalara/SDK/models/EInvoicing/V1/error_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/error_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/event_id.py b/Avalara/SDK/models/EInvoicing/V1/event_id.py index db2cd18..ba294b4 100644 --- a/Avalara/SDK/models/EInvoicing/V1/event_id.py +++ b/Avalara/SDK/models/EInvoicing/V1/event_id.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/event_message.py b/Avalara/SDK/models/EInvoicing/V1/event_message.py index 8650650..4982708 100644 --- a/Avalara/SDK/models/EInvoicing/V1/event_message.py +++ b/Avalara/SDK/models/EInvoicing/V1/event_message.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/event_payload.py b/Avalara/SDK/models/EInvoicing/V1/event_payload.py index 1f09383..f028154 100644 --- a/Avalara/SDK/models/EInvoicing/V1/event_payload.py +++ b/Avalara/SDK/models/EInvoicing/V1/event_payload.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/event_subscription.py b/Avalara/SDK/models/EInvoicing/V1/event_subscription.py index bfac531..540311f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/event_subscription.py +++ b/Avalara/SDK/models/EInvoicing/V1/event_subscription.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/extension.py b/Avalara/SDK/models/EInvoicing/V1/extension.py index bb8fcac..23931a8 100644 --- a/Avalara/SDK/models/EInvoicing/V1/extension.py +++ b/Avalara/SDK/models/EInvoicing/V1/extension.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request.py b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request.py index 5abfee2..16b013e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request.py +++ b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_data_inner.py b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_data_inner.py index 7f04c2d..2d0ad3f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_data_inner.py +++ b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_data_inner.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_metadata.py b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_metadata.py index ba0e623..df51df1 100644 --- a/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_metadata.py +++ b/Avalara/SDK/models/EInvoicing/V1/fetch_documents_request_metadata.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/forbidden_error.py b/Avalara/SDK/models/EInvoicing/V1/forbidden_error.py index a565949..58b6329 100644 --- a/Avalara/SDK/models/EInvoicing/V1/forbidden_error.py +++ b/Avalara/SDK/models/EInvoicing/V1/forbidden_error.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/hmac_signature.py b/Avalara/SDK/models/EInvoicing/V1/hmac_signature.py index 8dbda26..488d74a 100644 --- a/Avalara/SDK/models/EInvoicing/V1/hmac_signature.py +++ b/Avalara/SDK/models/EInvoicing/V1/hmac_signature.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/hmac_signature_value.py b/Avalara/SDK/models/EInvoicing/V1/hmac_signature_value.py index 0b54daa..61ebeca 100644 --- a/Avalara/SDK/models/EInvoicing/V1/hmac_signature_value.py +++ b/Avalara/SDK/models/EInvoicing/V1/hmac_signature_value.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/id.py b/Avalara/SDK/models/EInvoicing/V1/id.py index 0f64e73..5cf300f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/id.py +++ b/Avalara/SDK/models/EInvoicing/V1/id.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/identifier.py b/Avalara/SDK/models/EInvoicing/V1/identifier.py index 8c85705..f8b1ae9 100644 --- a/Avalara/SDK/models/EInvoicing/V1/identifier.py +++ b/Avalara/SDK/models/EInvoicing/V1/identifier.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/input_data_formats.py b/Avalara/SDK/models/EInvoicing/V1/input_data_formats.py index 5f5b401..230c306 100644 --- a/Avalara/SDK/models/EInvoicing/V1/input_data_formats.py +++ b/Avalara/SDK/models/EInvoicing/V1/input_data_formats.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/internal_server_error.py b/Avalara/SDK/models/EInvoicing/V1/internal_server_error.py index c33e264..45ce43f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/internal_server_error.py +++ b/Avalara/SDK/models/EInvoicing/V1/internal_server_error.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/mandate.py b/Avalara/SDK/models/EInvoicing/V1/mandate.py index 69c7ae8..ad508ae 100644 --- a/Avalara/SDK/models/EInvoicing/V1/mandate.py +++ b/Avalara/SDK/models/EInvoicing/V1/mandate.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field.py b/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field.py index f9b54d8..d126b7e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field.py +++ b/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field_namespace.py b/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field_namespace.py index 7f60c02..3f6ae4f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field_namespace.py +++ b/Avalara/SDK/models/EInvoicing/V1/mandate_data_input_field_namespace.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/mandates_response.py b/Avalara/SDK/models/EInvoicing/V1/mandates_response.py index b9520d9..b73718c 100644 --- a/Avalara/SDK/models/EInvoicing/V1/mandates_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/mandates_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/not_found_error.py b/Avalara/SDK/models/EInvoicing/V1/not_found_error.py index d425ae6..a3511db 100644 --- a/Avalara/SDK/models/EInvoicing/V1/not_found_error.py +++ b/Avalara/SDK/models/EInvoicing/V1/not_found_error.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/not_used_for_field.py b/Avalara/SDK/models/EInvoicing/V1/not_used_for_field.py index 5b93ff3..da4a41d 100644 --- a/Avalara/SDK/models/EInvoicing/V1/not_used_for_field.py +++ b/Avalara/SDK/models/EInvoicing/V1/not_used_for_field.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/output_data_formats.py b/Avalara/SDK/models/EInvoicing/V1/output_data_formats.py index a4373f3..ed1ffdd 100644 --- a/Avalara/SDK/models/EInvoicing/V1/output_data_formats.py +++ b/Avalara/SDK/models/EInvoicing/V1/output_data_formats.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/pagination.py b/Avalara/SDK/models/EInvoicing/V1/pagination.py index f94bafc..691d26d 100644 --- a/Avalara/SDK/models/EInvoicing/V1/pagination.py +++ b/Avalara/SDK/models/EInvoicing/V1/pagination.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/required_when_field.py b/Avalara/SDK/models/EInvoicing/V1/required_when_field.py index ae87bb7..29e265c 100644 --- a/Avalara/SDK/models/EInvoicing/V1/required_when_field.py +++ b/Avalara/SDK/models/EInvoicing/V1/required_when_field.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/search_participants200_response.py b/Avalara/SDK/models/EInvoicing/V1/search_participants200_response.py index b468ecb..48ec179 100644 --- a/Avalara/SDK/models/EInvoicing/V1/search_participants200_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/search_participants200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/signature.py b/Avalara/SDK/models/EInvoicing/V1/signature.py index 2a0cca6..2d44421 100644 --- a/Avalara/SDK/models/EInvoicing/V1/signature.py +++ b/Avalara/SDK/models/EInvoicing/V1/signature.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/signature_signature.py b/Avalara/SDK/models/EInvoicing/V1/signature_signature.py index ee05155..ffbc62e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/signature_signature.py +++ b/Avalara/SDK/models/EInvoicing/V1/signature_signature.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/signature_value.py b/Avalara/SDK/models/EInvoicing/V1/signature_value.py index 90e8a94..af6cac0 100644 --- a/Avalara/SDK/models/EInvoicing/V1/signature_value.py +++ b/Avalara/SDK/models/EInvoicing/V1/signature_value.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/signature_value_signature.py b/Avalara/SDK/models/EInvoicing/V1/signature_value_signature.py index 3df2e92..24bd6ab 100644 --- a/Avalara/SDK/models/EInvoicing/V1/signature_value_signature.py +++ b/Avalara/SDK/models/EInvoicing/V1/signature_value_signature.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/status_event.py b/Avalara/SDK/models/EInvoicing/V1/status_event.py index 87acbe6..25bcbbd 100644 --- a/Avalara/SDK/models/EInvoicing/V1/status_event.py +++ b/Avalara/SDK/models/EInvoicing/V1/status_event.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/submit_document_metadata.py b/Avalara/SDK/models/EInvoicing/V1/submit_document_metadata.py index 1712a43..69efe3e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/submit_document_metadata.py +++ b/Avalara/SDK/models/EInvoicing/V1/submit_document_metadata.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/submit_interop_document202_response.py b/Avalara/SDK/models/EInvoicing/V1/submit_interop_document202_response.py index dbebfad..f62e3ed 100644 --- a/Avalara/SDK/models/EInvoicing/V1/submit_interop_document202_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/submit_interop_document202_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/subscription_common.py b/Avalara/SDK/models/EInvoicing/V1/subscription_common.py index 1bb8d6a..b9a34b4 100644 --- a/Avalara/SDK/models/EInvoicing/V1/subscription_common.py +++ b/Avalara/SDK/models/EInvoicing/V1/subscription_common.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/subscription_detail.py b/Avalara/SDK/models/EInvoicing/V1/subscription_detail.py index bd035f6..f61bd0e 100644 --- a/Avalara/SDK/models/EInvoicing/V1/subscription_detail.py +++ b/Avalara/SDK/models/EInvoicing/V1/subscription_detail.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/subscription_list_response.py b/Avalara/SDK/models/EInvoicing/V1/subscription_list_response.py index 8c2f93f..161c772 100644 --- a/Avalara/SDK/models/EInvoicing/V1/subscription_list_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/subscription_list_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/subscription_registration.py b/Avalara/SDK/models/EInvoicing/V1/subscription_registration.py index 51e7463..d667e41 100644 --- a/Avalara/SDK/models/EInvoicing/V1/subscription_registration.py +++ b/Avalara/SDK/models/EInvoicing/V1/subscription_registration.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/success_response.py b/Avalara/SDK/models/EInvoicing/V1/success_response.py index 2c0e42e..2211422 100644 --- a/Avalara/SDK/models/EInvoicing/V1/success_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/success_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/supported_document_types.py b/Avalara/SDK/models/EInvoicing/V1/supported_document_types.py index 6d17c53..0e3cfcd 100644 --- a/Avalara/SDK/models/EInvoicing/V1/supported_document_types.py +++ b/Avalara/SDK/models/EInvoicing/V1/supported_document_types.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_request.py b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_request.py index e2ee4d7..91b2bfc 100644 --- a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_request.py +++ b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_request.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response.py b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response.py index 8bff471..471cf38 100644 --- a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response_value.py b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response_value.py index c2c40d2..b07575c 100644 --- a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response_value.py +++ b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_response_value.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.py b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.py index 7fc4bf5..43ee287 100644 --- a/Avalara/SDK/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/tax_identifier_schema_by_country200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/trading_partner.py b/Avalara/SDK/models/EInvoicing/V1/trading_partner.py index 49989f2..9e58576 100644 --- a/Avalara/SDK/models/EInvoicing/V1/trading_partner.py +++ b/Avalara/SDK/models/EInvoicing/V1/trading_partner.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/update_trading_partner200_response.py b/Avalara/SDK/models/EInvoicing/V1/update_trading_partner200_response.py index 1c79e82..bca5f97 100644 --- a/Avalara/SDK/models/EInvoicing/V1/update_trading_partner200_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/update_trading_partner200_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/validation_error.py b/Avalara/SDK/models/EInvoicing/V1/validation_error.py index 6c4dcdc..57d13da 100644 --- a/Avalara/SDK/models/EInvoicing/V1/validation_error.py +++ b/Avalara/SDK/models/EInvoicing/V1/validation_error.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/webhook_invocation.py b/Avalara/SDK/models/EInvoicing/V1/webhook_invocation.py index c7a80f7..0ebd13b 100644 --- a/Avalara/SDK/models/EInvoicing/V1/webhook_invocation.py +++ b/Avalara/SDK/models/EInvoicing/V1/webhook_invocation.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/webhooks_error_info.py b/Avalara/SDK/models/EInvoicing/V1/webhooks_error_info.py index d211d14..6cfc29f 100644 --- a/Avalara/SDK/models/EInvoicing/V1/webhooks_error_info.py +++ b/Avalara/SDK/models/EInvoicing/V1/webhooks_error_info.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/webhooks_error_response.py b/Avalara/SDK/models/EInvoicing/V1/webhooks_error_response.py index 2f1f5ae..1e18763 100644 --- a/Avalara/SDK/models/EInvoicing/V1/webhooks_error_response.py +++ b/Avalara/SDK/models/EInvoicing/V1/webhooks_error_response.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/Avalara/SDK/models/EInvoicing/V1/workflow_ids.py b/Avalara/SDK/models/EInvoicing/V1/workflow_ids.py index b6676c7..704628a 100644 --- a/Avalara/SDK/models/EInvoicing/V1/workflow_ids.py +++ b/Avalara/SDK/models/EInvoicing/V1/workflow_ids.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ diff --git a/README.md b/README.md index 81620e6..81b11b2 100644 --- a/README.md +++ b/README.md @@ -315,15 +315,19 @@ Class | Method | HTTP request | Description - [Avalara.SDK.models.A1099.V2.Form1095BListItem](docs/A1099/V2/Form1095BListItem.md) - [Avalara.SDK.models.A1099.V2.Form1095BListItemResponse](docs/A1099/V2/Form1095BListItemResponse.md) - [Avalara.SDK.models.A1099.V2.Form1095BRequest](docs/A1099/V2/Form1095BRequest.md) + - [Avalara.SDK.models.A1099.V2.Form1095CList](docs/A1099/V2/Form1095CList.md) + - [Avalara.SDK.models.A1099.V2.Form1095CListItem](docs/A1099/V2/Form1095CListItem.md) - [Avalara.SDK.models.A1099.V2.Form1099BaseResponse](docs/A1099/V2/Form1099BaseResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099DivList](docs/A1099/V2/Form1099DivList.md) - [Avalara.SDK.models.A1099.V2.Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) + - [Avalara.SDK.models.A1099.V2.Form1099DivListItemResponse](docs/A1099/V2/Form1099DivListItemResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) - [Avalara.SDK.models.A1099.V2.Form1099DivResponse](docs/A1099/V2/Form1099DivResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099KList](docs/A1099/V2/Form1099KList.md) - [Avalara.SDK.models.A1099.V2.Form1099KListItem](docs/A1099/V2/Form1099KListItem.md) - [Avalara.SDK.models.A1099.V2.Form1099KListItemResponse](docs/A1099/V2/Form1099KListItemResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099KRequest](docs/A1099/V2/Form1099KRequest.md) + - [Avalara.SDK.models.A1099.V2.Form1099KResponse](docs/A1099/V2/Form1099KResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099ListResponse](docs/A1099/V2/Form1099ListResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099ListResponseValueInner](docs/A1099/V2/Form1099ListResponseValueInner.md) - [Avalara.SDK.models.A1099.V2.Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) @@ -341,7 +345,6 @@ Class | Method | HTTP request | Description - [Avalara.SDK.models.A1099.V2.Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) - [Avalara.SDK.models.A1099.V2.Form1099RListItemResponse](docs/A1099/V2/Form1099RListItemResponse.md) - [Avalara.SDK.models.A1099.V2.Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) - - [Avalara.SDK.models.A1099.V2.Form1099StatusDetailResponse](docs/A1099/V2/Form1099StatusDetailResponse.md) - [Avalara.SDK.models.A1099.V2.FormRequestBase](docs/A1099/V2/FormRequestBase.md) - [Avalara.SDK.models.A1099.V2.FormRequestListItemBase](docs/A1099/V2/FormRequestListItemBase.md) - [Avalara.SDK.models.A1099.V2.FormResponseBase](docs/A1099/V2/FormResponseBase.md) @@ -354,10 +357,12 @@ Class | Method | HTTP request | Description - [Avalara.SDK.models.A1099.V2.IntermediaryOrFlowThrough](docs/A1099/V2/IntermediaryOrFlowThrough.md) - [Avalara.SDK.models.A1099.V2.IntermediaryOrFlowThroughRequest](docs/A1099/V2/IntermediaryOrFlowThroughRequest.md) - [Avalara.SDK.models.A1099.V2.IntermediaryOrFlowThroughResponse](docs/A1099/V2/IntermediaryOrFlowThroughResponse.md) + - [Avalara.SDK.models.A1099.V2.IrsResponse](docs/A1099/V2/IrsResponse.md) - [Avalara.SDK.models.A1099.V2.IssuerCommand](docs/A1099/V2/IssuerCommand.md) - [Avalara.SDK.models.A1099.V2.IssuerResponse](docs/A1099/V2/IssuerResponse.md) - [Avalara.SDK.models.A1099.V2.JobResult](docs/A1099/V2/JobResult.md) - [Avalara.SDK.models.A1099.V2.Link](docs/A1099/V2/Link.md) + - [Avalara.SDK.models.A1099.V2.OfferAndCoverageRequest](docs/A1099/V2/OfferAndCoverageRequest.md) - [Avalara.SDK.models.A1099.V2.PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) - [Avalara.SDK.models.A1099.V2.PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) - [Avalara.SDK.models.A1099.V2.PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) @@ -372,6 +377,7 @@ Class | Method | HTTP request | Description - [Avalara.SDK.models.A1099.V2.StatusDetail](docs/A1099/V2/StatusDetail.md) - [Avalara.SDK.models.A1099.V2.SubstantialUsOwnerRequest](docs/A1099/V2/SubstantialUsOwnerRequest.md) - [Avalara.SDK.models.A1099.V2.SubstantialUsOwnerResponse](docs/A1099/V2/SubstantialUsOwnerResponse.md) + - [Avalara.SDK.models.A1099.V2.TinMatchStatusResponse](docs/A1099/V2/TinMatchStatusResponse.md) - [Avalara.SDK.models.A1099.V2.Update1099Form200Response](docs/A1099/V2/Update1099Form200Response.md) - [Avalara.SDK.models.A1099.V2.ValidationErrorResponse](docs/A1099/V2/ValidationErrorResponse.md) - [Avalara.SDK.models.A1099.V2.W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index 807dcb8..48be9b6 100644 --- a/docs/A1099/V2/CompaniesW9Api.md +++ b/docs/A1099/V2/CompaniesW9Api.md @@ -45,7 +45,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = companies_w9_api.CompaniesW9Api(api_client) avalara_version = '2.0.0' # str | API version - x_correlation_id = '144f810d-5777-472b-b372-c1028d9a13ae' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '097506be-b40b-4107-8d62-206070d11548' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) company_create_update_request_model = Avalara.SDK.CompanyCreateUpdateRequestModel() # CompanyCreateUpdateRequestModel | The company to create (optional) # example passing only required values which don't have defaults set @@ -132,7 +132,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = companies_w9_api.CompaniesW9Api(api_client) id = 'id_example' # str | The company to delete avalara_version = '2.0.0' # str | API version - x_correlation_id = 'db071c51-528f-4929-a031-523aa34002d1' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '3af2abb1-7024-4cc7-9c52-53e793e1c863' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -218,13 +218,13 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = companies_w9_api.CompaniesW9Api(api_client) avalara_version = '2.0.0' # str | API version - filter = 'filter_example' # str | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) + filter = 'name eq 'company name'' # str | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) top = 56 # int | 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. (optional) skip = 56 # int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) order_by = 'order_by_example' # str | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) count = True # bool | If true, return the global count of elements in the collection. (optional) count_only = True # bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional) - x_correlation_id = '7ad30f3a-b27d-440e-98da-516663741d89' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'bbe9eb96-736f-4c5c-99d7-9df8f66819b3' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -318,7 +318,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = companies_w9_api.CompaniesW9Api(api_client) id = 'id_example' # str | Id of the company avalara_version = '2.0.0' # str | API version - x_correlation_id = '77521b27-805c-40b1-a6c8-3d6339acba99' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'e6013371-7d72-4c3d-8a5f-c4e08177c3ae' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -408,7 +408,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = companies_w9_api.CompaniesW9Api(api_client) id = 'id_example' # str | The ID of the company to update avalara_version = '2.0.0' # str | API version - x_correlation_id = '9b982dee-5208-416e-8acf-84070e235acc' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'd8a0cb91-eb8b-4bd6-8812-2b690995afcc' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) company_create_update_request_model = Avalara.SDK.CompanyCreateUpdateRequestModel() # CompanyCreateUpdateRequestModel | The updated company data (optional) # example passing only required values which don't have defaults set diff --git a/docs/A1099/V2/CoveredIndividualRequest.md b/docs/A1099/V2/CoveredIndividualRequest.md index 4d9f201..7ad3f2f 100644 --- a/docs/A1099/V2/CoveredIndividualRequest.md +++ b/docs/A1099/V2/CoveredIndividualRequest.md @@ -11,19 +11,19 @@ Name | Type | Description | Notes **name_suffix** | **str** | Covered individual's name suffix | [optional] **tin** | **str** | Covered individual's TIN (SSN or ITIN) | [optional] **birth_date** | **datetime** | Covered individual's date of birth | [optional] -**covered_month_indicator0** | **bool** | Coverage indicator for all 12 months | [optional] -**covered_month_indicator1** | **bool** | Coverage indicator for January | [optional] -**covered_month_indicator2** | **bool** | Coverage indicator for February | [optional] -**covered_month_indicator3** | **bool** | Coverage indicator for March | [optional] -**covered_month_indicator4** | **bool** | Coverage indicator for April | [optional] -**covered_month_indicator5** | **bool** | Coverage indicator for May | [optional] -**covered_month_indicator6** | **bool** | Coverage indicator for June | [optional] -**covered_month_indicator7** | **bool** | Coverage indicator for July | [optional] -**covered_month_indicator8** | **bool** | Coverage indicator for August | [optional] -**covered_month_indicator9** | **bool** | Coverage indicator for September | [optional] -**covered_month_indicator10** | **bool** | Coverage indicator for October | [optional] -**covered_month_indicator11** | **bool** | Coverage indicator for November | [optional] -**covered_month_indicator12** | **bool** | Coverage indicator for December | [optional] +**covered_all_months** | **bool** | Coverage indicator for all 12 months | [optional] +**covered_january** | **bool** | Coverage indicator for January | [optional] +**covered_february** | **bool** | Coverage indicator for February | [optional] +**covered_march** | **bool** | Coverage indicator for March | [optional] +**covered_april** | **bool** | Coverage indicator for April | [optional] +**covered_may** | **bool** | Coverage indicator for May | [optional] +**covered_june** | **bool** | Coverage indicator for June | [optional] +**covered_july** | **bool** | Coverage indicator for July | [optional] +**covered_august** | **bool** | Coverage indicator for August | [optional] +**covered_september** | **bool** | Coverage indicator for September | [optional] +**covered_october** | **bool** | Coverage indicator for October | [optional] +**covered_november** | **bool** | Coverage indicator for November | [optional] +**covered_december** | **bool** | Coverage indicator for December | [optional] ## Example diff --git a/docs/A1099/V2/Create1099Form201Response.md b/docs/A1099/V2/Create1099Form201Response.md index 5afa5bc..a129b40 100644 --- a/docs/A1099/V2/Create1099Form201Response.md +++ b/docs/A1099/V2/Create1099Form201Response.md @@ -12,19 +12,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -32,14 +35,16 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **str** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **datetime** | Recipient's date of birth | [optional] **recipient_giin** | **str** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **str** | Recipient's foreign TIN | [optional] @@ -64,6 +69,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **str** | Origin of health coverage code | [optional] **covered_individuals** | [**List[CoveredIndividualReferenceResponse]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] +**qualified_dividends** | **str** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **str** | Section 1202 gain | [optional] +**collectibles_gain** | **str** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **str** | Section 897 capital gain | [optional] +**nondividend_distributions** | **str** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **str** | Section 199A dividends | [optional] +**investment_expenses** | **str** | Investment expenses | [optional] +**foreign_tax_paid** | **str** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **str** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **str** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] **filer_type** | **str** | Filer type (PSE or EPF) | [optional] **payment_type** | **str** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **str** | Payment settlement entity name and phone number | [optional] @@ -71,7 +94,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **str** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -89,14 +111,15 @@ Name | Type | Description | Notes **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** | **bool** | 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] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/V2/CreateW9Form201Response.md b/docs/A1099/V2/CreateW9Form201Response.md index 9f6fbc8..4c95fd6 100644 --- a/docs/A1099/V2/CreateW9Form201Response.md +++ b/docs/A1099/V2/CreateW9Form201Response.md @@ -184,6 +184,7 @@ Name | Type | Description | Notes **account_number** | **str** | The account number associated with the form. | [optional] **backup_withholding** | **bool** | Indicates whether backup withholding applies. | [optional] **is1099able** | **bool** | 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] ## Example diff --git a/docs/A1099/V2/Form1042SListItem.md b/docs/A1099/V2/Form1042SListItem.md index 0257f2e..9e05e69 100644 --- a/docs/A1099/V2/Form1042SListItem.md +++ b/docs/A1099/V2/Form1042SListItem.md @@ -32,7 +32,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -40,15 +40,16 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1042SListItemResponse.md b/docs/A1099/V2/Form1042SListItemResponse.md index 54f5edc..76a0537 100644 --- a/docs/A1099/V2/Form1042SListItemResponse.md +++ b/docs/A1099/V2/Form1042SListItemResponse.md @@ -36,19 +36,21 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -56,8 +58,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1042SRequest.md b/docs/A1099/V2/Form1042SRequest.md index b47974f..9ea49a2 100644 --- a/docs/A1099/V2/Form1042SRequest.md +++ b/docs/A1099/V2/Form1042SRequest.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **unique_form_id** | **str** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **datetime** | Recipient's date of birth | [optional] **recipient_giin** | **str** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **str** | Recipient's foreign TIN | [optional] @@ -34,7 +33,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -42,15 +41,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] ## Example diff --git a/docs/A1099/V2/Form1042SResponse.md b/docs/A1099/V2/Form1042SResponse.md index 9368d70..394a49b 100644 --- a/docs/A1099/V2/Form1042SResponse.md +++ b/docs/A1099/V2/Form1042SResponse.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -25,17 +24,20 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/V2/Form1095BListItem.md b/docs/A1099/V2/Form1095BListItem.md index faa5732..35371fa 100644 --- a/docs/A1099/V2/Form1095BListItem.md +++ b/docs/A1099/V2/Form1095BListItem.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -23,15 +23,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1095BListItemResponse.md b/docs/A1099/V2/Form1095BListItemResponse.md index 2eea151..f51c49f 100644 --- a/docs/A1099/V2/Form1095BListItemResponse.md +++ b/docs/A1099/V2/Form1095BListItemResponse.md @@ -14,19 +14,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -34,8 +37,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1095BRequest.md b/docs/A1099/V2/Form1095BRequest.md index 567704e..7d9694e 100644 --- a/docs/A1099/V2/Form1095BRequest.md +++ b/docs/A1099/V2/Form1095BRequest.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -24,15 +24,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1095CList.md b/docs/A1099/V2/Form1095CList.md new file mode 100644 index 0000000..3978bfa --- /dev/null +++ b/docs/A1099/V2/Form1095CList.md @@ -0,0 +1,30 @@ +# Form1095CList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**forms** | [**List[Form1095CListItem]**](Form1095CListItem.md) | | [optional] +**form_type** | **str** | | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.form1095_c_list import Form1095CList + +# TODO update the JSON string below +json = "{}" +# create an instance of Form1095CList from a JSON string +form1095_c_list_instance = Form1095CList.from_json(json) +# print the JSON string representation of the object +print(Form1095CList.to_json()) + +# convert the object into a dict +form1095_c_list_dict = form1095_c_list_instance.to_dict() +# create an instance of Form1095CList from a dict +form1095_c_list_from_dict = Form1095CList.from_dict(form1095_c_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Form1095CListItem.md b/docs/A1099/V2/Form1095CListItem.md new file mode 100644 index 0000000..3a9a8c5 --- /dev/null +++ b/docs/A1099/V2/Form1095CListItem.md @@ -0,0 +1,64 @@ +# Form1095CListItem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**employee_first_name** | **str** | Employee's first name | [optional] +**employee_middle_name** | **str** | Employee's middle name | [optional] +**employee_last_name** | **str** | Employee's last name | [optional] +**employee_name_suffix** | **str** | Employee's name suffix | [optional] +**recipient_date_of_birth** | **datetime** | Recipient's date of birth | [optional] +**plan_start_month** | **str** | Plan start month | [optional] +**offer_and_coverages** | [**List[OfferAndCoverageRequest]**](OfferAndCoverageRequest.md) | Offer and coverage information | [optional] +**employer_provided_si_coverage** | **bool** | Employer provided self-insured coverage | [optional] +**covered_individuals** | [**List[CoveredIndividualRequest]**](CoveredIndividualRequest.md) | Covered individuals information | [optional] +**issuer_reference_id** | **str** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] +**issuer_tin** | **str** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] +**tax_year** | **int** | Tax year | +**issuer_id** | **str** | Issuer ID | [optional] +**reference_id** | **str** | Reference ID | [optional] +**recipient_tin** | **str** | Recipient Tax ID Number | [optional] +**recipient_name** | **str** | Recipient name | [optional] +**tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] +**recipient_second_name** | **str** | Recipient second name | [optional] +**address** | **str** | Address | +**address2** | **str** | Address line 2 | [optional] +**city** | **str** | City | +**state** | **str** | US state. Required if CountryCode is \"US\". | [optional] +**zip** | **str** | Zip/postal code | [optional] +**email** | **str** | Recipient email address | [optional] +**account_number** | **str** | Account number | [optional] +**office_code** | **str** | Office code | [optional] +**non_us_province** | **str** | Foreign province | [optional] +**country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | +**federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] +**postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] +**state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] +**tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] +**address_verification** | **bool** | 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 + +```python +from Avalara.SDK.models.A1099.V2.form1095_c_list_item import Form1095CListItem + +# TODO update the JSON string below +json = "{}" +# create an instance of Form1095CListItem from a JSON string +form1095_c_list_item_instance = Form1095CListItem.from_json(json) +# print the JSON string representation of the object +print(Form1095CListItem.to_json()) + +# convert the object into a dict +form1095_c_list_item_dict = form1095_c_list_item_instance.to_dict() +# create an instance of Form1095CListItem from a dict +form1095_c_list_item_from_dict = Form1095CListItem.from_dict(form1095_c_list_item_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Form1099BaseResponse.md b/docs/A1099/V2/Form1099BaseResponse.md index 7a7ded8..d165722 100644 --- a/docs/A1099/V2/Form1099BaseResponse.md +++ b/docs/A1099/V2/Form1099BaseResponse.md @@ -12,19 +12,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -32,8 +35,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1099DivListItem.md b/docs/A1099/V2/Form1099DivListItem.md index 37b3b6c..3df9953 100644 --- a/docs/A1099/V2/Form1099DivListItem.md +++ b/docs/A1099/V2/Form1099DivListItem.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] **qualified_dividends** | **str** | Qualified dividends | [optional] -**total_capital_gain_distr** | **str** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **str** | Section 1202 gain | [optional] **collectibles_gain** | **str** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] @@ -23,14 +23,14 @@ Name | Type | Description | Notes **noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] **exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] **specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] -**fatca_filing_requirement** | **str** | FATCA filing requirement | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **issuer_reference_id** | **str** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] **issuer_tin** | **str** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] **tax_year** | **int** | Tax year | **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -38,15 +38,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099DivListItemResponse.md b/docs/A1099/V2/Form1099DivListItemResponse.md new file mode 100644 index 0000000..8db86a0 --- /dev/null +++ b/docs/A1099/V2/Form1099DivListItemResponse.md @@ -0,0 +1,85 @@ +# Form1099DivListItemResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] +**qualified_dividends** | **str** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **str** | Section 1202 gain | [optional] +**collectibles_gain** | **str** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **str** | Section 897 capital gain | [optional] +**nondividend_distributions** | **str** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **str** | Federal income tax withheld | [optional] +**section199_a_dividends** | **str** | Section 199A dividends | [optional] +**investment_expenses** | **str** | Investment expenses | [optional] +**foreign_tax_paid** | **str** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **str** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **str** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] +**id** | **str** | ID of the form | [readonly] +**type** | **str** | 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** | **int** | Issuer ID | +**issuer_reference_id** | **str** | Issuer Reference ID | [optional] +**issuer_tin** | **str** | Issuer TIN | [optional] +**tax_year** | **int** | Tax year | [optional] +**federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | +**state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] +**postal_mail** | **bool** | 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** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | +**tin_match_status** | [**StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] +**address_verification** | **bool** | 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** | **str** | Reference ID | [optional] +**email** | **str** | Recipient email address | [optional] +**tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] +**tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] +**recipient_name** | **str** | Recipient name | [optional] +**recipient_second_name** | **str** | Recipient second name | [optional] +**address** | **str** | Address | [optional] +**address2** | **str** | Address line 2 | [optional] +**city** | **str** | City | [optional] +**state** | **str** | US state | [optional] +**zip** | **str** | Zip/postal code | [optional] +**non_us_province** | **str** | Foreign province | [optional] +**country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] +**created_at** | **datetime** | Creation time | [optional] [readonly] +**updated_at** | **datetime** | Update time | [optional] [readonly] +**state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.form1099_div_list_item_response import Form1099DivListItemResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of Form1099DivListItemResponse from a JSON string +form1099_div_list_item_response_instance = Form1099DivListItemResponse.from_json(json) +# print the JSON string representation of the object +print(Form1099DivListItemResponse.to_json()) + +# convert the object into a dict +form1099_div_list_item_response_dict = form1099_div_list_item_response_instance.to_dict() +# create an instance of Form1099DivListItemResponse from a dict +form1099_div_list_item_response_from_dict = Form1099DivListItemResponse.from_dict(form1099_div_list_item_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Form1099DivRequest.md b/docs/A1099/V2/Form1099DivRequest.md index 07a5f12..f5d51ee 100644 --- a/docs/A1099/V2/Form1099DivRequest.md +++ b/docs/A1099/V2/Form1099DivRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] **qualified_dividends** | **str** | Qualified dividends | [optional] -**total_capital_gain_distr** | **str** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **str** | Section 1202 gain | [optional] **collectibles_gain** | **str** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] @@ -23,12 +23,12 @@ Name | Type | Description | Notes **noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] **exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] **specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] -**fatca_filing_requirement** | **str** | FATCA filing requirement | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **type** | **str** | | [optional] **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -36,15 +36,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099DivResponse.md b/docs/A1099/V2/Form1099DivResponse.md index 0748601..13a3b6e 100644 --- a/docs/A1099/V2/Form1099DivResponse.md +++ b/docs/A1099/V2/Form1099DivResponse.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -25,17 +24,20 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/V2/Form1099KListItem.md b/docs/A1099/V2/Form1099KListItem.md index d341f96..50a1246 100644 --- a/docs/A1099/V2/Form1099KListItem.md +++ b/docs/A1099/V2/Form1099KListItem.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -39,15 +39,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099KListItemResponse.md b/docs/A1099/V2/Form1099KListItemResponse.md index 088bcd2..82adc32 100644 --- a/docs/A1099/V2/Form1099KListItemResponse.md +++ b/docs/A1099/V2/Form1099KListItemResponse.md @@ -32,19 +32,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -52,8 +55,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1099KRequest.md b/docs/A1099/V2/Form1099KRequest.md index a10d50d..03a93c2 100644 --- a/docs/A1099/V2/Form1099KRequest.md +++ b/docs/A1099/V2/Form1099KRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filer_type** | **int** | Filer type (PSE or EPF) | [optional] -**payment_type** | **int** | Payment type (payment card or third party network) | [optional] +**filer_type** | **str** | Filer type (PSE or EPF) | [optional] +**payment_type** | **str** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **str** | 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] @@ -29,7 +29,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -37,15 +37,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099KResponse.md b/docs/A1099/V2/Form1099KResponse.md new file mode 100644 index 0000000..0d64b10 --- /dev/null +++ b/docs/A1099/V2/Form1099KResponse.md @@ -0,0 +1,86 @@ +# Form1099KResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filer_type** | **str** | | [optional] +**payment_type** | **str** | | [optional] +**payment_settlement_entity_name_phone_number** | **str** | | [optional] +**gross_amount_payment_card** | **float** | | [optional] +**card_not_present_transactions** | **float** | | [optional] +**merchant_category_code** | **str** | | [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** | **str** | | [optional] [readonly] +**created_at** | **datetime** | | [optional] +**updated_at** | **datetime** | | [optional] +**state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**tin_type** | **str** | | [optional] +**id** | **str** | | [optional] +**issuer_id** | **str** | | [optional] +**issuer_reference_id** | **str** | | [optional] +**issuer_tin** | **str** | | [optional] +**tax_year** | **int** | | [optional] +**reference_id** | **str** | | [optional] +**recipient_name** | **str** | | [optional] +**recipient_tin** | **str** | | [optional] +**recipient_second_name** | **str** | | [optional] +**address** | **str** | | [optional] +**address2** | **str** | | [optional] +**city** | **str** | | [optional] +**state** | **str** | | [optional] +**zip** | **str** | | [optional] +**email** | **str** | | [optional] +**account_number** | **str** | | [optional] +**office_code** | **str** | | [optional] +**non_us_province** | **str** | | [optional] +**country_code** | **str** | | [optional] +**federal_e_file** | **bool** | | [optional] +**postal_mail** | **bool** | | [optional] +**state_e_file** | **bool** | | [optional] +**tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] +**address_verification** | **bool** | | [optional] +**federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**List[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** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.form1099_k_response import Form1099KResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of Form1099KResponse from a JSON string +form1099_k_response_instance = Form1099KResponse.from_json(json) +# print the JSON string representation of the object +print(Form1099KResponse.to_json()) + +# convert the object into a dict +form1099_k_response_dict = form1099_k_response_instance.to_dict() +# create an instance of Form1099KResponse from a dict +form1099_k_response_from_dict = Form1099KResponse.from_dict(form1099_k_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Form1099ListResponseValueInner.md b/docs/A1099/V2/Form1099ListResponseValueInner.md index fe4104e..2c11830 100644 --- a/docs/A1099/V2/Form1099ListResponseValueInner.md +++ b/docs/A1099/V2/Form1099ListResponseValueInner.md @@ -12,19 +12,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -32,14 +35,16 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **str** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **datetime** | Recipient's date of birth | [optional] **recipient_giin** | **str** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **str** | Recipient's foreign TIN | [optional] @@ -64,6 +69,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **str** | Origin of health coverage code | [optional] **covered_individuals** | [**List[CoveredIndividualReferenceResponse]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] +**qualified_dividends** | **str** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **str** | Section 1202 gain | [optional] +**collectibles_gain** | **str** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **str** | Section 897 capital gain | [optional] +**nondividend_distributions** | **str** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **str** | Section 199A dividends | [optional] +**investment_expenses** | **str** | Investment expenses | [optional] +**foreign_tax_paid** | **str** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **str** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **str** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] **filer_type** | **str** | Filer type (PSE or EPF) | [optional] **payment_type** | **str** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **str** | Payment settlement entity name and phone number | [optional] @@ -71,7 +94,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **str** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -89,14 +111,15 @@ Name | Type | Description | Notes **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** | **bool** | 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] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/V2/Form1099MiscListItem.md b/docs/A1099/V2/Form1099MiscListItem.md index 48b101e..8fd1894 100644 --- a/docs/A1099/V2/Form1099MiscListItem.md +++ b/docs/A1099/V2/Form1099MiscListItem.md @@ -5,13 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | 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** | **bool** | 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] @@ -27,7 +26,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -35,15 +34,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099MiscListItemResponse.md b/docs/A1099/V2/Form1099MiscListItemResponse.md index 423942d..8d2abc1 100644 --- a/docs/A1099/V2/Form1099MiscListItemResponse.md +++ b/docs/A1099/V2/Form1099MiscListItemResponse.md @@ -10,14 +10,15 @@ Name | Type | Description | Notes **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** | **bool** | 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** | **str** | ID of the form | [readonly] **type** | **str** | 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** | **int** | Issuer ID | @@ -25,19 +26,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -45,8 +49,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1099MiscRequest.md b/docs/A1099/V2/Form1099MiscRequest.md index 2502540..ef06880 100644 --- a/docs/A1099/V2/Form1099MiscRequest.md +++ b/docs/A1099/V2/Form1099MiscRequest.md @@ -5,13 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | 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** | **bool** | 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] @@ -25,7 +24,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -33,15 +32,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099MiscResponse.md b/docs/A1099/V2/Form1099MiscResponse.md index fb6073a..bfce960 100644 --- a/docs/A1099/V2/Form1099MiscResponse.md +++ b/docs/A1099/V2/Form1099MiscResponse.md @@ -5,13 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | | [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** | **bool** | | [optional] **substitute_payments** | **float** | | [optional] **crop_insurance_proceeds** | **float** | | [optional] @@ -24,7 +23,6 @@ Name | Type | Description | Notes **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -41,17 +39,20 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/V2/Form1099NecListItem.md b/docs/A1099/V2/Form1099NecListItem.md index 9bdb4cf..f7c3eb9 100644 --- a/docs/A1099/V2/Form1099NecListItem.md +++ b/docs/A1099/V2/Form1099NecListItem.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | **direct_sales_indicator** | **bool** | 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] @@ -16,7 +15,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -24,15 +23,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099NecListItemResponse.md b/docs/A1099/V2/Form1099NecListItemResponse.md index 6d41ba0..850d96e 100644 --- a/docs/A1099/V2/Form1099NecListItemResponse.md +++ b/docs/A1099/V2/Form1099NecListItemResponse.md @@ -15,19 +15,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -35,8 +38,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1099NecRequest.md b/docs/A1099/V2/Form1099NecRequest.md index 56aa2ba..05552bb 100644 --- a/docs/A1099/V2/Form1099NecRequest.md +++ b/docs/A1099/V2/Form1099NecRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | **direct_sales_indicator** | **bool** | 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] @@ -13,7 +12,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -21,15 +20,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099NecResponse.md b/docs/A1099/V2/Form1099NecResponse.md index 586024b..63dbd05 100644 --- a/docs/A1099/V2/Form1099NecResponse.md +++ b/docs/A1099/V2/Form1099NecResponse.md @@ -5,14 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | | [optional] **nonemployee_compensation** | **float** | | [optional] **direct_sales_indicator** | **bool** | | [optional] **federal_income_tax_withheld** | **float** | | [optional] **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -29,17 +27,20 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/V2/Form1099RListItem.md b/docs/A1099/V2/Form1099RListItem.md index 3243ed3..fbba1e5 100644 --- a/docs/A1099/V2/Form1099RListItem.md +++ b/docs/A1099/V2/Form1099RListItem.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -39,15 +39,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Form1099RListItemResponse.md b/docs/A1099/V2/Form1099RListItemResponse.md index 683ba1d..e99d722 100644 --- a/docs/A1099/V2/Form1099RListItemResponse.md +++ b/docs/A1099/V2/Form1099RListItemResponse.md @@ -32,19 +32,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -52,8 +55,11 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] diff --git a/docs/A1099/V2/Form1099RRequest.md b/docs/A1099/V2/Form1099RRequest.md index b09ac8c..de2cb90 100644 --- a/docs/A1099/V2/Form1099RRequest.md +++ b/docs/A1099/V2/Form1099RRequest.md @@ -29,7 +29,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -37,15 +37,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/FormRequestBase.md b/docs/A1099/V2/FormRequestBase.md index 661a2e3..fec7c09 100644 --- a/docs/A1099/V2/FormRequestBase.md +++ b/docs/A1099/V2/FormRequestBase.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -16,15 +16,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/FormRequestListItemBase.md b/docs/A1099/V2/FormRequestListItemBase.md index efa265f..c3054ba 100644 --- a/docs/A1099/V2/FormRequestListItemBase.md +++ b/docs/A1099/V2/FormRequestListItemBase.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -19,15 +19,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/FormResponseBase.md b/docs/A1099/V2/FormResponseBase.md index 078282b..7421a1a 100644 --- a/docs/A1099/V2/FormResponseBase.md +++ b/docs/A1099/V2/FormResponseBase.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -25,17 +24,20 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/V2/FormSingleRequestBase.md b/docs/A1099/V2/FormSingleRequestBase.md index d166613..fc9762d 100644 --- a/docs/A1099/V2/FormSingleRequestBase.md +++ b/docs/A1099/V2/FormSingleRequestBase.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -17,15 +17,17 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index 7e63ebe..a5f6dc2 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -18,7 +18,7 @@ Method | HTTP request | Description 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. ### Example @@ -48,7 +48,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms1099_api.Forms1099Api(api_client) avalara_version = '2.0.0' # str | API version dry_run = False # bool | (optional) if omitted the server will use the default value of False - x_correlation_id = '032e11a9-1930-48bc-9cd5-865dfeb5f8bb' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '85d89e46-adbc-4a36-a615-347bd0ad3549' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) bulk_upsert1099_forms_request = Avalara.SDK.BulkUpsert1099FormsRequest() # BulkUpsert1099FormsRequest | (optional) # example passing only required values which don't have defaults set @@ -139,7 +139,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = forms1099_api.Forms1099Api(api_client) avalara_version = '2.0.0' # str | API version - x_correlation_id = '2a525a1d-2ac8-4894-87a5-1bd347d76b1c' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'ac2b2725-9848-49c3-9255-1d638490cc87' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) i_create_form1099_request = Avalara.SDK.ICreateForm1099Request() # ICreateForm1099Request | (optional) # example passing only required values which don't have defaults set @@ -227,7 +227,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms1099_api.Forms1099Api(api_client) id = 'id_example' # str | The unique identifier of the desired form to delete. avalara_version = '2.0.0' # str | API version - x_correlation_id = 'ba633be6-e650-424e-a01c-28c6693b9e3a' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '0839267c-9208-438e-9fcd-3c193fd0216a' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -315,7 +315,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms1099_api.Forms1099Api(api_client) id = 'id_example' # str | avalara_version = '2.0.0' # str | API version - x_correlation_id = 'f311cf9a-de50-4d53-9663-bdf93020dd26' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '4c3931c8-2cd4-42f3-9042-7c23336b9f32' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -404,7 +404,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: id = 'id_example' # str | The ID of the form avalara_version = '2.0.0' # str | API version mark_edelivered = True # bool | Optional boolean that if set indicates that the form should be marked as having been successfully edelivered (optional) - x_correlation_id = 'a1c63b5e-c575-4315-90ad-0ac98e71a981' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '9133bfa6-8661-46dc-bbf2-4d45d0439e76' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -493,11 +493,11 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = forms1099_api.Forms1099Api(api_client) avalara_version = '2.0.0' # str | API version - filter = 'filter_example' # str | 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 (optional) + filter = 'issuerId eq 884781823' # str | 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 (optional) top = 10 # int | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional) if omitted the server will use the default value of 10 skip = 0 # int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) if omitted the server will use the default value of 0 order_by = 'order_by_example' # str | 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 (optional) - x_correlation_id = '443e5440-659c-4f7d-865e-fd185b0ed923' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '1d1f9e87-4684-46a4-9439-85058f82f858' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -590,7 +590,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms1099_api.Forms1099Api(api_client) id = 'id_example' # str | avalara_version = '2.0.0' # str | API version - x_correlation_id = 'd65ebcaf-e252-421c-a543-3d1ba4e4175b' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'e59dff29-007e-4aa7-8b11-5ba83766a56a' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) i_update_form1099_request = Avalara.SDK.IUpdateForm1099Request() # IUpdateForm1099Request | (optional) # example passing only required values which don't have defaults set diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index fe47642..e8e81e3 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -47,7 +47,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = forms_w9_api.FormsW9Api(api_client) avalara_version = '2.0.0' # str | API version - x_correlation_id = '968b9850-b859-4a5a-8165-bd1e444fbf47' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '479b3bdd-2b5c-48b3-b24c-b0ecbe0d07c5' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) create_w9_form_request = {"type":"W9","name":"John Doe","businessName":"Acme Inc.","businessClassification":"Individual","businessOther":null,"foreignPartnerOwnerOrBeneficiary":false,"exemptPayeeCode":null,"exemptFatcaCode":null,"foreignCountryIndicator":false,"address":"123 Main St.","foreignAddress":null,"city":"Anytown","state":"CA","zip":"12345","accountNumber":null,"tinType":"SSN","tin":"543456789","backupWithholding":false,"is1099able":true,"companyId":"32553266","referenceId":null,"email":null,"eDeliveryConsentedAt":null,"signature":null} # CreateW9FormRequest | Form to be created (optional) # example passing only required values which don't have defaults set @@ -134,7 +134,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms_w9_api.FormsW9Api(api_client) id = 'id_example' # str | ID of the form to delete avalara_version = '2.0.0' # str | API version - x_correlation_id = '69926298-ed5b-4d78-8099-b5488589912d' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '7d79301a-ebfd-40a1-a1af-a9a1e44f8936' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -219,7 +219,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms_w9_api.FormsW9Api(api_client) id = 'id_example' # str | ID of the form avalara_version = '2.0.0' # str | API version - x_correlation_id = 'e138390c-5561-49df-a969-49427e2c5ffa' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'b4cc81aa-1d2e-4cef-aa68-705ea2aaf594' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -310,7 +310,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: skip = 0 # int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) if omitted the server will use the default value of 0 order_by = 'order_by_example' # str | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) count = True # bool | When true, returns a @recordSetCount in the result set (optional) - x_correlation_id = 'f80bd20b-84ec-47de-913f-304dd9951b58' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '8afdb9ff-bb10-414e-bd81-5cb5175aad0c' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -401,7 +401,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms_w9_api.FormsW9Api(api_client) id = 'id_example' # str | The ID of the W9/W4/W8 form. avalara_version = '2.0.0' # str | API version - x_correlation_id = '75735dc9-2909-4f11-bc6c-6e1ec0d77264' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '37d1fca1-1efa-454b-a3ff-94ec972b74b4' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -488,7 +488,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms_w9_api.FormsW9Api(api_client) id = 'id_example' # str | ID of the form to update avalara_version = '2.0.0' # str | API version - x_correlation_id = 'd24784a4-9522-46c7-b6e0-8f44cb176f17' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '8c37ab84-020e-452c-ad69-df89a9ac9cfa' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) iw9_form_data_models_one_of = Avalara.SDK.IW9FormDataModelsOneOf() # IW9FormDataModelsOneOf | Form to be updated (optional) # example passing only required values which don't have defaults set @@ -576,7 +576,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = forms_w9_api.FormsW9Api(api_client) id = 'id_example' # str | Id of the form avalara_version = '2.0.0' # str | API version - x_correlation_id = 'ee2e9278-6cdb-47ad-82a0-9d5a726f7412' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '2ce587b6-7523-41b2-8033-347329740bcb' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) file = None # bytearray | (optional) # example passing only required values which don't have defaults set diff --git a/docs/A1099/V2/Get1099Form200Response.md b/docs/A1099/V2/Get1099Form200Response.md index 2897ce8..9df8402 100644 --- a/docs/A1099/V2/Get1099Form200Response.md +++ b/docs/A1099/V2/Get1099Form200Response.md @@ -12,19 +12,22 @@ Name | Type | Description | Notes **issuer_tin** | **str** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | 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** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**List[StateEfileStatusDetailResponse]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | 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** | **bool** | 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** | **bool** | 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** | **str** | Reference ID | [optional] **email** | **str** | Recipient email address | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **str** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **str** | Recipient name | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | [optional] @@ -32,14 +35,16 @@ Name | Type | Description | Notes **city** | **str** | City | [optional] **state** | **str** | US state | [optional] **zip** | **str** | Zip/postal code | [optional] -**foreign_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **str** | Account Number | [optional] +**office_code** | **str** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **datetime** | Creation time | [optional] [readonly] **updated_at** | **datetime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **str** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **datetime** | Recipient's date of birth | [optional] **recipient_giin** | **str** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **str** | Recipient's foreign TIN | [optional] @@ -64,6 +69,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **str** | Origin of health coverage code | [optional] **covered_individuals** | [**List[CoveredIndividualReferenceResponse]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] +**qualified_dividends** | **str** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **str** | Section 1202 gain | [optional] +**collectibles_gain** | **str** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **str** | Section 897 capital gain | [optional] +**nondividend_distributions** | **str** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **str** | Section 199A dividends | [optional] +**investment_expenses** | **str** | Investment expenses | [optional] +**foreign_tax_paid** | **str** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **str** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **str** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **str** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **str** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **str** | Specified private activity bond interest dividends | [optional] **filer_type** | **str** | Filer type (PSE or EPF) | [optional] **payment_type** | **str** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **str** | Payment settlement entity name and phone number | [optional] @@ -71,7 +94,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **str** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -89,14 +111,15 @@ Name | Type | Description | Notes **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** | **bool** | 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] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/V2/ICreateForm1099Request.md b/docs/A1099/V2/ICreateForm1099Request.md index 2f9f876..a96db55 100644 --- a/docs/A1099/V2/ICreateForm1099Request.md +++ b/docs/A1099/V2/ICreateForm1099Request.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] **qualified_dividends** | **str** | Qualified dividends | [optional] -**total_capital_gain_distr** | **str** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **str** | Section 1202 gain | [optional] **collectibles_gain** | **str** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] @@ -28,7 +28,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -36,24 +36,25 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] -**second_tin_notice** | **bool** | 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** | **bool** | 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] @@ -62,6 +63,25 @@ Name | Type | Description | Notes **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] **excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] **nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] +**filer_type** | **str** | Filer type (PSE or EPF) | [optional] +**payment_type** | **str** | Payment type (payment card or third party network) | [optional] +**payment_settlement_entity_name_phone_number** | **str** | 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] +**merchant_category_code** | **str** | Merchant category code | [optional] +**payment_transaction_number** | **float** | Number of payment transactions | [optional] +**january** | **float** | January gross payments | [optional] +**february** | **float** | February gross payments | [optional] +**march** | **float** | March gross payments | [optional] +**april** | **float** | April gross payments | [optional] +**may** | **float** | May gross payments | [optional] +**june** | **float** | June gross payments | [optional] +**july** | **float** | July gross payments | [optional] +**august** | **float** | August gross payments | [optional] +**sept** | **float** | September gross payments | [optional] +**october** | **float** | October gross payments | [optional] +**november** | **float** | November gross payments | [optional] +**december** | **float** | December gross payments | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | ## Example diff --git a/docs/A1099/V2/IUpdateForm1099Request.md b/docs/A1099/V2/IUpdateForm1099Request.md index 2a42b49..f80d5d3 100644 --- a/docs/A1099/V2/IUpdateForm1099Request.md +++ b/docs/A1099/V2/IUpdateForm1099Request.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **str** | Total ordinary dividends | [optional] **qualified_dividends** | **str** | Qualified dividends | [optional] -**total_capital_gain_distr** | **str** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **str** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **str** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **str** | Section 1202 gain | [optional] **collectibles_gain** | **str** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **str** | Section 897 ordinary dividends | [optional] @@ -28,7 +28,7 @@ Name | Type | Description | Notes **issuer_id** | **str** | Issuer ID | [optional] **reference_id** | **str** | Reference ID | [optional] **recipient_tin** | **str** | Recipient Tax ID Number | [optional] -**recipient_name** | **str** | Recipient name | +**recipient_name** | **str** | Recipient name | [optional] **tin_type** | **str** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **str** | Recipient second name | [optional] **address** | **str** | Address | @@ -36,24 +36,25 @@ Name | Type | Description | Notes **city** | **str** | City | **state** | **str** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **str** | Zip/postal code | [optional] -**recipient_email** | **str** | Recipient email address | [optional] +**email** | **str** | Recipient email address | [optional] **account_number** | **str** | Account number | [optional] **office_code** | **str** | Office code | [optional] -**recipient_non_us_province** | **str** | Foreign province | [optional] +**non_us_province** | **str** | Foreign province | [optional] **country_code** | **str** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | 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] -**second_tin_notice** | **bool** | 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** | **bool** | 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] @@ -62,6 +63,25 @@ Name | Type | Description | Notes **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] **excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] **nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] +**filer_type** | **str** | Filer type (PSE or EPF) | [optional] +**payment_type** | **str** | Payment type (payment card or third party network) | [optional] +**payment_settlement_entity_name_phone_number** | **str** | 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] +**merchant_category_code** | **str** | Merchant category code | [optional] +**payment_transaction_number** | **float** | Number of payment transactions | [optional] +**january** | **float** | January gross payments | [optional] +**february** | **float** | February gross payments | [optional] +**march** | **float** | March gross payments | [optional] +**april** | **float** | April gross payments | [optional] +**may** | **float** | May gross payments | [optional] +**june** | **float** | June gross payments | [optional] +**july** | **float** | July gross payments | [optional] +**august** | **float** | August gross payments | [optional] +**sept** | **float** | September gross payments | [optional] +**october** | **float** | October gross payments | [optional] +**november** | **float** | November gross payments | [optional] +**december** | **float** | December gross payments | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | ## Example diff --git a/docs/A1099/V2/IrsResponse.md b/docs/A1099/V2/IrsResponse.md new file mode 100644 index 0000000..4d49058 --- /dev/null +++ b/docs/A1099/V2/IrsResponse.md @@ -0,0 +1,30 @@ +# IrsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | The IRS response code. | [optional] +**description** | **str** | The description for the IRS response. | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.irs_response import IrsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of IrsResponse from a JSON string +irs_response_instance = IrsResponse.from_json(json) +# print the JSON string representation of the object +print(IrsResponse.to_json()) + +# convert the object into a dict +irs_response_dict = irs_response_instance.to_dict() +# create an instance of IrsResponse from a dict +irs_response_from_dict = IrsResponse.from_dict(irs_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index c4b46c8..63aa265 100644 --- a/docs/A1099/V2/Issuers1099Api.md +++ b/docs/A1099/V2/Issuers1099Api.md @@ -45,7 +45,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = issuers1099_api.Issuers1099Api(api_client) avalara_version = '2.0.0' # str | API version - x_correlation_id = 'ce42bd72-2b6a-438a-8e8b-983910339267' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'cd08f20c-e93f-4ed9-9fcc-1c43161a5ab1' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) issuer_command = Avalara.SDK.IssuerCommand() # IssuerCommand | The issuer to create (optional) # example passing only required values which don't have defaults set @@ -132,7 +132,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = issuers1099_api.Issuers1099Api(api_client) id = 'id_example' # str | Id of the issuer to delete avalara_version = '2.0.0' # str | API version - x_correlation_id = '706821c8-d3fe-4fb8-82c2-5d6cf92c475e' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = 'b31ed293-452b-4f1a-9781-92bf4cc732b2' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -217,7 +217,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = issuers1099_api.Issuers1099Api(api_client) id = 'id_example' # str | Id of the issuer to retrieve avalara_version = '2.0.0' # str | API version - x_correlation_id = '14762757-396e-4e07-851b-2b7dd2542250' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '6f7412dc-b5d2-4657-9ae0-9eb72e1cbaac' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -303,13 +303,13 @@ with Avalara.SDK.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = issuers1099_api.Issuers1099Api(api_client) avalara_version = '2.0.0' # str | API version - filter = 'filter_example' # str | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) + filter = 'taxYear eq 2024' # str | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) top = 56 # int | 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. (optional) skip = 56 # int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) order_by = 'order_by_example' # str | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) count = True # bool | If true, return the global count of elements in the collection. (optional) count_only = True # bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional) - x_correlation_id = '99c911ff-f4eb-42a8-841d-342a6cd1c7d5' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '6ab59fe8-83fc-4fa3-9617-abb9b8d1bdb7' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: @@ -403,7 +403,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = issuers1099_api.Issuers1099Api(api_client) id = 'id_example' # str | Id of the issuer to update avalara_version = '2.0.0' # str | API version - x_correlation_id = '092e5597-f724-49e7-bffa-4f1f21cb6236' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '2f427cf4-fa55-4abb-85da-d79a4a846191' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) issuer_command = Avalara.SDK.IssuerCommand() # IssuerCommand | The issuer to update (optional) # example passing only required values which don't have defaults set diff --git a/docs/A1099/V2/Jobs1099Api.md b/docs/A1099/V2/Jobs1099Api.md index daa46e7..8a292f0 100644 --- a/docs/A1099/V2/Jobs1099Api.md +++ b/docs/A1099/V2/Jobs1099Api.md @@ -41,7 +41,7 @@ with Avalara.SDK.ApiClient(configuration) as api_client: api_instance = jobs1099_api.Jobs1099Api(api_client) id = 'id_example' # str | Job id obtained from other API responses, like `/1099/bulk-upsert`. avalara_version = '2.0.0' # str | API version - x_correlation_id = '0d84e31f-0d44-4920-9f1b-5daa360e7925' # str | Unique correlation Id in a GUID format (optional) + x_correlation_id = '85be69fe-08d7-40f4-8ce2-dd043ea36143' # str | Unique correlation Id in a GUID format (optional) x_avalara_client = 'Swagger UI; 22.1.0' # str | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) # example passing only required values which don't have defaults set try: diff --git a/docs/A1099/V2/OfferAndCoverageRequest.md b/docs/A1099/V2/OfferAndCoverageRequest.md new file mode 100644 index 0000000..7c20c8c --- /dev/null +++ b/docs/A1099/V2/OfferAndCoverageRequest.md @@ -0,0 +1,33 @@ +# OfferAndCoverageRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**month** | **str** | Month of coverage | [optional] +**offer_code** | **str** | Offer of coverage code | [optional] +**share** | **float** | Employee required contribution share | [optional] +**safe_harbor_code** | **str** | Safe harbor code | [optional] +**zip_code** | **str** | ZIP code for coverage area | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.offer_and_coverage_request import OfferAndCoverageRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of OfferAndCoverageRequest from a JSON string +offer_and_coverage_request_instance = OfferAndCoverageRequest.from_json(json) +# print the JSON string representation of the object +print(OfferAndCoverageRequest.to_json()) + +# convert the object into a dict +offer_and_coverage_request_dict = offer_and_coverage_request_instance.to_dict() +# create an instance of OfferAndCoverageRequest from a dict +offer_and_coverage_request_from_dict = OfferAndCoverageRequest.from_dict(offer_and_coverage_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/TinMatchStatusResponse.md b/docs/A1099/V2/TinMatchStatusResponse.md new file mode 100644 index 0000000..f5b11c3 --- /dev/null +++ b/docs/A1099/V2/TinMatchStatusResponse.md @@ -0,0 +1,31 @@ +# TinMatchStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **datetime** | The current timestamp for the TIN match request. | [optional] +**status** | **str** | The current status for the TIN match request. | [optional] +**irs_response** | [**IrsResponse**](IrsResponse.md) | The IRS response. | [optional] + +## Example + +```python +from Avalara.SDK.models.A1099.V2.tin_match_status_response import TinMatchStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of TinMatchStatusResponse from a JSON string +tin_match_status_response_instance = TinMatchStatusResponse.from_json(json) +# print the JSON string representation of the object +print(TinMatchStatusResponse.to_json()) + +# convert the object into a dict +tin_match_status_response_dict = tin_match_status_response_instance.to_dict() +# create an instance of TinMatchStatusResponse from a dict +tin_match_status_response_from_dict = TinMatchStatusResponse.from_dict(tin_match_status_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/A1099/V2/Update1099Form200Response.md b/docs/A1099/V2/Update1099Form200Response.md index 5062f77..8499087 100644 --- a/docs/A1099/V2/Update1099Form200Response.md +++ b/docs/A1099/V2/Update1099Form200Response.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **type** | **str** | | [optional] [readonly] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] -**user_id** | **str** | | [optional] **state_and_local_withholding** | [**StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **str** | | [optional] **id** | **str** | | [optional] @@ -25,29 +24,51 @@ Name | Type | Description | Notes **city** | **str** | | [optional] **state** | **str** | | [optional] **zip** | **str** | | [optional] -**recipient_email** | **str** | | [optional] +**email** | **str** | | [optional] **account_number** | **str** | | [optional] **office_code** | **str** | | [optional] -**recipient_non_us_province** | **str** | | [optional] +**non_us_province** | **str** | | [optional] **country_code** | **str** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**List[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** | [**List[ValidationErrorResponse]**](ValidationErrorResponse.md) | | [optional] -**second_tin_notice** | **bool** | | [optional] +**filer_type** | **str** | | [optional] +**payment_type** | **str** | | [optional] +**payment_settlement_entity_name_phone_number** | **str** | | [optional] +**gross_amount_payment_card** | **float** | | [optional] +**card_not_present_transactions** | **float** | | [optional] +**merchant_category_code** | **str** | | [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] **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** | **bool** | | [optional] **substitute_payments** | **float** | | [optional] **crop_insurance_proceeds** | **float** | | [optional] @@ -58,7 +79,6 @@ Name | Type | Description | Notes **excess_golden_parachute_payments** | **float** | | [optional] **nonqualified_deferred_compensation** | **float** | | [optional] **nonemployee_compensation** | **float** | | [optional] -**federal_income_tax_withheld** | **float** | | [optional] ## Example diff --git a/docs/A1099/V2/W9FormResponse.md b/docs/A1099/V2/W9FormResponse.md index 7a7d849..ce2787c 100644 --- a/docs/A1099/V2/W9FormResponse.md +++ b/docs/A1099/V2/W9FormResponse.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **tin** | **str** | The taxpayer identification number (TIN). | [optional] **backup_withholding** | **bool** | Indicates whether backup withholding applies. | [optional] **is1099able** | **bool** | 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** | **str** | The unique identifier for the form. | [optional] **type** | **str** | The form type. | [optional] **entry_status** | **str** | The form status. | [optional] diff --git a/setup.py b/setup.py index ed840e3..209a851 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ @author Jonathan Wenger @copyright 2022 Avalara, Inc. @license https://www.apache.org/licenses/LICENSE-2.0 -@version 25.8.0 +@version 25.8.1 @link https://github.com/avadev/AvaTax-REST-V3-Python-SDK """ @@ -40,7 +40,7 @@ from setuptools import setup, find_namespace_packages NAME = "Avalara.SDK" -VERSION = "25.8.0" +VERSION = "25.8.1" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0",