From b8943e332914159f65de0ede035172902d998bda Mon Sep 17 00:00:00 2001 From: Jonathan Wenger Date: Wed, 16 Jul 2025 10:17:41 -0700 Subject: [PATCH] 25.7.2 --- README.md | 296 +- docs/A1099/BulkUpsert1099FormsRequest.md | 2 +- docs/A1099/Data.md | 4 +- docs/A1099/ErrorResponse.md | 2 +- docs/A1099/Form1095B.md | 16 +- docs/A1099/Form1095BList.md | 2 +- docs/A1099/Form1095BListItem.md | 4 +- docs/A1099/Form1095BRequest.md | 4 +- docs/A1099/Form1099Base.md | 14 +- docs/A1099/Form1099DivList.md | 2 +- docs/A1099/Form1099DivListItem.md | 2 +- docs/A1099/Form1099DivRequest.md | 2 +- docs/A1099/Form1099DivResponse.md | 14 +- docs/A1099/Form1099K.md | 14 +- docs/A1099/Form1099KList.md | 2 +- docs/A1099/Form1099KListItem.md | 2 +- docs/A1099/Form1099KRequest.md | 2 +- docs/A1099/Form1099List.md | 2 +- docs/A1099/Form1099Misc.md | 14 +- docs/A1099/Form1099MiscList.md | 2 +- docs/A1099/Form1099MiscListItem.md | 2 +- docs/A1099/Form1099MiscRequest.md | 2 +- docs/A1099/Form1099MiscResponse.md | 14 +- docs/A1099/Form1099Nec.md | 14 +- docs/A1099/Form1099NecList.md | 2 +- docs/A1099/Form1099NecListItem.md | 2 +- docs/A1099/Form1099NecRequest.md | 2 +- docs/A1099/Form1099NecResponse.md | 14 +- docs/A1099/Form1099ProccessResult.md | 2 +- docs/A1099/Form1099R.md | 14 +- docs/A1099/Form1099RList.md | 2 +- docs/A1099/Form1099RListItem.md | 2 +- docs/A1099/Form1099RRequest.md | 2 +- docs/A1099/FormRequestBase.md | 2 +- docs/A1099/FormRequestCsvBase.md | 2 +- docs/A1099/FormResponseBase.md | 14 +- docs/A1099/FormSingleRequestBase.md | 2 +- docs/A1099/Get1099Form200Response.md | 16 +- docs/A1099/ICreateForm1099Request.md | 2 +- docs/A1099/IUpdateForm1099Request.md | 2 +- docs/A1099/IW9FormDataModelsOneOf.md | 2 +- ...aginatedQueryResultModelCompanyResponse.md | 2 +- ...PaginatedQueryResultModelIssuerResponse.md | 2 +- docs/A1099/PaginatedW9FormsModel.md | 2 +- docs/A1099/Update1099Form200Response.md | 14 +- docs/A1099/V2/CompaniesW9Api.md | 46 +- docs/A1099/V2/Forms1099Api.md | 66 +- docs/A1099/V2/FormsW9Api.md | 58 +- docs/A1099/V2/Issuers1099Api.md | 42 +- docs/A1099/V2/Jobs1099Api.md | 10 +- docs/A1099/W4FormDataModel.md | 2 +- docs/A1099/W8BenEFormResponse.md | 2 +- docs/A1099/W8BenFormDataModel.md | 2 +- docs/A1099/W8BeneFormDataModel.md | 2 +- docs/A1099/W8ImyFormDataModel.md | 2 +- docs/A1099/W9FormDataModel.md | 2 +- docs/EInvoicing/BatchSearch.md | 2 +- docs/EInvoicing/BatchSearchListResponse.md | 2 +- docs/EInvoicing/ConditionalForField.md | 2 +- docs/EInvoicing/DataInputField.md | 8 +- docs/EInvoicing/DataInputFieldsResponse.md | 2 +- docs/EInvoicing/DirectorySearchResponse.md | 2 +- .../DirectorySearchResponseValueInner.md | 6 +- docs/EInvoicing/DocumentListResponse.md | 2 +- docs/EInvoicing/DocumentStatusResponse.md | 2 +- docs/EInvoicing/EventMessage.md | 2 +- docs/EInvoicing/EventPayload.md | 2 +- docs/EInvoicing/FetchDocumentsRequest.md | 4 +- docs/EInvoicing/Mandate.md | 6 +- docs/EInvoicing/MandateDataInputField.md | 2 +- docs/EInvoicing/MandatesResponse.md | 2 +- docs/EInvoicing/Signature.md | 2 +- docs/EInvoicing/SignatureValue.md | 2 +- docs/EInvoicing/SubscriptionDetail.md | 4 +- docs/EInvoicing/SubscriptionListResponse.md | 2 +- docs/EInvoicing/SubscriptionRegistration.md | 4 +- docs/EInvoicing/V1/DataInputFieldsApi.md | 8 +- docs/EInvoicing/V1/DocumentsApi.md | 36 +- docs/EInvoicing/V1/InteropApi.md | 8 +- docs/EInvoicing/V1/MandatesApi.md | 14 +- docs/EInvoicing/V1/SubscriptionsApi.md | 26 +- docs/EInvoicing/V1/TradingPartnersApi.md | 28 +- docs/EInvoicing/WebhookInvocation.md | 2 +- docs/EInvoicing/WebhooksErrorResponse.md | 2 +- lib/API/A1099/V2/CompaniesW9Api.php | 140 +- lib/API/A1099/V2/Forms1099Api.php | 272 +- lib/API/A1099/V2/FormsW9Api.php | 591 +--- lib/API/A1099/V2/Issuers1099Api.php | 140 +- lib/API/A1099/V2/Jobs1099Api.php | 26 +- lib/API/EInvoicing/V1/DataInputFieldsApi.php | 8 +- lib/API/EInvoicing/V1/DocumentsApi.php | 14 +- lib/API/EInvoicing/V1/InteropApi.php | 4 +- lib/API/EInvoicing/V1/MandatesApi.php | 10 +- lib/API/EInvoicing/V1/SubscriptionsApi.php | 14 +- lib/API/EInvoicing/V1/TradingPartnersApi.php | 16 +- .../A1099/V2/CoveredIndividualReference.php | 932 +++++ .../A1099/V2/CoveredIndividualRequest.php | 872 +++++ lib/Model/A1099/V2/Form1095B.php | 1358 ++++++++ lib/Model/A1099/V2/Form1095BList.php | 364 ++ lib/Model/A1099/V2/Form1095BListItem.php | 1256 +++++++ lib/Model/A1099/V2/Form1095BRequest.php | 1328 ++++++++ lib/Model/A1099/V2/Form1099Base.php | 104 +- lib/Model/A1099/V2/Form1099DivListItem.php | 228 +- lib/Model/A1099/V2/Form1099DivRequest.php | 300 +- lib/Model/A1099/V2/Form1099DivResponse.php | 1466 ++++++++ lib/Model/A1099/V2/Form1099K.php | 104 +- lib/Model/A1099/V2/Form1099KListItem.php | 228 +- lib/Model/A1099/V2/Form1099KRequest.php | 300 +- lib/Model/A1099/V2/Form1099List.php | 6 +- lib/Model/A1099/V2/Form1099Misc.php | 104 +- lib/Model/A1099/V2/Form1099MiscListItem.php | 228 +- lib/Model/A1099/V2/Form1099MiscRequest.php | 300 +- lib/Model/A1099/V2/Form1099MiscResponse.php | 1946 +++++++++++ lib/Model/A1099/V2/Form1099Nec.php | 104 +- lib/Model/A1099/V2/Form1099NecListItem.php | 228 +- lib/Model/A1099/V2/Form1099NecRequest.php | 300 +- lib/Model/A1099/V2/Form1099NecResponse.php | 1586 +++++++++ lib/Model/A1099/V2/Form1099R.php | 104 +- lib/Model/A1099/V2/Form1099RListItem.php | 228 +- lib/Model/A1099/V2/Form1099RRequest.php | 300 +- lib/Model/A1099/V2/FormRequestBase.php | 228 +- lib/Model/A1099/V2/FormRequestCsvBase.php | 1090 ++++++ lib/Model/A1099/V2/FormResponseBase.php | 742 +++- lib/Model/A1099/V2/FormSingleRequestBase.php | 270 +- lib/Model/A1099/V2/Get1099Form200Response.php | 3018 +++++++++++++++++ lib/Model/A1099/V2/ICreateForm1099Request.php | 290 +- lib/Model/A1099/V2/IUpdateForm1099Request.php | 290 +- lib/Model/A1099/V2/IncludedBase.php | 362 ++ .../V2/StateAndLocalWithholdingResponse.php | 542 +++ .../A1099/V2/StateEfileStatusDetailApp.php | 392 +++ lib/Model/A1099/V2/StatusDetail.php | 362 ++ .../A1099/V2/Update1099Form200Response.php | 2006 +++++++++++ lib/Model/A1099/V2/ValidationErrorApp.php | 364 ++ 133 files changed, 23084 insertions(+), 3337 deletions(-) create mode 100644 lib/Model/A1099/V2/CoveredIndividualReference.php create mode 100644 lib/Model/A1099/V2/CoveredIndividualRequest.php create mode 100644 lib/Model/A1099/V2/Form1095B.php create mode 100644 lib/Model/A1099/V2/Form1095BList.php create mode 100644 lib/Model/A1099/V2/Form1095BListItem.php create mode 100644 lib/Model/A1099/V2/Form1095BRequest.php create mode 100644 lib/Model/A1099/V2/Form1099DivResponse.php create mode 100644 lib/Model/A1099/V2/Form1099MiscResponse.php create mode 100644 lib/Model/A1099/V2/Form1099NecResponse.php create mode 100644 lib/Model/A1099/V2/FormRequestCsvBase.php create mode 100644 lib/Model/A1099/V2/Get1099Form200Response.php create mode 100644 lib/Model/A1099/V2/IncludedBase.php create mode 100644 lib/Model/A1099/V2/StateAndLocalWithholdingResponse.php create mode 100644 lib/Model/A1099/V2/StateEfileStatusDetailApp.php create mode 100644 lib/Model/A1099/V2/StatusDetail.php create mode 100644 lib/Model/A1099/V2/Update1099Form200Response.php create mode 100644 lib/Model/A1099/V2/ValidationErrorApp.php diff --git a/README.md b/README.md index a22bce9..eebb691 100644 --- a/README.md +++ b/README.md @@ -225,156 +225,156 @@ Class | Method | HTTP request | Description ### EInvoicing V1 Model Documentation - - [AvalaraSDK\ModelEInvoicingV1\BadDownloadRequest](docs/EInvoicing/V1/BadDownloadRequest.md) - - [AvalaraSDK\ModelEInvoicingV1\BadRequest](docs/EInvoicing/V1/BadRequest.md) - - [AvalaraSDK\ModelEInvoicingV1\BatchSearch](docs/EInvoicing/V1/BatchSearch.md) - - [AvalaraSDK\ModelEInvoicingV1\BatchSearchListResponse](docs/EInvoicing/V1/BatchSearchListResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\BatchSearchParticipants202Response](docs/EInvoicing/V1/BatchSearchParticipants202Response.md) - - [AvalaraSDK\ModelEInvoicingV1\ConditionalForField](docs/EInvoicing/V1/ConditionalForField.md) - - [AvalaraSDK\ModelEInvoicingV1\DataInputField](docs/EInvoicing/V1/DataInputField.md) - - [AvalaraSDK\ModelEInvoicingV1\DataInputFieldNotUsedFor](docs/EInvoicing/V1/DataInputFieldNotUsedFor.md) - - [AvalaraSDK\ModelEInvoicingV1\DataInputFieldOptionalFor](docs/EInvoicing/V1/DataInputFieldOptionalFor.md) - - [AvalaraSDK\ModelEInvoicingV1\DataInputFieldRequiredFor](docs/EInvoicing/V1/DataInputFieldRequiredFor.md) - - [AvalaraSDK\ModelEInvoicingV1\DataInputFieldsResponse](docs/EInvoicing/V1/DataInputFieldsResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponse](docs/EInvoicing/V1/DirectorySearchResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInner](docs/EInvoicing/V1/DirectorySearchResponseValueInner.md) - - [AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerAddressesInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerAddressesInner.md) - - [AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerIdentifiersInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.md) - - [AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerSupportedDocumentTypesInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentFetch](docs/EInvoicing/V1/DocumentFetch.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentListResponse](docs/EInvoicing/V1/DocumentListResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentStatusResponse](docs/EInvoicing/V1/DocumentStatusResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentSubmissionError](docs/EInvoicing/V1/DocumentSubmissionError.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentSubmitResponse](docs/EInvoicing/V1/DocumentSubmitResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\DocumentSummary](docs/EInvoicing/V1/DocumentSummary.md) - - [AvalaraSDK\ModelEInvoicingV1\ErrorResponse](docs/EInvoicing/V1/ErrorResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\EventId](docs/EInvoicing/V1/EventId.md) - - [AvalaraSDK\ModelEInvoicingV1\EventMessage](docs/EInvoicing/V1/EventMessage.md) - - [AvalaraSDK\ModelEInvoicingV1\EventPayload](docs/EInvoicing/V1/EventPayload.md) - - [AvalaraSDK\ModelEInvoicingV1\EventSubscription](docs/EInvoicing/V1/EventSubscription.md) - - [AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequest](docs/EInvoicing/V1/FetchDocumentsRequest.md) - - [AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequestDataInner](docs/EInvoicing/V1/FetchDocumentsRequestDataInner.md) - - [AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequestMetadata](docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md) - - [AvalaraSDK\ModelEInvoicingV1\ForbiddenError](docs/EInvoicing/V1/ForbiddenError.md) - - [AvalaraSDK\ModelEInvoicingV1\HmacSignature](docs/EInvoicing/V1/HmacSignature.md) - - [AvalaraSDK\ModelEInvoicingV1\HmacSignatureValue](docs/EInvoicing/V1/HmacSignatureValue.md) - - [AvalaraSDK\ModelEInvoicingV1\Id](docs/EInvoicing/V1/Id.md) - - [AvalaraSDK\ModelEInvoicingV1\InputDataFormats](docs/EInvoicing/V1/InputDataFormats.md) - - [AvalaraSDK\ModelEInvoicingV1\InternalServerError](docs/EInvoicing/V1/InternalServerError.md) - - [AvalaraSDK\ModelEInvoicingV1\Mandate](docs/EInvoicing/V1/Mandate.md) - - [AvalaraSDK\ModelEInvoicingV1\MandateDataInputField](docs/EInvoicing/V1/MandateDataInputField.md) - - [AvalaraSDK\ModelEInvoicingV1\MandateDataInputFieldNamespace](docs/EInvoicing/V1/MandateDataInputFieldNamespace.md) - - [AvalaraSDK\ModelEInvoicingV1\MandatesResponse](docs/EInvoicing/V1/MandatesResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\NotFoundError](docs/EInvoicing/V1/NotFoundError.md) - - [AvalaraSDK\ModelEInvoicingV1\NotUsedForField](docs/EInvoicing/V1/NotUsedForField.md) - - [AvalaraSDK\ModelEInvoicingV1\OutputDataFormats](docs/EInvoicing/V1/OutputDataFormats.md) - - [AvalaraSDK\ModelEInvoicingV1\Pagination](docs/EInvoicing/V1/Pagination.md) - - [AvalaraSDK\ModelEInvoicingV1\RequiredWhenField](docs/EInvoicing/V1/RequiredWhenField.md) - - [AvalaraSDK\ModelEInvoicingV1\Signature](docs/EInvoicing/V1/Signature.md) - - [AvalaraSDK\ModelEInvoicingV1\SignatureSignature](docs/EInvoicing/V1/SignatureSignature.md) - - [AvalaraSDK\ModelEInvoicingV1\SignatureValue](docs/EInvoicing/V1/SignatureValue.md) - - [AvalaraSDK\ModelEInvoicingV1\SignatureValueSignature](docs/EInvoicing/V1/SignatureValueSignature.md) - - [AvalaraSDK\ModelEInvoicingV1\StatusEvent](docs/EInvoicing/V1/StatusEvent.md) - - [AvalaraSDK\ModelEInvoicingV1\SubmitDocumentMetadata](docs/EInvoicing/V1/SubmitDocumentMetadata.md) - - [AvalaraSDK\ModelEInvoicingV1\SubmitInteropDocument202Response](docs/EInvoicing/V1/SubmitInteropDocument202Response.md) - - [AvalaraSDK\ModelEInvoicingV1\SubscriptionCommon](docs/EInvoicing/V1/SubscriptionCommon.md) - - [AvalaraSDK\ModelEInvoicingV1\SubscriptionDetail](docs/EInvoicing/V1/SubscriptionDetail.md) - - [AvalaraSDK\ModelEInvoicingV1\SubscriptionListResponse](docs/EInvoicing/V1/SubscriptionListResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\SubscriptionRegistration](docs/EInvoicing/V1/SubscriptionRegistration.md) - - [AvalaraSDK\ModelEInvoicingV1\SuccessResponse](docs/EInvoicing/V1/SuccessResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\WebhookInvocation](docs/EInvoicing/V1/WebhookInvocation.md) - - [AvalaraSDK\ModelEInvoicingV1\WebhooksErrorInfo](docs/EInvoicing/V1/WebhooksErrorInfo.md) - - [AvalaraSDK\ModelEInvoicingV1\WebhooksErrorResponse](docs/EInvoicing/V1/WebhooksErrorResponse.md) - - [AvalaraSDK\ModelEInvoicingV1\WorkflowIds](docs/EInvoicing/V1/WorkflowIds.md) + - [Avalara\SDK\Model\EInvoicing\V1\BadDownloadRequest](docs/EInvoicing/V1/BadDownloadRequest.md) + - [Avalara\SDK\Model\EInvoicing\V1\BadRequest](docs/EInvoicing/V1/BadRequest.md) + - [Avalara\SDK\Model\EInvoicing\V1\BatchSearch](docs/EInvoicing/V1/BatchSearch.md) + - [Avalara\SDK\Model\EInvoicing\V1\BatchSearchListResponse](docs/EInvoicing/V1/BatchSearchListResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\BatchSearchParticipants202Response](docs/EInvoicing/V1/BatchSearchParticipants202Response.md) + - [Avalara\SDK\Model\EInvoicing\V1\ConditionalForField](docs/EInvoicing/V1/ConditionalForField.md) + - [Avalara\SDK\Model\EInvoicing\V1\DataInputField](docs/EInvoicing/V1/DataInputField.md) + - [Avalara\SDK\Model\EInvoicing\V1\DataInputFieldNotUsedFor](docs/EInvoicing/V1/DataInputFieldNotUsedFor.md) + - [Avalara\SDK\Model\EInvoicing\V1\DataInputFieldOptionalFor](docs/EInvoicing/V1/DataInputFieldOptionalFor.md) + - [Avalara\SDK\Model\EInvoicing\V1\DataInputFieldRequiredFor](docs/EInvoicing/V1/DataInputFieldRequiredFor.md) + - [Avalara\SDK\Model\EInvoicing\V1\DataInputFieldsResponse](docs/EInvoicing/V1/DataInputFieldsResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponse](docs/EInvoicing/V1/DirectorySearchResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInner](docs/EInvoicing/V1/DirectorySearchResponseValueInner.md) + - [Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerAddressesInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerAddressesInner.md) + - [Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerIdentifiersInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.md) + - [Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerSupportedDocumentTypesInner](docs/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentFetch](docs/EInvoicing/V1/DocumentFetch.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentListResponse](docs/EInvoicing/V1/DocumentListResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentStatusResponse](docs/EInvoicing/V1/DocumentStatusResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentSubmissionError](docs/EInvoicing/V1/DocumentSubmissionError.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentSubmitResponse](docs/EInvoicing/V1/DocumentSubmitResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\DocumentSummary](docs/EInvoicing/V1/DocumentSummary.md) + - [Avalara\SDK\Model\EInvoicing\V1\ErrorResponse](docs/EInvoicing/V1/ErrorResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\EventId](docs/EInvoicing/V1/EventId.md) + - [Avalara\SDK\Model\EInvoicing\V1\EventMessage](docs/EInvoicing/V1/EventMessage.md) + - [Avalara\SDK\Model\EInvoicing\V1\EventPayload](docs/EInvoicing/V1/EventPayload.md) + - [Avalara\SDK\Model\EInvoicing\V1\EventSubscription](docs/EInvoicing/V1/EventSubscription.md) + - [Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequest](docs/EInvoicing/V1/FetchDocumentsRequest.md) + - [Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequestDataInner](docs/EInvoicing/V1/FetchDocumentsRequestDataInner.md) + - [Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequestMetadata](docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md) + - [Avalara\SDK\Model\EInvoicing\V1\ForbiddenError](docs/EInvoicing/V1/ForbiddenError.md) + - [Avalara\SDK\Model\EInvoicing\V1\HmacSignature](docs/EInvoicing/V1/HmacSignature.md) + - [Avalara\SDK\Model\EInvoicing\V1\HmacSignatureValue](docs/EInvoicing/V1/HmacSignatureValue.md) + - [Avalara\SDK\Model\EInvoicing\V1\Id](docs/EInvoicing/V1/Id.md) + - [Avalara\SDK\Model\EInvoicing\V1\InputDataFormats](docs/EInvoicing/V1/InputDataFormats.md) + - [Avalara\SDK\Model\EInvoicing\V1\InternalServerError](docs/EInvoicing/V1/InternalServerError.md) + - [Avalara\SDK\Model\EInvoicing\V1\Mandate](docs/EInvoicing/V1/Mandate.md) + - [Avalara\SDK\Model\EInvoicing\V1\MandateDataInputField](docs/EInvoicing/V1/MandateDataInputField.md) + - [Avalara\SDK\Model\EInvoicing\V1\MandateDataInputFieldNamespace](docs/EInvoicing/V1/MandateDataInputFieldNamespace.md) + - [Avalara\SDK\Model\EInvoicing\V1\MandatesResponse](docs/EInvoicing/V1/MandatesResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\NotFoundError](docs/EInvoicing/V1/NotFoundError.md) + - [Avalara\SDK\Model\EInvoicing\V1\NotUsedForField](docs/EInvoicing/V1/NotUsedForField.md) + - [Avalara\SDK\Model\EInvoicing\V1\OutputDataFormats](docs/EInvoicing/V1/OutputDataFormats.md) + - [Avalara\SDK\Model\EInvoicing\V1\Pagination](docs/EInvoicing/V1/Pagination.md) + - [Avalara\SDK\Model\EInvoicing\V1\RequiredWhenField](docs/EInvoicing/V1/RequiredWhenField.md) + - [Avalara\SDK\Model\EInvoicing\V1\Signature](docs/EInvoicing/V1/Signature.md) + - [Avalara\SDK\Model\EInvoicing\V1\SignatureSignature](docs/EInvoicing/V1/SignatureSignature.md) + - [Avalara\SDK\Model\EInvoicing\V1\SignatureValue](docs/EInvoicing/V1/SignatureValue.md) + - [Avalara\SDK\Model\EInvoicing\V1\SignatureValueSignature](docs/EInvoicing/V1/SignatureValueSignature.md) + - [Avalara\SDK\Model\EInvoicing\V1\StatusEvent](docs/EInvoicing/V1/StatusEvent.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubmitDocumentMetadata](docs/EInvoicing/V1/SubmitDocumentMetadata.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubmitInteropDocument202Response](docs/EInvoicing/V1/SubmitInteropDocument202Response.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubscriptionCommon](docs/EInvoicing/V1/SubscriptionCommon.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubscriptionDetail](docs/EInvoicing/V1/SubscriptionDetail.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubscriptionListResponse](docs/EInvoicing/V1/SubscriptionListResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\SubscriptionRegistration](docs/EInvoicing/V1/SubscriptionRegistration.md) + - [Avalara\SDK\Model\EInvoicing\V1\SuccessResponse](docs/EInvoicing/V1/SuccessResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\WebhookInvocation](docs/EInvoicing/V1/WebhookInvocation.md) + - [Avalara\SDK\Model\EInvoicing\V1\WebhooksErrorInfo](docs/EInvoicing/V1/WebhooksErrorInfo.md) + - [Avalara\SDK\Model\EInvoicing\V1\WebhooksErrorResponse](docs/EInvoicing/V1/WebhooksErrorResponse.md) + - [Avalara\SDK\Model\EInvoicing\V1\WorkflowIds](docs/EInvoicing/V1/WorkflowIds.md) ### A1099 V2 Model Documentation - - [AvalaraSDK\ModelA1099V2\Attribute](docs/A1099/V2/Attribute.md) - - [AvalaraSDK\ModelA1099V2\AuthorizedApiRequestModel](docs/A1099/V2/AuthorizedApiRequestModel.md) - - [AvalaraSDK\ModelA1099V2\AuthorizedApiRequestV2DataModel](docs/A1099/V2/AuthorizedApiRequestV2DataModel.md) - - [AvalaraSDK\ModelA1099V2\BaseCompanyModel](docs/A1099/V2/BaseCompanyModel.md) - - [AvalaraSDK\ModelA1099V2\BaseFormListRequest](docs/A1099/V2/BaseFormListRequest.md) - - [AvalaraSDK\ModelA1099V2\BulkUpsert1099FormsRequest](docs/A1099/V2/BulkUpsert1099FormsRequest.md) - - [AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel](docs/A1099/V2/CompanyCreateUpdateRequestModel.md) - - [AvalaraSDK\ModelA1099V2\CompanyModel](docs/A1099/V2/CompanyModel.md) - - [AvalaraSDK\ModelA1099V2\CompanyResponse](docs/A1099/V2/CompanyResponse.md) - - [AvalaraSDK\ModelA1099V2\CompanyResponseModel](docs/A1099/V2/CompanyResponseModel.md) - - [AvalaraSDK\ModelA1099V2\CoveredIndividualReference](docs/A1099/V2/CoveredIndividualReference.md) - - [AvalaraSDK\ModelA1099V2\CoveredIndividualRequest](docs/A1099/V2/CoveredIndividualRequest.md) - - [AvalaraSDK\ModelA1099V2\Data](docs/A1099/V2/Data.md) - - [AvalaraSDK\ModelA1099V2\ErrorModel](docs/A1099/V2/ErrorModel.md) - - [AvalaraSDK\ModelA1099V2\ErrorResponse](docs/A1099/V2/ErrorResponse.md) - - [AvalaraSDK\ModelA1099V2\ErrorResponseErrorsInner](docs/A1099/V2/ErrorResponseErrorsInner.md) - - [AvalaraSDK\ModelA1099V2\Form1095B](docs/A1099/V2/Form1095B.md) - - [AvalaraSDK\ModelA1099V2\Form1095BList](docs/A1099/V2/Form1095BList.md) - - [AvalaraSDK\ModelA1099V2\Form1095BListItem](docs/A1099/V2/Form1095BListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1095BRequest](docs/A1099/V2/Form1095BRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099Base](docs/A1099/V2/Form1099Base.md) - - [AvalaraSDK\ModelA1099V2\Form1099DivList](docs/A1099/V2/Form1099DivList.md) - - [AvalaraSDK\ModelA1099V2\Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099DivResponse](docs/A1099/V2/Form1099DivResponse.md) - - [AvalaraSDK\ModelA1099V2\Form1099K](docs/A1099/V2/Form1099K.md) - - [AvalaraSDK\ModelA1099V2\Form1099KList](docs/A1099/V2/Form1099KList.md) - - [AvalaraSDK\ModelA1099V2\Form1099KListItem](docs/A1099/V2/Form1099KListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1099KRequest](docs/A1099/V2/Form1099KRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099List](docs/A1099/V2/Form1099List.md) - - [AvalaraSDK\ModelA1099V2\Form1099Misc](docs/A1099/V2/Form1099Misc.md) - - [AvalaraSDK\ModelA1099V2\Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) - - [AvalaraSDK\ModelA1099V2\Form1099MiscListItem](docs/A1099/V2/Form1099MiscListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1099MiscRequest](docs/A1099/V2/Form1099MiscRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099MiscResponse](docs/A1099/V2/Form1099MiscResponse.md) - - [AvalaraSDK\ModelA1099V2\Form1099Nec](docs/A1099/V2/Form1099Nec.md) - - [AvalaraSDK\ModelA1099V2\Form1099NecList](docs/A1099/V2/Form1099NecList.md) - - [AvalaraSDK\ModelA1099V2\Form1099NecListItem](docs/A1099/V2/Form1099NecListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1099NecRequest](docs/A1099/V2/Form1099NecRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099NecResponse](docs/A1099/V2/Form1099NecResponse.md) - - [AvalaraSDK\ModelA1099V2\Form1099ProccessResult](docs/A1099/V2/Form1099ProccessResult.md) - - [AvalaraSDK\ModelA1099V2\Form1099R](docs/A1099/V2/Form1099R.md) - - [AvalaraSDK\ModelA1099V2\Form1099RList](docs/A1099/V2/Form1099RList.md) - - [AvalaraSDK\ModelA1099V2\Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) - - [AvalaraSDK\ModelA1099V2\Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) - - [AvalaraSDK\ModelA1099V2\Form1099StatusDetail](docs/A1099/V2/Form1099StatusDetail.md) - - [AvalaraSDK\ModelA1099V2\FormRequestBase](docs/A1099/V2/FormRequestBase.md) - - [AvalaraSDK\ModelA1099V2\FormRequestCsvBase](docs/A1099/V2/FormRequestCsvBase.md) - - [AvalaraSDK\ModelA1099V2\FormResponseBase](docs/A1099/V2/FormResponseBase.md) - - [AvalaraSDK\ModelA1099V2\FormSingleRequestBase](docs/A1099/V2/FormSingleRequestBase.md) - - [AvalaraSDK\ModelA1099V2\Get1099Form200Response](docs/A1099/V2/Get1099Form200Response.md) - - [AvalaraSDK\ModelA1099V2\HttpValidationProblemDetails](docs/A1099/V2/HttpValidationProblemDetails.md) - - [AvalaraSDK\ModelA1099V2\ICreateForm1099Request](docs/A1099/V2/ICreateForm1099Request.md) - - [AvalaraSDK\ModelA1099V2\IUpdateForm1099Request](docs/A1099/V2/IUpdateForm1099Request.md) - - [AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf](docs/A1099/V2/IW9FormDataModelsOneOf.md) - - [AvalaraSDK\ModelA1099V2\IncludedBase](docs/A1099/V2/IncludedBase.md) - - [AvalaraSDK\ModelA1099V2\IssuerCommand](docs/A1099/V2/IssuerCommand.md) - - [AvalaraSDK\ModelA1099V2\IssuerResponse](docs/A1099/V2/IssuerResponse.md) - - [AvalaraSDK\ModelA1099V2\JobResult](docs/A1099/V2/JobResult.md) - - [AvalaraSDK\ModelA1099V2\Link](docs/A1099/V2/Link.md) - - [AvalaraSDK\ModelA1099V2\PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) - - [AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) - - [AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) - - [AvalaraSDK\ModelA1099V2\PaginatedW9FormsModel](docs/A1099/V2/PaginatedW9FormsModel.md) - - [AvalaraSDK\ModelA1099V2\ProblemDetails](docs/A1099/V2/ProblemDetails.md) - - [AvalaraSDK\ModelA1099V2\StateAndLocalWithholding](docs/A1099/V2/StateAndLocalWithholding.md) - - [AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest](docs/A1099/V2/StateAndLocalWithholdingRequest.md) - - [AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse](docs/A1099/V2/StateAndLocalWithholdingResponse.md) - - [AvalaraSDK\ModelA1099V2\StateEfileStatusDetail](docs/A1099/V2/StateEfileStatusDetail.md) - - [AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp](docs/A1099/V2/StateEfileStatusDetailApp.md) - - [AvalaraSDK\ModelA1099V2\StatusDetail](docs/A1099/V2/StatusDetail.md) - - [AvalaraSDK\ModelA1099V2\SubstantialUsOwnerResponse](docs/A1099/V2/SubstantialUsOwnerResponse.md) - - [AvalaraSDK\ModelA1099V2\Update1099Form200Response](docs/A1099/V2/Update1099Form200Response.md) - - [AvalaraSDK\ModelA1099V2\ValidationError](docs/A1099/V2/ValidationError.md) - - [AvalaraSDK\ModelA1099V2\ValidationErrorApp](docs/A1099/V2/ValidationErrorApp.md) - - [AvalaraSDK\ModelA1099V2\W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) - - [AvalaraSDK\ModelA1099V2\W4FormResponse](docs/A1099/V2/W4FormResponse.md) - - [AvalaraSDK\ModelA1099V2\W8BenEFormResponse](docs/A1099/V2/W8BenEFormResponse.md) - - [AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel](docs/A1099/V2/W8BenESubstantialUsOwnerDataModel.md) - - [AvalaraSDK\ModelA1099V2\W8BenFormDataModel](docs/A1099/V2/W8BenFormDataModel.md) - - [AvalaraSDK\ModelA1099V2\W8BenFormResponse](docs/A1099/V2/W8BenFormResponse.md) - - [AvalaraSDK\ModelA1099V2\W8BeneFormDataModel](docs/A1099/V2/W8BeneFormDataModel.md) - - [AvalaraSDK\ModelA1099V2\W8ImyFormDataModel](docs/A1099/V2/W8ImyFormDataModel.md) - - [AvalaraSDK\ModelA1099V2\W8ImyFormResponse](docs/A1099/V2/W8ImyFormResponse.md) - - [AvalaraSDK\ModelA1099V2\W9FormBaseResponse](docs/A1099/V2/W9FormBaseResponse.md) - - [AvalaraSDK\ModelA1099V2\W9FormDataModel](docs/A1099/V2/W9FormDataModel.md) - - [AvalaraSDK\ModelA1099V2\W9FormResponse](docs/A1099/V2/W9FormResponse.md) + - [Avalara\SDK\Model\A1099\V2\Attribute](docs/A1099/V2/Attribute.md) + - [Avalara\SDK\Model\A1099\V2\AuthorizedApiRequestModel](docs/A1099/V2/AuthorizedApiRequestModel.md) + - [Avalara\SDK\Model\A1099\V2\AuthorizedApiRequestV2DataModel](docs/A1099/V2/AuthorizedApiRequestV2DataModel.md) + - [Avalara\SDK\Model\A1099\V2\BaseCompanyModel](docs/A1099/V2/BaseCompanyModel.md) + - [Avalara\SDK\Model\A1099\V2\BaseFormListRequest](docs/A1099/V2/BaseFormListRequest.md) + - [Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest](docs/A1099/V2/BulkUpsert1099FormsRequest.md) + - [Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel](docs/A1099/V2/CompanyCreateUpdateRequestModel.md) + - [Avalara\SDK\Model\A1099\V2\CompanyModel](docs/A1099/V2/CompanyModel.md) + - [Avalara\SDK\Model\A1099\V2\CompanyResponse](docs/A1099/V2/CompanyResponse.md) + - [Avalara\SDK\Model\A1099\V2\CompanyResponseModel](docs/A1099/V2/CompanyResponseModel.md) + - [Avalara\SDK\Model\A1099\V2\CoveredIndividualReference](docs/A1099/V2/CoveredIndividualReference.md) + - [Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest](docs/A1099/V2/CoveredIndividualRequest.md) + - [Avalara\SDK\Model\A1099\V2\Data](docs/A1099/V2/Data.md) + - [Avalara\SDK\Model\A1099\V2\ErrorModel](docs/A1099/V2/ErrorModel.md) + - [Avalara\SDK\Model\A1099\V2\ErrorResponse](docs/A1099/V2/ErrorResponse.md) + - [Avalara\SDK\Model\A1099\V2\ErrorResponseErrorsInner](docs/A1099/V2/ErrorResponseErrorsInner.md) + - [Avalara\SDK\Model\A1099\V2\Form1095B](docs/A1099/V2/Form1095B.md) + - [Avalara\SDK\Model\A1099\V2\Form1095BList](docs/A1099/V2/Form1095BList.md) + - [Avalara\SDK\Model\A1099\V2\Form1095BListItem](docs/A1099/V2/Form1095BListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1095BRequest](docs/A1099/V2/Form1095BRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099Base](docs/A1099/V2/Form1099Base.md) + - [Avalara\SDK\Model\A1099\V2\Form1099DivList](docs/A1099/V2/Form1099DivList.md) + - [Avalara\SDK\Model\A1099\V2\Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099DivResponse](docs/A1099/V2/Form1099DivResponse.md) + - [Avalara\SDK\Model\A1099\V2\Form1099K](docs/A1099/V2/Form1099K.md) + - [Avalara\SDK\Model\A1099\V2\Form1099KList](docs/A1099/V2/Form1099KList.md) + - [Avalara\SDK\Model\A1099\V2\Form1099KListItem](docs/A1099/V2/Form1099KListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099KRequest](docs/A1099/V2/Form1099KRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099List](docs/A1099/V2/Form1099List.md) + - [Avalara\SDK\Model\A1099\V2\Form1099Misc](docs/A1099/V2/Form1099Misc.md) + - [Avalara\SDK\Model\A1099\V2\Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) + - [Avalara\SDK\Model\A1099\V2\Form1099MiscListItem](docs/A1099/V2/Form1099MiscListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099MiscRequest](docs/A1099/V2/Form1099MiscRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099MiscResponse](docs/A1099/V2/Form1099MiscResponse.md) + - [Avalara\SDK\Model\A1099\V2\Form1099Nec](docs/A1099/V2/Form1099Nec.md) + - [Avalara\SDK\Model\A1099\V2\Form1099NecList](docs/A1099/V2/Form1099NecList.md) + - [Avalara\SDK\Model\A1099\V2\Form1099NecListItem](docs/A1099/V2/Form1099NecListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099NecRequest](docs/A1099/V2/Form1099NecRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099NecResponse](docs/A1099/V2/Form1099NecResponse.md) + - [Avalara\SDK\Model\A1099\V2\Form1099ProccessResult](docs/A1099/V2/Form1099ProccessResult.md) + - [Avalara\SDK\Model\A1099\V2\Form1099R](docs/A1099/V2/Form1099R.md) + - [Avalara\SDK\Model\A1099\V2\Form1099RList](docs/A1099/V2/Form1099RList.md) + - [Avalara\SDK\Model\A1099\V2\Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099StatusDetail](docs/A1099/V2/Form1099StatusDetail.md) + - [Avalara\SDK\Model\A1099\V2\FormRequestBase](docs/A1099/V2/FormRequestBase.md) + - [Avalara\SDK\Model\A1099\V2\FormRequestCsvBase](docs/A1099/V2/FormRequestCsvBase.md) + - [Avalara\SDK\Model\A1099\V2\FormResponseBase](docs/A1099/V2/FormResponseBase.md) + - [Avalara\SDK\Model\A1099\V2\FormSingleRequestBase](docs/A1099/V2/FormSingleRequestBase.md) + - [Avalara\SDK\Model\A1099\V2\Get1099Form200Response](docs/A1099/V2/Get1099Form200Response.md) + - [Avalara\SDK\Model\A1099\V2\HttpValidationProblemDetails](docs/A1099/V2/HttpValidationProblemDetails.md) + - [Avalara\SDK\Model\A1099\V2\ICreateForm1099Request](docs/A1099/V2/ICreateForm1099Request.md) + - [Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request](docs/A1099/V2/IUpdateForm1099Request.md) + - [Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf](docs/A1099/V2/IW9FormDataModelsOneOf.md) + - [Avalara\SDK\Model\A1099\V2\IncludedBase](docs/A1099/V2/IncludedBase.md) + - [Avalara\SDK\Model\A1099\V2\IssuerCommand](docs/A1099/V2/IssuerCommand.md) + - [Avalara\SDK\Model\A1099\V2\IssuerResponse](docs/A1099/V2/IssuerResponse.md) + - [Avalara\SDK\Model\A1099\V2\JobResult](docs/A1099/V2/JobResult.md) + - [Avalara\SDK\Model\A1099\V2\Link](docs/A1099/V2/Link.md) + - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) + - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) + - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) + - [Avalara\SDK\Model\A1099\V2\PaginatedW9FormsModel](docs/A1099/V2/PaginatedW9FormsModel.md) + - [Avalara\SDK\Model\A1099\V2\ProblemDetails](docs/A1099/V2/ProblemDetails.md) + - [Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding](docs/A1099/V2/StateAndLocalWithholding.md) + - [Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest](docs/A1099/V2/StateAndLocalWithholdingRequest.md) + - [Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse](docs/A1099/V2/StateAndLocalWithholdingResponse.md) + - [Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail](docs/A1099/V2/StateEfileStatusDetail.md) + - [Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp](docs/A1099/V2/StateEfileStatusDetailApp.md) + - [Avalara\SDK\Model\A1099\V2\StatusDetail](docs/A1099/V2/StatusDetail.md) + - [Avalara\SDK\Model\A1099\V2\SubstantialUsOwnerResponse](docs/A1099/V2/SubstantialUsOwnerResponse.md) + - [Avalara\SDK\Model\A1099\V2\Update1099Form200Response](docs/A1099/V2/Update1099Form200Response.md) + - [Avalara\SDK\Model\A1099\V2\ValidationError](docs/A1099/V2/ValidationError.md) + - [Avalara\SDK\Model\A1099\V2\ValidationErrorApp](docs/A1099/V2/ValidationErrorApp.md) + - [Avalara\SDK\Model\A1099\V2\W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W4FormResponse](docs/A1099/V2/W4FormResponse.md) + - [Avalara\SDK\Model\A1099\V2\W8BenEFormResponse](docs/A1099/V2/W8BenEFormResponse.md) + - [Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel](docs/A1099/V2/W8BenESubstantialUsOwnerDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W8BenFormDataModel](docs/A1099/V2/W8BenFormDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W8BenFormResponse](docs/A1099/V2/W8BenFormResponse.md) + - [Avalara\SDK\Model\A1099\V2\W8BeneFormDataModel](docs/A1099/V2/W8BeneFormDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W8ImyFormDataModel](docs/A1099/V2/W8ImyFormDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W8ImyFormResponse](docs/A1099/V2/W8ImyFormResponse.md) + - [Avalara\SDK\Model\A1099\V2\W9FormBaseResponse](docs/A1099/V2/W9FormBaseResponse.md) + - [Avalara\SDK\Model\A1099\V2\W9FormDataModel](docs/A1099/V2/W9FormDataModel.md) + - [Avalara\SDK\Model\A1099\V2\W9FormResponse](docs/A1099/V2/W9FormResponse.md) diff --git a/docs/A1099/BulkUpsert1099FormsRequest.md b/docs/A1099/BulkUpsert1099FormsRequest.md index 9861ff3..e296904 100644 --- a/docs/A1099/BulkUpsert1099FormsRequest.md +++ b/docs/A1099/BulkUpsert1099FormsRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099RListItem[]**](Form1099RListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099RListItem[]**](Form1099RListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Data.md b/docs/A1099/Data.md index dd17b36..bfc2313 100644 --- a/docs/A1099/Data.md +++ b/docs/A1099/Data.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **string** | | [optional] **type** | **string** | | [optional] -**attributes** | [**\AvalaraSDK\ModelA1099V2\Attribute**](Attribute.md) | | [optional] -**links** | [**\AvalaraSDK\ModelA1099V2\Link**](Link.md) | | [optional] +**attributes** | [**\Avalara\SDK\Model\A1099\V2\Attribute**](Attribute.md) | | [optional] +**links** | [**\Avalara\SDK\Model\A1099\V2\Link**](Link.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/ErrorResponse.md b/docs/A1099/ErrorResponse.md index 6b24a67..78d00a4 100644 --- a/docs/A1099/ErrorResponse.md +++ b/docs/A1099/ErrorResponse.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **string** | | [optional] -**errors** | [**\AvalaraSDK\ModelA1099V2\ErrorResponseErrorsInner[]**](ErrorResponseErrorsInner.md) | | [optional] +**errors** | [**\Avalara\SDK\Model\A1099\V2\ErrorResponseErrorsInner[]**](ErrorResponseErrorsInner.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1095B.md b/docs/A1099/Form1095B.md index 9ac119e..60f809c 100644 --- a/docs/A1099/Form1095B.md +++ b/docs/A1099/Form1095B.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **origin_of_health_coverage_code** | **string** | | [optional] -**covered_individuals** | [**\AvalaraSDK\ModelA1099V2\CoveredIndividualReference[]**](CoveredIndividualReference.md) | | [optional] +**covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]**](CoveredIndividualReference.md) | | [optional] **id** | **string** | | [optional] **type** | **string** | | [optional] **issuer_id** | **int** | | [optional] @@ -13,15 +13,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -35,9 +35,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1095BList.md b/docs/A1099/Form1095BList.md index aa296b6..36ca53a 100644 --- a/docs/A1099/Form1095BList.md +++ b/docs/A1099/Form1095BList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1095BListItem[]**](Form1095BListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1095BListItem[]**](Form1095BListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1095BListItem.md b/docs/A1099/Form1095BListItem.md index 30c683b..1c4579e 100644 --- a/docs/A1099/Form1095BListItem.md +++ b/docs/A1099/Form1095BListItem.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **employee_name_suffix** | **string** | | [optional] **employee_date_of_birth** | **\DateTime** | | [optional] **origin_of_health_coverage_code** | **string** | | [optional] -**covered_individuals** | [**\AvalaraSDK\ModelA1099V2\CoveredIndividualRequest[]**](CoveredIndividualRequest.md) | | [optional] +**covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]**](CoveredIndividualRequest.md) | | [optional] **issuer_id** | **string** | | [optional] **reference_id** | **string** | | [optional] **recipient_name** | **string** | | [optional] @@ -32,6 +32,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1095BRequest.md b/docs/A1099/Form1095BRequest.md index 5240269..f58bc1f 100644 --- a/docs/A1099/Form1095BRequest.md +++ b/docs/A1099/Form1095BRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **employee_name_suffix** | **string** | | [optional] **employee_date_of_birth** | **\DateTime** | | [optional] **origin_of_health_coverage_code** | **string** | | [optional] -**covered_individuals** | [**\AvalaraSDK\ModelA1099V2\CoveredIndividualRequest[]**](CoveredIndividualRequest.md) | | [optional] +**covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]**](CoveredIndividualRequest.md) | | [optional] **type** | **string** | | [optional] [readonly] **issuer_id** | **string** | | [optional] **reference_id** | **string** | | [optional] @@ -33,6 +33,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099Base.md b/docs/A1099/Form1099Base.md index 1a56147..cec3867 100644 --- a/docs/A1099/Form1099Base.md +++ b/docs/A1099/Form1099Base.md @@ -11,15 +11,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -33,9 +33,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099DivList.md b/docs/A1099/Form1099DivList.md index b45e2cf..2fd77fe 100644 --- a/docs/A1099/Form1099DivList.md +++ b/docs/A1099/Form1099DivList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099DivListItem[]**](Form1099DivListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099DivListItem[]**](Form1099DivListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099DivListItem.md b/docs/A1099/Form1099DivListItem.md index 3c4de8d..6331ea2 100644 --- a/docs/A1099/Form1099DivListItem.md +++ b/docs/A1099/Form1099DivListItem.md @@ -47,6 +47,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099DivRequest.md b/docs/A1099/Form1099DivRequest.md index 747aa7c..979c0b4 100644 --- a/docs/A1099/Form1099DivRequest.md +++ b/docs/A1099/Form1099DivRequest.md @@ -45,6 +45,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099DivResponse.md b/docs/A1099/Form1099DivResponse.md index 3a52826..bed8e61 100644 --- a/docs/A1099/Form1099DivResponse.md +++ b/docs/A1099/Form1099DivResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] **user_id** | **string** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] **issuer_id** | **string** | | [optional] @@ -34,11 +34,11 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099K.md b/docs/A1099/Form1099K.md index 60b8727..1fce42e 100644 --- a/docs/A1099/Form1099K.md +++ b/docs/A1099/Form1099K.md @@ -31,15 +31,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -53,9 +53,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099KList.md b/docs/A1099/Form1099KList.md index 35af9b5..287a4ec 100644 --- a/docs/A1099/Form1099KList.md +++ b/docs/A1099/Form1099KList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099KListItem[]**](Form1099KListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099KListItem[]**](Form1099KListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099KListItem.md b/docs/A1099/Form1099KListItem.md index e800a07..5dc6404 100644 --- a/docs/A1099/Form1099KListItem.md +++ b/docs/A1099/Form1099KListItem.md @@ -48,6 +48,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099KRequest.md b/docs/A1099/Form1099KRequest.md index c880939..edbd863 100644 --- a/docs/A1099/Form1099KRequest.md +++ b/docs/A1099/Form1099KRequest.md @@ -46,6 +46,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099List.md b/docs/A1099/Form1099List.md index 316a822..d4bceb3 100644 --- a/docs/A1099/Form1099List.md +++ b/docs/A1099/Form1099List.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**\AvalaraSDK\ModelA1099V2\Get1099Form200Response[]**](Get1099Form200Response.md) | | [optional] +**data** | [**\Avalara\SDK\Model\A1099\V2\Get1099Form200Response[]**](Get1099Form200Response.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099Misc.md b/docs/A1099/Form1099Misc.md index 6c0114b..1680a88 100644 --- a/docs/A1099/Form1099Misc.md +++ b/docs/A1099/Form1099Misc.md @@ -25,15 +25,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -47,9 +47,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099MiscList.md b/docs/A1099/Form1099MiscList.md index 4d50695..2fb223d 100644 --- a/docs/A1099/Form1099MiscList.md +++ b/docs/A1099/Form1099MiscList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099MiscListItem[]**](Form1099MiscListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099MiscListItem[]**](Form1099MiscListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099MiscListItem.md b/docs/A1099/Form1099MiscListItem.md index 799576d..f13a421 100644 --- a/docs/A1099/Form1099MiscListItem.md +++ b/docs/A1099/Form1099MiscListItem.md @@ -44,6 +44,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099MiscRequest.md b/docs/A1099/Form1099MiscRequest.md index 6da1024..8c5dac3 100644 --- a/docs/A1099/Form1099MiscRequest.md +++ b/docs/A1099/Form1099MiscRequest.md @@ -42,6 +42,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099MiscResponse.md b/docs/A1099/Form1099MiscResponse.md index 17b6da5..f5cc534 100644 --- a/docs/A1099/Form1099MiscResponse.md +++ b/docs/A1099/Form1099MiscResponse.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] **user_id** | **string** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] **issuer_id** | **string** | | [optional] @@ -50,11 +50,11 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099Nec.md b/docs/A1099/Form1099Nec.md index 984a347..5b584a6 100644 --- a/docs/A1099/Form1099Nec.md +++ b/docs/A1099/Form1099Nec.md @@ -14,15 +14,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -36,9 +36,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099NecList.md b/docs/A1099/Form1099NecList.md index 9dd8381..ea7f36e 100644 --- a/docs/A1099/Form1099NecList.md +++ b/docs/A1099/Form1099NecList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099NecListItem[]**](Form1099NecListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099NecListItem[]**](Form1099NecListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099NecListItem.md b/docs/A1099/Form1099NecListItem.md index 03c7761..0de38a7 100644 --- a/docs/A1099/Form1099NecListItem.md +++ b/docs/A1099/Form1099NecListItem.md @@ -32,6 +32,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099NecRequest.md b/docs/A1099/Form1099NecRequest.md index da51c2c..5042e99 100644 --- a/docs/A1099/Form1099NecRequest.md +++ b/docs/A1099/Form1099NecRequest.md @@ -30,6 +30,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099NecResponse.md b/docs/A1099/Form1099NecResponse.md index 339b8f7..3ab1d4e 100644 --- a/docs/A1099/Form1099NecResponse.md +++ b/docs/A1099/Form1099NecResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] **user_id** | **string** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] **issuer_id** | **string** | | [optional] @@ -38,11 +38,11 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099ProccessResult.md b/docs/A1099/Form1099ProccessResult.md index 87f7123..ec30f1f 100644 --- a/docs/A1099/Form1099ProccessResult.md +++ b/docs/A1099/Form1099ProccessResult.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**job_data** | [**\AvalaraSDK\ModelA1099V2\Data**](Data.md) | | [optional] +**job_data** | [**\Avalara\SDK\Model\A1099\V2\Data**](Data.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099R.md b/docs/A1099/Form1099R.md index 2ff82e0..0da0f5c 100644 --- a/docs/A1099/Form1099R.md +++ b/docs/A1099/Form1099R.md @@ -31,15 +31,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -53,9 +53,9 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099RList.md b/docs/A1099/Form1099RList.md index 915f2e0..9933afd 100644 --- a/docs/A1099/Form1099RList.md +++ b/docs/A1099/Form1099RList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**forms** | [**\AvalaraSDK\ModelA1099V2\Form1099RListItem[]**](Form1099RListItem.md) | | [optional] +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1099RListItem[]**](Form1099RListItem.md) | | [optional] **form_type** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099RListItem.md b/docs/A1099/Form1099RListItem.md index 27f76f4..317482b 100644 --- a/docs/A1099/Form1099RListItem.md +++ b/docs/A1099/Form1099RListItem.md @@ -48,6 +48,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099RRequest.md b/docs/A1099/Form1099RRequest.md index 9ef67f7..79b1cb0 100644 --- a/docs/A1099/Form1099RRequest.md +++ b/docs/A1099/Form1099RRequest.md @@ -46,6 +46,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/FormRequestBase.md b/docs/A1099/FormRequestBase.md index a6e73eb..2a1d2d8 100644 --- a/docs/A1099/FormRequestBase.md +++ b/docs/A1099/FormRequestBase.md @@ -25,6 +25,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/FormRequestCsvBase.md b/docs/A1099/FormRequestCsvBase.md index e76c3a6..48c6118 100644 --- a/docs/A1099/FormRequestCsvBase.md +++ b/docs/A1099/FormRequestCsvBase.md @@ -28,6 +28,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/FormResponseBase.md b/docs/A1099/FormResponseBase.md index dce0660..4df475f 100644 --- a/docs/A1099/FormResponseBase.md +++ b/docs/A1099/FormResponseBase.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] **user_id** | **string** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] **issuer_id** | **string** | | [optional] @@ -34,11 +34,11 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/FormSingleRequestBase.md b/docs/A1099/FormSingleRequestBase.md index 6dd3209..55807e2 100644 --- a/docs/A1099/FormSingleRequestBase.md +++ b/docs/A1099/FormSingleRequestBase.md @@ -26,6 +26,6 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Get1099Form200Response.md b/docs/A1099/Get1099Form200Response.md index a131593..1e87a12 100644 --- a/docs/A1099/Get1099Form200Response.md +++ b/docs/A1099/Get1099Form200Response.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **origin_of_health_coverage_code** | **string** | | [optional] -**covered_individuals** | [**\AvalaraSDK\ModelA1099V2\CoveredIndividualReference[]**](CoveredIndividualReference.md) | | [optional] +**covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]**](CoveredIndividualReference.md) | | [optional] **id** | **string** | | [optional] **type** | **string** | | [optional] **issuer_id** | **int** | | [optional] @@ -13,15 +13,15 @@ Name | Type | Description | Notes **issuer_tin** | **string** | | [optional] **tax_year** | **int** | | [optional] **federal_efile** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **state_efile** | **bool** | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]**](StateEfileStatusDetail.md) | | [optional] **postal_mail** | **bool** | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **tin_match** | **bool** | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **address_verification** | **bool** | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail**](Form1099StatusDetail.md) | | [optional] **reference_id** | **string** | | [optional] **email** | **string** | | [optional] **tin_type** | **string** | | [optional] @@ -35,10 +35,10 @@ Name | Type | Description | Notes **zip** | **string** | | [optional] **foreign_province** | **string** | | [optional] **country_code** | **string** | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationError[]**](ValidationError.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationError[]**](ValidationError.md) | | [optional] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding**](StateAndLocalWithholding.md) | | [optional] **filer_type** | **string** | | [optional] **payment_type** | **string** | | [optional] **payment_settlement_entity_name_phone_number** | **string** | | [optional] diff --git a/docs/A1099/ICreateForm1099Request.md b/docs/A1099/ICreateForm1099Request.md index 13a2fe9..9b8fecc 100644 --- a/docs/A1099/ICreateForm1099Request.md +++ b/docs/A1099/ICreateForm1099Request.md @@ -45,7 +45,7 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] **second_tin_notice** | **bool** | | [optional] **rents** | **float** | | [optional] **royalties** | **float** | | [optional] diff --git a/docs/A1099/IUpdateForm1099Request.md b/docs/A1099/IUpdateForm1099Request.md index 526f9fe..47f8e68 100644 --- a/docs/A1099/IUpdateForm1099Request.md +++ b/docs/A1099/IUpdateForm1099Request.md @@ -45,7 +45,7 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | | [optional] **second_tin_notice** | **bool** | | [optional] **rents** | **float** | | [optional] **royalties** | **float** | | [optional] diff --git a/docs/A1099/IW9FormDataModelsOneOf.md b/docs/A1099/IW9FormDataModelsOneOf.md index 2dcc10e..05a4e31 100644 --- a/docs/A1099/IW9FormDataModelsOneOf.md +++ b/docs/A1099/IW9FormDataModelsOneOf.md @@ -123,7 +123,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **birthday** | **string** | The birthday of the individual associated with the form. | [optional] **foreign_tin_not_required** | **bool** | Indicates whether a foreign TIN is not required. | [optional] **archived** | **bool** | Indicates whether the form is archived. | [optional] diff --git a/docs/A1099/PaginatedQueryResultModelCompanyResponse.md b/docs/A1099/PaginatedQueryResultModelCompanyResponse.md index 0e8a24f..077bb96 100644 --- a/docs/A1099/PaginatedQueryResultModelCompanyResponse.md +++ b/docs/A1099/PaginatedQueryResultModelCompanyResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **int** | | [optional] -**value** | [**\AvalaraSDK\ModelA1099V2\CompanyResponse[]**](CompanyResponse.md) | | [optional] +**value** | [**\Avalara\SDK\Model\A1099\V2\CompanyResponse[]**](CompanyResponse.md) | | [optional] **at_next_link** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/PaginatedQueryResultModelIssuerResponse.md b/docs/A1099/PaginatedQueryResultModelIssuerResponse.md index f9255dd..2710693 100644 --- a/docs/A1099/PaginatedQueryResultModelIssuerResponse.md +++ b/docs/A1099/PaginatedQueryResultModelIssuerResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **int** | | [optional] -**value** | [**\AvalaraSDK\ModelA1099V2\IssuerResponse[]**](IssuerResponse.md) | | [optional] +**value** | [**\Avalara\SDK\Model\A1099\V2\IssuerResponse[]**](IssuerResponse.md) | | [optional] **at_next_link** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/PaginatedW9FormsModel.md b/docs/A1099/PaginatedW9FormsModel.md index a0b48c8..5c435cc 100644 --- a/docs/A1099/PaginatedW9FormsModel.md +++ b/docs/A1099/PaginatedW9FormsModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **int** | | [optional] -**value** | [**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf[]**](IW9FormDataModelsOneOf.md) | | [optional] +**value** | [**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf[]**](IW9FormDataModelsOneOf.md) | | [optional] **at_next_link** | **string** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Update1099Form200Response.md b/docs/A1099/Update1099Form200Response.md index 558b1c4..862f5d6 100644 --- a/docs/A1099/Update1099Form200Response.md +++ b/docs/A1099/Update1099Form200Response.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] **user_id** | **string** | | [optional] -**state_and_local_withholding** | [**\AvalaraSDK\ModelA1099V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] **issuer_id** | **string** | | [optional] @@ -34,12 +34,12 @@ Name | Type | Description | Notes **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] **address_verification** | **bool** | | [optional] -**federal_efile_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**state_efile_status** | [**\AvalaraSDK\ModelA1099V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] -**postal_mail_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**tin_match_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**address_verification_status** | [**\AvalaraSDK\ModelA1099V2\StatusDetail**](StatusDetail.md) | | [optional] -**validation_errors** | [**\AvalaraSDK\ModelA1099V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]**](StateEfileStatusDetailApp.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]**](ValidationErrorApp.md) | | [optional] **second_tin_notice** | **bool** | | [optional] **rents** | **float** | | [optional] **royalties** | **float** | | [optional] diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index 7b2060f..9c42862 100644 --- a/docs/A1099/V2/CompaniesW9Api.md +++ b/docs/A1099/V2/CompaniesW9Api.md @@ -1,4 +1,4 @@ -# AvalaraSDK\CompaniesW9Api +# Avalara\SDK\CompaniesW9Api All URIs are relative to https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/avalara1099. @@ -14,7 +14,7 @@ Method | HTTP request | Description ## `createCompany()` ```php -createCompany($avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model): \AvalaraSDK\ModelA1099V2\CompanyResponseModel +createCompany($avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model): \Avalara\SDK\Model\A1099\V2\CompanyResponseModel ``` Creates a new company @@ -37,12 +37,12 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\CompaniesW9Api($client); +$apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $avalara_version = 2.0; // string | API version -$x_correlation_id = a0ce1bca-7d94-4ead-9bdf-322bea7b002e; // string | Unique correlation Id in a GUID format +$x_correlation_id = f47d9c74-0d5c-4386-a948-3dbbb1e9c6cb; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$company_create_update_request_model = new \AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel(); // \AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel | The company to create +$company_create_update_request_model = new \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel(); // \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel | The company to create try { $result = $apiInstance->createCompany($avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model); @@ -59,11 +59,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **company_create_update_request_model** | [**\AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel**](../Model/CompanyCreateUpdateRequestModel.md)| The company to create | [optional] + **company_create_update_request_model** | [**\Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel**](../Model/CompanyCreateUpdateRequestModel.md)| The company to create | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\CompanyResponseModel**](../Model/CompanyResponseModel.md) +[**\Avalara\SDK\Model\A1099\V2\CompanyResponseModel**](../Model/CompanyResponseModel.md) ### Authorization @@ -104,11 +104,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\CompaniesW9Api($client); +$apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | The company to delete $avalara_version = 2.0; // string | API version -$x_correlation_id = eba441ae-1442-4d93-861c-21b57baf0ed1; // string | Unique correlation Id in a GUID format +$x_correlation_id = 6eb5c4e5-40c8-4756-a918-8b55d33b8ae8; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -147,7 +147,7 @@ void (empty response body) ## `getCompanies()` ```php -getCompanies($avalara_version, $filter, $top, $skip, $order_by, $count, $count_only, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelCompanyResponse +getCompanies($avalara_version, $filter, $top, $skip, $order_by, $count, $count_only, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelCompanyResponse ``` List companies @@ -170,7 +170,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\CompaniesW9Api($client); +$apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $avalara_version = 2.0; // string | API version $filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. @@ -179,7 +179,7 @@ $skip = 56; // int | If nonzero, skip this number of results before returning da $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | If true, return the global count of elements in the collection. $count_only = True; // bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. -$x_correlation_id = d4d272dd-0057-436c-aaa6-bf6b14437668; // string | Unique correlation Id in a GUID format +$x_correlation_id = 24c21277-5b54-4f25-96c0-99cd1c5c2be1; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -206,7 +206,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelCompanyResponse**](../Model/PaginatedQueryResultModelCompanyResponse.md) +[**\Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelCompanyResponse**](../Model/PaginatedQueryResultModelCompanyResponse.md) ### Authorization @@ -224,7 +224,7 @@ Name | Type | Description | Notes ## `getCompany()` ```php -getCompany($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\CompanyResponse +getCompany($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\CompanyResponse ``` Retrieve a company @@ -247,11 +247,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\CompaniesW9Api($client); +$apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | Id of the company $avalara_version = 2.0; // string | API version -$x_correlation_id = b74aff66-e358-4ece-9ba3-0ec9d2257b3d; // string | Unique correlation Id in a GUID format +$x_correlation_id = 731c9681-a7f2-4534-9e9f-41742bfe5144; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -273,7 +273,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\CompanyResponse**](../Model/CompanyResponse.md) +[**\Avalara\SDK\Model\A1099\V2\CompanyResponse**](../Model/CompanyResponse.md) ### Authorization @@ -291,7 +291,7 @@ Name | Type | Description | Notes ## `updateCompany()` ```php -updateCompany($id, $avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model): \AvalaraSDK\ModelA1099V2\CompanyResponseModel +updateCompany($id, $avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model): \Avalara\SDK\Model\A1099\V2\CompanyResponseModel ``` Update a company @@ -314,13 +314,13 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\CompaniesW9Api($client); +$apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | The ID of the company to update $avalara_version = 2.0; // string | API version -$x_correlation_id = 281dffca-bdf1-4ad5-a3ff-6ff7f0e1fd9e; // string | Unique correlation Id in a GUID format +$x_correlation_id = 82a494d7-3ce8-4d54-b705-1cd2cb128fb9; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$company_create_update_request_model = new \AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel(); // \AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel | The updated company data +$company_create_update_request_model = new \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel(); // \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel | The updated company data try { $result = $apiInstance->updateCompany($id, $avalara_version, $x_correlation_id, $x_avalara_client, $company_create_update_request_model); @@ -338,11 +338,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **company_create_update_request_model** | [**\AvalaraSDK\ModelA1099V2\CompanyCreateUpdateRequestModel**](../Model/CompanyCreateUpdateRequestModel.md)| The updated company data | [optional] + **company_create_update_request_model** | [**\Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel**](../Model/CompanyCreateUpdateRequestModel.md)| The updated company data | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\CompanyResponseModel**](../Model/CompanyResponseModel.md) +[**\Avalara\SDK\Model\A1099\V2\CompanyResponseModel**](../Model/CompanyResponseModel.md) ### Authorization diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index 530470f..f0f4dff 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -1,4 +1,4 @@ -# AvalaraSDK\Forms1099Api +# Avalara\SDK\Forms1099Api All URIs are relative to https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/avalara1099. @@ -16,7 +16,7 @@ Method | HTTP request | Description ## `bulkUpsert1099Forms()` ```php -bulkUpsert1099Forms($avalara_version, $dry_run, $x_correlation_id, $x_avalara_client, $bulk_upsert1099_forms_request): \AvalaraSDK\ModelA1099V2\Form1099ProccessResult +bulkUpsert1099Forms($avalara_version, $dry_run, $x_correlation_id, $x_avalara_client, $bulk_upsert1099_forms_request): \Avalara\SDK\Model\A1099\V2\Form1099ProccessResult ``` Creates or updates multiple 1099 forms. @@ -39,13 +39,13 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0; // string | API version $dry_run = false; // bool | -$x_correlation_id = 68fd61cc-a29a-4aca-b533-39596a3a0af1; // string | Unique correlation Id in a GUID format +$x_correlation_id = 2077ede9-37dd-485d-a027-dfa1c77d63fb; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$bulk_upsert1099_forms_request = new \AvalaraSDK\ModelA1099V2\BulkUpsert1099FormsRequest(); // \AvalaraSDK\ModelA1099V2\BulkUpsert1099FormsRequest | +$bulk_upsert1099_forms_request = new \Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest(); // \Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest | try { $result = $apiInstance->bulkUpsert1099Forms($avalara_version, $dry_run, $x_correlation_id, $x_avalara_client, $bulk_upsert1099_forms_request); @@ -63,11 +63,11 @@ Name | Type | Description | Notes **dry_run** | **bool**| | [optional] [default to false] **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **bulk_upsert1099_forms_request** | [**\AvalaraSDK\ModelA1099V2\BulkUpsert1099FormsRequest**](../Model/BulkUpsert1099FormsRequest.md)| | [optional] + **bulk_upsert1099_forms_request** | [**\Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest**](../Model/BulkUpsert1099FormsRequest.md)| | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\Form1099ProccessResult**](../Model/Form1099ProccessResult.md) +[**\Avalara\SDK\Model\A1099\V2\Form1099ProccessResult**](../Model/Form1099ProccessResult.md) ### Authorization @@ -85,7 +85,7 @@ Name | Type | Description | Notes ## `create1099Form()` ```php -create1099Form($avalara_version, $x_correlation_id, $x_avalara_client, $i_create_form1099_request): \AvalaraSDK\ModelA1099V2\Get1099Form200Response +create1099Form($avalara_version, $x_correlation_id, $x_avalara_client, $i_create_form1099_request): \Avalara\SDK\Model\A1099\V2\Get1099Form200Response ``` Creates a 1099 form. @@ -106,12 +106,12 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0; // string | API version -$x_correlation_id = d3e392e7-e6ce-40a1-b107-dc4a888bb95a; // string | Unique correlation Id in a GUID format +$x_correlation_id = 79967515-0a3a-4455-a656-451fca1ccc79; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$i_create_form1099_request = new \AvalaraSDK\ModelA1099V2\ICreateForm1099Request(); // \AvalaraSDK\ModelA1099V2\ICreateForm1099Request +$i_create_form1099_request = new \Avalara\SDK\Model\A1099\V2\ICreateForm1099Request(); // \Avalara\SDK\Model\A1099\V2\ICreateForm1099Request try { $result = $apiInstance->create1099Form($avalara_version, $x_correlation_id, $x_avalara_client, $i_create_form1099_request); @@ -128,11 +128,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **i_create_form1099_request** | [**\AvalaraSDK\ModelA1099V2\ICreateForm1099Request**](../Model/ICreateForm1099Request.md)| | [optional] + **i_create_form1099_request** | [**\Avalara\SDK\Model\A1099\V2\ICreateForm1099Request**](../Model/ICreateForm1099Request.md)| | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\Get1099Form200Response**](../Model/Get1099Form200Response.md) +[**\Avalara\SDK\Model\A1099\V2\Get1099Form200Response**](../Model/Get1099Form200Response.md) ### Authorization @@ -171,11 +171,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string | The unique identifier of the desired form to delete. $avalara_version = 2.0; // string | API version -$x_correlation_id = 997ad9ab-1483-41c4-83c6-99f97dd76100; // string | Unique correlation Id in a GUID format +$x_correlation_id = 9f1be630-1bef-4e22-b7fe-3de4d7505117; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -214,7 +214,7 @@ void (empty response body) ## `get1099Form()` ```php -get1099Form($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\Get1099Form200Response +get1099Form($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\Get1099Form200Response ``` Retrieves a 1099 form. @@ -235,11 +235,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string $avalara_version = 2.0; // string | API version -$x_correlation_id = d780bc3e-be4e-4142-a4f8-75ab192232b4; // string | Unique correlation Id in a GUID format +$x_correlation_id = 2345256f-fa77-4849-80b3-133afc8cb5c2; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -261,7 +261,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\Get1099Form200Response**](../Model/Get1099Form200Response.md) +[**\Avalara\SDK\Model\A1099\V2\Get1099Form200Response**](../Model/Get1099Form200Response.md) ### Authorization @@ -279,7 +279,7 @@ Name | Type | Description | Notes ## `get1099FormPdf()` ```php -get1099FormPdf($id, $avalara_version, $mark_edelivered, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\Update1099Form200Response +get1099FormPdf($id, $avalara_version, $mark_edelivered, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\Update1099Form200Response ``` Retrieves the PDF file for a single 1099 by form id. @@ -300,12 +300,12 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string | $avalara_version = 2.0; // string | API version $mark_edelivered = True; // bool | The parameter for marked e-delivered -$x_correlation_id = cb1fbb1a-a3f5-445e-894d-632c32f2e0a2; // string | Unique correlation Id in a GUID format +$x_correlation_id = ec2b2e74-7990-43f9-b68e-0a32e20abd1b; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -328,7 +328,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\Update1099Form200Response**](../Model/Update1099Form200Response.md) +[**\Avalara\SDK\Model\A1099\V2\Update1099Form200Response**](../Model/Update1099Form200Response.md) ### Authorization @@ -346,7 +346,7 @@ Name | Type | Description | Notes ## `list1099Forms()` ```php -list1099Forms($avalara_version, $filter, $top, $skip, $order_by, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\Form1099List +list1099Forms($avalara_version, $filter, $top, $skip, $order_by, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\Form1099List ``` Retrieves a list of 1099 forms based on query parameters. @@ -367,14 +367,14 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0; // string | API version $filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Collections support filtering only on certain fields. An attempt to filter on an unsupported field will receive a 400 Bad Request response. Supported filtering fields are as follows: issuerId issuerReferenceId taxYear addressVerificationStatus - possible values are: unknown, pending, failed, incomplete, unchanged, verified createdAt edeliveryStatus - possible values are: sent, unscheduled, bad_verify, bad_verify_limit, scheduled, bounced, accepted email federalEfileStatus - possible values are: unscheduled, scheduled, sent, corrected_scheduled, accepted, corrected, corrected_accepted, held recipientName mailStatus - possible values are: sent, unscheduled, pending, delivered referenceId tinMatchStatus - possible values are: none, pending, matched, failed type - possible values are: 940, 941, 943, 944, 945, 1042, 1042-S, 1095-B, 1095-C, 1097-BTC, 1098, 1098-C, 1098-E, 1098-Q, 1098-T, 3921, 3922, 5498, 5498-ESA, 5498-SA, 1099-MISC, 1099-A, 1099-B, 1099-C, 1099-CAP, 1099-DIV, 1099-G, 1099-INT, 1099-K, 1099-LS, 1099-LTC, 1099-NEC, 1099-OID, 1099-PATR, 1099-Q, 1099-R, 1099-S, 1099-SA, T4A, W-2, W-2G, 1099-HC updatedAt validity - possible values are: true, false $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. $skip = 0; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example issuerReferenceId ASC. Supported sorting fields are: issuerReferenceId taxYear createdAt recipientName updatedAt -$x_correlation_id = 8511e899-d0bc-4846-b6d2-5b651d439894; // string | Unique correlation Id in a GUID format +$x_correlation_id = 3be682bf-25f2-4c12-825b-dea22885d37f; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -399,7 +399,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\Form1099List**](../Model/Form1099List.md) +[**\Avalara\SDK\Model\A1099\V2\Form1099List**](../Model/Form1099List.md) ### Authorization @@ -417,7 +417,7 @@ Name | Type | Description | Notes ## `update1099Form()` ```php -update1099Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $i_update_form1099_request): \AvalaraSDK\ModelA1099V2\Update1099Form200Response +update1099Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $i_update_form1099_request): \Avalara\SDK\Model\A1099\V2\Update1099Form200Response ``` Updates a 1099 form. @@ -438,13 +438,13 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Forms1099Api($client); +$apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string $avalara_version = 2.0; // string | API version -$x_correlation_id = 04e899b6-cc2f-4f15-b34e-44ea5727bf2b; // string | Unique correlation Id in a GUID format +$x_correlation_id = d94e8c12-6cc3-4468-a739-68e9eba9138b; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$i_update_form1099_request = new \AvalaraSDK\ModelA1099V2\IUpdateForm1099Request(); // \AvalaraSDK\ModelA1099V2\IUpdateForm1099Request +$i_update_form1099_request = new \Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request(); // \Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request try { $result = $apiInstance->update1099Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $i_update_form1099_request); @@ -462,11 +462,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **i_update_form1099_request** | [**\AvalaraSDK\ModelA1099V2\IUpdateForm1099Request**](../Model/IUpdateForm1099Request.md)| | [optional] + **i_update_form1099_request** | [**\Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request**](../Model/IUpdateForm1099Request.md)| | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\Update1099Form200Response**](../Model/Update1099Form200Response.md) +[**\Avalara\SDK\Model\A1099\V2\Update1099Form200Response**](../Model/Update1099Form200Response.md) ### Authorization diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index e3c5a75..311abce 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -1,4 +1,4 @@ -# AvalaraSDK\FormsW9Api +# Avalara\SDK\FormsW9Api All URIs are relative to https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/avalara1099. @@ -16,7 +16,7 @@ Method | HTTP request | Description ## `createW9Form()` ```php -createW9Form($avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of): \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf +createW9Form($avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of): \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf ``` Create a W9/W4/W8 form @@ -37,12 +37,12 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $avalara_version = 2.0; // string | API version -$x_correlation_id = 6697716c-1ffe-4a60-8cdf-82bd2ea72915; // string | Unique correlation Id in a GUID format +$x_correlation_id = cf698b33-27c8-4c6c-be2d-a2192133e8be; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$iw9_form_data_models_one_of = new \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf(); // \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf | Form to be created +$iw9_form_data_models_one_of = new \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf(); // \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf | Form to be created try { $result = $apiInstance->createW9Form($avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of); @@ -59,11 +59,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **iw9_form_data_models_one_of** | [**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md)| Form to be created | [optional] + **iw9_form_data_models_one_of** | [**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md)| Form to be created | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) +[**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) ### Authorization @@ -104,11 +104,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | Id of the form to delete $avalara_version = 2.0; // string | API version -$x_correlation_id = 53309ecf-72ce-445a-9f3d-5e2d6cf167c4; // string | Unique correlation Id in a GUID format +$x_correlation_id = 940f1838-bf00-4b82-beb0-91637069ab50; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -147,7 +147,7 @@ void (empty response body) ## `getW9Form()` ```php -getW9Form($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf +getW9Form($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf ``` Retrieve a W9/W4/W8 form @@ -170,11 +170,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | Id of the form $avalara_version = 2.0; // string | API version -$x_correlation_id = a1b285aa-2fbb-42a9-9913-f580b9a382e7; // string | Unique correlation Id in a GUID format +$x_correlation_id = 36856aac-b7ac-4cca-bcfb-34c16e9ce48f; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -196,7 +196,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) +[**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) ### Authorization @@ -214,7 +214,7 @@ Name | Type | Description | Notes ## `listW9Forms()` ```php -listW9Forms($avalara_version, $filter, $top, $skip, $order_by, $count, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\PaginatedW9FormsModel +listW9Forms($avalara_version, $filter, $top, $skip, $order_by, $count, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\PaginatedW9FormsModel ``` List W9/W4/W8 forms. @@ -237,7 +237,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $avalara_version = 2.0; // string | API version $filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. @@ -245,7 +245,7 @@ $top = 10; // int | If nonzero, return no more than this number of results. Used $skip = 0; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | When true, returns a @recordSetCount in the result set -$x_correlation_id = 4c60810f-9a25-4925-9d42-6d024fcc4e68; // string | Unique correlation Id in a GUID format +$x_correlation_id = 550ca018-19ad-4b65-b294-96b1104c4370; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -271,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\PaginatedW9FormsModel**](../Model/PaginatedW9FormsModel.md) +[**\Avalara\SDK\Model\A1099\V2\PaginatedW9FormsModel**](../Model/PaginatedW9FormsModel.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## `sendW9FormEmail()` ```php -sendW9FormEmail($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf +sendW9FormEmail($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf ``` Sends a W9 email request to a vendor/payee @@ -310,11 +310,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | The ID of the W9/W4/W8 form. $avalara_version = 2.0; // string | API version -$x_correlation_id = f29536ff-f99f-4f92-aa8a-afb5ca1ee6a6; // string | Unique correlation Id in a GUID format +$x_correlation_id = cc9d1e19-6e8b-4c68-8093-547d059e654c; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -336,7 +336,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) +[**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) ### Authorization @@ -354,7 +354,7 @@ Name | Type | Description | Notes ## `updateW9Form()` ```php -updateW9Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of): \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf +updateW9Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of): \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf ``` Update a W9/W4/W8 form @@ -375,13 +375,13 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | Id of the form to update $avalara_version = 2.0; // string | API version -$x_correlation_id = e3e34efa-2f32-42a1-a496-6576067f3a20; // string | Unique correlation Id in a GUID format +$x_correlation_id = 40fcd194-dcb4-4e98-b6fa-3e381c2ee462; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$iw9_form_data_models_one_of = new \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf(); // \AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf | Form to be updated +$iw9_form_data_models_one_of = new \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf(); // \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf | Form to be updated try { $result = $apiInstance->updateW9Form($id, $avalara_version, $x_correlation_id, $x_avalara_client, $iw9_form_data_models_one_of); @@ -399,11 +399,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **iw9_form_data_models_one_of** | [**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md)| Form to be updated | [optional] + **iw9_form_data_models_one_of** | [**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md)| Form to be updated | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) +[**\Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf**](../Model/IW9FormDataModelsOneOf.md) ### Authorization @@ -444,11 +444,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\FormsW9Api($client); +$apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | Id of the form $avalara_version = 2.0; // string | API version -$x_correlation_id = b490cd60-c3eb-482a-b22c-95d386dbf4b0; // string | Unique correlation Id in a GUID format +$x_correlation_id = d07eaee6-85a3-4cdf-8394-301509cf8b0c; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $file = "/path/to/file.txt"; // \SplFileObject diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index 4de842a..07055fc 100644 --- a/docs/A1099/V2/Issuers1099Api.md +++ b/docs/A1099/V2/Issuers1099Api.md @@ -1,4 +1,4 @@ -# AvalaraSDK\Issuers1099Api +# Avalara\SDK\Issuers1099Api All URIs are relative to https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/avalara1099. @@ -14,7 +14,7 @@ Method | HTTP request | Description ## `createIssuer()` ```php -createIssuer($avalara_version, $x_correlation_id, $x_avalara_client, $issuer_command): \AvalaraSDK\ModelA1099V2\IssuerResponse +createIssuer($avalara_version, $x_correlation_id, $x_avalara_client, $issuer_command): \Avalara\SDK\Model\A1099\V2\IssuerResponse ``` Create an issuer @@ -37,12 +37,12 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Issuers1099Api($client); +$apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $avalara_version = 2.0; // string | API version -$x_correlation_id = b700c3c6-ddc1-45a6-bcb5-c5450269fa57; // string | Unique correlation Id in a GUID format +$x_correlation_id = 4b8ab14a-d0cf-43f6-808c-d9e7b0075ba6; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$issuer_command = new \AvalaraSDK\ModelA1099V2\IssuerCommand(); // \AvalaraSDK\ModelA1099V2\IssuerCommand | The issuer to create +$issuer_command = new \Avalara\SDK\Model\A1099\V2\IssuerCommand(); // \Avalara\SDK\Model\A1099\V2\IssuerCommand | The issuer to create try { $result = $apiInstance->createIssuer($avalara_version, $x_correlation_id, $x_avalara_client, $issuer_command); @@ -59,11 +59,11 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **issuer_command** | [**\AvalaraSDK\ModelA1099V2\IssuerCommand**](../Model/IssuerCommand.md)| The issuer to create | [optional] + **issuer_command** | [**\Avalara\SDK\Model\A1099\V2\IssuerCommand**](../Model/IssuerCommand.md)| The issuer to create | [optional] ### Return type -[**\AvalaraSDK\ModelA1099V2\IssuerResponse**](../Model/IssuerResponse.md) +[**\Avalara\SDK\Model\A1099\V2\IssuerResponse**](../Model/IssuerResponse.md) ### Authorization @@ -104,11 +104,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Issuers1099Api($client); +$apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string | Id of the issuer to delete $avalara_version = 2.0; // string | API version -$x_correlation_id = b8d8f225-132d-4269-8254-be7eda7d2cf0; // string | Unique correlation Id in a GUID format +$x_correlation_id = 28eab740-2051-4de7-9cde-948f8da4b45b; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -147,7 +147,7 @@ void (empty response body) ## `getIssuer()` ```php -getIssuer($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\IssuerResponse +getIssuer($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\IssuerResponse ``` Get an issuer @@ -170,11 +170,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Issuers1099Api($client); +$apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string $avalara_version = 2.0; // string | API version -$x_correlation_id = 31a66b50-a8fb-4f24-a9d9-e04f94d64c28; // string | Unique correlation Id in a GUID format +$x_correlation_id = 2838f86e-dc9f-49fd-8689-b2144053826f; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -196,7 +196,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\IssuerResponse**](../Model/IssuerResponse.md) +[**\Avalara\SDK\Model\A1099\V2\IssuerResponse**](../Model/IssuerResponse.md) ### Authorization @@ -214,7 +214,7 @@ Name | Type | Description | Notes ## `getIssuers()` ```php -getIssuers($avalara_version, $filter, $top, $skip, $order_by, $count, $count_only, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelIssuerResponse +getIssuers($avalara_version, $filter, $top, $skip, $order_by, $count, $count_only, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelIssuerResponse ``` List issuers @@ -237,7 +237,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Issuers1099Api($client); +$apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $avalara_version = 2.0; // string | API version $filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. @@ -246,7 +246,7 @@ $skip = 56; // int | If nonzero, skip this number of results before returning da $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | If true, return the global count of elements in the collection. $count_only = True; // bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. -$x_correlation_id = 037c52ac-39b6-48a8-85bc-80625d2e0878; // string | Unique correlation Id in a GUID format +$x_correlation_id = 09827528-7ff4-4a7d-9f66-035bd8e776f9; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -273,7 +273,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\PaginatedQueryResultModelIssuerResponse**](../Model/PaginatedQueryResultModelIssuerResponse.md) +[**\Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelIssuerResponse**](../Model/PaginatedQueryResultModelIssuerResponse.md) ### Authorization @@ -314,13 +314,13 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Issuers1099Api($client); +$apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string | Id of the issuer to Update $avalara_version = 2.0; // string | API version -$x_correlation_id = 70b42e84-d5d9-46b6-863a-dbb8836f0ba8; // string | Unique correlation Id in a GUID format +$x_correlation_id = 9f71ac04-59d3-4621-86fa-6b6b03026e2d; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . -$issuer_command = new \AvalaraSDK\ModelA1099V2\IssuerCommand(); // \AvalaraSDK\ModelA1099V2\IssuerCommand | The issuer to update +$issuer_command = new \Avalara\SDK\Model\A1099\V2\IssuerCommand(); // \Avalara\SDK\Model\A1099\V2\IssuerCommand | The issuer to update try { $apiInstance->updateIssuer($id, $avalara_version, $x_correlation_id, $x_avalara_client, $issuer_command); @@ -337,7 +337,7 @@ Name | Type | Description | Notes **avalara_version** | **string**| API version | **x_correlation_id** | **string**| Unique correlation Id in a GUID format | [optional] **x_avalara_client** | **string**| Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . | [optional] - **issuer_command** | [**\AvalaraSDK\ModelA1099V2\IssuerCommand**](../Model/IssuerCommand.md)| The issuer to update | [optional] + **issuer_command** | [**\Avalara\SDK\Model\A1099\V2\IssuerCommand**](../Model/IssuerCommand.md)| The issuer to update | [optional] ### Return type diff --git a/docs/A1099/V2/Jobs1099Api.md b/docs/A1099/V2/Jobs1099Api.md index 22af05c..aa2f2cb 100644 --- a/docs/A1099/V2/Jobs1099Api.md +++ b/docs/A1099/V2/Jobs1099Api.md @@ -1,4 +1,4 @@ -# AvalaraSDK\Jobs1099Api +# Avalara\SDK\Jobs1099Api All URIs are relative to https://api-ava1099.eta.sbx.us-east-1.aws.avalara.io/avalara1099. @@ -10,7 +10,7 @@ Method | HTTP request | Description ## `getJob()` ```php -getJob($id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelA1099V2\JobResult +getJob($id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\A1099\V2\JobResult ``` Retrieves information about the job @@ -33,11 +33,11 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\Jobs1099Api($client); +$apiInstance = new Avalara\SDK\Api\Jobs1099Api($client); $id = 'id_example'; // string | Job id obtained from other API responses, like `/1099/bulk-upsert`. $avalara_version = 2.0; // string | API version -$x_correlation_id = 979f23e8-d8cd-4762-a449-1f1912981402; // string | Unique correlation Id in a GUID format +$x_correlation_id = c21a7f35-d276-4947-b034-47d4edc6d8f0; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -59,7 +59,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelA1099V2\JobResult**](../Model/JobResult.md) +[**\Avalara\SDK\Model\A1099\V2\JobResult**](../Model/JobResult.md) ### Authorization diff --git a/docs/A1099/W4FormDataModel.md b/docs/A1099/W4FormDataModel.md index 98d6b7f..7abb195 100644 --- a/docs/A1099/W4FormDataModel.md +++ b/docs/A1099/W4FormDataModel.md @@ -123,7 +123,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **birthday** | **string** | The birthday of the individual associated with the form. | [optional] **foreign_tin_not_required** | **bool** | Indicates whether a foreign TIN is not required. | [optional] **archived** | **bool** | Indicates whether the form is archived. | [optional] diff --git a/docs/A1099/W8BenEFormResponse.md b/docs/A1099/W8BenEFormResponse.md index 7c2e846..2ddd5ca 100644 --- a/docs/A1099/W8BenEFormResponse.md +++ b/docs/A1099/W8BenEFormResponse.md @@ -97,7 +97,7 @@ Name | Type | Description | Notes **excepted_inter_affiliate_ffi_certification** | **bool** | Certifies that the entity is an inter-affiliate FFI meeting all conditions for exemption, including limited account activity and payment interactions within its expanded affiliated group. | [optional] **sponsored_direct_reporting_nffe_certification** | **bool** | Certifies that the entity is a sponsored direct reporting NFFE. | [optional] **direct_reporting_nffe_sponsoring_entity** | **string** | The name of the entity that sponsors the direct reporting NFFE. | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\SubstantialUsOwnerResponse[]**](SubstantialUsOwnerResponse.md) | The list of substantial U.S. owners of passive NFFE. | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\SubstantialUsOwnerResponse[]**](SubstantialUsOwnerResponse.md) | The list of substantial U.S. owners of passive NFFE. | [optional] **signer_name** | **string** | The name of the signer. | [optional] **capacity_to_sign_certification** | **bool** | Certifies signer has the capacity to sign for the beneficial owner. | [optional] **id** | **string** | The unique identifier for the form. | [optional] diff --git a/docs/A1099/W8BenFormDataModel.md b/docs/A1099/W8BenFormDataModel.md index 3e3f7e3..e1f6834 100644 --- a/docs/A1099/W8BenFormDataModel.md +++ b/docs/A1099/W8BenFormDataModel.md @@ -132,7 +132,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **ein** | **string** | The employer identification number (EIN). | [optional] **ein_type** | **string** | The type of employer identification number (EIN). | [optional] **certify_box14** | **bool** | Indicates certification for box 14. | [optional] diff --git a/docs/A1099/W8BeneFormDataModel.md b/docs/A1099/W8BeneFormDataModel.md index 4557d31..b4013d9 100644 --- a/docs/A1099/W8BeneFormDataModel.md +++ b/docs/A1099/W8BeneFormDataModel.md @@ -106,7 +106,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **employee_first_name** | **string** | The first name of the employee. | [optional] **employee_middle_name** | **string** | The middle name of the employee. | [optional] **employee_last_name** | **string** | The last name of the employee. | [optional] diff --git a/docs/A1099/W8ImyFormDataModel.md b/docs/A1099/W8ImyFormDataModel.md index 40755fd..35af046 100644 --- a/docs/A1099/W8ImyFormDataModel.md +++ b/docs/A1099/W8ImyFormDataModel.md @@ -196,7 +196,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **birthday** | **string** | The birthday of the individual associated with the form. | [optional] **foreign_tin_not_required** | **bool** | Indicates whether a foreign TIN is not required. | [optional] **archived** | **bool** | Indicates whether the form is archived. | [optional] diff --git a/docs/A1099/W9FormDataModel.md b/docs/A1099/W9FormDataModel.md index 5ecc2d9..1f0f446 100644 --- a/docs/A1099/W9FormDataModel.md +++ b/docs/A1099/W9FormDataModel.md @@ -136,7 +136,7 @@ Name | Type | Description | Notes **part19_formation_or_resolution_date** | **\DateTime** | | [optional] **part20_filing_date** | **\DateTime** | | [optional] **part21_determination_date** | **\DateTime** | | [optional] -**substantial_us_owners** | [**\AvalaraSDK\ModelA1099V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] +**substantial_us_owners** | [**\Avalara\SDK\Model\A1099\V2\W8BenESubstantialUsOwnerDataModel[]**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] **birthday** | **string** | The birthday of the individual associated with the form. | [optional] **foreign_tin_not_required** | **bool** | Indicates whether a foreign TIN is not required. | [optional] **archived** | **bool** | Indicates whether the form is archived. | [optional] diff --git a/docs/EInvoicing/BatchSearch.md b/docs/EInvoicing/BatchSearch.md index 54ca650..9dd2824 100644 --- a/docs/EInvoicing/BatchSearch.md +++ b/docs/EInvoicing/BatchSearch.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **created** | **\DateTime** | Timestamp when the batch search was created | [optional] **last_modified** | **\DateTime** | Timestamp when the batch search was created | [optional] **status** | **string** | Status of the batch search | [optional] -**error** | [**\AvalaraSDK\ModelEInvoicingV1\ErrorResponse**](ErrorResponse.md) | | [optional] +**error** | [**\Avalara\SDK\Model\EInvoicing\V1\ErrorResponse**](ErrorResponse.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/BatchSearchListResponse.md b/docs/EInvoicing/BatchSearchListResponse.md index d590d91..ba53b27 100644 --- a/docs/EInvoicing/BatchSearchListResponse.md +++ b/docs/EInvoicing/BatchSearchListResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_record_set_count** | **int** | The count of records in the result set | [optional] **at_next_link** | **string** | Next Link | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\BatchSearch[]**](BatchSearch.md) | | [optional] +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\BatchSearch[]**](BatchSearch.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/ConditionalForField.md b/docs/EInvoicing/ConditionalForField.md index 2a6a5fe..ae9c8c8 100644 --- a/docs/EInvoicing/ConditionalForField.md +++ b/docs/EInvoicing/ConditionalForField.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **country_mandate** | **string** | | [optional] -**required_when** | [**\AvalaraSDK\ModelEInvoicingV1\RequiredWhenField[]**](RequiredWhenField.md) | Array of scenarios which describe when a particular field is conditional for a country mandate | [optional] +**required_when** | [**\Avalara\SDK\Model\EInvoicing\V1\RequiredWhenField[]**](RequiredWhenField.md) | Array of scenarios which describe when a particular field is conditional for a country mandate | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DataInputField.md b/docs/EInvoicing/DataInputField.md index afee3d9..edfd4ac 100644 --- a/docs/EInvoicing/DataInputField.md +++ b/docs/EInvoicing/DataInputField.md @@ -15,9 +15,9 @@ Name | Type | Description | Notes **documentation_link** | **string** | An example of the content for this field | [optional] **description** | **string** | A description of this field | [optional] **is_segment** | **bool** | Is this a segment of the schema | [optional] -**required_for** | [**\AvalaraSDK\ModelEInvoicingV1\DataInputFieldRequiredFor**](DataInputFieldRequiredFor.md) | | [optional] -**conditional_for** | [**\AvalaraSDK\ModelEInvoicingV1\ConditionalForField[]**](ConditionalForField.md) | | [optional] -**not_used_for** | [**\AvalaraSDK\ModelEInvoicingV1\DataInputFieldNotUsedFor**](DataInputFieldNotUsedFor.md) | | [optional] -**optional_for** | [**\AvalaraSDK\ModelEInvoicingV1\DataInputFieldOptionalFor**](DataInputFieldOptionalFor.md) | | [optional] +**required_for** | [**\Avalara\SDK\Model\EInvoicing\V1\DataInputFieldRequiredFor**](DataInputFieldRequiredFor.md) | | [optional] +**conditional_for** | [**\Avalara\SDK\Model\EInvoicing\V1\ConditionalForField[]**](ConditionalForField.md) | | [optional] +**not_used_for** | [**\Avalara\SDK\Model\EInvoicing\V1\DataInputFieldNotUsedFor**](DataInputFieldNotUsedFor.md) | | [optional] +**optional_for** | [**\Avalara\SDK\Model\EInvoicing\V1\DataInputFieldOptionalFor**](DataInputFieldOptionalFor.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DataInputFieldsResponse.md b/docs/EInvoicing/DataInputFieldsResponse.md index dd312da..ee2b0c1 100644 --- a/docs/EInvoicing/DataInputFieldsResponse.md +++ b/docs/EInvoicing/DataInputFieldsResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **float** | Total count of results | [optional] **at_next_link** | **string** | | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\DataInputField[]**](DataInputField.md) | Array of Data Input Fields | [optional] +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\DataInputField[]**](DataInputField.md) | Array of Data Input Fields | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DirectorySearchResponse.md b/docs/EInvoicing/DirectorySearchResponse.md index e8a36bc..69dbaf6 100644 --- a/docs/EInvoicing/DirectorySearchResponse.md +++ b/docs/EInvoicing/DirectorySearchResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_record_set_count** | **int** | The count of records in the result set | [optional] **at_next_link** | **string** | The next page link to get the next set of results. | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInner[]**](DirectorySearchResponseValueInner.md) | | [optional] +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInner[]**](DirectorySearchResponseValueInner.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DirectorySearchResponseValueInner.md b/docs/EInvoicing/DirectorySearchResponseValueInner.md index 46269d0..d4fd2a5 100644 --- a/docs/EInvoicing/DirectorySearchResponseValueInner.md +++ b/docs/EInvoicing/DirectorySearchResponseValueInner.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **name** | **string** | Name of the participant (typically, the name of the business entity). | [optional] **network** | **string** | The network where the participant is present. | [optional] **registration_date** | **\DateTime** | Registration date of the participant if available | [optional] -**identifiers** | [**\AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerIdentifiersInner[]**](DirectorySearchResponseValueInnerIdentifiersInner.md) | | [optional] -**addresses** | [**\AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerAddressesInner[]**](DirectorySearchResponseValueInnerAddressesInner.md) | | [optional] -**supported_document_types** | [**\AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponseValueInnerSupportedDocumentTypesInner[]**](DirectorySearchResponseValueInnerSupportedDocumentTypesInner.md) | | [optional] +**identifiers** | [**\Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerIdentifiersInner[]**](DirectorySearchResponseValueInnerIdentifiersInner.md) | | [optional] +**addresses** | [**\Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerAddressesInner[]**](DirectorySearchResponseValueInnerAddressesInner.md) | | [optional] +**supported_document_types** | [**\Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponseValueInnerSupportedDocumentTypesInner[]**](DirectorySearchResponseValueInnerSupportedDocumentTypesInner.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DocumentListResponse.md b/docs/EInvoicing/DocumentListResponse.md index 4dcb2e9..d57f893 100644 --- a/docs/EInvoicing/DocumentListResponse.md +++ b/docs/EInvoicing/DocumentListResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **string** | Count of collections for the given date range | [optional] **at_next_link** | **string** | | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\DocumentSummary[]**](DocumentSummary.md) | Array of documents matching query parameters | +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\DocumentSummary[]**](DocumentSummary.md) | Array of documents matching query parameters | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/DocumentStatusResponse.md b/docs/EInvoicing/DocumentStatusResponse.md index 7260604..d5733c3 100644 --- a/docs/EInvoicing/DocumentStatusResponse.md +++ b/docs/EInvoicing/DocumentStatusResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **string** | The unique ID for this document | [optional] **status** | **string** | Status of the document | [optional] -**events** | [**\AvalaraSDK\ModelEInvoicingV1\StatusEvent[]**](StatusEvent.md) | | [optional] +**events** | [**\Avalara\SDK\Model\EInvoicing\V1\StatusEvent[]**](StatusEvent.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/EventMessage.md b/docs/EInvoicing/EventMessage.md index 4b3b459..ed65681 100644 --- a/docs/EInvoicing/EventMessage.md +++ b/docs/EInvoicing/EventMessage.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **object** | Event-specific information | -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureValueSignature**](SignatureValueSignature.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureValueSignature**](SignatureValueSignature.md) | | **tenant_id** | **string** | Tenant ID of the event | **correlation_id** | **string** | The correlation ID used by Avalara to aid in tracing through to provenance of this event massage. | [optional] **system_code** | **string** | The Avalara registered code for the system. See <a href=\"https://avalara.atlassian.net/wiki/spaces/AIM/pages/637250338966/Taxonomy+Avalara+Systems\">Taxonomy&#58; Avalara Systems</a> | diff --git a/docs/EInvoicing/EventPayload.md b/docs/EInvoicing/EventPayload.md index 09e5235..88e72b2 100644 --- a/docs/EInvoicing/EventPayload.md +++ b/docs/EInvoicing/EventPayload.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureValueSignature**](SignatureValueSignature.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureValueSignature**](SignatureValueSignature.md) | | **message** | **object** | Event-specific information | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/FetchDocumentsRequest.md b/docs/EInvoicing/FetchDocumentsRequest.md index 5572d8e..a08fd4a 100644 --- a/docs/EInvoicing/FetchDocumentsRequest.md +++ b/docs/EInvoicing/FetchDocumentsRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**\AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequestDataInner[]**](FetchDocumentsRequestDataInner.md) | Array of key-value pairs used to retrieve inbound documents from the Tax Authority | [optional] -**metadata** | [**\AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequestMetadata**](FetchDocumentsRequestMetadata.md) | | [optional] +**data** | [**\Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequestDataInner[]**](FetchDocumentsRequestDataInner.md) | Array of key-value pairs used to retrieve inbound documents from the Tax Authority | [optional] +**metadata** | [**\Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequestMetadata**](FetchDocumentsRequestMetadata.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/Mandate.md b/docs/EInvoicing/Mandate.md index 0aa8417..e3f5f1e 100644 --- a/docs/EInvoicing/Mandate.md +++ b/docs/EInvoicing/Mandate.md @@ -14,8 +14,8 @@ Name | Type | Description | Notes **e_invoicing_flow_documentation_link** | **string** | Link to the documentation for this mandate's e-invoicing flow | [optional] **get_invoice_available_media_type** | **string[]** | List of available media types for downloading invoices for this mandate | [optional] **supports_inbound_digital_document** | **string** | Indicates whether this mandate supports inbound digital documents | [optional] -**input_data_formats** | [**\AvalaraSDK\ModelEInvoicingV1\InputDataFormats[]**](InputDataFormats.md) | Format and version used when inputting the data | [optional] -**output_data_formats** | [**\AvalaraSDK\ModelEInvoicingV1\OutputDataFormats[]**](OutputDataFormats.md) | Lists the supported output document formats for the country mandate. For countries where specifying an output document format is required (e.g., France), this array will contain the applicable formats. For other countries where output format selection is not necessary, the array will be empty. | [optional] -**workflow_ids** | [**\AvalaraSDK\ModelEInvoicingV1\WorkflowIds[]**](WorkflowIds.md) | Workflow ID list | [optional] +**input_data_formats** | [**\Avalara\SDK\Model\EInvoicing\V1\InputDataFormats[]**](InputDataFormats.md) | Format and version used when inputting the data | [optional] +**output_data_formats** | [**\Avalara\SDK\Model\EInvoicing\V1\OutputDataFormats[]**](OutputDataFormats.md) | Lists the supported output document formats for the country mandate. For countries where specifying an output document format is required (e.g., France), this array will contain the applicable formats. For other countries where output format selection is not necessary, the array will be empty. | [optional] +**workflow_ids** | [**\Avalara\SDK\Model\EInvoicing\V1\WorkflowIds[]**](WorkflowIds.md) | Workflow ID list | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/MandateDataInputField.md b/docs/EInvoicing/MandateDataInputField.md index 19b7a0e..785dd49 100644 --- a/docs/EInvoicing/MandateDataInputField.md +++ b/docs/EInvoicing/MandateDataInputField.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **path** | **string** | Path to this field | [optional] **path_type** | **string** | The type of path | [optional] **field_name** | **string** | Field name | [optional] -**namespace** | [**\AvalaraSDK\ModelEInvoicingV1\MandateDataInputFieldNamespace**](MandateDataInputFieldNamespace.md) | | [optional] +**namespace** | [**\Avalara\SDK\Model\EInvoicing\V1\MandateDataInputFieldNamespace**](MandateDataInputFieldNamespace.md) | | [optional] **example_or_fixed_value** | **string** | An example of the content for this field | [optional] **accepted_values** | **string[]** | An Array representing the acceptable values for this field | [optional] **documentation_link** | **string** | An example of the content for this field | [optional] diff --git a/docs/EInvoicing/MandatesResponse.md b/docs/EInvoicing/MandatesResponse.md index 963e3cb..829ada0 100644 --- a/docs/EInvoicing/MandatesResponse.md +++ b/docs/EInvoicing/MandatesResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **at_recordset_count** | **float** | Total count of results | [optional] **at_next_link** | **string** | | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\Mandate[]**](Mandate.md) | Mandates schema | [optional] +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\Mandate[]**](Mandate.md) | Mandates schema | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/Signature.md b/docs/EInvoicing/Signature.md index ec5dff7..68320fb 100644 --- a/docs/EInvoicing/Signature.md +++ b/docs/EInvoicing/Signature.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureSignature**](SignatureSignature.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureSignature**](SignatureSignature.md) | | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/SignatureValue.md b/docs/EInvoicing/SignatureValue.md index 587dbb5..e8929a0 100644 --- a/docs/EInvoicing/SignatureValue.md +++ b/docs/EInvoicing/SignatureValue.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureValueSignature**](SignatureValueSignature.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureValueSignature**](SignatureValueSignature.md) | | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/SubscriptionDetail.md b/docs/EInvoicing/SubscriptionDetail.md index c488b99..c7ebb7e 100644 --- a/docs/EInvoicing/SubscriptionDetail.md +++ b/docs/EInvoicing/SubscriptionDetail.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **string** | Unique identifier of this specific resource. | **description** | **string** | Description of the subscription | [optional] **notification_url** | **string** | The URL of the webhook endpoint to which event messages will be delivered | -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureSignature**](SignatureSignature.md) | | -**events** | [**\AvalaraSDK\ModelEInvoicingV1\EventSubscription[]**](EventSubscription.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureSignature**](SignatureSignature.md) | | +**events** | [**\Avalara\SDK\Model\EInvoicing\V1\EventSubscription[]**](EventSubscription.md) | | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/SubscriptionListResponse.md b/docs/EInvoicing/SubscriptionListResponse.md index e762543..cd5011a 100644 --- a/docs/EInvoicing/SubscriptionListResponse.md +++ b/docs/EInvoicing/SubscriptionListResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **recordset_count** | **int** | The total count of records in the dataset. | [optional] **at_next_link** | **string** | The URL to the next page of results. | [optional] -**value** | [**\AvalaraSDK\ModelEInvoicingV1\SubscriptionDetail[]**](SubscriptionDetail.md) | The list of subscriptions. | [optional] +**value** | [**\Avalara\SDK\Model\EInvoicing\V1\SubscriptionDetail[]**](SubscriptionDetail.md) | The list of subscriptions. | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/SubscriptionRegistration.md b/docs/EInvoicing/SubscriptionRegistration.md index efc9964..9b96ce9 100644 --- a/docs/EInvoicing/SubscriptionRegistration.md +++ b/docs/EInvoicing/SubscriptionRegistration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **string** | Description of the subscription | [optional] **notification_url** | **string** | The URL of the webhook endpoint to which event messages will be delivered | -**signature** | [**\AvalaraSDK\ModelEInvoicingV1\SignatureSignature**](SignatureSignature.md) | | -**events** | [**\AvalaraSDK\ModelEInvoicingV1\EventSubscription[]**](EventSubscription.md) | | +**signature** | [**\Avalara\SDK\Model\EInvoicing\V1\SignatureSignature**](SignatureSignature.md) | | +**events** | [**\Avalara\SDK\Model\EInvoicing\V1\EventSubscription[]**](EventSubscription.md) | | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/V1/DataInputFieldsApi.md b/docs/EInvoicing/V1/DataInputFieldsApi.md index 996b995..405dc09 100644 --- a/docs/EInvoicing/V1/DataInputFieldsApi.md +++ b/docs/EInvoicing/V1/DataInputFieldsApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\DataInputFieldsApi +# Avalara\SDK\DataInputFieldsApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -10,7 +10,7 @@ Method | HTTP request | Description ## `getDataInputFields()` ```php -getDataInputFields($avalara_version, $x_avalara_client, $filter, $top, $skip, $count, $count_only): \AvalaraSDK\ModelEInvoicingV1\DataInputFieldsResponse +getDataInputFields($avalara_version, $x_avalara_client, $filter, $top, $skip, $count, $count_only): \Avalara\SDK\Model\EInvoicing\V1\DataInputFieldsResponse ``` Returns the optionality of document fields for different country mandates @@ -33,7 +33,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DataInputFieldsApi($client); +$apiInstance = new Avalara\SDK\Api\DataInputFieldsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DataInputFieldsResponse**](../Model/DataInputFieldsResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DataInputFieldsResponse**](../Model/DataInputFieldsResponse.md) ### Authorization diff --git a/docs/EInvoicing/V1/DocumentsApi.md b/docs/EInvoicing/V1/DocumentsApi.md index 9905d69..222ab49 100644 --- a/docs/EInvoicing/V1/DocumentsApi.md +++ b/docs/EInvoicing/V1/DocumentsApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\DocumentsApi +# Avalara\SDK\DocumentsApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -37,7 +37,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DocumentsApi($client); +$apiInstance = new Avalara\SDK\Api\DocumentsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $accept = application/pdf; // string | This header indicates the MIME type of the document @@ -81,7 +81,7 @@ Name | Type | Description | Notes ## `fetchDocuments()` ```php -fetchDocuments($avalara_version, $fetch_documents_request, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\DocumentFetch +fetchDocuments($avalara_version, $fetch_documents_request, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\DocumentFetch ``` Fetch the inbound document from a tax authority @@ -104,10 +104,10 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DocumentsApi($client); +$apiInstance = new Avalara\SDK\Api\DocumentsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used -$fetch_documents_request = new \AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequest(); // \AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequest +$fetch_documents_request = new \Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequest(); // \Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequest $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. try { @@ -123,12 +123,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **avalara_version** | **string**| The HTTP Header meant to specify the version of the API intended to be used | - **fetch_documents_request** | [**\AvalaraSDK\ModelEInvoicingV1\FetchDocumentsRequest**](../Model/FetchDocumentsRequest.md)| | + **fetch_documents_request** | [**\Avalara\SDK\Model\EInvoicing\V1\FetchDocumentsRequest**](../Model/FetchDocumentsRequest.md)| | **x_avalara_client** | **string**| You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. | [optional] ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DocumentFetch**](../Model/DocumentFetch.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DocumentFetch**](../Model/DocumentFetch.md) ### Authorization @@ -146,7 +146,7 @@ Name | Type | Description | Notes ## `getDocumentList()` ```php -getDocumentList($avalara_version, $x_avalara_client, $start_date, $end_date, $flow, $count, $count_only, $filter, $top, $skip): \AvalaraSDK\ModelEInvoicingV1\DocumentListResponse +getDocumentList($avalara_version, $x_avalara_client, $start_date, $end_date, $flow, $count, $count_only, $filter, $top, $skip): \Avalara\SDK\Model\EInvoicing\V1\DocumentListResponse ``` Returns a summary of documents for a date range @@ -169,7 +169,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DocumentsApi($client); +$apiInstance = new Avalara\SDK\Api\DocumentsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. @@ -207,7 +207,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DocumentListResponse**](../Model/DocumentListResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DocumentListResponse**](../Model/DocumentListResponse.md) ### Authorization @@ -225,7 +225,7 @@ Name | Type | Description | Notes ## `getDocumentStatus()` ```php -getDocumentStatus($avalara_version, $document_id, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\DocumentStatusResponse +getDocumentStatus($avalara_version, $document_id, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\DocumentStatusResponse ``` Checks the status of a document @@ -248,7 +248,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DocumentsApi($client); +$apiInstance = new Avalara\SDK\Api\DocumentsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $document_id = 'document_id_example'; // string | The unique ID for this document that was returned in the POST /einvoicing/documents response body @@ -272,7 +272,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DocumentStatusResponse**](../Model/DocumentStatusResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DocumentStatusResponse**](../Model/DocumentStatusResponse.md) ### Authorization @@ -290,7 +290,7 @@ Name | Type | Description | Notes ## `submitDocument()` ```php -submitDocument($avalara_version, $metadata, $data, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\DocumentSubmitResponse +submitDocument($avalara_version, $metadata, $data, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\DocumentSubmitResponse ``` Submits a document to Avalara E-Invoicing API @@ -313,10 +313,10 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\DocumentsApi($client); +$apiInstance = new Avalara\SDK\Api\DocumentsApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used -$metadata = new \AvalaraSDK\ModelEInvoicingV1\SubmitDocumentMetadata(); // \AvalaraSDK\ModelEInvoicingV1\SubmitDocumentMetadata +$metadata = new \Avalara\SDK\Model\EInvoicing\V1\SubmitDocumentMetadata(); // \Avalara\SDK\Model\EInvoicing\V1\SubmitDocumentMetadata $data = array('key' => new \stdClass); // object | The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion' $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. @@ -333,13 +333,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **avalara_version** | **string**| The HTTP Header meant to specify the version of the API intended to be used | - **metadata** | [**\AvalaraSDK\ModelEInvoicingV1\SubmitDocumentMetadata**](../Model/SubmitDocumentMetadata.md)| | + **metadata** | [**\Avalara\SDK\Model\EInvoicing\V1\SubmitDocumentMetadata**](../Model/SubmitDocumentMetadata.md)| | **data** | [**object**](../Model/object.md)| The document to be submitted, as indicated by the metadata fields 'dataFormat' and 'dataFormatVersion' | **x_avalara_client** | **string**| You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. | [optional] ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DocumentSubmitResponse**](../Model/DocumentSubmitResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DocumentSubmitResponse**](../Model/DocumentSubmitResponse.md) ### Authorization diff --git a/docs/EInvoicing/V1/InteropApi.md b/docs/EInvoicing/V1/InteropApi.md index 3139184..556223d 100644 --- a/docs/EInvoicing/V1/InteropApi.md +++ b/docs/EInvoicing/V1/InteropApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\InteropApi +# Avalara\SDK\InteropApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -10,7 +10,7 @@ Method | HTTP request | Description ## `submitInteropDocument()` ```php -submitInteropDocument($document_type, $interchange_type, $avalara_version, $x_avalara_client, $x_correlation_id, $file_name): \AvalaraSDK\ModelEInvoicingV1\SubmitInteropDocument202Response +submitInteropDocument($document_type, $interchange_type, $avalara_version, $x_avalara_client, $x_correlation_id, $file_name): \Avalara\SDK\Model\EInvoicing\V1\SubmitInteropDocument202Response ``` Submit a document @@ -33,7 +33,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\InteropApi($client); +$apiInstance = new Avalara\SDK\Api\InteropApi($client); $document_type = 'document_type_example'; // string | Type of the document being uploaded. Partners will be configured in Avalara system to send only certain types of documents. $interchange_type = 'interchange_type_example'; // string | Type of interchange (codes in Avalara system that uniquely identifies a type of interchange). Partners will be configured in Avalara system to send documents belonging to certain types of interchanges. @@ -63,7 +63,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\SubmitInteropDocument202Response**](../Model/SubmitInteropDocument202Response.md) +[**\Avalara\SDK\Model\EInvoicing\V1\SubmitInteropDocument202Response**](../Model/SubmitInteropDocument202Response.md) ### Authorization diff --git a/docs/EInvoicing/V1/MandatesApi.md b/docs/EInvoicing/V1/MandatesApi.md index e237592..d89aeb0 100644 --- a/docs/EInvoicing/V1/MandatesApi.md +++ b/docs/EInvoicing/V1/MandatesApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\MandatesApi +# Avalara\SDK\MandatesApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -11,7 +11,7 @@ Method | HTTP request | Description ## `getMandateDataInputFields()` ```php -getMandateDataInputFields($avalara_version, $mandate_id, $document_type, $document_version, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\MandateDataInputField[] +getMandateDataInputFields($avalara_version, $mandate_id, $document_type, $document_version, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\MandateDataInputField[] ``` Returns document field information for a country mandate, a selected document type, and its version @@ -34,7 +34,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\MandatesApi($client); +$apiInstance = new Avalara\SDK\Api\MandatesApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $mandate_id = AD-B2G-PEPPOL; // string | The unique ID for the mandate that was returned in the GET /einvoicing/mandates response body @@ -62,7 +62,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\MandateDataInputField[]**](../Model/MandateDataInputField.md) +[**\Avalara\SDK\Model\EInvoicing\V1\MandateDataInputField[]**](../Model/MandateDataInputField.md) ### Authorization @@ -80,7 +80,7 @@ Name | Type | Description | Notes ## `getMandates()` ```php -getMandates($avalara_version, $x_avalara_client, $filter, $top, $skip, $count, $count_only): \AvalaraSDK\ModelEInvoicingV1\MandatesResponse +getMandates($avalara_version, $x_avalara_client, $filter, $top, $skip, $count, $count_only): \Avalara\SDK\Model\EInvoicing\V1\MandatesResponse ``` List country mandates that are supported by the Avalara E-Invoicing platform @@ -103,7 +103,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\MandatesApi($client); +$apiInstance = new Avalara\SDK\Api\MandatesApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\MandatesResponse**](../Model/MandatesResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\MandatesResponse**](../Model/MandatesResponse.md) ### Authorization diff --git a/docs/EInvoicing/V1/SubscriptionsApi.md b/docs/EInvoicing/V1/SubscriptionsApi.md index 18a5e93..beff011 100644 --- a/docs/EInvoicing/V1/SubscriptionsApi.md +++ b/docs/EInvoicing/V1/SubscriptionsApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\SubscriptionsApi +# Avalara\SDK\SubscriptionsApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -13,7 +13,7 @@ Method | HTTP request | Description ## `createWebhookSubscription()` ```php -createWebhookSubscription($avalara_version, $subscription_registration, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\SuccessResponse +createWebhookSubscription($avalara_version, $subscription_registration, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\SuccessResponse ``` Create a subscription to events @@ -36,10 +36,10 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\SubscriptionsApi($client); +$apiInstance = new Avalara\SDK\Api\SubscriptionsApi($client); $avalara_version = 'avalara_version_example'; // string | The version of the API to use, e.g., \"1.3\". -$subscription_registration = new \AvalaraSDK\ModelEInvoicingV1\SubscriptionRegistration(); // \AvalaraSDK\ModelEInvoicingV1\SubscriptionRegistration +$subscription_registration = new \Avalara\SDK\Model\EInvoicing\V1\SubscriptionRegistration(); // \Avalara\SDK\Model\EInvoicing\V1\SubscriptionRegistration $x_correlation_id = 'x_correlation_id_example'; // string | A unique identifier for tracking the request and its response $x_avalara_client = 'x_avalara_client_example'; // string | Client application identification @@ -56,13 +56,13 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **avalara_version** | **string**| The version of the API to use, e.g., \"1.3\". | - **subscription_registration** | [**\AvalaraSDK\ModelEInvoicingV1\SubscriptionRegistration**](../Model/SubscriptionRegistration.md)| | + **subscription_registration** | [**\Avalara\SDK\Model\EInvoicing\V1\SubscriptionRegistration**](../Model/SubscriptionRegistration.md)| | **x_correlation_id** | **string**| A unique identifier for tracking the request and its response | [optional] **x_avalara_client** | **string**| Client application identification | [optional] ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\SuccessResponse**](../Model/SuccessResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\SuccessResponse**](../Model/SuccessResponse.md) ### Authorization @@ -103,7 +103,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\SubscriptionsApi($client); +$apiInstance = new Avalara\SDK\Api\SubscriptionsApi($client); $subscription_id = 'subscription_id_example'; // string $avalara_version = 'avalara_version_example'; // string | The version of the API to use, e.g., \"1.3\". @@ -146,7 +146,7 @@ void (empty response body) ## `getWebhookSubscription()` ```php -getWebhookSubscription($subscription_id, $avalara_version, $x_correlation_id, $x_avalara_client): \AvalaraSDK\ModelEInvoicingV1\SubscriptionDetail +getWebhookSubscription($subscription_id, $avalara_version, $x_correlation_id, $x_avalara_client): \Avalara\SDK\Model\EInvoicing\V1\SubscriptionDetail ``` Get details of a subscription @@ -169,7 +169,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\SubscriptionsApi($client); +$apiInstance = new Avalara\SDK\Api\SubscriptionsApi($client); $subscription_id = 'subscription_id_example'; // string $avalara_version = 'avalara_version_example'; // string | The version of the API to use, e.g., \"1.3\". @@ -195,7 +195,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\SubscriptionDetail**](../Model/SubscriptionDetail.md) +[**\Avalara\SDK\Model\EInvoicing\V1\SubscriptionDetail**](../Model/SubscriptionDetail.md) ### Authorization @@ -213,7 +213,7 @@ Name | Type | Description | Notes ## `listWebhookSubscriptions()` ```php -listWebhookSubscriptions($avalara_version, $x_correlation_id, $x_avalara_client, $top, $skip, $count, $count_only): \AvalaraSDK\ModelEInvoicingV1\SubscriptionListResponse +listWebhookSubscriptions($avalara_version, $x_correlation_id, $x_avalara_client, $top, $skip, $count, $count_only): \Avalara\SDK\Model\EInvoicing\V1\SubscriptionListResponse ``` List all subscriptions @@ -236,7 +236,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\SubscriptionsApi($client); +$apiInstance = new Avalara\SDK\Api\SubscriptionsApi($client); $avalara_version = 'avalara_version_example'; // string | The version of the API to use, e.g., \"1.3\". $x_correlation_id = 'x_correlation_id_example'; // string | A unique identifier for tracking the request and its response @@ -268,7 +268,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\SubscriptionListResponse**](../Model/SubscriptionListResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\SubscriptionListResponse**](../Model/SubscriptionListResponse.md) ### Authorization diff --git a/docs/EInvoicing/V1/TradingPartnersApi.md b/docs/EInvoicing/V1/TradingPartnersApi.md index e5d912d..de67c8a 100644 --- a/docs/EInvoicing/V1/TradingPartnersApi.md +++ b/docs/EInvoicing/V1/TradingPartnersApi.md @@ -1,4 +1,4 @@ -# AvalaraSDK\TradingPartnersApi +# Avalara\SDK\TradingPartnersApi All URIs are relative to https://api.sbx.avalara.com/einvoicing. @@ -14,7 +14,7 @@ Method | HTTP request | Description ## `batchSearchParticipants()` ```php -batchSearchParticipants($avalara_version, $name, $notification_email, $file, $x_avalara_client, $x_correlation_id): \AvalaraSDK\ModelEInvoicingV1\BatchSearchParticipants202Response +batchSearchParticipants($avalara_version, $name, $notification_email, $file, $x_avalara_client, $x_correlation_id): \Avalara\SDK\Model\EInvoicing\V1\BatchSearchParticipants202Response ``` Creates a batch search and performs a batch search in the directory for participants in the background. @@ -37,7 +37,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\TradingPartnersApi($client); +$apiInstance = new Avalara\SDK\Api\TradingPartnersApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $name = Automotive Companies in London Search; // string | The human readable name given to this batch search. @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\BatchSearchParticipants202Response**](../Model/BatchSearchParticipants202Response.md) +[**\Avalara\SDK\Model\EInvoicing\V1\BatchSearchParticipants202Response**](../Model/BatchSearchParticipants202Response.md) ### Authorization @@ -108,7 +108,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\TradingPartnersApi($client); +$apiInstance = new Avalara\SDK\Api\TradingPartnersApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $id = 2f5ea4b5-4dae-445a-b3e4-9f65a61eaa99; // string | The ID of the batch search whose report is to be downloaded. @@ -152,7 +152,7 @@ Name | Type | Description | Notes ## `getBatchSearchDetail()` ```php -getBatchSearchDetail($avalara_version, $id, $x_avalara_client, $x_correlation_id): \AvalaraSDK\ModelEInvoicingV1\BatchSearch +getBatchSearchDetail($avalara_version, $id, $x_avalara_client, $x_correlation_id): \Avalara\SDK\Model\EInvoicing\V1\BatchSearch ``` Get the batch search details for a given id. @@ -175,7 +175,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\TradingPartnersApi($client); +$apiInstance = new Avalara\SDK\Api\TradingPartnersApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $id = 2f5ea4b5-4dae-445a-b3e4-9f65a61eaa99; // string | The ID of the batch search that was submitted earlier. @@ -201,7 +201,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\BatchSearch**](../Model/BatchSearch.md) +[**\Avalara\SDK\Model\EInvoicing\V1\BatchSearch**](../Model/BatchSearch.md) ### Authorization @@ -219,7 +219,7 @@ Name | Type | Description | Notes ## `listBatchSearches()` ```php -listBatchSearches($avalara_version, $x_avalara_client, $filter, $count, $top, $skip, $order_by, $x_correlation_id): \AvalaraSDK\ModelEInvoicingV1\BatchSearchListResponse +listBatchSearches($avalara_version, $x_avalara_client, $filter, $count, $top, $skip, $order_by, $x_correlation_id): \Avalara\SDK\Model\EInvoicing\V1\BatchSearchListResponse ``` List all batch searches that were previously submitted. @@ -242,7 +242,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\TradingPartnersApi($client); +$apiInstance = new Avalara\SDK\Api\TradingPartnersApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $x_avalara_client = John's E-Invoicing-API Client; // string | You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \"Fingerprint\" @@ -276,7 +276,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\BatchSearchListResponse**](../Model/BatchSearchListResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\BatchSearchListResponse**](../Model/BatchSearchListResponse.md) ### Authorization @@ -294,7 +294,7 @@ Name | Type | Description | Notes ## `searchParticipants()` ```php -searchParticipants($avalara_version, $search, $x_avalara_client, $count, $filter, $top, $skip, $order_by, $x_correlation_id): \AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponse +searchParticipants($avalara_version, $search, $x_avalara_client, $count, $filter, $top, $skip, $order_by, $x_correlation_id): \Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponse ``` Returns a list of participants matching the input query. @@ -317,7 +317,7 @@ $config = new \Avalara\SDK\Configuration() $client = new \Avalara\SDK\ApiClient($config); -$apiInstance = new AvalaraSDK\Api\TradingPartnersApi($client); +$apiInstance = new Avalara\SDK\Api\TradingPartnersApi($client); $avalara_version = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used $search = Acme and 7726627177 or BMW; // string | Search by value supports logical AND and OR. Refer to [https://learn.microsoft.com/en-us/odata/concepts/queryoptions-overview#search](https://learn.microsoft.com/en-us/odata/concepts/queryoptions-overview#search) for more information on search. Search will be done over name and identifier parameters only. @@ -353,7 +353,7 @@ Name | Type | Description | Notes ### Return type -[**\AvalaraSDK\ModelEInvoicingV1\DirectorySearchResponse**](../Model/DirectorySearchResponse.md) +[**\Avalara\SDK\Model\EInvoicing\V1\DirectorySearchResponse**](../Model/DirectorySearchResponse.md) ### Authorization diff --git a/docs/EInvoicing/WebhookInvocation.md b/docs/EInvoicing/WebhookInvocation.md index 51bc363..4557577 100644 --- a/docs/EInvoicing/WebhookInvocation.md +++ b/docs/EInvoicing/WebhookInvocation.md @@ -9,6 +9,6 @@ Name | Type | Description | Notes **retry_max** | **int** | The maximum retries that may be attempted in total. | [optional] **invocation_timestamp** | **\DateTime** | Initial timestamp of the first invocation attempt. | **retry_timestamp** | **\DateTime** | Timestamp of this invocation attempt. | [optional] -**items** | [**\AvalaraSDK\ModelEInvoicingV1\EventMessage[]**](EventMessage.md) | Array of events being delivered in the webhook | +**items** | [**\Avalara\SDK\Model\EInvoicing\V1\EventMessage[]**](EventMessage.md) | Array of events being delivered in the webhook | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/WebhooksErrorResponse.md b/docs/EInvoicing/WebhooksErrorResponse.md index 4cac7a7..b49b237 100644 --- a/docs/EInvoicing/WebhooksErrorResponse.md +++ b/docs/EInvoicing/WebhooksErrorResponse.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error** | [**\AvalaraSDK\ModelEInvoicingV1\WebhooksErrorInfo**](WebhooksErrorInfo.md) | | [optional] +**error** | [**\Avalara\SDK\Model\EInvoicing\V1\WebhooksErrorInfo**](WebhooksErrorInfo.md) | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/lib/API/A1099/V2/CompaniesW9Api.php b/lib/API/A1099/V2/CompaniesW9Api.php index 321be77..9cf795a 100644 --- a/lib/API/A1099/V2/CompaniesW9Api.php +++ b/lib/API/A1099/V2/CompaniesW9Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -380,6 +380,7 @@ public function createCompanyRequest($request_parameters) $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $company_create_update_request_model = $request_parameters->getCompanyCreateUpdateRequestModel(); // verify the required parameter 'avalara_version' is set @@ -388,12 +389,6 @@ public function createCompanyRequest($request_parameters) 'Missing the required parameter $avalara_version when calling createCompany' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling createCompany' - ); - } $resourcePath = '/w9/companies'; $formParams = []; @@ -411,6 +406,10 @@ public function createCompanyRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -424,7 +423,7 @@ public function createCompanyRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -687,6 +686,7 @@ public function deleteCompanyRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -700,12 +700,6 @@ public function deleteCompanyRequest($request_parameters) 'Missing the required parameter $avalara_version when calling deleteCompany' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling deleteCompany' - ); - } $resourcePath = '/w9/companies/{id}'; $formParams = []; @@ -723,6 +717,10 @@ public function deleteCompanyRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -744,7 +742,7 @@ public function deleteCompanyRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1099,13 +1097,14 @@ public function getCompaniesRequest($request_parameters) $requiredScopes = ""; $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $filter = $request_parameters->getFilter(); $top = $request_parameters->getTop(); $skip = $request_parameters->getSkip(); $order_by = $request_parameters->getOrderBy(); $count = $request_parameters->getCount(); $count_only = $request_parameters->getCountOnly(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'avalara_version' is set if ($avalara_version === null || (is_array($avalara_version) && count($avalara_version) === 0)) { @@ -1113,12 +1112,6 @@ public function getCompaniesRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getCompanies' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getCompanies' - ); - } $resourcePath = '/w9/companies'; $formParams = []; @@ -1202,6 +1195,10 @@ public function getCompaniesRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -1215,7 +1212,7 @@ public function getCompaniesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1572,6 +1569,7 @@ public function getCompanyRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1585,12 +1583,6 @@ public function getCompanyRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getCompany' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getCompany' - ); - } $resourcePath = '/w9/companies/{id}'; $formParams = []; @@ -1608,6 +1600,10 @@ public function getCompanyRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1629,7 +1625,7 @@ public function getCompanyRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1965,6 +1961,7 @@ public function updateCompanyRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $company_create_update_request_model = $request_parameters->getCompanyCreateUpdateRequestModel(); // verify the required parameter 'id' is set @@ -1979,12 +1976,6 @@ public function updateCompanyRequest($request_parameters) 'Missing the required parameter $avalara_version when calling updateCompany' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling updateCompany' - ); - } $resourcePath = '/w9/companies/{id}'; $formParams = []; @@ -2002,6 +1993,10 @@ public function updateCompanyRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -2023,7 +2018,7 @@ public function updateCompanyRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2083,12 +2078,14 @@ public function updateCompanyRequest($request_parameters) * Represents the Request object for the CreateCompany API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel $company_create_update_request_model The company to create (optional) */ class CreateCompanyRequestSdk { private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $company_create_update_request_model; public function __construct() { @@ -2107,6 +2104,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getCompanyCreateUpdateRequestModel() { return $this->company_create_update_request_model; } @@ -2121,12 +2125,14 @@ public function setCompanyCreateUpdateRequestModel($company_create_update_reques * * @param string $id The company to delete (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class DeleteCompanyRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2151,29 +2157,38 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** * Represents the Request object for the GetCompanies API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) * @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. (optional) * @param int $top 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) * @param int $skip If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) * @param string $order_by A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) * @param bool $count If true, return the global count of elements in the collection. (optional) * @param bool $count_only If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetCompaniesRequestSdk { private $avalara_version; - private $x_correlation_id; private $filter; private $top; private $skip; private $order_by; private $count; private $count_only; + private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2184,13 +2199,6 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } - public function getXCorrelationId() { - return $this->x_correlation_id; - } - - public function setXCorrelationId($x_correlation_id) { - $this->x_correlation_id = $x_correlation_id; - } public function getFilter() { return $this->filter; } @@ -2233,6 +2241,20 @@ public function getCountOnly() { public function setCountOnly($count_only) { $this->count_only = $count_only; } + public function getXCorrelationId() { + return $this->x_correlation_id; + } + + public function setXCorrelationId($x_correlation_id) { + $this->x_correlation_id = $x_correlation_id; + } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2240,12 +2262,14 @@ public function setCountOnly($count_only) { * * @param string $id Id of the company (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetCompanyRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2270,6 +2294,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2277,13 +2308,15 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id The ID of the company to update (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel $company_create_update_request_model The updated company data (optional) */ class UpdateCompanyRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $company_create_update_request_model; public function __construct() { @@ -2309,6 +2342,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getCompanyCreateUpdateRequestModel() { return $this->company_create_update_request_model; } diff --git a/lib/API/A1099/V2/Forms1099Api.php b/lib/API/A1099/V2/Forms1099Api.php index 830e4f2..9d70271 100644 --- a/lib/API/A1099/V2/Forms1099Api.php +++ b/lib/API/A1099/V2/Forms1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -400,8 +400,9 @@ public function bulkUpsert1099FormsRequest($request_parameters) $requiredScopes = ""; $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $dry_run = $request_parameters->getDryRun(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $bulk_upsert1099_forms_request = $request_parameters->getBulkUpsert1099FormsRequest(); // verify the required parameter 'avalara_version' is set @@ -410,12 +411,6 @@ public function bulkUpsert1099FormsRequest($request_parameters) 'Missing the required parameter $avalara_version when calling bulkUpsert1099Forms' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling bulkUpsert1099Forms' - ); - } $resourcePath = '/1099/forms/$bulk-upsert'; $formParams = []; @@ -444,6 +439,10 @@ public function bulkUpsert1099FormsRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -457,7 +456,7 @@ public function bulkUpsert1099FormsRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -521,7 +520,7 @@ public function bulkUpsert1099FormsRequest($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse + * @return \Avalara\SDK\Model\A1099\V2\Get1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse */ public function create1099Form($request_parameters) { @@ -538,7 +537,7 @@ public function create1099Form($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Avalara\SDK\Model\A1099\V2\Get1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) */ public function create1099FormWithHttpInfo($request_parameters, $isRetry = false) { @@ -594,7 +593,7 @@ public function create1099FormWithHttpInfo($request_parameters, $isRetry = false switch($statusCode) { case 201: - if ('\Avalara\SDK\Model\A1099\V2\FormResponseBase' === '\SplFileObject') { + if ('\Avalara\SDK\Model\A1099\V2\Get1099Form200Response' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -602,7 +601,7 @@ public function create1099FormWithHttpInfo($request_parameters, $isRetry = false $logObject->populateResponseInfo($content, $response); $this->client->logger->info(json_encode($logObject)); return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\FormResponseBase', []), + ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -634,7 +633,7 @@ public function create1099FormWithHttpInfo($request_parameters, $isRetry = false ]; } - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -653,7 +652,7 @@ public function create1099FormWithHttpInfo($request_parameters, $isRetry = false case 201: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\FormResponseBase', + '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -712,7 +711,7 @@ function ($response) { public function create1099FormAsyncWithHttpInfo($request_parameters, $isRetry = false) { $logObject = new LogObject($this->client->logRequestAndResponse); - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response'; $request = $this->create1099FormRequest($request_parameters); $logObject->populateRequestInfo($request); return $this->client @@ -777,6 +776,7 @@ public function create1099FormRequest($request_parameters) $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $i_create_form1099_request = $request_parameters->getICreateForm1099Request(); // verify the required parameter 'avalara_version' is set @@ -785,12 +785,6 @@ public function create1099FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling create1099Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling create1099Form' - ); - } $resourcePath = '/1099/forms'; $formParams = []; @@ -808,6 +802,10 @@ public function create1099FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -821,7 +819,7 @@ public function create1099FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1084,6 +1082,7 @@ public function delete1099FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1097,12 +1096,6 @@ public function delete1099FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling delete1099Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling delete1099Form' - ); - } $resourcePath = '/1099/forms/{id}'; $formParams = []; @@ -1120,6 +1113,10 @@ public function delete1099FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1141,7 +1138,7 @@ public function delete1099FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1199,7 +1196,7 @@ public function delete1099FormRequest($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse + * @return \Avalara\SDK\Model\A1099\V2\Get1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse */ public function get1099Form($request_parameters) { @@ -1216,7 +1213,7 @@ public function get1099Form($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Avalara\SDK\Model\A1099\V2\Get1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) */ public function get1099FormWithHttpInfo($request_parameters, $isRetry = false) { @@ -1272,7 +1269,7 @@ public function get1099FormWithHttpInfo($request_parameters, $isRetry = false) switch($statusCode) { case 200: - if ('\Avalara\SDK\Model\A1099\V2\FormResponseBase' === '\SplFileObject') { + if ('\Avalara\SDK\Model\A1099\V2\Get1099Form200Response' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1280,7 +1277,7 @@ public function get1099FormWithHttpInfo($request_parameters, $isRetry = false) $logObject->populateResponseInfo($content, $response); $this->client->logger->info(json_encode($logObject)); return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\FormResponseBase', []), + ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -1325,7 +1322,7 @@ public function get1099FormWithHttpInfo($request_parameters, $isRetry = false) ]; } - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -1344,7 +1341,7 @@ public function get1099FormWithHttpInfo($request_parameters, $isRetry = false) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\FormResponseBase', + '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1411,7 +1408,7 @@ function ($response) { public function get1099FormAsyncWithHttpInfo($request_parameters, $isRetry = false) { $logObject = new LogObject($this->client->logRequestAndResponse); - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response'; $request = $this->get1099FormRequest($request_parameters); $logObject->populateRequestInfo($request); return $this->client @@ -1477,6 +1474,7 @@ public function get1099FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1490,12 +1488,6 @@ public function get1099FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling get1099Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling get1099Form' - ); - } $resourcePath = '/1099/forms/{id}'; $formParams = []; @@ -1513,6 +1505,10 @@ public function get1099FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1534,7 +1530,7 @@ public function get1099FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1592,7 +1588,7 @@ public function get1099FormRequest($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse + * @return \Avalara\SDK\Model\A1099\V2\Update1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse */ public function get1099FormPdf($request_parameters) { @@ -1609,7 +1605,7 @@ public function get1099FormPdf($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Avalara\SDK\Model\A1099\V2\Update1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) */ public function get1099FormPdfWithHttpInfo($request_parameters, $isRetry = false) { @@ -1665,7 +1661,7 @@ public function get1099FormPdfWithHttpInfo($request_parameters, $isRetry = false switch($statusCode) { case 200: - if ('\Avalara\SDK\Model\A1099\V2\FormResponseBase' === '\SplFileObject') { + if ('\Avalara\SDK\Model\A1099\V2\Update1099Form200Response' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -1673,7 +1669,7 @@ public function get1099FormPdfWithHttpInfo($request_parameters, $isRetry = false $logObject->populateResponseInfo($content, $response); $this->client->logger->info(json_encode($logObject)); return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\FormResponseBase', []), + ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -1718,7 +1714,7 @@ public function get1099FormPdfWithHttpInfo($request_parameters, $isRetry = false ]; } - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -1737,7 +1733,7 @@ public function get1099FormPdfWithHttpInfo($request_parameters, $isRetry = false case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\FormResponseBase', + '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1804,7 +1800,7 @@ function ($response) { public function get1099FormPdfAsyncWithHttpInfo($request_parameters, $isRetry = false) { $logObject = new LogObject($this->client->logRequestAndResponse); - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response'; $request = $this->get1099FormPdfRequest($request_parameters); $logObject->populateRequestInfo($request); return $this->client @@ -1869,8 +1865,9 @@ public function get1099FormPdfRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $mark_edelivered = $request_parameters->getMarkEdelivered(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1884,12 +1881,6 @@ public function get1099FormPdfRequest($request_parameters) 'Missing the required parameter $avalara_version when calling get1099FormPdf' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling get1099FormPdf' - ); - } $resourcePath = '/1099/forms/{id}/pdf'; $formParams = []; @@ -1918,6 +1909,10 @@ public function get1099FormPdfRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1939,7 +1934,7 @@ public function get1099FormPdfRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2273,11 +2268,12 @@ public function list1099FormsRequest($request_parameters) $requiredScopes = ""; $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $filter = $request_parameters->getFilter(); $top = $request_parameters->getTop(); $skip = $request_parameters->getSkip(); $order_by = $request_parameters->getOrderBy(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'avalara_version' is set if ($avalara_version === null || (is_array($avalara_version) && count($avalara_version) === 0)) { @@ -2285,12 +2281,6 @@ public function list1099FormsRequest($request_parameters) 'Missing the required parameter $avalara_version when calling list1099Forms' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling list1099Forms' - ); - } $resourcePath = '/1099/forms'; $formParams = []; @@ -2352,6 +2342,10 @@ public function list1099FormsRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -2365,7 +2359,7 @@ public function list1099FormsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2423,7 +2417,7 @@ public function list1099FormsRequest($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse + * @return \Avalara\SDK\Model\A1099\V2\Update1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse */ public function update1099Form($request_parameters) { @@ -2440,7 +2434,7 @@ public function update1099Form($request_parameters) * * @throws \Avalara\SDK\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Avalara\SDK\Model\A1099\V2\FormResponseBase|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Avalara\SDK\Model\A1099\V2\Update1099Form200Response|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse|\Avalara\SDK\Model\A1099\V2\ErrorResponse, HTTP status code, HTTP response headers (array of strings) */ public function update1099FormWithHttpInfo($request_parameters, $isRetry = false) { @@ -2496,7 +2490,7 @@ public function update1099FormWithHttpInfo($request_parameters, $isRetry = false switch($statusCode) { case 200: - if ('\Avalara\SDK\Model\A1099\V2\FormResponseBase' === '\SplFileObject') { + if ('\Avalara\SDK\Model\A1099\V2\Update1099Form200Response' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); @@ -2504,7 +2498,7 @@ public function update1099FormWithHttpInfo($request_parameters, $isRetry = false $logObject->populateResponseInfo($content, $response); $this->client->logger->info(json_encode($logObject)); return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\FormResponseBase', []), + ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -2549,7 +2543,7 @@ public function update1099FormWithHttpInfo($request_parameters, $isRetry = false ]; } - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -2568,7 +2562,7 @@ public function update1099FormWithHttpInfo($request_parameters, $isRetry = false case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\FormResponseBase', + '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2635,7 +2629,7 @@ function ($response) { public function update1099FormAsyncWithHttpInfo($request_parameters, $isRetry = false) { $logObject = new LogObject($this->client->logRequestAndResponse); - $returnType = '\Avalara\SDK\Model\A1099\V2\FormResponseBase'; + $returnType = '\Avalara\SDK\Model\A1099\V2\Update1099Form200Response'; $request = $this->update1099FormRequest($request_parameters); $logObject->populateRequestInfo($request); return $this->client @@ -2701,6 +2695,7 @@ public function update1099FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $i_update_form1099_request = $request_parameters->getIUpdateForm1099Request(); // verify the required parameter 'id' is set @@ -2715,12 +2710,6 @@ public function update1099FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling update1099Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling update1099Form' - ); - } $resourcePath = '/1099/forms/{id}'; $formParams = []; @@ -2738,6 +2727,10 @@ public function update1099FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -2759,7 +2752,7 @@ public function update1099FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2819,14 +2812,16 @@ public function update1099FormRequest($request_parameters) * Represents the Request object for the BulkUpsert1099Forms API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) * @param bool $dry_run (optional, default to false) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest $bulk_upsert1099_forms_request (optional) */ class BulkUpsert1099FormsRequestSdk { private $avalara_version; - private $x_correlation_id; private $dry_run; + private $x_correlation_id; + private $x_avalara_client; private $bulk_upsert1099_forms_request; public function __construct() { @@ -2838,6 +2833,13 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } + public function getDryRun() { + return $this->dry_run; + } + + public function setDryRun($dry_run) { + $this->dry_run = $dry_run; + } public function getXCorrelationId() { return $this->x_correlation_id; } @@ -2845,12 +2847,12 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } - public function getDryRun() { - return $this->dry_run; + public function getXAvalaraClient() { + return $this->x_avalara_client; } - public function setDryRun($dry_run) { - $this->dry_run = $dry_run; + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; } public function getBulkUpsert1099FormsRequest() { return $this->bulk_upsert1099_forms_request; @@ -2865,12 +2867,14 @@ public function setBulkUpsert1099FormsRequest($bulk_upsert1099_forms_request) { * Represents the Request object for the Create1099Form API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\ICreateForm1099Request $i_create_form1099_request i_create_form1099_request (optional) */ class Create1099FormRequestSdk { private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $i_create_form1099_request; public function __construct() { @@ -2889,6 +2893,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getICreateForm1099Request() { return $this->i_create_form1099_request; } @@ -2903,12 +2914,14 @@ public function setICreateForm1099Request($i_create_form1099_request) { * * @param string $id The unique identifier of the desired form to delete. (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class Delete1099FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2933,6 +2946,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2940,12 +2960,14 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id id (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class Get1099FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2970,6 +2992,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2977,14 +3006,16 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) * @param bool $mark_edelivered The parameter for marked e-delivered (optional) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class Get1099FormPdfRequestSdk { private $id; private $avalara_version; - private $x_correlation_id; private $mark_edelivered; + private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3002,6 +3033,13 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } + public function getMarkEdelivered() { + return $this->mark_edelivered; + } + + public function setMarkEdelivered($mark_edelivered) { + $this->mark_edelivered = $mark_edelivered; + } public function getXCorrelationId() { return $this->x_correlation_id; } @@ -3009,12 +3047,12 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } - public function getMarkEdelivered() { - return $this->mark_edelivered; + public function getXAvalaraClient() { + return $this->x_avalara_client; } - public function setMarkEdelivered($mark_edelivered) { - $this->mark_edelivered = $mark_edelivered; + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; } } @@ -3022,19 +3060,21 @@ public function setMarkEdelivered($mark_edelivered) { * Represents the Request object for the List1099Forms API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) - * @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. 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 firstPayeeName 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) + * @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. 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) * @param int $top If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional, default to 10) * @param int $skip If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional, default to 0) - * @param string $order_by A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example issuerReferenceId ASC. Supported sorting fields are: issuerReferenceId taxYear createdAt firstPayeeName updatedAt (optional) + * @param string $order_by 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) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class List1099FormsRequestSdk { private $avalara_version; - private $x_correlation_id; private $filter; private $top; private $skip; private $order_by; + private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3045,13 +3085,6 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } - public function getXCorrelationId() { - return $this->x_correlation_id; - } - - public function setXCorrelationId($x_correlation_id) { - $this->x_correlation_id = $x_correlation_id; - } public function getFilter() { return $this->filter; } @@ -3080,6 +3113,20 @@ public function getOrderBy() { public function setOrderBy($order_by) { $this->order_by = $order_by; } + public function getXCorrelationId() { + return $this->x_correlation_id; + } + + public function setXCorrelationId($x_correlation_id) { + $this->x_correlation_id = $x_correlation_id; + } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -3087,13 +3134,15 @@ public function setOrderBy($order_by) { * * @param string $id id (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request $i_update_form1099_request i_update_form1099_request (optional) */ class Update1099FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $i_update_form1099_request; public function __construct() { @@ -3119,6 +3168,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getIUpdateForm1099Request() { return $this->i_update_form1099_request; } diff --git a/lib/API/A1099/V2/FormsW9Api.php b/lib/API/A1099/V2/FormsW9Api.php index a94e2c8..4f3f9cd 100644 --- a/lib/API/A1099/V2/FormsW9Api.php +++ b/lib/API/A1099/V2/FormsW9Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -380,6 +380,7 @@ public function createW9FormRequest($request_parameters) $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $iw9_form_data_models_one_of = $request_parameters->getIw9FormDataModelsOneOf(); // verify the required parameter 'avalara_version' is set @@ -388,12 +389,6 @@ public function createW9FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling createW9Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling createW9Form' - ); - } $resourcePath = '/w9/forms'; $formParams = []; @@ -411,6 +406,10 @@ public function createW9FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -424,7 +423,7 @@ public function createW9FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -671,6 +670,7 @@ public function deleteW9FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -684,12 +684,6 @@ public function deleteW9FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling deleteW9Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling deleteW9Form' - ); - } $resourcePath = '/w9/forms/{id}'; $formParams = []; @@ -707,6 +701,10 @@ public function deleteW9FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -728,7 +726,7 @@ public function deleteW9FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1022,6 +1020,7 @@ public function getW9FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1035,12 +1034,6 @@ public function getW9FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getW9Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getW9Form' - ); - } $resourcePath = '/w9/forms/{id}'; $formParams = []; @@ -1058,6 +1051,10 @@ public function getW9FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1079,379 +1076,7 @@ public function getW9FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; - - $headers['X-Avalara-Client']=$clientId; - - // for model (json/xml) - if (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; - foreach ($formParamValueItems as $formParamValueItem) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValueItem - ]; - } - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); - } - } - - $headers = $this->client->applyAuthToRequest($headers, $requiredScopes); - - $defaultHeaders = []; - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\Query::build($queryParams); - $baseUrl = $this->client->config->getBasePath('A1099'); - return new Request( - 'GET', - $baseUrl . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getW9FormRequest - * - * Retrieve a form request - * - * @param GetW9FormRequestRequestSdk The request parameters for the API call. - * - * @throws \Avalara\SDK\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \Avalara\SDK\Model\A1099\V2\FormRequestModel|\Avalara\SDK\Model\A1099\V2\ErrorModel|string - */ - public function getW9FormRequest($request_parameters) - { - list($response) = $this->getW9FormRequestWithHttpInfo($request_parameters); - return $response; - } - - /** - * Operation getW9FormRequestWithHttpInfo - * - * Retrieve a form request - * - * @param GetW9FormRequestRequestSdk The request parameters for the API call. - * - * @throws \Avalara\SDK\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \Avalara\SDK\Model\A1099\V2\FormRequestModel|\Avalara\SDK\Model\A1099\V2\ErrorModel|string, HTTP status code, HTTP response headers (array of strings) - */ - public function getW9FormRequestWithHttpInfo($request_parameters, $isRetry = false) - { - $logObject = new LogObject($this->client->logRequestAndResponse); - //OAuth2 Scopes - $requiredScopes = ""; - $request = $this->getW9FormRequestRequest($request_parameters); - $logObject->populateRequestInfo($request); - - try { - try { - $response = $this->client->send_sync($request, []); - } catch (RequestException $e) { - $statusCode = $e->getCode(); - if (($statusCode == 401 || $statusCode == 403) && !$isRetry) { - $this->client->refreshAuthToken($e->getRequest() ? $e->getRequest()->getHeaders() : null, $requiredScopes); - list($response) = $this->getW9FormRequestWithHttpInfo($request_parameters, true); - return $response; - } - $logObject->populateErrorInfo($e->getResponse()); - $this->client->logger->error(json_encode($logObject)); - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? (string) $e->getResponse()->getBody() : null - ); - } catch (ConnectException $e) { - $logObject->populateErrorMessage($e->getCode(), $e->getMessage()); - $this->client->logger->error(json_encode($logObject)); - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - (int) $e->getCode(), - null, - null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - switch($statusCode) { - case 200: - if ('\Avalara\SDK\Model\A1099\V2\FormRequestModel' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - } - $logObject->populateResponseInfo($content, $response); - $this->client->logger->info(json_encode($logObject)); - return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\FormRequestModel', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 400: - if ('\Avalara\SDK\Model\A1099\V2\ErrorModel' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - } - $logObject->populateResponseInfo($content, $response); - $this->client->logger->info(json_encode($logObject)); - return [ - ObjectSerializer::deserialize($content, '\Avalara\SDK\Model\A1099\V2\ErrorModel', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - case 401: - if ('string' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - } - $logObject->populateResponseInfo($content, $response); - $this->client->logger->info(json_encode($logObject)); - return [ - ObjectSerializer::deserialize($content, 'string', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\Avalara\SDK\Model\A1099\V2\FormRequestModel'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - } - $logObject->populateResponseInfo($content, $response); - $this->client->logger->info(json_encode($logObject)); - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\FormRequestModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\Avalara\SDK\Model\A1099\V2\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 401: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - 'string', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getW9FormRequestAsync - * - * Retrieve a form request - * - * @param GetW9FormRequestRequestSdk The request parameters for the API call. - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getW9FormRequestAsync($request_parameters) - { - return $this->getW9FormRequestAsyncWithHttpInfo($request_parameters) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getW9FormRequestAsyncWithHttpInfo - * - * Retrieve a form request - * - * @param GetW9FormRequestRequestSdk The request parameters for the API call. - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getW9FormRequestAsyncWithHttpInfo($request_parameters, $isRetry = false) - { - $logObject = new LogObject($this->client->logRequestAndResponse); - $returnType = '\Avalara\SDK\Model\A1099\V2\FormRequestModel'; - $request = $this->getW9FormRequestRequest($request_parameters); - $logObject->populateRequestInfo($request); - return $this->client - ->send_async($request, []) - ->then( - function ($response) use ($returnType, $logObject) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - } - $logObject->populateResponseInfo($content, $response); - $this->client->logger->info(json_encode($logObject)); - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) use ($request_parameters, $isRetry, $request, $logObject) { - //OAuth2 Scopes - $requiredScopes = ""; - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - if (($statusCode == 401 || $statusCode == 403) && !$isRetry) { - $this->client->refreshAuthToken($request->getHeaders(), $requiredScopes); - return $this->getW9FormRequestAsyncWithHttpInfo($request_parameters, true) - ->then( - function ($response) { - return $response[0]; - } - ); - } - $logObject->populateErrorInfo($response); - $this->client->logger->error(json_encode($logObject)); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getW9FormRequest' - * - * @param GetW9FormRequestRequestSdk The request parameters for the API call. - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function getW9FormRequestRequest($request_parameters) - { - //OAuth2 Scopes - $requiredScopes = ""; - - $form_request_id = $request_parameters->getFormRequestId(); - $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); - - // verify the required parameter 'form_request_id' is set - if ($form_request_id === null || (is_array($form_request_id) && count($form_request_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $form_request_id when calling getW9FormRequest' - ); - } - // verify the required parameter 'avalara_version' is set - if ($avalara_version === null || (is_array($avalara_version) && count($avalara_version) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $avalara_version when calling getW9FormRequest' - ); - } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getW9FormRequest' - ); - } - - $resourcePath = '/w9/forms/requests/{formRequestId}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // header params - if ($avalara_version !== null) { - $headerParams['avalara-version'] = ObjectSerializer::toHeaderValue($avalara_version); - } - // header params - if ($x_correlation_id !== null) { - $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); - } - - // path params - if ($form_request_id !== null) { - $resourcePath = str_replace( - '{' . 'formRequestId' . '}', - ObjectSerializer::toPathValue($form_request_id), - $resourcePath - ); - } - - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - [] - ); - } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1764,12 +1389,13 @@ public function listW9FormsRequest($request_parameters) $requiredScopes = ""; $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $filter = $request_parameters->getFilter(); $top = $request_parameters->getTop(); $skip = $request_parameters->getSkip(); $order_by = $request_parameters->getOrderBy(); $count = $request_parameters->getCount(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'avalara_version' is set if ($avalara_version === null || (is_array($avalara_version) && count($avalara_version) === 0)) { @@ -1777,12 +1403,6 @@ public function listW9FormsRequest($request_parameters) 'Missing the required parameter $avalara_version when calling listW9Forms' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling listW9Forms' - ); - } $resourcePath = '/w9/forms'; $formParams = []; @@ -1855,6 +1475,10 @@ public function listW9FormsRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -1868,7 +1492,7 @@ public function listW9FormsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2183,6 +1807,7 @@ public function sendW9FormEmailRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -2196,12 +1821,6 @@ public function sendW9FormEmailRequest($request_parameters) 'Missing the required parameter $avalara_version when calling sendW9FormEmail' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling sendW9FormEmail' - ); - } $resourcePath = '/w9/forms/{id}/$send-email'; $formParams = []; @@ -2219,6 +1838,10 @@ public function sendW9FormEmailRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -2240,7 +1863,7 @@ public function sendW9FormEmailRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2555,6 +2178,7 @@ public function updateW9FormRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $iw9_form_data_models_one_of = $request_parameters->getIw9FormDataModelsOneOf(); // verify the required parameter 'id' is set @@ -2569,12 +2193,6 @@ public function updateW9FormRequest($request_parameters) 'Missing the required parameter $avalara_version when calling updateW9Form' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling updateW9Form' - ); - } $resourcePath = '/w9/forms/{id}'; $formParams = []; @@ -2592,6 +2210,10 @@ public function updateW9FormRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -2613,7 +2235,7 @@ public function updateW9FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2955,6 +2577,7 @@ public function uploadW9FilesRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $file = $request_parameters->getFile(); // verify the required parameter 'id' is set @@ -2969,12 +2592,6 @@ public function uploadW9FilesRequest($request_parameters) 'Missing the required parameter $avalara_version when calling uploadW9Files' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling uploadW9Files' - ); - } $resourcePath = '/w9/forms/{id}/attachment'; $formParams = []; @@ -2992,6 +2609,10 @@ public function uploadW9FilesRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -3025,7 +2646,7 @@ public function uploadW9FilesRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -3079,12 +2700,14 @@ public function uploadW9FilesRequest($request_parameters) * Represents the Request object for the CreateW9Form API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf $iw9_form_data_models_one_of Form to be created (optional) */ class CreateW9FormRequestSdk { private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $iw9_form_data_models_one_of; public function __construct() { @@ -3103,6 +2726,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getIw9FormDataModelsOneOf() { return $this->iw9_form_data_models_one_of; } @@ -3117,12 +2747,14 @@ public function setIw9FormDataModelsOneOf($iw9_form_data_models_one_of) { * * @param string $id Id of the form to delete (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class DeleteW9FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3147,6 +2779,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -3154,12 +2793,14 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id Id of the form (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetW9FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3184,42 +2825,12 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } -} - - /** - * Represents the Request object for the GetW9FormRequest API - * - * @param string $form_request_id (required) - * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) - */ -class GetW9FormRequestRequestSdk { - private $form_request_id; - private $avalara_version; - private $x_correlation_id; - - public function __construct() { - } - public function getFormRequestId() { - return $this->form_request_id; + public function getXAvalaraClient() { + return $this->x_avalara_client; } - public function setFormRequestId($form_request_id) { - $this->form_request_id = $form_request_id; - } - public function getAvalaraVersion() { - return $this->avalara_version ?? '2.0'; - } - - public function setAvalaraVersion($avalara_version) { - $this->avalara_version = $avalara_version; - } - public function getXCorrelationId() { - return $this->x_correlation_id; - } - - public function setXCorrelationId($x_correlation_id) { - $this->x_correlation_id = $x_correlation_id; + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; } } @@ -3227,21 +2838,23 @@ public function setXCorrelationId($x_correlation_id) { * Represents the Request object for the ListW9Forms API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) * @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. (optional) * @param int $top If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional, default to 10) * @param int $skip If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional, default to 0) * @param string $order_by A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) * @param bool $count When true, returns a @recordSetCount in the result set (optional) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class ListW9FormsRequestSdk { private $avalara_version; - private $x_correlation_id; private $filter; private $top; private $skip; private $order_by; private $count; + private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3252,13 +2865,6 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } - public function getXCorrelationId() { - return $this->x_correlation_id; - } - - public function setXCorrelationId($x_correlation_id) { - $this->x_correlation_id = $x_correlation_id; - } public function getFilter() { return $this->filter; } @@ -3294,6 +2900,20 @@ public function getCount() { public function setCount($count) { $this->count = $count; } + public function getXCorrelationId() { + return $this->x_correlation_id; + } + + public function setXCorrelationId($x_correlation_id) { + $this->x_correlation_id = $x_correlation_id; + } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -3301,12 +2921,14 @@ public function setCount($count) { * * @param string $id The ID of the W9/W4/W8 form. (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class SendW9FormEmailRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -3331,6 +2953,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -3338,13 +2967,15 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id Id of the form to update (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf $iw9_form_data_models_one_of Form to be updated (optional) */ class UpdateW9FormRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $iw9_form_data_models_one_of; public function __construct() { @@ -3370,6 +3001,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getIw9FormDataModelsOneOf() { return $this->iw9_form_data_models_one_of; } @@ -3384,13 +3022,15 @@ public function setIw9FormDataModelsOneOf($iw9_form_data_models_one_of) { * * @param string $id Id of the form (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \SplFileObject $file file (optional) */ class UploadW9FilesRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $file; public function __construct() { @@ -3416,6 +3056,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getFile() { return $this->file; } diff --git a/lib/API/A1099/V2/Issuers1099Api.php b/lib/API/A1099/V2/Issuers1099Api.php index c7916bc..e960dda 100644 --- a/lib/API/A1099/V2/Issuers1099Api.php +++ b/lib/API/A1099/V2/Issuers1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -380,6 +380,7 @@ public function createIssuerRequest($request_parameters) $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $issuer_command = $request_parameters->getIssuerCommand(); // verify the required parameter 'avalara_version' is set @@ -388,12 +389,6 @@ public function createIssuerRequest($request_parameters) 'Missing the required parameter $avalara_version when calling createIssuer' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling createIssuer' - ); - } $resourcePath = '/1099/issuers'; $formParams = []; @@ -411,6 +406,10 @@ public function createIssuerRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -424,7 +423,7 @@ public function createIssuerRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -671,6 +670,7 @@ public function deleteIssuerRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -684,12 +684,6 @@ public function deleteIssuerRequest($request_parameters) 'Missing the required parameter $avalara_version when calling deleteIssuer' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling deleteIssuer' - ); - } $resourcePath = '/1099/issuers/{id}'; $formParams = []; @@ -707,6 +701,10 @@ public function deleteIssuerRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -728,7 +726,7 @@ public function deleteIssuerRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1043,6 +1041,7 @@ public function getIssuerRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -1056,12 +1055,6 @@ public function getIssuerRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getIssuer' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getIssuer' - ); - } $resourcePath = '/1099/issuers/{id}'; $formParams = []; @@ -1079,6 +1072,10 @@ public function getIssuerRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1100,7 +1097,7 @@ public function getIssuerRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1455,13 +1452,14 @@ public function getIssuersRequest($request_parameters) $requiredScopes = ""; $avalara_version = $request_parameters->getAvalaraVersion(); - $x_correlation_id = $request_parameters->getXCorrelationId(); $filter = $request_parameters->getFilter(); $top = $request_parameters->getTop(); $skip = $request_parameters->getSkip(); $order_by = $request_parameters->getOrderBy(); $count = $request_parameters->getCount(); $count_only = $request_parameters->getCountOnly(); + $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'avalara_version' is set if ($avalara_version === null || (is_array($avalara_version) && count($avalara_version) === 0)) { @@ -1469,12 +1467,6 @@ public function getIssuersRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getIssuers' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getIssuers' - ); - } $resourcePath = '/1099/issuers'; $formParams = []; @@ -1558,6 +1550,10 @@ public function getIssuersRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } @@ -1571,7 +1567,7 @@ public function getIssuersRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1812,6 +1808,7 @@ public function updateIssuerRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); $issuer_command = $request_parameters->getIssuerCommand(); // verify the required parameter 'id' is set @@ -1826,12 +1823,6 @@ public function updateIssuerRequest($request_parameters) 'Missing the required parameter $avalara_version when calling updateIssuer' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling updateIssuer' - ); - } $resourcePath = '/1099/issuers/{id}'; $formParams = []; @@ -1849,6 +1840,10 @@ public function updateIssuerRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -1870,7 +1865,7 @@ public function updateIssuerRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1930,12 +1925,14 @@ public function updateIssuerRequest($request_parameters) * Represents the Request object for the CreateIssuer API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\IssuerCommand $issuer_command The issuer to create (optional) */ class CreateIssuerRequestSdk { private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $issuer_command; public function __construct() { @@ -1954,6 +1951,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getIssuerCommand() { return $this->issuer_command; } @@ -1968,12 +1972,14 @@ public function setIssuerCommand($issuer_command) { * * @param string $id Id of the issuer to delete (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class DeleteIssuerRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -1998,6 +2004,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2005,12 +2018,14 @@ public function setXCorrelationId($x_correlation_id) { * * @param string $id id (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetIssuerRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2035,29 +2050,38 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** * Represents the Request object for the GetIssuers API * * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) * @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see <a href=\"https://developer.avalara.com/avatax/filtering-in-rest/\">Filtering in REST</a>. (optional) * @param int $top 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) * @param int $skip If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) * @param string $order_by A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) * @param bool $count If true, return the global count of elements in the collection. (optional) * @param bool $count_only If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetIssuersRequestSdk { private $avalara_version; - private $x_correlation_id; private $filter; private $top; private $skip; private $order_by; private $count; private $count_only; + private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -2068,13 +2092,6 @@ public function getAvalaraVersion() { public function setAvalaraVersion($avalara_version) { $this->avalara_version = $avalara_version; } - public function getXCorrelationId() { - return $this->x_correlation_id; - } - - public function setXCorrelationId($x_correlation_id) { - $this->x_correlation_id = $x_correlation_id; - } public function getFilter() { return $this->filter; } @@ -2117,6 +2134,20 @@ public function getCountOnly() { public function setCountOnly($count_only) { $this->count_only = $count_only; } + public function getXCorrelationId() { + return $this->x_correlation_id; + } + + public function setXCorrelationId($x_correlation_id) { + $this->x_correlation_id = $x_correlation_id; + } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } /** @@ -2124,13 +2155,15 @@ public function setCountOnly($count_only) { * * @param string $id Id of the issuer to Update (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) * @param \Avalara\SDK\Model\A1099\V2\IssuerCommand $issuer_command The issuer to update (optional) */ class UpdateIssuerRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; private $issuer_command; public function __construct() { @@ -2156,6 +2189,13 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } public function getIssuerCommand() { return $this->issuer_command; } diff --git a/lib/API/A1099/V2/Jobs1099Api.php b/lib/API/A1099/V2/Jobs1099Api.php index 8a365c0..6480b6d 100644 --- a/lib/API/A1099/V2/Jobs1099Api.php +++ b/lib/API/A1099/V2/Jobs1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -402,6 +402,7 @@ public function getJobRequest($request_parameters) $id = $request_parameters->getId(); $avalara_version = $request_parameters->getAvalaraVersion(); $x_correlation_id = $request_parameters->getXCorrelationId(); + $x_avalara_client = $request_parameters->getXAvalaraClient(); // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { @@ -415,12 +416,6 @@ public function getJobRequest($request_parameters) 'Missing the required parameter $avalara_version when calling getJob' ); } - // verify the required parameter 'x_correlation_id' is set - if ($x_correlation_id === null || (is_array($x_correlation_id) && count($x_correlation_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $x_correlation_id when calling getJob' - ); - } $resourcePath = '/1099/jobs/{id}'; $formParams = []; @@ -438,6 +433,10 @@ public function getJobRequest($request_parameters) if ($x_correlation_id !== null) { $headerParams['X-Correlation-Id'] = ObjectSerializer::toHeaderValue($x_correlation_id); } + // header params + if ($x_avalara_client !== null) { + $headerParams['X-Avalara-Client'] = ObjectSerializer::toHeaderValue($x_avalara_client); + } // path params if ($id !== null) { @@ -459,7 +458,7 @@ public function getJobRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -514,12 +513,14 @@ public function getJobRequest($request_parameters) * * @param string $id Job id obtained from other API responses, like `/1099/bulk-upsert`. (required) * @param string $avalara_version API version (required) - * @param string $x_correlation_id Unique correlation Id in a GUID format (required) + * @param string $x_correlation_id Unique correlation Id in a GUID format (optional) + * @param string $x_avalara_client Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . (optional) */ class GetJobRequestSdk { private $id; private $avalara_version; private $x_correlation_id; + private $x_avalara_client; public function __construct() { } @@ -544,5 +545,12 @@ public function getXCorrelationId() { public function setXCorrelationId($x_correlation_id) { $this->x_correlation_id = $x_correlation_id; } + public function getXAvalaraClient() { + return $this->x_avalara_client; + } + + public function setXAvalaraClient($x_avalara_client) { + $this->x_avalara_client = $x_avalara_client; + } } diff --git a/lib/API/EInvoicing/V1/DataInputFieldsApi.php b/lib/API/EInvoicing/V1/DataInputFieldsApi.php index 6f182a3..56a77a2 100644 --- a/lib/API/EInvoicing/V1/DataInputFieldsApi.php +++ b/lib/API/EInvoicing/V1/DataInputFieldsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -477,7 +477,7 @@ public function getDataInputFieldsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -533,8 +533,8 @@ public function getDataInputFieldsRequest($request_parameters) * @param string $avalara_version The HTTP Header meant to specify the version of the API intended to be used (required) * @param string $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. (optional) * @param string $filter Filter by field name and value. This filter only supports <code>eq</code> and <code>contains</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. (optional) - * @param float $top If nonzero, return no more than this number of results. Used with <code>$skip</code> 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) - * @param float $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) + * @param float $top The number of items to include in the result. (optional) + * @param string $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) * @param bool $count When set to true, the count of the collection is also returned in the response body (optional) * @param bool $count_only When set to true, only the count of the collection is returned (optional) */ diff --git a/lib/API/EInvoicing/V1/DocumentsApi.php b/lib/API/EInvoicing/V1/DocumentsApi.php index 006ce9a..4844eae 100644 --- a/lib/API/EInvoicing/V1/DocumentsApi.php +++ b/lib/API/EInvoicing/V1/DocumentsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -464,7 +464,7 @@ public function downloadDocumentRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -822,7 +822,7 @@ public function fetchDocumentsRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1275,7 +1275,7 @@ public function getDocumentListRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1641,7 +1641,7 @@ public function getDocumentStatusRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2014,7 +2014,7 @@ public function submitDocumentRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2158,7 +2158,7 @@ public function setXAvalaraClient($x_avalara_client) { * @param string $count When set to true, the count of the collection is also returned in the response body (optional) * @param string $count_only When set to true, only the count of the collection is returned (optional) * @param string $filter Filter by field name and value. This filter only supports <code>eq</code> . Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. Filtering will be done over the provided startDate and endDate. If no startDate or endDate is provided, defaults will be assumed. (optional) - * @param float $top If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 200 records. (optional) + * @param float $top The number of items to include in the result. (optional) * @param string $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) */ class GetDocumentListRequestSdk { diff --git a/lib/API/EInvoicing/V1/InteropApi.php b/lib/API/EInvoicing/V1/InteropApi.php index 5f043be..17ead1a 100644 --- a/lib/API/EInvoicing/V1/InteropApi.php +++ b/lib/API/EInvoicing/V1/InteropApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -513,7 +513,7 @@ public function submitInteropDocumentRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/MandatesApi.php b/lib/API/EInvoicing/V1/MandatesApi.php index 43b5bbd..e624014 100644 --- a/lib/API/EInvoicing/V1/MandatesApi.php +++ b/lib/API/EInvoicing/V1/MandatesApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -510,7 +510,7 @@ public function getMandateDataInputFieldsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -942,7 +942,7 @@ public function getMandatesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1053,8 +1053,8 @@ public function setXAvalaraClient($x_avalara_client) { * @param string $avalara_version The HTTP Header meant to specify the version of the API intended to be used (required) * @param string $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a fingerprint. (optional) * @param string $filter Filter by field name and value. This filter only supports <code>eq</code> and <code>contains</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. (optional) - * @param float $top If nonzero, return no more than this number of results. Used with <code>$skip</code> 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) - * @param float $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) + * @param float $top The number of items to include in the result. (optional) + * @param string $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) * @param bool $count When set to true, the count of the collection is also returned in the response body. (optional) * @param bool $count_only When set to true, only the count of the collection is returned (optional) */ diff --git a/lib/API/EInvoicing/V1/SubscriptionsApi.php b/lib/API/EInvoicing/V1/SubscriptionsApi.php index 436dad9..938c86f 100644 --- a/lib/API/EInvoicing/V1/SubscriptionsApi.php +++ b/lib/API/EInvoicing/V1/SubscriptionsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -450,7 +450,7 @@ public function createWebhookSubscriptionRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -761,7 +761,7 @@ public function deleteWebhookSubscriptionRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1153,7 +1153,7 @@ public function getWebhookSubscriptionRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1578,7 +1578,7 @@ public function listWebhookSubscriptionsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1772,8 +1772,8 @@ public function setXAvalaraClient($x_avalara_client) { * @param string $avalara_version The version of the API to use, e.g., \"1.3\". (required) * @param string $x_correlation_id A unique identifier for tracking the request and its response (optional) * @param string $x_avalara_client Client application identification (optional) - * @param int $top The number of items to include in the result. (optional) - * @param int $skip The number of items to skip in the result. (optional) + * @param float $top The number of items to include in the result. (optional) + * @param float $skip The number of items to skip in the result. (optional) * @param bool $count Whether to include the total count of records in the result. (optional) * @param bool $count_only Whether to return only the count of records, without the list of records. (optional) */ diff --git a/lib/API/EInvoicing/V1/TradingPartnersApi.php b/lib/API/EInvoicing/V1/TradingPartnersApi.php index 822aea3..1eb3079 100644 --- a/lib/API/EInvoicing/V1/TradingPartnersApi.php +++ b/lib/API/EInvoicing/V1/TradingPartnersApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.6.0"); + $client->setSdkVersion("25.7.2"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -519,7 +519,7 @@ public function batchSearchParticipantsRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -932,7 +932,7 @@ public function downloadBatchSearchReportRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1345,7 +1345,7 @@ public function getBatchSearchDetailRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1803,7 +1803,7 @@ public function listBatchSearchesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2279,7 +2279,7 @@ public function searchParticipantsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.6.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.7.2; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2492,7 +2492,7 @@ public function setXCorrelationId($x_correlation_id) { * @param string $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \"Fingerprint\" (optional) * @param string $filter Filter by field name and value. This filter only supports <code>eq</code> .The parameters supported is <code>name</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. Filtering will be done over the provided parameters. (optional) * @param bool $count When set to true, the count of the collection is included as @recordSetCount in the response body. (optional) - * @param string $top If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 200 records. (optional) + * @param float $top The number of items to include in the result. (optional) * @param string $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) * @param string $order_by The $orderBy query parameter specifies the field and sorting direction for ordering the result set. The value is a string that combines a field name and a sorting direction (asc for ascending or desc for descending), separated by a space. (optional) * @param string $x_correlation_id The caller can use this as an identifier to use as a correlation id to trace the call. (optional) @@ -2575,7 +2575,7 @@ public function setXCorrelationId($x_correlation_id) { * @param string $x_avalara_client You can freely use any text you wish for this value. This feature can help you diagnose and solve problems with your software. The header can be treated like a \"Fingerprint\" (optional) * @param bool $count When set to true, the count of the collection is included as @recordSetCount in the response body. (optional) * @param string $filter Filter by field name and value. This filter only supports <code>eq</code> .The parameters supported are <code>network</code>, <code>country</code>, <code>documentType</code>, <code>idType</code>. Refer to [https://developer.avalara.com/avatax/filtering-in-rest/](https://developer.avalara.com/avatax/filtering-in-rest/) for more information on filtering. Filtering will be done over the provided parameters. (optional) - * @param string $top If nonzero, return no more than this number of results. Used with <code>$skip</code> to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 200 records. (optional) + * @param float $top The number of items to include in the result. (optional) * @param string $skip If nonzero, skip this number of results before returning data. Used with <code>$top</code> to provide pagination for large datasets. (optional) * @param string $order_by The $orderBy query parameter specifies the field and sorting direction for ordering the result set. The value is a string that combines a field name and a sorting direction (asc for ascending or desc for descending), separated by a space. (optional) * @param string $x_correlation_id The caller can use this as an identifier to use as a correlation id to trace the call. (optional) diff --git a/lib/Model/A1099/V2/CoveredIndividualReference.php b/lib/Model/A1099/V2/CoveredIndividualReference.php new file mode 100644 index 0000000..c7ab7ed --- /dev/null +++ b/lib/Model/A1099/V2/CoveredIndividualReference.php @@ -0,0 +1,932 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * CoveredIndividualReference Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class CoveredIndividualReference implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CoveredIndividualReference'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'first_name' => 'string', + 'middle_name' => 'string', + 'last_name' => 'string', + 'name_suffix' => 'string', + 'tin' => 'string', + 'birth_date' => '\DateTime', + 'covered_month0' => 'bool', + 'covered_month1' => 'bool', + 'covered_month2' => 'bool', + 'covered_month3' => 'bool', + 'covered_month4' => 'bool', + 'covered_month5' => 'bool', + 'covered_month6' => 'bool', + 'covered_month7' => 'bool', + 'covered_month8' => 'bool', + 'covered_month9' => 'bool', + 'covered_month10' => 'bool', + 'covered_month11' => 'bool', + 'covered_month12' => 'bool', + 'id' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'first_name' => null, + 'middle_name' => null, + 'last_name' => null, + 'name_suffix' => null, + 'tin' => null, + 'birth_date' => 'date-time', + 'covered_month0' => null, + 'covered_month1' => null, + 'covered_month2' => null, + 'covered_month3' => null, + 'covered_month4' => null, + 'covered_month5' => null, + 'covered_month6' => null, + 'covered_month7' => null, + 'covered_month8' => null, + 'covered_month9' => null, + 'covered_month10' => null, + 'covered_month11' => null, + 'covered_month12' => null, + 'id' => null, + 'type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'first_name' => 'firstName', + 'middle_name' => 'middleName', + 'last_name' => 'lastName', + 'name_suffix' => 'nameSuffix', + 'tin' => 'tin', + 'birth_date' => 'birthDate', + 'covered_month0' => 'coveredMonth0', + 'covered_month1' => 'coveredMonth1', + 'covered_month2' => 'coveredMonth2', + 'covered_month3' => 'coveredMonth3', + 'covered_month4' => 'coveredMonth4', + 'covered_month5' => 'coveredMonth5', + 'covered_month6' => 'coveredMonth6', + 'covered_month7' => 'coveredMonth7', + 'covered_month8' => 'coveredMonth8', + 'covered_month9' => 'coveredMonth9', + 'covered_month10' => 'coveredMonth10', + 'covered_month11' => 'coveredMonth11', + 'covered_month12' => 'coveredMonth12', + 'id' => 'id', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'first_name' => 'setFirstName', + 'middle_name' => 'setMiddleName', + 'last_name' => 'setLastName', + 'name_suffix' => 'setNameSuffix', + 'tin' => 'setTin', + 'birth_date' => 'setBirthDate', + 'covered_month0' => 'setCoveredMonth0', + 'covered_month1' => 'setCoveredMonth1', + 'covered_month2' => 'setCoveredMonth2', + 'covered_month3' => 'setCoveredMonth3', + 'covered_month4' => 'setCoveredMonth4', + 'covered_month5' => 'setCoveredMonth5', + 'covered_month6' => 'setCoveredMonth6', + 'covered_month7' => 'setCoveredMonth7', + 'covered_month8' => 'setCoveredMonth8', + 'covered_month9' => 'setCoveredMonth9', + 'covered_month10' => 'setCoveredMonth10', + 'covered_month11' => 'setCoveredMonth11', + 'covered_month12' => 'setCoveredMonth12', + 'id' => 'setId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'first_name' => 'getFirstName', + 'middle_name' => 'getMiddleName', + 'last_name' => 'getLastName', + 'name_suffix' => 'getNameSuffix', + 'tin' => 'getTin', + 'birth_date' => 'getBirthDate', + 'covered_month0' => 'getCoveredMonth0', + 'covered_month1' => 'getCoveredMonth1', + 'covered_month2' => 'getCoveredMonth2', + 'covered_month3' => 'getCoveredMonth3', + 'covered_month4' => 'getCoveredMonth4', + 'covered_month5' => 'getCoveredMonth5', + 'covered_month6' => 'getCoveredMonth6', + 'covered_month7' => 'getCoveredMonth7', + 'covered_month8' => 'getCoveredMonth8', + 'covered_month9' => 'getCoveredMonth9', + 'covered_month10' => 'getCoveredMonth10', + 'covered_month11' => 'getCoveredMonth11', + 'covered_month12' => 'getCoveredMonth12', + 'id' => 'getId', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['first_name'] = $data['first_name'] ?? null; + $this->container['middle_name'] = $data['middle_name'] ?? null; + $this->container['last_name'] = $data['last_name'] ?? null; + $this->container['name_suffix'] = $data['name_suffix'] ?? null; + $this->container['tin'] = $data['tin'] ?? null; + $this->container['birth_date'] = $data['birth_date'] ?? null; + $this->container['covered_month0'] = $data['covered_month0'] ?? null; + $this->container['covered_month1'] = $data['covered_month1'] ?? null; + $this->container['covered_month2'] = $data['covered_month2'] ?? null; + $this->container['covered_month3'] = $data['covered_month3'] ?? null; + $this->container['covered_month4'] = $data['covered_month4'] ?? null; + $this->container['covered_month5'] = $data['covered_month5'] ?? null; + $this->container['covered_month6'] = $data['covered_month6'] ?? null; + $this->container['covered_month7'] = $data['covered_month7'] ?? null; + $this->container['covered_month8'] = $data['covered_month8'] ?? null; + $this->container['covered_month9'] = $data['covered_month9'] ?? null; + $this->container['covered_month10'] = $data['covered_month10'] ?? null; + $this->container['covered_month11'] = $data['covered_month11'] ?? null; + $this->container['covered_month12'] = $data['covered_month12'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets first_name + * + * @return string|null + */ + public function getFirstName() + { + return $this->container['first_name']; + } + + /** + * Sets first_name + * + * @param string|null $first_name first_name + * + * @return self + */ + public function setFirstName($first_name) + { + $this->container['first_name'] = $first_name; + + return $this; + } + + /** + * Gets middle_name + * + * @return string|null + */ + public function getMiddleName() + { + return $this->container['middle_name']; + } + + /** + * Sets middle_name + * + * @param string|null $middle_name middle_name + * + * @return self + */ + public function setMiddleName($middle_name) + { + $this->container['middle_name'] = $middle_name; + + return $this; + } + + /** + * Gets last_name + * + * @return string|null + */ + public function getLastName() + { + return $this->container['last_name']; + } + + /** + * Sets last_name + * + * @param string|null $last_name last_name + * + * @return self + */ + public function setLastName($last_name) + { + $this->container['last_name'] = $last_name; + + return $this; + } + + /** + * Gets name_suffix + * + * @return string|null + */ + public function getNameSuffix() + { + return $this->container['name_suffix']; + } + + /** + * Sets name_suffix + * + * @param string|null $name_suffix name_suffix + * + * @return self + */ + public function setNameSuffix($name_suffix) + { + $this->container['name_suffix'] = $name_suffix; + + return $this; + } + + /** + * Gets tin + * + * @return string|null + */ + public function getTin() + { + return $this->container['tin']; + } + + /** + * Sets tin + * + * @param string|null $tin tin + * + * @return self + */ + public function setTin($tin) + { + $this->container['tin'] = $tin; + + return $this; + } + + /** + * Gets birth_date + * + * @return \DateTime|null + */ + public function getBirthDate() + { + return $this->container['birth_date']; + } + + /** + * Sets birth_date + * + * @param \DateTime|null $birth_date birth_date + * + * @return self + */ + public function setBirthDate($birth_date) + { + $this->container['birth_date'] = $birth_date; + + return $this; + } + + /** + * Gets covered_month0 + * + * @return bool|null + */ + public function getCoveredMonth0() + { + return $this->container['covered_month0']; + } + + /** + * Sets covered_month0 + * + * @param bool|null $covered_month0 covered_month0 + * + * @return self + */ + public function setCoveredMonth0($covered_month0) + { + $this->container['covered_month0'] = $covered_month0; + + return $this; + } + + /** + * Gets covered_month1 + * + * @return bool|null + */ + public function getCoveredMonth1() + { + return $this->container['covered_month1']; + } + + /** + * Sets covered_month1 + * + * @param bool|null $covered_month1 covered_month1 + * + * @return self + */ + public function setCoveredMonth1($covered_month1) + { + $this->container['covered_month1'] = $covered_month1; + + return $this; + } + + /** + * Gets covered_month2 + * + * @return bool|null + */ + public function getCoveredMonth2() + { + return $this->container['covered_month2']; + } + + /** + * Sets covered_month2 + * + * @param bool|null $covered_month2 covered_month2 + * + * @return self + */ + public function setCoveredMonth2($covered_month2) + { + $this->container['covered_month2'] = $covered_month2; + + return $this; + } + + /** + * Gets covered_month3 + * + * @return bool|null + */ + public function getCoveredMonth3() + { + return $this->container['covered_month3']; + } + + /** + * Sets covered_month3 + * + * @param bool|null $covered_month3 covered_month3 + * + * @return self + */ + public function setCoveredMonth3($covered_month3) + { + $this->container['covered_month3'] = $covered_month3; + + return $this; + } + + /** + * Gets covered_month4 + * + * @return bool|null + */ + public function getCoveredMonth4() + { + return $this->container['covered_month4']; + } + + /** + * Sets covered_month4 + * + * @param bool|null $covered_month4 covered_month4 + * + * @return self + */ + public function setCoveredMonth4($covered_month4) + { + $this->container['covered_month4'] = $covered_month4; + + return $this; + } + + /** + * Gets covered_month5 + * + * @return bool|null + */ + public function getCoveredMonth5() + { + return $this->container['covered_month5']; + } + + /** + * Sets covered_month5 + * + * @param bool|null $covered_month5 covered_month5 + * + * @return self + */ + public function setCoveredMonth5($covered_month5) + { + $this->container['covered_month5'] = $covered_month5; + + return $this; + } + + /** + * Gets covered_month6 + * + * @return bool|null + */ + public function getCoveredMonth6() + { + return $this->container['covered_month6']; + } + + /** + * Sets covered_month6 + * + * @param bool|null $covered_month6 covered_month6 + * + * @return self + */ + public function setCoveredMonth6($covered_month6) + { + $this->container['covered_month6'] = $covered_month6; + + return $this; + } + + /** + * Gets covered_month7 + * + * @return bool|null + */ + public function getCoveredMonth7() + { + return $this->container['covered_month7']; + } + + /** + * Sets covered_month7 + * + * @param bool|null $covered_month7 covered_month7 + * + * @return self + */ + public function setCoveredMonth7($covered_month7) + { + $this->container['covered_month7'] = $covered_month7; + + return $this; + } + + /** + * Gets covered_month8 + * + * @return bool|null + */ + public function getCoveredMonth8() + { + return $this->container['covered_month8']; + } + + /** + * Sets covered_month8 + * + * @param bool|null $covered_month8 covered_month8 + * + * @return self + */ + public function setCoveredMonth8($covered_month8) + { + $this->container['covered_month8'] = $covered_month8; + + return $this; + } + + /** + * Gets covered_month9 + * + * @return bool|null + */ + public function getCoveredMonth9() + { + return $this->container['covered_month9']; + } + + /** + * Sets covered_month9 + * + * @param bool|null $covered_month9 covered_month9 + * + * @return self + */ + public function setCoveredMonth9($covered_month9) + { + $this->container['covered_month9'] = $covered_month9; + + return $this; + } + + /** + * Gets covered_month10 + * + * @return bool|null + */ + public function getCoveredMonth10() + { + return $this->container['covered_month10']; + } + + /** + * Sets covered_month10 + * + * @param bool|null $covered_month10 covered_month10 + * + * @return self + */ + public function setCoveredMonth10($covered_month10) + { + $this->container['covered_month10'] = $covered_month10; + + return $this; + } + + /** + * Gets covered_month11 + * + * @return bool|null + */ + public function getCoveredMonth11() + { + return $this->container['covered_month11']; + } + + /** + * Sets covered_month11 + * + * @param bool|null $covered_month11 covered_month11 + * + * @return self + */ + public function setCoveredMonth11($covered_month11) + { + $this->container['covered_month11'] = $covered_month11; + + return $this; + } + + /** + * Gets covered_month12 + * + * @return bool|null + */ + public function getCoveredMonth12() + { + return $this->container['covered_month12']; + } + + /** + * Sets covered_month12 + * + * @param bool|null $covered_month12 covered_month12 + * + * @return self + */ + public function setCoveredMonth12($covered_month12) + { + $this->container['covered_month12'] = $covered_month12; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/CoveredIndividualRequest.php b/lib/Model/A1099/V2/CoveredIndividualRequest.php new file mode 100644 index 0000000..8b8dc17 --- /dev/null +++ b/lib/Model/A1099/V2/CoveredIndividualRequest.php @@ -0,0 +1,872 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * CoveredIndividualRequest Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class CoveredIndividualRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CoveredIndividualRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'first_name' => 'string', + 'middle_name' => 'string', + 'last_name' => 'string', + 'name_suffix' => 'string', + 'tin' => 'string', + 'birth_date' => '\DateTime', + 'covered_month_indicator0' => 'bool', + 'covered_month_indicator1' => 'bool', + 'covered_month_indicator2' => 'bool', + 'covered_month_indicator3' => 'bool', + 'covered_month_indicator4' => 'bool', + 'covered_month_indicator5' => 'bool', + 'covered_month_indicator6' => 'bool', + 'covered_month_indicator7' => 'bool', + 'covered_month_indicator8' => 'bool', + 'covered_month_indicator9' => 'bool', + 'covered_month_indicator10' => 'bool', + 'covered_month_indicator11' => 'bool', + 'covered_month_indicator12' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'first_name' => null, + 'middle_name' => null, + 'last_name' => null, + 'name_suffix' => null, + 'tin' => null, + 'birth_date' => 'date-time', + 'covered_month_indicator0' => null, + 'covered_month_indicator1' => null, + 'covered_month_indicator2' => null, + 'covered_month_indicator3' => null, + 'covered_month_indicator4' => null, + 'covered_month_indicator5' => null, + 'covered_month_indicator6' => null, + 'covered_month_indicator7' => null, + 'covered_month_indicator8' => null, + 'covered_month_indicator9' => null, + 'covered_month_indicator10' => null, + 'covered_month_indicator11' => null, + 'covered_month_indicator12' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'first_name' => 'firstName', + 'middle_name' => 'middleName', + 'last_name' => 'lastName', + 'name_suffix' => 'nameSuffix', + 'tin' => 'tin', + 'birth_date' => 'birthDate', + 'covered_month_indicator0' => 'coveredMonthIndicator0', + 'covered_month_indicator1' => 'coveredMonthIndicator1', + 'covered_month_indicator2' => 'coveredMonthIndicator2', + 'covered_month_indicator3' => 'coveredMonthIndicator3', + 'covered_month_indicator4' => 'coveredMonthIndicator4', + 'covered_month_indicator5' => 'coveredMonthIndicator5', + 'covered_month_indicator6' => 'coveredMonthIndicator6', + 'covered_month_indicator7' => 'coveredMonthIndicator7', + 'covered_month_indicator8' => 'coveredMonthIndicator8', + 'covered_month_indicator9' => 'coveredMonthIndicator9', + 'covered_month_indicator10' => 'coveredMonthIndicator10', + 'covered_month_indicator11' => 'coveredMonthIndicator11', + 'covered_month_indicator12' => 'coveredMonthIndicator12' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'first_name' => 'setFirstName', + 'middle_name' => 'setMiddleName', + 'last_name' => 'setLastName', + 'name_suffix' => 'setNameSuffix', + 'tin' => 'setTin', + 'birth_date' => 'setBirthDate', + 'covered_month_indicator0' => 'setCoveredMonthIndicator0', + 'covered_month_indicator1' => 'setCoveredMonthIndicator1', + 'covered_month_indicator2' => 'setCoveredMonthIndicator2', + 'covered_month_indicator3' => 'setCoveredMonthIndicator3', + 'covered_month_indicator4' => 'setCoveredMonthIndicator4', + 'covered_month_indicator5' => 'setCoveredMonthIndicator5', + 'covered_month_indicator6' => 'setCoveredMonthIndicator6', + 'covered_month_indicator7' => 'setCoveredMonthIndicator7', + 'covered_month_indicator8' => 'setCoveredMonthIndicator8', + 'covered_month_indicator9' => 'setCoveredMonthIndicator9', + 'covered_month_indicator10' => 'setCoveredMonthIndicator10', + 'covered_month_indicator11' => 'setCoveredMonthIndicator11', + 'covered_month_indicator12' => 'setCoveredMonthIndicator12' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'first_name' => 'getFirstName', + 'middle_name' => 'getMiddleName', + 'last_name' => 'getLastName', + 'name_suffix' => 'getNameSuffix', + 'tin' => 'getTin', + 'birth_date' => 'getBirthDate', + 'covered_month_indicator0' => 'getCoveredMonthIndicator0', + 'covered_month_indicator1' => 'getCoveredMonthIndicator1', + 'covered_month_indicator2' => 'getCoveredMonthIndicator2', + 'covered_month_indicator3' => 'getCoveredMonthIndicator3', + 'covered_month_indicator4' => 'getCoveredMonthIndicator4', + 'covered_month_indicator5' => 'getCoveredMonthIndicator5', + 'covered_month_indicator6' => 'getCoveredMonthIndicator6', + 'covered_month_indicator7' => 'getCoveredMonthIndicator7', + 'covered_month_indicator8' => 'getCoveredMonthIndicator8', + 'covered_month_indicator9' => 'getCoveredMonthIndicator9', + 'covered_month_indicator10' => 'getCoveredMonthIndicator10', + 'covered_month_indicator11' => 'getCoveredMonthIndicator11', + 'covered_month_indicator12' => 'getCoveredMonthIndicator12' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['first_name'] = $data['first_name'] ?? null; + $this->container['middle_name'] = $data['middle_name'] ?? null; + $this->container['last_name'] = $data['last_name'] ?? null; + $this->container['name_suffix'] = $data['name_suffix'] ?? null; + $this->container['tin'] = $data['tin'] ?? null; + $this->container['birth_date'] = $data['birth_date'] ?? null; + $this->container['covered_month_indicator0'] = $data['covered_month_indicator0'] ?? null; + $this->container['covered_month_indicator1'] = $data['covered_month_indicator1'] ?? null; + $this->container['covered_month_indicator2'] = $data['covered_month_indicator2'] ?? null; + $this->container['covered_month_indicator3'] = $data['covered_month_indicator3'] ?? null; + $this->container['covered_month_indicator4'] = $data['covered_month_indicator4'] ?? null; + $this->container['covered_month_indicator5'] = $data['covered_month_indicator5'] ?? null; + $this->container['covered_month_indicator6'] = $data['covered_month_indicator6'] ?? null; + $this->container['covered_month_indicator7'] = $data['covered_month_indicator7'] ?? null; + $this->container['covered_month_indicator8'] = $data['covered_month_indicator8'] ?? null; + $this->container['covered_month_indicator9'] = $data['covered_month_indicator9'] ?? null; + $this->container['covered_month_indicator10'] = $data['covered_month_indicator10'] ?? null; + $this->container['covered_month_indicator11'] = $data['covered_month_indicator11'] ?? null; + $this->container['covered_month_indicator12'] = $data['covered_month_indicator12'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets first_name + * + * @return string|null + */ + public function getFirstName() + { + return $this->container['first_name']; + } + + /** + * Sets first_name + * + * @param string|null $first_name first_name + * + * @return self + */ + public function setFirstName($first_name) + { + $this->container['first_name'] = $first_name; + + return $this; + } + + /** + * Gets middle_name + * + * @return string|null + */ + public function getMiddleName() + { + return $this->container['middle_name']; + } + + /** + * Sets middle_name + * + * @param string|null $middle_name middle_name + * + * @return self + */ + public function setMiddleName($middle_name) + { + $this->container['middle_name'] = $middle_name; + + return $this; + } + + /** + * Gets last_name + * + * @return string|null + */ + public function getLastName() + { + return $this->container['last_name']; + } + + /** + * Sets last_name + * + * @param string|null $last_name last_name + * + * @return self + */ + public function setLastName($last_name) + { + $this->container['last_name'] = $last_name; + + return $this; + } + + /** + * Gets name_suffix + * + * @return string|null + */ + public function getNameSuffix() + { + return $this->container['name_suffix']; + } + + /** + * Sets name_suffix + * + * @param string|null $name_suffix name_suffix + * + * @return self + */ + public function setNameSuffix($name_suffix) + { + $this->container['name_suffix'] = $name_suffix; + + return $this; + } + + /** + * Gets tin + * + * @return string|null + */ + public function getTin() + { + return $this->container['tin']; + } + + /** + * Sets tin + * + * @param string|null $tin tin + * + * @return self + */ + public function setTin($tin) + { + $this->container['tin'] = $tin; + + return $this; + } + + /** + * Gets birth_date + * + * @return \DateTime|null + */ + public function getBirthDate() + { + return $this->container['birth_date']; + } + + /** + * Sets birth_date + * + * @param \DateTime|null $birth_date birth_date + * + * @return self + */ + public function setBirthDate($birth_date) + { + $this->container['birth_date'] = $birth_date; + + return $this; + } + + /** + * Gets covered_month_indicator0 + * + * @return bool|null + */ + public function getCoveredMonthIndicator0() + { + return $this->container['covered_month_indicator0']; + } + + /** + * Sets covered_month_indicator0 + * + * @param bool|null $covered_month_indicator0 covered_month_indicator0 + * + * @return self + */ + public function setCoveredMonthIndicator0($covered_month_indicator0) + { + $this->container['covered_month_indicator0'] = $covered_month_indicator0; + + return $this; + } + + /** + * Gets covered_month_indicator1 + * + * @return bool|null + */ + public function getCoveredMonthIndicator1() + { + return $this->container['covered_month_indicator1']; + } + + /** + * Sets covered_month_indicator1 + * + * @param bool|null $covered_month_indicator1 covered_month_indicator1 + * + * @return self + */ + public function setCoveredMonthIndicator1($covered_month_indicator1) + { + $this->container['covered_month_indicator1'] = $covered_month_indicator1; + + return $this; + } + + /** + * Gets covered_month_indicator2 + * + * @return bool|null + */ + public function getCoveredMonthIndicator2() + { + return $this->container['covered_month_indicator2']; + } + + /** + * Sets covered_month_indicator2 + * + * @param bool|null $covered_month_indicator2 covered_month_indicator2 + * + * @return self + */ + public function setCoveredMonthIndicator2($covered_month_indicator2) + { + $this->container['covered_month_indicator2'] = $covered_month_indicator2; + + return $this; + } + + /** + * Gets covered_month_indicator3 + * + * @return bool|null + */ + public function getCoveredMonthIndicator3() + { + return $this->container['covered_month_indicator3']; + } + + /** + * Sets covered_month_indicator3 + * + * @param bool|null $covered_month_indicator3 covered_month_indicator3 + * + * @return self + */ + public function setCoveredMonthIndicator3($covered_month_indicator3) + { + $this->container['covered_month_indicator3'] = $covered_month_indicator3; + + return $this; + } + + /** + * Gets covered_month_indicator4 + * + * @return bool|null + */ + public function getCoveredMonthIndicator4() + { + return $this->container['covered_month_indicator4']; + } + + /** + * Sets covered_month_indicator4 + * + * @param bool|null $covered_month_indicator4 covered_month_indicator4 + * + * @return self + */ + public function setCoveredMonthIndicator4($covered_month_indicator4) + { + $this->container['covered_month_indicator4'] = $covered_month_indicator4; + + return $this; + } + + /** + * Gets covered_month_indicator5 + * + * @return bool|null + */ + public function getCoveredMonthIndicator5() + { + return $this->container['covered_month_indicator5']; + } + + /** + * Sets covered_month_indicator5 + * + * @param bool|null $covered_month_indicator5 covered_month_indicator5 + * + * @return self + */ + public function setCoveredMonthIndicator5($covered_month_indicator5) + { + $this->container['covered_month_indicator5'] = $covered_month_indicator5; + + return $this; + } + + /** + * Gets covered_month_indicator6 + * + * @return bool|null + */ + public function getCoveredMonthIndicator6() + { + return $this->container['covered_month_indicator6']; + } + + /** + * Sets covered_month_indicator6 + * + * @param bool|null $covered_month_indicator6 covered_month_indicator6 + * + * @return self + */ + public function setCoveredMonthIndicator6($covered_month_indicator6) + { + $this->container['covered_month_indicator6'] = $covered_month_indicator6; + + return $this; + } + + /** + * Gets covered_month_indicator7 + * + * @return bool|null + */ + public function getCoveredMonthIndicator7() + { + return $this->container['covered_month_indicator7']; + } + + /** + * Sets covered_month_indicator7 + * + * @param bool|null $covered_month_indicator7 covered_month_indicator7 + * + * @return self + */ + public function setCoveredMonthIndicator7($covered_month_indicator7) + { + $this->container['covered_month_indicator7'] = $covered_month_indicator7; + + return $this; + } + + /** + * Gets covered_month_indicator8 + * + * @return bool|null + */ + public function getCoveredMonthIndicator8() + { + return $this->container['covered_month_indicator8']; + } + + /** + * Sets covered_month_indicator8 + * + * @param bool|null $covered_month_indicator8 covered_month_indicator8 + * + * @return self + */ + public function setCoveredMonthIndicator8($covered_month_indicator8) + { + $this->container['covered_month_indicator8'] = $covered_month_indicator8; + + return $this; + } + + /** + * Gets covered_month_indicator9 + * + * @return bool|null + */ + public function getCoveredMonthIndicator9() + { + return $this->container['covered_month_indicator9']; + } + + /** + * Sets covered_month_indicator9 + * + * @param bool|null $covered_month_indicator9 covered_month_indicator9 + * + * @return self + */ + public function setCoveredMonthIndicator9($covered_month_indicator9) + { + $this->container['covered_month_indicator9'] = $covered_month_indicator9; + + return $this; + } + + /** + * Gets covered_month_indicator10 + * + * @return bool|null + */ + public function getCoveredMonthIndicator10() + { + return $this->container['covered_month_indicator10']; + } + + /** + * Sets covered_month_indicator10 + * + * @param bool|null $covered_month_indicator10 covered_month_indicator10 + * + * @return self + */ + public function setCoveredMonthIndicator10($covered_month_indicator10) + { + $this->container['covered_month_indicator10'] = $covered_month_indicator10; + + return $this; + } + + /** + * Gets covered_month_indicator11 + * + * @return bool|null + */ + public function getCoveredMonthIndicator11() + { + return $this->container['covered_month_indicator11']; + } + + /** + * Sets covered_month_indicator11 + * + * @param bool|null $covered_month_indicator11 covered_month_indicator11 + * + * @return self + */ + public function setCoveredMonthIndicator11($covered_month_indicator11) + { + $this->container['covered_month_indicator11'] = $covered_month_indicator11; + + return $this; + } + + /** + * Gets covered_month_indicator12 + * + * @return bool|null + */ + public function getCoveredMonthIndicator12() + { + return $this->container['covered_month_indicator12']; + } + + /** + * Sets covered_month_indicator12 + * + * @param bool|null $covered_month_indicator12 covered_month_indicator12 + * + * @return self + */ + public function setCoveredMonthIndicator12($covered_month_indicator12) + { + $this->container['covered_month_indicator12'] = $covered_month_indicator12; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1095B.php b/lib/Model/A1099/V2/Form1095B.php new file mode 100644 index 0000000..29bba77 --- /dev/null +++ b/lib/Model/A1099/V2/Form1095B.php @@ -0,0 +1,1358 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095B Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095B implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095B'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'origin_of_health_coverage_code' => 'string', + 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]', + 'id' => 'string', + 'type' => 'string', + 'issuer_id' => 'int', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'federal_efile' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'state_efile' => 'bool', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]', + 'postal_mail' => 'bool', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'tin_match' => 'bool', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'address_verification' => 'bool', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'reference_id' => 'string', + 'email' => 'string', + 'tin_type' => 'string', + 'tin' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'foreign_province' => 'string', + 'country_code' => 'string', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationError[]', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'origin_of_health_coverage_code' => null, + 'covered_individuals' => null, + 'id' => null, + 'type' => null, + 'issuer_id' => 'int32', + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'federal_efile' => null, + 'federal_efile_status' => null, + 'state_efile' => null, + 'state_efile_status' => null, + 'postal_mail' => null, + 'postal_mail_status' => null, + 'tin_match' => null, + 'tin_match_status' => null, + 'address_verification' => null, + 'address_verification_status' => null, + 'reference_id' => null, + 'email' => null, + 'tin_type' => null, + 'tin' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'foreign_province' => null, + 'country_code' => null, + 'validation_errors' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', + 'covered_individuals' => 'coveredIndividuals', + 'id' => 'id', + 'type' => 'type', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'federal_efile' => 'federalEfile', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile' => 'stateEfile', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail' => 'postalMail', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match' => 'tinMatch', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification' => 'addressVerification', + 'address_verification_status' => 'addressVerificationStatus', + 'reference_id' => 'referenceId', + 'email' => 'email', + 'tin_type' => 'tinType', + 'tin' => 'tin', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'foreign_province' => 'foreignProvince', + 'country_code' => 'countryCode', + 'validation_errors' => 'validationErrors', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', + 'covered_individuals' => 'setCoveredIndividuals', + 'id' => 'setId', + 'type' => 'setType', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'federal_efile' => 'setFederalEfile', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile' => 'setStateEfile', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail' => 'setPostalMail', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match' => 'setTinMatch', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification' => 'setAddressVerification', + 'address_verification_status' => 'setAddressVerificationStatus', + 'reference_id' => 'setReferenceId', + 'email' => 'setEmail', + 'tin_type' => 'setTinType', + 'tin' => 'setTin', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'foreign_province' => 'setForeignProvince', + 'country_code' => 'setCountryCode', + 'validation_errors' => 'setValidationErrors', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', + 'covered_individuals' => 'getCoveredIndividuals', + 'id' => 'getId', + 'type' => 'getType', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'federal_efile' => 'getFederalEfile', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile' => 'getStateEfile', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail' => 'getPostalMail', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match' => 'getTinMatch', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification' => 'getAddressVerification', + 'address_verification_status' => 'getAddressVerificationStatus', + 'reference_id' => 'getReferenceId', + 'email' => 'getEmail', + 'tin_type' => 'getTinType', + 'tin' => 'getTin', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'foreign_province' => 'getForeignProvince', + 'country_code' => 'getCountryCode', + 'validation_errors' => 'getValidationErrors', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; + $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['federal_efile'] = $data['federal_efile'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile'] = $data['state_efile'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['tin'] = $data['tin'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets origin_of_health_coverage_code + * + * @return string|null + */ + public function getOriginOfHealthCoverageCode() + { + return $this->container['origin_of_health_coverage_code']; + } + + /** + * Sets origin_of_health_coverage_code + * + * @param string|null $origin_of_health_coverage_code origin_of_health_coverage_code + * + * @return self + */ + public function setOriginOfHealthCoverageCode($origin_of_health_coverage_code) + { + $this->container['origin_of_health_coverage_code'] = $origin_of_health_coverage_code; + + return $this; + } + + /** + * Gets covered_individuals + * + * @return \Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]|null + */ + public function getCoveredIndividuals() + { + return $this->container['covered_individuals']; + } + + /** + * Sets covered_individuals + * + * @param \Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]|null $covered_individuals covered_individuals + * + * @return self + */ + public function setCoveredIndividuals($covered_individuals) + { + + + $this->container['covered_individuals'] = $covered_individuals; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets issuer_id + * + * @return int|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param int|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets federal_efile + * + * @return bool|null + */ + public function getFederalEfile() + { + return $this->container['federal_efile']; + } + + /** + * Sets federal_efile + * + * @param bool|null $federal_efile federal_efile + * + * @return self + */ + public function setFederalEfile($federal_efile) + { + $this->container['federal_efile'] = $federal_efile; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile + * + * @return bool|null + */ + public function getStateEfile() + { + return $this->container['state_efile']; + } + + /** + * Sets state_efile + * + * @param bool|null $state_efile state_efile + * + * @return self + */ + public function setStateEfile($state_efile) + { + $this->container['state_efile'] = $state_efile; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email email + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets tin + * + * @return string|null + */ + public function getTin() + { + return $this->container['tin']; + } + + /** + * Sets tin + * + * @param string|null $tin tin + * + * @return self + */ + public function setTin($tin) + { + $this->container['tin'] = $tin; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets foreign_province + * + * @return string|null + */ + public function getForeignProvince() + { + return $this->container['foreign_province']; + } + + /** + * Sets foreign_province + * + * @param string|null $foreign_province foreign_province + * + * @return self + */ + public function setForeignProvince($foreign_province) + { + $this->container['foreign_province'] = $foreign_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationError[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationError[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1095BList.php b/lib/Model/A1099/V2/Form1095BList.php new file mode 100644 index 0000000..a56be77 --- /dev/null +++ b/lib/Model/A1099/V2/Form1095BList.php @@ -0,0 +1,364 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095BList Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095BList implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095BList'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'forms' => '\Avalara\SDK\Model\A1099\V2\Form1095BListItem[]', + 'form_type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'forms' => null, + 'form_type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'forms' => 'forms', + 'form_type' => 'formType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'forms' => 'setForms', + 'form_type' => 'setFormType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'forms' => 'getForms', + 'form_type' => 'getFormType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['forms'] = $data['forms'] ?? null; + $this->container['form_type'] = $data['form_type'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets forms + * + * @return \Avalara\SDK\Model\A1099\V2\Form1095BListItem[]|null + */ + public function getForms() + { + return $this->container['forms']; + } + + /** + * Sets forms + * + * @param \Avalara\SDK\Model\A1099\V2\Form1095BListItem[]|null $forms forms + * + * @return self + */ + public function setForms($forms) + { + + + $this->container['forms'] = $forms; + + return $this; + } + + /** + * Gets form_type + * + * @return string|null + */ + public function getFormType() + { + return $this->container['form_type']; + } + + /** + * Sets form_type + * + * @param string|null $form_type form_type + * + * @return self + */ + public function setFormType($form_type) + { + $this->container['form_type'] = $form_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1095BListItem.php b/lib/Model/A1099/V2/Form1095BListItem.php new file mode 100644 index 0000000..783244a --- /dev/null +++ b/lib/Model/A1099/V2/Form1095BListItem.php @@ -0,0 +1,1256 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095BListItem Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095BListItem implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095BListItem'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'employee_first_name' => 'string', + 'employee_middle_name' => 'string', + 'employee_last_name' => 'string', + 'employee_name_suffix' => 'string', + 'employee_date_of_birth' => '\DateTime', + 'origin_of_health_coverage_code' => 'string', + 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]', + 'issuer_id' => 'string', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'tin_type' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'employee_first_name' => null, + 'employee_middle_name' => null, + 'employee_last_name' => null, + 'employee_name_suffix' => null, + 'employee_date_of_birth' => 'date-time', + 'origin_of_health_coverage_code' => null, + 'covered_individuals' => null, + 'issuer_id' => null, + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'tin_type' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'employee_first_name' => 'employeeFirstName', + 'employee_middle_name' => 'employeeMiddleName', + 'employee_last_name' => 'employeeLastName', + 'employee_name_suffix' => 'employeeNameSuffix', + 'employee_date_of_birth' => 'employeeDateOfBirth', + 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', + 'covered_individuals' => 'coveredIndividuals', + 'issuer_id' => 'issuerId', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'tin_type' => 'tinType', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'employee_first_name' => 'setEmployeeFirstName', + 'employee_middle_name' => 'setEmployeeMiddleName', + 'employee_last_name' => 'setEmployeeLastName', + 'employee_name_suffix' => 'setEmployeeNameSuffix', + 'employee_date_of_birth' => 'setEmployeeDateOfBirth', + 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', + 'covered_individuals' => 'setCoveredIndividuals', + 'issuer_id' => 'setIssuerId', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'tin_type' => 'setTinType', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'employee_first_name' => 'getEmployeeFirstName', + 'employee_middle_name' => 'getEmployeeMiddleName', + 'employee_last_name' => 'getEmployeeLastName', + 'employee_name_suffix' => 'getEmployeeNameSuffix', + 'employee_date_of_birth' => 'getEmployeeDateOfBirth', + 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', + 'covered_individuals' => 'getCoveredIndividuals', + 'issuer_id' => 'getIssuerId', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'tin_type' => 'getTinType', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const ORIGIN_OF_HEALTH_COVERAGE_CODE_SMALL_BUSINESS_HEALTH_OPTIONS_PROGRAM = 'SmallBusinessHealthOptionsProgram'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED = 'EmployerSponsored'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_GOVERNMENT_SPONSORED = 'GovernmentSponsored'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_INDIVIDUAL_MARKET = 'IndividualMarket'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_MULTIEMPLOYER_PLAN = 'MultiemployerPlan'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_OTHER_DESIGNATED_MINIMUM_ESSENTIAL_COVERAGE = 'OtherDesignatedMinimumEssentialCoverage'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED_INDIVIDUAL_HRA = 'EmployerSponsoredIndividualHra'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOriginOfHealthCoverageCodeAllowableValues() + { + return [ + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_SMALL_BUSINESS_HEALTH_OPTIONS_PROGRAM, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_GOVERNMENT_SPONSORED, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_INDIVIDUAL_MARKET, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_MULTIEMPLOYER_PLAN, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_OTHER_DESIGNATED_MINIMUM_ESSENTIAL_COVERAGE, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED_INDIVIDUAL_HRA, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['employee_first_name'] = $data['employee_first_name'] ?? null; + $this->container['employee_middle_name'] = $data['employee_middle_name'] ?? null; + $this->container['employee_last_name'] = $data['employee_last_name'] ?? null; + $this->container['employee_name_suffix'] = $data['employee_name_suffix'] ?? null; + $this->container['employee_date_of_birth'] = $data['employee_date_of_birth'] ?? null; + $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; + $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getOriginOfHealthCoverageCodeAllowableValues(); + if (!is_null($this->container['origin_of_health_coverage_code']) && !in_array($this->container['origin_of_health_coverage_code'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'origin_of_health_coverage_code', must be one of '%s'", + $this->container['origin_of_health_coverage_code'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets employee_first_name + * + * @return string|null + */ + public function getEmployeeFirstName() + { + return $this->container['employee_first_name']; + } + + /** + * Sets employee_first_name + * + * @param string|null $employee_first_name employee_first_name + * + * @return self + */ + public function setEmployeeFirstName($employee_first_name) + { + $this->container['employee_first_name'] = $employee_first_name; + + return $this; + } + + /** + * Gets employee_middle_name + * + * @return string|null + */ + public function getEmployeeMiddleName() + { + return $this->container['employee_middle_name']; + } + + /** + * Sets employee_middle_name + * + * @param string|null $employee_middle_name employee_middle_name + * + * @return self + */ + public function setEmployeeMiddleName($employee_middle_name) + { + $this->container['employee_middle_name'] = $employee_middle_name; + + return $this; + } + + /** + * Gets employee_last_name + * + * @return string|null + */ + public function getEmployeeLastName() + { + return $this->container['employee_last_name']; + } + + /** + * Sets employee_last_name + * + * @param string|null $employee_last_name employee_last_name + * + * @return self + */ + public function setEmployeeLastName($employee_last_name) + { + $this->container['employee_last_name'] = $employee_last_name; + + return $this; + } + + /** + * Gets employee_name_suffix + * + * @return string|null + */ + public function getEmployeeNameSuffix() + { + return $this->container['employee_name_suffix']; + } + + /** + * Sets employee_name_suffix + * + * @param string|null $employee_name_suffix employee_name_suffix + * + * @return self + */ + public function setEmployeeNameSuffix($employee_name_suffix) + { + $this->container['employee_name_suffix'] = $employee_name_suffix; + + return $this; + } + + /** + * Gets employee_date_of_birth + * + * @return \DateTime|null + */ + public function getEmployeeDateOfBirth() + { + return $this->container['employee_date_of_birth']; + } + + /** + * Sets employee_date_of_birth + * + * @param \DateTime|null $employee_date_of_birth employee_date_of_birth + * + * @return self + */ + public function setEmployeeDateOfBirth($employee_date_of_birth) + { + $this->container['employee_date_of_birth'] = $employee_date_of_birth; + + return $this; + } + + /** + * Gets origin_of_health_coverage_code + * + * @return string|null + */ + public function getOriginOfHealthCoverageCode() + { + return $this->container['origin_of_health_coverage_code']; + } + + /** + * Sets origin_of_health_coverage_code + * + * @param string|null $origin_of_health_coverage_code origin_of_health_coverage_code + * + * @return self + */ + public function setOriginOfHealthCoverageCode($origin_of_health_coverage_code) + { + $allowedValues = $this->getOriginOfHealthCoverageCodeAllowableValues(); + if (!is_null($origin_of_health_coverage_code) && !in_array($origin_of_health_coverage_code, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'origin_of_health_coverage_code', must be one of '%s'", + $origin_of_health_coverage_code, + implode("', '", $allowedValues) + ) + ); + } + $this->container['origin_of_health_coverage_code'] = $origin_of_health_coverage_code; + + return $this; + } + + /** + * Gets covered_individuals + * + * @return \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null + */ + public function getCoveredIndividuals() + { + return $this->container['covered_individuals']; + } + + /** + * Sets covered_individuals + * + * @param \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null $covered_individuals covered_individuals + * + * @return self + */ + public function setCoveredIndividuals($covered_individuals) + { + + + $this->container['covered_individuals'] = $covered_individuals; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1095BRequest.php b/lib/Model/A1099/V2/Form1095BRequest.php new file mode 100644 index 0000000..97ab377 --- /dev/null +++ b/lib/Model/A1099/V2/Form1095BRequest.php @@ -0,0 +1,1328 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095BRequest Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095BRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095BRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'employee_first_name' => 'string', + 'employee_middle_name' => 'string', + 'employee_last_name' => 'string', + 'employee_name_suffix' => 'string', + 'employee_date_of_birth' => '\DateTime', + 'origin_of_health_coverage_code' => 'string', + 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]', + 'type' => 'string', + 'issuer_id' => 'string', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'tin_type' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'employee_first_name' => null, + 'employee_middle_name' => null, + 'employee_last_name' => null, + 'employee_name_suffix' => null, + 'employee_date_of_birth' => 'date-time', + 'origin_of_health_coverage_code' => null, + 'covered_individuals' => null, + 'type' => null, + 'issuer_id' => null, + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'tin_type' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'employee_first_name' => 'employeeFirstName', + 'employee_middle_name' => 'employeeMiddleName', + 'employee_last_name' => 'employeeLastName', + 'employee_name_suffix' => 'employeeNameSuffix', + 'employee_date_of_birth' => 'employeeDateOfBirth', + 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', + 'covered_individuals' => 'coveredIndividuals', + 'type' => 'type', + 'issuer_id' => 'issuerId', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'tin_type' => 'tinType', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'employee_first_name' => 'setEmployeeFirstName', + 'employee_middle_name' => 'setEmployeeMiddleName', + 'employee_last_name' => 'setEmployeeLastName', + 'employee_name_suffix' => 'setEmployeeNameSuffix', + 'employee_date_of_birth' => 'setEmployeeDateOfBirth', + 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', + 'covered_individuals' => 'setCoveredIndividuals', + 'type' => 'setType', + 'issuer_id' => 'setIssuerId', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'tin_type' => 'setTinType', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'employee_first_name' => 'getEmployeeFirstName', + 'employee_middle_name' => 'getEmployeeMiddleName', + 'employee_last_name' => 'getEmployeeLastName', + 'employee_name_suffix' => 'getEmployeeNameSuffix', + 'employee_date_of_birth' => 'getEmployeeDateOfBirth', + 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', + 'covered_individuals' => 'getCoveredIndividuals', + 'type' => 'getType', + 'issuer_id' => 'getIssuerId', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'tin_type' => 'getTinType', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const ORIGIN_OF_HEALTH_COVERAGE_CODE_SMALL_BUSINESS_HEALTH_OPTIONS_PROGRAM = 'SmallBusinessHealthOptionsProgram'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED = 'EmployerSponsored'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_GOVERNMENT_SPONSORED = 'GovernmentSponsored'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_INDIVIDUAL_MARKET = 'IndividualMarket'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_MULTIEMPLOYER_PLAN = 'MultiemployerPlan'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_OTHER_DESIGNATED_MINIMUM_ESSENTIAL_COVERAGE = 'OtherDesignatedMinimumEssentialCoverage'; + const ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED_INDIVIDUAL_HRA = 'EmployerSponsoredIndividualHra'; + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOriginOfHealthCoverageCodeAllowableValues() + { + return [ + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_SMALL_BUSINESS_HEALTH_OPTIONS_PROGRAM, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_GOVERNMENT_SPONSORED, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_INDIVIDUAL_MARKET, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_MULTIEMPLOYER_PLAN, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_OTHER_DESIGNATED_MINIMUM_ESSENTIAL_COVERAGE, + self::ORIGIN_OF_HEALTH_COVERAGE_CODE_EMPLOYER_SPONSORED_INDIVIDUAL_HRA, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['employee_first_name'] = $data['employee_first_name'] ?? null; + $this->container['employee_middle_name'] = $data['employee_middle_name'] ?? null; + $this->container['employee_last_name'] = $data['employee_last_name'] ?? null; + $this->container['employee_name_suffix'] = $data['employee_name_suffix'] ?? null; + $this->container['employee_date_of_birth'] = $data['employee_date_of_birth'] ?? null; + $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; + $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getOriginOfHealthCoverageCodeAllowableValues(); + if (!is_null($this->container['origin_of_health_coverage_code']) && !in_array($this->container['origin_of_health_coverage_code'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'origin_of_health_coverage_code', must be one of '%s'", + $this->container['origin_of_health_coverage_code'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets employee_first_name + * + * @return string|null + */ + public function getEmployeeFirstName() + { + return $this->container['employee_first_name']; + } + + /** + * Sets employee_first_name + * + * @param string|null $employee_first_name employee_first_name + * + * @return self + */ + public function setEmployeeFirstName($employee_first_name) + { + $this->container['employee_first_name'] = $employee_first_name; + + return $this; + } + + /** + * Gets employee_middle_name + * + * @return string|null + */ + public function getEmployeeMiddleName() + { + return $this->container['employee_middle_name']; + } + + /** + * Sets employee_middle_name + * + * @param string|null $employee_middle_name employee_middle_name + * + * @return self + */ + public function setEmployeeMiddleName($employee_middle_name) + { + $this->container['employee_middle_name'] = $employee_middle_name; + + return $this; + } + + /** + * Gets employee_last_name + * + * @return string|null + */ + public function getEmployeeLastName() + { + return $this->container['employee_last_name']; + } + + /** + * Sets employee_last_name + * + * @param string|null $employee_last_name employee_last_name + * + * @return self + */ + public function setEmployeeLastName($employee_last_name) + { + $this->container['employee_last_name'] = $employee_last_name; + + return $this; + } + + /** + * Gets employee_name_suffix + * + * @return string|null + */ + public function getEmployeeNameSuffix() + { + return $this->container['employee_name_suffix']; + } + + /** + * Sets employee_name_suffix + * + * @param string|null $employee_name_suffix employee_name_suffix + * + * @return self + */ + public function setEmployeeNameSuffix($employee_name_suffix) + { + $this->container['employee_name_suffix'] = $employee_name_suffix; + + return $this; + } + + /** + * Gets employee_date_of_birth + * + * @return \DateTime|null + */ + public function getEmployeeDateOfBirth() + { + return $this->container['employee_date_of_birth']; + } + + /** + * Sets employee_date_of_birth + * + * @param \DateTime|null $employee_date_of_birth employee_date_of_birth + * + * @return self + */ + public function setEmployeeDateOfBirth($employee_date_of_birth) + { + $this->container['employee_date_of_birth'] = $employee_date_of_birth; + + return $this; + } + + /** + * Gets origin_of_health_coverage_code + * + * @return string|null + */ + public function getOriginOfHealthCoverageCode() + { + return $this->container['origin_of_health_coverage_code']; + } + + /** + * Sets origin_of_health_coverage_code + * + * @param string|null $origin_of_health_coverage_code origin_of_health_coverage_code + * + * @return self + */ + public function setOriginOfHealthCoverageCode($origin_of_health_coverage_code) + { + $allowedValues = $this->getOriginOfHealthCoverageCodeAllowableValues(); + if (!is_null($origin_of_health_coverage_code) && !in_array($origin_of_health_coverage_code, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'origin_of_health_coverage_code', must be one of '%s'", + $origin_of_health_coverage_code, + implode("', '", $allowedValues) + ) + ); + } + $this->container['origin_of_health_coverage_code'] = $origin_of_health_coverage_code; + + return $this; + } + + /** + * Gets covered_individuals + * + * @return \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null + */ + public function getCoveredIndividuals() + { + return $this->container['covered_individuals']; + } + + /** + * Sets covered_individuals + * + * @param \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null $covered_individuals covered_individuals + * + * @return self + */ + public function setCoveredIndividuals($covered_individuals) + { + + + $this->container['covered_individuals'] = $covered_individuals; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099Base.php b/lib/Model/A1099/V2/Form1099Base.php index 3c84e61..828f320 100644 --- a/lib/Model/A1099/V2/Form1099Base.php +++ b/lib/Model/A1099/V2/Form1099Base.php @@ -89,12 +89,12 @@ class Form1099Base implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', 'reference_id' => 'string', 'email' => 'string', - 'type_of_tin' => 'string', + 'tin_type' => 'string', 'tin' => 'string', - 'first_payee_name' => 'string', - 'second_payee_name' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', 'address' => 'string', - 'address_recipient_second' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -132,12 +132,12 @@ class Form1099Base implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => null, 'reference_id' => null, 'email' => null, - 'type_of_tin' => null, + 'tin_type' => null, 'tin' => null, - 'first_payee_name' => null, - 'second_payee_name' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, 'address' => null, - 'address_recipient_second' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -194,12 +194,12 @@ public static function openAPIFormats() 'address_verification_status' => 'addressVerificationStatus', 'reference_id' => 'referenceId', 'email' => 'email', - 'type_of_tin' => 'typeOfTin', + 'tin_type' => 'tinType', 'tin' => 'tin', - 'first_payee_name' => 'firstPayeeName', - 'second_payee_name' => 'secondPayeeName', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', - 'address_recipient_second' => 'addressRecipientSecond', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -235,12 +235,12 @@ public static function openAPIFormats() 'address_verification_status' => 'setAddressVerificationStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', - 'type_of_tin' => 'setTypeOfTin', + 'tin_type' => 'setTinType', 'tin' => 'setTin', - 'first_payee_name' => 'setFirstPayeeName', - 'second_payee_name' => 'setSecondPayeeName', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', - 'address_recipient_second' => 'setAddressRecipientSecond', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -276,12 +276,12 @@ public static function openAPIFormats() 'address_verification_status' => 'getAddressVerificationStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', - 'type_of_tin' => 'getTypeOfTin', + 'tin_type' => 'getTinType', 'tin' => 'getTin', - 'first_payee_name' => 'getFirstPayeeName', - 'second_payee_name' => 'getSecondPayeeName', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', - 'address_recipient_second' => 'getAddressRecipientSecond', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -368,12 +368,12 @@ public function __construct(array $data = null) $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['type_of_tin'] = $data['type_of_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; - $this->container['first_payee_name'] = $data['first_payee_name'] ?? null; - $this->container['second_payee_name'] = $data['second_payee_name'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; - $this->container['address_recipient_second'] = $data['address_recipient_second'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -844,25 +844,25 @@ public function setEmail($email) } /** - * Gets type_of_tin + * Gets tin_type * * @return string|null */ - public function getTypeOfTin() + public function getTinType() { - return $this->container['type_of_tin']; + return $this->container['tin_type']; } /** - * Sets type_of_tin + * Sets tin_type * - * @param string|null $type_of_tin type_of_tin + * @param string|null $tin_type tin_type * * @return self */ - public function setTypeOfTin($type_of_tin) + public function setTinType($tin_type) { - $this->container['type_of_tin'] = $type_of_tin; + $this->container['tin_type'] = $tin_type; return $this; } @@ -892,49 +892,49 @@ public function setTin($tin) } /** - * Gets first_payee_name + * Gets recipient_name * * @return string|null */ - public function getFirstPayeeName() + public function getRecipientName() { - return $this->container['first_payee_name']; + return $this->container['recipient_name']; } /** - * Sets first_payee_name + * Sets recipient_name * - * @param string|null $first_payee_name first_payee_name + * @param string|null $recipient_name recipient_name * * @return self */ - public function setFirstPayeeName($first_payee_name) + public function setRecipientName($recipient_name) { - $this->container['first_payee_name'] = $first_payee_name; + $this->container['recipient_name'] = $recipient_name; return $this; } /** - * Gets second_payee_name + * Gets recipient_second_name * * @return string|null */ - public function getSecondPayeeName() + public function getRecipientSecondName() { - return $this->container['second_payee_name']; + return $this->container['recipient_second_name']; } /** - * Sets second_payee_name + * Sets recipient_second_name * - * @param string|null $second_payee_name second_payee_name + * @param string|null $recipient_second_name recipient_second_name * * @return self */ - public function setSecondPayeeName($second_payee_name) + public function setRecipientSecondName($recipient_second_name) { - $this->container['second_payee_name'] = $second_payee_name; + $this->container['recipient_second_name'] = $recipient_second_name; return $this; } @@ -964,25 +964,25 @@ public function setAddress($address) } /** - * Gets address_recipient_second + * Gets address2 * * @return string|null */ - public function getAddressRecipientSecond() + public function getAddress2() { - return $this->container['address_recipient_second']; + return $this->container['address2']; } /** - * Sets address_recipient_second + * Sets address2 * - * @param string|null $address_recipient_second address_recipient_second + * @param string|null $address2 address2 * * @return self */ - public function setAddressRecipientSecond($address_recipient_second) + public function setAddress2($address2) { - $this->container['address_recipient_second'] = $address_recipient_second; + $this->container['address2'] = $address2; return $this; } diff --git a/lib/Model/A1099/V2/Form1099DivListItem.php b/lib/Model/A1099/V2/Form1099DivListItem.php index 1e18823..0e67b03 100644 --- a/lib/Model/A1099/V2/Form1099DivListItem.php +++ b/lib/Model/A1099/V2/Form1099DivListItem.php @@ -90,18 +90,17 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', 'fatca_filing_requirement' => 'string', - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', - 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', + 'issuer_id' => 'string', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -114,7 +113,8 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -144,18 +144,17 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'exempt_interest_dividends' => null, 'specified_private_activity_bond_interest_dividends' => null, 'fatca_filing_requirement' => null, - 'state_and_local_withholding' => null, - 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', + 'issuer_id' => null, 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -168,7 +167,8 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -217,18 +217,17 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'exemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'fatcaFilingRequirement', - 'state_and_local_withholding' => 'stateAndLocalWithholding', - 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -241,7 +240,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -269,18 +269,17 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'setExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'setFatcaFilingRequirement', - 'state_and_local_withholding' => 'setStateAndLocalWithholding', - 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -293,7 +292,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -321,18 +321,17 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'getExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'getFatcaFilingRequirement', - 'state_and_local_withholding' => 'getStateAndLocalWithholding', - 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -345,7 +344,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -389,6 +389,25 @@ public function getModelName() return self::$openAPIModelName; } + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -424,18 +443,17 @@ public function __construct(array $data = null) $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; - $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -449,6 +467,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -460,6 +479,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -931,54 +959,6 @@ public function setFatcaFilingRequirement($fatca_filing_requirement) return $this; } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - - /** - * Gets issuer_id - * - * @return string|null - */ - public function getIssuerId() - { - return $this->container['issuer_id']; - } - - /** - * Sets issuer_id - * - * @param string|null $issuer_id issuer_id - * - * @return self - */ - public function setIssuerId($issuer_id) - { - $this->container['issuer_id'] = $issuer_id; - - return $this; - } - /** * Gets issuer_reference_id * @@ -1051,6 +1031,30 @@ public function setTaxYear($tax_year) return $this; } + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + /** * Gets reference_id * @@ -1126,7 +1130,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1136,12 +1140,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1172,49 +1186,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1530,6 +1544,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099DivRequest.php b/lib/Model/A1099/V2/Form1099DivRequest.php index d68726c..5590f21 100644 --- a/lib/Model/A1099/V2/Form1099DivRequest.php +++ b/lib/Model/A1099/V2/Form1099DivRequest.php @@ -90,19 +90,15 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', 'fatca_filing_requirement' => 'string', - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -115,7 +111,8 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -145,19 +142,15 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'exempt_interest_dividends' => null, 'specified_private_activity_bond_interest_dividends' => null, 'fatca_filing_requirement' => null, - 'state_and_local_withholding' => null, 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -170,7 +163,8 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -219,19 +213,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'exemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'fatcaFilingRequirement', - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -244,7 +234,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -272,19 +263,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'setExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'setFatcaFilingRequirement', - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -297,7 +284,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -325,19 +313,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'getExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'getFatcaFilingRequirement', - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -350,7 +334,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -394,6 +379,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -429,19 +456,15 @@ public function __construct(array $data = null) $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -455,6 +478,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -466,6 +490,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -937,30 +979,6 @@ public function setFatcaFilingRequirement($fatca_filing_requirement) return $this; } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets type * @@ -980,6 +998,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -1009,78 +1037,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1156,7 +1112,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1166,12 +1122,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1202,49 +1168,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1560,6 +1526,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099DivResponse.php b/lib/Model/A1099/V2/Form1099DivResponse.php new file mode 100644 index 0000000..bedf6e4 --- /dev/null +++ b/lib/Model/A1099/V2/Form1099DivResponse.php @@ -0,0 +1,1466 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1099DivResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1099DivResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1099DivResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'user_id' => 'string', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', + 'issuer_id' => 'string', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'user_id' => null, + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, + 'issuer_id' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'user_id' => 'userId', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'user_id' => 'setUserId', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'user_id' => 'getUserId', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099K.php b/lib/Model/A1099/V2/Form1099K.php index 9868472..690d3b7 100644 --- a/lib/Model/A1099/V2/Form1099K.php +++ b/lib/Model/A1099/V2/Form1099K.php @@ -109,12 +109,12 @@ class Form1099K implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', 'reference_id' => 'string', 'email' => 'string', - 'type_of_tin' => 'string', + 'tin_type' => 'string', 'tin' => 'string', - 'first_payee_name' => 'string', - 'second_payee_name' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', 'address' => 'string', - 'address_recipient_second' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -172,12 +172,12 @@ class Form1099K implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => null, 'reference_id' => null, 'email' => null, - 'type_of_tin' => null, + 'tin_type' => null, 'tin' => null, - 'first_payee_name' => null, - 'second_payee_name' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, 'address' => null, - 'address_recipient_second' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -254,12 +254,12 @@ public static function openAPIFormats() 'address_verification_status' => 'addressVerificationStatus', 'reference_id' => 'referenceId', 'email' => 'email', - 'type_of_tin' => 'typeOfTin', + 'tin_type' => 'tinType', 'tin' => 'tin', - 'first_payee_name' => 'firstPayeeName', - 'second_payee_name' => 'secondPayeeName', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', - 'address_recipient_second' => 'addressRecipientSecond', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -315,12 +315,12 @@ public static function openAPIFormats() 'address_verification_status' => 'setAddressVerificationStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', - 'type_of_tin' => 'setTypeOfTin', + 'tin_type' => 'setTinType', 'tin' => 'setTin', - 'first_payee_name' => 'setFirstPayeeName', - 'second_payee_name' => 'setSecondPayeeName', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', - 'address_recipient_second' => 'setAddressRecipientSecond', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -376,12 +376,12 @@ public static function openAPIFormats() 'address_verification_status' => 'getAddressVerificationStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', - 'type_of_tin' => 'getTypeOfTin', + 'tin_type' => 'getTinType', 'tin' => 'getTin', - 'first_payee_name' => 'getFirstPayeeName', - 'second_payee_name' => 'getSecondPayeeName', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', - 'address_recipient_second' => 'getAddressRecipientSecond', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -520,12 +520,12 @@ public function __construct(array $data = null) $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['type_of_tin'] = $data['type_of_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; - $this->container['first_payee_name'] = $data['first_payee_name'] ?? null; - $this->container['second_payee_name'] = $data['second_payee_name'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; - $this->container['address_recipient_second'] = $data['address_recipient_second'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -1514,25 +1514,25 @@ public function setEmail($email) } /** - * Gets type_of_tin + * Gets tin_type * * @return string|null */ - public function getTypeOfTin() + public function getTinType() { - return $this->container['type_of_tin']; + return $this->container['tin_type']; } /** - * Sets type_of_tin + * Sets tin_type * - * @param string|null $type_of_tin type_of_tin + * @param string|null $tin_type tin_type * * @return self */ - public function setTypeOfTin($type_of_tin) + public function setTinType($tin_type) { - $this->container['type_of_tin'] = $type_of_tin; + $this->container['tin_type'] = $tin_type; return $this; } @@ -1562,49 +1562,49 @@ public function setTin($tin) } /** - * Gets first_payee_name + * Gets recipient_name * * @return string|null */ - public function getFirstPayeeName() + public function getRecipientName() { - return $this->container['first_payee_name']; + return $this->container['recipient_name']; } /** - * Sets first_payee_name + * Sets recipient_name * - * @param string|null $first_payee_name first_payee_name + * @param string|null $recipient_name recipient_name * * @return self */ - public function setFirstPayeeName($first_payee_name) + public function setRecipientName($recipient_name) { - $this->container['first_payee_name'] = $first_payee_name; + $this->container['recipient_name'] = $recipient_name; return $this; } /** - * Gets second_payee_name + * Gets recipient_second_name * * @return string|null */ - public function getSecondPayeeName() + public function getRecipientSecondName() { - return $this->container['second_payee_name']; + return $this->container['recipient_second_name']; } /** - * Sets second_payee_name + * Sets recipient_second_name * - * @param string|null $second_payee_name second_payee_name + * @param string|null $recipient_second_name recipient_second_name * * @return self */ - public function setSecondPayeeName($second_payee_name) + public function setRecipientSecondName($recipient_second_name) { - $this->container['second_payee_name'] = $second_payee_name; + $this->container['recipient_second_name'] = $recipient_second_name; return $this; } @@ -1634,25 +1634,25 @@ public function setAddress($address) } /** - * Gets address_recipient_second + * Gets address2 * * @return string|null */ - public function getAddressRecipientSecond() + public function getAddress2() { - return $this->container['address_recipient_second']; + return $this->container['address2']; } /** - * Sets address_recipient_second + * Sets address2 * - * @param string|null $address_recipient_second address_recipient_second + * @param string|null $address2 address2 * * @return self */ - public function setAddressRecipientSecond($address_recipient_second) + public function setAddress2($address2) { - $this->container['address_recipient_second'] = $address_recipient_second; + $this->container['address2'] = $address2; return $this; } diff --git a/lib/Model/A1099/V2/Form1099KListItem.php b/lib/Model/A1099/V2/Form1099KListItem.php index 161c6cc..46b3109 100644 --- a/lib/Model/A1099/V2/Form1099KListItem.php +++ b/lib/Model/A1099/V2/Form1099KListItem.php @@ -71,7 +71,6 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', 'filer_type' => 'string', 'payment_type' => 'string', 'payment_settlement_entity_name_phone_number' => 'string', @@ -92,17 +91,17 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'october' => 'float', 'november' => 'float', 'december' => 'float', - 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', + 'issuer_id' => 'string', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -115,7 +114,8 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -126,7 +126,6 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'filer_type' => null, 'payment_type' => null, 'payment_settlement_entity_name_phone_number' => null, @@ -147,17 +146,17 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'october' => 'double', 'november' => 'double', 'december' => 'double', - 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', + 'issuer_id' => null, 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -170,7 +169,8 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -200,7 +200,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'filer_type' => 'filerType', 'payment_type' => 'paymentType', 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', @@ -221,17 +220,17 @@ public static function openAPIFormats() 'october' => 'october', 'november' => 'november', 'december' => 'december', - 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -244,7 +243,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -253,7 +253,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'filer_type' => 'setFilerType', 'payment_type' => 'setPaymentType', 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', @@ -274,17 +273,17 @@ public static function openAPIFormats() 'october' => 'setOctober', 'november' => 'setNovember', 'december' => 'setDecember', - 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -297,7 +296,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -306,7 +306,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'filer_type' => 'getFilerType', 'payment_type' => 'getPaymentType', 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', @@ -327,17 +326,17 @@ public static function openAPIFormats() 'october' => 'getOctober', 'november' => 'getNovember', 'december' => 'getDecember', - 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -350,7 +349,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -399,6 +399,10 @@ public function getModelName() const FILER_TYPE_OTHER = 'Other'; const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; /** * Gets allowable values of the enum @@ -427,6 +431,21 @@ public function getPaymentTypeAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + /** * Associative array for storing property values * @@ -442,7 +461,6 @@ public function getPaymentTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['filer_type'] = $data['filer_type'] ?? null; $this->container['payment_type'] = $data['payment_type'] ?? null; $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; @@ -463,17 +481,17 @@ public function __construct(array $data = null) $this->container['october'] = $data['october'] ?? null; $this->container['november'] = $data['november'] ?? null; $this->container['december'] = $data['december'] ?? null; - $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -487,6 +505,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -516,6 +535,15 @@ public function listInvalidProperties() ); } + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -531,30 +559,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets filer_type * @@ -1055,30 +1059,6 @@ public function setDecember($december) return $this; } - /** - * Gets issuer_id - * - * @return string|null - */ - public function getIssuerId() - { - return $this->container['issuer_id']; - } - - /** - * Sets issuer_id - * - * @param string|null $issuer_id issuer_id - * - * @return self - */ - public function setIssuerId($issuer_id) - { - $this->container['issuer_id'] = $issuer_id; - - return $this; - } - /** * Gets issuer_reference_id * @@ -1151,6 +1131,30 @@ public function setTaxYear($tax_year) return $this; } + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + /** * Gets reference_id * @@ -1226,7 +1230,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1236,12 +1240,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1272,49 +1286,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1630,6 +1644,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099KRequest.php b/lib/Model/A1099/V2/Form1099KRequest.php index 2c4c987..d3c9293 100644 --- a/lib/Model/A1099/V2/Form1099KRequest.php +++ b/lib/Model/A1099/V2/Form1099KRequest.php @@ -71,7 +71,6 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', 'filer_type' => 'int', 'payment_type' => 'int', 'payment_settlement_entity_name_phone_number' => 'string', @@ -94,16 +93,13 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'december' => 'float', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -116,7 +112,8 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -127,7 +124,6 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'filer_type' => 'int32', 'payment_type' => 'int32', 'payment_settlement_entity_name_phone_number' => null, @@ -150,16 +146,13 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'december' => 'double', 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -172,7 +165,8 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -202,7 +196,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'filer_type' => 'filerType', 'payment_type' => 'paymentType', 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', @@ -225,16 +218,13 @@ public static function openAPIFormats() 'december' => 'december', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -247,7 +237,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -256,7 +247,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'filer_type' => 'setFilerType', 'payment_type' => 'setPaymentType', 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', @@ -279,16 +269,13 @@ public static function openAPIFormats() 'december' => 'setDecember', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -301,7 +288,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -310,7 +298,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'filer_type' => 'getFilerType', 'payment_type' => 'getPaymentType', 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', @@ -333,16 +320,13 @@ public static function openAPIFormats() 'december' => 'getDecember', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -355,7 +339,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -399,6 +384,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -415,7 +442,6 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['filer_type'] = $data['filer_type'] ?? null; $this->container['payment_type'] = $data['payment_type'] ?? null; $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; @@ -438,16 +464,13 @@ public function __construct(array $data = null) $this->container['december'] = $data['december'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -461,6 +484,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -472,6 +496,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -487,30 +529,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets filer_type * @@ -1010,6 +1028,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -1039,78 +1067,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1186,7 +1142,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1196,12 +1152,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1232,49 +1198,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1590,6 +1556,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099List.php b/lib/Model/A1099/V2/Form1099List.php index 6593a19..9648283 100644 --- a/lib/Model/A1099/V2/Form1099List.php +++ b/lib/Model/A1099/V2/Form1099List.php @@ -71,7 +71,7 @@ class Form1099List implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'data' => '\Avalara\SDK\Model\A1099\V2\Form1099ListDataInner[]' + 'data' => '\Avalara\SDK\Model\A1099\V2\Get1099Form200Response[]' ]; /** @@ -220,7 +220,7 @@ public function valid() /** * Gets data * - * @return \Avalara\SDK\Model\A1099\V2\Form1099ListDataInner[]|null + * @return \Avalara\SDK\Model\A1099\V2\Get1099Form200Response[]|null */ public function getData() { @@ -230,7 +230,7 @@ public function getData() /** * Sets data * - * @param \Avalara\SDK\Model\A1099\V2\Form1099ListDataInner[]|null $data data + * @param \Avalara\SDK\Model\A1099\V2\Get1099Form200Response[]|null $data data * * @return self */ diff --git a/lib/Model/A1099/V2/Form1099Misc.php b/lib/Model/A1099/V2/Form1099Misc.php index 10c6fb3..e164b7c 100644 --- a/lib/Model/A1099/V2/Form1099Misc.php +++ b/lib/Model/A1099/V2/Form1099Misc.php @@ -103,12 +103,12 @@ class Form1099Misc implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', 'reference_id' => 'string', 'email' => 'string', - 'type_of_tin' => 'string', + 'tin_type' => 'string', 'tin' => 'string', - 'first_payee_name' => 'string', - 'second_payee_name' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', 'address' => 'string', - 'address_recipient_second' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -160,12 +160,12 @@ class Form1099Misc implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => null, 'reference_id' => null, 'email' => null, - 'type_of_tin' => null, + 'tin_type' => null, 'tin' => null, - 'first_payee_name' => null, - 'second_payee_name' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, 'address' => null, - 'address_recipient_second' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -236,12 +236,12 @@ public static function openAPIFormats() 'address_verification_status' => 'addressVerificationStatus', 'reference_id' => 'referenceId', 'email' => 'email', - 'type_of_tin' => 'typeOfTin', + 'tin_type' => 'tinType', 'tin' => 'tin', - 'first_payee_name' => 'firstPayeeName', - 'second_payee_name' => 'secondPayeeName', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', - 'address_recipient_second' => 'addressRecipientSecond', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -291,12 +291,12 @@ public static function openAPIFormats() 'address_verification_status' => 'setAddressVerificationStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', - 'type_of_tin' => 'setTypeOfTin', + 'tin_type' => 'setTinType', 'tin' => 'setTin', - 'first_payee_name' => 'setFirstPayeeName', - 'second_payee_name' => 'setSecondPayeeName', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', - 'address_recipient_second' => 'setAddressRecipientSecond', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -346,12 +346,12 @@ public static function openAPIFormats() 'address_verification_status' => 'getAddressVerificationStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', - 'type_of_tin' => 'getTypeOfTin', + 'tin_type' => 'getTinType', 'tin' => 'getTin', - 'first_payee_name' => 'getFirstPayeeName', - 'second_payee_name' => 'getSecondPayeeName', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', - 'address_recipient_second' => 'getAddressRecipientSecond', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -452,12 +452,12 @@ public function __construct(array $data = null) $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['type_of_tin'] = $data['type_of_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; - $this->container['first_payee_name'] = $data['first_payee_name'] ?? null; - $this->container['second_payee_name'] = $data['second_payee_name'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; - $this->container['address_recipient_second'] = $data['address_recipient_second'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -1264,25 +1264,25 @@ public function setEmail($email) } /** - * Gets type_of_tin + * Gets tin_type * * @return string|null */ - public function getTypeOfTin() + public function getTinType() { - return $this->container['type_of_tin']; + return $this->container['tin_type']; } /** - * Sets type_of_tin + * Sets tin_type * - * @param string|null $type_of_tin type_of_tin + * @param string|null $tin_type tin_type * * @return self */ - public function setTypeOfTin($type_of_tin) + public function setTinType($tin_type) { - $this->container['type_of_tin'] = $type_of_tin; + $this->container['tin_type'] = $tin_type; return $this; } @@ -1312,49 +1312,49 @@ public function setTin($tin) } /** - * Gets first_payee_name + * Gets recipient_name * * @return string|null */ - public function getFirstPayeeName() + public function getRecipientName() { - return $this->container['first_payee_name']; + return $this->container['recipient_name']; } /** - * Sets first_payee_name + * Sets recipient_name * - * @param string|null $first_payee_name first_payee_name + * @param string|null $recipient_name recipient_name * * @return self */ - public function setFirstPayeeName($first_payee_name) + public function setRecipientName($recipient_name) { - $this->container['first_payee_name'] = $first_payee_name; + $this->container['recipient_name'] = $recipient_name; return $this; } /** - * Gets second_payee_name + * Gets recipient_second_name * * @return string|null */ - public function getSecondPayeeName() + public function getRecipientSecondName() { - return $this->container['second_payee_name']; + return $this->container['recipient_second_name']; } /** - * Sets second_payee_name + * Sets recipient_second_name * - * @param string|null $second_payee_name second_payee_name + * @param string|null $recipient_second_name recipient_second_name * * @return self */ - public function setSecondPayeeName($second_payee_name) + public function setRecipientSecondName($recipient_second_name) { - $this->container['second_payee_name'] = $second_payee_name; + $this->container['recipient_second_name'] = $recipient_second_name; return $this; } @@ -1384,25 +1384,25 @@ public function setAddress($address) } /** - * Gets address_recipient_second + * Gets address2 * * @return string|null */ - public function getAddressRecipientSecond() + public function getAddress2() { - return $this->container['address_recipient_second']; + return $this->container['address2']; } /** - * Sets address_recipient_second + * Sets address2 * - * @param string|null $address_recipient_second address_recipient_second + * @param string|null $address2 address2 * * @return self */ - public function setAddressRecipientSecond($address_recipient_second) + public function setAddress2($address2) { - $this->container['address_recipient_second'] = $address_recipient_second; + $this->container['address2'] = $address2; return $this; } diff --git a/lib/Model/A1099/V2/Form1099MiscListItem.php b/lib/Model/A1099/V2/Form1099MiscListItem.php index cf4b504..0f22232 100644 --- a/lib/Model/A1099/V2/Form1099MiscListItem.php +++ b/lib/Model/A1099/V2/Form1099MiscListItem.php @@ -71,7 +71,6 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', @@ -88,17 +87,17 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'fatca_filing_requirement' => 'bool', 'excess_golden_parachute_payments' => 'float', 'nonqualified_deferred_compensation' => 'float', - 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', + 'issuer_id' => 'string', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -111,7 +110,8 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -122,7 +122,6 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', @@ -139,17 +138,17 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'fatca_filing_requirement' => null, 'excess_golden_parachute_payments' => 'double', 'nonqualified_deferred_compensation' => 'double', - 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', + 'issuer_id' => null, 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -162,7 +161,8 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -192,7 +192,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', @@ -209,17 +208,17 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', - 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -232,7 +231,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -241,7 +241,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', @@ -258,17 +257,17 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', - 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -281,7 +280,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -290,7 +290,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', @@ -307,17 +306,17 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', - 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -330,7 +329,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -374,6 +374,25 @@ public function getModelName() return self::$openAPIModelName; } + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -390,7 +409,6 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; @@ -407,17 +425,17 @@ public function __construct(array $data = null) $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; - $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -431,6 +449,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -442,6 +461,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -457,30 +485,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets second_tin_notice * @@ -865,30 +869,6 @@ public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compe return $this; } - /** - * Gets issuer_id - * - * @return string|null - */ - public function getIssuerId() - { - return $this->container['issuer_id']; - } - - /** - * Sets issuer_id - * - * @param string|null $issuer_id issuer_id - * - * @return self - */ - public function setIssuerId($issuer_id) - { - $this->container['issuer_id'] = $issuer_id; - - return $this; - } - /** * Gets issuer_reference_id * @@ -961,6 +941,30 @@ public function setTaxYear($tax_year) return $this; } + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + /** * Gets reference_id * @@ -1036,7 +1040,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1046,12 +1050,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1082,49 +1096,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1440,6 +1454,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099MiscRequest.php b/lib/Model/A1099/V2/Form1099MiscRequest.php index bccc96a..69e6b5b 100644 --- a/lib/Model/A1099/V2/Form1099MiscRequest.php +++ b/lib/Model/A1099/V2/Form1099MiscRequest.php @@ -71,7 +71,6 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', @@ -90,16 +89,13 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'nonqualified_deferred_compensation' => 'float', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -112,7 +108,8 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -123,7 +120,6 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', @@ -142,16 +138,13 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'nonqualified_deferred_compensation' => 'double', 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -164,7 +157,8 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -194,7 +188,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', @@ -213,16 +206,13 @@ public static function openAPIFormats() 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -235,7 +225,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -244,7 +235,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', @@ -263,16 +253,13 @@ public static function openAPIFormats() 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -285,7 +272,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -294,7 +282,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', @@ -313,16 +300,13 @@ public static function openAPIFormats() 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -335,7 +319,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -379,6 +364,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -395,7 +422,6 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; @@ -414,16 +440,13 @@ public function __construct(array $data = null) $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -437,6 +460,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -448,6 +472,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -463,30 +505,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets second_tin_notice * @@ -890,6 +908,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -919,78 +947,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1066,7 +1022,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1076,12 +1032,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1112,49 +1078,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1470,6 +1436,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099MiscResponse.php b/lib/Model/A1099/V2/Form1099MiscResponse.php new file mode 100644 index 0000000..5f9763c --- /dev/null +++ b/lib/Model/A1099/V2/Form1099MiscResponse.php @@ -0,0 +1,1946 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1099MiscResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1099MiscResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'second_tin_notice' => 'bool', + 'rents' => 'float', + 'royalties' => 'float', + 'other_income' => 'float', + 'fed_income_tax_withheld' => 'float', + 'fishing_boat_proceeds' => 'float', + 'medical_health_care_payments' => 'float', + 'payer_made_direct_sales' => 'bool', + 'substitute_payments' => 'float', + 'crop_insurance_proceeds' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', + 'section409_a_deferrals' => 'float', + 'fatca_filing_requirement' => 'bool', + 'excess_golden_parachute_payments' => 'float', + 'nonqualified_deferred_compensation' => 'float', + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'user_id' => 'string', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', + 'issuer_id' => 'string', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'second_tin_notice' => null, + 'rents' => 'double', + 'royalties' => 'double', + 'other_income' => 'double', + 'fed_income_tax_withheld' => 'double', + 'fishing_boat_proceeds' => 'double', + 'medical_health_care_payments' => 'double', + 'payer_made_direct_sales' => null, + 'substitute_payments' => 'double', + 'crop_insurance_proceeds' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', + 'section409_a_deferrals' => 'double', + 'fatca_filing_requirement' => null, + 'excess_golden_parachute_payments' => 'double', + 'nonqualified_deferred_compensation' => 'double', + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'user_id' => null, + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, + 'issuer_id' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'second_tin_notice' => 'secondTinNotice', + 'rents' => 'rents', + 'royalties' => 'royalties', + 'other_income' => 'otherIncome', + 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'fishingBoatProceeds', + 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'payer_made_direct_sales' => 'payerMadeDirectSales', + 'substitute_payments' => 'substitutePayments', + 'crop_insurance_proceeds' => 'cropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', + 'section409_a_deferrals' => 'section409ADeferrals', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'user_id' => 'userId', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'second_tin_notice' => 'setSecondTinNotice', + 'rents' => 'setRents', + 'royalties' => 'setRoyalties', + 'other_income' => 'setOtherIncome', + 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'setFishingBoatProceeds', + 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'payer_made_direct_sales' => 'setPayerMadeDirectSales', + 'substitute_payments' => 'setSubstitutePayments', + 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', + 'section409_a_deferrals' => 'setSection409ADeferrals', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'user_id' => 'setUserId', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'second_tin_notice' => 'getSecondTinNotice', + 'rents' => 'getRents', + 'royalties' => 'getRoyalties', + 'other_income' => 'getOtherIncome', + 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'getFishingBoatProceeds', + 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'payer_made_direct_sales' => 'getPayerMadeDirectSales', + 'substitute_payments' => 'getSubstitutePayments', + 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', + 'section409_a_deferrals' => 'getSection409ADeferrals', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'user_id' => 'getUserId', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['rents'] = $data['rents'] ?? null; + $this->container['royalties'] = $data['royalties'] ?? null; + $this->container['other_income'] = $data['other_income'] ?? null; + $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; + $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; + $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['payer_made_direct_sales'] = $data['payer_made_direct_sales'] ?? null; + $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; + $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; + $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets rents + * + * @return float|null + */ + public function getRents() + { + return $this->container['rents']; + } + + /** + * Sets rents + * + * @param float|null $rents rents + * + * @return self + */ + public function setRents($rents) + { + $this->container['rents'] = $rents; + + return $this; + } + + /** + * Gets royalties + * + * @return float|null + */ + public function getRoyalties() + { + return $this->container['royalties']; + } + + /** + * Sets royalties + * + * @param float|null $royalties royalties + * + * @return self + */ + public function setRoyalties($royalties) + { + $this->container['royalties'] = $royalties; + + return $this; + } + + /** + * Gets other_income + * + * @return float|null + */ + public function getOtherIncome() + { + return $this->container['other_income']; + } + + /** + * Sets other_income + * + * @param float|null $other_income other_income + * + * @return self + */ + public function setOtherIncome($other_income) + { + $this->container['other_income'] = $other_income; + + return $this; + } + + /** + * Gets fed_income_tax_withheld + * + * @return float|null + */ + public function getFedIncomeTaxWithheld() + { + return $this->container['fed_income_tax_withheld']; + } + + /** + * Sets fed_income_tax_withheld + * + * @param float|null $fed_income_tax_withheld fed_income_tax_withheld + * + * @return self + */ + public function setFedIncomeTaxWithheld($fed_income_tax_withheld) + { + $this->container['fed_income_tax_withheld'] = $fed_income_tax_withheld; + + return $this; + } + + /** + * Gets fishing_boat_proceeds + * + * @return float|null + */ + public function getFishingBoatProceeds() + { + return $this->container['fishing_boat_proceeds']; + } + + /** + * Sets fishing_boat_proceeds + * + * @param float|null $fishing_boat_proceeds fishing_boat_proceeds + * + * @return self + */ + public function setFishingBoatProceeds($fishing_boat_proceeds) + { + $this->container['fishing_boat_proceeds'] = $fishing_boat_proceeds; + + return $this; + } + + /** + * Gets medical_health_care_payments + * + * @return float|null + */ + public function getMedicalHealthCarePayments() + { + return $this->container['medical_health_care_payments']; + } + + /** + * Sets medical_health_care_payments + * + * @param float|null $medical_health_care_payments medical_health_care_payments + * + * @return self + */ + public function setMedicalHealthCarePayments($medical_health_care_payments) + { + $this->container['medical_health_care_payments'] = $medical_health_care_payments; + + return $this; + } + + /** + * Gets payer_made_direct_sales + * + * @return bool|null + */ + public function getPayerMadeDirectSales() + { + return $this->container['payer_made_direct_sales']; + } + + /** + * Sets payer_made_direct_sales + * + * @param bool|null $payer_made_direct_sales payer_made_direct_sales + * + * @return self + */ + public function setPayerMadeDirectSales($payer_made_direct_sales) + { + $this->container['payer_made_direct_sales'] = $payer_made_direct_sales; + + return $this; + } + + /** + * Gets substitute_payments + * + * @return float|null + */ + public function getSubstitutePayments() + { + return $this->container['substitute_payments']; + } + + /** + * Sets substitute_payments + * + * @param float|null $substitute_payments substitute_payments + * + * @return self + */ + public function setSubstitutePayments($substitute_payments) + { + $this->container['substitute_payments'] = $substitute_payments; + + return $this; + } + + /** + * Gets crop_insurance_proceeds + * + * @return float|null + */ + public function getCropInsuranceProceeds() + { + return $this->container['crop_insurance_proceeds']; + } + + /** + * Sets crop_insurance_proceeds + * + * @param float|null $crop_insurance_proceeds crop_insurance_proceeds + * + * @return self + */ + public function setCropInsuranceProceeds($crop_insurance_proceeds) + { + $this->container['crop_insurance_proceeds'] = $crop_insurance_proceeds; + + return $this; + } + + /** + * Gets gross_proceeds_paid_to_attorney + * + * @return float|null + */ + public function getGrossProceedsPaidToAttorney() + { + return $this->container['gross_proceeds_paid_to_attorney']; + } + + /** + * Sets gross_proceeds_paid_to_attorney + * + * @param float|null $gross_proceeds_paid_to_attorney gross_proceeds_paid_to_attorney + * + * @return self + */ + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) + { + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; + + return $this; + } + + /** + * Gets fish_purchased_for_resale + * + * @return float|null + */ + public function getFishPurchasedForResale() + { + return $this->container['fish_purchased_for_resale']; + } + + /** + * Sets fish_purchased_for_resale + * + * @param float|null $fish_purchased_for_resale fish_purchased_for_resale + * + * @return self + */ + public function setFishPurchasedForResale($fish_purchased_for_resale) + { + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; + + return $this; + } + + /** + * Gets section409_a_deferrals + * + * @return float|null + */ + public function getSection409ADeferrals() + { + return $this->container['section409_a_deferrals']; + } + + /** + * Sets section409_a_deferrals + * + * @param float|null $section409_a_deferrals section409_a_deferrals + * + * @return self + */ + public function setSection409ADeferrals($section409_a_deferrals) + { + $this->container['section409_a_deferrals'] = $section409_a_deferrals; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement fatca_filing_requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + + /** + * Gets excess_golden_parachute_payments + * + * @return float|null + */ + public function getExcessGoldenParachutePayments() + { + return $this->container['excess_golden_parachute_payments']; + } + + /** + * Sets excess_golden_parachute_payments + * + * @param float|null $excess_golden_parachute_payments excess_golden_parachute_payments + * + * @return self + */ + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) + { + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; + + return $this; + } + + /** + * Gets nonqualified_deferred_compensation + * + * @return float|null + */ + public function getNonqualifiedDeferredCompensation() + { + return $this->container['nonqualified_deferred_compensation']; + } + + /** + * Sets nonqualified_deferred_compensation + * + * @param float|null $nonqualified_deferred_compensation nonqualified_deferred_compensation + * + * @return self + */ + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) + { + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099Nec.php b/lib/Model/A1099/V2/Form1099Nec.php index 4a48941..b35d3b1 100644 --- a/lib/Model/A1099/V2/Form1099Nec.php +++ b/lib/Model/A1099/V2/Form1099Nec.php @@ -92,12 +92,12 @@ class Form1099Nec implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', 'reference_id' => 'string', 'email' => 'string', - 'type_of_tin' => 'string', + 'tin_type' => 'string', 'tin' => 'string', - 'first_payee_name' => 'string', - 'second_payee_name' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', 'address' => 'string', - 'address_recipient_second' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -138,12 +138,12 @@ class Form1099Nec implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => null, 'reference_id' => null, 'email' => null, - 'type_of_tin' => null, + 'tin_type' => null, 'tin' => null, - 'first_payee_name' => null, - 'second_payee_name' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, 'address' => null, - 'address_recipient_second' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -203,12 +203,12 @@ public static function openAPIFormats() 'address_verification_status' => 'addressVerificationStatus', 'reference_id' => 'referenceId', 'email' => 'email', - 'type_of_tin' => 'typeOfTin', + 'tin_type' => 'tinType', 'tin' => 'tin', - 'first_payee_name' => 'firstPayeeName', - 'second_payee_name' => 'secondPayeeName', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', - 'address_recipient_second' => 'addressRecipientSecond', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -247,12 +247,12 @@ public static function openAPIFormats() 'address_verification_status' => 'setAddressVerificationStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', - 'type_of_tin' => 'setTypeOfTin', + 'tin_type' => 'setTinType', 'tin' => 'setTin', - 'first_payee_name' => 'setFirstPayeeName', - 'second_payee_name' => 'setSecondPayeeName', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', - 'address_recipient_second' => 'setAddressRecipientSecond', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -291,12 +291,12 @@ public static function openAPIFormats() 'address_verification_status' => 'getAddressVerificationStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', - 'type_of_tin' => 'getTypeOfTin', + 'tin_type' => 'getTinType', 'tin' => 'getTin', - 'first_payee_name' => 'getFirstPayeeName', - 'second_payee_name' => 'getSecondPayeeName', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', - 'address_recipient_second' => 'getAddressRecipientSecond', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -386,12 +386,12 @@ public function __construct(array $data = null) $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['type_of_tin'] = $data['type_of_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; - $this->container['first_payee_name'] = $data['first_payee_name'] ?? null; - $this->container['second_payee_name'] = $data['second_payee_name'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; - $this->container['address_recipient_second'] = $data['address_recipient_second'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -934,25 +934,25 @@ public function setEmail($email) } /** - * Gets type_of_tin + * Gets tin_type * * @return string|null */ - public function getTypeOfTin() + public function getTinType() { - return $this->container['type_of_tin']; + return $this->container['tin_type']; } /** - * Sets type_of_tin + * Sets tin_type * - * @param string|null $type_of_tin type_of_tin + * @param string|null $tin_type tin_type * * @return self */ - public function setTypeOfTin($type_of_tin) + public function setTinType($tin_type) { - $this->container['type_of_tin'] = $type_of_tin; + $this->container['tin_type'] = $tin_type; return $this; } @@ -982,49 +982,49 @@ public function setTin($tin) } /** - * Gets first_payee_name + * Gets recipient_name * * @return string|null */ - public function getFirstPayeeName() + public function getRecipientName() { - return $this->container['first_payee_name']; + return $this->container['recipient_name']; } /** - * Sets first_payee_name + * Sets recipient_name * - * @param string|null $first_payee_name first_payee_name + * @param string|null $recipient_name recipient_name * * @return self */ - public function setFirstPayeeName($first_payee_name) + public function setRecipientName($recipient_name) { - $this->container['first_payee_name'] = $first_payee_name; + $this->container['recipient_name'] = $recipient_name; return $this; } /** - * Gets second_payee_name + * Gets recipient_second_name * * @return string|null */ - public function getSecondPayeeName() + public function getRecipientSecondName() { - return $this->container['second_payee_name']; + return $this->container['recipient_second_name']; } /** - * Sets second_payee_name + * Sets recipient_second_name * - * @param string|null $second_payee_name second_payee_name + * @param string|null $recipient_second_name recipient_second_name * * @return self */ - public function setSecondPayeeName($second_payee_name) + public function setRecipientSecondName($recipient_second_name) { - $this->container['second_payee_name'] = $second_payee_name; + $this->container['recipient_second_name'] = $recipient_second_name; return $this; } @@ -1054,25 +1054,25 @@ public function setAddress($address) } /** - * Gets address_recipient_second + * Gets address2 * * @return string|null */ - public function getAddressRecipientSecond() + public function getAddress2() { - return $this->container['address_recipient_second']; + return $this->container['address2']; } /** - * Sets address_recipient_second + * Sets address2 * - * @param string|null $address_recipient_second address_recipient_second + * @param string|null $address2 address2 * * @return self */ - public function setAddressRecipientSecond($address_recipient_second) + public function setAddress2($address2) { - $this->container['address_recipient_second'] = $address_recipient_second; + $this->container['address2'] = $address2; return $this; } diff --git a/lib/Model/A1099/V2/Form1099NecListItem.php b/lib/Model/A1099/V2/Form1099NecListItem.php index cd5ef91..99dcf69 100644 --- a/lib/Model/A1099/V2/Form1099NecListItem.php +++ b/lib/Model/A1099/V2/Form1099NecListItem.php @@ -71,22 +71,21 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', 'second_tin_notice' => 'bool', 'nonemployee_compensation' => 'float', 'payer_made_direct_sales' => 'bool', 'federal_income_tax_withheld' => 'float', - 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', + 'issuer_id' => 'string', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -99,7 +98,8 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -110,22 +110,21 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'nonemployee_compensation' => 'double', 'payer_made_direct_sales' => null, 'federal_income_tax_withheld' => 'double', - 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', + 'issuer_id' => null, 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -138,7 +137,8 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -168,22 +168,21 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'nonemployee_compensation' => 'nonemployeeCompensation', 'payer_made_direct_sales' => 'payerMadeDirectSales', 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', - 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -196,7 +195,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -205,22 +205,21 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'payer_made_direct_sales' => 'setPayerMadeDirectSales', 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', - 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -233,7 +232,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -242,22 +242,21 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'payer_made_direct_sales' => 'getPayerMadeDirectSales', 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', - 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -270,7 +269,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -314,6 +314,25 @@ public function getModelName() return self::$openAPIModelName; } + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -330,22 +349,21 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['payer_made_direct_sales'] = $data['payer_made_direct_sales'] ?? null; $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; - $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -359,6 +377,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -370,6 +389,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -385,30 +413,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets second_tin_notice * @@ -505,30 +509,6 @@ public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) return $this; } - /** - * Gets issuer_id - * - * @return string|null - */ - public function getIssuerId() - { - return $this->container['issuer_id']; - } - - /** - * Sets issuer_id - * - * @param string|null $issuer_id issuer_id - * - * @return self - */ - public function setIssuerId($issuer_id) - { - $this->container['issuer_id'] = $issuer_id; - - return $this; - } - /** * Gets issuer_reference_id * @@ -601,6 +581,30 @@ public function setTaxYear($tax_year) return $this; } + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + /** * Gets reference_id * @@ -676,7 +680,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -686,12 +690,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -722,49 +736,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1080,6 +1094,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099NecRequest.php b/lib/Model/A1099/V2/Form1099NecRequest.php index 8ca0723..03664bb 100644 --- a/lib/Model/A1099/V2/Form1099NecRequest.php +++ b/lib/Model/A1099/V2/Form1099NecRequest.php @@ -71,23 +71,19 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'second_tin_notice' => 'bool', 'nonemployee_compensation' => 'float', 'payer_made_direct_sales' => 'bool', 'federal_income_tax_withheld' => 'float', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -100,7 +96,8 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -111,23 +108,19 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'nonemployee_compensation' => 'double', 'payer_made_direct_sales' => null, 'federal_income_tax_withheld' => 'double', 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -140,7 +133,8 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -170,23 +164,19 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'nonemployee_compensation' => 'nonemployeeCompensation', 'payer_made_direct_sales' => 'payerMadeDirectSales', 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -199,7 +189,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -208,23 +199,19 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'payer_made_direct_sales' => 'setPayerMadeDirectSales', 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -237,7 +224,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -246,23 +234,19 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'payer_made_direct_sales' => 'getPayerMadeDirectSales', 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -275,7 +259,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -319,6 +304,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -335,23 +362,19 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['payer_made_direct_sales'] = $data['payer_made_direct_sales'] ?? null; $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -365,6 +388,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -376,6 +400,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -391,30 +433,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets second_tin_notice * @@ -530,6 +548,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -559,78 +587,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -706,7 +662,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -716,12 +672,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -752,49 +718,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1110,6 +1076,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099NecResponse.php b/lib/Model/A1099/V2/Form1099NecResponse.php new file mode 100644 index 0000000..8f1c07c --- /dev/null +++ b/lib/Model/A1099/V2/Form1099NecResponse.php @@ -0,0 +1,1586 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1099NecResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1099NecResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1099NecResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'second_tin_notice' => 'bool', + 'nonemployee_compensation' => 'float', + 'payer_made_direct_sales' => 'bool', + 'federal_income_tax_withheld' => 'float', + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'user_id' => 'string', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', + 'issuer_id' => 'string', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'second_tin_notice' => null, + 'nonemployee_compensation' => 'double', + 'payer_made_direct_sales' => null, + 'federal_income_tax_withheld' => 'double', + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'user_id' => null, + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, + 'issuer_id' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'second_tin_notice' => 'secondTinNotice', + 'nonemployee_compensation' => 'nonemployeeCompensation', + 'payer_made_direct_sales' => 'payerMadeDirectSales', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'user_id' => 'userId', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'second_tin_notice' => 'setSecondTinNotice', + 'nonemployee_compensation' => 'setNonemployeeCompensation', + 'payer_made_direct_sales' => 'setPayerMadeDirectSales', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'user_id' => 'setUserId', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'second_tin_notice' => 'getSecondTinNotice', + 'nonemployee_compensation' => 'getNonemployeeCompensation', + 'payer_made_direct_sales' => 'getPayerMadeDirectSales', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'user_id' => 'getUserId', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; + $this->container['payer_made_direct_sales'] = $data['payer_made_direct_sales'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets nonemployee_compensation + * + * @return float|null + */ + public function getNonemployeeCompensation() + { + return $this->container['nonemployee_compensation']; + } + + /** + * Sets nonemployee_compensation + * + * @param float|null $nonemployee_compensation nonemployee_compensation + * + * @return self + */ + public function setNonemployeeCompensation($nonemployee_compensation) + { + $this->container['nonemployee_compensation'] = $nonemployee_compensation; + + return $this; + } + + /** + * Gets payer_made_direct_sales + * + * @return bool|null + */ + public function getPayerMadeDirectSales() + { + return $this->container['payer_made_direct_sales']; + } + + /** + * Sets payer_made_direct_sales + * + * @param bool|null $payer_made_direct_sales payer_made_direct_sales + * + * @return self + */ + public function setPayerMadeDirectSales($payer_made_direct_sales) + { + $this->container['payer_made_direct_sales'] = $payer_made_direct_sales; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld federal_income_tax_withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099R.php b/lib/Model/A1099/V2/Form1099R.php index 0c8db46..6ae8f28 100644 --- a/lib/Model/A1099/V2/Form1099R.php +++ b/lib/Model/A1099/V2/Form1099R.php @@ -109,12 +109,12 @@ class Form1099R implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', 'reference_id' => 'string', 'email' => 'string', - 'type_of_tin' => 'string', + 'tin_type' => 'string', 'tin' => 'string', - 'first_payee_name' => 'string', - 'second_payee_name' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', 'address' => 'string', - 'address_recipient_second' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -172,12 +172,12 @@ class Form1099R implements ModelInterface, ArrayAccess, \JsonSerializable 'address_verification_status' => null, 'reference_id' => null, 'email' => null, - 'type_of_tin' => null, + 'tin_type' => null, 'tin' => null, - 'first_payee_name' => null, - 'second_payee_name' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, 'address' => null, - 'address_recipient_second' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -254,12 +254,12 @@ public static function openAPIFormats() 'address_verification_status' => 'addressVerificationStatus', 'reference_id' => 'referenceId', 'email' => 'email', - 'type_of_tin' => 'typeOfTin', + 'tin_type' => 'tinType', 'tin' => 'tin', - 'first_payee_name' => 'firstPayeeName', - 'second_payee_name' => 'secondPayeeName', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', - 'address_recipient_second' => 'addressRecipientSecond', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -315,12 +315,12 @@ public static function openAPIFormats() 'address_verification_status' => 'setAddressVerificationStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', - 'type_of_tin' => 'setTypeOfTin', + 'tin_type' => 'setTinType', 'tin' => 'setTin', - 'first_payee_name' => 'setFirstPayeeName', - 'second_payee_name' => 'setSecondPayeeName', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', - 'address_recipient_second' => 'setAddressRecipientSecond', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -376,12 +376,12 @@ public static function openAPIFormats() 'address_verification_status' => 'getAddressVerificationStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', - 'type_of_tin' => 'getTypeOfTin', + 'tin_type' => 'getTinType', 'tin' => 'getTin', - 'first_payee_name' => 'getFirstPayeeName', - 'second_payee_name' => 'getSecondPayeeName', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', - 'address_recipient_second' => 'getAddressRecipientSecond', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -488,12 +488,12 @@ public function __construct(array $data = null) $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['type_of_tin'] = $data['type_of_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; - $this->container['first_payee_name'] = $data['first_payee_name'] ?? null; - $this->container['second_payee_name'] = $data['second_payee_name'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; - $this->container['address_recipient_second'] = $data['address_recipient_second'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -1444,25 +1444,25 @@ public function setEmail($email) } /** - * Gets type_of_tin + * Gets tin_type * * @return string|null */ - public function getTypeOfTin() + public function getTinType() { - return $this->container['type_of_tin']; + return $this->container['tin_type']; } /** - * Sets type_of_tin + * Sets tin_type * - * @param string|null $type_of_tin type_of_tin + * @param string|null $tin_type tin_type * * @return self */ - public function setTypeOfTin($type_of_tin) + public function setTinType($tin_type) { - $this->container['type_of_tin'] = $type_of_tin; + $this->container['tin_type'] = $tin_type; return $this; } @@ -1492,49 +1492,49 @@ public function setTin($tin) } /** - * Gets first_payee_name + * Gets recipient_name * * @return string|null */ - public function getFirstPayeeName() + public function getRecipientName() { - return $this->container['first_payee_name']; + return $this->container['recipient_name']; } /** - * Sets first_payee_name + * Sets recipient_name * - * @param string|null $first_payee_name first_payee_name + * @param string|null $recipient_name recipient_name * * @return self */ - public function setFirstPayeeName($first_payee_name) + public function setRecipientName($recipient_name) { - $this->container['first_payee_name'] = $first_payee_name; + $this->container['recipient_name'] = $recipient_name; return $this; } /** - * Gets second_payee_name + * Gets recipient_second_name * * @return string|null */ - public function getSecondPayeeName() + public function getRecipientSecondName() { - return $this->container['second_payee_name']; + return $this->container['recipient_second_name']; } /** - * Sets second_payee_name + * Sets recipient_second_name * - * @param string|null $second_payee_name second_payee_name + * @param string|null $recipient_second_name recipient_second_name * * @return self */ - public function setSecondPayeeName($second_payee_name) + public function setRecipientSecondName($recipient_second_name) { - $this->container['second_payee_name'] = $second_payee_name; + $this->container['recipient_second_name'] = $recipient_second_name; return $this; } @@ -1564,25 +1564,25 @@ public function setAddress($address) } /** - * Gets address_recipient_second + * Gets address2 * * @return string|null */ - public function getAddressRecipientSecond() + public function getAddress2() { - return $this->container['address_recipient_second']; + return $this->container['address2']; } /** - * Sets address_recipient_second + * Sets address2 * - * @param string|null $address_recipient_second address_recipient_second + * @param string|null $address2 address2 * * @return self */ - public function setAddressRecipientSecond($address_recipient_second) + public function setAddress2($address2) { - $this->container['address_recipient_second'] = $address_recipient_second; + $this->container['address2'] = $address2; return $this; } diff --git a/lib/Model/A1099/V2/Form1099RListItem.php b/lib/Model/A1099/V2/Form1099RListItem.php index 89456c0..b1bd71f 100644 --- a/lib/Model/A1099/V2/Form1099RListItem.php +++ b/lib/Model/A1099/V2/Form1099RListItem.php @@ -71,7 +71,6 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', 'gross_distribution' => 'float', 'taxable_amount' => 'float', 'taxable_amount_not_determined' => 'bool', @@ -92,17 +91,17 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'first_year_of_designated_roth_contribution' => 'int', 'fatca_filing_requirement' => 'bool', 'date_of_payment' => '\DateTime', - 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', + 'issuer_id' => 'string', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -115,7 +114,8 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -126,7 +126,6 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'gross_distribution' => 'double', 'taxable_amount' => 'double', 'taxable_amount_not_determined' => null, @@ -147,17 +146,17 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'first_year_of_designated_roth_contribution' => 'int32', 'fatca_filing_requirement' => null, 'date_of_payment' => 'date-time', - 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', + 'issuer_id' => null, 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -170,7 +169,8 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -200,7 +200,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'gross_distribution' => 'grossDistribution', 'taxable_amount' => 'taxableAmount', 'taxable_amount_not_determined' => 'taxableAmountNotDetermined', @@ -221,17 +220,17 @@ public static function openAPIFormats() 'first_year_of_designated_roth_contribution' => 'firstYearOfDesignatedRothContribution', 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'date_of_payment' => 'dateOfPayment', - 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -244,7 +243,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -253,7 +253,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'gross_distribution' => 'setGrossDistribution', 'taxable_amount' => 'setTaxableAmount', 'taxable_amount_not_determined' => 'setTaxableAmountNotDetermined', @@ -274,17 +273,17 @@ public static function openAPIFormats() 'first_year_of_designated_roth_contribution' => 'setFirstYearOfDesignatedRothContribution', 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'date_of_payment' => 'setDateOfPayment', - 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -297,7 +296,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -306,7 +306,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'gross_distribution' => 'getGrossDistribution', 'taxable_amount' => 'getTaxableAmount', 'taxable_amount_not_determined' => 'getTaxableAmountNotDetermined', @@ -327,17 +326,17 @@ public static function openAPIFormats() 'first_year_of_designated_roth_contribution' => 'getFirstYearOfDesignatedRothContribution', 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'date_of_payment' => 'getDateOfPayment', - 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -350,7 +349,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -452,6 +452,10 @@ public function getModelName() const SECOND_DISTRIBUTION_CODE_ROTH_IRA_DISTRIBUTION_EXCEPTION = 'RothIRADistributionException'; const SECOND_DISTRIBUTION_CODE_ESOP_DISTRIBUTION = 'ESOPDistribution'; const SECOND_DISTRIBUTION_CODE_LONG_TERM_CARE_INSURANCE = 'LongTermCareInsurance'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; /** * Gets allowable values of the enum @@ -533,6 +537,21 @@ public function getSecondDistributionCodeAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + /** * Associative array for storing property values * @@ -548,7 +567,6 @@ public function getSecondDistributionCodeAllowableValues() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['gross_distribution'] = $data['gross_distribution'] ?? null; $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; $this->container['taxable_amount_not_determined'] = $data['taxable_amount_not_determined'] ?? null; @@ -569,17 +587,17 @@ public function __construct(array $data = null) $this->container['first_year_of_designated_roth_contribution'] = $data['first_year_of_designated_roth_contribution'] ?? null; $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['date_of_payment'] = $data['date_of_payment'] ?? null; - $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -593,6 +611,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -622,6 +641,15 @@ public function listInvalidProperties() ); } + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -637,30 +665,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets gross_distribution * @@ -1161,30 +1165,6 @@ public function setDateOfPayment($date_of_payment) return $this; } - /** - * Gets issuer_id - * - * @return string|null - */ - public function getIssuerId() - { - return $this->container['issuer_id']; - } - - /** - * Sets issuer_id - * - * @param string|null $issuer_id issuer_id - * - * @return self - */ - public function setIssuerId($issuer_id) - { - $this->container['issuer_id'] = $issuer_id; - - return $this; - } - /** * Gets issuer_reference_id * @@ -1257,6 +1237,30 @@ public function setTaxYear($tax_year) return $this; } + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + /** * Gets reference_id * @@ -1332,7 +1336,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1342,12 +1346,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1378,49 +1392,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1736,6 +1750,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1099RRequest.php b/lib/Model/A1099/V2/Form1099RRequest.php index 03d1720..1f3b701 100644 --- a/lib/Model/A1099/V2/Form1099RRequest.php +++ b/lib/Model/A1099/V2/Form1099RRequest.php @@ -71,7 +71,6 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'gross_distribution' => 'float', 'taxable_amount' => 'float', 'taxable_amount_not_determined' => 'bool', @@ -94,16 +93,13 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'date_of_payment' => '\DateTime', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -116,7 +112,8 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -127,7 +124,6 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'state_and_local_withholding' => null, 'gross_distribution' => 'double', 'taxable_amount' => 'double', 'taxable_amount_not_determined' => null, @@ -150,16 +146,13 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'date_of_payment' => 'date-time', 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -172,7 +165,8 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -202,7 +196,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'gross_distribution' => 'grossDistribution', 'taxable_amount' => 'taxableAmount', 'taxable_amount_not_determined' => 'taxableAmountNotDetermined', @@ -225,16 +218,13 @@ public static function openAPIFormats() 'date_of_payment' => 'dateOfPayment', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -247,7 +237,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -256,7 +247,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'gross_distribution' => 'setGrossDistribution', 'taxable_amount' => 'setTaxableAmount', 'taxable_amount_not_determined' => 'setTaxableAmountNotDetermined', @@ -279,16 +269,13 @@ public static function openAPIFormats() 'date_of_payment' => 'setDateOfPayment', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -301,7 +288,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -310,7 +298,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'gross_distribution' => 'getGrossDistribution', 'taxable_amount' => 'getTaxableAmount', 'taxable_amount_not_determined' => 'getTaxableAmountNotDetermined', @@ -333,16 +320,13 @@ public static function openAPIFormats() 'date_of_payment' => 'getDateOfPayment', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -355,7 +339,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -399,6 +384,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -415,7 +442,6 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['gross_distribution'] = $data['gross_distribution'] ?? null; $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; $this->container['taxable_amount_not_determined'] = $data['taxable_amount_not_determined'] ?? null; @@ -438,16 +464,13 @@ public function __construct(array $data = null) $this->container['date_of_payment'] = $data['date_of_payment'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -461,6 +484,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -472,6 +496,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -487,30 +529,6 @@ public function valid() } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets gross_distribution * @@ -1010,6 +1028,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -1039,78 +1067,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1186,7 +1142,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1196,12 +1152,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1232,49 +1198,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1590,6 +1556,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/FormRequestBase.php b/lib/Model/A1099/V2/FormRequestBase.php index 4e5ca9a..06fd93f 100644 --- a/lib/Model/A1099/V2/FormRequestBase.php +++ b/lib/Model/A1099/V2/FormRequestBase.php @@ -72,16 +72,13 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -94,7 +91,8 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -106,16 +104,13 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -128,7 +123,8 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -159,16 +155,13 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -181,7 +174,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -191,16 +185,13 @@ public static function openAPIFormats() */ protected static $setters = [ 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -213,7 +204,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -223,16 +215,13 @@ public static function openAPIFormats() */ protected static $getters = [ 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -245,7 +234,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -289,6 +279,25 @@ public function getModelName() return self::$openAPIModelName; } + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -306,16 +315,13 @@ public function getModelName() public function __construct(array $data = null) { $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -329,6 +335,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -340,6 +347,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -379,78 +395,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -526,7 +470,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -536,12 +480,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -572,49 +526,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -930,6 +884,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/FormRequestCsvBase.php b/lib/Model/A1099/V2/FormRequestCsvBase.php new file mode 100644 index 0000000..063fbeb --- /dev/null +++ b/lib/Model/A1099/V2/FormRequestCsvBase.php @@ -0,0 +1,1090 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * FormRequestCsvBase Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class FormRequestCsvBase implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'FormRequestCsvBase'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'issuer_id' => 'string', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'tin_type' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'issuer_id' => null, + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'tin_type' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'tin_type' => 'tinType', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'tin_type' => 'setTinType', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'tin_type' => 'getTinType', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/FormResponseBase.php b/lib/Model/A1099/V2/FormResponseBase.php index b34058b..7794fe8 100644 --- a/lib/Model/A1099/V2/FormResponseBase.php +++ b/lib/Model/A1099/V2/FormResponseBase.php @@ -71,17 +71,23 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'user_id' => 'string', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', 'issuer_id' => 'string', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', - 'recipient_federal_id' => 'string', - 'federal_id_type' => 'int', + 'recipient_tin' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -89,7 +95,18 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'account_number' => 'string', 'office_code' => 'string', 'recipient_non_us_province' => 'string', - 'country_code' => 'string' + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]' ]; /** @@ -100,17 +117,23 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'user_id' => null, + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, 'issuer_id' => null, 'issuer_reference_id' => null, 'issuer_tin' => null, 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, - 'recipient_federal_id' => null, - 'federal_id_type' => 'int32', + 'recipient_tin' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -118,7 +141,18 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'account_number' => null, 'office_code' => null, 'recipient_non_us_province' => null, - 'country_code' => null + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null ]; /** @@ -148,17 +182,23 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'user_id' => 'userId', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', 'issuer_id' => 'issuerId', 'issuer_reference_id' => 'issuerReferenceId', 'issuer_tin' => 'issuerTin', 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', - 'recipient_federal_id' => 'recipientFederalId', - 'federal_id_type' => 'federalIdType', + 'recipient_tin' => 'recipientTin', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -166,7 +206,18 @@ public static function openAPIFormats() 'account_number' => 'accountNumber', 'office_code' => 'officeCode', 'recipient_non_us_province' => 'recipientNonUsProvince', - 'country_code' => 'countryCode' + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors' ]; /** @@ -175,17 +226,23 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'user_id' => 'setUserId', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', 'issuer_id' => 'setIssuerId', 'issuer_reference_id' => 'setIssuerReferenceId', 'issuer_tin' => 'setIssuerTin', 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', - 'recipient_federal_id' => 'setRecipientFederalId', - 'federal_id_type' => 'setFederalIdType', + 'recipient_tin' => 'setRecipientTin', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -193,7 +250,18 @@ public static function openAPIFormats() 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', 'recipient_non_us_province' => 'setRecipientNonUsProvince', - 'country_code' => 'setCountryCode' + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors' ]; /** @@ -202,17 +270,23 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'user_id' => 'getUserId', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', 'issuer_id' => 'getIssuerId', 'issuer_reference_id' => 'getIssuerReferenceId', 'issuer_tin' => 'getIssuerTin', 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', - 'recipient_federal_id' => 'getRecipientFederalId', - 'federal_id_type' => 'getFederalIdType', + 'recipient_tin' => 'getRecipientTin', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -220,7 +294,18 @@ public static function openAPIFormats() 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', 'recipient_non_us_province' => 'getRecipientNonUsProvince', - 'country_code' => 'getCountryCode' + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors' ]; /** @@ -264,6 +349,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -280,17 +407,23 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; - $this->container['recipient_federal_id'] = $data['recipient_federal_id'] ?? null; - $this->container['federal_id_type'] = $data['federal_id_type'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -299,6 +432,17 @@ public function __construct(array $data = null) $this->container['office_code'] = $data['office_code'] ?? null; $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; } /** @@ -310,6 +454,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -325,6 +487,194 @@ public function valid() } + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** * Gets issuer_id * @@ -470,49 +820,25 @@ public function setRecipientName($recipient_name) } /** - * Gets recipient_federal_id + * Gets recipient_tin * * @return string|null */ - public function getRecipientFederalId() + public function getRecipientTin() { - return $this->container['recipient_federal_id']; + return $this->container['recipient_tin']; } /** - * Sets recipient_federal_id + * Sets recipient_tin * - * @param string|null $recipient_federal_id recipient_federal_id + * @param string|null $recipient_tin recipient_tin * * @return self */ - public function setRecipientFederalId($recipient_federal_id) + public function setRecipientTin($recipient_tin) { - $this->container['recipient_federal_id'] = $recipient_federal_id; - - return $this; - } - - /** - * Gets federal_id_type - * - * @return int|null - */ - public function getFederalIdType() - { - return $this->container['federal_id_type']; - } - - /** - * Sets federal_id_type - * - * @param int|null $federal_id_type federal_id_type - * - * @return self - */ - public function setFederalIdType($federal_id_type) - { - $this->container['federal_id_type'] = $federal_id_type; + $this->container['recipient_tin'] = $recipient_tin; return $this; } @@ -542,49 +868,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -780,6 +1106,274 @@ public function setCountryCode($country_code) return $this; } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/FormSingleRequestBase.php b/lib/Model/A1099/V2/FormSingleRequestBase.php index d8e51d2..4676e3b 100644 --- a/lib/Model/A1099/V2/FormSingleRequestBase.php +++ b/lib/Model/A1099/V2/FormSingleRequestBase.php @@ -73,16 +73,13 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali protected static $openAPITypes = [ 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -95,7 +92,8 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', - 'address_verification' => 'bool' + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; /** @@ -108,16 +106,13 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali protected static $openAPIFormats = [ 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -130,7 +125,8 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, - 'address_verification' => null + 'address_verification' => null, + 'state_and_local_withholding' => null ]; /** @@ -162,16 +158,13 @@ public static function openAPIFormats() protected static $attributeMap = [ 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -184,7 +177,8 @@ public static function openAPIFormats() 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', - 'address_verification' => 'addressVerification' + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; /** @@ -195,16 +189,13 @@ public static function openAPIFormats() protected static $setters = [ 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -217,7 +208,8 @@ public static function openAPIFormats() 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', - 'address_verification' => 'setAddressVerification' + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; /** @@ -228,16 +220,13 @@ public static function openAPIFormats() protected static $getters = [ 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -250,7 +239,8 @@ public static function openAPIFormats() 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', - 'address_verification' => 'getAddressVerification' + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; /** @@ -294,6 +284,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -312,16 +344,13 @@ public function __construct(array $data = null) { $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -335,6 +364,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } /** @@ -346,6 +376,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -380,6 +428,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -409,78 +467,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -556,7 +542,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -566,12 +552,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -602,49 +598,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -960,6 +956,30 @@ public function setAddressVerification($address_verification) return $this; } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Get1099Form200Response.php b/lib/Model/A1099/V2/Get1099Form200Response.php new file mode 100644 index 0000000..b108f2b --- /dev/null +++ b/lib/Model/A1099/V2/Get1099Form200Response.php @@ -0,0 +1,3018 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Get1099Form200Response Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Get1099Form_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'origin_of_health_coverage_code' => 'string', + 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]', + 'id' => 'string', + 'type' => 'string', + 'issuer_id' => 'int', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'federal_efile' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'state_efile' => 'bool', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]', + 'postal_mail' => 'bool', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'tin_match' => 'bool', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'address_verification' => 'bool', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetail', + 'reference_id' => 'string', + 'email' => 'string', + 'tin_type' => 'string', + 'tin' => 'string', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'foreign_province' => 'string', + 'country_code' => 'string', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationError[]', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding', + 'filer_type' => 'string', + 'payment_type' => 'string', + 'payment_settlement_entity_name_phone_number' => 'string', + 'gross_amount_payment_card' => 'float', + 'card_not_present_transactions' => 'float', + 'merchant_category_code' => 'string', + 'payment_transaction_number' => 'float', + 'federal_income_tax_withheld' => 'float', + 'january' => 'float', + 'february' => 'float', + 'march' => 'float', + 'april' => 'float', + 'may' => 'float', + 'june' => 'float', + 'july' => 'float', + 'august' => 'float', + 'sept' => 'float', + 'october' => 'float', + 'november' => 'float', + 'december' => 'float', + 'rents' => 'float', + 'royalties' => 'float', + 'other_income' => 'float', + 'fed_income_tax_withheld' => 'float', + 'fishing_boat_proceeds' => 'float', + 'medical_and_health_care' => 'float', + 'nonemployee_compensation' => 'float', + 'substitute_payments' => 'float', + 'direct_sales_indicator' => 'bool', + 'crop_insurance_proceeds' => 'float', + 'excess_golden_parachute' => 'float', + 'gross_amount_paid_attorney' => 'float', + 'section409_a_deferrals' => 'float', + 'section409_a_income' => 'float', + 'gross_distributions' => 'float', + 'taxable_amount' => 'float', + 'taxable_amount_not_determined' => 'bool', + 'total_distribution_indicator' => 'bool', + 'capital_gain' => 'float', + 'employee_contributions' => 'float', + 'net_unrealized_appreciation' => 'float', + 'distribution_code_required' => 'string', + 'distribution_code_optional' => 'string', + 'ira_sep_simple_indicator' => 'bool', + 'total_ira_sep_simple_distribution' => 'float', + 'other' => 'float', + 'other_percent' => 'string', + 'percentage_total_distribution' => 'string', + 'total_employee_contributions' => 'float', + 'amount_allocable_to_irr' => 'float', + 'first_year_designated_roth_contrib' => 'string', + 'fatca_requirement_indicator' => 'bool', + 'date_of_payment' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'origin_of_health_coverage_code' => null, + 'covered_individuals' => null, + 'id' => null, + 'type' => null, + 'issuer_id' => 'int32', + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'federal_efile' => null, + 'federal_efile_status' => null, + 'state_efile' => null, + 'state_efile_status' => null, + 'postal_mail' => null, + 'postal_mail_status' => null, + 'tin_match' => null, + 'tin_match_status' => null, + 'address_verification' => null, + 'address_verification_status' => null, + 'reference_id' => null, + 'email' => null, + 'tin_type' => null, + 'tin' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'foreign_province' => null, + 'country_code' => null, + 'validation_errors' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'state_and_local_withholding' => null, + 'filer_type' => null, + 'payment_type' => null, + 'payment_settlement_entity_name_phone_number' => null, + 'gross_amount_payment_card' => 'double', + 'card_not_present_transactions' => 'double', + 'merchant_category_code' => null, + 'payment_transaction_number' => 'double', + 'federal_income_tax_withheld' => 'double', + 'january' => 'double', + 'february' => 'double', + 'march' => 'double', + 'april' => 'double', + 'may' => 'double', + 'june' => 'double', + 'july' => 'double', + 'august' => 'double', + 'sept' => 'double', + 'october' => 'double', + 'november' => 'double', + 'december' => 'double', + 'rents' => 'double', + 'royalties' => 'double', + 'other_income' => 'double', + 'fed_income_tax_withheld' => 'double', + 'fishing_boat_proceeds' => 'double', + 'medical_and_health_care' => 'double', + 'nonemployee_compensation' => 'double', + 'substitute_payments' => 'double', + 'direct_sales_indicator' => null, + 'crop_insurance_proceeds' => 'double', + 'excess_golden_parachute' => 'double', + 'gross_amount_paid_attorney' => 'double', + 'section409_a_deferrals' => 'double', + 'section409_a_income' => 'double', + 'gross_distributions' => 'double', + 'taxable_amount' => 'double', + 'taxable_amount_not_determined' => null, + 'total_distribution_indicator' => null, + 'capital_gain' => 'double', + 'employee_contributions' => 'double', + 'net_unrealized_appreciation' => 'double', + 'distribution_code_required' => null, + 'distribution_code_optional' => null, + 'ira_sep_simple_indicator' => null, + 'total_ira_sep_simple_distribution' => 'double', + 'other' => 'double', + 'other_percent' => null, + 'percentage_total_distribution' => null, + 'total_employee_contributions' => 'double', + 'amount_allocable_to_irr' => 'double', + 'first_year_designated_roth_contrib' => null, + 'fatca_requirement_indicator' => null, + 'date_of_payment' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', + 'covered_individuals' => 'coveredIndividuals', + 'id' => 'id', + 'type' => 'type', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'federal_efile' => 'federalEfile', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile' => 'stateEfile', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail' => 'postalMail', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match' => 'tinMatch', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification' => 'addressVerification', + 'address_verification_status' => 'addressVerificationStatus', + 'reference_id' => 'referenceId', + 'email' => 'email', + 'tin_type' => 'tinType', + 'tin' => 'tin', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'foreign_province' => 'foreignProvince', + 'country_code' => 'countryCode', + 'validation_errors' => 'validationErrors', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'filer_type' => 'filerType', + 'payment_type' => 'paymentType', + 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'grossAmountPaymentCard', + 'card_not_present_transactions' => 'cardNotPresentTransactions', + 'merchant_category_code' => 'merchantCategoryCode', + 'payment_transaction_number' => 'paymentTransactionNumber', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'january' => 'january', + 'february' => 'february', + 'march' => 'march', + 'april' => 'april', + 'may' => 'may', + 'june' => 'june', + 'july' => 'july', + 'august' => 'august', + 'sept' => 'sept', + 'october' => 'october', + 'november' => 'november', + 'december' => 'december', + 'rents' => 'rents', + 'royalties' => 'royalties', + 'other_income' => 'otherIncome', + 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'fishingBoatProceeds', + 'medical_and_health_care' => 'medicalAndHealthCare', + 'nonemployee_compensation' => 'nonemployeeCompensation', + 'substitute_payments' => 'substitutePayments', + 'direct_sales_indicator' => 'directSalesIndicator', + 'crop_insurance_proceeds' => 'cropInsuranceProceeds', + 'excess_golden_parachute' => 'excessGoldenParachute', + 'gross_amount_paid_attorney' => 'grossAmountPaidAttorney', + 'section409_a_deferrals' => 'section409ADeferrals', + 'section409_a_income' => 'section409AIncome', + 'gross_distributions' => 'grossDistributions', + 'taxable_amount' => 'taxableAmount', + 'taxable_amount_not_determined' => 'taxableAmountNotDetermined', + 'total_distribution_indicator' => 'totalDistributionIndicator', + 'capital_gain' => 'capitalGain', + 'employee_contributions' => 'employeeContributions', + 'net_unrealized_appreciation' => 'netUnrealizedAppreciation', + 'distribution_code_required' => 'distributionCodeRequired', + 'distribution_code_optional' => 'distributionCodeOptional', + 'ira_sep_simple_indicator' => 'iraSepSimpleIndicator', + 'total_ira_sep_simple_distribution' => 'totalIraSepSimpleDistribution', + 'other' => 'other', + 'other_percent' => 'otherPercent', + 'percentage_total_distribution' => 'percentageTotalDistribution', + 'total_employee_contributions' => 'totalEmployeeContributions', + 'amount_allocable_to_irr' => 'amountAllocableToIrr', + 'first_year_designated_roth_contrib' => 'firstYearDesignatedRothContrib', + 'fatca_requirement_indicator' => 'fatcaRequirementIndicator', + 'date_of_payment' => 'dateOfPayment' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', + 'covered_individuals' => 'setCoveredIndividuals', + 'id' => 'setId', + 'type' => 'setType', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'federal_efile' => 'setFederalEfile', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile' => 'setStateEfile', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail' => 'setPostalMail', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match' => 'setTinMatch', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification' => 'setAddressVerification', + 'address_verification_status' => 'setAddressVerificationStatus', + 'reference_id' => 'setReferenceId', + 'email' => 'setEmail', + 'tin_type' => 'setTinType', + 'tin' => 'setTin', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'foreign_province' => 'setForeignProvince', + 'country_code' => 'setCountryCode', + 'validation_errors' => 'setValidationErrors', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'filer_type' => 'setFilerType', + 'payment_type' => 'setPaymentType', + 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'setGrossAmountPaymentCard', + 'card_not_present_transactions' => 'setCardNotPresentTransactions', + 'merchant_category_code' => 'setMerchantCategoryCode', + 'payment_transaction_number' => 'setPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'january' => 'setJanuary', + 'february' => 'setFebruary', + 'march' => 'setMarch', + 'april' => 'setApril', + 'may' => 'setMay', + 'june' => 'setJune', + 'july' => 'setJuly', + 'august' => 'setAugust', + 'sept' => 'setSept', + 'october' => 'setOctober', + 'november' => 'setNovember', + 'december' => 'setDecember', + 'rents' => 'setRents', + 'royalties' => 'setRoyalties', + 'other_income' => 'setOtherIncome', + 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'setFishingBoatProceeds', + 'medical_and_health_care' => 'setMedicalAndHealthCare', + 'nonemployee_compensation' => 'setNonemployeeCompensation', + 'substitute_payments' => 'setSubstitutePayments', + 'direct_sales_indicator' => 'setDirectSalesIndicator', + 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', + 'excess_golden_parachute' => 'setExcessGoldenParachute', + 'gross_amount_paid_attorney' => 'setGrossAmountPaidAttorney', + 'section409_a_deferrals' => 'setSection409ADeferrals', + 'section409_a_income' => 'setSection409AIncome', + 'gross_distributions' => 'setGrossDistributions', + 'taxable_amount' => 'setTaxableAmount', + 'taxable_amount_not_determined' => 'setTaxableAmountNotDetermined', + 'total_distribution_indicator' => 'setTotalDistributionIndicator', + 'capital_gain' => 'setCapitalGain', + 'employee_contributions' => 'setEmployeeContributions', + 'net_unrealized_appreciation' => 'setNetUnrealizedAppreciation', + 'distribution_code_required' => 'setDistributionCodeRequired', + 'distribution_code_optional' => 'setDistributionCodeOptional', + 'ira_sep_simple_indicator' => 'setIraSepSimpleIndicator', + 'total_ira_sep_simple_distribution' => 'setTotalIraSepSimpleDistribution', + 'other' => 'setOther', + 'other_percent' => 'setOtherPercent', + 'percentage_total_distribution' => 'setPercentageTotalDistribution', + 'total_employee_contributions' => 'setTotalEmployeeContributions', + 'amount_allocable_to_irr' => 'setAmountAllocableToIrr', + 'first_year_designated_roth_contrib' => 'setFirstYearDesignatedRothContrib', + 'fatca_requirement_indicator' => 'setFatcaRequirementIndicator', + 'date_of_payment' => 'setDateOfPayment' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', + 'covered_individuals' => 'getCoveredIndividuals', + 'id' => 'getId', + 'type' => 'getType', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'federal_efile' => 'getFederalEfile', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile' => 'getStateEfile', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail' => 'getPostalMail', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match' => 'getTinMatch', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification' => 'getAddressVerification', + 'address_verification_status' => 'getAddressVerificationStatus', + 'reference_id' => 'getReferenceId', + 'email' => 'getEmail', + 'tin_type' => 'getTinType', + 'tin' => 'getTin', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'foreign_province' => 'getForeignProvince', + 'country_code' => 'getCountryCode', + 'validation_errors' => 'getValidationErrors', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'filer_type' => 'getFilerType', + 'payment_type' => 'getPaymentType', + 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'getGrossAmountPaymentCard', + 'card_not_present_transactions' => 'getCardNotPresentTransactions', + 'merchant_category_code' => 'getMerchantCategoryCode', + 'payment_transaction_number' => 'getPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'january' => 'getJanuary', + 'february' => 'getFebruary', + 'march' => 'getMarch', + 'april' => 'getApril', + 'may' => 'getMay', + 'june' => 'getJune', + 'july' => 'getJuly', + 'august' => 'getAugust', + 'sept' => 'getSept', + 'october' => 'getOctober', + 'november' => 'getNovember', + 'december' => 'getDecember', + 'rents' => 'getRents', + 'royalties' => 'getRoyalties', + 'other_income' => 'getOtherIncome', + 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'getFishingBoatProceeds', + 'medical_and_health_care' => 'getMedicalAndHealthCare', + 'nonemployee_compensation' => 'getNonemployeeCompensation', + 'substitute_payments' => 'getSubstitutePayments', + 'direct_sales_indicator' => 'getDirectSalesIndicator', + 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', + 'excess_golden_parachute' => 'getExcessGoldenParachute', + 'gross_amount_paid_attorney' => 'getGrossAmountPaidAttorney', + 'section409_a_deferrals' => 'getSection409ADeferrals', + 'section409_a_income' => 'getSection409AIncome', + 'gross_distributions' => 'getGrossDistributions', + 'taxable_amount' => 'getTaxableAmount', + 'taxable_amount_not_determined' => 'getTaxableAmountNotDetermined', + 'total_distribution_indicator' => 'getTotalDistributionIndicator', + 'capital_gain' => 'getCapitalGain', + 'employee_contributions' => 'getEmployeeContributions', + 'net_unrealized_appreciation' => 'getNetUnrealizedAppreciation', + 'distribution_code_required' => 'getDistributionCodeRequired', + 'distribution_code_optional' => 'getDistributionCodeOptional', + 'ira_sep_simple_indicator' => 'getIraSepSimpleIndicator', + 'total_ira_sep_simple_distribution' => 'getTotalIraSepSimpleDistribution', + 'other' => 'getOther', + 'other_percent' => 'getOtherPercent', + 'percentage_total_distribution' => 'getPercentageTotalDistribution', + 'total_employee_contributions' => 'getTotalEmployeeContributions', + 'amount_allocable_to_irr' => 'getAmountAllocableToIrr', + 'first_year_designated_roth_contrib' => 'getFirstYearDesignatedRothContrib', + 'fatca_requirement_indicator' => 'getFatcaRequirementIndicator', + 'date_of_payment' => 'getDateOfPayment' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; + $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['federal_efile'] = $data['federal_efile'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile'] = $data['state_efile'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['tin'] = $data['tin'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['filer_type'] = $data['filer_type'] ?? null; + $this->container['payment_type'] = $data['payment_type'] ?? null; + $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; + $this->container['gross_amount_payment_card'] = $data['gross_amount_payment_card'] ?? null; + $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; + $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; + $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['january'] = $data['january'] ?? null; + $this->container['february'] = $data['february'] ?? null; + $this->container['march'] = $data['march'] ?? null; + $this->container['april'] = $data['april'] ?? null; + $this->container['may'] = $data['may'] ?? null; + $this->container['june'] = $data['june'] ?? null; + $this->container['july'] = $data['july'] ?? null; + $this->container['august'] = $data['august'] ?? null; + $this->container['sept'] = $data['sept'] ?? null; + $this->container['october'] = $data['october'] ?? null; + $this->container['november'] = $data['november'] ?? null; + $this->container['december'] = $data['december'] ?? null; + $this->container['rents'] = $data['rents'] ?? null; + $this->container['royalties'] = $data['royalties'] ?? null; + $this->container['other_income'] = $data['other_income'] ?? null; + $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; + $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; + $this->container['medical_and_health_care'] = $data['medical_and_health_care'] ?? null; + $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; + $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; + $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; + $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; + $this->container['excess_golden_parachute'] = $data['excess_golden_parachute'] ?? null; + $this->container['gross_amount_paid_attorney'] = $data['gross_amount_paid_attorney'] ?? null; + $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; + $this->container['section409_a_income'] = $data['section409_a_income'] ?? null; + $this->container['gross_distributions'] = $data['gross_distributions'] ?? null; + $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; + $this->container['taxable_amount_not_determined'] = $data['taxable_amount_not_determined'] ?? null; + $this->container['total_distribution_indicator'] = $data['total_distribution_indicator'] ?? null; + $this->container['capital_gain'] = $data['capital_gain'] ?? null; + $this->container['employee_contributions'] = $data['employee_contributions'] ?? null; + $this->container['net_unrealized_appreciation'] = $data['net_unrealized_appreciation'] ?? null; + $this->container['distribution_code_required'] = $data['distribution_code_required'] ?? null; + $this->container['distribution_code_optional'] = $data['distribution_code_optional'] ?? null; + $this->container['ira_sep_simple_indicator'] = $data['ira_sep_simple_indicator'] ?? null; + $this->container['total_ira_sep_simple_distribution'] = $data['total_ira_sep_simple_distribution'] ?? null; + $this->container['other'] = $data['other'] ?? null; + $this->container['other_percent'] = $data['other_percent'] ?? null; + $this->container['percentage_total_distribution'] = $data['percentage_total_distribution'] ?? null; + $this->container['total_employee_contributions'] = $data['total_employee_contributions'] ?? null; + $this->container['amount_allocable_to_irr'] = $data['amount_allocable_to_irr'] ?? null; + $this->container['first_year_designated_roth_contrib'] = $data['first_year_designated_roth_contrib'] ?? null; + $this->container['fatca_requirement_indicator'] = $data['fatca_requirement_indicator'] ?? null; + $this->container['date_of_payment'] = $data['date_of_payment'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets origin_of_health_coverage_code + * + * @return string|null + */ + public function getOriginOfHealthCoverageCode() + { + return $this->container['origin_of_health_coverage_code']; + } + + /** + * Sets origin_of_health_coverage_code + * + * @param string|null $origin_of_health_coverage_code origin_of_health_coverage_code + * + * @return self + */ + public function setOriginOfHealthCoverageCode($origin_of_health_coverage_code) + { + $this->container['origin_of_health_coverage_code'] = $origin_of_health_coverage_code; + + return $this; + } + + /** + * Gets covered_individuals + * + * @return \Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]|null + */ + public function getCoveredIndividuals() + { + return $this->container['covered_individuals']; + } + + /** + * Sets covered_individuals + * + * @param \Avalara\SDK\Model\A1099\V2\CoveredIndividualReference[]|null $covered_individuals covered_individuals + * + * @return self + */ + public function setCoveredIndividuals($covered_individuals) + { + + + $this->container['covered_individuals'] = $covered_individuals; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets issuer_id + * + * @return int|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param int|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets federal_efile + * + * @return bool|null + */ + public function getFederalEfile() + { + return $this->container['federal_efile']; + } + + /** + * Sets federal_efile + * + * @param bool|null $federal_efile federal_efile + * + * @return self + */ + public function setFederalEfile($federal_efile) + { + $this->container['federal_efile'] = $federal_efile; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile + * + * @return bool|null + */ + public function getStateEfile() + { + return $this->container['state_efile']; + } + + /** + * Sets state_efile + * + * @param bool|null $state_efile state_efile + * + * @return self + */ + public function setStateEfile($state_efile) + { + $this->container['state_efile'] = $state_efile; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetail[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email email + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets tin + * + * @return string|null + */ + public function getTin() + { + return $this->container['tin']; + } + + /** + * Sets tin + * + * @param string|null $tin tin + * + * @return self + */ + public function setTin($tin) + { + $this->container['tin'] = $tin; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets foreign_province + * + * @return string|null + */ + public function getForeignProvince() + { + return $this->container['foreign_province']; + } + + /** + * Sets foreign_province + * + * @param string|null $foreign_province foreign_province + * + * @return self + */ + public function setForeignProvince($foreign_province) + { + $this->container['foreign_province'] = $foreign_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationError[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationError[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholding|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets filer_type + * + * @return string|null + */ + public function getFilerType() + { + return $this->container['filer_type']; + } + + /** + * Sets filer_type + * + * @param string|null $filer_type filer_type + * + * @return self + */ + public function setFilerType($filer_type) + { + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['filer_type'] = $filer_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string|null + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string|null $payment_type payment_type + * + * @return self + */ + public function setPaymentType($payment_type) + { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets payment_settlement_entity_name_phone_number + * + * @return string|null + */ + public function getPaymentSettlementEntityNamePhoneNumber() + { + return $this->container['payment_settlement_entity_name_phone_number']; + } + + /** + * Sets payment_settlement_entity_name_phone_number + * + * @param string|null $payment_settlement_entity_name_phone_number payment_settlement_entity_name_phone_number + * + * @return self + */ + public function setPaymentSettlementEntityNamePhoneNumber($payment_settlement_entity_name_phone_number) + { + $this->container['payment_settlement_entity_name_phone_number'] = $payment_settlement_entity_name_phone_number; + + return $this; + } + + /** + * Gets gross_amount_payment_card + * + * @return float|null + */ + public function getGrossAmountPaymentCard() + { + return $this->container['gross_amount_payment_card']; + } + + /** + * Sets gross_amount_payment_card + * + * @param float|null $gross_amount_payment_card gross_amount_payment_card + * + * @return self + */ + public function setGrossAmountPaymentCard($gross_amount_payment_card) + { + $this->container['gross_amount_payment_card'] = $gross_amount_payment_card; + + return $this; + } + + /** + * Gets card_not_present_transactions + * + * @return float|null + */ + public function getCardNotPresentTransactions() + { + return $this->container['card_not_present_transactions']; + } + + /** + * Sets card_not_present_transactions + * + * @param float|null $card_not_present_transactions card_not_present_transactions + * + * @return self + */ + public function setCardNotPresentTransactions($card_not_present_transactions) + { + $this->container['card_not_present_transactions'] = $card_not_present_transactions; + + return $this; + } + + /** + * Gets merchant_category_code + * + * @return string|null + */ + public function getMerchantCategoryCode() + { + return $this->container['merchant_category_code']; + } + + /** + * Sets merchant_category_code + * + * @param string|null $merchant_category_code merchant_category_code + * + * @return self + */ + public function setMerchantCategoryCode($merchant_category_code) + { + $this->container['merchant_category_code'] = $merchant_category_code; + + return $this; + } + + /** + * Gets payment_transaction_number + * + * @return float|null + */ + public function getPaymentTransactionNumber() + { + return $this->container['payment_transaction_number']; + } + + /** + * Sets payment_transaction_number + * + * @param float|null $payment_transaction_number payment_transaction_number + * + * @return self + */ + public function setPaymentTransactionNumber($payment_transaction_number) + { + $this->container['payment_transaction_number'] = $payment_transaction_number; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld federal_income_tax_withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets january + * + * @return float|null + */ + public function getJanuary() + { + return $this->container['january']; + } + + /** + * Sets january + * + * @param float|null $january january + * + * @return self + */ + public function setJanuary($january) + { + $this->container['january'] = $january; + + return $this; + } + + /** + * Gets february + * + * @return float|null + */ + public function getFebruary() + { + return $this->container['february']; + } + + /** + * Sets february + * + * @param float|null $february february + * + * @return self + */ + public function setFebruary($february) + { + $this->container['february'] = $february; + + return $this; + } + + /** + * Gets march + * + * @return float|null + */ + public function getMarch() + { + return $this->container['march']; + } + + /** + * Sets march + * + * @param float|null $march march + * + * @return self + */ + public function setMarch($march) + { + $this->container['march'] = $march; + + return $this; + } + + /** + * Gets april + * + * @return float|null + */ + public function getApril() + { + return $this->container['april']; + } + + /** + * Sets april + * + * @param float|null $april april + * + * @return self + */ + public function setApril($april) + { + $this->container['april'] = $april; + + return $this; + } + + /** + * Gets may + * + * @return float|null + */ + public function getMay() + { + return $this->container['may']; + } + + /** + * Sets may + * + * @param float|null $may may + * + * @return self + */ + public function setMay($may) + { + $this->container['may'] = $may; + + return $this; + } + + /** + * Gets june + * + * @return float|null + */ + public function getJune() + { + return $this->container['june']; + } + + /** + * Sets june + * + * @param float|null $june june + * + * @return self + */ + public function setJune($june) + { + $this->container['june'] = $june; + + return $this; + } + + /** + * Gets july + * + * @return float|null + */ + public function getJuly() + { + return $this->container['july']; + } + + /** + * Sets july + * + * @param float|null $july july + * + * @return self + */ + public function setJuly($july) + { + $this->container['july'] = $july; + + return $this; + } + + /** + * Gets august + * + * @return float|null + */ + public function getAugust() + { + return $this->container['august']; + } + + /** + * Sets august + * + * @param float|null $august august + * + * @return self + */ + public function setAugust($august) + { + $this->container['august'] = $august; + + return $this; + } + + /** + * Gets sept + * + * @return float|null + */ + public function getSept() + { + return $this->container['sept']; + } + + /** + * Sets sept + * + * @param float|null $sept sept + * + * @return self + */ + public function setSept($sept) + { + $this->container['sept'] = $sept; + + return $this; + } + + /** + * Gets october + * + * @return float|null + */ + public function getOctober() + { + return $this->container['october']; + } + + /** + * Sets october + * + * @param float|null $october october + * + * @return self + */ + public function setOctober($october) + { + $this->container['october'] = $october; + + return $this; + } + + /** + * Gets november + * + * @return float|null + */ + public function getNovember() + { + return $this->container['november']; + } + + /** + * Sets november + * + * @param float|null $november november + * + * @return self + */ + public function setNovember($november) + { + $this->container['november'] = $november; + + return $this; + } + + /** + * Gets december + * + * @return float|null + */ + public function getDecember() + { + return $this->container['december']; + } + + /** + * Sets december + * + * @param float|null $december december + * + * @return self + */ + public function setDecember($december) + { + $this->container['december'] = $december; + + return $this; + } + + /** + * Gets rents + * + * @return float|null + */ + public function getRents() + { + return $this->container['rents']; + } + + /** + * Sets rents + * + * @param float|null $rents rents + * + * @return self + */ + public function setRents($rents) + { + $this->container['rents'] = $rents; + + return $this; + } + + /** + * Gets royalties + * + * @return float|null + */ + public function getRoyalties() + { + return $this->container['royalties']; + } + + /** + * Sets royalties + * + * @param float|null $royalties royalties + * + * @return self + */ + public function setRoyalties($royalties) + { + $this->container['royalties'] = $royalties; + + return $this; + } + + /** + * Gets other_income + * + * @return float|null + */ + public function getOtherIncome() + { + return $this->container['other_income']; + } + + /** + * Sets other_income + * + * @param float|null $other_income other_income + * + * @return self + */ + public function setOtherIncome($other_income) + { + $this->container['other_income'] = $other_income; + + return $this; + } + + /** + * Gets fed_income_tax_withheld + * + * @return float|null + */ + public function getFedIncomeTaxWithheld() + { + return $this->container['fed_income_tax_withheld']; + } + + /** + * Sets fed_income_tax_withheld + * + * @param float|null $fed_income_tax_withheld fed_income_tax_withheld + * + * @return self + */ + public function setFedIncomeTaxWithheld($fed_income_tax_withheld) + { + $this->container['fed_income_tax_withheld'] = $fed_income_tax_withheld; + + return $this; + } + + /** + * Gets fishing_boat_proceeds + * + * @return float|null + */ + public function getFishingBoatProceeds() + { + return $this->container['fishing_boat_proceeds']; + } + + /** + * Sets fishing_boat_proceeds + * + * @param float|null $fishing_boat_proceeds fishing_boat_proceeds + * + * @return self + */ + public function setFishingBoatProceeds($fishing_boat_proceeds) + { + $this->container['fishing_boat_proceeds'] = $fishing_boat_proceeds; + + return $this; + } + + /** + * Gets medical_and_health_care + * + * @return float|null + */ + public function getMedicalAndHealthCare() + { + return $this->container['medical_and_health_care']; + } + + /** + * Sets medical_and_health_care + * + * @param float|null $medical_and_health_care medical_and_health_care + * + * @return self + */ + public function setMedicalAndHealthCare($medical_and_health_care) + { + $this->container['medical_and_health_care'] = $medical_and_health_care; + + return $this; + } + + /** + * Gets nonemployee_compensation + * + * @return float|null + */ + public function getNonemployeeCompensation() + { + return $this->container['nonemployee_compensation']; + } + + /** + * Sets nonemployee_compensation + * + * @param float|null $nonemployee_compensation nonemployee_compensation + * + * @return self + */ + public function setNonemployeeCompensation($nonemployee_compensation) + { + $this->container['nonemployee_compensation'] = $nonemployee_compensation; + + return $this; + } + + /** + * Gets substitute_payments + * + * @return float|null + */ + public function getSubstitutePayments() + { + return $this->container['substitute_payments']; + } + + /** + * Sets substitute_payments + * + * @param float|null $substitute_payments substitute_payments + * + * @return self + */ + public function setSubstitutePayments($substitute_payments) + { + $this->container['substitute_payments'] = $substitute_payments; + + return $this; + } + + /** + * Gets direct_sales_indicator + * + * @return bool|null + */ + public function getDirectSalesIndicator() + { + return $this->container['direct_sales_indicator']; + } + + /** + * Sets direct_sales_indicator + * + * @param bool|null $direct_sales_indicator direct_sales_indicator + * + * @return self + */ + public function setDirectSalesIndicator($direct_sales_indicator) + { + $this->container['direct_sales_indicator'] = $direct_sales_indicator; + + return $this; + } + + /** + * Gets crop_insurance_proceeds + * + * @return float|null + */ + public function getCropInsuranceProceeds() + { + return $this->container['crop_insurance_proceeds']; + } + + /** + * Sets crop_insurance_proceeds + * + * @param float|null $crop_insurance_proceeds crop_insurance_proceeds + * + * @return self + */ + public function setCropInsuranceProceeds($crop_insurance_proceeds) + { + $this->container['crop_insurance_proceeds'] = $crop_insurance_proceeds; + + return $this; + } + + /** + * Gets excess_golden_parachute + * + * @return float|null + */ + public function getExcessGoldenParachute() + { + return $this->container['excess_golden_parachute']; + } + + /** + * Sets excess_golden_parachute + * + * @param float|null $excess_golden_parachute excess_golden_parachute + * + * @return self + */ + public function setExcessGoldenParachute($excess_golden_parachute) + { + $this->container['excess_golden_parachute'] = $excess_golden_parachute; + + return $this; + } + + /** + * Gets gross_amount_paid_attorney + * + * @return float|null + */ + public function getGrossAmountPaidAttorney() + { + return $this->container['gross_amount_paid_attorney']; + } + + /** + * Sets gross_amount_paid_attorney + * + * @param float|null $gross_amount_paid_attorney gross_amount_paid_attorney + * + * @return self + */ + public function setGrossAmountPaidAttorney($gross_amount_paid_attorney) + { + $this->container['gross_amount_paid_attorney'] = $gross_amount_paid_attorney; + + return $this; + } + + /** + * Gets section409_a_deferrals + * + * @return float|null + */ + public function getSection409ADeferrals() + { + return $this->container['section409_a_deferrals']; + } + + /** + * Sets section409_a_deferrals + * + * @param float|null $section409_a_deferrals section409_a_deferrals + * + * @return self + */ + public function setSection409ADeferrals($section409_a_deferrals) + { + $this->container['section409_a_deferrals'] = $section409_a_deferrals; + + return $this; + } + + /** + * Gets section409_a_income + * + * @return float|null + */ + public function getSection409AIncome() + { + return $this->container['section409_a_income']; + } + + /** + * Sets section409_a_income + * + * @param float|null $section409_a_income section409_a_income + * + * @return self + */ + public function setSection409AIncome($section409_a_income) + { + $this->container['section409_a_income'] = $section409_a_income; + + return $this; + } + + /** + * Gets gross_distributions + * + * @return float|null + */ + public function getGrossDistributions() + { + return $this->container['gross_distributions']; + } + + /** + * Sets gross_distributions + * + * @param float|null $gross_distributions gross_distributions + * + * @return self + */ + public function setGrossDistributions($gross_distributions) + { + $this->container['gross_distributions'] = $gross_distributions; + + return $this; + } + + /** + * Gets taxable_amount + * + * @return float|null + */ + public function getTaxableAmount() + { + return $this->container['taxable_amount']; + } + + /** + * Sets taxable_amount + * + * @param float|null $taxable_amount taxable_amount + * + * @return self + */ + public function setTaxableAmount($taxable_amount) + { + $this->container['taxable_amount'] = $taxable_amount; + + return $this; + } + + /** + * Gets taxable_amount_not_determined + * + * @return bool|null + */ + public function getTaxableAmountNotDetermined() + { + return $this->container['taxable_amount_not_determined']; + } + + /** + * Sets taxable_amount_not_determined + * + * @param bool|null $taxable_amount_not_determined taxable_amount_not_determined + * + * @return self + */ + public function setTaxableAmountNotDetermined($taxable_amount_not_determined) + { + $this->container['taxable_amount_not_determined'] = $taxable_amount_not_determined; + + return $this; + } + + /** + * Gets total_distribution_indicator + * + * @return bool|null + */ + public function getTotalDistributionIndicator() + { + return $this->container['total_distribution_indicator']; + } + + /** + * Sets total_distribution_indicator + * + * @param bool|null $total_distribution_indicator total_distribution_indicator + * + * @return self + */ + public function setTotalDistributionIndicator($total_distribution_indicator) + { + $this->container['total_distribution_indicator'] = $total_distribution_indicator; + + return $this; + } + + /** + * Gets capital_gain + * + * @return float|null + */ + public function getCapitalGain() + { + return $this->container['capital_gain']; + } + + /** + * Sets capital_gain + * + * @param float|null $capital_gain capital_gain + * + * @return self + */ + public function setCapitalGain($capital_gain) + { + $this->container['capital_gain'] = $capital_gain; + + return $this; + } + + /** + * Gets employee_contributions + * + * @return float|null + */ + public function getEmployeeContributions() + { + return $this->container['employee_contributions']; + } + + /** + * Sets employee_contributions + * + * @param float|null $employee_contributions employee_contributions + * + * @return self + */ + public function setEmployeeContributions($employee_contributions) + { + $this->container['employee_contributions'] = $employee_contributions; + + return $this; + } + + /** + * Gets net_unrealized_appreciation + * + * @return float|null + */ + public function getNetUnrealizedAppreciation() + { + return $this->container['net_unrealized_appreciation']; + } + + /** + * Sets net_unrealized_appreciation + * + * @param float|null $net_unrealized_appreciation net_unrealized_appreciation + * + * @return self + */ + public function setNetUnrealizedAppreciation($net_unrealized_appreciation) + { + $this->container['net_unrealized_appreciation'] = $net_unrealized_appreciation; + + return $this; + } + + /** + * Gets distribution_code_required + * + * @return string|null + */ + public function getDistributionCodeRequired() + { + return $this->container['distribution_code_required']; + } + + /** + * Sets distribution_code_required + * + * @param string|null $distribution_code_required distribution_code_required + * + * @return self + */ + public function setDistributionCodeRequired($distribution_code_required) + { + $this->container['distribution_code_required'] = $distribution_code_required; + + return $this; + } + + /** + * Gets distribution_code_optional + * + * @return string|null + */ + public function getDistributionCodeOptional() + { + return $this->container['distribution_code_optional']; + } + + /** + * Sets distribution_code_optional + * + * @param string|null $distribution_code_optional distribution_code_optional + * + * @return self + */ + public function setDistributionCodeOptional($distribution_code_optional) + { + $this->container['distribution_code_optional'] = $distribution_code_optional; + + return $this; + } + + /** + * Gets ira_sep_simple_indicator + * + * @return bool|null + */ + public function getIraSepSimpleIndicator() + { + return $this->container['ira_sep_simple_indicator']; + } + + /** + * Sets ira_sep_simple_indicator + * + * @param bool|null $ira_sep_simple_indicator ira_sep_simple_indicator + * + * @return self + */ + public function setIraSepSimpleIndicator($ira_sep_simple_indicator) + { + $this->container['ira_sep_simple_indicator'] = $ira_sep_simple_indicator; + + return $this; + } + + /** + * Gets total_ira_sep_simple_distribution + * + * @return float|null + */ + public function getTotalIraSepSimpleDistribution() + { + return $this->container['total_ira_sep_simple_distribution']; + } + + /** + * Sets total_ira_sep_simple_distribution + * + * @param float|null $total_ira_sep_simple_distribution total_ira_sep_simple_distribution + * + * @return self + */ + public function setTotalIraSepSimpleDistribution($total_ira_sep_simple_distribution) + { + $this->container['total_ira_sep_simple_distribution'] = $total_ira_sep_simple_distribution; + + return $this; + } + + /** + * Gets other + * + * @return float|null + */ + public function getOther() + { + return $this->container['other']; + } + + /** + * Sets other + * + * @param float|null $other other + * + * @return self + */ + public function setOther($other) + { + $this->container['other'] = $other; + + return $this; + } + + /** + * Gets other_percent + * + * @return string|null + */ + public function getOtherPercent() + { + return $this->container['other_percent']; + } + + /** + * Sets other_percent + * + * @param string|null $other_percent other_percent + * + * @return self + */ + public function setOtherPercent($other_percent) + { + $this->container['other_percent'] = $other_percent; + + return $this; + } + + /** + * Gets percentage_total_distribution + * + * @return string|null + */ + public function getPercentageTotalDistribution() + { + return $this->container['percentage_total_distribution']; + } + + /** + * Sets percentage_total_distribution + * + * @param string|null $percentage_total_distribution percentage_total_distribution + * + * @return self + */ + public function setPercentageTotalDistribution($percentage_total_distribution) + { + $this->container['percentage_total_distribution'] = $percentage_total_distribution; + + return $this; + } + + /** + * Gets total_employee_contributions + * + * @return float|null + */ + public function getTotalEmployeeContributions() + { + return $this->container['total_employee_contributions']; + } + + /** + * Sets total_employee_contributions + * + * @param float|null $total_employee_contributions total_employee_contributions + * + * @return self + */ + public function setTotalEmployeeContributions($total_employee_contributions) + { + $this->container['total_employee_contributions'] = $total_employee_contributions; + + return $this; + } + + /** + * Gets amount_allocable_to_irr + * + * @return float|null + */ + public function getAmountAllocableToIrr() + { + return $this->container['amount_allocable_to_irr']; + } + + /** + * Sets amount_allocable_to_irr + * + * @param float|null $amount_allocable_to_irr amount_allocable_to_irr + * + * @return self + */ + public function setAmountAllocableToIrr($amount_allocable_to_irr) + { + $this->container['amount_allocable_to_irr'] = $amount_allocable_to_irr; + + return $this; + } + + /** + * Gets first_year_designated_roth_contrib + * + * @return string|null + */ + public function getFirstYearDesignatedRothContrib() + { + return $this->container['first_year_designated_roth_contrib']; + } + + /** + * Sets first_year_designated_roth_contrib + * + * @param string|null $first_year_designated_roth_contrib first_year_designated_roth_contrib + * + * @return self + */ + public function setFirstYearDesignatedRothContrib($first_year_designated_roth_contrib) + { + $this->container['first_year_designated_roth_contrib'] = $first_year_designated_roth_contrib; + + return $this; + } + + /** + * Gets fatca_requirement_indicator + * + * @return bool|null + */ + public function getFatcaRequirementIndicator() + { + return $this->container['fatca_requirement_indicator']; + } + + /** + * Sets fatca_requirement_indicator + * + * @param bool|null $fatca_requirement_indicator fatca_requirement_indicator + * + * @return self + */ + public function setFatcaRequirementIndicator($fatca_requirement_indicator) + { + $this->container['fatca_requirement_indicator'] = $fatca_requirement_indicator; + + return $this; + } + + /** + * Gets date_of_payment + * + * @return string|null + */ + public function getDateOfPayment() + { + return $this->container['date_of_payment']; + } + + /** + * Sets date_of_payment + * + * @param string|null $date_of_payment date_of_payment + * + * @return self + */ + public function setDateOfPayment($date_of_payment) + { + $this->container['date_of_payment'] = $date_of_payment; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/ICreateForm1099Request.php b/lib/Model/A1099/V2/ICreateForm1099Request.php index 4f2eb14..98ac9b3 100644 --- a/lib/Model/A1099/V2/ICreateForm1099Request.php +++ b/lib/Model/A1099/V2/ICreateForm1099Request.php @@ -90,19 +90,15 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', 'fatca_filing_requirement' => 'bool', - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -116,6 +112,7 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'state_e_file' => 'bool', 'tin_match' => 'bool', 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', @@ -161,19 +158,15 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'exempt_interest_dividends' => null, 'specified_private_activity_bond_interest_dividends' => null, 'fatca_filing_requirement' => null, - 'state_and_local_withholding' => null, 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -187,6 +180,7 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'state_e_file' => null, 'tin_match' => null, 'address_verification' => null, + 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', @@ -251,19 +245,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'exemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'fatcaFilingRequirement', - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -277,6 +267,7 @@ public static function openAPIFormats() 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', @@ -320,19 +311,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'setExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'setFatcaFilingRequirement', - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -346,6 +333,7 @@ public static function openAPIFormats() 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', @@ -389,19 +377,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'getExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'getFatcaFilingRequirement', - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -415,6 +399,7 @@ public static function openAPIFormats() 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', @@ -474,6 +459,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -509,19 +536,15 @@ public function __construct(array $data = null) $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -535,6 +558,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; @@ -562,6 +586,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -1033,30 +1075,6 @@ public function setFatcaFilingRequirement($fatca_filing_requirement) return $this; } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets type * @@ -1076,6 +1094,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -1105,78 +1133,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1252,7 +1208,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1262,12 +1218,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1298,49 +1264,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1657,6 +1623,30 @@ public function setAddressVerification($address_verification) return $this; } + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** * Gets second_tin_notice * diff --git a/lib/Model/A1099/V2/IUpdateForm1099Request.php b/lib/Model/A1099/V2/IUpdateForm1099Request.php index 3261f30..b35eb7e 100644 --- a/lib/Model/A1099/V2/IUpdateForm1099Request.php +++ b/lib/Model/A1099/V2/IUpdateForm1099Request.php @@ -90,19 +90,15 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', 'fatca_filing_requirement' => 'bool', - 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'type' => 'string', 'issuer_id' => 'string', - 'issuer_reference_id' => 'string', - 'issuer_tin' => 'string', - 'tax_year' => 'int', 'reference_id' => 'string', 'recipient_name' => 'string', 'recipient_tin' => 'string', - 'tin_type' => 'int', + 'tin_type' => 'string', 'recipient_second_name' => 'string', - 'street_address' => 'string', - 'street_address_line2' => 'string', + 'address' => 'string', + 'address2' => 'string', 'city' => 'string', 'state' => 'string', 'zip' => 'string', @@ -116,6 +112,7 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'state_e_file' => 'bool', 'tin_match' => 'bool', 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', @@ -161,19 +158,15 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'exempt_interest_dividends' => null, 'specified_private_activity_bond_interest_dividends' => null, 'fatca_filing_requirement' => null, - 'state_and_local_withholding' => null, 'type' => null, 'issuer_id' => null, - 'issuer_reference_id' => null, - 'issuer_tin' => null, - 'tax_year' => 'int32', 'reference_id' => null, 'recipient_name' => null, 'recipient_tin' => null, - 'tin_type' => 'int32', + 'tin_type' => null, 'recipient_second_name' => null, - 'street_address' => null, - 'street_address_line2' => null, + 'address' => null, + 'address2' => null, 'city' => null, 'state' => null, 'zip' => null, @@ -187,6 +180,7 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'state_e_file' => null, 'tin_match' => null, 'address_verification' => null, + 'state_and_local_withholding' => null, 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', @@ -251,19 +245,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'exemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'fatcaFilingRequirement', - 'state_and_local_withholding' => 'stateAndLocalWithholding', 'type' => 'type', 'issuer_id' => 'issuerId', - 'issuer_reference_id' => 'issuerReferenceId', - 'issuer_tin' => 'issuerTin', - 'tax_year' => 'taxYear', 'reference_id' => 'referenceId', 'recipient_name' => 'recipientName', 'recipient_tin' => 'recipientTin', 'tin_type' => 'tinType', 'recipient_second_name' => 'recipientSecondName', - 'street_address' => 'streetAddress', - 'street_address_line2' => 'streetAddressLine2', + 'address' => 'address', + 'address2' => 'address2', 'city' => 'city', 'state' => 'state', 'zip' => 'zip', @@ -277,6 +267,7 @@ public static function openAPIFormats() 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding', 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', @@ -320,19 +311,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'setExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'setFatcaFilingRequirement', - 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'type' => 'setType', 'issuer_id' => 'setIssuerId', - 'issuer_reference_id' => 'setIssuerReferenceId', - 'issuer_tin' => 'setIssuerTin', - 'tax_year' => 'setTaxYear', 'reference_id' => 'setReferenceId', 'recipient_name' => 'setRecipientName', 'recipient_tin' => 'setRecipientTin', 'tin_type' => 'setTinType', 'recipient_second_name' => 'setRecipientSecondName', - 'street_address' => 'setStreetAddress', - 'street_address_line2' => 'setStreetAddressLine2', + 'address' => 'setAddress', + 'address2' => 'setAddress2', 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', @@ -346,6 +333,7 @@ public static function openAPIFormats() 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', @@ -389,19 +377,15 @@ public static function openAPIFormats() 'exempt_interest_dividends' => 'getExemptInterestDividends', 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'fatca_filing_requirement' => 'getFatcaFilingRequirement', - 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'type' => 'getType', 'issuer_id' => 'getIssuerId', - 'issuer_reference_id' => 'getIssuerReferenceId', - 'issuer_tin' => 'getIssuerTin', - 'tax_year' => 'getTaxYear', 'reference_id' => 'getReferenceId', 'recipient_name' => 'getRecipientName', 'recipient_tin' => 'getRecipientTin', 'tin_type' => 'getTinType', 'recipient_second_name' => 'getRecipientSecondName', - 'street_address' => 'getStreetAddress', - 'street_address_line2' => 'getStreetAddressLine2', + 'address' => 'getAddress', + 'address2' => 'getAddress2', 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', @@ -415,6 +399,7 @@ public static function openAPIFormats() 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', @@ -474,6 +459,48 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } /** * Associative array for storing property values @@ -509,19 +536,15 @@ public function __construct(array $data = null) $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; - $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; - $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; - $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; - $this->container['tax_year'] = $data['tax_year'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; - $this->container['street_address'] = $data['street_address'] ?? null; - $this->container['street_address_line2'] = $data['street_address_line2'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; @@ -535,6 +558,7 @@ public function __construct(array $data = null) $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; @@ -562,6 +586,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -1033,30 +1075,6 @@ public function setFatcaFilingRequirement($fatca_filing_requirement) return $this; } - /** - * Gets state_and_local_withholding - * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null - */ - public function getStateAndLocalWithholding() - { - return $this->container['state_and_local_withholding']; - } - - /** - * Sets state_and_local_withholding - * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding - * - * @return self - */ - public function setStateAndLocalWithholding($state_and_local_withholding) - { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; - - return $this; - } - /** * Gets type * @@ -1076,6 +1094,16 @@ public function getType() */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; @@ -1105,78 +1133,6 @@ public function setIssuerId($issuer_id) return $this; } - /** - * Gets issuer_reference_id - * - * @return string|null - */ - public function getIssuerReferenceId() - { - return $this->container['issuer_reference_id']; - } - - /** - * Sets issuer_reference_id - * - * @param string|null $issuer_reference_id issuer_reference_id - * - * @return self - */ - public function setIssuerReferenceId($issuer_reference_id) - { - $this->container['issuer_reference_id'] = $issuer_reference_id; - - return $this; - } - - /** - * Gets issuer_tin - * - * @return string|null - */ - public function getIssuerTin() - { - return $this->container['issuer_tin']; - } - - /** - * Sets issuer_tin - * - * @param string|null $issuer_tin issuer_tin - * - * @return self - */ - public function setIssuerTin($issuer_tin) - { - $this->container['issuer_tin'] = $issuer_tin; - - return $this; - } - - /** - * Gets tax_year - * - * @return int|null - */ - public function getTaxYear() - { - return $this->container['tax_year']; - } - - /** - * Sets tax_year - * - * @param int|null $tax_year tax_year - * - * @return self - */ - public function setTaxYear($tax_year) - { - $this->container['tax_year'] = $tax_year; - - return $this; - } - /** * Gets reference_id * @@ -1252,7 +1208,7 @@ public function setRecipientTin($recipient_tin) /** * Gets tin_type * - * @return int|null + * @return string|null */ public function getTinType() { @@ -1262,12 +1218,22 @@ public function getTinType() /** * Sets tin_type * - * @param int|null $tin_type tin_type + * @param string|null $tin_type tin_type * * @return self */ public function setTinType($tin_type) { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['tin_type'] = $tin_type; return $this; @@ -1298,49 +1264,49 @@ public function setRecipientSecondName($recipient_second_name) } /** - * Gets street_address + * Gets address * * @return string|null */ - public function getStreetAddress() + public function getAddress() { - return $this->container['street_address']; + return $this->container['address']; } /** - * Sets street_address + * Sets address * - * @param string|null $street_address street_address + * @param string|null $address address * * @return self */ - public function setStreetAddress($street_address) + public function setAddress($address) { - $this->container['street_address'] = $street_address; + $this->container['address'] = $address; return $this; } /** - * Gets street_address_line2 + * Gets address2 * * @return string|null */ - public function getStreetAddressLine2() + public function getAddress2() { - return $this->container['street_address_line2']; + return $this->container['address2']; } /** - * Sets street_address_line2 + * Sets address2 * - * @param string|null $street_address_line2 street_address_line2 + * @param string|null $address2 address2 * * @return self */ - public function setStreetAddressLine2($street_address_line2) + public function setAddress2($address2) { - $this->container['street_address_line2'] = $street_address_line2; + $this->container['address2'] = $address2; return $this; } @@ -1657,6 +1623,30 @@ public function setAddressVerification($address_verification) return $this; } + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** * Gets second_tin_notice * diff --git a/lib/Model/A1099/V2/IncludedBase.php b/lib/Model/A1099/V2/IncludedBase.php new file mode 100644 index 0000000..ef2bec8 --- /dev/null +++ b/lib/Model/A1099/V2/IncludedBase.php @@ -0,0 +1,362 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * IncludedBase Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class IncludedBase implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'IncludedBase'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'id' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/StateAndLocalWithholdingResponse.php b/lib/Model/A1099/V2/StateAndLocalWithholdingResponse.php new file mode 100644 index 0000000..46ed33d --- /dev/null +++ b/lib/Model/A1099/V2/StateAndLocalWithholdingResponse.php @@ -0,0 +1,542 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * StateAndLocalWithholdingResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class StateAndLocalWithholdingResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'StateAndLocalWithholdingResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'state_tax_withheld' => 'float', + 'state' => 'string', + 'state_id_number' => 'string', + 'state_income' => 'float', + 'local_tax_withheld' => 'float', + 'locality' => 'string', + 'locality_id_number' => 'string', + 'local_income' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'state_tax_withheld' => 'double', + 'state' => null, + 'state_id_number' => null, + 'state_income' => 'double', + 'local_tax_withheld' => 'double', + 'locality' => null, + 'locality_id_number' => null, + 'local_income' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'state_tax_withheld' => 'stateTaxWithheld', + 'state' => 'state', + 'state_id_number' => 'stateIdNumber', + 'state_income' => 'stateIncome', + 'local_tax_withheld' => 'localTaxWithheld', + 'locality' => 'locality', + 'locality_id_number' => 'localityIdNumber', + 'local_income' => 'localIncome' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'state_tax_withheld' => 'setStateTaxWithheld', + 'state' => 'setState', + 'state_id_number' => 'setStateIdNumber', + 'state_income' => 'setStateIncome', + 'local_tax_withheld' => 'setLocalTaxWithheld', + 'locality' => 'setLocality', + 'locality_id_number' => 'setLocalityIdNumber', + 'local_income' => 'setLocalIncome' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'state_tax_withheld' => 'getStateTaxWithheld', + 'state' => 'getState', + 'state_id_number' => 'getStateIdNumber', + 'state_income' => 'getStateIncome', + 'local_tax_withheld' => 'getLocalTaxWithheld', + 'locality' => 'getLocality', + 'locality_id_number' => 'getLocalityIdNumber', + 'local_income' => 'getLocalIncome' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['state_tax_withheld'] = $data['state_tax_withheld'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['state_id_number'] = $data['state_id_number'] ?? null; + $this->container['state_income'] = $data['state_income'] ?? null; + $this->container['local_tax_withheld'] = $data['local_tax_withheld'] ?? null; + $this->container['locality'] = $data['locality'] ?? null; + $this->container['locality_id_number'] = $data['locality_id_number'] ?? null; + $this->container['local_income'] = $data['local_income'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets state_tax_withheld + * + * @return float|null + */ + public function getStateTaxWithheld() + { + return $this->container['state_tax_withheld']; + } + + /** + * Sets state_tax_withheld + * + * @param float|null $state_tax_withheld state_tax_withheld + * + * @return self + */ + public function setStateTaxWithheld($state_tax_withheld) + { + $this->container['state_tax_withheld'] = $state_tax_withheld; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets state_id_number + * + * @return string|null + */ + public function getStateIdNumber() + { + return $this->container['state_id_number']; + } + + /** + * Sets state_id_number + * + * @param string|null $state_id_number state_id_number + * + * @return self + */ + public function setStateIdNumber($state_id_number) + { + $this->container['state_id_number'] = $state_id_number; + + return $this; + } + + /** + * Gets state_income + * + * @return float|null + */ + public function getStateIncome() + { + return $this->container['state_income']; + } + + /** + * Sets state_income + * + * @param float|null $state_income state_income + * + * @return self + */ + public function setStateIncome($state_income) + { + $this->container['state_income'] = $state_income; + + return $this; + } + + /** + * Gets local_tax_withheld + * + * @return float|null + */ + public function getLocalTaxWithheld() + { + return $this->container['local_tax_withheld']; + } + + /** + * Sets local_tax_withheld + * + * @param float|null $local_tax_withheld local_tax_withheld + * + * @return self + */ + public function setLocalTaxWithheld($local_tax_withheld) + { + $this->container['local_tax_withheld'] = $local_tax_withheld; + + return $this; + } + + /** + * Gets locality + * + * @return string|null + */ + public function getLocality() + { + return $this->container['locality']; + } + + /** + * Sets locality + * + * @param string|null $locality locality + * + * @return self + */ + public function setLocality($locality) + { + $this->container['locality'] = $locality; + + return $this; + } + + /** + * Gets locality_id_number + * + * @return string|null + */ + public function getLocalityIdNumber() + { + return $this->container['locality_id_number']; + } + + /** + * Sets locality_id_number + * + * @param string|null $locality_id_number locality_id_number + * + * @return self + */ + public function setLocalityIdNumber($locality_id_number) + { + $this->container['locality_id_number'] = $locality_id_number; + + return $this; + } + + /** + * Gets local_income + * + * @return float|null + */ + public function getLocalIncome() + { + return $this->container['local_income']; + } + + /** + * Sets local_income + * + * @param float|null $local_income local_income + * + * @return self + */ + public function setLocalIncome($local_income) + { + $this->container['local_income'] = $local_income; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/StateEfileStatusDetailApp.php b/lib/Model/A1099/V2/StateEfileStatusDetailApp.php new file mode 100644 index 0000000..1b5125d --- /dev/null +++ b/lib/Model/A1099/V2/StateEfileStatusDetailApp.php @@ -0,0 +1,392 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * StateEfileStatusDetailApp Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class StateEfileStatusDetailApp implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'StateEfileStatusDetailApp'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'status' => 'string', + 'time' => 'string', + 'jurisdiction' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'status' => null, + 'time' => null, + 'jurisdiction' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status', + 'time' => 'time', + 'jurisdiction' => 'jurisdiction' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'time' => 'setTime', + 'jurisdiction' => 'setJurisdiction' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'time' => 'getTime', + 'jurisdiction' => 'getJurisdiction' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = $data['status'] ?? null; + $this->container['time'] = $data['time'] ?? null; + $this->container['jurisdiction'] = $data['jurisdiction'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets time + * + * @return string|null + */ + public function getTime() + { + return $this->container['time']; + } + + /** + * Sets time + * + * @param string|null $time time + * + * @return self + */ + public function setTime($time) + { + $this->container['time'] = $time; + + return $this; + } + + /** + * Gets jurisdiction + * + * @return string|null + */ + public function getJurisdiction() + { + return $this->container['jurisdiction']; + } + + /** + * Sets jurisdiction + * + * @param string|null $jurisdiction jurisdiction + * + * @return self + */ + public function setJurisdiction($jurisdiction) + { + $this->container['jurisdiction'] = $jurisdiction; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/StatusDetail.php b/lib/Model/A1099/V2/StatusDetail.php new file mode 100644 index 0000000..37b4548 --- /dev/null +++ b/lib/Model/A1099/V2/StatusDetail.php @@ -0,0 +1,362 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * StatusDetail Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class StatusDetail implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'StatusDetail'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'time' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'time' => null, + 'status' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'time' => 'time', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'time' => 'setTime', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'time' => 'getTime', + 'status' => 'getStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['time'] = $data['time'] ?? null; + $this->container['status'] = $data['status'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets time + * + * @return string|null + */ + public function getTime() + { + return $this->container['time']; + } + + /** + * Sets time + * + * @param string|null $time time + * + * @return self + */ + public function setTime($time) + { + $this->container['time'] = $time; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Update1099Form200Response.php b/lib/Model/A1099/V2/Update1099Form200Response.php new file mode 100644 index 0000000..4c888b4 --- /dev/null +++ b/lib/Model/A1099/V2/Update1099Form200Response.php @@ -0,0 +1,2006 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Update1099Form200Response Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Update1099Form_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'user_id' => 'string', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', + 'issuer_id' => 'string', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'recipient_email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'recipient_non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]', + 'second_tin_notice' => 'bool', + 'rents' => 'float', + 'royalties' => 'float', + 'other_income' => 'float', + 'fed_income_tax_withheld' => 'float', + 'fishing_boat_proceeds' => 'float', + 'medical_health_care_payments' => 'float', + 'payer_made_direct_sales' => 'bool', + 'substitute_payments' => 'float', + 'crop_insurance_proceeds' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', + 'section409_a_deferrals' => 'float', + 'fatca_filing_requirement' => 'bool', + 'excess_golden_parachute_payments' => 'float', + 'nonqualified_deferred_compensation' => 'float', + 'nonemployee_compensation' => 'float', + 'federal_income_tax_withheld' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'user_id' => null, + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, + 'issuer_id' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'recipient_email' => null, + 'account_number' => null, + 'office_code' => null, + 'recipient_non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null, + 'second_tin_notice' => null, + 'rents' => 'double', + 'royalties' => 'double', + 'other_income' => 'double', + 'fed_income_tax_withheld' => 'double', + 'fishing_boat_proceeds' => 'double', + 'medical_health_care_payments' => 'double', + 'payer_made_direct_sales' => null, + 'substitute_payments' => 'double', + 'crop_insurance_proceeds' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', + 'section409_a_deferrals' => 'double', + 'fatca_filing_requirement' => null, + 'excess_golden_parachute_payments' => 'double', + 'nonqualified_deferred_compensation' => 'double', + 'nonemployee_compensation' => 'double', + 'federal_income_tax_withheld' => 'double' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'user_id' => 'userId', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'recipient_email' => 'recipientEmail', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'recipient_non_us_province' => 'recipientNonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors', + 'second_tin_notice' => 'secondTinNotice', + 'rents' => 'rents', + 'royalties' => 'royalties', + 'other_income' => 'otherIncome', + 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'fishingBoatProceeds', + 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'payer_made_direct_sales' => 'payerMadeDirectSales', + 'substitute_payments' => 'substitutePayments', + 'crop_insurance_proceeds' => 'cropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', + 'section409_a_deferrals' => 'section409ADeferrals', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', + 'nonemployee_compensation' => 'nonemployeeCompensation', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'user_id' => 'setUserId', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'recipient_email' => 'setRecipientEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors', + 'second_tin_notice' => 'setSecondTinNotice', + 'rents' => 'setRents', + 'royalties' => 'setRoyalties', + 'other_income' => 'setOtherIncome', + 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'setFishingBoatProceeds', + 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'payer_made_direct_sales' => 'setPayerMadeDirectSales', + 'substitute_payments' => 'setSubstitutePayments', + 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', + 'section409_a_deferrals' => 'setSection409ADeferrals', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', + 'nonemployee_compensation' => 'setNonemployeeCompensation', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'user_id' => 'getUserId', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'recipient_email' => 'getRecipientEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors', + 'second_tin_notice' => 'getSecondTinNotice', + 'rents' => 'getRents', + 'royalties' => 'getRoyalties', + 'other_income' => 'getOtherIncome', + 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', + 'fishing_boat_proceeds' => 'getFishingBoatProceeds', + 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'payer_made_direct_sales' => 'getPayerMadeDirectSales', + 'substitute_payments' => 'getSubstitutePayments', + 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', + 'section409_a_deferrals' => 'getSection409ADeferrals', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', + 'nonemployee_compensation' => 'getNonemployeeCompensation', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_FORM1099_NEC = 'Form1099Nec'; + const TYPE_FORM1099_MISC = 'Form1099Misc'; + const TYPE_FORM1099_DIV = 'Form1099Div'; + const TYPE_FORM1099_R = 'Form1099R'; + const TYPE_FORM1099_K = 'Form1099K'; + const TYPE_FORM1095_B = 'Form1095B'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_FORM1099_NEC, + self::TYPE_FORM1099_MISC, + self::TYPE_FORM1099_DIV, + self::TYPE_FORM1099_R, + self::TYPE_FORM1099_K, + self::TYPE_FORM1095_B, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['rents'] = $data['rents'] ?? null; + $this->container['royalties'] = $data['royalties'] ?? null; + $this->container['other_income'] = $data['other_income'] ?? null; + $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; + $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; + $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['payer_made_direct_sales'] = $data['payer_made_direct_sales'] ?? null; + $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; + $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; + $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; + $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets user_id + * + * @return string|null + */ + public function getUserId() + { + return $this->container['user_id']; + } + + /** + * Sets user_id + * + * @param string|null $user_id user_id + * + * @return self + */ + public function setUserId($user_id) + { + $this->container['user_id'] = $user_id; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets recipient_email + * + * @return string|null + */ + public function getRecipientEmail() + { + return $this->container['recipient_email']; + } + + /** + * Sets recipient_email + * + * @param string|null $recipient_email recipient_email + * + * @return self + */ + public function setRecipientEmail($recipient_email) + { + $this->container['recipient_email'] = $recipient_email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets recipient_non_us_province + * + * @return string|null + */ + public function getRecipientNonUsProvince() + { + return $this->container['recipient_non_us_province']; + } + + /** + * Sets recipient_non_us_province + * + * @param string|null $recipient_non_us_province recipient_non_us_province + * + * @return self + */ + public function setRecipientNonUsProvince($recipient_non_us_province) + { + $this->container['recipient_non_us_province'] = $recipient_non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailApp[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorApp[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets rents + * + * @return float|null + */ + public function getRents() + { + return $this->container['rents']; + } + + /** + * Sets rents + * + * @param float|null $rents rents + * + * @return self + */ + public function setRents($rents) + { + $this->container['rents'] = $rents; + + return $this; + } + + /** + * Gets royalties + * + * @return float|null + */ + public function getRoyalties() + { + return $this->container['royalties']; + } + + /** + * Sets royalties + * + * @param float|null $royalties royalties + * + * @return self + */ + public function setRoyalties($royalties) + { + $this->container['royalties'] = $royalties; + + return $this; + } + + /** + * Gets other_income + * + * @return float|null + */ + public function getOtherIncome() + { + return $this->container['other_income']; + } + + /** + * Sets other_income + * + * @param float|null $other_income other_income + * + * @return self + */ + public function setOtherIncome($other_income) + { + $this->container['other_income'] = $other_income; + + return $this; + } + + /** + * Gets fed_income_tax_withheld + * + * @return float|null + */ + public function getFedIncomeTaxWithheld() + { + return $this->container['fed_income_tax_withheld']; + } + + /** + * Sets fed_income_tax_withheld + * + * @param float|null $fed_income_tax_withheld fed_income_tax_withheld + * + * @return self + */ + public function setFedIncomeTaxWithheld($fed_income_tax_withheld) + { + $this->container['fed_income_tax_withheld'] = $fed_income_tax_withheld; + + return $this; + } + + /** + * Gets fishing_boat_proceeds + * + * @return float|null + */ + public function getFishingBoatProceeds() + { + return $this->container['fishing_boat_proceeds']; + } + + /** + * Sets fishing_boat_proceeds + * + * @param float|null $fishing_boat_proceeds fishing_boat_proceeds + * + * @return self + */ + public function setFishingBoatProceeds($fishing_boat_proceeds) + { + $this->container['fishing_boat_proceeds'] = $fishing_boat_proceeds; + + return $this; + } + + /** + * Gets medical_health_care_payments + * + * @return float|null + */ + public function getMedicalHealthCarePayments() + { + return $this->container['medical_health_care_payments']; + } + + /** + * Sets medical_health_care_payments + * + * @param float|null $medical_health_care_payments medical_health_care_payments + * + * @return self + */ + public function setMedicalHealthCarePayments($medical_health_care_payments) + { + $this->container['medical_health_care_payments'] = $medical_health_care_payments; + + return $this; + } + + /** + * Gets payer_made_direct_sales + * + * @return bool|null + */ + public function getPayerMadeDirectSales() + { + return $this->container['payer_made_direct_sales']; + } + + /** + * Sets payer_made_direct_sales + * + * @param bool|null $payer_made_direct_sales payer_made_direct_sales + * + * @return self + */ + public function setPayerMadeDirectSales($payer_made_direct_sales) + { + $this->container['payer_made_direct_sales'] = $payer_made_direct_sales; + + return $this; + } + + /** + * Gets substitute_payments + * + * @return float|null + */ + public function getSubstitutePayments() + { + return $this->container['substitute_payments']; + } + + /** + * Sets substitute_payments + * + * @param float|null $substitute_payments substitute_payments + * + * @return self + */ + public function setSubstitutePayments($substitute_payments) + { + $this->container['substitute_payments'] = $substitute_payments; + + return $this; + } + + /** + * Gets crop_insurance_proceeds + * + * @return float|null + */ + public function getCropInsuranceProceeds() + { + return $this->container['crop_insurance_proceeds']; + } + + /** + * Sets crop_insurance_proceeds + * + * @param float|null $crop_insurance_proceeds crop_insurance_proceeds + * + * @return self + */ + public function setCropInsuranceProceeds($crop_insurance_proceeds) + { + $this->container['crop_insurance_proceeds'] = $crop_insurance_proceeds; + + return $this; + } + + /** + * Gets gross_proceeds_paid_to_attorney + * + * @return float|null + */ + public function getGrossProceedsPaidToAttorney() + { + return $this->container['gross_proceeds_paid_to_attorney']; + } + + /** + * Sets gross_proceeds_paid_to_attorney + * + * @param float|null $gross_proceeds_paid_to_attorney gross_proceeds_paid_to_attorney + * + * @return self + */ + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) + { + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; + + return $this; + } + + /** + * Gets fish_purchased_for_resale + * + * @return float|null + */ + public function getFishPurchasedForResale() + { + return $this->container['fish_purchased_for_resale']; + } + + /** + * Sets fish_purchased_for_resale + * + * @param float|null $fish_purchased_for_resale fish_purchased_for_resale + * + * @return self + */ + public function setFishPurchasedForResale($fish_purchased_for_resale) + { + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; + + return $this; + } + + /** + * Gets section409_a_deferrals + * + * @return float|null + */ + public function getSection409ADeferrals() + { + return $this->container['section409_a_deferrals']; + } + + /** + * Sets section409_a_deferrals + * + * @param float|null $section409_a_deferrals section409_a_deferrals + * + * @return self + */ + public function setSection409ADeferrals($section409_a_deferrals) + { + $this->container['section409_a_deferrals'] = $section409_a_deferrals; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement fatca_filing_requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + + /** + * Gets excess_golden_parachute_payments + * + * @return float|null + */ + public function getExcessGoldenParachutePayments() + { + return $this->container['excess_golden_parachute_payments']; + } + + /** + * Sets excess_golden_parachute_payments + * + * @param float|null $excess_golden_parachute_payments excess_golden_parachute_payments + * + * @return self + */ + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) + { + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; + + return $this; + } + + /** + * Gets nonqualified_deferred_compensation + * + * @return float|null + */ + public function getNonqualifiedDeferredCompensation() + { + return $this->container['nonqualified_deferred_compensation']; + } + + /** + * Sets nonqualified_deferred_compensation + * + * @param float|null $nonqualified_deferred_compensation nonqualified_deferred_compensation + * + * @return self + */ + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) + { + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; + + return $this; + } + + /** + * Gets nonemployee_compensation + * + * @return float|null + */ + public function getNonemployeeCompensation() + { + return $this->container['nonemployee_compensation']; + } + + /** + * Sets nonemployee_compensation + * + * @param float|null $nonemployee_compensation nonemployee_compensation + * + * @return self + */ + public function setNonemployeeCompensation($nonemployee_compensation) + { + $this->container['nonemployee_compensation'] = $nonemployee_compensation; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld federal_income_tax_withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/ValidationErrorApp.php b/lib/Model/A1099/V2/ValidationErrorApp.php new file mode 100644 index 0000000..957d8d8 --- /dev/null +++ b/lib/Model/A1099/V2/ValidationErrorApp.php @@ -0,0 +1,364 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * ValidationErrorApp Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class ValidationErrorApp implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ValidationErrorApp'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'field' => 'string', + 'errors' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'field' => null, + 'errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'field' => 'field', + 'errors' => 'errors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'field' => 'setField', + 'errors' => 'setErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'field' => 'getField', + 'errors' => 'getErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['field'] = $data['field'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets field + * + * @return string|null + */ + public function getField() + { + return $this->container['field']; + } + + /** + * Sets field + * + * @param string|null $field field + * + * @return self + */ + public function setField($field) + { + $this->container['field'] = $field; + + return $this; + } + + /** + * Gets errors + * + * @return string[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param string[]|null $errors errors + * + * @return self + */ + public function setErrors($errors) + { + + + $this->container['errors'] = $errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + +