diff --git a/README.md b/README.md index 514d973..9f28408 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,6 @@ Class | Method | HTTP request | Description *InteropApi* | [**SubmitInteropDocument**](docs/EInvoicing/V1/InteropApi.md#submitinteropdocument) | **POST** /interop/documents | Submit a document *MandatesApi* | [**GetMandateDataInputFields**](docs/EInvoicing/V1/MandatesApi.md#getmandatedatainputfields) | **GET** /mandates/{mandateId}/data-input-fields | Returns document field information for a country mandate, a selected document type, and its version *MandatesApi* | [**GetMandates**](docs/EInvoicing/V1/MandatesApi.md#getmandates) | **GET** /mandates | List country mandates that are supported by the Avalara E-Invoicing platform -*SubscriptionsApi* | [**CreateWebhookSubscription**](docs/EInvoicing/V1/SubscriptionsApi.md#createwebhooksubscription) | **POST** /webhooks/subscriptions | Create a subscription to events -*SubscriptionsApi* | [**DeleteWebhookSubscription**](docs/EInvoicing/V1/SubscriptionsApi.md#deletewebhooksubscription) | **DELETE** /webhooks/subscriptions/{subscription-id} | Unsubscribe from events -*SubscriptionsApi* | [**GetWebhookSubscription**](docs/EInvoicing/V1/SubscriptionsApi.md#getwebhooksubscription) | **GET** /webhooks/subscriptions/{subscription-id} | Get details of a subscription -*SubscriptionsApi* | [**ListWebhookSubscriptions**](docs/EInvoicing/V1/SubscriptionsApi.md#listwebhooksubscriptions) | **GET** /webhooks/subscriptions | List all subscriptions *TradingPartnersApi* | [**BatchSearchParticipants**](docs/EInvoicing/V1/TradingPartnersApi.md#batchsearchparticipants) | **POST** /trading-partners/batch-searches | Creates a batch search and performs a batch search in the directory for participants in the background. *TradingPartnersApi* | [**DownloadBatchSearchReport**](docs/EInvoicing/V1/TradingPartnersApi.md#downloadbatchsearchreport) | **GET** /trading-partners/batch-searches/{id}/$download-results | Download batch search results in a csv file. *TradingPartnersApi* | [**GetBatchSearchDetail**](docs/EInvoicing/V1/TradingPartnersApi.md#getbatchsearchdetail) | **GET** /trading-partners/batch-searches/{id} | Get the batch search details for a given id. @@ -111,30 +107,24 @@ Class | Method | HTTP request | Description Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*CompaniesW9Api* | [**CreateCompany**](docs/A1099/V2/CompaniesW9Api.md#createcompany) | **POST** /w9/companies | Creates a new company -*CompaniesW9Api* | [**GetCompanies**](docs/A1099/V2/CompaniesW9Api.md#getcompanies) | **GET** /w9/companies | List companies -*CompaniesW9Api* | [**GetCompany**](docs/A1099/V2/CompaniesW9Api.md#getcompany) | **GET** /w9/companies/{id} | Retrieve a company -*CompaniesW9Api* | [**UpdateCompany**](docs/A1099/V2/CompaniesW9Api.md#updatecompany) | **PUT** /w9/companies/{id} | Update a company -*Forms1099Api* | [**BulkUpsert1099Forms**](docs/A1099/V2/Forms1099Api.md#bulkupsert1099forms) | **POST** /1099/forms/$bulk-upsert | Create or update multiple 1099 forms. -*Forms1099Api* | [**Create1099Form**](docs/A1099/V2/Forms1099Api.md#create1099form) | **POST** /1099/forms | Create a 1099 form. -*Forms1099Api* | [**Delete1099Form**](docs/A1099/V2/Forms1099Api.md#delete1099form) | **DELETE** /1099/forms/{id} | Delete a 1099 form. -*Forms1099Api* | [**Get1099Form**](docs/A1099/V2/Forms1099Api.md#get1099form) | **GET** /1099/forms/{id} | Retrieve a 1099 form. -*Forms1099Api* | [**Get1099FormPdf**](docs/A1099/V2/Forms1099Api.md#get1099formpdf) | **GET** /1099/forms/{id}/pdf | Retrieve the PDF file for a single 1099 by form id. -*Forms1099Api* | [**List1099Forms**](docs/A1099/V2/Forms1099Api.md#list1099forms) | **GET** /1099/forms | Retrieve a list of 1099 forms based on query parameters. -*Forms1099Api* | [**Update1099Form**](docs/A1099/V2/Forms1099Api.md#update1099form) | **PUT** /1099/forms/{id} | Update a 1099 form. -*FormsW9Api* | [**CreateW9Form**](docs/A1099/V2/FormsW9Api.md#createw9form) | **POST** /w9/forms | Create a W9/W4/W8 form -*FormsW9Api* | [**DeleteW9Form**](docs/A1099/V2/FormsW9Api.md#deletew9form) | **DELETE** /w9/forms/{id} | Delete a form -*FormsW9Api* | [**GetW9Form**](docs/A1099/V2/FormsW9Api.md#getw9form) | **GET** /w9/forms/{id} | Retrieve a W9/W4/W8 form -*FormsW9Api* | [**GetW9FormRequest**](docs/A1099/V2/FormsW9Api.md#getw9formrequest) | **GET** /w9/forms/requests/{formRequestId} | Retrieve a form request -*FormsW9Api* | [**ListW9Forms**](docs/A1099/V2/FormsW9Api.md#listw9forms) | **GET** /w9/forms | List W9/W4/W8 forms. -*FormsW9Api* | [**UpdateW9Form**](docs/A1099/V2/FormsW9Api.md#updatew9form) | **PUT** /w9/forms/{id} | Update a W9/W4/W8 form -*FormsW9Api* | [**UploadW9Files**](docs/A1099/V2/FormsW9Api.md#uploadw9files) | **PUT** /w9/forms/{id}/attachment | Upload files for a W9/W4/W8 form -*Issuers1099Api* | [**CreateIssuer**](docs/A1099/V2/Issuers1099Api.md#createissuer) | **POST** /1099/issuers | Create an issuer -*Issuers1099Api* | [**DeleteIssuer**](docs/A1099/V2/Issuers1099Api.md#deleteissuer) | **DELETE** /1099/issuers/{id} | Delete an issuer -*Issuers1099Api* | [**GetIssuer**](docs/A1099/V2/Issuers1099Api.md#getissuer) | **GET** /1099/issuers/{id} | Get an issuer -*Issuers1099Api* | [**GetIssuers**](docs/A1099/V2/Issuers1099Api.md#getissuers) | **GET** /1099/issuers | List issuers -*Issuers1099Api* | [**UpdateIssuer**](docs/A1099/V2/Issuers1099Api.md#updateissuer) | **PUT** /1099/issuers/{id} | Update an issuer -*Jobs1099Api* | [**GetJob**](docs/A1099/V2/Jobs1099Api.md#getjob) | **GET** /1099/jobs/{id} | Retrieves information about the job +*Class1099FormsApi* | [**BulkUpsert1099Forms**](docs/A1099/V2/Class1099FormsApi.md#bulkupsert1099forms) | **POST** /1099/forms/$bulk | Create/Update 1099 forms +*Class1099FormsApi* | [**Call1099FormsPost**](docs/A1099/V2/Class1099FormsApi.md#call1099formspost) | **POST** /1099/forms | Create a new 1099 form +*Class1099FormsApi* | [**Delete1099Form**](docs/A1099/V2/Class1099FormsApi.md#delete1099form) | **DELETE** /1099/forms/{formId} | Delete a 1099 form +*Class1099FormsApi* | [**Download1099FormPDF**](docs/A1099/V2/Class1099FormsApi.md#download1099formpdf) | **POST** /1099/forms/$initiate-download | Submit a download job to retrieve PDF forms +*Class1099FormsApi* | [**Get1099Form**](docs/A1099/V2/Class1099FormsApi.md#get1099form) | **GET** /1099/forms/{formId} | Get a single 1099 form +*Class1099FormsApi* | [**List1099Forms**](docs/A1099/V2/Class1099FormsApi.md#list1099forms) | **GET** /1099/forms | List 1099 forms +*Class1099FormsApi* | [**Update1099Form**](docs/A1099/V2/Class1099FormsApi.md#update1099form) | **PUT** /1099/forms/{formId} | Update an existing form. +*Class1099IssuersApi* | [**CreateIssuer**](docs/A1099/V2/Class1099IssuersApi.md#createissuer) | **POST** /1099/issuers | Create a new issuer +*Class1099IssuersApi* | [**DeleteIssuer**](docs/A1099/V2/Class1099IssuersApi.md#deleteissuer) | **DELETE** /1099/issuers/{issuerId} | Delete an issuer +*Class1099IssuersApi* | [**GetIssuer**](docs/A1099/V2/Class1099IssuersApi.md#getissuer) | **GET** /1099/issuers/{issuerId} | Get a single issuer +*Class1099IssuersApi* | [**ListIssuers**](docs/A1099/V2/Class1099IssuersApi.md#listissuers) | **GET** /1099/issuers | List issuers +*Class1099IssuersApi* | [**UpdateIssuer**](docs/A1099/V2/Class1099IssuersApi.md#updateissuer) | **PUT** /1099/issuers/{issuerId} | Update an issuer +*JobsApi* | [**GetJob**](docs/A1099/V2/JobsApi.md#getjob) | **GET** /jobs/{jobId} | Get status of an existing job +*W4W8W9FormsApi* | [**CreateW9Form**](docs/A1099/V2/W4W8W9FormsApi.md#createw9form) | **POST** /w9/forms | Create a new W9/W8/W4 form +*W4W8W9FormsApi* | [**GetW9Form**](docs/A1099/V2/W4W8W9FormsApi.md#getw9form) | **GET** /w9/forms/{formId} | Retrieve a W9/W8/W4 form +*W4W8W9FormsApi* | [**GetW9Forms**](docs/A1099/V2/W4W8W9FormsApi.md#getw9forms) | **GET** /w9/forms | List W9/W4/W8 forms. +*W4W8W9FormsApi* | [**W9FormRequestsFormRequestIdGet**](docs/A1099/V2/W4W8W9FormsApi.md#w9formrequestsformrequestidget) | **GET** /w9/form-requests/{formRequestId} | Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. +*W9CompaniesApi* | [**CreateW9Company**](docs/A1099/V2/W9CompaniesApi.md#createw9company) | **POST** /w9/companies | Creates a new company ## Documentation for Models @@ -146,7 +136,6 @@ Class | Method | HTTP request | Description - [Model.EInvoicing.V1.BadRequest](docs/EInvoicing/V1/BadRequest.md) - [Model.EInvoicing.V1.BatchSearch](docs/EInvoicing/V1/BatchSearch.md) - [Model.EInvoicing.V1.BatchSearchListResponse](docs/EInvoicing/V1/BatchSearchListResponse.md) - - [Model.EInvoicing.V1.BatchSearchParticipants202Response](docs/EInvoicing/V1/BatchSearchParticipants202Response.md) - [Model.EInvoicing.V1.ConditionalForField](docs/EInvoicing/V1/ConditionalForField.md) - [Model.EInvoicing.V1.DataInputField](docs/EInvoicing/V1/DataInputField.md) - [Model.EInvoicing.V1.DataInputFieldNotUsedFor](docs/EInvoicing/V1/DataInputFieldNotUsedFor.md) @@ -165,17 +154,10 @@ Class | Method | HTTP request | Description - [Model.EInvoicing.V1.DocumentSubmitResponse](docs/EInvoicing/V1/DocumentSubmitResponse.md) - [Model.EInvoicing.V1.DocumentSummary](docs/EInvoicing/V1/DocumentSummary.md) - [Model.EInvoicing.V1.ErrorResponse](docs/EInvoicing/V1/ErrorResponse.md) - - [Model.EInvoicing.V1.EventId](docs/EInvoicing/V1/EventId.md) - - [Model.EInvoicing.V1.EventMessage](docs/EInvoicing/V1/EventMessage.md) - - [Model.EInvoicing.V1.EventPayload](docs/EInvoicing/V1/EventPayload.md) - - [Model.EInvoicing.V1.EventSubscription](docs/EInvoicing/V1/EventSubscription.md) - [Model.EInvoicing.V1.FetchDocumentsRequest](docs/EInvoicing/V1/FetchDocumentsRequest.md) - [Model.EInvoicing.V1.FetchDocumentsRequestDataInner](docs/EInvoicing/V1/FetchDocumentsRequestDataInner.md) - [Model.EInvoicing.V1.FetchDocumentsRequestMetadata](docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md) - [Model.EInvoicing.V1.ForbiddenError](docs/EInvoicing/V1/ForbiddenError.md) - - [Model.EInvoicing.V1.HmacSignature](docs/EInvoicing/V1/HmacSignature.md) - - [Model.EInvoicing.V1.HmacSignatureValue](docs/EInvoicing/V1/HmacSignatureValue.md) - - [Model.EInvoicing.V1.Id](docs/EInvoicing/V1/Id.md) - [Model.EInvoicing.V1.InputDataFormats](docs/EInvoicing/V1/InputDataFormats.md) - [Model.EInvoicing.V1.InternalServerError](docs/EInvoicing/V1/InternalServerError.md) - [Model.EInvoicing.V1.Mandate](docs/EInvoicing/V1/Mandate.md) @@ -184,90 +166,55 @@ Class | Method | HTTP request | Description - [Model.EInvoicing.V1.MandatesResponse](docs/EInvoicing/V1/MandatesResponse.md) - [Model.EInvoicing.V1.NotFoundError](docs/EInvoicing/V1/NotFoundError.md) - [Model.EInvoicing.V1.NotUsedForField](docs/EInvoicing/V1/NotUsedForField.md) - - [Model.EInvoicing.V1.OutputDataFormats](docs/EInvoicing/V1/OutputDataFormats.md) - - [Model.EInvoicing.V1.Pagination](docs/EInvoicing/V1/Pagination.md) - [Model.EInvoicing.V1.RequiredWhenField](docs/EInvoicing/V1/RequiredWhenField.md) - - [Model.EInvoicing.V1.Signature](docs/EInvoicing/V1/Signature.md) - - [Model.EInvoicing.V1.SignatureSignature](docs/EInvoicing/V1/SignatureSignature.md) - - [Model.EInvoicing.V1.SignatureValue](docs/EInvoicing/V1/SignatureValue.md) - - [Model.EInvoicing.V1.SignatureValueSignature](docs/EInvoicing/V1/SignatureValueSignature.md) - [Model.EInvoicing.V1.StatusEvent](docs/EInvoicing/V1/StatusEvent.md) - [Model.EInvoicing.V1.SubmitDocumentMetadata](docs/EInvoicing/V1/SubmitDocumentMetadata.md) - [Model.EInvoicing.V1.SubmitInteropDocument202Response](docs/EInvoicing/V1/SubmitInteropDocument202Response.md) - - [Model.EInvoicing.V1.SubscriptionCommon](docs/EInvoicing/V1/SubscriptionCommon.md) - - [Model.EInvoicing.V1.SubscriptionDetail](docs/EInvoicing/V1/SubscriptionDetail.md) - - [Model.EInvoicing.V1.SubscriptionListResponse](docs/EInvoicing/V1/SubscriptionListResponse.md) - - [Model.EInvoicing.V1.SubscriptionRegistration](docs/EInvoicing/V1/SubscriptionRegistration.md) - - [Model.EInvoicing.V1.SuccessResponse](docs/EInvoicing/V1/SuccessResponse.md) - - [Model.EInvoicing.V1.WebhookInvocation](docs/EInvoicing/V1/WebhookInvocation.md) - - [Model.EInvoicing.V1.WebhooksErrorInfo](docs/EInvoicing/V1/WebhooksErrorInfo.md) - - [Model.EInvoicing.V1.WebhooksErrorResponse](docs/EInvoicing/V1/WebhooksErrorResponse.md) - [Model.EInvoicing.V1.WorkflowIds](docs/EInvoicing/V1/WorkflowIds.md) ### A1099 V2 Model Documentation - - [Model.A1099.V2.Attribute](docs/A1099/V2/Attribute.md) + - [Model.A1099.V2.AddressVerificationStatus](docs/A1099/V2/AddressVerificationStatus.md) - [Model.A1099.V2.AuthorizedApiRequestModel](docs/A1099/V2/AuthorizedApiRequestModel.md) - [Model.A1099.V2.AuthorizedApiRequestV2DataModel](docs/A1099/V2/AuthorizedApiRequestV2DataModel.md) - - [Model.A1099.V2.BaseCompanyModel](docs/A1099/V2/BaseCompanyModel.md) - - [Model.A1099.V2.BaseFormListRequest](docs/A1099/V2/BaseFormListRequest.md) + - [Model.A1099.V2.BaseFormDataModel](docs/A1099/V2/BaseFormDataModel.md) - [Model.A1099.V2.BulkUpsert1099FormsRequest](docs/A1099/V2/BulkUpsert1099FormsRequest.md) - - [Model.A1099.V2.CompanyCreateUpdateRequestModel](docs/A1099/V2/CompanyCreateUpdateRequestModel.md) - [Model.A1099.V2.CompanyModel](docs/A1099/V2/CompanyModel.md) - - [Model.A1099.V2.CompanyResponse](docs/A1099/V2/CompanyResponse.md) - - [Model.A1099.V2.CompanyResponseModel](docs/A1099/V2/CompanyResponseModel.md) - - [Model.A1099.V2.Data](docs/A1099/V2/Data.md) - [Model.A1099.V2.ErrorModel](docs/A1099/V2/ErrorModel.md) - - [Model.A1099.V2.ErrorResponse](docs/A1099/V2/ErrorResponse.md) - - [Model.A1099.V2.Form1099Base](docs/A1099/V2/Form1099Base.md) - - [Model.A1099.V2.Form1099DivList](docs/A1099/V2/Form1099DivList.md) - - [Model.A1099.V2.Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) - - [Model.A1099.V2.Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) - - [Model.A1099.V2.Form1099List](docs/A1099/V2/Form1099List.md) - - [Model.A1099.V2.Form1099ListDataInner](docs/A1099/V2/Form1099ListDataInner.md) - - [Model.A1099.V2.Form1099Misc](docs/A1099/V2/Form1099Misc.md) - - [Model.A1099.V2.Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) - - [Model.A1099.V2.Form1099MiscListItem](docs/A1099/V2/Form1099MiscListItem.md) - - [Model.A1099.V2.Form1099MiscRequest](docs/A1099/V2/Form1099MiscRequest.md) - - [Model.A1099.V2.Form1099Nec](docs/A1099/V2/Form1099Nec.md) - - [Model.A1099.V2.Form1099NecList](docs/A1099/V2/Form1099NecList.md) - - [Model.A1099.V2.Form1099NecListItem](docs/A1099/V2/Form1099NecListItem.md) - - [Model.A1099.V2.Form1099NecRequest](docs/A1099/V2/Form1099NecRequest.md) - - [Model.A1099.V2.Form1099ProccessResult](docs/A1099/V2/Form1099ProccessResult.md) - - [Model.A1099.V2.Form1099R](docs/A1099/V2/Form1099R.md) - - [Model.A1099.V2.Form1099RList](docs/A1099/V2/Form1099RList.md) - - [Model.A1099.V2.Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) - - [Model.A1099.V2.Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) - - [Model.A1099.V2.Form1099StatusDetail](docs/A1099/V2/Form1099StatusDetail.md) - - [Model.A1099.V2.FormRequestBase](docs/A1099/V2/FormRequestBase.md) + - [Model.A1099.V2.FederalEfileStatus](docs/A1099/V2/FederalEfileStatus.md) + - [Model.A1099.V2.Form1099BaseModel](docs/A1099/V2/Form1099BaseModel.md) + - [Model.A1099.V2.Form1099BaseModelFederalEfileStatus](docs/A1099/V2/Form1099BaseModelFederalEfileStatus.md) + - [Model.A1099.V2.Form1099BaseModelPostalMailStatus](docs/A1099/V2/Form1099BaseModelPostalMailStatus.md) + - [Model.A1099.V2.Form1099MiscModel](docs/A1099/V2/Form1099MiscModel.md) + - [Model.A1099.V2.Form1099NecModel](docs/A1099/V2/Form1099NecModel.md) + - [Model.A1099.V2.Form1099OneOf](docs/A1099/V2/Form1099OneOf.md) - [Model.A1099.V2.FormRequestModel](docs/A1099/V2/FormRequestModel.md) - - [Model.A1099.V2.FormResponseBase](docs/A1099/V2/FormResponseBase.md) - - [Model.A1099.V2.FormSingleRequestBase](docs/A1099/V2/FormSingleRequestBase.md) - - [Model.A1099.V2.GetIssuer400Response](docs/A1099/V2/GetIssuer400Response.md) + - [Model.A1099.V2.GenericPaginatedModel](docs/A1099/V2/GenericPaginatedModel.md) + - [Model.A1099.V2.GetW9Form200Response](docs/A1099/V2/GetW9Form200Response.md) - [Model.A1099.V2.HttpValidationProblemDetails](docs/A1099/V2/HttpValidationProblemDetails.md) - - [Model.A1099.V2.ICreateForm1099Request](docs/A1099/V2/ICreateForm1099Request.md) - - [Model.A1099.V2.IUpdateForm1099Request](docs/A1099/V2/IUpdateForm1099Request.md) - - [Model.A1099.V2.IW9FormDataModelsOneOf](docs/A1099/V2/IW9FormDataModelsOneOf.md) + - [Model.A1099.V2.InitiateDownloadInputModel](docs/A1099/V2/InitiateDownloadInputModel.md) + - [Model.A1099.V2.InitiateDownloadInputModelStateEfileStatus](docs/A1099/V2/InitiateDownloadInputModelStateEfileStatus.md) + - [Model.A1099.V2.InititateDownloadOutputModel](docs/A1099/V2/InititateDownloadOutputModel.md) - [Model.A1099.V2.IssuerModel](docs/A1099/V2/IssuerModel.md) - - [Model.A1099.V2.IssuerResponse](docs/A1099/V2/IssuerResponse.md) - - [Model.A1099.V2.JobResult](docs/A1099/V2/JobResult.md) - - [Model.A1099.V2.Link](docs/A1099/V2/Link.md) + - [Model.A1099.V2.IssuerModelPaginatedQueryResultModel](docs/A1099/V2/IssuerModelPaginatedQueryResultModel.md) + - [Model.A1099.V2.JobModel](docs/A1099/V2/JobModel.md) + - [Model.A1099.V2.JobModelData](docs/A1099/V2/JobModelData.md) + - [Model.A1099.V2.JobModelDataOneOf](docs/A1099/V2/JobModelDataOneOf.md) + - [Model.A1099.V2.JobModelDataOneOfBulkDownload](docs/A1099/V2/JobModelDataOneOfBulkDownload.md) + - [Model.A1099.V2.JobModelDataOneOfUpsert](docs/A1099/V2/JobModelDataOneOfUpsert.md) + - [Model.A1099.V2.List1099Forms200Response](docs/A1099/V2/List1099Forms200Response.md) - [Model.A1099.V2.PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) - - [Model.A1099.V2.PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) - - [Model.A1099.V2.PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) - [Model.A1099.V2.PaginatedW9FormsModel](docs/A1099/V2/PaginatedW9FormsModel.md) + - [Model.A1099.V2.PostalMailStatus](docs/A1099/V2/PostalMailStatus.md) - [Model.A1099.V2.ProblemDetails](docs/A1099/V2/ProblemDetails.md) - - [Model.A1099.V2.StateAndLocalWithholding](docs/A1099/V2/StateAndLocalWithholding.md) - - [Model.A1099.V2.StateAndLocalWithholdingRequest](docs/A1099/V2/StateAndLocalWithholdingRequest.md) - - [Model.A1099.V2.StateEfileStatusDetail](docs/A1099/V2/StateEfileStatusDetail.md) - - [Model.A1099.V2.ValidationError](docs/A1099/V2/ValidationError.md) + - [Model.A1099.V2.StateEfileStatusesInner](docs/A1099/V2/StateEfileStatusesInner.md) + - [Model.A1099.V2.StateWithholding](docs/A1099/V2/StateWithholding.md) + - [Model.A1099.V2.TinMatchStatus](docs/A1099/V2/TinMatchStatus.md) - [Model.A1099.V2.W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) - - [Model.A1099.V2.W8BenESubstantialUsOwnerDataModel](docs/A1099/V2/W8BenESubstantialUsOwnerDataModel.md) - [Model.A1099.V2.W8BenFormDataModel](docs/A1099/V2/W8BenFormDataModel.md) - [Model.A1099.V2.W8BeneFormDataModel](docs/A1099/V2/W8BeneFormDataModel.md) - [Model.A1099.V2.W8ImyFormDataModel](docs/A1099/V2/W8ImyFormDataModel.md) - - [Model.A1099.V2.W9FormBaseResponse](docs/A1099/V2/W9FormBaseResponse.md) - [Model.A1099.V2.W9FormDataModel](docs/A1099/V2/W9FormDataModel.md) - - [Model.A1099.V2.W9FormResponse](docs/A1099/V2/W9FormResponse.md) + - [Model.A1099.V2.W9FormDataModelsOneOf](docs/A1099/V2/W9FormDataModelsOneOf.md) diff --git a/docs/A1099/V2/AddressVerificationStatus.md b/docs/A1099/V2/AddressVerificationStatus.md new file mode 100644 index 0000000..19066e3 --- /dev/null +++ b/docs/A1099/V2/AddressVerificationStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.AddressVerificationStatus +The status of address verification. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/AuthorizedApiRequestModel.md b/docs/A1099/V2/AuthorizedApiRequestModel.md index 0581ac9..b18d940 100644 --- a/docs/A1099/V2/AuthorizedApiRequestModel.md +++ b/docs/A1099/V2/AuthorizedApiRequestModel.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Path** | **string** | The path and query of the API request you want to pre-authorize, omitting the leading /api/ | [optional] +**Path** | **string** | The path and query of the API request you want to pre-authorize | [optional] **Ttl** | **int** | Seconds until this AuthorizedApiRequest should expire, 3600 if omitted; values greater than 86400 will not be honored | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/AuthorizedApiRequestV2DataModel.md b/docs/A1099/V2/AuthorizedApiRequestV2DataModel.md index 810a387..0bed9ed 100644 --- a/docs/A1099/V2/AuthorizedApiRequestV2DataModel.md +++ b/docs/A1099/V2/AuthorizedApiRequestV2DataModel.md @@ -1,12 +1,13 @@ # Avalara.SDK.Model.A1099.V2.AuthorizedApiRequestV2DataModel +Describes a one-time-use URL that, when accessed, executes the API request specified in path using the account and credentials you used to create this AuthorizedApiRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | | [optional] -**Path** | **string** | | [optional] -**ExpiresAt** | **string** | | [optional] +**Path** | **string** | The path and query of the API request you want to pre-authorize | [optional] +**ExpiresAt** | **string** | Timestamp when this AuthorizedApiRequest will expire, ttl (or 3600) seconds from creation | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/BaseFormDataModel.md b/docs/A1099/V2/BaseFormDataModel.md index 432c7f5..8da73a5 100644 --- a/docs/A1099/V2/BaseFormDataModel.md +++ b/docs/A1099/V2/BaseFormDataModel.md @@ -5,12 +5,12 @@ Resource data model for /w9/forms API Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **int** | | [optional] +**Id** | **string** | | [optional] **Type** | **string** | | [optional] [readonly] **EntryStatus** | **string** | | [optional] **UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] **DisplayName** | **string** | The display name associated with the form. | [optional] **Email** | **string** | The email address of the individual associated with the form. | [optional] **Archived** | **bool?** | Indicates whether the form is archived. | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes **AppVersion** | **string** | | [optional] **Platform** | **string** | | [optional] **OsVersion** | **string** | | [optional] -**AncestorId** | **long?** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/BulkUpsert1099FormsRequest.md b/docs/A1099/V2/BulkUpsert1099FormsRequest.md index 25cfe56..8aebe5c 100644 --- a/docs/A1099/V2/BulkUpsert1099FormsRequest.md +++ b/docs/A1099/V2/BulkUpsert1099FormsRequest.md @@ -1,11 +1,11 @@ # Avalara.SDK.Model.A1099.V2.BulkUpsert1099FormsRequest +1099 forms to upsert. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Forms** | [**List<Form1099RListItem>**](Form1099RListItem.md) | | [optional] -**FormType** | **string** | | [optional] +**Forms** | [**List<Form1099OneOf>**](Form1099OneOf.md) | | [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/Class1099FormsApi.md b/docs/A1099/V2/Class1099FormsApi.md index 9f72822..07a43e4 100644 --- a/docs/A1099/V2/Class1099FormsApi.md +++ b/docs/A1099/V2/Class1099FormsApi.md @@ -1,24 +1,25 @@ # Avalara.SDK.Api.A1099.V2.Class1099FormsApi -All URIs are relative to *https://api-ava1099.gamma.qa.us-west-2.aws.avalara.io/avalara1099* +All URIs are relative to *https://api.avalara.com/avalara1099* Method | HTTP request | Description ------------- | ------------- | ------------- -[**BulkUpsert1099Forms**](Class1099FormsApi.md#bulkupsert1099forms) | **POST** /1099/forms/$bulk-upsert | Create or update multiple 1099 forms. -[**Create1099Form**](Class1099FormsApi.md#create1099form) | **POST** /1099/forms | Create a 1099 form. -[**Delete1099Form**](Class1099FormsApi.md#delete1099form) | **DELETE** /1099/forms/{id} | Delete a 1099 form. -[**Get1099Form**](Class1099FormsApi.md#get1099form) | **GET** /1099/forms/{id} | Retrieve a 1099 form. -[**List1099Forms**](Class1099FormsApi.md#list1099forms) | **GET** /1099/forms | Retrieve a list of 1099 forms based on query parameters. -[**Update1099Form**](Class1099FormsApi.md#update1099form) | **PUT** /1099/forms/{id} | Update a 1099 form. +[**BulkUpsert1099Forms**](Class1099FormsApi.md#bulkupsert1099forms) | **POST** /1099/forms/$bulk | Create/Update 1099 forms +[**Call1099FormsPost**](Class1099FormsApi.md#call1099formspost) | **POST** /1099/forms | Create a new 1099 form +[**Delete1099Form**](Class1099FormsApi.md#delete1099form) | **DELETE** /1099/forms/{formId} | Delete a 1099 form +[**Download1099FormPDF**](Class1099FormsApi.md#download1099formpdf) | **POST** /1099/forms/$initiate-download | Submit a download job to retrieve PDF forms +[**Get1099Form**](Class1099FormsApi.md#get1099form) | **GET** /1099/forms/{formId} | Get a single 1099 form +[**List1099Forms**](Class1099FormsApi.md#list1099forms) | **GET** /1099/forms | List 1099 forms +[**Update1099Form**](Class1099FormsApi.md#update1099form) | **PUT** /1099/forms/{formId} | Update an existing form. # **BulkUpsert1099Forms** -> Form1099CsvProccessResult BulkUpsert1099Forms (BulkUpsert1099FormsRequest requestParameters) +> JobModel BulkUpsert1099Forms (BulkUpsert1099FormsRequest requestParameters) -Create or update multiple 1099 forms. +Create/Update 1099 forms -This endpoint allows you to create or update multiple 1099 forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"Form1099Misc\", \"form1099MiscCsvRequests\": [ { \"IssuerID\": \"123456\", \"IssuerReferenceID\": \"REF-7890\", \"IssuerTin\": \"98-7654321\", \"TaxYear\": 2024, \"ReferenceID\": \"REF-001\", \"RecipientName\": \"John Doe\", \"RecipientFederalID\": \"123-45-6789\", ... } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"Form1099Nec\", \"form1099NecCsvRequests\": [ { \"IssuerID\": \"987654\", \"IssuerReferenceID\": \"REF-4567\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2024, \"ReferenceID\": \"REF-002\", \"RecipientName\": \"Jane Smith\", \"RecipientFederalID\": \"987-65-4321\", ... } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. +This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. ### Example ```csharp @@ -43,14 +44,15 @@ namespace Example var apiInstance = new Class1099FormsApi(apiClient); var requestParameters = new BulkUpsert1099FormsRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 68f29792-7aa3-4293-aa38-85d68b0ef63f; // string | Unique correlation Id in a GUID format - requestParameters.BulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(); // BulkUpsert1099FormsRequest | (optional) + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.BulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(); // BulkUpsert1099FormsRequest | A request payload containing the details of the 1099 form to upsert. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Create or update multiple 1099 forms. - Form1099CsvProccessResult result = apiInstance.BulkUpsert1099Forms(requestParameters); + // Create/Update 1099 forms + JobModel result = apiInstance.BulkUpsert1099Forms(requestParameters); Debug.WriteLine(result); } catch (ApiException e) @@ -68,13 +70,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **BulkUpsert1099FormsRequest** | [**BulkUpsert1099FormsRequest**](BulkUpsert1099FormsRequest.md)| | [optional] + **BulkUpsert1099FormsRequest** | [**BulkUpsert1099FormsRequest**](BulkUpsert1099FormsRequest.md)| A request payload containing the details of the 1099 form to upsert. | + **XAvalaraClient** | **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] ### Return type -[**Form1099CsvProccessResult**](Form1099CsvProccessResult.md) +[**JobModel**](JobModel.md) ### Authorization @@ -82,26 +85,27 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **201** | Successfully upserted the 1099 form. | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **409** | Conflict | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - -# **Create1099Form** -> FormCsvResponseBase Create1099Form (Create1099FormRequest requestParameters) + +# **Call1099FormsPost** +> Form1099OneOf Call1099FormsPost (Call1099FormsPostRequest requestParameters) -Create a 1099 form. +Create a new 1099 form + +This endpoint allows users to create a new 1099 form. ### Example ```csharp @@ -114,7 +118,7 @@ using Avalara.SDK.Model.A1099.V2; namespace Example { - public class Create1099FormExample + public class Call1099FormsPostExample { public static void Main() { @@ -125,20 +129,21 @@ namespace Example ApiClient apiClient= new ApiClient(config); var apiInstance = new Class1099FormsApi(apiClient); - var requestParameters = new Create1099FormRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 8bf839e2-8bdd-4ec9-bccc-0490107cec27; // string | Unique correlation Id in a GUID format - requestParameters.Update1099FormRequest = new Update1099FormRequest(); // Update1099FormRequest | (optional) + var requestParameters = new Call1099FormsPostRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.Form1099OneOf = new Form1099OneOf(); // Form1099OneOf | A request payload containing the details of the 1099 form to create. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Create a 1099 form. - FormCsvResponseBase result = apiInstance.Create1099Form(requestParameters); + // Create a new 1099 form + Form1099OneOf result = apiInstance.Call1099FormsPost(requestParameters); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling Class1099FormsApi.Create1099Form: " + e.Message ); + Debug.Print("Exception when calling Class1099FormsApi.Call1099FormsPost: " + e.Message ); Debug.Print("Status Code: "+ e.ErrorCode); Debug.Print(e.StackTrace); } @@ -151,13 +156,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **Update1099FormRequest** | [**Update1099FormRequest**](Update1099FormRequest.md)| | [optional] + **Form1099OneOf** | [**Form1099OneOf**](Form1099OneOf.md)| A request payload containing the details of the 1099 form to create. | + **XAvalaraClient** | **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] ### Return type -[**FormCsvResponseBase**](FormCsvResponseBase.md) +[**Form1099OneOf**](Form1099OneOf.md) ### Authorization @@ -165,17 +171,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Created | - | -| **400** | Bad Request | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **201** | Successfully created the 1099 form. | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **409** | Conflict | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) @@ -183,7 +189,9 @@ Name | Type | Description | Notes # **Delete1099Form** > void Delete1099Form (Delete1099FormRequest requestParameters) -Delete a 1099 form. +Delete a 1099 form + +This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. ### Example ```csharp @@ -208,13 +216,14 @@ namespace Example var apiInstance = new Class1099FormsApi(apiClient); var requestParameters = new Delete1099FormRequest(); - requestParameters.Id = "id_example"; // string | - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 66bfc6d9-5e88-4b44-b7f8-7c06092d0bb7; // string | Unique correlation Id in a GUID format + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.FormId = "formId_example"; // string | The unique identifier of the form to delete. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Delete a 1099 form. + // Delete a 1099 form apiInstance.Delete1099Form(requestParameters); } catch (ApiException e) @@ -232,9 +241,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| | - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **FormId** | **string**| The unique identifier of the form to delete. | + **XAvalaraClient** | **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] ### Return type @@ -253,19 +263,105 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | No Content | - | -| **400** | Bad Request | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **204** | No Content. The form was successfully deleted. | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + + +# **Download1099FormPDF** +> InititateDownloadOutputModel Download1099FormPDF (Download1099FormPDFRequest requestParameters) + +Submit a download job to retrieve PDF forms + +This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class Download1099FormPDFExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new Class1099FormsApi(apiClient); + var requestParameters = new Download1099FormPDFRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.InitiateDownloadInputModel = new InitiateDownloadInputModel(); // InitiateDownloadInputModel | A request payload containing parameters to filter forms. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + + try + { + // Submit a download job to retrieve PDF forms + InititateDownloadOutputModel result = apiInstance.Download1099FormPDF(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling Class1099FormsApi.Download1099FormPDF: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **InitiateDownloadInputModel** | [**InitiateDownloadInputModel**](InitiateDownloadInputModel.md)| A request payload containing parameters to filter forms. | + **XAvalaraClient** | **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] + +### Return type + +[**InititateDownloadOutputModel**](InititateDownloadOutputModel.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successfully created the download job. | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) # **Get1099Form** -> FormCsvResponseBase Get1099Form (Get1099FormRequest requestParameters) +> Form1099OneOf Get1099Form (Get1099FormRequest requestParameters) + +Get a single 1099 form -Retrieve a 1099 form. +This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. ### Example ```csharp @@ -290,14 +386,15 @@ namespace Example var apiInstance = new Class1099FormsApi(apiClient); var requestParameters = new Get1099FormRequest(); - requestParameters.Id = "id_example"; // string | - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 6c56abc7-b73a-4aff-bf62-c7a08915b262; // string | Unique correlation Id in a GUID format + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.FormId = form_1234567890; // string | The unique identifier of the form to retrieve. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Retrieve a 1099 form. - FormCsvResponseBase result = apiInstance.Get1099Form(requestParameters); + // Get a single 1099 form + Form1099OneOf result = apiInstance.Get1099Form(requestParameters); Debug.WriteLine(result); } catch (ApiException e) @@ -315,13 +412,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| | - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **FormId** | **string**| The unique identifier of the form to retrieve. | + **XAvalaraClient** | **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] ### Return type -[**FormCsvResponseBase**](FormCsvResponseBase.md) +[**Form1099OneOf**](Form1099OneOf.md) ### Authorization @@ -336,19 +434,20 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **200** | Success | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) # **List1099Forms** -> PaginatedFormCsvResponse List1099Forms (List1099FormsRequest requestParameters) +> List1099Forms200Response List1099Forms (List1099FormsRequest requestParameters) -Retrieve a list of 1099 forms based on query parameters. +List 1099 forms + +This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. ### Example ```csharp @@ -373,18 +472,19 @@ namespace Example var apiInstance = new Class1099FormsApi(apiClient); var requestParameters = new List1099FormsRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = bfc86bba-6798-406f-a0e6-dd06d048269b; // string | Unique correlation Id in a GUID format - requestParameters.Filter = "filter_example"; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + requestParameters.Filter = issuerReferenceId eq 'C-935801'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Filterable: issuerReferenceId, taxYear, federalEfile, federalEfileStatus, postalMail, postalMailStatus, stateEfile, stateEfileStatus, tinMatch, tinMatchStatus, addressVerification, addressVerificationStatus, referenceId, city, state, zip (optional) requestParameters.Top = 10; // int? | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional) (default to 10) requestParameters.Skip = 0; // int? | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) (default to 0) requestParameters.OrderBy = "orderBy_example"; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) - requestParameters.Count = true; // bool? | When true, returns a @recordSetCount in the result set (optional) + requestParameters.Count = "\"false\""; // bool? | Set true to request count of complete collection in response. (optional) (default to "false") try { - // Retrieve a list of 1099 forms based on query parameters. - PaginatedFormCsvResponse result = apiInstance.List1099Forms(requestParameters); + // List 1099 forms + List1099Forms200Response result = apiInstance.List1099Forms(requestParameters); Debug.WriteLine(result); } catch (ApiException e) @@ -402,17 +502,18 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **Filter** | **string**| 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] + **XAvalaraClient** | **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] + **Filter** | **string**| 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>. Filterable: issuerReferenceId, taxYear, federalEfile, federalEfileStatus, postalMail, postalMailStatus, stateEfile, stateEfileStatus, tinMatch, tinMatchStatus, addressVerification, addressVerificationStatus, referenceId, city, state, zip | [optional] **Top** | **int?**| If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. | [optional] [default to 10] **Skip** | **int?**| If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. | [optional] [default to 0] **OrderBy** | **string**| A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. | [optional] - **Count** | **bool?**| When true, returns a @recordSetCount in the result set | [optional] + **Count** | **bool?**| Set true to request count of complete collection in response. | [optional] [default to "false"] ### Return type -[**PaginatedFormCsvResponse**](PaginatedFormCsvResponse.md) +[**List1099Forms200Response**](List1099Forms200Response.md) ### Authorization @@ -427,19 +528,20 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **200** | Success | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **409** | Conflict | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) # **Update1099Form** -> FormCsvResponseBase Update1099Form (Update1099FormRequest requestParameters) +> Form1099OneOf Update1099Form (Update1099FormRequest requestParameters) + +Update an existing form. -Update a 1099 form. +This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. ### Example ```csharp @@ -464,15 +566,15 @@ namespace Example var apiInstance = new Class1099FormsApi(apiClient); var requestParameters = new Update1099FormRequest(); - requestParameters.Id = "id_example"; // string | - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 239c86c8-5568-4780-a2e2-b5c4388b9cbc; // string | Unique correlation Id in a GUID format - requestParameters.Update1099FormRequest = new Update1099FormRequest(); // Update1099FormRequest | (optional) + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.Form1099OneOf = new Form1099OneOf(); // Form1099OneOf | A request payload containing the updated details of the 1099 form. + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Update a 1099 form. - FormCsvResponseBase result = apiInstance.Update1099Form(requestParameters); + // Update an existing form. + Form1099OneOf result = apiInstance.Update1099Form(requestParameters); Debug.WriteLine(result); } catch (ApiException e) @@ -490,14 +592,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| | - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **Update1099FormRequest** | [**Update1099FormRequest**](Update1099FormRequest.md)| | [optional] + **Form1099OneOf** | [**Form1099OneOf**](Form1099OneOf.md)| A request payload containing the updated details of the 1099 form. | + **XAvalaraClient** | **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] ### Return type -[**FormCsvResponseBase**](FormCsvResponseBase.md) +[**Form1099OneOf**](Form1099OneOf.md) ### Authorization @@ -505,18 +607,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Unauthorized | - | +| **200** | Success. The 1099 form was successfully updated. | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/Class1099IssuersApi.md b/docs/A1099/V2/Class1099IssuersApi.md index 715161b..e8d9bfb 100644 --- a/docs/A1099/V2/Class1099IssuersApi.md +++ b/docs/A1099/V2/Class1099IssuersApi.md @@ -1,21 +1,21 @@ # Avalara.SDK.Api.A1099.V2.Class1099IssuersApi -All URIs are relative to *https://api-ava1099.gamma.qa.us-west-2.aws.avalara.io/avalara1099* +All URIs are relative to *https://api.avalara.com/avalara1099* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateIssuer**](Class1099IssuersApi.md#createissuer) | **POST** /1099/issuers | Create an issuer -[**DeleteIssuer**](Class1099IssuersApi.md#deleteissuer) | **DELETE** /1099/issuers/{id} | Delete an issuer -[**GetIssuer**](Class1099IssuersApi.md#getissuer) | **GET** /1099/issuers/{id} | Get an issuer +[**CreateIssuer**](Class1099IssuersApi.md#createissuer) | **POST** /1099/issuers | Create a new issuer +[**DeleteIssuer**](Class1099IssuersApi.md#deleteissuer) | **DELETE** /1099/issuers/{issuerId} | Delete an issuer +[**GetIssuer**](Class1099IssuersApi.md#getissuer) | **GET** /1099/issuers/{issuerId} | Get a single issuer [**ListIssuers**](Class1099IssuersApi.md#listissuers) | **GET** /1099/issuers | List issuers -[**UpdateIssuer**](Class1099IssuersApi.md#updateissuer) | **PUT** /1099/issuers/{id} | Update an issuer +[**UpdateIssuer**](Class1099IssuersApi.md#updateissuer) | **PUT** /1099/issuers/{issuerId} | Update an issuer # **CreateIssuer** > IssuerModel CreateIssuer (CreateIssuerRequest requestParameters) -Create an issuer +Create a new issuer Create a new issuer @@ -42,13 +42,14 @@ namespace Example var apiInstance = new Class1099IssuersApi(apiClient); var requestParameters = new CreateIssuerRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 8f69b6ed-8673-465b-94f4-6e8469145e40; // string | Unique correlation Id in a GUID format + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) requestParameters.IssuerModel = new IssuerModel(); // IssuerModel | The issuer to create (optional) try { - // Create an issuer + // Create a new issuer IssuerModel result = apiInstance.CreateIssuer(requestParameters); Debug.WriteLine(result); } @@ -67,8 +68,9 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] **IssuerModel** | [**IssuerModel**](IssuerModel.md)| The issuer to create | [optional] ### Return type @@ -81,16 +83,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json, application/*+json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Created issuer | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **401** | Authentication failed | - | +| **201** | Created issuer | * Location - The location of the created W9 Company
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) @@ -100,7 +102,7 @@ Name | Type | Description | Notes Delete an issuer -Delete an issuer +Delete a single issuer by id ### Example ```csharp @@ -125,9 +127,10 @@ namespace Example var apiInstance = new Class1099IssuersApi(apiClient); var requestParameters = new DeleteIssuerRequest(); - requestParameters.Id = "id_example"; // string | Id of the issuer to delete - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = dec9a586-b124-47b9-bf77-44ddeca2bb3d; // string | Unique correlation Id in a GUID format + requestParameters.IssuerId = "issuerId_example"; // string | Id of the issuer to delete + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { @@ -149,9 +152,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| Id of the issuer to delete | - **AvalaraVersion** | **string**| API version | + **IssuerId** | **string**| Id of the issuer to delete | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] ### Return type @@ -171,8 +175,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Empty response | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **401** | Authentication failed | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) @@ -180,9 +185,9 @@ void (empty response body) # **GetIssuer** > IssuerModel GetIssuer (GetIssuerRequest requestParameters) -Get an issuer +Get a single issuer -Get an issuer +Get a single issuer by id ### Example ```csharp @@ -207,13 +212,14 @@ namespace Example var apiInstance = new Class1099IssuersApi(apiClient); var requestParameters = new GetIssuerRequest(); - requestParameters.Id = "id_example"; // string | - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 0fc7594e-d5fd-40b1-8567-377c117eb678; // string | Unique correlation Id in a GUID format + requestParameters.IssuerId = "issuerId_example"; // string | + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { - // Get an issuer + // Get a single issuer IssuerModel result = apiInstance.GetIssuer(requestParameters); Debug.WriteLine(result); } @@ -232,9 +238,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| | - **AvalaraVersion** | **string**| API version | + **IssuerId** | **string**| | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] ### Return type @@ -254,18 +261,18 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Single issuer | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **401** | Authentication failed | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) # **ListIssuers** -> PaginatedQueryResultModelIssuerModel ListIssuers (ListIssuersRequest requestParameters) +> IssuerModelPaginatedQueryResultModel ListIssuers (ListIssuersRequest requestParameters) List issuers -List issuers for a given tax year. Filterable fields are name, referenceId and taxYear +List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear ### Example ```csharp @@ -290,18 +297,19 @@ namespace Example var apiInstance = new Class1099IssuersApi(apiClient); var requestParameters = new ListIssuersRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = fc881b6b-f990-459c-85e8-4c9cb4ff6ea5; // string | Unique correlation Id in a GUID format - requestParameters.Filter = "filter_example"; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.Filter = referenceId eq '100089'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Filterable: name, nameDba, referenceId, taxYear (optional) requestParameters.Top = 10; // int? | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional) (default to 10) requestParameters.Skip = 0; // int? | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) (default to 0) requestParameters.OrderBy = "orderBy_example"; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) - requestParameters.Count = true; // bool? | When true, returns a @recordSetCount in the result set (optional) + requestParameters.Count = "\"false\""; // bool? | Set true to request count of complete collection in response. (optional) (default to "false") + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) try { // List issuers - PaginatedQueryResultModelIssuerModel result = apiInstance.ListIssuers(requestParameters); + IssuerModelPaginatedQueryResultModel result = apiInstance.ListIssuers(requestParameters); Debug.WriteLine(result); } catch (ApiException e) @@ -319,17 +327,18 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **Filter** | **string**| 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] + **Filter** | **string**| 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>. Filterable: name, nameDba, referenceId, taxYear | [optional] **Top** | **int?**| If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. | [optional] [default to 10] **Skip** | **int?**| If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. | [optional] [default to 0] **OrderBy** | **string**| A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. | [optional] - **Count** | **bool?**| When true, returns a @recordSetCount in the result set | [optional] + **Count** | **bool?**| Set true to request count of complete collection in response. | [optional] [default to "false"] + **XAvalaraClient** | **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] ### Return type -[**PaginatedQueryResultModelIssuerModel**](PaginatedQueryResultModelIssuerModel.md) +[**IssuerModelPaginatedQueryResultModel**](IssuerModelPaginatedQueryResultModel.md) ### Authorization @@ -345,8 +354,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of issuers | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **401** | Authentication failed | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) @@ -356,7 +365,7 @@ Name | Type | Description | Notes Update an issuer -Update an existing issuer +Update an existing issuer by id ### Example ```csharp @@ -381,9 +390,10 @@ namespace Example var apiInstance = new Class1099IssuersApi(apiClient); var requestParameters = new UpdateIssuerRequest(); - requestParameters.Id = "id_example"; // string | Id of the issuer to Update - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 720150d9-3de7-414e-8a86-13a7ae36f169; // string | Unique correlation Id in a GUID format + requestParameters.IssuerId = "issuerId_example"; // string | Id of the issuer to Update + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) requestParameters.IssuerModel = new IssuerModel(); // IssuerModel | The issuer to update (optional) try @@ -406,9 +416,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Id** | **string**| Id of the issuer to Update | - **AvalaraVersion** | **string**| API version | + **IssuerId** | **string**| Id of the issuer to Update | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] **IssuerModel** | [**IssuerModel**](IssuerModel.md)| The issuer to update | [optional] ### Return type @@ -421,7 +432,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json - **Accept**: application/json @@ -429,9 +440,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Issuer updated | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **401** | Unauthorized | - | -| **404** | Resource Not Found | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/CompanyModel.md b/docs/A1099/V2/CompanyModel.md index af1bd8e..167325f 100644 --- a/docs/A1099/V2/CompanyModel.md +++ b/docs/A1099/V2/CompanyModel.md @@ -5,27 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | Company ID | [optional] -**UserId** | **long** | User ID associated with the company | [optional] -**AccountId** | **long** | Account ID associated with the company | [optional] +**UserId** | **string** | User ID associated with the company | [optional] +**Name** | **string** | Legal company name | [optional] +**Email** | **string** | Company email address | [optional] +**ShippingAddress** | **string** | Shipping address | [optional] +**City** | **string** | City | [optional] +**State** | **string** | State code | [optional] +**Zip** | **string** | ZIP/Postal code | [optional] +**Telephone** | **string** | Phone number | [optional] +**Tin** | **string** | Tax identification number | [optional] +**DbaName** | **string** | DBA (Doing Business As) name | [optional] +**AccountId** | **string** | Account ID associated with the company | [optional] +**ReferenceId** | **string** | Optional identifier for reference | [optional] +**DoTinMatch** | **bool** | Flag indicating whether to perform TIN matching | [optional] +**GroupName** | **string** | Group Name associated with the company | [optional] +**ForeignProvince** | **string** | Foreign province for non-US addresses | [optional] +**ShippingCountryCode** | **string** | Shipping country code | [optional] +**ResendRequests** | **bool** | Flag indicating whether to resend requests | [optional] +**ResendIntervalDays** | **int?** | Interval in days for resending requests | [optional] +**MaxReminderAttempts** | **int?** | Maximum number of reminder attempts | [optional] **CreatedAt** | **DateTime** | Record creation timestamp | [optional] **UpdatedAt** | **DateTime** | Record last update timestamp | [optional] -**Name** | **string** | | [optional] -**Email** | **string** | | [optional] -**Address** | **string** | | [optional] -**City** | **string** | | [optional] -**State** | **string** | | [optional] -**Zip** | **string** | | [optional] -**Telephone** | **string** | | [optional] -**Tin** | **string** | | [optional] -**DbaName** | **string** | | [optional] -**ReferenceId** | **string** | | [optional] -**DoTinMatch** | **bool** | | [optional] -**GroupName** | **string** | | [optional] -**ForeignProvince** | **string** | | [optional] -**CountryCode** | **string** | | [optional] -**ResendRequests** | **bool** | | [optional] -**ResendIntervalDays** | **int?** | | [optional] -**MaxReminderAttempts** | **int?** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/FederalEfileStatus.md b/docs/A1099/V2/FederalEfileStatus.md new file mode 100644 index 0000000..464e4b9 --- /dev/null +++ b/docs/A1099/V2/FederalEfileStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.FederalEfileStatus +The status of federal e-filing. ONLY USED ON RESPONSES. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099BaseModel.md b/docs/A1099/V2/Form1099BaseModel.md new file mode 100644 index 0000000..bd3155e --- /dev/null +++ b/docs/A1099/V2/Form1099BaseModel.md @@ -0,0 +1,40 @@ +# Avalara.SDK.Model.A1099.V2.Form1099BaseModel +Resource data model for Form 1099-NEC, capturing details about issuer, recipient, and filing statuses. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [readonly] +**IssuerId** | **string** | The ID of the issuer. | +**IssuerReferenceId** | **string** | Unique reference ID of the issuer | [optional] +**IssuerTin** | **string** | The Taxpayer Identification Number of the issuer. | [optional] +**TaxYear** | **int** | The tax year for the form in the format CCYY | [optional] +**FederalEfile** | **bool** | When upserting, this declares whether or not to federal e-file this form. | [optional] +**FederalEfileStatus** | [**Form1099BaseModelFederalEfileStatus**](Form1099BaseModelFederalEfileStatus.md) | | [optional] +**PostalMail** | **bool** | When upserting, this declares whether or not to postal mail this form to the recipient. | [optional] +**PostalMailStatus** | [**Form1099BaseModelPostalMailStatus**](Form1099BaseModelPostalMailStatus.md) | | [optional] +**StateEfile** | **bool** | When upserting, this declares whether or not to state e-file this form. | [optional] +**StateEfileStatuses** | [**List<StateEfileStatusesInner>**](StateEfileStatusesInner.md) | The status of state e-filing. ONLY USED ON RESPONSES. | [optional] +**TinMatch** | **bool** | When upserting this declares whether or not to TIN match this form. | [optional] +**TinMatchStatus** | [**TinMatchStatus**](TinMatchStatus.md) | | [optional] +**AddressVerification** | **bool** | When upserting, this declares whether or not to perform address verification for this form. | [optional] +**AddressVerificationStatus** | [**AddressVerificationStatus**](AddressVerificationStatus.md) | | [optional] +**ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | +**RecipientName** | **string** | Legal name of the recipient | +**FederalIdType** | **string** | The type of federal ID provided by the recipient. | [optional] +**RecipientFederalIdNo** | **string** | The federal ID number of the recipient. | +**RecipientSecondName** | **string** | The second name of the recipient, if applicable. | [optional] +**StreetAddress** | **string** | The street address of the recipient. | [optional] +**StreetAddressLine2** | **string** | The second line of the street address, if applicable. | [optional] +**City** | **string** | The city of the recipient. | [optional] +**State** | **string** | The state of the recipient. | +**Zip** | **string** | The ZIP code of the recipient. | +**ForeignProvince** | **string** | The foreign province, if applicable. | [optional] +**CountryCode** | **string** | The country code of the recipient. | +**RecipientEmail** | **string** | The email address of the recipient. | [optional] +**AcctNo** | **string** | The account number associated with the form. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099BaseModelFederalEfileStatus.md b/docs/A1099/V2/Form1099BaseModelFederalEfileStatus.md new file mode 100644 index 0000000..76ef147 --- /dev/null +++ b/docs/A1099/V2/Form1099BaseModelFederalEfileStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.Form1099BaseModelFederalEfileStatus +The status of federal e-filing. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099BaseModelPostalMailStatus.md b/docs/A1099/V2/Form1099BaseModelPostalMailStatus.md new file mode 100644 index 0000000..520719a --- /dev/null +++ b/docs/A1099/V2/Form1099BaseModelPostalMailStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.Form1099BaseModelPostalMailStatus +The status of postal mail delivery. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099MiscModel.md b/docs/A1099/V2/Form1099MiscModel.md new file mode 100644 index 0000000..3ed8529 --- /dev/null +++ b/docs/A1099/V2/Form1099MiscModel.md @@ -0,0 +1,56 @@ +# Avalara.SDK.Model.A1099.V2.Form1099MiscModel +Resource data model for Form 1099-MISC, capturing details about various income types and withholding. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **Object** | | [optional] +**Rents** | **double** | Amount of rents. | [optional] +**Royalties** | **double** | Amount of royalties. | [optional] +**OtherIncome** | **double** | Amount of other income. | [optional] +**FedIncomeTaxWithheld** | **double** | Amount of federal income tax withheld. | [optional] +**FishingBoatProceeds** | **double** | Proceeds from fishing boats. | [optional] +**MedicalAndHealthCare** | **double** | Amount of medical and healthcare payments. | [optional] +**ForResale** | **string** | Indicates whether the payment is for resale purposes. | [optional] +**SubstitutePayments** | **double** | Amount of substitute payments. | [optional] +**CropInsuranceProceeds** | **double** | Crop insurance proceeds. | [optional] +**GrossProceedsPaidToAnAttorney** | **double** | Gross proceeds paid to an attorney. | [optional] +**FishPurchasedForResale** | **double** | Amount of fish purchased for resale. | [optional] +**Section409aDeferrals** | **double?** | Section 409A deferrals. | [optional] +**FatcaFilingReqt** | **string** | FATCA filing requirement indicator. | [optional] +**ExcessGoldenParachutePayments** | **double** | Excess golden parachute payments. | [optional] +**NonqualifiedDeferredCompensation** | **double?** | Nonqualified deferred compensation. | [optional] +**StateWithholding** | [**StateWithholding**](StateWithholding.md) | | [optional] +**IssuerId** | **string** | The ID of the issuer. | +**IssuerReferenceId** | **string** | Unique reference ID of the issuer | [optional] +**IssuerTin** | **string** | The Taxpayer Identification Number of the issuer. | [optional] +**TaxYear** | **int** | The tax year for the form in the format CCYY | [optional] +**FederalEfile** | **bool** | When upserting, this declares whether or not to federal e-file this form. | [optional] +**FederalEfileStatus** | [**Form1099BaseModelFederalEfileStatus**](Form1099BaseModelFederalEfileStatus.md) | | [optional] +**PostalMail** | **bool** | When upserting, this declares whether or not to postal mail this form to the recipient. | [optional] +**PostalMailStatus** | [**Form1099BaseModelPostalMailStatus**](Form1099BaseModelPostalMailStatus.md) | | [optional] +**StateEfile** | **bool** | When upserting, this declares whether or not to state e-file this form. | [optional] +**StateEfileStatuses** | [**List<StateEfileStatusesInner>**](StateEfileStatusesInner.md) | The status of state e-filing. ONLY USED ON RESPONSES. | [optional] +**TinMatch** | **bool** | When upserting this declares whether or not to TIN match this form. | [optional] +**TinMatchStatus** | [**TinMatchStatus**](TinMatchStatus.md) | | [optional] +**AddressVerification** | **bool** | When upserting, this declares whether or not to perform address verification for this form. | [optional] +**AddressVerificationStatus** | [**AddressVerificationStatus**](AddressVerificationStatus.md) | | [optional] +**ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | +**RecipientName** | **string** | Legal name of the recipient | +**FederalIdType** | **string** | The type of federal ID provided by the recipient. | [optional] +**RecipientFederalIdNo** | **string** | The federal ID number of the recipient. | +**RecipientSecondName** | **string** | The second name of the recipient, if applicable. | [optional] +**StreetAddress** | **string** | The street address of the recipient. | [optional] +**StreetAddressLine2** | **string** | The second line of the street address, if applicable. | [optional] +**City** | **string** | The city of the recipient. | [optional] +**State** | **string** | The state of the recipient. | +**Zip** | **string** | The ZIP code of the recipient. | +**ForeignProvince** | **string** | The foreign province, if applicable. | [optional] +**CountryCode** | **string** | The country code of the recipient. | +**RecipientEmail** | **string** | The email address of the recipient. | [optional] +**AcctNo** | **string** | The account number associated with the form. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099NecModel.md b/docs/A1099/V2/Form1099NecModel.md new file mode 100644 index 0000000..def8948 --- /dev/null +++ b/docs/A1099/V2/Form1099NecModel.md @@ -0,0 +1,44 @@ +# Avalara.SDK.Model.A1099.V2.Form1099NecModel +Form 1099-NEC for non-employee compensation. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **Object** | | [optional] +**NonemployeeCompensation** | **double** | The non-employee compensation reported in box 1. | [optional] +**ForResale** | **bool** | Indicates if the amount was for resale purposes. | [optional] +**FederalIncomeTaxWithheld** | **double?** | The amount of federal income tax withheld, if any. | [optional] +**StateWithholding** | [**StateWithholding**](StateWithholding.md) | | [optional] +**IssuerId** | **string** | The ID of the issuer. | +**IssuerReferenceId** | **string** | Unique reference ID of the issuer | [optional] +**IssuerTin** | **string** | The Taxpayer Identification Number of the issuer. | [optional] +**TaxYear** | **int** | The tax year for the form in the format CCYY | [optional] +**FederalEfile** | **bool** | When upserting, this declares whether or not to federal e-file this form. | [optional] +**FederalEfileStatus** | [**Form1099BaseModelFederalEfileStatus**](Form1099BaseModelFederalEfileStatus.md) | | [optional] +**PostalMail** | **bool** | When upserting, this declares whether or not to postal mail this form to the recipient. | [optional] +**PostalMailStatus** | [**Form1099BaseModelPostalMailStatus**](Form1099BaseModelPostalMailStatus.md) | | [optional] +**StateEfile** | **bool** | When upserting, this declares whether or not to state e-file this form. | [optional] +**StateEfileStatuses** | [**List<StateEfileStatusesInner>**](StateEfileStatusesInner.md) | The status of state e-filing. ONLY USED ON RESPONSES. | [optional] +**TinMatch** | **bool** | When upserting this declares whether or not to TIN match this form. | [optional] +**TinMatchStatus** | [**TinMatchStatus**](TinMatchStatus.md) | | [optional] +**AddressVerification** | **bool** | When upserting, this declares whether or not to perform address verification for this form. | [optional] +**AddressVerificationStatus** | [**AddressVerificationStatus**](AddressVerificationStatus.md) | | [optional] +**ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | +**RecipientName** | **string** | Legal name of the recipient | +**FederalIdType** | **string** | The type of federal ID provided by the recipient. | [optional] +**RecipientFederalIdNo** | **string** | The federal ID number of the recipient. | +**RecipientSecondName** | **string** | The second name of the recipient, if applicable. | [optional] +**StreetAddress** | **string** | The street address of the recipient. | [optional] +**StreetAddressLine2** | **string** | The second line of the street address, if applicable. | [optional] +**City** | **string** | The city of the recipient. | [optional] +**State** | **string** | The state of the recipient. | +**Zip** | **string** | The ZIP code of the recipient. | +**ForeignProvince** | **string** | The foreign province, if applicable. | [optional] +**CountryCode** | **string** | The country code of the recipient. | +**RecipientEmail** | **string** | The email address of the recipient. | [optional] +**AcctNo** | **string** | The account number associated with the form. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/Form1099OneOf.md b/docs/A1099/V2/Form1099OneOf.md new file mode 100644 index 0000000..2b9c843 --- /dev/null +++ b/docs/A1099/V2/Form1099OneOf.md @@ -0,0 +1,58 @@ +# Avalara.SDK.Model.A1099.V2.Form1099OneOf +1099 form + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [readonly] +**NonemployeeCompensation** | **double** | The non-employee compensation reported in box 1. | [optional] +**ForResale** | **string** | Indicates whether the payment is for resale purposes. | [optional] +**FederalIncomeTaxWithheld** | **double?** | The amount of federal income tax withheld, if any. | [optional] +**StateWithholding** | [**StateWithholding**](StateWithholding.md) | | [optional] +**IssuerId** | **string** | The ID of the issuer. | +**IssuerReferenceId** | **string** | Unique reference ID of the issuer | [optional] +**IssuerTin** | **string** | The Taxpayer Identification Number of the issuer. | [optional] +**TaxYear** | **int** | The tax year for the form in the format CCYY | [optional] +**FederalEfile** | **bool** | When upserting, this declares whether or not to federal e-file this form. | [optional] +**FederalEfileStatus** | [**Form1099BaseModelFederalEfileStatus**](Form1099BaseModelFederalEfileStatus.md) | | [optional] +**PostalMail** | **bool** | When upserting, this declares whether or not to postal mail this form to the recipient. | [optional] +**PostalMailStatus** | [**Form1099BaseModelPostalMailStatus**](Form1099BaseModelPostalMailStatus.md) | | [optional] +**StateEfile** | **bool** | When upserting, this declares whether or not to state e-file this form. | [optional] +**StateEfileStatuses** | [**List<StateEfileStatusesInner>**](StateEfileStatusesInner.md) | The status of state e-filing. ONLY USED ON RESPONSES. | [optional] +**TinMatch** | **bool** | When upserting this declares whether or not to TIN match this form. | [optional] +**TinMatchStatus** | [**TinMatchStatus**](TinMatchStatus.md) | | [optional] +**AddressVerification** | **bool** | When upserting, this declares whether or not to perform address verification for this form. | [optional] +**AddressVerificationStatus** | [**AddressVerificationStatus**](AddressVerificationStatus.md) | | [optional] +**ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | +**RecipientName** | **string** | Legal name of the recipient | +**FederalIdType** | **string** | The type of federal ID provided by the recipient. | [optional] +**RecipientFederalIdNo** | **string** | The federal ID number of the recipient. | +**RecipientSecondName** | **string** | The second name of the recipient, if applicable. | [optional] +**StreetAddress** | **string** | The street address of the recipient. | [optional] +**StreetAddressLine2** | **string** | The second line of the street address, if applicable. | [optional] +**City** | **string** | The city of the recipient. | [optional] +**State** | **string** | The state of the recipient. | +**Zip** | **string** | The ZIP code of the recipient. | +**ForeignProvince** | **string** | The foreign province, if applicable. | [optional] +**CountryCode** | **string** | The country code of the recipient. | +**RecipientEmail** | **string** | The email address of the recipient. | [optional] +**AcctNo** | **string** | The account number associated with the form. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] +**Rents** | **double** | Amount of rents. | [optional] +**Royalties** | **double** | Amount of royalties. | [optional] +**OtherIncome** | **double** | Amount of other income. | [optional] +**FedIncomeTaxWithheld** | **double** | Amount of federal income tax withheld. | [optional] +**FishingBoatProceeds** | **double** | Proceeds from fishing boats. | [optional] +**MedicalAndHealthCare** | **double** | Amount of medical and healthcare payments. | [optional] +**SubstitutePayments** | **double** | Amount of substitute payments. | [optional] +**CropInsuranceProceeds** | **double** | Crop insurance proceeds. | [optional] +**GrossProceedsPaidToAnAttorney** | **double** | Gross proceeds paid to an attorney. | [optional] +**FishPurchasedForResale** | **double** | Amount of fish purchased for resale. | [optional] +**Section409aDeferrals** | **double?** | Section 409A deferrals. | [optional] +**FatcaFilingReqt** | **string** | FATCA filing requirement indicator. | [optional] +**ExcessGoldenParachutePayments** | **double** | Excess golden parachute payments. | [optional] +**NonqualifiedDeferredCompensation** | **double?** | Nonqualified deferred compensation. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/FormRequestModel.md b/docs/A1099/V2/FormRequestModel.md index b510884..e648df6 100644 --- a/docs/A1099/V2/FormRequestModel.md +++ b/docs/A1099/V2/FormRequestModel.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **string** | | [optional] **Type** | **string** | | [optional] **FormType** | **string** | \"W9\" is currently the only supported value | [optional] -**CompanyId** | **int** | Track1099's ID of your company, found in the W-9 UI | [optional] +**CompanyId** | **string** | Track1099's ID of your company, found in the W-9 UI | [optional] **CompanyName** | **string** | Name of your company, set in the W-9 UI | [optional] **CompanyEmail** | **string** | Contact email of your company, set in the W-9 UI | [optional] **ReferenceId** | **string** | Your internal identifier for the vendor from whom you are requesting a form | [optional] diff --git a/docs/A1099/V2/GenericPaginatedModel.md b/docs/A1099/V2/GenericPaginatedModel.md new file mode 100644 index 0000000..cd7b981 --- /dev/null +++ b/docs/A1099/V2/GenericPaginatedModel.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.GenericPaginatedModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordsetCount** | **decimal** | | [optional] +**NextLink** | **string** | | [optional] +**Value** | **List<Object>** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/GetW9Form200Response.md b/docs/A1099/V2/GetW9Form200Response.md new file mode 100644 index 0000000..be8e7ea --- /dev/null +++ b/docs/A1099/V2/GetW9Form200Response.md @@ -0,0 +1,232 @@ +# Avalara.SDK.Model.A1099.V2.GetW9Form200Response +Resource data model for /w9/forms API + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] [readonly] +**SignedDate** | **DateTime?** | The date the form was signed. | [optional] +**CreatedAt** | **DateTime?** | The creation date of the form. | [optional] +**EmployeeFirstName** | **string** | The first name of the employee. | [optional] +**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] +**EmployeeLastName** | **string** | The last name of the employee. | [optional] +**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] +**Address** | **string** | The address of the individual or entity. | [optional] +**City** | **string** | The city of the address. | [optional] +**State** | **string** | The state of the address. | [optional] +**Zip** | **string** | The ZIP code of the address. | [optional] +**TypeOfTin** | **string** | The type of TIN provided. | [optional] +**Tin** | **string** | The taxpayer identification number (TIN). | [optional] +**MaritalStatus** | **string** | The marital status of the employee. | [optional] +**LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] +**NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] +**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] +**NonJobIncome** | **double?** | The amount of non-job income. | [optional] +**Deductions** | **double?** | The amount of deductions claimed. | [optional] +**AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] +**ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] +**EDeliveryConsentedAt** | **DateTime?** | The date when e-delivery was consented. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] +**ReferenceId** | **string** | A reference identifier for the form. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] +**DisplayName** | **string** | The display name associated with the form. | [optional] +**Email** | **string** | The email address of the individual associated with the form. | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] +**DisregardedEntityChapter4FatcaStatus** | **string** | The FATCA status for disregarded entities under Chapter 4. | [optional] +**Name** | **string** | The name of the individual or entity associated with the form. | [optional] +**ResidenceAddress** | **string** | The residential address of the individual or entity. | [optional] +**ResidenceCity** | **string** | The city of residence. | [optional] +**ResidenceState** | **string** | The state of residence. | [optional] +**ResidencePostalCode** | **string** | The postal code of the residence. | [optional] +**ResidenceCountry** | **string** | The country of residence. | [optional] +**MailingAddress** | **string** | The mailing address. | [optional] +**MailingCity** | **string** | The city of the mailing address. | [optional] +**MailingState** | **string** | The state of the mailing address. | [optional] +**MailingPostalCode** | **string** | The postal code of the mailing address. | [optional] +**MailingCountry** | **string** | The country of the mailing address. | [optional] +**DisregardedAddress** | **string** | The address for disregarded entities. | [optional] +**DisregardedCity** | **string** | The city for disregarded entities. | [optional] +**DisregardedState** | **string** | The state for disregarded entities. | [optional] +**DisregardedPostalCode** | **string** | The postal code for disregarded entities. | [optional] +**DisregardedCountry** | **string** | The country for disregarded entities. | [optional] +**ForeignTin** | **string** | The foreign taxpayer identification number (TIN). | [optional] +**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] +**ReferenceNumber** | **string** | A reference number for the form. | [optional] +**Giin** | **string** | The global intermediary identification number (GIIN). | [optional] +**Chapter3EntityType** | **string** | The Chapter 3 entity type. | [optional] +**Chapter4FatcaStatus** | **string** | The Chapter 4 FATCA status. | [optional] +**DisregardedEntity** | **string** | The disregarded entity information. | [optional] +**DisregardedEntityGiin** | **string** | The GIIN for disregarded entities. | [optional] +**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] +**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] +**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] +**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] +**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] +**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] +**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] +**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] +**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] +**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] +**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] +**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] +**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] +**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] +**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] +**SignerName** | **string** | The name of the signer of the form. | [optional] +**ResidenceIsMailing** | **bool?** | Indicates whether the residence address is also the mailing address. | [optional] +**CitizenshipCountry** | **string** | The country of citizenship. | [optional] +**MakingTreatyClaim** | **bool?** | | [optional] +**TreatyCountry** | **string** | The country for which the treaty applies. | [optional] +**TreatyArticle** | **string** | The specific article of the treaty being claimed. | [optional] +**WithholdingRate** | **string** | The withholding rate applied as per the treaty. | [optional] +**IncomeType** | **string** | The type of income covered by the treaty. | [optional] +**TreatyReasons** | **string** | The reasons for claiming treaty benefits. | [optional] +**CertifyBox14A** | **bool** | | [optional] +**CertifyBox14B** | **bool** | | [optional] +**CertifyBox14C** | **bool** | | [optional] +**CertifyBox171** | **bool** | | [optional] +**CertifyBox172** | **bool** | | [optional] +**CertifyBox18** | **bool** | | [optional] +**CertifyBox19** | **bool** | | [optional] +**CertifyBox21** | **bool** | | [optional] +**CertifyBox22** | **bool?** | Indicates certification for box 22. | [optional] +**CertifyBox23** | **bool** | | [optional] +**CertifyBox24A** | **bool?** | Indicates certification for box 24A. | [optional] +**CertifyBox24B** | **bool?** | Indicates certification for box 24B. | [optional] +**CertifyBox24C** | **bool?** | Indicates certification for box 24C. | [optional] +**CertifyBox24D** | **bool** | | [optional] +**CertifyBox25A** | **bool** | | [optional] +**CertifyBox25B** | **bool** | | [optional] +**CertifyBox25C** | **bool** | | [optional] +**CertifyBox26** | **bool?** | Indicates certification for box 26. | [optional] +**CertifyBox27** | **bool** | | [optional] +**CertifyBox28A** | **bool** | | [optional] +**CertifyBox28B** | **bool** | | [optional] +**CertifyBox29A** | **bool** | | [optional] +**CertifyBox29B** | **bool** | | [optional] +**CertifyBox29C** | **bool** | | [optional] +**CertifyBox29D** | **bool** | | [optional] +**CertifyBox29E** | **bool** | | [optional] +**CertifyBox29F** | **bool** | | [optional] +**CertifyBox30** | **bool** | | [optional] +**CertifyBox31** | **bool?** | Indicates certification for box 31. | [optional] +**CertifyBox32** | **bool?** | Indicates certification for box 32. | [optional] +**CertifyBox33** | **bool** | | [optional] +**CertifyBox34** | **bool?** | Indicates certification for box 34. | [optional] +**CertifyBox35** | **bool?** | Indicates certification for box 35. | [optional] +**CertifyBox36** | **bool?** | Indicates certification for box 36. | [optional] +**CertifyBox37A** | **bool?** | Indicates certification for box 37A. | [optional] +**CertifyBox37B** | **bool?** | Indicates certification for box 37B. | [optional] +**CertifyBox38** | **bool?** | Indicates certification for box 38. | [optional] +**CertifyBox39** | **bool?** | Indicates certification for box 39. | [optional] +**CertifyBox40A** | **bool** | | [optional] +**CertifyBox40B** | **bool** | | [optional] +**CertifyBox40C** | **bool** | | [optional] +**CertifyBox41** | **bool** | | [optional] +**CertifyBox43** | **bool** | | [optional] +**CertifyPart29Signature** | **bool** | | [optional] +**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] +**Part20FilingDate** | **DateTime?** | | [optional] +**Part21DeterminationDate** | **DateTime?** | | [optional] +**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] +**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] +**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] +**Ein** | **string** | The employer identification number (EIN). | [optional] +**EinType** | **string** | The type of employer identification number (EIN). | [optional] +**CertifyBox14** | **bool?** | Indicates certification for box 14. | [optional] +**CertifyBox15A** | **bool?** | Indicates certification for box 15A. | [optional] +**CertifyBox15B** | **bool?** | Indicates certification for box 15B. | [optional] +**CertifyBox15C** | **bool?** | Indicates certification for box 15C. | [optional] +**CertifyBox15D** | **bool?** | Indicates certification for box 15D. | [optional] +**CertifyBox15E** | **bool?** | Indicates certification for box 15E. | [optional] +**CertifyBox15F** | **bool?** | Indicates certification for box 15F. | [optional] +**CertifyBox15G** | **bool?** | Indicates certification for box 15G. | [optional] +**CertifyBox15H** | **bool?** | Indicates certification for box 15H. | [optional] +**CertifyBox15I** | **bool?** | Indicates certification for box 15I. | [optional] +**CertifyBox16A** | **bool?** | Indicates certification for box 16A. | [optional] +**Box16BQddCorporate** | **bool?** | Indicates certification for box 16B as a QDD corporate entity. | [optional] +**Box16BQddPartnership** | **bool?** | Indicates certification for box 16B as a QDD partnership. | [optional] +**Box16BQddDisregardedEntity** | **bool?** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] +**CertifyBox17A** | **bool?** | Indicates certification for box 17A. | [optional] +**CertifyBox17B** | **bool?** | Indicates certification for box 17B. | [optional] +**CertifyBox17C** | **bool?** | Indicates certification for box 17C. | [optional] +**CertifyBox17D** | **bool?** | Indicates certification for box 17D. | [optional] +**CertifyBox17E** | **bool?** | Indicates certification for box 17E. | [optional] +**CertifyBox18A** | **bool?** | Indicates certification for box 18A. | [optional] +**CertifyBox18B** | **bool?** | Indicates certification for box 18B. | [optional] +**CertifyBox18C** | **bool?** | Indicates certification for box 18C. | [optional] +**CertifyBox18D** | **bool?** | Indicates certification for box 18D. | [optional] +**CertifyBox18E** | **bool?** | Indicates certification for box 18E. | [optional] +**CertifyBox18F** | **bool?** | Indicates certification for box 18F. | [optional] +**CertifyBox19A** | **bool?** | Indicates certification for box 19A. | [optional] +**CertifyBox19B** | **bool?** | Indicates certification for box 19B. | [optional] +**CertifyBox19C** | **bool?** | Indicates certification for box 19C. | [optional] +**CertifyBox19D** | **bool?** | Indicates certification for box 19D. | [optional] +**CertifyBox19E** | **bool?** | Indicates certification for box 19E. | [optional] +**CertifyBox19F** | **bool?** | Indicates certification for box 19F. | [optional] +**CertifyBox20** | **bool?** | Indicates certification for box 20. | [optional] +**CertifyBox21A** | **bool?** | Indicates certification for box 21A. | [optional] +**CertifyBox21B** | **bool?** | Indicates certification for box 21B. | [optional] +**CertifyBox21C** | **bool?** | Indicates certification for box 21C. | [optional] +**CertifyBox21D** | **bool?** | Indicates certification for box 21D. | [optional] +**CertifyBox21E** | **bool?** | Indicates certification for box 21E. | [optional] +**CertifyBox21F** | **bool?** | Indicates certification for box 21F. | [optional] +**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] +**CertifyBox23B** | **bool?** | Indicates certification for box 23B. | [optional] +**CertifyBox23C** | **bool?** | Indicates certification for box 23C. | [optional] +**CertifyBox25** | **bool?** | Indicates certification for box 25. | [optional] +**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] +**CertifyBox27B** | **bool?** | Indicates certification for box 27B. | [optional] +**CertifyBox28** | **bool?** | Indicates certification for box 28. | [optional] +**CertifyBox29** | **bool?** | Indicates certification for box 29. | [optional] +**CertifyBox30A** | **bool?** | Indicates certification for box 30A. | [optional] +**CertifyBox30B** | **bool?** | Indicates certification for box 30B. | [optional] +**CertifyBox30C** | **bool?** | Indicates certification for box 30C. | [optional] +**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] +**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] +**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] +**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] +**Box32TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for box 32. | [optional] +**CertifyBox33A** | **bool?** | Indicates certification for box 33A. | [optional] +**CertifyBox33B** | **bool?** | Indicates certification for box 33B. | [optional] +**CertifyBox33C** | **bool?** | Indicates certification for box 33C. | [optional] +**CertifyBox33D** | **bool?** | Indicates certification for box 33D. | [optional] +**CertifyBox33E** | **bool?** | Indicates certification for box 33E. | [optional] +**CertifyBox33F** | **bool?** | Indicates certification for box 33F. | [optional] +**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] +**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] +**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] +**CertifyBox40** | **bool?** | Indicates certification for box 40. | [optional] +**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] +**CertifyBox42** | **bool?** | Indicates certification for box 42. | [optional] +**Box35FormedOnDate** | **DateTime?** | | [optional] +**Box36FiledOnDate** | **DateTime?** | | [optional] +**TinMatchStatus** | **string** | The status of the TIN match. | [optional] +**BusinessClassification** | **string** | The classification of the business. | [optional] +**BusinessName** | **string** | The name of the business associated with the form. | [optional] +**BusinessOther** | **string** | | [optional] +**ExemptPayeeCode** | **string** | | [optional] +**ExemptFatcaCode** | **string** | | [optional] +**AccountNumber** | **string** | The account number associated with the form. | [optional] +**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] +**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] +**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] +**Is1099able** | **bool?** | | [optional] +**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/InitiateDownloadInputModel.md b/docs/A1099/V2/InitiateDownloadInputModel.md new file mode 100644 index 0000000..6ab0705 --- /dev/null +++ b/docs/A1099/V2/InitiateDownloadInputModel.md @@ -0,0 +1,23 @@ +# Avalara.SDK.Model.A1099.V2.InitiateDownloadInputModel +Resource data model for inititating a download job for 1099 forms. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] [readonly] +**IssuerId** | **string** | The ID of the issuer. | [optional] +**IssuerReferenceId** | **string** | A unique reference ID of the issuer | [optional] +**TaxYear** | **int** | The tax year for the form. | [optional] +**ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | [optional] +**FederalEfileStatus** | [**Form1099BaseModelFederalEfileStatus**](Form1099BaseModelFederalEfileStatus.md) | | [optional] +**PostalMailStatus** | **string** | | [optional] +**StateEfileStatus** | [**InitiateDownloadInputModelStateEfileStatus**](InitiateDownloadInputModelStateEfileStatus.md) | | [optional] +**TinMatchStatus** | [**TinMatchStatus**](TinMatchStatus.md) | | [optional] +**AddressVerificationStatus** | [**AddressVerificationStatus**](AddressVerificationStatus.md) | | [optional] +**RecipientName** | **string** | Legal name of the recipient | [optional] +**RecipientEmail** | **string** | The email address of the recipient. | [optional] +**RecipientFederalIdNo** | **string** | The federal ID number of the recipient. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/InitiateDownloadInputModelStateEfileStatus.md b/docs/A1099/V2/InitiateDownloadInputModelStateEfileStatus.md new file mode 100644 index 0000000..cc2a355 --- /dev/null +++ b/docs/A1099/V2/InitiateDownloadInputModelStateEfileStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.InitiateDownloadInputModelStateEfileStatus +The status of state e-filing. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/InititateDownloadOutputModel.md b/docs/A1099/V2/InititateDownloadOutputModel.md new file mode 100644 index 0000000..bdbfabf --- /dev/null +++ b/docs/A1099/V2/InititateDownloadOutputModel.md @@ -0,0 +1,11 @@ +# Avalara.SDK.Model.A1099.V2.InititateDownloadOutputModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | **string** | | [optional] +**JobType** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/IssuerModel.md b/docs/A1099/V2/IssuerModel.md index dcfff04..76638f7 100644 --- a/docs/A1099/V2/IssuerModel.md +++ b/docs/A1099/V2/IssuerModel.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **ReferenceId** | **string** | Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. | [optional] **Telephone** | **string** | Telephone number | **TaxYear** | **int** | Tax year | -**CountryCode** | **string** | If there is a transfer agent, use the shipping address of the transfer agent. | [optional] +**ShippingCountryCode** | **string** | If there is a transfer agent, use the shipping address of the transfer agent. | [optional] **Email** | **string** | Email address | [optional] **Address** | **string** | Shipping address | **City** | **string** | City | @@ -20,7 +20,7 @@ Name | Type | Description | Notes **Id** | **string** | Unique identifier set when the record is created | [optional] [readonly] **CreatedAt** | **DateTime** | Date time when the issuer was created | [optional] [readonly] **UpdatedAt** | **DateTime** | Date time when the issuer was updated | [optional] [readonly] -**TransferAgentName** | **string** | | [optional] +**UserId** | **string** | id or the manager_id of the user to whom this issuer belongs to | [optional] [readonly] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/IssuerModelPaginatedQueryResultModel.md b/docs/A1099/V2/IssuerModelPaginatedQueryResultModel.md new file mode 100644 index 0000000..d488cce --- /dev/null +++ b/docs/A1099/V2/IssuerModelPaginatedQueryResultModel.md @@ -0,0 +1,13 @@ +# Avalara.SDK.Model.A1099.V2.IssuerModelPaginatedQueryResultModel +Generic paginated model to wrap query response data + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordsetCount** | **int** | | [optional] +**Value** | [**List<IssuerModel>**](IssuerModel.md) | | [optional] +**NextLink** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobModel.md b/docs/A1099/V2/JobModel.md new file mode 100644 index 0000000..2e847ef --- /dev/null +++ b/docs/A1099/V2/JobModel.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.JobModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**Status** | **string** | | [optional] +**Data** | [**JobModelData**](JobModelData.md) | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobModelData.md b/docs/A1099/V2/JobModelData.md new file mode 100644 index 0000000..73fa4f0 --- /dev/null +++ b/docs/A1099/V2/JobModelData.md @@ -0,0 +1,11 @@ +# Avalara.SDK.Model.A1099.V2.JobModelData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upsert** | [**JobModelDataOneOfUpsert**](JobModelDataOneOfUpsert.md) | | [optional] +**BulkDownload** | [**JobModelDataOneOfBulkDownload**](JobModelDataOneOfBulkDownload.md) | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobModelDataOneOf.md b/docs/A1099/V2/JobModelDataOneOf.md new file mode 100644 index 0000000..5c4c679 --- /dev/null +++ b/docs/A1099/V2/JobModelDataOneOf.md @@ -0,0 +1,11 @@ +# Avalara.SDK.Model.A1099.V2.JobModelDataOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Upsert** | [**JobModelDataOneOfUpsert**](JobModelDataOneOfUpsert.md) | | [optional] +**BulkDownload** | [**JobModelDataOneOfBulkDownload**](JobModelDataOneOfBulkDownload.md) | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobModelDataOneOfBulkDownload.md b/docs/A1099/V2/JobModelDataOneOfBulkDownload.md new file mode 100644 index 0000000..2a4ed3a --- /dev/null +++ b/docs/A1099/V2/JobModelDataOneOfBulkDownload.md @@ -0,0 +1,10 @@ +# Avalara.SDK.Model.A1099.V2.JobModelDataOneOfBulkDownload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadUrl** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobModelDataOneOfUpsert.md b/docs/A1099/V2/JobModelDataOneOfUpsert.md new file mode 100644 index 0000000..aa45997 --- /dev/null +++ b/docs/A1099/V2/JobModelDataOneOfUpsert.md @@ -0,0 +1,13 @@ +# Avalara.SDK.Model.A1099.V2.JobModelDataOneOfUpsert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ImportedCount** | **int** | Current tally of forms successfully imported. | [optional] +**OkCount** | **int?** | Current tally of forms ready to schedule with IRS and/or State. | [optional] +**MissingEmailCount** | **int?** | Current tally of forms without an email. | [optional] +**ErrorCount** | **int?** | Current tally of forms with one or more errors that cannot be scheduled for IRS or State. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/JobsApi.md b/docs/A1099/V2/JobsApi.md new file mode 100644 index 0000000..10da9b6 --- /dev/null +++ b/docs/A1099/V2/JobsApi.md @@ -0,0 +1,96 @@ +# Avalara.SDK.Api.A1099.V2.JobsApi + +All URIs are relative to *https://api.avalara.com/avalara1099* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetJob**](JobsApi.md#getjob) | **GET** /jobs/{jobId} | Get status of an existing job + + + +# **GetJob** +> JobModel GetJob (GetJobRequest requestParameters) + +Get status of an existing job + +Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class GetJobExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new JobsApi(apiClient); + var requestParameters = new GetJobRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.JobId = "jobId_example"; // string | id received when a job was submitted + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + + try + { + // Get status of an existing job + JobModel result = apiInstance.GetJob(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling JobsApi.GetJob: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **JobId** | **string**| id received when a job was submitted | + **XAvalaraClient** | **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] + +### Return type + +[**JobModel**](JobModel.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful. Returns the status of the job being tracked or the result, if the job is completed. | * X-Correlation-Id -
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| +| **429** | Too many requests | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/List1099Forms200Response.md b/docs/A1099/V2/List1099Forms200Response.md new file mode 100644 index 0000000..b199404 --- /dev/null +++ b/docs/A1099/V2/List1099Forms200Response.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.List1099Forms200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordsetCount** | **decimal** | | [optional] +**NextLink** | **string** | | [optional] +**Value** | [**List<Form1099OneOf>**](Form1099OneOf.md) | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/PaginatedQueryResultModel.md b/docs/A1099/V2/PaginatedQueryResultModel.md index 9d16e6b..7a585fd 100644 --- a/docs/A1099/V2/PaginatedQueryResultModel.md +++ b/docs/A1099/V2/PaginatedQueryResultModel.md @@ -5,7 +5,7 @@ Generic paginated model to wrap query response data Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RecordsetCount** | **int?** | | [optional] +**RecordsetCount** | **int** | | [optional] **Value** | **List<Object>** | | [optional] **NextLink** | **string** | | [optional] diff --git a/docs/A1099/V2/PaginatedW9FormsModel.md b/docs/A1099/V2/PaginatedW9FormsModel.md index c945fd3..03d5649 100644 --- a/docs/A1099/V2/PaginatedW9FormsModel.md +++ b/docs/A1099/V2/PaginatedW9FormsModel.md @@ -6,7 +6,7 @@ Paginated model for W9/W4/W8 forms query response data Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **RecordsetCount** | **int** | | [optional] -**Value** | [**List<IW9FormDataModelsOneOf>**](IW9FormDataModelsOneOf.md) | | [optional] +**Value** | [**List<W9FormDataModelsOneOf>**](W9FormDataModelsOneOf.md) | | [optional] **NextLink** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/PostalMailStatus.md b/docs/A1099/V2/PostalMailStatus.md new file mode 100644 index 0000000..365c253 --- /dev/null +++ b/docs/A1099/V2/PostalMailStatus.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.PostalMailStatus +The status of postal mail delivery. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/StateEfileStatusesInner.md b/docs/A1099/V2/StateEfileStatusesInner.md new file mode 100644 index 0000000..ff08dc6 --- /dev/null +++ b/docs/A1099/V2/StateEfileStatusesInner.md @@ -0,0 +1,12 @@ +# Avalara.SDK.Model.A1099.V2.StateEfileStatusesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jurisdiction** | **string** | The jurisdiction of the state e-filing. | [optional] +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/StateWithholding.md b/docs/A1099/V2/StateWithholding.md new file mode 100644 index 0000000..f7fcb8c --- /dev/null +++ b/docs/A1099/V2/StateWithholding.md @@ -0,0 +1,16 @@ +# Avalara.SDK.Model.A1099.V2.StateWithholding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaxWithheld** | **double?** | The amount of state tax withheld, if any. | [optional] +**State** | **string** | The state associated with the withholding. | [optional] +**PayerStateNo** | **string** | The payer's state number. | [optional] +**Income** | **double?** | The state income reported. | [optional] +**LocalTaxWithheld** | **double?** | The local tax withheld reported. | [optional] +**Locality** | **string** | The locality reported. | [optional] +**LocalIncome** | **double?** | The local income reported. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/TinMatchStatus.md b/docs/A1099/V2/TinMatchStatus.md new file mode 100644 index 0000000..b49fb1a --- /dev/null +++ b/docs/A1099/V2/TinMatchStatus.md @@ -0,0 +1,11 @@ +# Avalara.SDK.Model.A1099.V2.TinMatchStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Date** | **DateTime** | Date time when the status was set | [optional] +**Status** | **string** | The status of TIN matching. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/W4FormDataModel.md b/docs/A1099/V2/W4FormDataModel.md index 5a23064..4f151c2 100644 --- a/docs/A1099/V2/W4FormDataModel.md +++ b/docs/A1099/V2/W4FormDataModel.md @@ -18,205 +18,34 @@ Name | Type | Description | Notes **Zip** | **string** | The ZIP code of residence of the employee. | [optional] **TypeOfTin** | **string** | The type of TIN provided. | [optional] **Tin** | **string** | The taxpayer identification number (TIN) of the employee. | [optional] -**Box3MaritalStatus** | **string** | The marital status of the employee. | [optional] -**Box4LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] -**Box5NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] +**MaritalStatus** | **string** | The marital status of the employee. | [optional] +**LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] +**NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] **OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] **NonJobIncome** | **double?** | The amount of non-job income. | [optional] **Deductions** | **double?** | The amount of deductions claimed. | [optional] -**Box6AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] -**Box7ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] +**AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] +**ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] **OfficeCode** | **string** | The office code associated with the form. | [optional] **EDeliveryConsentedAt** | **DateTime?** | The date when e-delivery was consented. | [optional] -**DisregardedEntityChapter4FatcaStatus** | **string** | The FATCA status for disregarded entities under Chapter 4. | [optional] -**Name** | **string** | The name of the individual or entity associated with the form. | [optional] -**ResidenceAddress** | **string** | The residential address of the individual or entity. | [optional] -**ResidenceCity** | **string** | The city of residence. | [optional] -**ResidenceState** | **string** | The state of residence. | [optional] -**ResidencePostalCode** | **string** | The postal code of the residence. | [optional] -**ResidenceCountry** | **string** | The country of residence. | [optional] -**MailingAddress** | **string** | The mailing address. | [optional] -**MailingCity** | **string** | The city of the mailing address. | [optional] -**MailingState** | **string** | The state of the mailing address. | [optional] -**MailingPostalCode** | **string** | The postal code of the mailing address. | [optional] -**MailingCountry** | **string** | The country of the mailing address. | [optional] -**DisregardedAddress** | **string** | The address for disregarded entities. | [optional] -**DisregardedCity** | **string** | The city for disregarded entities. | [optional] -**DisregardedState** | **string** | The state for disregarded entities. | [optional] -**DisregardedPostalCode** | **string** | The postal code for disregarded entities. | [optional] -**DisregardedCountry** | **string** | The country for disregarded entities. | [optional] -**ForeignTin** | **string** | The foreign taxpayer identification number (TIN). | [optional] -**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**ReferenceNumber** | **string** | A reference number for the form. | [optional] -**Giin** | **string** | The global intermediary identification number (GIIN). | [optional] -**Chapter3EntityType** | **string** | The Chapter 3 entity type. | [optional] -**Chapter4FatcaStatus** | **string** | The Chapter 4 FATCA status. | [optional] -**DisregardedEntity** | **string** | The disregarded entity information. | [optional] -**DisregardedEntityGiin** | **string** | The GIIN for disregarded entities. | [optional] -**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] -**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] -**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] -**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] -**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] -**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] -**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] -**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] -**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] -**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] -**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] -**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] -**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] -**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] -**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] -**SignerName** | **string** | The name of the signer of the form. | [optional] -**ResidenceIsMailing** | **bool** | Indicates whether the residence address is also the mailing address. | [optional] -**CitizenshipCountry** | **string** | The country of citizenship. | [optional] -**MakingTreatyClaim** | **bool?** | | [optional] -**TreatyCountry** | **string** | The country for which the treaty applies. | [optional] -**TreatyArticle** | **string** | The specific article of the treaty being claimed. | [optional] -**WithholdingRate** | **string** | The withholding rate applied as per the treaty. | [optional] -**IncomeType** | **string** | The type of income covered by the treaty. | [optional] -**TreatyReasons** | **string** | The reasons for claiming treaty benefits. | [optional] -**CertifyBox14A** | **bool** | | [optional] -**CertifyBox14B** | **bool** | | [optional] -**CertifyBox14C** | **bool** | | [optional] -**CertifyBox171** | **bool** | | [optional] -**CertifyBox172** | **bool** | | [optional] -**CertifyBox18** | **bool** | | [optional] -**CertifyBox19** | **bool** | | [optional] -**CertifyBox21** | **bool** | | [optional] -**CertifyBox22** | **bool** | Indicates certification for box 22. | [optional] -**CertifyBox23** | **bool** | | [optional] -**CertifyBox24A** | **bool** | Indicates certification for box 24A. | [optional] -**CertifyBox24B** | **bool** | Indicates certification for box 24B. | [optional] -**CertifyBox24C** | **bool** | Indicates certification for box 24C. | [optional] -**CertifyBox24D** | **bool** | | [optional] -**CertifyBox25A** | **bool** | | [optional] -**CertifyBox25B** | **bool** | | [optional] -**CertifyBox25C** | **bool** | | [optional] -**CertifyBox26** | **bool** | Indicates certification for box 26. | [optional] -**CertifyBox27** | **bool** | | [optional] -**CertifyBox28A** | **bool** | | [optional] -**CertifyBox28B** | **bool** | | [optional] -**CertifyBox29A** | **bool** | | [optional] -**CertifyBox29B** | **bool** | | [optional] -**CertifyBox29C** | **bool** | | [optional] -**CertifyBox29D** | **bool** | | [optional] -**CertifyBox29E** | **bool** | | [optional] -**CertifyBox29F** | **bool** | | [optional] -**CertifyBox30** | **bool** | | [optional] -**CertifyBox31** | **bool** | Indicates certification for box 31. | [optional] -**CertifyBox32** | **bool** | Indicates certification for box 32. | [optional] -**CertifyBox33** | **bool** | | [optional] -**CertifyBox34** | **bool** | Indicates certification for box 34. | [optional] -**CertifyBox35** | **bool** | Indicates certification for box 35. | [optional] -**CertifyBox36** | **bool** | Indicates certification for box 36. | [optional] -**CertifyBox37A** | **bool** | Indicates certification for box 37A. | [optional] -**CertifyBox37B** | **bool** | Indicates certification for box 37B. | [optional] -**CertifyBox38** | **bool** | Indicates certification for box 38. | [optional] -**CertifyBox39** | **bool** | Indicates certification for box 39. | [optional] -**CertifyBox40A** | **bool** | | [optional] -**CertifyBox40B** | **bool** | | [optional] -**CertifyBox40C** | **bool** | | [optional] -**CertifyBox41** | **bool** | | [optional] -**CertifyBox43** | **bool** | | [optional] -**CertifyPart29Signature** | **bool** | | [optional] -**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] -**Part20FilingDate** | **DateTime?** | | [optional] -**Part21DeterminationDate** | **DateTime?** | | [optional] -**SubstantialUsOwners** | [**List<W8BenESubstantialUsOwnerDataModel>**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] -**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] -**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] **DisplayName** | **string** | The display name associated with the form. | [optional] **Email** | **string** | The email address of the individual associated with the form. | [optional] -**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] -**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] -**Ein** | **string** | The employer identification number (EIN). | [optional] -**EinType** | **string** | The type of employer identification number (EIN). | [optional] -**CertifyBox14** | **bool** | Indicates certification for box 14. | [optional] -**CertifyBox15A** | **bool** | Indicates certification for box 15A. | [optional] -**CertifyBox15B** | **bool** | Indicates certification for box 15B. | [optional] -**CertifyBox15C** | **bool** | Indicates certification for box 15C. | [optional] -**CertifyBox15D** | **bool** | Indicates certification for box 15D. | [optional] -**CertifyBox15E** | **bool** | Indicates certification for box 15E. | [optional] -**CertifyBox15F** | **bool** | Indicates certification for box 15F. | [optional] -**CertifyBox15G** | **bool** | Indicates certification for box 15G. | [optional] -**CertifyBox15H** | **bool** | Indicates certification for box 15H. | [optional] -**CertifyBox15I** | **bool** | Indicates certification for box 15I. | [optional] -**CertifyBox16A** | **bool** | Indicates certification for box 16A. | [optional] -**Box16BQddCorporate** | **bool** | Indicates certification for box 16B as a QDD corporate entity. | [optional] -**Box16BQddPartnership** | **bool** | Indicates certification for box 16B as a QDD partnership. | [optional] -**Box16BQddDisregardedEntity** | **bool** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] -**CertifyBox17A** | **bool** | Indicates certification for box 17A. | [optional] -**CertifyBox17B** | **bool** | Indicates certification for box 17B. | [optional] -**CertifyBox17C** | **bool** | Indicates certification for box 17C. | [optional] -**CertifyBox17D** | **bool** | Indicates certification for box 17D. | [optional] -**CertifyBox17E** | **bool** | Indicates certification for box 17E. | [optional] -**CertifyBox18A** | **bool** | Indicates certification for box 18A. | [optional] -**CertifyBox18B** | **bool** | Indicates certification for box 18B. | [optional] -**CertifyBox18C** | **bool** | Indicates certification for box 18C. | [optional] -**CertifyBox18D** | **bool** | Indicates certification for box 18D. | [optional] -**CertifyBox18E** | **bool** | Indicates certification for box 18E. | [optional] -**CertifyBox18F** | **bool** | Indicates certification for box 18F. | [optional] -**CertifyBox19A** | **bool** | Indicates certification for box 19A. | [optional] -**CertifyBox19B** | **bool** | Indicates certification for box 19B. | [optional] -**CertifyBox19C** | **bool** | Indicates certification for box 19C. | [optional] -**CertifyBox19D** | **bool** | Indicates certification for box 19D. | [optional] -**CertifyBox19E** | **bool** | Indicates certification for box 19E. | [optional] -**CertifyBox19F** | **bool** | Indicates certification for box 19F. | [optional] -**CertifyBox20** | **bool** | Indicates certification for box 20. | [optional] -**CertifyBox21A** | **bool** | Indicates certification for box 21A. | [optional] -**CertifyBox21B** | **bool** | Indicates certification for box 21B. | [optional] -**CertifyBox21C** | **bool** | Indicates certification for box 21C. | [optional] -**CertifyBox21D** | **bool** | Indicates certification for box 21D. | [optional] -**CertifyBox21E** | **bool** | Indicates certification for box 21E. | [optional] -**CertifyBox21F** | **bool** | Indicates certification for box 21F. | [optional] -**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] -**CertifyBox23B** | **bool** | Indicates certification for box 23B. | [optional] -**CertifyBox23C** | **bool** | Indicates certification for box 23C. | [optional] -**CertifyBox25** | **bool** | Indicates certification for box 25. | [optional] -**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] -**CertifyBox27B** | **bool** | Indicates certification for box 27B. | [optional] -**CertifyBox28** | **bool** | Indicates certification for box 28. | [optional] -**CertifyBox29** | **bool** | Indicates certification for box 29. | [optional] -**CertifyBox30A** | **bool** | Indicates certification for box 30A. | [optional] -**CertifyBox30B** | **bool** | Indicates certification for box 30B. | [optional] -**CertifyBox30C** | **bool** | Indicates certification for box 30C. | [optional] -**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] -**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] -**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] -**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] -**Box32TrusteeIsForeign** | **bool** | Indicates whether the trustee is foreign for box 32. | [optional] -**CertifyBox33A** | **bool** | Indicates certification for box 33A. | [optional] -**CertifyBox33B** | **bool** | Indicates certification for box 33B. | [optional] -**CertifyBox33C** | **bool** | Indicates certification for box 33C. | [optional] -**CertifyBox33D** | **bool** | Indicates certification for box 33D. | [optional] -**CertifyBox33E** | **bool** | Indicates certification for box 33E. | [optional] -**CertifyBox33F** | **bool** | Indicates certification for box 33F. | [optional] -**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] -**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] -**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] -**CertifyBox40** | **bool** | Indicates certification for box 40. | [optional] -**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] -**CertifyBox42** | **bool** | Indicates certification for box 42. | [optional] -**Box35FormedOnDate** | **DateTime?** | | [optional] -**Box36FiledOnDate** | **DateTime?** | | [optional] -**TinMatchStatus** | **string** | The status of the TIN match. | [optional] -**Signature** | **string** | The signature itself | [optional] -**BusinessClassification** | **string** | The classification of the business. | [optional] -**BusinessName** | **string** | The name of the business associated with the form. | [optional] -**BusinessOther** | **string** | | [optional] -**ExemptPayeeCode** | **string** | | [optional] -**ExemptFatcaCode** | **string** | | [optional] -**AccountNumber** | **string** | The account number associated with the form. | [optional] -**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] -**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] -**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] -**Is1099able** | **bool?** | | [optional] -**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W4W8W9FormsApi.md b/docs/A1099/V2/W4W8W9FormsApi.md new file mode 100644 index 0000000..71d8b30 --- /dev/null +++ b/docs/A1099/V2/W4W8W9FormsApi.md @@ -0,0 +1,362 @@ +# Avalara.SDK.Api.A1099.V2.W4W8W9FormsApi + +All URIs are relative to *https://api.avalara.com/avalara1099* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateW9Form**](W4W8W9FormsApi.md#createw9form) | **POST** /w9/forms | Create a new W9/W8/W4 form +[**GetW9Form**](W4W8W9FormsApi.md#getw9form) | **GET** /w9/forms/{formId} | Retrieve a W9/W8/W4 form +[**GetW9Forms**](W4W8W9FormsApi.md#getw9forms) | **GET** /w9/forms | List W9/W4/W8 forms. +[**W9FormRequestsFormRequestIdGet**](W4W8W9FormsApi.md#w9formrequestsformrequestidget) | **GET** /w9/form-requests/{formRequestId} | Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. + + + +# **CreateW9Form** +> W9FormDataModelsOneOf CreateW9Form (CreateW9FormRequest requestParameters) + +Create a new W9/W8/W4 form + +Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class CreateW9FormExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new W4W8W9FormsApi(apiClient); + var requestParameters = new CreateW9FormRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + requestParameters.W9FormDataModelsOneOf = new W9FormDataModelsOneOf(); // W9FormDataModelsOneOf | Form to be created (optional) + + try + { + // Create a new W9/W8/W4 form + W9FormDataModelsOneOf result = apiInstance.CreateW9Form(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling W4W8W9FormsApi.CreateW9Form: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] + **W9FormDataModelsOneOf** | [**W9FormDataModelsOneOf**](W9FormDataModelsOneOf.md)| Form to be created | [optional] + +### Return type + +[**W9FormDataModelsOneOf**](W9FormDataModelsOneOf.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | The created W9/W8/W4 form | * Location - The location of the created W9 Company
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + + +# **GetW9Form** +> GetW9Form200Response GetW9Form (GetW9FormRequest requestParameters) + +Retrieve a W9/W8/W4 form + +Retreive a single W9/W8/W4 form by id + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class GetW9FormExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new W4W8W9FormsApi(apiClient); + var requestParameters = new GetW9FormRequest(); + requestParameters.FormId = "formId_example"; // string | Unique id of the form + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + + try + { + // Retrieve a W9/W8/W4 form + GetW9Form200Response result = apiInstance.GetW9Form(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling W4W8W9FormsApi.GetW9Form: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **FormId** | **string**| Unique id of the form | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] + +### Return type + +[**GetW9Form200Response**](GetW9Form200Response.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | W9/W8/W4 form with id | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + + +# **GetW9Forms** +> PaginatedW9FormsModel GetW9Forms (GetW9FormsRequest requestParameters) + +List W9/W4/W8 forms. + +List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class GetW9FormsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new W4W8W9FormsApi(apiClient); + var requestParameters = new GetW9FormsRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.Filter = referenceId eq 'REF56789'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Filterable: referenceId, companyId, archived, ancestorId (optional) + requestParameters.Top = 10; // int? | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. (optional) (default to 10) + requestParameters.Skip = 0; // int? | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) (default to 0) + requestParameters.OrderBy = "orderBy_example"; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) + requestParameters.Count = "\"false\""; // bool? | Set true to request count of complete collection in response. (optional) (default to "false") + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + + try + { + // List W9/W4/W8 forms. + PaginatedW9FormsModel result = apiInstance.GetW9Forms(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling W4W8W9FormsApi.GetW9Forms: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **Filter** | **string**| 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>. Filterable: referenceId, companyId, archived, ancestorId | [optional] + **Top** | **int?**| If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. | [optional] [default to 10] + **Skip** | **int?**| If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. | [optional] [default to 0] + **OrderBy** | **string**| A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. | [optional] + **Count** | **bool?**| Set true to request count of complete collection in response. | [optional] [default to "false"] + **XAvalaraClient** | **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] + +### Return type + +[**PaginatedW9FormsModel**](PaginatedW9FormsModel.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | List of forms | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + + +# **W9FormRequestsFormRequestIdGet** +> FormRequestModel W9FormRequestsFormRequestIdGet (W9FormRequestsFormRequestIdGetRequest requestParameters) + +Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. + +Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using Avalara.SDK.Api.A1099.V2; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Example +{ + public class W9FormRequestsFormRequestIdGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.Environment = AvalaraEnvironment.Sandbox; + config.BearerToken = ""; + + ApiClient apiClient= new ApiClient(config); + + var apiInstance = new W4W8W9FormsApi(apiClient); + var requestParameters = new W9FormRequestsFormRequestIdGetRequest(); + requestParameters.FormRequestId = "formRequestId_example"; // string | Id assigned during creation of the form request + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + + try + { + // Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. + FormRequestModel result = apiInstance.W9FormRequestsFormRequestIdGet(requestParameters); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling W4W8W9FormsApi.W9FormRequestsFormRequestIdGet: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Request Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **FormRequestId** | **string**| Id assigned during creation of the form request | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] + **XCorrelationId** | **string**| Unique correlation Id in a GUID format | + **XAvalaraClient** | **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] + +### Return type + +[**FormRequestModel**](FormRequestModel.md) + +### Authorization + +[bearer](../../../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| +| **404** | Not Found | * X-Correlation-Id -
| + +[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) + diff --git a/docs/A1099/V2/W8BenFormDataModel.md b/docs/A1099/V2/W8BenFormDataModel.md index 5710211..c462400 100644 --- a/docs/A1099/V2/W8BenFormDataModel.md +++ b/docs/A1099/V2/W8BenFormDataModel.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] **Archived** | **bool?** | Indicates whether the form is archived. | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] **DisplayName** | **string** | The display name associated with the form. | [optional] **Email** | **string** | The email address of the individual associated with the form. | [optional] **TypeOfTin** | **string** | The type of TIN provided. | [optional] @@ -41,182 +41,18 @@ Name | Type | Description | Notes **EDeliveryConsentedAt** | **DateTime?** | The date when e-delivery was consented. | [optional] **CreatedAt** | **DateTime?** | The creation date of the form. | [optional] **UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] -**EmployeeFirstName** | **string** | The first name of the employee. | [optional] -**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] -**EmployeeLastName** | **string** | The last name of the employee. | [optional] -**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] -**Address** | **string** | The address of the individual or entity. | [optional] -**City** | **string** | The city of the address. | [optional] -**State** | **string** | The state of the address. | [optional] -**Zip** | **string** | The ZIP code of the address. | [optional] -**Box3MaritalStatus** | **string** | The marital status of the employee. | [optional] -**Box4LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] -**Box5NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] -**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] -**NonJobIncome** | **double?** | The amount of non-job income. | [optional] -**Deductions** | **double?** | The amount of deductions claimed. | [optional] -**Box6AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] -**Box7ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] -**OfficeCode** | **string** | The office code associated with the form. | [optional] -**DisregardedEntityChapter4FatcaStatus** | **string** | The FATCA status for disregarded entities under Chapter 4. | [optional] -**DisregardedAddress** | **string** | The address for disregarded entities. | [optional] -**DisregardedCity** | **string** | The city for disregarded entities. | [optional] -**DisregardedState** | **string** | The state for disregarded entities. | [optional] -**DisregardedPostalCode** | **string** | The postal code for disregarded entities. | [optional] -**DisregardedCountry** | **string** | The country for disregarded entities. | [optional] -**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**Giin** | **string** | The global intermediary identification number (GIIN). | [optional] -**Chapter3EntityType** | **string** | The Chapter 3 entity type. | [optional] -**Chapter4FatcaStatus** | **string** | The Chapter 4 FATCA status. | [optional] -**DisregardedEntity** | **string** | The disregarded entity information. | [optional] -**DisregardedEntityGiin** | **string** | The GIIN for disregarded entities. | [optional] -**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] -**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] -**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] -**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] -**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] -**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] -**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] -**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] -**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] -**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] -**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] -**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] -**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] -**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] -**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] -**MakingTreatyClaim** | **bool?** | | [optional] -**CertifyBox14A** | **bool** | | [optional] -**CertifyBox14B** | **bool** | | [optional] -**CertifyBox14C** | **bool** | | [optional] -**CertifyBox171** | **bool** | | [optional] -**CertifyBox172** | **bool** | | [optional] -**CertifyBox18** | **bool** | | [optional] -**CertifyBox19** | **bool** | | [optional] -**CertifyBox21** | **bool** | | [optional] -**CertifyBox22** | **bool** | Indicates certification for box 22. | [optional] -**CertifyBox23** | **bool** | | [optional] -**CertifyBox24A** | **bool** | Indicates certification for box 24A. | [optional] -**CertifyBox24B** | **bool** | Indicates certification for box 24B. | [optional] -**CertifyBox24C** | **bool** | Indicates certification for box 24C. | [optional] -**CertifyBox24D** | **bool** | | [optional] -**CertifyBox25A** | **bool** | | [optional] -**CertifyBox25B** | **bool** | | [optional] -**CertifyBox25C** | **bool** | | [optional] -**CertifyBox26** | **bool** | Indicates certification for box 26. | [optional] -**CertifyBox27** | **bool** | | [optional] -**CertifyBox28A** | **bool** | | [optional] -**CertifyBox28B** | **bool** | | [optional] -**CertifyBox29A** | **bool** | | [optional] -**CertifyBox29B** | **bool** | | [optional] -**CertifyBox29C** | **bool** | | [optional] -**CertifyBox29D** | **bool** | | [optional] -**CertifyBox29E** | **bool** | | [optional] -**CertifyBox29F** | **bool** | | [optional] -**CertifyBox30** | **bool** | | [optional] -**CertifyBox31** | **bool** | Indicates certification for box 31. | [optional] -**CertifyBox32** | **bool** | Indicates certification for box 32. | [optional] -**CertifyBox33** | **bool** | | [optional] -**CertifyBox34** | **bool** | Indicates certification for box 34. | [optional] -**CertifyBox35** | **bool** | Indicates certification for box 35. | [optional] -**CertifyBox36** | **bool** | Indicates certification for box 36. | [optional] -**CertifyBox37A** | **bool** | Indicates certification for box 37A. | [optional] -**CertifyBox37B** | **bool** | Indicates certification for box 37B. | [optional] -**CertifyBox38** | **bool** | Indicates certification for box 38. | [optional] -**CertifyBox39** | **bool** | Indicates certification for box 39. | [optional] -**CertifyBox40A** | **bool** | | [optional] -**CertifyBox40B** | **bool** | | [optional] -**CertifyBox40C** | **bool** | | [optional] -**CertifyBox41** | **bool** | | [optional] -**CertifyBox43** | **bool** | | [optional] -**CertifyPart29Signature** | **bool** | | [optional] -**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] -**Part20FilingDate** | **DateTime?** | | [optional] -**Part21DeterminationDate** | **DateTime?** | | [optional] -**SubstantialUsOwners** | [**List<W8BenESubstantialUsOwnerDataModel>**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] -**Ein** | **string** | The employer identification number (EIN). | [optional] -**EinType** | **string** | The type of employer identification number (EIN). | [optional] -**CertifyBox14** | **bool** | Indicates certification for box 14. | [optional] -**CertifyBox15A** | **bool** | Indicates certification for box 15A. | [optional] -**CertifyBox15B** | **bool** | Indicates certification for box 15B. | [optional] -**CertifyBox15C** | **bool** | Indicates certification for box 15C. | [optional] -**CertifyBox15D** | **bool** | Indicates certification for box 15D. | [optional] -**CertifyBox15E** | **bool** | Indicates certification for box 15E. | [optional] -**CertifyBox15F** | **bool** | Indicates certification for box 15F. | [optional] -**CertifyBox15G** | **bool** | Indicates certification for box 15G. | [optional] -**CertifyBox15H** | **bool** | Indicates certification for box 15H. | [optional] -**CertifyBox15I** | **bool** | Indicates certification for box 15I. | [optional] -**CertifyBox16A** | **bool** | Indicates certification for box 16A. | [optional] -**Box16BQddCorporate** | **bool** | Indicates certification for box 16B as a QDD corporate entity. | [optional] -**Box16BQddPartnership** | **bool** | Indicates certification for box 16B as a QDD partnership. | [optional] -**Box16BQddDisregardedEntity** | **bool** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] -**CertifyBox17A** | **bool** | Indicates certification for box 17A. | [optional] -**CertifyBox17B** | **bool** | Indicates certification for box 17B. | [optional] -**CertifyBox17C** | **bool** | Indicates certification for box 17C. | [optional] -**CertifyBox17D** | **bool** | Indicates certification for box 17D. | [optional] -**CertifyBox17E** | **bool** | Indicates certification for box 17E. | [optional] -**CertifyBox18A** | **bool** | Indicates certification for box 18A. | [optional] -**CertifyBox18B** | **bool** | Indicates certification for box 18B. | [optional] -**CertifyBox18C** | **bool** | Indicates certification for box 18C. | [optional] -**CertifyBox18D** | **bool** | Indicates certification for box 18D. | [optional] -**CertifyBox18E** | **bool** | Indicates certification for box 18E. | [optional] -**CertifyBox18F** | **bool** | Indicates certification for box 18F. | [optional] -**CertifyBox19A** | **bool** | Indicates certification for box 19A. | [optional] -**CertifyBox19B** | **bool** | Indicates certification for box 19B. | [optional] -**CertifyBox19C** | **bool** | Indicates certification for box 19C. | [optional] -**CertifyBox19D** | **bool** | Indicates certification for box 19D. | [optional] -**CertifyBox19E** | **bool** | Indicates certification for box 19E. | [optional] -**CertifyBox19F** | **bool** | Indicates certification for box 19F. | [optional] -**CertifyBox20** | **bool** | Indicates certification for box 20. | [optional] -**CertifyBox21A** | **bool** | Indicates certification for box 21A. | [optional] -**CertifyBox21B** | **bool** | Indicates certification for box 21B. | [optional] -**CertifyBox21C** | **bool** | Indicates certification for box 21C. | [optional] -**CertifyBox21D** | **bool** | Indicates certification for box 21D. | [optional] -**CertifyBox21E** | **bool** | Indicates certification for box 21E. | [optional] -**CertifyBox21F** | **bool** | Indicates certification for box 21F. | [optional] -**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] -**CertifyBox23B** | **bool** | Indicates certification for box 23B. | [optional] -**CertifyBox23C** | **bool** | Indicates certification for box 23C. | [optional] -**CertifyBox25** | **bool** | Indicates certification for box 25. | [optional] -**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] -**CertifyBox27B** | **bool** | Indicates certification for box 27B. | [optional] -**CertifyBox28** | **bool** | Indicates certification for box 28. | [optional] -**CertifyBox29** | **bool** | Indicates certification for box 29. | [optional] -**CertifyBox30A** | **bool** | Indicates certification for box 30A. | [optional] -**CertifyBox30B** | **bool** | Indicates certification for box 30B. | [optional] -**CertifyBox30C** | **bool** | Indicates certification for box 30C. | [optional] -**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] -**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] -**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] -**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] -**Box32TrusteeIsForeign** | **bool** | Indicates whether the trustee is foreign for box 32. | [optional] -**CertifyBox33A** | **bool** | Indicates certification for box 33A. | [optional] -**CertifyBox33B** | **bool** | Indicates certification for box 33B. | [optional] -**CertifyBox33C** | **bool** | Indicates certification for box 33C. | [optional] -**CertifyBox33D** | **bool** | Indicates certification for box 33D. | [optional] -**CertifyBox33E** | **bool** | Indicates certification for box 33E. | [optional] -**CertifyBox33F** | **bool** | Indicates certification for box 33F. | [optional] -**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] -**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] -**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] -**CertifyBox40** | **bool** | Indicates certification for box 40. | [optional] -**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] -**CertifyBox42** | **bool** | Indicates certification for box 42. | [optional] -**Box35FormedOnDate** | **DateTime?** | | [optional] -**Box36FiledOnDate** | **DateTime?** | | [optional] -**TinMatchStatus** | **string** | The status of the TIN match. | [optional] -**Signature** | **string** | The signature itself | [optional] -**BusinessClassification** | **string** | The classification of the business. | [optional] -**BusinessName** | **string** | The name of the business associated with the form. | [optional] -**BusinessOther** | **string** | | [optional] -**ExemptPayeeCode** | **string** | | [optional] -**ExemptFatcaCode** | **string** | | [optional] -**AccountNumber** | **string** | The account number associated with the form. | [optional] -**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] -**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] -**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] -**Is1099able** | **bool?** | | [optional] -**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W8BeneFormDataModel.md b/docs/A1099/V2/W8BeneFormDataModel.md index ac97b0f..a7ad78e 100644 --- a/docs/A1099/V2/W8BeneFormDataModel.md +++ b/docs/A1099/V2/W8BeneFormDataModel.md @@ -107,116 +107,24 @@ Name | Type | Description | Notes **Part19FormationOrResolutionDate** | **DateTime?** | | [optional] **Part20FilingDate** | **DateTime?** | | [optional] **Part21DeterminationDate** | **DateTime?** | | [optional] -**SubstantialUsOwners** | [**List<W8BenESubstantialUsOwnerDataModel>**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] -**EmployeeFirstName** | **string** | The first name of the employee. | [optional] -**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] -**EmployeeLastName** | **string** | The last name of the employee. | [optional] -**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] -**Address** | **string** | The address of the individual or entity. | [optional] -**City** | **string** | The city of the address. | [optional] -**State** | **string** | The state of the address. | [optional] -**Zip** | **string** | The ZIP code of the address. | [optional] -**Box3MaritalStatus** | **string** | The marital status of the employee. | [optional] -**Box4LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] -**Box5NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] -**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] -**NonJobIncome** | **double?** | The amount of non-job income. | [optional] -**Deductions** | **double?** | The amount of deductions claimed. | [optional] -**Box6AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] -**Box7ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] -**OfficeCode** | **string** | The office code associated with the form. | [optional] -**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] -**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] **DisplayName** | **string** | The display name associated with the form. | [optional] **Email** | **string** | The email address of the individual associated with the form. | [optional] -**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] -**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] -**Ein** | **string** | The employer identification number (EIN). | [optional] -**EinType** | **string** | The type of employer identification number (EIN). | [optional] -**CertifyBox14** | **bool** | Indicates certification for box 14. | [optional] -**CertifyBox15A** | **bool** | Indicates certification for box 15A. | [optional] -**CertifyBox15B** | **bool** | Indicates certification for box 15B. | [optional] -**CertifyBox15C** | **bool** | Indicates certification for box 15C. | [optional] -**CertifyBox15D** | **bool** | Indicates certification for box 15D. | [optional] -**CertifyBox15E** | **bool** | Indicates certification for box 15E. | [optional] -**CertifyBox15F** | **bool** | Indicates certification for box 15F. | [optional] -**CertifyBox15G** | **bool** | Indicates certification for box 15G. | [optional] -**CertifyBox15H** | **bool** | Indicates certification for box 15H. | [optional] -**CertifyBox15I** | **bool** | Indicates certification for box 15I. | [optional] -**CertifyBox16A** | **bool** | Indicates certification for box 16A. | [optional] -**Box16BQddCorporate** | **bool** | Indicates certification for box 16B as a QDD corporate entity. | [optional] -**Box16BQddPartnership** | **bool** | Indicates certification for box 16B as a QDD partnership. | [optional] -**Box16BQddDisregardedEntity** | **bool** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] -**CertifyBox17A** | **bool** | Indicates certification for box 17A. | [optional] -**CertifyBox17B** | **bool** | Indicates certification for box 17B. | [optional] -**CertifyBox17C** | **bool** | Indicates certification for box 17C. | [optional] -**CertifyBox17D** | **bool** | Indicates certification for box 17D. | [optional] -**CertifyBox17E** | **bool** | Indicates certification for box 17E. | [optional] -**CertifyBox18A** | **bool** | Indicates certification for box 18A. | [optional] -**CertifyBox18B** | **bool** | Indicates certification for box 18B. | [optional] -**CertifyBox18C** | **bool** | Indicates certification for box 18C. | [optional] -**CertifyBox18D** | **bool** | Indicates certification for box 18D. | [optional] -**CertifyBox18E** | **bool** | Indicates certification for box 18E. | [optional] -**CertifyBox18F** | **bool** | Indicates certification for box 18F. | [optional] -**CertifyBox19A** | **bool** | Indicates certification for box 19A. | [optional] -**CertifyBox19B** | **bool** | Indicates certification for box 19B. | [optional] -**CertifyBox19C** | **bool** | Indicates certification for box 19C. | [optional] -**CertifyBox19D** | **bool** | Indicates certification for box 19D. | [optional] -**CertifyBox19E** | **bool** | Indicates certification for box 19E. | [optional] -**CertifyBox19F** | **bool** | Indicates certification for box 19F. | [optional] -**CertifyBox20** | **bool** | Indicates certification for box 20. | [optional] -**CertifyBox21A** | **bool** | Indicates certification for box 21A. | [optional] -**CertifyBox21B** | **bool** | Indicates certification for box 21B. | [optional] -**CertifyBox21C** | **bool** | Indicates certification for box 21C. | [optional] -**CertifyBox21D** | **bool** | Indicates certification for box 21D. | [optional] -**CertifyBox21E** | **bool** | Indicates certification for box 21E. | [optional] -**CertifyBox21F** | **bool** | Indicates certification for box 21F. | [optional] -**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] -**CertifyBox23B** | **bool** | Indicates certification for box 23B. | [optional] -**CertifyBox23C** | **bool** | Indicates certification for box 23C. | [optional] -**CertifyBox25** | **bool** | Indicates certification for box 25. | [optional] -**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] -**CertifyBox27B** | **bool** | Indicates certification for box 27B. | [optional] -**CertifyBox28** | **bool** | Indicates certification for box 28. | [optional] -**CertifyBox29** | **bool** | Indicates certification for box 29. | [optional] -**CertifyBox30A** | **bool** | Indicates certification for box 30A. | [optional] -**CertifyBox30B** | **bool** | Indicates certification for box 30B. | [optional] -**CertifyBox30C** | **bool** | Indicates certification for box 30C. | [optional] -**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] -**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] -**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] -**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] -**Box32TrusteeIsForeign** | **bool** | Indicates whether the trustee is foreign for box 32. | [optional] -**CertifyBox33A** | **bool** | Indicates certification for box 33A. | [optional] -**CertifyBox33B** | **bool** | Indicates certification for box 33B. | [optional] -**CertifyBox33C** | **bool** | Indicates certification for box 33C. | [optional] -**CertifyBox33D** | **bool** | Indicates certification for box 33D. | [optional] -**CertifyBox33E** | **bool** | Indicates certification for box 33E. | [optional] -**CertifyBox33F** | **bool** | Indicates certification for box 33F. | [optional] -**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] -**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] -**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] -**CertifyBox40** | **bool** | Indicates certification for box 40. | [optional] -**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] -**CertifyBox42** | **bool** | Indicates certification for box 42. | [optional] -**Box35FormedOnDate** | **DateTime?** | | [optional] -**Box36FiledOnDate** | **DateTime?** | | [optional] -**TinMatchStatus** | **string** | The status of the TIN match. | [optional] -**Signature** | **string** | The signature itself | [optional] -**BusinessClassification** | **string** | The classification of the business. | [optional] -**BusinessName** | **string** | The name of the business associated with the form. | [optional] -**BusinessOther** | **string** | | [optional] -**ExemptPayeeCode** | **string** | | [optional] -**ExemptFatcaCode** | **string** | | [optional] -**AccountNumber** | **string** | The account number associated with the form. | [optional] -**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] -**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] -**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] -**Is1099able** | **bool?** | | [optional] -**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W8ImyFormDataModel.md b/docs/A1099/V2/W8ImyFormDataModel.md index b71d077..e5a437a 100644 --- a/docs/A1099/V2/W8ImyFormDataModel.md +++ b/docs/A1099/V2/W8ImyFormDataModel.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **ResidenceState** | **string** | The state of residence. | [optional] **ResidencePostalCode** | **string** | The postal code of the residence. | [optional] **ResidenceCountry** | **string** | The country of residence. | [optional] -**ResidenceIsMailing** | **bool** | Indicates whether the residence address is also the mailing address. | [optional] +**ResidenceIsMailing** | **bool?** | Indicates whether the residence address is also the mailing address. | [optional] **MailingAddress** | **string** | The mailing address. | [optional] **MailingCity** | **string** | The city of the mailing address. | [optional] **MailingState** | **string** | The state of the mailing address. | [optional] @@ -41,182 +41,105 @@ Name | Type | Description | Notes **Giin** | **string** | The global intermediary identification number (GIIN). | [optional] **ForeignTin** | **string** | The foreign taxpayer identification number (TIN). | [optional] **ReferenceNumber** | **string** | A reference number for the form. | [optional] -**CertifyBox14** | **bool** | Indicates certification for box 14. | [optional] -**CertifyBox15A** | **bool** | Indicates certification for box 15A. | [optional] -**CertifyBox15B** | **bool** | Indicates certification for box 15B. | [optional] -**CertifyBox15C** | **bool** | Indicates certification for box 15C. | [optional] -**CertifyBox15D** | **bool** | Indicates certification for box 15D. | [optional] -**CertifyBox15E** | **bool** | Indicates certification for box 15E. | [optional] -**CertifyBox15F** | **bool** | Indicates certification for box 15F. | [optional] -**CertifyBox15G** | **bool** | Indicates certification for box 15G. | [optional] -**CertifyBox15H** | **bool** | Indicates certification for box 15H. | [optional] -**CertifyBox15I** | **bool** | Indicates certification for box 15I. | [optional] -**CertifyBox16A** | **bool** | Indicates certification for box 16A. | [optional] -**Box16BQddCorporate** | **bool** | Indicates certification for box 16B as a QDD corporate entity. | [optional] -**Box16BQddPartnership** | **bool** | Indicates certification for box 16B as a QDD partnership. | [optional] -**Box16BQddDisregardedEntity** | **bool** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] -**CertifyBox17A** | **bool** | Indicates certification for box 17A. | [optional] -**CertifyBox17B** | **bool** | Indicates certification for box 17B. | [optional] -**CertifyBox17C** | **bool** | Indicates certification for box 17C. | [optional] -**CertifyBox17D** | **bool** | Indicates certification for box 17D. | [optional] -**CertifyBox17E** | **bool** | Indicates certification for box 17E. | [optional] -**CertifyBox18A** | **bool** | Indicates certification for box 18A. | [optional] -**CertifyBox18B** | **bool** | Indicates certification for box 18B. | [optional] -**CertifyBox18C** | **bool** | Indicates certification for box 18C. | [optional] -**CertifyBox18D** | **bool** | Indicates certification for box 18D. | [optional] -**CertifyBox18E** | **bool** | Indicates certification for box 18E. | [optional] -**CertifyBox18F** | **bool** | Indicates certification for box 18F. | [optional] -**CertifyBox19A** | **bool** | Indicates certification for box 19A. | [optional] -**CertifyBox19B** | **bool** | Indicates certification for box 19B. | [optional] -**CertifyBox19C** | **bool** | Indicates certification for box 19C. | [optional] -**CertifyBox19D** | **bool** | Indicates certification for box 19D. | [optional] -**CertifyBox19E** | **bool** | Indicates certification for box 19E. | [optional] -**CertifyBox19F** | **bool** | Indicates certification for box 19F. | [optional] -**CertifyBox20** | **bool** | Indicates certification for box 20. | [optional] -**CertifyBox21A** | **bool** | Indicates certification for box 21A. | [optional] -**CertifyBox21B** | **bool** | Indicates certification for box 21B. | [optional] -**CertifyBox21C** | **bool** | Indicates certification for box 21C. | [optional] -**CertifyBox21D** | **bool** | Indicates certification for box 21D. | [optional] -**CertifyBox21E** | **bool** | Indicates certification for box 21E. | [optional] -**CertifyBox21F** | **bool** | Indicates certification for box 21F. | [optional] -**CertifyBox22** | **bool** | Indicates certification for box 22. | [optional] +**CertifyBox14** | **bool?** | Indicates certification for box 14. | [optional] +**CertifyBox15A** | **bool?** | Indicates certification for box 15A. | [optional] +**CertifyBox15B** | **bool?** | Indicates certification for box 15B. | [optional] +**CertifyBox15C** | **bool?** | Indicates certification for box 15C. | [optional] +**CertifyBox15D** | **bool?** | Indicates certification for box 15D. | [optional] +**CertifyBox15E** | **bool?** | Indicates certification for box 15E. | [optional] +**CertifyBox15F** | **bool?** | Indicates certification for box 15F. | [optional] +**CertifyBox15G** | **bool?** | Indicates certification for box 15G. | [optional] +**CertifyBox15H** | **bool?** | Indicates certification for box 15H. | [optional] +**CertifyBox15I** | **bool?** | Indicates certification for box 15I. | [optional] +**CertifyBox16A** | **bool?** | Indicates certification for box 16A. | [optional] +**Box16BQddCorporate** | **bool?** | Indicates certification for box 16B as a QDD corporate entity. | [optional] +**Box16BQddPartnership** | **bool?** | Indicates certification for box 16B as a QDD partnership. | [optional] +**Box16BQddDisregardedEntity** | **bool?** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] +**CertifyBox17A** | **bool?** | Indicates certification for box 17A. | [optional] +**CertifyBox17B** | **bool?** | Indicates certification for box 17B. | [optional] +**CertifyBox17C** | **bool?** | Indicates certification for box 17C. | [optional] +**CertifyBox17D** | **bool?** | Indicates certification for box 17D. | [optional] +**CertifyBox17E** | **bool?** | Indicates certification for box 17E. | [optional] +**CertifyBox18A** | **bool?** | Indicates certification for box 18A. | [optional] +**CertifyBox18B** | **bool?** | Indicates certification for box 18B. | [optional] +**CertifyBox18C** | **bool?** | Indicates certification for box 18C. | [optional] +**CertifyBox18D** | **bool?** | Indicates certification for box 18D. | [optional] +**CertifyBox18E** | **bool?** | Indicates certification for box 18E. | [optional] +**CertifyBox18F** | **bool?** | Indicates certification for box 18F. | [optional] +**CertifyBox19A** | **bool?** | Indicates certification for box 19A. | [optional] +**CertifyBox19B** | **bool?** | Indicates certification for box 19B. | [optional] +**CertifyBox19C** | **bool?** | Indicates certification for box 19C. | [optional] +**CertifyBox19D** | **bool?** | Indicates certification for box 19D. | [optional] +**CertifyBox19E** | **bool?** | Indicates certification for box 19E. | [optional] +**CertifyBox19F** | **bool?** | Indicates certification for box 19F. | [optional] +**CertifyBox20** | **bool?** | Indicates certification for box 20. | [optional] +**CertifyBox21A** | **bool?** | Indicates certification for box 21A. | [optional] +**CertifyBox21B** | **bool?** | Indicates certification for box 21B. | [optional] +**CertifyBox21C** | **bool?** | Indicates certification for box 21C. | [optional] +**CertifyBox21D** | **bool?** | Indicates certification for box 21D. | [optional] +**CertifyBox21E** | **bool?** | Indicates certification for box 21E. | [optional] +**CertifyBox21F** | **bool?** | Indicates certification for box 21F. | [optional] +**CertifyBox22** | **bool?** | Indicates certification for box 22. | [optional] **Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] -**CertifyBox23B** | **bool** | Indicates certification for box 23B. | [optional] -**CertifyBox23C** | **bool** | Indicates certification for box 23C. | [optional] -**CertifyBox24A** | **bool** | Indicates certification for box 24A. | [optional] -**CertifyBox24B** | **bool** | Indicates certification for box 24B. | [optional] -**CertifyBox24C** | **bool** | Indicates certification for box 24C. | [optional] -**CertifyBox25** | **bool** | Indicates certification for box 25. | [optional] -**CertifyBox26** | **bool** | Indicates certification for box 26. | [optional] +**CertifyBox23B** | **bool?** | Indicates certification for box 23B. | [optional] +**CertifyBox23C** | **bool?** | Indicates certification for box 23C. | [optional] +**CertifyBox24A** | **bool?** | Indicates certification for box 24A. | [optional] +**CertifyBox24B** | **bool?** | Indicates certification for box 24B. | [optional] +**CertifyBox24C** | **bool?** | Indicates certification for box 24C. | [optional] +**CertifyBox25** | **bool?** | Indicates certification for box 25. | [optional] +**CertifyBox26** | **bool?** | Indicates certification for box 26. | [optional] **Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] -**CertifyBox27B** | **bool** | Indicates certification for box 27B. | [optional] -**CertifyBox28** | **bool** | Indicates certification for box 28. | [optional] -**CertifyBox29** | **bool** | Indicates certification for box 29. | [optional] -**CertifyBox30A** | **bool** | Indicates certification for box 30A. | [optional] -**CertifyBox30B** | **bool** | Indicates certification for box 30B. | [optional] -**CertifyBox30C** | **bool** | Indicates certification for box 30C. | [optional] -**CertifyBox31** | **bool** | Indicates certification for box 31. | [optional] -**CertifyBox32** | **bool** | Indicates certification for box 32. | [optional] +**CertifyBox27B** | **bool?** | Indicates certification for box 27B. | [optional] +**CertifyBox28** | **bool?** | Indicates certification for box 28. | [optional] +**CertifyBox29** | **bool?** | Indicates certification for box 29. | [optional] +**CertifyBox30A** | **bool?** | Indicates certification for box 30A. | [optional] +**CertifyBox30B** | **bool?** | Indicates certification for box 30B. | [optional] +**CertifyBox30C** | **bool?** | Indicates certification for box 30C. | [optional] +**CertifyBox31** | **bool?** | Indicates certification for box 31. | [optional] +**CertifyBox32** | **bool?** | Indicates certification for box 32. | [optional] **Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] **Box32IgaType** | **string** | The IGA type information for box 32. | [optional] **Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] **Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] -**Box32TrusteeIsForeign** | **bool** | Indicates whether the trustee is foreign for box 32. | [optional] -**CertifyBox33A** | **bool** | Indicates certification for box 33A. | [optional] -**CertifyBox33B** | **bool** | Indicates certification for box 33B. | [optional] -**CertifyBox33C** | **bool** | Indicates certification for box 33C. | [optional] -**CertifyBox33D** | **bool** | Indicates certification for box 33D. | [optional] -**CertifyBox33E** | **bool** | Indicates certification for box 33E. | [optional] -**CertifyBox33F** | **bool** | Indicates certification for box 33F. | [optional] -**CertifyBox34** | **bool** | Indicates certification for box 34. | [optional] -**CertifyBox35** | **bool** | Indicates certification for box 35. | [optional] -**CertifyBox36** | **bool** | Indicates certification for box 36. | [optional] -**CertifyBox37A** | **bool** | Indicates certification for box 37A. | [optional] +**Box32TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for box 32. | [optional] +**CertifyBox33A** | **bool?** | Indicates certification for box 33A. | [optional] +**CertifyBox33B** | **bool?** | Indicates certification for box 33B. | [optional] +**CertifyBox33C** | **bool?** | Indicates certification for box 33C. | [optional] +**CertifyBox33D** | **bool?** | Indicates certification for box 33D. | [optional] +**CertifyBox33E** | **bool?** | Indicates certification for box 33E. | [optional] +**CertifyBox33F** | **bool?** | Indicates certification for box 33F. | [optional] +**CertifyBox34** | **bool?** | Indicates certification for box 34. | [optional] +**CertifyBox35** | **bool?** | Indicates certification for box 35. | [optional] +**CertifyBox36** | **bool?** | Indicates certification for box 36. | [optional] +**CertifyBox37A** | **bool?** | Indicates certification for box 37A. | [optional] **Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] -**CertifyBox37B** | **bool** | Indicates certification for box 37B. | [optional] +**CertifyBox37B** | **bool?** | Indicates certification for box 37B. | [optional] **Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] **Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] -**CertifyBox38** | **bool** | Indicates certification for box 38. | [optional] -**CertifyBox39** | **bool** | Indicates certification for box 39. | [optional] -**CertifyBox40** | **bool** | Indicates certification for box 40. | [optional] +**CertifyBox38** | **bool?** | Indicates certification for box 38. | [optional] +**CertifyBox39** | **bool?** | Indicates certification for box 39. | [optional] +**CertifyBox40** | **bool?** | Indicates certification for box 40. | [optional] **Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] -**CertifyBox42** | **bool** | Indicates certification for box 42. | [optional] +**CertifyBox42** | **bool?** | Indicates certification for box 42. | [optional] **SignerName** | **string** | The name of the signer of the form. | [optional] **EDeliveryConsentedAt** | **DateTime?** | The date when e-delivery was consented. | [optional] **Box35FormedOnDate** | **DateTime?** | | [optional] **Box36FiledOnDate** | **DateTime?** | | [optional] -**EmployeeFirstName** | **string** | The first name of the employee. | [optional] -**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] -**EmployeeLastName** | **string** | The last name of the employee. | [optional] -**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] -**Address** | **string** | The address of the individual or entity. | [optional] -**City** | **string** | The city of the address. | [optional] -**State** | **string** | The state of the address. | [optional] -**Zip** | **string** | The ZIP code of the address. | [optional] -**Box3MaritalStatus** | **string** | The marital status of the employee. | [optional] -**Box4LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] -**Box5NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] -**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] -**NonJobIncome** | **double?** | The amount of non-job income. | [optional] -**Deductions** | **double?** | The amount of deductions claimed. | [optional] -**Box6AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] -**Box7ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] -**OfficeCode** | **string** | The office code associated with the form. | [optional] -**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] -**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] -**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] -**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] -**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] -**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] -**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] -**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] -**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] -**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] -**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] -**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] -**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] -**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] -**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] -**MakingTreatyClaim** | **bool?** | | [optional] -**TreatyCountry** | **string** | The country for which the treaty applies. | [optional] -**TreatyArticle** | **string** | The specific article of the treaty being claimed. | [optional] -**WithholdingRate** | **string** | The withholding rate applied as per the treaty. | [optional] -**IncomeType** | **string** | The type of income covered by the treaty. | [optional] -**TreatyReasons** | **string** | The reasons for claiming treaty benefits. | [optional] -**CertifyBox14A** | **bool** | | [optional] -**CertifyBox14B** | **bool** | | [optional] -**CertifyBox14C** | **bool** | | [optional] -**CertifyBox171** | **bool** | | [optional] -**CertifyBox172** | **bool** | | [optional] -**CertifyBox18** | **bool** | | [optional] -**CertifyBox19** | **bool** | | [optional] -**CertifyBox21** | **bool** | | [optional] -**CertifyBox23** | **bool** | | [optional] -**CertifyBox24D** | **bool** | | [optional] -**CertifyBox25A** | **bool** | | [optional] -**CertifyBox25B** | **bool** | | [optional] -**CertifyBox25C** | **bool** | | [optional] -**CertifyBox27** | **bool** | | [optional] -**CertifyBox28A** | **bool** | | [optional] -**CertifyBox28B** | **bool** | | [optional] -**CertifyBox29A** | **bool** | | [optional] -**CertifyBox29B** | **bool** | | [optional] -**CertifyBox29C** | **bool** | | [optional] -**CertifyBox29D** | **bool** | | [optional] -**CertifyBox29E** | **bool** | | [optional] -**CertifyBox29F** | **bool** | | [optional] -**CertifyBox30** | **bool** | | [optional] -**CertifyBox33** | **bool** | | [optional] -**CertifyBox40A** | **bool** | | [optional] -**CertifyBox40B** | **bool** | | [optional] -**CertifyBox40C** | **bool** | | [optional] -**CertifyBox41** | **bool** | | [optional] -**CertifyBox43** | **bool** | | [optional] -**CertifyPart29Signature** | **bool** | | [optional] -**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] -**Part20FilingDate** | **DateTime?** | | [optional] -**Part21DeterminationDate** | **DateTime?** | | [optional] -**SubstantialUsOwners** | [**List<W8BenESubstantialUsOwnerDataModel>**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] -**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] -**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] -**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] -**TinMatchStatus** | **string** | The status of the TIN match. | [optional] -**Signature** | **string** | The signature itself | [optional] -**BusinessClassification** | **string** | The classification of the business. | [optional] -**BusinessName** | **string** | The name of the business associated with the form. | [optional] -**BusinessOther** | **string** | | [optional] -**ExemptPayeeCode** | **string** | | [optional] -**ExemptFatcaCode** | **string** | | [optional] -**AccountNumber** | **string** | The account number associated with the form. | [optional] -**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] -**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] -**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] -**Is1099able** | **bool?** | | [optional] -**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W9CompaniesApi.md b/docs/A1099/V2/W9CompaniesApi.md index 5d822c9..ae291ec 100644 --- a/docs/A1099/V2/W9CompaniesApi.md +++ b/docs/A1099/V2/W9CompaniesApi.md @@ -1,17 +1,15 @@ # Avalara.SDK.Api.A1099.V2.W9CompaniesApi -All URIs are relative to *https://api-ava1099.gamma.qa.us-west-2.aws.avalara.io/avalara1099* +All URIs are relative to *https://api.avalara.com/avalara1099* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CreateCompany**](W9CompaniesApi.md#createcompany) | **POST** /w9/companies | Creates a new company -[**GetCompanies**](W9CompaniesApi.md#getcompanies) | **GET** /w9/companies | List companies -[**UpdateCompany**](W9CompaniesApi.md#updatecompany) | **PUT** /w9/companies/{id} | Update a company +[**CreateW9Company**](W9CompaniesApi.md#createw9company) | **POST** /w9/companies | Creates a new company - -# **CreateCompany** -> CompanyResponseModel CreateCompany (CreateCompanyRequest requestParameters) + +# **CreateW9Company** +> CompanyModel CreateW9Company (CreateW9CompanyRequest requestParameters) Creates a new company @@ -28,7 +26,7 @@ using Avalara.SDK.Model.A1099.V2; namespace Example { - public class CreateCompanyExample + public class CreateW9CompanyExample { public static void Main() { @@ -39,20 +37,21 @@ namespace Example ApiClient apiClient= new ApiClient(config); var apiInstance = new W9CompaniesApi(apiClient); - var requestParameters = new CreateCompanyRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 170a8e2a-0322-4ea6-b361-b6c891604d27; // string | Unique correlation Id in a GUID format - requestParameters.CompanyCreateUpdateRequestModel = new CompanyCreateUpdateRequestModel(); // CompanyCreateUpdateRequestModel | The company to create (optional) + var requestParameters = new CreateW9CompanyRequest(); + requestParameters.AvalaraVersion = "\"2.0.0\""; // string | API version (default to "2.0.0") + requestParameters.XCorrelationId = 0a232c3b-386d-40f9-84c8-4967b32e0d39; // string | Unique correlation Id in a GUID format + requestParameters.XAvalaraClient = "xAvalaraClient_example"; // 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) + requestParameters.CompanyModel = new CompanyModel(); // CompanyModel | The company to create (optional) try { // Creates a new company - CompanyResponseModel result = apiInstance.CreateCompany(requestParameters); + CompanyModel result = apiInstance.CreateW9Company(requestParameters); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling W9CompaniesApi.CreateCompany: " + e.Message ); + Debug.Print("Exception when calling W9CompaniesApi.CreateW9Company: " + e.Message ); Debug.Print("Status Code: "+ e.ErrorCode); Debug.Print(e.StackTrace); } @@ -65,13 +64,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | + **AvalaraVersion** | **string**| API version | [default to "2.0.0"] **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **CompanyCreateUpdateRequestModel** | [**CompanyCreateUpdateRequestModel**](CompanyCreateUpdateRequestModel.md)| The company to create | [optional] + **XAvalaraClient** | **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] + **CompanyModel** | [**CompanyModel**](CompanyModel.md)| The company to create | [optional] ### Return type -[**CompanyResponseModel**](CompanyResponseModel.md) +[**CompanyModel**](CompanyModel.md) ### Authorization @@ -79,197 +79,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, text/json, application/*+json + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Created company | - | -| **400** | Bad request (e.g., model validation failed) | - | -| **401** | Authentication failed | - | - -[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - - -# **GetCompanies** -> PaginatedQueryResultModelCompanyResponse GetCompanies (GetCompaniesRequest requestParameters) - -List companies - -List existing companies. Filterable/Sortable fields are: \"name\", \"referenceId\", \"group.name\", \"createdAt\" and \"updatedAt\". - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using System.Net.Http; -using Avalara.SDK.Api.A1099.V2; -using Avalara.SDK.Client; -using Avalara.SDK.Model.A1099.V2; - -namespace Example -{ - public class GetCompaniesExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.Environment = AvalaraEnvironment.Sandbox; - config.BearerToken = ""; - - ApiClient apiClient= new ApiClient(config); - - var apiInstance = new W9CompaniesApi(apiClient); - var requestParameters = new GetCompaniesRequest(); - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = 1bda0f5a-5539-413c-a209-d19e4f3456df; // string | Unique correlation Id in a GUID format - requestParameters.Filter = "filter_example"; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. (optional) - requestParameters.Top = 56; // int? | If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. (optional) - requestParameters.Skip = 56; // int? | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. (optional) - requestParameters.OrderBy = "orderBy_example"; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. (optional) - requestParameters.Count = true; // bool? | If true, return the global count of elements in the collection. (optional) - requestParameters.CountOnly = true; // bool? | If true, return ONLY the global count of elements in the collection. It only applies when count=true. (optional) - - try - { - // List companies - PaginatedQueryResultModelCompanyResponse result = apiInstance.GetCompanies(requestParameters); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling W9CompaniesApi.GetCompanies: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Request Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AvalaraVersion** | **string**| API version | - **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **Filter** | **string**| 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] - **Top** | **int?**| If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. | [optional] - **Skip** | **int?**| If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. | [optional] - **OrderBy** | **string**| A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. | [optional] - **Count** | **bool?**| If true, return the global count of elements in the collection. | [optional] - **CountOnly** | **bool?**| If true, return ONLY the global count of elements in the collection. It only applies when count=true. | [optional] - -### Return type - -[**PaginatedQueryResultModelCompanyResponse**](PaginatedQueryResultModelCompanyResponse.md) - -### Authorization - -[bearer](../../../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | List of companies | - | -| **400** | Bad request (e.g., invalid sort key) | - | -| **404** | Not Found | - | -| **500** | Server Error | - | -| **401** | Authentication failed | - | - -[[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) - - -# **UpdateCompany** -> CompanyResponseModel UpdateCompany (UpdateCompanyRequest requestParameters) - -Update a company - -Update a company - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using System.Net.Http; -using Avalara.SDK.Api.A1099.V2; -using Avalara.SDK.Client; -using Avalara.SDK.Model.A1099.V2; - -namespace Example -{ - public class UpdateCompanyExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.Environment = AvalaraEnvironment.Sandbox; - config.BearerToken = ""; - - ApiClient apiClient= new ApiClient(config); - - var apiInstance = new W9CompaniesApi(apiClient); - var requestParameters = new UpdateCompanyRequest(); - requestParameters.Id = "id_example"; // string | The ID of the company to update - requestParameters.AvalaraVersion = 2.0; // string | API version - requestParameters.XCorrelationId = ee0acfdc-cdc7-475e-a499-cb35a056930b; // string | Unique correlation Id in a GUID format - requestParameters.CompanyCreateUpdateRequestModel = new CompanyCreateUpdateRequestModel(); // CompanyCreateUpdateRequestModel | The updated company data (optional) - - try - { - // Update a company - CompanyResponseModel result = apiInstance.UpdateCompany(requestParameters); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling W9CompaniesApi.UpdateCompany: " + e.Message ); - Debug.Print("Status Code: "+ e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Request Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **Id** | **string**| The ID of the company to update | - **AvalaraVersion** | **string**| API version | - **XCorrelationId** | **string**| Unique correlation Id in a GUID format | - **CompanyCreateUpdateRequestModel** | [**CompanyCreateUpdateRequestModel**](CompanyCreateUpdateRequestModel.md)| The updated company data | [optional] - -### Return type - -[**CompanyResponseModel**](CompanyResponseModel.md) - -### Authorization - -[bearer](../../../README.md#bearer) - -### HTTP request headers - - - **Content-Type**: application/json, text/json, application/*+json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Updated company | - | -| **400** | Bad request (e.g., model validation failed) | - | -| **401** | Authentication failed | - | -| **404** | Company not found | - | +| **201** | Created company | * Location - The location of the created W9 Company
| +| **400** | Bad Request | * X-Correlation-Id -
| +| **401** | Authentication failed | * X-Correlation-Id -
| [[Back to top]](#) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W9FormDataModel.md b/docs/A1099/V2/W9FormDataModel.md index 1846f2a..3bc7ef8 100644 --- a/docs/A1099/V2/W9FormDataModel.md +++ b/docs/A1099/V2/W9FormDataModel.md @@ -28,194 +28,23 @@ Name | Type | Description | Notes **Is1099able** | **bool?** | | [optional] **ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] **CreatedAt** | **DateTime?** | The creation date of the form. | [optional] -**EmployeeFirstName** | **string** | The first name of the employee. | [optional] -**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] -**EmployeeLastName** | **string** | The last name of the employee. | [optional] -**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] -**Box3MaritalStatus** | **string** | The marital status of the employee. | [optional] -**Box4LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] -**Box5NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] -**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] -**NonJobIncome** | **double?** | The amount of non-job income. | [optional] -**Deductions** | **double?** | The amount of deductions claimed. | [optional] -**Box6AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] -**Box7ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] -**OfficeCode** | **string** | The office code associated with the form. | [optional] -**DisregardedEntityChapter4FatcaStatus** | **string** | The FATCA status for disregarded entities under Chapter 4. | [optional] -**ResidenceAddress** | **string** | The residential address of the individual or entity. | [optional] -**ResidenceCity** | **string** | The city of residence. | [optional] -**ResidenceState** | **string** | The state of residence. | [optional] -**ResidencePostalCode** | **string** | The postal code of the residence. | [optional] -**ResidenceCountry** | **string** | The country of residence. | [optional] -**MailingAddress** | **string** | The mailing address. | [optional] -**MailingCity** | **string** | The city of the mailing address. | [optional] -**MailingState** | **string** | The state of the mailing address. | [optional] -**MailingPostalCode** | **string** | The postal code of the mailing address. | [optional] -**MailingCountry** | **string** | The country of the mailing address. | [optional] -**DisregardedAddress** | **string** | The address for disregarded entities. | [optional] -**DisregardedCity** | **string** | The city for disregarded entities. | [optional] -**DisregardedState** | **string** | The state for disregarded entities. | [optional] -**DisregardedPostalCode** | **string** | The postal code for disregarded entities. | [optional] -**DisregardedCountry** | **string** | The country for disregarded entities. | [optional] -**ForeignTin** | **string** | The foreign taxpayer identification number (TIN). | [optional] -**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**ReferenceNumber** | **string** | A reference number for the form. | [optional] -**Giin** | **string** | The global intermediary identification number (GIIN). | [optional] -**Chapter3EntityType** | **string** | The Chapter 3 entity type. | [optional] -**Chapter4FatcaStatus** | **string** | The Chapter 4 FATCA status. | [optional] -**DisregardedEntity** | **string** | The disregarded entity information. | [optional] -**DisregardedEntityGiin** | **string** | The GIIN for disregarded entities. | [optional] -**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] -**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] -**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] -**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] -**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] -**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] -**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] -**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] -**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] -**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] -**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] -**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] -**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] -**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] -**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] -**SignerName** | **string** | The name of the signer of the form. | [optional] -**ResidenceIsMailing** | **bool** | Indicates whether the residence address is also the mailing address. | [optional] -**CitizenshipCountry** | **string** | The country of citizenship. | [optional] -**MakingTreatyClaim** | **bool?** | | [optional] -**TreatyCountry** | **string** | The country for which the treaty applies. | [optional] -**TreatyArticle** | **string** | The specific article of the treaty being claimed. | [optional] -**WithholdingRate** | **string** | The withholding rate applied as per the treaty. | [optional] -**IncomeType** | **string** | The type of income covered by the treaty. | [optional] -**TreatyReasons** | **string** | The reasons for claiming treaty benefits. | [optional] -**CertifyBox14A** | **bool** | | [optional] -**CertifyBox14B** | **bool** | | [optional] -**CertifyBox14C** | **bool** | | [optional] -**CertifyBox171** | **bool** | | [optional] -**CertifyBox172** | **bool** | | [optional] -**CertifyBox18** | **bool** | | [optional] -**CertifyBox19** | **bool** | | [optional] -**CertifyBox21** | **bool** | | [optional] -**CertifyBox22** | **bool** | Indicates certification for box 22. | [optional] -**CertifyBox23** | **bool** | | [optional] -**CertifyBox24A** | **bool** | Indicates certification for box 24A. | [optional] -**CertifyBox24B** | **bool** | Indicates certification for box 24B. | [optional] -**CertifyBox24C** | **bool** | Indicates certification for box 24C. | [optional] -**CertifyBox24D** | **bool** | | [optional] -**CertifyBox25A** | **bool** | | [optional] -**CertifyBox25B** | **bool** | | [optional] -**CertifyBox25C** | **bool** | | [optional] -**CertifyBox26** | **bool** | Indicates certification for box 26. | [optional] -**CertifyBox27** | **bool** | | [optional] -**CertifyBox28A** | **bool** | | [optional] -**CertifyBox28B** | **bool** | | [optional] -**CertifyBox29A** | **bool** | | [optional] -**CertifyBox29B** | **bool** | | [optional] -**CertifyBox29C** | **bool** | | [optional] -**CertifyBox29D** | **bool** | | [optional] -**CertifyBox29E** | **bool** | | [optional] -**CertifyBox29F** | **bool** | | [optional] -**CertifyBox30** | **bool** | | [optional] -**CertifyBox31** | **bool** | Indicates certification for box 31. | [optional] -**CertifyBox32** | **bool** | Indicates certification for box 32. | [optional] -**CertifyBox33** | **bool** | | [optional] -**CertifyBox34** | **bool** | Indicates certification for box 34. | [optional] -**CertifyBox35** | **bool** | Indicates certification for box 35. | [optional] -**CertifyBox36** | **bool** | Indicates certification for box 36. | [optional] -**CertifyBox37A** | **bool** | Indicates certification for box 37A. | [optional] -**CertifyBox37B** | **bool** | Indicates certification for box 37B. | [optional] -**CertifyBox38** | **bool** | Indicates certification for box 38. | [optional] -**CertifyBox39** | **bool** | Indicates certification for box 39. | [optional] -**CertifyBox40A** | **bool** | | [optional] -**CertifyBox40B** | **bool** | | [optional] -**CertifyBox40C** | **bool** | | [optional] -**CertifyBox41** | **bool** | | [optional] -**CertifyBox43** | **bool** | | [optional] -**CertifyPart29Signature** | **bool** | | [optional] -**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] -**Part20FilingDate** | **DateTime?** | | [optional] -**Part21DeterminationDate** | **DateTime?** | | [optional] -**SubstantialUsOwners** | [**List<W8BenESubstantialUsOwnerDataModel>**](W8BenESubstantialUsOwnerDataModel.md) | | [optional] -**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] -**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] -**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] **ReferenceId** | **string** | A reference identifier for the form. | [optional] -**CompanyId** | **int?** | The ID of the associated company. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] **DisplayName** | **string** | The display name associated with the form. | [optional] **Email** | **string** | The email address of the individual associated with the form. | [optional] -**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] -**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] -**Ein** | **string** | The employer identification number (EIN). | [optional] -**EinType** | **string** | The type of employer identification number (EIN). | [optional] -**CertifyBox14** | **bool** | Indicates certification for box 14. | [optional] -**CertifyBox15A** | **bool** | Indicates certification for box 15A. | [optional] -**CertifyBox15B** | **bool** | Indicates certification for box 15B. | [optional] -**CertifyBox15C** | **bool** | Indicates certification for box 15C. | [optional] -**CertifyBox15D** | **bool** | Indicates certification for box 15D. | [optional] -**CertifyBox15E** | **bool** | Indicates certification for box 15E. | [optional] -**CertifyBox15F** | **bool** | Indicates certification for box 15F. | [optional] -**CertifyBox15G** | **bool** | Indicates certification for box 15G. | [optional] -**CertifyBox15H** | **bool** | Indicates certification for box 15H. | [optional] -**CertifyBox15I** | **bool** | Indicates certification for box 15I. | [optional] -**CertifyBox16A** | **bool** | Indicates certification for box 16A. | [optional] -**Box16BQddCorporate** | **bool** | Indicates certification for box 16B as a QDD corporate entity. | [optional] -**Box16BQddPartnership** | **bool** | Indicates certification for box 16B as a QDD partnership. | [optional] -**Box16BQddDisregardedEntity** | **bool** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] -**CertifyBox17A** | **bool** | Indicates certification for box 17A. | [optional] -**CertifyBox17B** | **bool** | Indicates certification for box 17B. | [optional] -**CertifyBox17C** | **bool** | Indicates certification for box 17C. | [optional] -**CertifyBox17D** | **bool** | Indicates certification for box 17D. | [optional] -**CertifyBox17E** | **bool** | Indicates certification for box 17E. | [optional] -**CertifyBox18A** | **bool** | Indicates certification for box 18A. | [optional] -**CertifyBox18B** | **bool** | Indicates certification for box 18B. | [optional] -**CertifyBox18C** | **bool** | Indicates certification for box 18C. | [optional] -**CertifyBox18D** | **bool** | Indicates certification for box 18D. | [optional] -**CertifyBox18E** | **bool** | Indicates certification for box 18E. | [optional] -**CertifyBox18F** | **bool** | Indicates certification for box 18F. | [optional] -**CertifyBox19A** | **bool** | Indicates certification for box 19A. | [optional] -**CertifyBox19B** | **bool** | Indicates certification for box 19B. | [optional] -**CertifyBox19C** | **bool** | Indicates certification for box 19C. | [optional] -**CertifyBox19D** | **bool** | Indicates certification for box 19D. | [optional] -**CertifyBox19E** | **bool** | Indicates certification for box 19E. | [optional] -**CertifyBox19F** | **bool** | Indicates certification for box 19F. | [optional] -**CertifyBox20** | **bool** | Indicates certification for box 20. | [optional] -**CertifyBox21A** | **bool** | Indicates certification for box 21A. | [optional] -**CertifyBox21B** | **bool** | Indicates certification for box 21B. | [optional] -**CertifyBox21C** | **bool** | Indicates certification for box 21C. | [optional] -**CertifyBox21D** | **bool** | Indicates certification for box 21D. | [optional] -**CertifyBox21E** | **bool** | Indicates certification for box 21E. | [optional] -**CertifyBox21F** | **bool** | Indicates certification for box 21F. | [optional] -**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] -**CertifyBox23B** | **bool** | Indicates certification for box 23B. | [optional] -**CertifyBox23C** | **bool** | Indicates certification for box 23C. | [optional] -**CertifyBox25** | **bool** | Indicates certification for box 25. | [optional] -**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] -**CertifyBox27B** | **bool** | Indicates certification for box 27B. | [optional] -**CertifyBox28** | **bool** | Indicates certification for box 28. | [optional] -**CertifyBox29** | **bool** | Indicates certification for box 29. | [optional] -**CertifyBox30A** | **bool** | Indicates certification for box 30A. | [optional] -**CertifyBox30B** | **bool** | Indicates certification for box 30B. | [optional] -**CertifyBox30C** | **bool** | Indicates certification for box 30C. | [optional] -**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] -**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] -**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] -**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] -**Box32TrusteeIsForeign** | **bool** | Indicates whether the trustee is foreign for box 32. | [optional] -**CertifyBox33A** | **bool** | Indicates certification for box 33A. | [optional] -**CertifyBox33B** | **bool** | Indicates certification for box 33B. | [optional] -**CertifyBox33C** | **bool** | Indicates certification for box 33C. | [optional] -**CertifyBox33D** | **bool** | Indicates certification for box 33D. | [optional] -**CertifyBox33E** | **bool** | Indicates certification for box 33E. | [optional] -**CertifyBox33F** | **bool** | Indicates certification for box 33F. | [optional] -**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] -**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] -**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] -**CertifyBox40** | **bool** | Indicates certification for box 40. | [optional] -**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] -**CertifyBox42** | **bool** | Indicates certification for box 42. | [optional] -**Box35FormedOnDate** | **DateTime?** | | [optional] -**Box36FiledOnDate** | **DateTime?** | | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/W9FormDataModelsOneOf.md b/docs/A1099/V2/W9FormDataModelsOneOf.md new file mode 100644 index 0000000..ae2d6af --- /dev/null +++ b/docs/A1099/V2/W9FormDataModelsOneOf.md @@ -0,0 +1,232 @@ +# Avalara.SDK.Model.A1099.V2.W9FormDataModelsOneOf +Resource data model for /w9/forms API + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] [readonly] +**SignedDate** | **DateTime?** | The date the form was signed. | [optional] +**CreatedAt** | **DateTime?** | The creation date of the form. | [optional] +**EmployeeFirstName** | **string** | The first name of the employee. | [optional] +**EmployeeMiddleName** | **string** | The middle name of the employee. | [optional] +**EmployeeLastName** | **string** | The last name of the employee. | [optional] +**EmployeeNameSuffix** | **string** | The name suffix of the employee. | [optional] +**Address** | **string** | The address of the individual or entity. | [optional] +**City** | **string** | The city of the address. | [optional] +**State** | **string** | The state of the address. | [optional] +**Zip** | **string** | The ZIP code of the address. | [optional] +**TypeOfTin** | **string** | The type of TIN provided. | [optional] +**Tin** | **string** | The taxpayer identification number (TIN). | [optional] +**MaritalStatus** | **string** | The marital status of the employee. | [optional] +**LastNameDiffers** | **bool?** | Indicates whether the last name differs from prior records. | [optional] +**NumAllowances** | **int?** | The number of allowances claimed by the employee. | [optional] +**OtherDependents** | **int?** | The number of dependents other than allowances. | [optional] +**NonJobIncome** | **double?** | The amount of non-job income. | [optional] +**Deductions** | **double?** | The amount of deductions claimed. | [optional] +**AdditionalWithheld** | **double?** | The additional amount withheld. | [optional] +**ExemptFromWithholding** | **bool?** | Indicates whether the employee is exempt from withholding. | [optional] +**OfficeCode** | **string** | The office code associated with the form. | [optional] +**EDeliveryConsentedAt** | **DateTime?** | The date when e-delivery was consented. | [optional] +**Id** | **string** | | [optional] +**EntryStatus** | **string** | | [optional] +**UpdatedAt** | **DateTime?** | The last updated date of the form. | [optional] +**ReferenceId** | **string** | A reference identifier for the form. | [optional] +**CompanyId** | **string** | The ID of the associated company. | [optional] +**DisplayName** | **string** | The display name associated with the form. | [optional] +**Email** | **string** | The email address of the individual associated with the form. | [optional] +**Archived** | **bool?** | Indicates whether the form is archived. | [optional] +**EntryStatusDate** | **DateTime?** | | [optional] +**PdfJson** | **string** | | [optional] +**PdfVersion** | **string** | | [optional] +**RequestToken** | **string** | | [optional] +**Signature** | **string** | | [optional] +**Mobile** | **bool?** | | [optional] +**AppVersion** | **string** | | [optional] +**Platform** | **string** | | [optional] +**OsVersion** | **string** | | [optional] +**AncestorId** | **string** | | [optional] +**DisregardedEntityChapter4FatcaStatus** | **string** | The FATCA status for disregarded entities under Chapter 4. | [optional] +**Name** | **string** | The name of the individual or entity associated with the form. | [optional] +**ResidenceAddress** | **string** | The residential address of the individual or entity. | [optional] +**ResidenceCity** | **string** | The city of residence. | [optional] +**ResidenceState** | **string** | The state of residence. | [optional] +**ResidencePostalCode** | **string** | The postal code of the residence. | [optional] +**ResidenceCountry** | **string** | The country of residence. | [optional] +**MailingAddress** | **string** | The mailing address. | [optional] +**MailingCity** | **string** | The city of the mailing address. | [optional] +**MailingState** | **string** | The state of the mailing address. | [optional] +**MailingPostalCode** | **string** | The postal code of the mailing address. | [optional] +**MailingCountry** | **string** | The country of the mailing address. | [optional] +**DisregardedAddress** | **string** | The address for disregarded entities. | [optional] +**DisregardedCity** | **string** | The city for disregarded entities. | [optional] +**DisregardedState** | **string** | The state for disregarded entities. | [optional] +**DisregardedPostalCode** | **string** | The postal code for disregarded entities. | [optional] +**DisregardedCountry** | **string** | The country for disregarded entities. | [optional] +**ForeignTin** | **string** | The foreign taxpayer identification number (TIN). | [optional] +**FtinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] +**ReferenceNumber** | **string** | A reference number for the form. | [optional] +**Giin** | **string** | The global intermediary identification number (GIIN). | [optional] +**Chapter3EntityType** | **string** | The Chapter 3 entity type. | [optional] +**Chapter4FatcaStatus** | **string** | The Chapter 4 FATCA status. | [optional] +**DisregardedEntity** | **string** | The disregarded entity information. | [optional] +**DisregardedEntityGiin** | **string** | The GIIN for disregarded entities. | [optional] +**BenefitLimitation** | **string** | The benefit limitation for tax treaty claims. | [optional] +**Part4SponsoringEntity** | **string** | The sponsoring entity information for Part 4. | [optional] +**Part4SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 4. | [optional] +**Part7SponsoringEntity** | **string** | The sponsoring entity information for Part 7. | [optional] +**Part12IgaCountry** | **string** | The IGA country information for Part 12. | [optional] +**Part12IgaType** | **string** | The IGA type information for Part 12. | [optional] +**Part12FatcaStatusUnderIgaAnnexIi** | **string** | The FATCA status under IGA Annex II for Part 12. | [optional] +**Part12TrusteeName** | **string** | The trustee name for Part 12. | [optional] +**Part12TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for Part 12. | [optional] +**Part12Model2IgaGiin** | **string** | The GIIN for Model 2 IGA in Part 12. | [optional] +**Box37AExchange** | **string** | The exchange information for Box 37A. | [optional] +**Box37BExchange** | **string** | The exchange information for Box 37B. | [optional] +**Box37BEntity** | **string** | The entity information for Box 37B. | [optional] +**Part28SponsoringEntity** | **string** | The sponsoring entity information for Part 28. | [optional] +**Part28SponsoringEntityGiin** | **string** | The GIIN for the sponsoring entity in Part 28. | [optional] +**SignerName** | **string** | The name of the signer of the form. | [optional] +**ResidenceIsMailing** | **bool?** | Indicates whether the residence address is also the mailing address. | [optional] +**CitizenshipCountry** | **string** | The country of citizenship. | [optional] +**MakingTreatyClaim** | **bool?** | | [optional] +**TreatyCountry** | **string** | The country for which the treaty applies. | [optional] +**TreatyArticle** | **string** | The specific article of the treaty being claimed. | [optional] +**WithholdingRate** | **string** | The withholding rate applied as per the treaty. | [optional] +**IncomeType** | **string** | The type of income covered by the treaty. | [optional] +**TreatyReasons** | **string** | The reasons for claiming treaty benefits. | [optional] +**CertifyBox14A** | **bool** | | [optional] +**CertifyBox14B** | **bool** | | [optional] +**CertifyBox14C** | **bool** | | [optional] +**CertifyBox171** | **bool** | | [optional] +**CertifyBox172** | **bool** | | [optional] +**CertifyBox18** | **bool** | | [optional] +**CertifyBox19** | **bool** | | [optional] +**CertifyBox21** | **bool** | | [optional] +**CertifyBox22** | **bool?** | Indicates certification for box 22. | [optional] +**CertifyBox23** | **bool** | | [optional] +**CertifyBox24A** | **bool?** | Indicates certification for box 24A. | [optional] +**CertifyBox24B** | **bool?** | Indicates certification for box 24B. | [optional] +**CertifyBox24C** | **bool?** | Indicates certification for box 24C. | [optional] +**CertifyBox24D** | **bool** | | [optional] +**CertifyBox25A** | **bool** | | [optional] +**CertifyBox25B** | **bool** | | [optional] +**CertifyBox25C** | **bool** | | [optional] +**CertifyBox26** | **bool?** | Indicates certification for box 26. | [optional] +**CertifyBox27** | **bool** | | [optional] +**CertifyBox28A** | **bool** | | [optional] +**CertifyBox28B** | **bool** | | [optional] +**CertifyBox29A** | **bool** | | [optional] +**CertifyBox29B** | **bool** | | [optional] +**CertifyBox29C** | **bool** | | [optional] +**CertifyBox29D** | **bool** | | [optional] +**CertifyBox29E** | **bool** | | [optional] +**CertifyBox29F** | **bool** | | [optional] +**CertifyBox30** | **bool** | | [optional] +**CertifyBox31** | **bool?** | Indicates certification for box 31. | [optional] +**CertifyBox32** | **bool?** | Indicates certification for box 32. | [optional] +**CertifyBox33** | **bool** | | [optional] +**CertifyBox34** | **bool?** | Indicates certification for box 34. | [optional] +**CertifyBox35** | **bool?** | Indicates certification for box 35. | [optional] +**CertifyBox36** | **bool?** | Indicates certification for box 36. | [optional] +**CertifyBox37A** | **bool?** | Indicates certification for box 37A. | [optional] +**CertifyBox37B** | **bool?** | Indicates certification for box 37B. | [optional] +**CertifyBox38** | **bool?** | Indicates certification for box 38. | [optional] +**CertifyBox39** | **bool?** | Indicates certification for box 39. | [optional] +**CertifyBox40A** | **bool** | | [optional] +**CertifyBox40B** | **bool** | | [optional] +**CertifyBox40C** | **bool** | | [optional] +**CertifyBox41** | **bool** | | [optional] +**CertifyBox43** | **bool** | | [optional] +**CertifyPart29Signature** | **bool** | | [optional] +**Part19FormationOrResolutionDate** | **DateTime?** | | [optional] +**Part20FilingDate** | **DateTime?** | | [optional] +**Part21DeterminationDate** | **DateTime?** | | [optional] +**Birthday** | **string** | The birthday of the individual associated with the form. | [optional] +**ForeignTinNotRequired** | **bool?** | Indicates whether a foreign TIN is not required. | [optional] +**SignerCapacity** | **string** | The capacity in which the signer is signing the form. | [optional] +**Ein** | **string** | The employer identification number (EIN). | [optional] +**EinType** | **string** | The type of employer identification number (EIN). | [optional] +**CertifyBox14** | **bool?** | Indicates certification for box 14. | [optional] +**CertifyBox15A** | **bool?** | Indicates certification for box 15A. | [optional] +**CertifyBox15B** | **bool?** | Indicates certification for box 15B. | [optional] +**CertifyBox15C** | **bool?** | Indicates certification for box 15C. | [optional] +**CertifyBox15D** | **bool?** | Indicates certification for box 15D. | [optional] +**CertifyBox15E** | **bool?** | Indicates certification for box 15E. | [optional] +**CertifyBox15F** | **bool?** | Indicates certification for box 15F. | [optional] +**CertifyBox15G** | **bool?** | Indicates certification for box 15G. | [optional] +**CertifyBox15H** | **bool?** | Indicates certification for box 15H. | [optional] +**CertifyBox15I** | **bool?** | Indicates certification for box 15I. | [optional] +**CertifyBox16A** | **bool?** | Indicates certification for box 16A. | [optional] +**Box16BQddCorporate** | **bool?** | Indicates certification for box 16B as a QDD corporate entity. | [optional] +**Box16BQddPartnership** | **bool?** | Indicates certification for box 16B as a QDD partnership. | [optional] +**Box16BQddDisregardedEntity** | **bool?** | Indicates certification for box 16B as a QDD disregarded entity. | [optional] +**CertifyBox17A** | **bool?** | Indicates certification for box 17A. | [optional] +**CertifyBox17B** | **bool?** | Indicates certification for box 17B. | [optional] +**CertifyBox17C** | **bool?** | Indicates certification for box 17C. | [optional] +**CertifyBox17D** | **bool?** | Indicates certification for box 17D. | [optional] +**CertifyBox17E** | **bool?** | Indicates certification for box 17E. | [optional] +**CertifyBox18A** | **bool?** | Indicates certification for box 18A. | [optional] +**CertifyBox18B** | **bool?** | Indicates certification for box 18B. | [optional] +**CertifyBox18C** | **bool?** | Indicates certification for box 18C. | [optional] +**CertifyBox18D** | **bool?** | Indicates certification for box 18D. | [optional] +**CertifyBox18E** | **bool?** | Indicates certification for box 18E. | [optional] +**CertifyBox18F** | **bool?** | Indicates certification for box 18F. | [optional] +**CertifyBox19A** | **bool?** | Indicates certification for box 19A. | [optional] +**CertifyBox19B** | **bool?** | Indicates certification for box 19B. | [optional] +**CertifyBox19C** | **bool?** | Indicates certification for box 19C. | [optional] +**CertifyBox19D** | **bool?** | Indicates certification for box 19D. | [optional] +**CertifyBox19E** | **bool?** | Indicates certification for box 19E. | [optional] +**CertifyBox19F** | **bool?** | Indicates certification for box 19F. | [optional] +**CertifyBox20** | **bool?** | Indicates certification for box 20. | [optional] +**CertifyBox21A** | **bool?** | Indicates certification for box 21A. | [optional] +**CertifyBox21B** | **bool?** | Indicates certification for box 21B. | [optional] +**CertifyBox21C** | **bool?** | Indicates certification for box 21C. | [optional] +**CertifyBox21D** | **bool?** | Indicates certification for box 21D. | [optional] +**CertifyBox21E** | **bool?** | Indicates certification for box 21E. | [optional] +**CertifyBox21F** | **bool?** | Indicates certification for box 21F. | [optional] +**Box23ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 23A. | [optional] +**CertifyBox23B** | **bool?** | Indicates certification for box 23B. | [optional] +**CertifyBox23C** | **bool?** | Indicates certification for box 23C. | [optional] +**CertifyBox25** | **bool?** | Indicates certification for box 25. | [optional] +**Box27ANameSponsoringEntity** | **string** | The name of the sponsoring entity for box 27A. | [optional] +**CertifyBox27B** | **bool?** | Indicates certification for box 27B. | [optional] +**CertifyBox28** | **bool?** | Indicates certification for box 28. | [optional] +**CertifyBox29** | **bool?** | Indicates certification for box 29. | [optional] +**CertifyBox30A** | **bool?** | Indicates certification for box 30A. | [optional] +**CertifyBox30B** | **bool?** | Indicates certification for box 30B. | [optional] +**CertifyBox30C** | **bool?** | Indicates certification for box 30C. | [optional] +**Box32IgaCountry** | **string** | The IGA country information for box 32. | [optional] +**Box32IgaType** | **string** | The IGA type information for box 32. | [optional] +**Box32IgaTreatedAs** | **string** | The IGA treatment information for box 32. | [optional] +**Box32TrusteeOrSponsor** | **string** | The trustee or sponsor information for box 32. | [optional] +**Box32TrusteeIsForeign** | **bool?** | Indicates whether the trustee is foreign for box 32. | [optional] +**CertifyBox33A** | **bool?** | Indicates certification for box 33A. | [optional] +**CertifyBox33B** | **bool?** | Indicates certification for box 33B. | [optional] +**CertifyBox33C** | **bool?** | Indicates certification for box 33C. | [optional] +**CertifyBox33D** | **bool?** | Indicates certification for box 33D. | [optional] +**CertifyBox33E** | **bool?** | Indicates certification for box 33E. | [optional] +**CertifyBox33F** | **bool?** | Indicates certification for box 33F. | [optional] +**Box37ASecuritiesMarket** | **string** | The securities market information for box 37A. | [optional] +**Box37BNameOfEntity** | **string** | The name of the entity for box 37B. | [optional] +**Box37BSecuritiesMarket** | **string** | The securities market information for box 37B. | [optional] +**CertifyBox40** | **bool?** | Indicates certification for box 40. | [optional] +**Box41SponsoringEntity** | **string** | The sponsoring entity information for box 41. | [optional] +**CertifyBox42** | **bool?** | Indicates certification for box 42. | [optional] +**Box35FormedOnDate** | **DateTime?** | | [optional] +**Box36FiledOnDate** | **DateTime?** | | [optional] +**TinMatchStatus** | **string** | The status of the TIN match. | [optional] +**BusinessClassification** | **string** | The classification of the business. | [optional] +**BusinessName** | **string** | The name of the business associated with the form. | [optional] +**BusinessOther** | **string** | | [optional] +**ExemptPayeeCode** | **string** | | [optional] +**ExemptFatcaCode** | **string** | | [optional] +**AccountNumber** | **string** | The account number associated with the form. | [optional] +**ForeignCountryIndicator** | **bool?** | Indicates whether the individual or entity is in a foreign country. | [optional] +**ForeignAddress** | **string** | The foreign address of the individual or entity. | [optional] +**BackupWithholding** | **bool?** | Indicates whether backup withholding applies. | [optional] +**Is1099able** | **bool?** | | [optional] +**ForeignPartnerOwnerOrBeneficiary** | **bool?** | Indicates whether the individual is a foreign partner, owner, or beneficiary. | [optional] + +[[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) + diff --git a/docs/EInvoicing/V1/BatchSearch.md b/docs/EInvoicing/V1/BatchSearch.md index 85dc3ce..1f380f1 100644 --- a/docs/EInvoicing/V1/BatchSearch.md +++ b/docs/EInvoicing/V1/BatchSearch.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.BatchSearch -Provides details about a batch search operation, including status, timestamps, and potential errors. ## Properties diff --git a/docs/EInvoicing/V1/DataInputFieldsResponse.md b/docs/EInvoicing/V1/DataInputFieldsResponse.md index a4ff2ed..a80c452 100644 --- a/docs/EInvoicing/V1/DataInputFieldsResponse.md +++ b/docs/EInvoicing/V1/DataInputFieldsResponse.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.DataInputFieldsResponse -Response model providing a list of input fields required, optional, or conditional for different country mandates. ## Properties diff --git a/docs/EInvoicing/V1/DocumentFetch.md b/docs/EInvoicing/V1/DocumentFetch.md index 24381ba..d3d3760 100644 --- a/docs/EInvoicing/V1/DocumentFetch.md +++ b/docs/EInvoicing/V1/DocumentFetch.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.DocumentFetch -An object of the inbound document ## Properties diff --git a/docs/EInvoicing/V1/DocumentSummary.md b/docs/EInvoicing/V1/DocumentSummary.md index 289d404..5c4f63e 100644 --- a/docs/EInvoicing/V1/DocumentSummary.md +++ b/docs/EInvoicing/V1/DocumentSummary.md @@ -6,7 +6,6 @@ Displays a summary of information about the document Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | The unique ID for this document | [optional] -**CompanyId** | **string** | Unique identifier that represents the company within the system. | [optional] **ProcessDateTime** | **string** | The date and time when the document was processed, displayed in the format YYYY-MM-DDThh:mm:ss | [optional] **Status** | **string** | The Document status | [optional] **SupplierName** | **string** | The name of the supplier in the transaction | [optional] diff --git a/docs/EInvoicing/V1/ErrorResponse.md b/docs/EInvoicing/V1/ErrorResponse.md index 32f4b8f..02d779a 100644 --- a/docs/EInvoicing/V1/ErrorResponse.md +++ b/docs/EInvoicing/V1/ErrorResponse.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.ErrorResponse -Structure for reporting errors encountered during API operations, including title, status, and detailed message. ## Properties diff --git a/docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md b/docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md index c7cd71d..0026791 100644 --- a/docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md +++ b/docs/EInvoicing/V1/FetchDocumentsRequestMetadata.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **WorkflowId** | **string** | Specifies a unique ID for this workflow. | **DataFormat** | **string** | Specifies the data format for this workflow | **DataFormatVersion** | **decimal** | Specifies the data format version number | -**OutputDataFormat** | **string** | Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. | -**OutputDataFormatVersion** | **decimal** | Specifies the version of the selected output document format | **CountryCode** | **string** | The two-letter ISO-3166 country code for the country for which document is being retrieved | **CountryMandate** | **string** | The e-invoicing mandate for the specified country | diff --git a/docs/EInvoicing/V1/InteropApi.md b/docs/EInvoicing/V1/InteropApi.md index d600a48..7ce578d 100644 --- a/docs/EInvoicing/V1/InteropApi.md +++ b/docs/EInvoicing/V1/InteropApi.md @@ -39,7 +39,7 @@ namespace Example var apiInstance = new InteropApi(apiClient); var requestParameters = new SubmitInteropDocumentRequest(); requestParameters.DocumentType = "ubl-invoice-2.1"; // string | Type of the document being uploaded. Partners will be configured in Avalara system to send only certain types of documents. - requestParameters.InterchangeType = "FI-B2B-TIEKE"; // 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. + requestParameters.InterchangeType = "FI-B2B"; // 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. requestParameters.AvalaraVersion = 1.2; // string | The HTTP Header meant to specify the version of the API intended to be used requestParameters.XAvalaraClient = 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\" (optional) requestParameters.XCorrelationID = f3f0d19a-01a1-4748-8a58-f000d0424f43; // string | The caller can use this as an identifier to use as a correlation id to trace the call. (optional) diff --git a/docs/EInvoicing/V1/Mandate.md b/docs/EInvoicing/V1/Mandate.md index e15bde8..10b28cb 100644 --- a/docs/EInvoicing/V1/Mandate.md +++ b/docs/EInvoicing/V1/Mandate.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.Mandate -An object representing the country mandate ## Properties @@ -9,14 +8,9 @@ Name | Type | Description | Notes **CountryMandate** | **string** | **[LEGACY]** This field is retained for backward compatibility. It is recommended to use `mandateId` instead. The `countryMandate` similar to the `mandateId` is comprised of the country code, mandate type, and the network or regulation type (for example, AU-B2G-PEPPOL). | [optional] **CountryCode** | **string** | Country code | [optional] **Description** | **string** | Mandate description | [optional] -**SupportedByELRAPI** | **bool** | Indicates whether this mandate supported by the ELR API | [optional] +**SupportedByPartnerAPI** | **bool** | Indicates whether this mandate supported by the partner API | [optional] **MandateFormat** | **string** | Mandate format | [optional] -**EInvoicingFlow** | **string** | The type of e-invoicing flow for this mandate | [optional] -**EInvoicingFlowDocumentationLink** | **string** | Link to the documentation for this mandate's e-invoicing flow | [optional] -**GetInvoiceAvailableMediaType** | **List<string>** | List of available media types for downloading invoices for this mandate | [optional] -**SupportsInboundDigitalDocument** | **string** | Indicates whether this mandate supports inbound digital documents | [optional] **InputDataFormats** | [**List<InputDataFormats>**](InputDataFormats.md) | Format and version used when inputting the data | [optional] -**OutputDataFormats** | [**List<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] **WorkflowIds** | [**List<WorkflowIds>**](WorkflowIds.md) | Workflow ID list | [optional] [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to README]](../../../README.md) diff --git a/docs/EInvoicing/V1/RequiredWhenField.md b/docs/EInvoicing/V1/RequiredWhenField.md index 0d21227..691eb20 100644 --- a/docs/EInvoicing/V1/RequiredWhenField.md +++ b/docs/EInvoicing/V1/RequiredWhenField.md @@ -1,5 +1,4 @@ # Avalara.SDK.Model.EInvoicing.V1.RequiredWhenField -Mandates for which this field is required ## Properties diff --git a/docs/EInvoicing/V1/SubmitDocumentMetadata.md b/docs/EInvoicing/V1/SubmitDocumentMetadata.md index bbfb0df..01bc591 100644 --- a/docs/EInvoicing/V1/SubmitDocumentMetadata.md +++ b/docs/EInvoicing/V1/SubmitDocumentMetadata.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **WorkflowId** | **string** | Specifies a unique ID for this workflow. | **DataFormat** | **string** | Specifies the data format for this workflow. | **DataFormatVersion** | **string** | Specifies the data format version number. | -**OutputDataFormat** | **string** | Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. | [optional] -**OutputDataFormatVersion** | **string** | Specifies the version of the selected output document format | [optional] **CountryCode** | **string** | The two-letter ISO-3166 country code for the country where the document is being submitted | **CountryMandate** | **string** | The e-invoicing mandate for the specified country. | diff --git a/docs/EInvoicing/V1/TradingPartnersApi.md b/docs/EInvoicing/V1/TradingPartnersApi.md index 05fdf27..127e0b8 100644 --- a/docs/EInvoicing/V1/TradingPartnersApi.md +++ b/docs/EInvoicing/V1/TradingPartnersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **BatchSearchParticipants** -> BatchSearchParticipants202Response BatchSearchParticipants (BatchSearchParticipantsRequest requestParameters) +> void BatchSearchParticipants (BatchSearchParticipantsRequest requestParameters) Creates a batch search and performs a batch search in the directory for participants in the background. @@ -52,8 +52,7 @@ namespace Example try { // Creates a batch search and performs a batch search in the directory for participants in the background. - BatchSearchParticipants202Response result = apiInstance.BatchSearchParticipants(requestParameters); - Debug.WriteLine(result); + apiInstance.BatchSearchParticipants(requestParameters); } catch (ApiException e) { @@ -79,7 +78,7 @@ Name | Type | Description | Notes ### Return type -[**BatchSearchParticipants202Response**](BatchSearchParticipants202Response.md) +void (empty response body) ### Authorization @@ -195,7 +194,7 @@ Name | Type | Description | Notes Get the batch search details for a given id. -This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. +Get the batch search details for a given id. ### Example ```csharp @@ -270,7 +269,6 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Get the batch search details for a given id. | * X-Correlation-Id -
| | **401** | Unauthorized | * X-Correlation-Id -
| -| **404** | Report not found | * X-Correlation-Id -
| | **403** | Forbidden | * X-Correlation-Id -
| | **500** | Internal server error | * X-Correlation-Id -
| @@ -282,7 +280,7 @@ Name | Type | Description | Notes List all batch searches that were previously submitted. -This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. +Retrieves all batch searches performed by the user. ### Example ```csharp @@ -364,7 +362,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of batch searches | * X-Correlation-Id -
| -| **400** | Bad request | * X-Correlation-Id -
| | **401** | Unauthorized | * X-Correlation-Id -
| | **403** | Forbidden | * X-Correlation-Id -
| | **500** | Internal server error | * X-Correlation-Id -
| @@ -377,7 +374,7 @@ Name | Type | Description | Notes Returns a list of participants matching the input query. -This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. +Returns a list of participants matching the input query. ### Example ```csharp diff --git a/src/Avalara.SDK/Api/A1099/V2/Class1099FormsApi.cs b/src/Avalara.SDK/Api/A1099/V2/Class1099FormsApi.cs new file mode 100644 index 0000000..af14bd7 --- /dev/null +++ b/src/Avalara.SDK/Api/A1099/V2/Class1099FormsApi.cs @@ -0,0 +1,1516 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Avalara.SDK.Api.A1099.V2 +{ + /// + /// Represents the Request object for the BulkUpsert1099Forms API + /// + public class BulkUpsert1099FormsRequest { + /// + /// Constructor for the Request object + /// + public BulkUpsert1099FormsRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// A request payload containing the details of the 1099 form to upsert. + /// + public BulkUpsert1099FormsRequest BulkUpsert1099FormsRequest { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the Call1099FormsPost API + /// + public class Call1099FormsPostRequest { + /// + /// Constructor for the Request object + /// + public Call1099FormsPostRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// A request payload containing the details of the 1099 form to create. + /// + public Form1099OneOf Form1099OneOf { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the Delete1099Form API + /// + public class Delete1099FormRequest { + /// + /// Constructor for the Request object + /// + public Delete1099FormRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// The unique identifier of the form to delete. + /// + public string FormId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the Download1099FormPDF API + /// + public class Download1099FormPDFRequest { + /// + /// Constructor for the Request object + /// + public Download1099FormPDFRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// A request payload containing parameters to filter forms. + /// + public InitiateDownloadInputModel InitiateDownloadInputModel { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the Get1099Form API + /// + public class Get1099FormRequest { + /// + /// Constructor for the Request object + /// + public Get1099FormRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// The unique identifier of the form to retrieve. + /// + public string FormId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the List1099Forms API + /// + public class List1099FormsRequest { + /// + /// Constructor for the Request object + /// + public List1099FormsRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + /// + /// 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>. Filterable: issuerReferenceId, taxYear, federalEfile, federalEfileStatus, postalMail, postalMailStatus, stateEfile, stateEfileStatus, tinMatch, tinMatchStatus, addressVerification, addressVerificationStatus, referenceId, city, state, zip + /// + public string Filter { get; set; } + /// + /// 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. + /// + public int? Top { get; set; } + /// + /// If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. + /// + public int? Skip { get; set; } + /// + /// A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. + /// + public string OrderBy { get; set; } + /// + /// Set true to request count of complete collection in response. + /// + public bool? Count { get; set; } + } + + /// + /// Represents the Request object for the Update1099Form API + /// + public class Update1099FormRequest { + /// + /// Constructor for the Request object + /// + public Update1099FormRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// A request payload containing the updated details of the 1099 form. + /// + public Form1099OneOf Form1099OneOf { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IClass1099FormsApiSync + { + #region Synchronous Operations + /// + /// Create/Update 1099 forms + /// + /// + /// This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// JobModel + JobModel BulkUpsert1099Forms(BulkUpsert1099FormsRequest requestParameters); + + /// + /// Create a new 1099 form + /// + /// + /// This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + Form1099OneOf Call1099FormsPost(Call1099FormsPostRequest requestParameters); + + /// + /// Delete a 1099 form + /// + /// + /// This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + void Delete1099Form(Delete1099FormRequest requestParameters); + + /// + /// Submit a download job to retrieve PDF forms + /// + /// + /// This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// InititateDownloadOutputModel + InititateDownloadOutputModel Download1099FormPDF(Download1099FormPDFRequest requestParameters); + + /// + /// Get a single 1099 form + /// + /// + /// This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + Form1099OneOf Get1099Form(Get1099FormRequest requestParameters); + + /// + /// List 1099 forms + /// + /// + /// This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// List1099Forms200Response + List1099Forms200Response List1099Forms(List1099FormsRequest requestParameters); + + /// + /// Update an existing form. + /// + /// + /// This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + Form1099OneOf Update1099Form(Update1099FormRequest requestParameters); + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IClass1099FormsApiAsync + { + #region Asynchronous Operations + /// + /// Create/Update 1099 forms + /// + /// + /// This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of JobModel + System.Threading.Tasks.Task BulkUpsert1099FormsAsync(BulkUpsert1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a new 1099 form + /// + /// + /// This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + System.Threading.Tasks.Task Call1099FormsPostAsync(Call1099FormsPostRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete a 1099 form + /// + /// + /// This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task Delete1099FormAsync(Delete1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Submit a download job to retrieve PDF forms + /// + /// + /// This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of InititateDownloadOutputModel + System.Threading.Tasks.Task Download1099FormPDFAsync(Download1099FormPDFRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a single 1099 form + /// + /// + /// This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + System.Threading.Tasks.Task Get1099FormAsync(Get1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List 1099 forms + /// + /// + /// This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of List1099Forms200Response + System.Threading.Tasks.Task List1099FormsAsync(List1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an existing form. + /// + /// + /// This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + System.Threading.Tasks.Task Update1099FormAsync(Update1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class Class1099FormsApi : IClass1099FormsApiSync, IClass1099FormsApiAsync + { + private Avalara.SDK.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// The client interface for API access. + /// + public Class1099FormsApi(Avalara.SDK.Client.IApiClient client) + { + SetConfiguration(client); + this.ExceptionFactory = Avalara.SDK.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API. + /// + private Avalara.SDK.Client.IInternalApiClient Client { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + private Avalara.SDK.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create/Update 1099 forms This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// JobModel + public JobModel BulkUpsert1099Forms(BulkUpsert1099FormsRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = BulkUpsert1099FormsWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Create/Update 1099 forms This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of JobModel + private Avalara.SDK.Client.ApiResponse BulkUpsert1099FormsWithHttpInfo(BulkUpsert1099FormsRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + // verify the required parameter 'BulkUpsert1099FormsRequest' is set + if (requestParameters.BulkUpsert1099FormsRequest == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.BulkUpsert1099FormsRequest' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.BulkUpsert1099FormsRequest; + + // make the HTTP request + var localVarResponse = this.Client.Post("/1099/forms/$bulk", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkUpsert1099Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create/Update 1099 forms This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of JobModel + public async System.Threading.Tasks.Task BulkUpsert1099FormsAsync(BulkUpsert1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await BulkUpsert1099FormsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create/Update 1099 forms This endpoint allows users to bulk create/update (aka upsert) 1099 forms. The maximum request size allowed is **100MB**. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JobModel) + private async System.Threading.Tasks.Task> BulkUpsert1099FormsWithHttpInfoAsync(BulkUpsert1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + // verify the required parameter 'requestParameters.BulkUpsert1099FormsRequest' is set + if (requestParameters.BulkUpsert1099FormsRequest == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.BulkUpsert1099FormsRequest' when calling Class1099FormsApi->BulkUpsert1099Forms"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.BulkUpsert1099FormsRequest; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/1099/forms/$bulk", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("BulkUpsert1099Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a new 1099 form This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + public Form1099OneOf Call1099FormsPost(Call1099FormsPostRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = Call1099FormsPostWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Create a new 1099 form This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Form1099OneOf + private Avalara.SDK.Client.ApiResponse Call1099FormsPostWithHttpInfo(Call1099FormsPostRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Call1099FormsPost"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Call1099FormsPost"); + + // verify the required parameter 'Form1099OneOf' is set + if (requestParameters.Form1099OneOf == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.Form1099OneOf' when calling Class1099FormsApi->Call1099FormsPost"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.Form1099OneOf; + + // make the HTTP request + var localVarResponse = this.Client.Post("/1099/forms", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Call1099FormsPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a new 1099 form This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + public async System.Threading.Tasks.Task Call1099FormsPostAsync(Call1099FormsPostRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await Call1099FormsPostWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new 1099 form This endpoint allows users to create a new 1099 form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Form1099OneOf) + private async System.Threading.Tasks.Task> Call1099FormsPostWithHttpInfoAsync(Call1099FormsPostRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Call1099FormsPost"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Call1099FormsPost"); + + // verify the required parameter 'requestParameters.Form1099OneOf' is set + if (requestParameters.Form1099OneOf == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.Form1099OneOf' when calling Class1099FormsApi->Call1099FormsPost"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.Form1099OneOf; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/1099/forms", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Call1099FormsPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete a 1099 form This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + public void Delete1099Form(Delete1099FormRequest requestParameters) + { + Delete1099FormWithHttpInfo(requestParameters); + } + + /// + /// Delete a 1099 form This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Object(void) + private Avalara.SDK.Client.ApiResponse Delete1099FormWithHttpInfo(Delete1099FormRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Delete1099Form"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Delete1099Form"); + + // verify the required parameter 'FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling Class1099FormsApi->Delete1099Form"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/1099/forms/{formId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Delete1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete a 1099 form This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task Delete1099FormAsync(Delete1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await Delete1099FormWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a 1099 form This endpoint allows users to delete a single 1099 form by its unique identifier. If the form is successfully deleted, the response will return a `204 No Content` status. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + private async System.Threading.Tasks.Task> Delete1099FormWithHttpInfoAsync(Delete1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Delete1099Form"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Delete1099Form"); + + // verify the required parameter 'requestParameters.FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling Class1099FormsApi->Delete1099Form"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.DeleteAsync("/1099/forms/{formId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Delete1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Submit a download job to retrieve PDF forms This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// InititateDownloadOutputModel + public InititateDownloadOutputModel Download1099FormPDF(Download1099FormPDFRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = Download1099FormPDFWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Submit a download job to retrieve PDF forms This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of InititateDownloadOutputModel + private Avalara.SDK.Client.ApiResponse Download1099FormPDFWithHttpInfo(Download1099FormPDFRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Download1099FormPDF"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Download1099FormPDF"); + + // verify the required parameter 'InitiateDownloadInputModel' is set + if (requestParameters.InitiateDownloadInputModel == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.InitiateDownloadInputModel' when calling Class1099FormsApi->Download1099FormPDF"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.InitiateDownloadInputModel; + + // make the HTTP request + var localVarResponse = this.Client.Post("/1099/forms/$initiate-download", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Download1099FormPDF", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Submit a download job to retrieve PDF forms This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of InititateDownloadOutputModel + public async System.Threading.Tasks.Task Download1099FormPDFAsync(Download1099FormPDFRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await Download1099FormPDFWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Submit a download job to retrieve PDF forms This endpoint allows users to initiate a download job for 1099 forms. The request body specifies the parameters for filtering the forms to be included in the download. Once the job is created, the response returns a job ID, which can be used to check the status of the download. The download job processes the requested forms asynchronously. Users can retrieve the job status and obtain the download URL using the `GET /jobs/{jobId}` endpoint. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InititateDownloadOutputModel) + private async System.Threading.Tasks.Task> Download1099FormPDFWithHttpInfoAsync(Download1099FormPDFRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Download1099FormPDF"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Download1099FormPDF"); + + // verify the required parameter 'requestParameters.InitiateDownloadInputModel' is set + if (requestParameters.InitiateDownloadInputModel == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.InitiateDownloadInputModel' when calling Class1099FormsApi->Download1099FormPDF"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.InitiateDownloadInputModel; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/1099/forms/$initiate-download", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Download1099FormPDF", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single 1099 form This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + public Form1099OneOf Get1099Form(Get1099FormRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = Get1099FormWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Get a single 1099 form This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Form1099OneOf + private Avalara.SDK.Client.ApiResponse Get1099FormWithHttpInfo(Get1099FormRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Get1099Form"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Get1099Form"); + + // verify the required parameter 'FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling Class1099FormsApi->Get1099Form"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/1099/forms/{formId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Get1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single 1099 form This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + public async System.Threading.Tasks.Task Get1099FormAsync(Get1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await Get1099FormWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a single 1099 form This endpoint allows users to retrieve the details of a single 1099 form by its unique identifier. The response will include the type of form requested. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Form1099OneOf) + private async System.Threading.Tasks.Task> Get1099FormWithHttpInfoAsync(Get1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Get1099Form"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Get1099Form"); + + // verify the required parameter 'requestParameters.FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling Class1099FormsApi->Get1099Form"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/1099/forms/{formId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Get1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List 1099 forms This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// List1099Forms200Response + public List1099Forms200Response List1099Forms(List1099FormsRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = List1099FormsWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// List 1099 forms This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of List1099Forms200Response + private Avalara.SDK.Client.ApiResponse List1099FormsWithHttpInfo(List1099FormsRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->List1099Forms"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->List1099Forms"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/1099/forms", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("List1099Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List 1099 forms This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of List1099Forms200Response + public async System.Threading.Tasks.Task List1099FormsAsync(List1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await List1099FormsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List 1099 forms This endpoint allows users to retrieve a list of 1099 forms. Users can apply filters, pagination, and sorting to narrow down the results based on their needs. The response will include details for each form, such as recipient information, filing statuses, and payment amounts. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List1099Forms200Response) + private async System.Threading.Tasks.Task> List1099FormsWithHttpInfoAsync(List1099FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->List1099Forms"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->List1099Forms"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/1099/forms", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("List1099Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update an existing form. This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Form1099OneOf + public Form1099OneOf Update1099Form(Update1099FormRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = Update1099FormWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Update an existing form. This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Form1099OneOf + private Avalara.SDK.Client.ApiResponse Update1099FormWithHttpInfo(Update1099FormRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Update1099Form"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Update1099Form"); + + // verify the required parameter 'Form1099OneOf' is set + if (requestParameters.Form1099OneOf == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.Form1099OneOf' when calling Class1099FormsApi->Update1099Form"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.Form1099OneOf; + + // make the HTTP request + var localVarResponse = this.Client.Put("/1099/forms/{formId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Update1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update an existing form. This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of Form1099OneOf + public async System.Threading.Tasks.Task Update1099FormAsync(Update1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await Update1099FormWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update an existing form. This endpoint allows users to update the details of a single 1099 form by its unique identifier. The payload should include the updated details for the form. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Form1099OneOf) + private async System.Threading.Tasks.Task> Update1099FormWithHttpInfoAsync(Update1099FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099FormsApi->Update1099Form"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099FormsApi->Update1099Form"); + + // verify the required parameter 'requestParameters.Form1099OneOf' is set + if (requestParameters.Form1099OneOf == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.Form1099OneOf' when calling Class1099FormsApi->Update1099Form"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.Form1099OneOf; + + // make the HTTP request + var localVarResponse = await this.Client.PutAsync("/1099/forms/{formId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Update1099Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Set the configuration object in APIClient + /// + private void SetConfiguration(IApiClient client) + { + if (client == null) throw new ArgumentNullException("ApiClient"); + if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); + + this.Client = (IInternalApiClient)client; + this.Client.SdkVersion = "25.5.4"; + } + + } + + +} diff --git a/src/Avalara.SDK/Api/A1099/V2/Class1099IssuersApi.cs b/src/Avalara.SDK/Api/A1099/V2/Class1099IssuersApi.cs new file mode 100644 index 0000000..80565c3 --- /dev/null +++ b/src/Avalara.SDK/Api/A1099/V2/Class1099IssuersApi.cs @@ -0,0 +1,1122 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Avalara.SDK.Api.A1099.V2 +{ + /// + /// Represents the Request object for the CreateIssuer API + /// + public class CreateIssuerRequest { + /// + /// Constructor for the Request object + /// + public CreateIssuerRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + /// + /// The issuer to create + /// + public IssuerModel IssuerModel { get; set; } + } + + /// + /// Represents the Request object for the DeleteIssuer API + /// + public class DeleteIssuerRequest { + /// + /// Constructor for the Request object + /// + public DeleteIssuerRequest () { + } + /// + /// Id of the issuer to delete + /// + public string IssuerId { get; set; } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the GetIssuer API + /// + public class GetIssuerRequest { + /// + /// Constructor for the Request object + /// + public GetIssuerRequest () { + } + /// + /// + /// + public string IssuerId { get; set; } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the ListIssuers API + /// + public class ListIssuersRequest { + /// + /// Constructor for the Request object + /// + public ListIssuersRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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>. Filterable: name, nameDba, referenceId, taxYear + /// + public string Filter { get; set; } + /// + /// 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. + /// + public int? Top { get; set; } + /// + /// If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. + /// + public int? Skip { get; set; } + /// + /// A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. + /// + public string OrderBy { get; set; } + /// + /// Set true to request count of complete collection in response. + /// + public bool? Count { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the UpdateIssuer API + /// + public class UpdateIssuerRequest { + /// + /// Constructor for the Request object + /// + public UpdateIssuerRequest () { + } + /// + /// Id of the issuer to Update + /// + public string IssuerId { get; set; } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + /// + /// The issuer to update + /// + public IssuerModel IssuerModel { get; set; } + } + + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IClass1099IssuersApiSync + { + #region Synchronous Operations + /// + /// Create a new issuer + /// + /// + /// Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModel + IssuerModel CreateIssuer(CreateIssuerRequest requestParameters); + + /// + /// Delete an issuer + /// + /// + /// Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + void DeleteIssuer(DeleteIssuerRequest requestParameters); + + /// + /// Get a single issuer + /// + /// + /// Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModel + IssuerModel GetIssuer(GetIssuerRequest requestParameters); + + /// + /// List issuers + /// + /// + /// List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModelPaginatedQueryResultModel + IssuerModelPaginatedQueryResultModel ListIssuers(ListIssuersRequest requestParameters); + + /// + /// Update an issuer + /// + /// + /// Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + void UpdateIssuer(UpdateIssuerRequest requestParameters); + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IClass1099IssuersApiAsync + { + #region Asynchronous Operations + /// + /// Create a new issuer + /// + /// + /// Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModel + System.Threading.Tasks.Task CreateIssuerAsync(CreateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete an issuer + /// + /// + /// Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteIssuerAsync(DeleteIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get a single issuer + /// + /// + /// Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModel + System.Threading.Tasks.Task GetIssuerAsync(GetIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List issuers + /// + /// + /// List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModelPaginatedQueryResultModel + System.Threading.Tasks.Task ListIssuersAsync(ListIssuersRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update an issuer + /// + /// + /// Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task UpdateIssuerAsync(UpdateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class Class1099IssuersApi : IClass1099IssuersApiSync, IClass1099IssuersApiAsync + { + private Avalara.SDK.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// The client interface for API access. + /// + public Class1099IssuersApi(Avalara.SDK.Client.IApiClient client) + { + SetConfiguration(client); + this.ExceptionFactory = Avalara.SDK.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API. + /// + private Avalara.SDK.Client.IInternalApiClient Client { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + private Avalara.SDK.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create a new issuer Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModel + public IssuerModel CreateIssuer(CreateIssuerRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = CreateIssuerWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Create a new issuer Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of IssuerModel + private Avalara.SDK.Client.ApiResponse CreateIssuerWithHttpInfo(CreateIssuerRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->CreateIssuer"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->CreateIssuer"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.IssuerModel; + + // make the HTTP request + var localVarResponse = this.Client.Post("/1099/issuers", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a new issuer Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModel + public async System.Threading.Tasks.Task CreateIssuerAsync(CreateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await CreateIssuerWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new issuer Create a new issuer + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IssuerModel) + private async System.Threading.Tasks.Task> CreateIssuerWithHttpInfoAsync(CreateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->CreateIssuer"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->CreateIssuer"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json", + "application/*+json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.IssuerModel; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/1099/issuers", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete an issuer Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + public void DeleteIssuer(DeleteIssuerRequest requestParameters) + { + DeleteIssuerWithHttpInfo(requestParameters); + } + + /// + /// Delete an issuer Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Object(void) + private Avalara.SDK.Client.ApiResponse DeleteIssuerWithHttpInfo(DeleteIssuerRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->DeleteIssuer"); + + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->DeleteIssuer"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->DeleteIssuer"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/1099/issuers/{issuerId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete an issuer Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteIssuerAsync(DeleteIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteIssuerWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete an issuer Delete a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + private async System.Threading.Tasks.Task> DeleteIssuerWithHttpInfoAsync(DeleteIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->DeleteIssuer"); + + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->DeleteIssuer"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->DeleteIssuer"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.DeleteAsync("/1099/issuers/{issuerId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single issuer Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModel + public IssuerModel GetIssuer(GetIssuerRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = GetIssuerWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Get a single issuer Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of IssuerModel + private Avalara.SDK.Client.ApiResponse GetIssuerWithHttpInfo(GetIssuerRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->GetIssuer"); + + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->GetIssuer"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->GetIssuer"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/1099/issuers/{issuerId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get a single issuer Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModel + public async System.Threading.Tasks.Task GetIssuerAsync(GetIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await GetIssuerWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get a single issuer Get a single issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IssuerModel) + private async System.Threading.Tasks.Task> GetIssuerWithHttpInfoAsync(GetIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->GetIssuer"); + + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->GetIssuer"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->GetIssuer"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/1099/issuers/{issuerId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List issuers List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// IssuerModelPaginatedQueryResultModel + public IssuerModelPaginatedQueryResultModel ListIssuers(ListIssuersRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = ListIssuersWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// List issuers List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of IssuerModelPaginatedQueryResultModel + private Avalara.SDK.Client.ApiResponse ListIssuersWithHttpInfo(ListIssuersRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->ListIssuers"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->ListIssuers"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/1099/issuers", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListIssuers", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List issuers List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of IssuerModelPaginatedQueryResultModel + public async System.Threading.Tasks.Task ListIssuersAsync(ListIssuersRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await ListIssuersWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List issuers List existing issuers for a given tax year. Filterable fields are name, referenceId and taxYear + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (IssuerModelPaginatedQueryResultModel) + private async System.Threading.Tasks.Task> ListIssuersWithHttpInfoAsync(ListIssuersRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->ListIssuers"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->ListIssuers"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/1099/issuers", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ListIssuers", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update an issuer Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// + public void UpdateIssuer(UpdateIssuerRequest requestParameters) + { + UpdateIssuerWithHttpInfo(requestParameters); + } + + /// + /// Update an issuer Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of Object(void) + private Avalara.SDK.Client.ApiResponse UpdateIssuerWithHttpInfo(UpdateIssuerRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->UpdateIssuer"); + + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->UpdateIssuer"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->UpdateIssuer"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.IssuerModel; + + // make the HTTP request + var localVarResponse = this.Client.Put("/1099/issuers/{issuerId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update an issuer Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task UpdateIssuerAsync(UpdateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await UpdateIssuerWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + } + + /// + /// Update an issuer Update an existing issuer by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + private async System.Threading.Tasks.Task> UpdateIssuerWithHttpInfoAsync(UpdateIssuerRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.IssuerId' is set + if (requestParameters.IssuerId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.IssuerId' when calling Class1099IssuersApi->UpdateIssuer"); + + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling Class1099IssuersApi->UpdateIssuer"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling Class1099IssuersApi->UpdateIssuer"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("issuerId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.IssuerId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.IssuerModel; + + // make the HTTP request + var localVarResponse = await this.Client.PutAsync("/1099/issuers/{issuerId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateIssuer", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Set the configuration object in APIClient + /// + private void SetConfiguration(IApiClient client) + { + if (client == null) throw new ArgumentNullException("ApiClient"); + if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); + + this.Client = (IInternalApiClient)client; + this.Client.SdkVersion = "25.5.4"; + } + + } + + +} diff --git a/src/Avalara.SDK/Api/A1099/V2/JobsApi.cs b/src/Avalara.SDK/Api/A1099/V2/JobsApi.cs new file mode 100644 index 0000000..64d3b86 --- /dev/null +++ b/src/Avalara.SDK/Api/A1099/V2/JobsApi.cs @@ -0,0 +1,300 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Avalara.SDK.Api.A1099.V2 +{ + /// + /// Represents the Request object for the GetJob API + /// + public class GetJobRequest { + /// + /// Constructor for the Request object + /// + public GetJobRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// id received when a job was submitted + /// + public string JobId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IJobsApiSync + { + #region Synchronous Operations + /// + /// Get status of an existing job + /// + /// + /// Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// JobModel + JobModel GetJob(GetJobRequest requestParameters); + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IJobsApiAsync + { + #region Asynchronous Operations + /// + /// Get status of an existing job + /// + /// + /// Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of JobModel + System.Threading.Tasks.Task GetJobAsync(GetJobRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class JobsApi : IJobsApiSync, IJobsApiAsync + { + private Avalara.SDK.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// The client interface for API access. + /// + public JobsApi(Avalara.SDK.Client.IApiClient client) + { + SetConfiguration(client); + this.ExceptionFactory = Avalara.SDK.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API. + /// + private Avalara.SDK.Client.IInternalApiClient Client { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + private Avalara.SDK.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get status of an existing job Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// JobModel + public JobModel GetJob(GetJobRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = GetJobWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Get status of an existing job Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of JobModel + private Avalara.SDK.Client.ApiResponse GetJobWithHttpInfo(GetJobRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling JobsApi->GetJob"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling JobsApi->GetJob"); + + // verify the required parameter 'JobId' is set + if (requestParameters.JobId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.JobId' when calling JobsApi->GetJob"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("jobId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.JobId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/jobs/{jobId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJob", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get status of an existing job Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of JobModel + public async System.Threading.Tasks.Task GetJobAsync(GetJobRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await GetJobWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get status of an existing job Check the status and results of a job. Multiple job types exist. Check \"Schema\" in the 200 response below for all possibilities. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (JobModel) + private async System.Threading.Tasks.Task> GetJobWithHttpInfoAsync(GetJobRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling JobsApi->GetJob"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling JobsApi->GetJob"); + + // verify the required parameter 'requestParameters.JobId' is set + if (requestParameters.JobId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.JobId' when calling JobsApi->GetJob"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("jobId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.JobId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/jobs/{jobId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJob", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Set the configuration object in APIClient + /// + private void SetConfiguration(IApiClient client) + { + if (client == null) throw new ArgumentNullException("ApiClient"); + if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); + + this.Client = (IInternalApiClient)client; + this.Client.SdkVersion = "25.5.4"; + } + + } + + +} diff --git a/src/Avalara.SDK/Api/A1099/V2/W4W8W9FormsApi.cs b/src/Avalara.SDK/Api/A1099/V2/W4W8W9FormsApi.cs new file mode 100644 index 0000000..64d56a4 --- /dev/null +++ b/src/Avalara.SDK/Api/A1099/V2/W4W8W9FormsApi.cs @@ -0,0 +1,922 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Avalara.SDK.Api.A1099.V2 +{ + /// + /// Represents the Request object for the CreateW9Form API + /// + public class CreateW9FormRequest { + /// + /// Constructor for the Request object + /// + public CreateW9FormRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + /// + /// Form to be created + /// + public W9FormDataModelsOneOf W9FormDataModelsOneOf { get; set; } + } + + /// + /// Represents the Request object for the GetW9Form API + /// + public class GetW9FormRequest { + /// + /// Constructor for the Request object + /// + public GetW9FormRequest () { + } + /// + /// Unique id of the form + /// + public string FormId { get; set; } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the GetW9Forms API + /// + public class GetW9FormsRequest { + /// + /// Constructor for the Request object + /// + public GetW9FormsRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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>. Filterable: referenceId, companyId, archived, ancestorId + /// + public string Filter { get; set; } + /// + /// 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. + /// + public int? Top { get; set; } + /// + /// If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. + /// + public int? Skip { get; set; } + /// + /// A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. + /// + public string OrderBy { get; set; } + /// + /// Set true to request count of complete collection in response. + /// + public bool? Count { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + /// + /// Represents the Request object for the W9FormRequestsFormRequestIdGet API + /// + public class W9FormRequestsFormRequestIdGetRequest { + /// + /// Constructor for the Request object + /// + public W9FormRequestsFormRequestIdGetRequest () { + } + /// + /// Id assigned during creation of the form request + /// + public string FormRequestId { get; set; } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + } + + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IW4W8W9FormsApiSync + { + #region Synchronous Operations + /// + /// Create a new W9/W8/W4 form + /// + /// + /// Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// W9FormDataModelsOneOf + W9FormDataModelsOneOf CreateW9Form(CreateW9FormRequest requestParameters); + + /// + /// Retrieve a W9/W8/W4 form + /// + /// + /// Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// GetW9Form200Response + GetW9Form200Response GetW9Form(GetW9FormRequest requestParameters); + + /// + /// List W9/W4/W8 forms. + /// + /// + /// List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// PaginatedW9FormsModel + PaginatedW9FormsModel GetW9Forms(GetW9FormsRequest requestParameters); + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. + /// + /// + /// Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// FormRequestModel + FormRequestModel W9FormRequestsFormRequestIdGet(W9FormRequestsFormRequestIdGetRequest requestParameters); + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IW4W8W9FormsApiAsync + { + #region Asynchronous Operations + /// + /// Create a new W9/W8/W4 form + /// + /// + /// Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of W9FormDataModelsOneOf + System.Threading.Tasks.Task CreateW9FormAsync(CreateW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Retrieve a W9/W8/W4 form + /// + /// + /// Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of GetW9Form200Response + System.Threading.Tasks.Task GetW9FormAsync(GetW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// List W9/W4/W8 forms. + /// + /// + /// List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of PaginatedW9FormsModel + System.Threading.Tasks.Task GetW9FormsAsync(GetW9FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. + /// + /// + /// Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of FormRequestModel + System.Threading.Tasks.Task W9FormRequestsFormRequestIdGetAsync(W9FormRequestsFormRequestIdGetRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class W4W8W9FormsApi : IW4W8W9FormsApiSync, IW4W8W9FormsApiAsync + { + private Avalara.SDK.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// The client interface for API access. + /// + public W4W8W9FormsApi(Avalara.SDK.Client.IApiClient client) + { + SetConfiguration(client); + this.ExceptionFactory = Avalara.SDK.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API. + /// + private Avalara.SDK.Client.IInternalApiClient Client { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + private Avalara.SDK.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create a new W9/W8/W4 form Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// W9FormDataModelsOneOf + public W9FormDataModelsOneOf CreateW9Form(CreateW9FormRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = CreateW9FormWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Create a new W9/W8/W4 form Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of W9FormDataModelsOneOf + private Avalara.SDK.Client.ApiResponse CreateW9FormWithHttpInfo(CreateW9FormRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->CreateW9Form"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->CreateW9Form"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.W9FormDataModelsOneOf; + + // make the HTTP request + var localVarResponse = this.Client.Post("/w9/forms", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateW9Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a new W9/W8/W4 form Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of W9FormDataModelsOneOf + public async System.Threading.Tasks.Task CreateW9FormAsync(CreateW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await CreateW9FormWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a new W9/W8/W4 form Creates a new W4, W8-BEN, W8-BEN-E W8-IMY or W9 form + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (W9FormDataModelsOneOf) + private async System.Threading.Tasks.Task> CreateW9FormWithHttpInfoAsync(CreateW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->CreateW9Form"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->CreateW9Form"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.W9FormDataModelsOneOf; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/w9/forms", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateW9Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve a W9/W8/W4 form Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// GetW9Form200Response + public GetW9Form200Response GetW9Form(GetW9FormRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = GetW9FormWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Retrieve a W9/W8/W4 form Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of GetW9Form200Response + private Avalara.SDK.Client.ApiResponse GetW9FormWithHttpInfo(GetW9FormRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling W4W8W9FormsApi->GetW9Form"); + + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->GetW9Form"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->GetW9Form"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/w9/forms/{formId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetW9Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Retrieve a W9/W8/W4 form Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of GetW9Form200Response + public async System.Threading.Tasks.Task GetW9FormAsync(GetW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await GetW9FormWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Retrieve a W9/W8/W4 form Retreive a single W9/W8/W4 form by id + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (GetW9Form200Response) + private async System.Threading.Tasks.Task> GetW9FormWithHttpInfoAsync(GetW9FormRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.FormId' is set + if (requestParameters.FormId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormId' when calling W4W8W9FormsApi->GetW9Form"); + + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->GetW9Form"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->GetW9Form"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/w9/forms/{formId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetW9Form", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List W9/W4/W8 forms. List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// PaginatedW9FormsModel + public PaginatedW9FormsModel GetW9Forms(GetW9FormsRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = GetW9FormsWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// List W9/W4/W8 forms. List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of PaginatedW9FormsModel + private Avalara.SDK.Client.ApiResponse GetW9FormsWithHttpInfo(GetW9FormsRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->GetW9Forms"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->GetW9Forms"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/w9/forms", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetW9Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// List W9/W4/W8 forms. List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of PaginatedW9FormsModel + public async System.Threading.Tasks.Task GetW9FormsAsync(GetW9FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await GetW9FormsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// List W9/W4/W8 forms. List all W4, W8-BEN, W8-BEN-E W8-IMY and W9 forms in a single list. + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (PaginatedW9FormsModel) + private async System.Threading.Tasks.Task> GetW9FormsWithHttpInfoAsync(GetW9FormsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->GetW9Forms"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->GetW9Forms"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (requestParameters.Filter != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$filter", requestParameters.Filter)); + } + if (requestParameters.Top != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$top", requestParameters.Top)); + } + if (requestParameters.Skip != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$skip", requestParameters.Skip)); + } + if (requestParameters.OrderBy != null) + { + localVarRequestOptions.QueryParameters.Add(Avalara.SDK.Client.ClientUtils.ParameterToMultiMap("", "$orderBy", requestParameters.OrderBy)); + } + if (requestParameters.Count != null) + { + localVarRequestOptions.HeaderParameters.Add("count", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.Count)); // header parameter + } + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/w9/forms", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetW9Forms", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// FormRequestModel + public FormRequestModel W9FormRequestsFormRequestIdGet(W9FormRequestsFormRequestIdGetRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = W9FormRequestsFormRequestIdGetWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of FormRequestModel + private Avalara.SDK.Client.ApiResponse W9FormRequestsFormRequestIdGetWithHttpInfo(W9FormRequestsFormRequestIdGetRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'FormRequestId' is set + if (requestParameters.FormRequestId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormRequestId' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formRequestId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormRequestId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/w9/form-requests/{formRequestId}", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("W9FormRequestsFormRequestIdGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of FormRequestModel + public async System.Threading.Tasks.Task W9FormRequestsFormRequestIdGetAsync(W9FormRequestsFormRequestIdGetRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await W9FormRequestsFormRequestIdGetWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get form request TODO-I Don't think this API should exist and instead we need `POST /w9/{id}/request`. Retrieve a form request again after creation. Previously-valid form requests will be Not Found after `expiresAt` + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (FormRequestModel) + private async System.Threading.Tasks.Task> W9FormRequestsFormRequestIdGetWithHttpInfoAsync(W9FormRequestsFormRequestIdGetRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.FormRequestId' is set + if (requestParameters.FormRequestId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.FormRequestId' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W4W8W9FormsApi->W9FormRequestsFormRequestIdGet"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("formRequestId", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.FormRequestId)); // path parameter + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + + // make the HTTP request + var localVarResponse = await this.Client.GetAsync("/w9/form-requests/{formRequestId}", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("W9FormRequestsFormRequestIdGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Set the configuration object in APIClient + /// + private void SetConfiguration(IApiClient client) + { + if (client == null) throw new ArgumentNullException("ApiClient"); + if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); + + this.Client = (IInternalApiClient)client; + this.Client.SdkVersion = "25.5.4"; + } + + } + + +} diff --git a/src/Avalara.SDK/Api/A1099/V2/W9CompaniesApi.cs b/src/Avalara.SDK/Api/A1099/V2/W9CompaniesApi.cs new file mode 100644 index 0000000..ff50e9c --- /dev/null +++ b/src/Avalara.SDK/Api/A1099/V2/W9CompaniesApi.cs @@ -0,0 +1,294 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using Avalara.SDK.Client; +using Avalara.SDK.Model.A1099.V2; + +namespace Avalara.SDK.Api.A1099.V2 +{ + /// + /// Represents the Request object for the CreateW9Company API + /// + public class CreateW9CompanyRequest { + /// + /// Constructor for the Request object + /// + public CreateW9CompanyRequest () { + } + /// + /// API version + /// + public string? AvalaraVersion { get; set; } = "2.0"; + /// + /// Unique correlation Id in a GUID format + /// + public string XCorrelationId { get; set; } + /// + /// 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/). + /// + public string XAvalaraClient { get; set; } + /// + /// The company to create + /// + public CompanyModel CompanyModel { get; set; } + } + + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IW9CompaniesApiSync + { + #region Synchronous Operations + /// + /// Creates a new company + /// + /// + /// Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// CompanyModel + CompanyModel CreateW9Company(CreateW9CompanyRequest requestParameters); + + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IW9CompaniesApiAsync + { + #region Asynchronous Operations + /// + /// Creates a new company + /// + /// + /// Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of CompanyModel + System.Threading.Tasks.Task CreateW9CompanyAsync(CreateW9CompanyRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class W9CompaniesApi : IW9CompaniesApiSync, IW9CompaniesApiAsync + { + private Avalara.SDK.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// The client interface for API access. + /// + public W9CompaniesApi(Avalara.SDK.Client.IApiClient client) + { + SetConfiguration(client); + this.ExceptionFactory = Avalara.SDK.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API. + /// + private Avalara.SDK.Client.IInternalApiClient Client { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + private Avalara.SDK.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Creates a new company Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// CompanyModel + public CompanyModel CreateW9Company(CreateW9CompanyRequest requestParameters) + { + Avalara.SDK.Client.ApiResponse localVarResponse = CreateW9CompanyWithHttpInfo(requestParameters); + return localVarResponse.Data; + } + + /// + /// Creates a new company Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// ApiResponse of CompanyModel + private Avalara.SDK.Client.ApiResponse CreateW9CompanyWithHttpInfo(CreateW9CompanyRequest requestParameters) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W9CompaniesApi->CreateW9Company"); + + // verify the required parameter 'XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W9CompaniesApi->CreateW9Company"); + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.CompanyModel; + + // make the HTTP request + var localVarResponse = this.Client.Post("/w9/companies", localVarRequestOptions, requiredScopes, AvalaraMicroservice.A1099); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateW9Company", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Creates a new company Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of CompanyModel + public async System.Threading.Tasks.Task CreateW9CompanyAsync(CreateW9CompanyRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + Avalara.SDK.Client.ApiResponse localVarResponse = await CreateW9CompanyWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Creates a new company Creates a new company + /// + /// Thrown when fails to make API call + /// Request Object for the API + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CompanyModel) + private async System.Threading.Tasks.Task> CreateW9CompanyWithHttpInfoAsync(CreateW9CompanyRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + //OAuth2 Scopes + String requiredScopes = ""; + // verify the required parameter 'requestParameters.AvalaraVersion' is set + if (requestParameters.AvalaraVersion == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.AvalaraVersion' when calling W9CompaniesApi->CreateW9Company"); + + // verify the required parameter 'requestParameters.XCorrelationId' is set + if (requestParameters.XCorrelationId == null) + throw new Avalara.SDK.Client.ApiException(400, "Missing required parameter 'requestParameters.XCorrelationId' when calling W9CompaniesApi->CreateW9Company"); + + + Avalara.SDK.Client.RequestOptions localVarRequestOptions = new Avalara.SDK.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = Avalara.SDK.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = Avalara.SDK.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.HeaderParameters.Add("avalara-version", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.AvalaraVersion)); // header parameter + localVarRequestOptions.HeaderParameters.Add("X-Correlation-Id", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XCorrelationId)); // header parameter + if (requestParameters.XAvalaraClient != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Avalara-Client", Avalara.SDK.Client.ClientUtils.ParameterToString(requestParameters.XAvalaraClient)); // header parameter + } + localVarRequestOptions.Data = requestParameters.CompanyModel; + + // make the HTTP request + var localVarResponse = await this.Client.PostAsync("/w9/companies", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.A1099).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateW9Company", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Set the configuration object in APIClient + /// + private void SetConfiguration(IApiClient client) + { + if (client == null) throw new ArgumentNullException("ApiClient"); + if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); + + this.Client = (IInternalApiClient)client; + this.Client.SdkVersion = "25.5.4"; + } + + } + + +} diff --git a/src/Avalara.SDK/Api/EInvoicing/V1/DataInputFieldsApi.cs b/src/Avalara.SDK/Api/EInvoicing/V1/DataInputFieldsApi.cs index 9eeb192..a046a8a 100644 --- a/src/Avalara.SDK/Api/EInvoicing/V1/DataInputFieldsApi.cs +++ b/src/Avalara.SDK/Api/EInvoicing/V1/DataInputFieldsApi.cs @@ -1,3 +1,22 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara E-Invoicing API + * + * An API that supports sending data for an E-Invoicing compliance use-case. + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ using System; @@ -14,11 +33,16 @@ namespace Avalara.SDK.Api.EInvoicing.V1 /// /// Represents the Request object for the GetDataInputFields API /// - public class GetDataInputFieldsRequestSdk { + public class GetDataInputFieldsRequest { + /// + /// Constructor for the Request object + /// + public GetDataInputFieldsRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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. /// @@ -61,7 +85,7 @@ public interface IDataInputFieldsApiSync /// Thrown when fails to make API call /// Request Object for the API /// DataInputFieldsResponse - DataInputFieldsResponse GetDataInputFields(GetDataInputFieldsRequestSdk requestParameters); + DataInputFieldsResponse GetDataInputFields(GetDataInputFieldsRequest requestParameters); #endregion Synchronous Operations } @@ -82,7 +106,7 @@ public interface IDataInputFieldsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DataInputFieldsResponse - System.Threading.Tasks.Task GetDataInputFieldsAsync(GetDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetDataInputFieldsAsync(GetDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -132,7 +156,7 @@ private Avalara.SDK.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Request Object for the API /// DataInputFieldsResponse - public DataInputFieldsResponse GetDataInputFields(GetDataInputFieldsRequestSdk requestParameters) + public DataInputFieldsResponse GetDataInputFields(GetDataInputFieldsRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = GetDataInputFieldsWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -144,7 +168,7 @@ public DataInputFieldsResponse GetDataInputFields(GetDataInputFieldsRequestSdk r /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DataInputFieldsResponse - private Avalara.SDK.Client.ApiResponse GetDataInputFieldsWithHttpInfo(GetDataInputFieldsRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse GetDataInputFieldsWithHttpInfo(GetDataInputFieldsRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -213,7 +237,7 @@ private Avalara.SDK.Client.ApiResponse GetDataInputFiel /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DataInputFieldsResponse - public async System.Threading.Tasks.Task GetDataInputFieldsAsync(GetDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetDataInputFieldsAsync(GetDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await GetDataInputFieldsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -226,7 +250,7 @@ private Avalara.SDK.Client.ApiResponse GetDataInputFiel /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DataInputFieldsResponse) - private async System.Threading.Tasks.Task> GetDataInputFieldsWithHttpInfoAsync(GetDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> GetDataInputFieldsWithHttpInfoAsync(GetDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -299,7 +323,7 @@ private void SetConfiguration(IApiClient client) if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); this.Client = (IInternalApiClient)client; - this.Client.SdkVersion = "25.5.3"; + this.Client.SdkVersion = "25.5.4"; } } diff --git a/src/Avalara.SDK/Api/EInvoicing/V1/DocumentsApi.cs b/src/Avalara.SDK/Api/EInvoicing/V1/DocumentsApi.cs index 8b599be..9975dd8 100644 --- a/src/Avalara.SDK/Api/EInvoicing/V1/DocumentsApi.cs +++ b/src/Avalara.SDK/Api/EInvoicing/V1/DocumentsApi.cs @@ -1,3 +1,22 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara E-Invoicing API + * + * An API that supports sending data for an E-Invoicing compliance use-case. + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ using System; @@ -14,11 +33,16 @@ namespace Avalara.SDK.Api.EInvoicing.V1 /// /// Represents the Request object for the DownloadDocument API /// - public class DownloadDocumentRequestSdk { + public class DownloadDocumentRequest { + /// + /// Constructor for the Request object + /// + public DownloadDocumentRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// This header indicates the MIME type of the document /// @@ -36,11 +60,16 @@ public class DownloadDocumentRequestSdk { /// /// Represents the Request object for the FetchDocuments API /// - public class FetchDocumentsRequestSdk { + public class FetchDocumentsRequest { + /// + /// Constructor for the Request object + /// + public FetchDocumentsRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// /// @@ -54,11 +83,16 @@ public class FetchDocumentsRequestSdk { /// /// Represents the Request object for the GetDocumentList API /// - public class GetDocumentListRequestSdk { + public class GetDocumentListRequest { + /// + /// Constructor for the Request object + /// + public GetDocumentListRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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. /// @@ -100,11 +134,16 @@ public class GetDocumentListRequestSdk { /// /// Represents the Request object for the GetDocumentStatus API /// - public class GetDocumentStatusRequestSdk { + public class GetDocumentStatusRequest { + /// + /// Constructor for the Request object + /// + public GetDocumentStatusRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// The unique ID for this document that was returned in the POST /einvoicing/documents response body /// @@ -118,11 +157,16 @@ public class GetDocumentStatusRequestSdk { /// /// Represents the Request object for the SubmitDocument API /// - public class SubmitDocumentRequestSdk { + public class SubmitDocumentRequest { + /// + /// Constructor for the Request object + /// + public SubmitDocumentRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// /// @@ -153,7 +197,7 @@ public interface IDocumentsApiSync /// Thrown when fails to make API call /// Request Object for the API /// FileParameter - FileParameter DownloadDocument(DownloadDocumentRequestSdk requestParameters); + FileParameter DownloadDocument(DownloadDocumentRequest requestParameters); /// /// Fetch the inbound document from a tax authority @@ -164,7 +208,7 @@ public interface IDocumentsApiSync /// Thrown when fails to make API call /// Request Object for the API /// DocumentFetch - DocumentFetch FetchDocuments(FetchDocumentsRequestSdk requestParameters); + DocumentFetch FetchDocuments(FetchDocumentsRequest requestParameters); /// /// Returns a summary of documents for a date range @@ -175,7 +219,7 @@ public interface IDocumentsApiSync /// Thrown when fails to make API call /// Request Object for the API /// DocumentListResponse - DocumentListResponse GetDocumentList(GetDocumentListRequestSdk requestParameters); + DocumentListResponse GetDocumentList(GetDocumentListRequest requestParameters); /// /// Checks the status of a document @@ -186,7 +230,7 @@ public interface IDocumentsApiSync /// Thrown when fails to make API call /// Request Object for the API /// DocumentStatusResponse - DocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequestSdk requestParameters); + DocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequest requestParameters); /// /// Submits a document to Avalara E-Invoicing API @@ -197,7 +241,7 @@ public interface IDocumentsApiSync /// Thrown when fails to make API call /// Request Object for the API /// DocumentSubmitResponse - DocumentSubmitResponse SubmitDocument(SubmitDocumentRequestSdk requestParameters); + DocumentSubmitResponse SubmitDocument(SubmitDocumentRequest requestParameters); #endregion Synchronous Operations } @@ -218,7 +262,7 @@ public interface IDocumentsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of FileParameter - System.Threading.Tasks.Task DownloadDocumentAsync(DownloadDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DownloadDocumentAsync(DownloadDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Fetch the inbound document from a tax authority @@ -230,7 +274,7 @@ public interface IDocumentsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentFetch - System.Threading.Tasks.Task FetchDocumentsAsync(FetchDocumentsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FetchDocumentsAsync(FetchDocumentsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Returns a summary of documents for a date range @@ -242,7 +286,7 @@ public interface IDocumentsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentListResponse - System.Threading.Tasks.Task GetDocumentListAsync(GetDocumentListRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetDocumentListAsync(GetDocumentListRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Checks the status of a document @@ -254,7 +298,7 @@ public interface IDocumentsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentStatusResponse - System.Threading.Tasks.Task GetDocumentStatusAsync(GetDocumentStatusRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetDocumentStatusAsync(GetDocumentStatusRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Submits a document to Avalara E-Invoicing API @@ -266,7 +310,7 @@ public interface IDocumentsApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentSubmitResponse - System.Threading.Tasks.Task SubmitDocumentAsync(SubmitDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SubmitDocumentAsync(SubmitDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -316,7 +360,7 @@ private Avalara.SDK.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Request Object for the API /// FileParameter - public FileParameter DownloadDocument(DownloadDocumentRequestSdk requestParameters) + public FileParameter DownloadDocument(DownloadDocumentRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = DownloadDocumentWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -328,7 +372,7 @@ public FileParameter DownloadDocument(DownloadDocumentRequestSdk requestParamete /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of FileParameter - private Avalara.SDK.Client.ApiResponse DownloadDocumentWithHttpInfo(DownloadDocumentRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse DownloadDocumentWithHttpInfo(DownloadDocumentRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -389,7 +433,7 @@ private Avalara.SDK.Client.ApiResponse DownloadDocumentWithHttpIn /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of FileParameter - public async System.Threading.Tasks.Task DownloadDocumentAsync(DownloadDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DownloadDocumentAsync(DownloadDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await DownloadDocumentWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -402,7 +446,7 @@ private Avalara.SDK.Client.ApiResponse DownloadDocumentWithHttpIn /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) - private async System.Threading.Tasks.Task> DownloadDocumentWithHttpInfoAsync(DownloadDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> DownloadDocumentWithHttpInfoAsync(DownloadDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -464,7 +508,7 @@ private Avalara.SDK.Client.ApiResponse DownloadDocumentWithHttpIn /// Thrown when fails to make API call /// Request Object for the API /// DocumentFetch - public DocumentFetch FetchDocuments(FetchDocumentsRequestSdk requestParameters) + public DocumentFetch FetchDocuments(FetchDocumentsRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = FetchDocumentsWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -476,7 +520,7 @@ public DocumentFetch FetchDocuments(FetchDocumentsRequestSdk requestParameters) /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DocumentFetch - private Avalara.SDK.Client.ApiResponse FetchDocumentsWithHttpInfo(FetchDocumentsRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse FetchDocumentsWithHttpInfo(FetchDocumentsRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -531,7 +575,7 @@ private Avalara.SDK.Client.ApiResponse FetchDocumentsWithHttpInfo /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentFetch - public async System.Threading.Tasks.Task FetchDocumentsAsync(FetchDocumentsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FetchDocumentsAsync(FetchDocumentsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await FetchDocumentsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -544,7 +588,7 @@ private Avalara.SDK.Client.ApiResponse FetchDocumentsWithHttpInfo /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentFetch) - private async System.Threading.Tasks.Task> FetchDocumentsWithHttpInfoAsync(FetchDocumentsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> FetchDocumentsWithHttpInfoAsync(FetchDocumentsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -600,7 +644,7 @@ private Avalara.SDK.Client.ApiResponse FetchDocumentsWithHttpInfo /// Thrown when fails to make API call /// Request Object for the API /// DocumentListResponse - public DocumentListResponse GetDocumentList(GetDocumentListRequestSdk requestParameters) + public DocumentListResponse GetDocumentList(GetDocumentListRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = GetDocumentListWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -612,7 +656,7 @@ public DocumentListResponse GetDocumentList(GetDocumentListRequestSdk requestPar /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DocumentListResponse - private Avalara.SDK.Client.ApiResponse GetDocumentListWithHttpInfo(GetDocumentListRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse GetDocumentListWithHttpInfo(GetDocumentListRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -693,7 +737,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentListWith /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentListResponse - public async System.Threading.Tasks.Task GetDocumentListAsync(GetDocumentListRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetDocumentListAsync(GetDocumentListRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await GetDocumentListWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -706,7 +750,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentListWith /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentListResponse) - private async System.Threading.Tasks.Task> GetDocumentListWithHttpInfoAsync(GetDocumentListRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> GetDocumentListWithHttpInfoAsync(GetDocumentListRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -788,7 +832,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentListWith /// Thrown when fails to make API call /// Request Object for the API /// DocumentStatusResponse - public DocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequestSdk requestParameters) + public DocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = GetDocumentStatusWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -800,7 +844,7 @@ public DocumentStatusResponse GetDocumentStatus(GetDocumentStatusRequestSdk requ /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DocumentStatusResponse - private Avalara.SDK.Client.ApiResponse GetDocumentStatusWithHttpInfo(GetDocumentStatusRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse GetDocumentStatusWithHttpInfo(GetDocumentStatusRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -854,7 +898,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentStatus /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentStatusResponse - public async System.Threading.Tasks.Task GetDocumentStatusAsync(GetDocumentStatusRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetDocumentStatusAsync(GetDocumentStatusRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await GetDocumentStatusWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -867,7 +911,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentStatus /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentStatusResponse) - private async System.Threading.Tasks.Task> GetDocumentStatusWithHttpInfoAsync(GetDocumentStatusRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> GetDocumentStatusWithHttpInfoAsync(GetDocumentStatusRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -922,7 +966,7 @@ private Avalara.SDK.Client.ApiResponse GetDocumentStatus /// Thrown when fails to make API call /// Request Object for the API /// DocumentSubmitResponse - public DocumentSubmitResponse SubmitDocument(SubmitDocumentRequestSdk requestParameters) + public DocumentSubmitResponse SubmitDocument(SubmitDocumentRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = SubmitDocumentWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -934,7 +978,7 @@ public DocumentSubmitResponse SubmitDocument(SubmitDocumentRequestSdk requestPar /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DocumentSubmitResponse - private Avalara.SDK.Client.ApiResponse SubmitDocumentWithHttpInfo(SubmitDocumentRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse SubmitDocumentWithHttpInfo(SubmitDocumentRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -995,7 +1039,7 @@ private Avalara.SDK.Client.ApiResponse SubmitDocumentWit /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DocumentSubmitResponse - public async System.Threading.Tasks.Task SubmitDocumentAsync(SubmitDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SubmitDocumentAsync(SubmitDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await SubmitDocumentWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1008,7 +1052,7 @@ private Avalara.SDK.Client.ApiResponse SubmitDocumentWit /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DocumentSubmitResponse) - private async System.Threading.Tasks.Task> SubmitDocumentWithHttpInfoAsync(SubmitDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> SubmitDocumentWithHttpInfoAsync(SubmitDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -1073,7 +1117,7 @@ private void SetConfiguration(IApiClient client) if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); this.Client = (IInternalApiClient)client; - this.Client.SdkVersion = "25.5.3"; + this.Client.SdkVersion = "25.5.4"; } } diff --git a/src/Avalara.SDK/Api/EInvoicing/V1/InteropApi.cs b/src/Avalara.SDK/Api/EInvoicing/V1/InteropApi.cs index 1832013..a3eff42 100644 --- a/src/Avalara.SDK/Api/EInvoicing/V1/InteropApi.cs +++ b/src/Avalara.SDK/Api/EInvoicing/V1/InteropApi.cs @@ -1,3 +1,22 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara E-Invoicing API + * + * An API that supports sending data for an E-Invoicing compliance use-case. + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ using System; @@ -14,7 +33,12 @@ namespace Avalara.SDK.Api.EInvoicing.V1 /// /// Represents the Request object for the SubmitInteropDocument API /// - public class SubmitInteropDocumentRequestSdk { + public class SubmitInteropDocumentRequest { + /// + /// Constructor for the Request object + /// + public SubmitInteropDocumentRequest () { + } /// /// Type of the document being uploaded. Partners will be configured in Avalara system to send only certain types of documents. /// @@ -26,7 +50,7 @@ public class SubmitInteropDocumentRequestSdk { /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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\" /// @@ -57,7 +81,7 @@ public interface IInteropApiSync /// Thrown when fails to make API call /// Request Object for the API /// SubmitInteropDocument202Response - SubmitInteropDocument202Response SubmitInteropDocument(SubmitInteropDocumentRequestSdk requestParameters); + SubmitInteropDocument202Response SubmitInteropDocument(SubmitInteropDocumentRequest requestParameters); #endregion Synchronous Operations } @@ -78,7 +102,7 @@ public interface IInteropApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of SubmitInteropDocument202Response - System.Threading.Tasks.Task SubmitInteropDocumentAsync(SubmitInteropDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SubmitInteropDocumentAsync(SubmitInteropDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -128,7 +152,7 @@ private Avalara.SDK.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Request Object for the API /// SubmitInteropDocument202Response - public SubmitInteropDocument202Response SubmitInteropDocument(SubmitInteropDocumentRequestSdk requestParameters) + public SubmitInteropDocument202Response SubmitInteropDocument(SubmitInteropDocumentRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = SubmitInteropDocumentWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -140,7 +164,7 @@ public SubmitInteropDocument202Response SubmitInteropDocument(SubmitInteropDocum /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of SubmitInteropDocument202Response - private Avalara.SDK.Client.ApiResponse SubmitInteropDocumentWithHttpInfo(SubmitInteropDocumentRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse SubmitInteropDocumentWithHttpInfo(SubmitInteropDocumentRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -208,7 +232,7 @@ private Avalara.SDK.Client.ApiResponse SubmitI /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of SubmitInteropDocument202Response - public async System.Threading.Tasks.Task SubmitInteropDocumentAsync(SubmitInteropDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SubmitInteropDocumentAsync(SubmitInteropDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await SubmitInteropDocumentWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -221,7 +245,7 @@ private Avalara.SDK.Client.ApiResponse SubmitI /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (SubmitInteropDocument202Response) - private async System.Threading.Tasks.Task> SubmitInteropDocumentWithHttpInfoAsync(SubmitInteropDocumentRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> SubmitInteropDocumentWithHttpInfoAsync(SubmitInteropDocumentRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -293,7 +317,7 @@ private void SetConfiguration(IApiClient client) if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); this.Client = (IInternalApiClient)client; - this.Client.SdkVersion = "25.5.3"; + this.Client.SdkVersion = "25.5.4"; } } diff --git a/src/Avalara.SDK/Api/EInvoicing/V1/MandatesApi.cs b/src/Avalara.SDK/Api/EInvoicing/V1/MandatesApi.cs index 325430d..d84677d 100644 --- a/src/Avalara.SDK/Api/EInvoicing/V1/MandatesApi.cs +++ b/src/Avalara.SDK/Api/EInvoicing/V1/MandatesApi.cs @@ -1,3 +1,22 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara E-Invoicing API + * + * An API that supports sending data for an E-Invoicing compliance use-case. + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ using System; @@ -14,11 +33,16 @@ namespace Avalara.SDK.Api.EInvoicing.V1 /// /// Represents the Request object for the GetMandateDataInputFields API /// - public class GetMandateDataInputFieldsRequestSdk { + public class GetMandateDataInputFieldsRequest { + /// + /// Constructor for the Request object + /// + public GetMandateDataInputFieldsRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// The unique ID for the mandate that was returned in the GET /einvoicing/mandates response body /// @@ -40,11 +64,16 @@ public class GetMandateDataInputFieldsRequestSdk { /// /// Represents the Request object for the GetMandates API /// - public class GetMandatesRequestSdk { + public class GetMandatesRequest { + /// + /// Constructor for the Request object + /// + public GetMandatesRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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. /// @@ -87,7 +116,7 @@ public interface IMandatesApiSync /// Thrown when fails to make API call /// Request Object for the API /// List<MandateDataInputField> - List GetMandateDataInputFields(GetMandateDataInputFieldsRequestSdk requestParameters); + List GetMandateDataInputFields(GetMandateDataInputFieldsRequest requestParameters); /// /// List country mandates that are supported by the Avalara E-Invoicing platform @@ -98,7 +127,7 @@ public interface IMandatesApiSync /// Thrown when fails to make API call /// Request Object for the API /// MandatesResponse - MandatesResponse GetMandates(GetMandatesRequestSdk requestParameters); + MandatesResponse GetMandates(GetMandatesRequest requestParameters); #endregion Synchronous Operations } @@ -119,7 +148,7 @@ public interface IMandatesApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of List<MandateDataInputField> - System.Threading.Tasks.Task> GetMandateDataInputFieldsAsync(GetMandateDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetMandateDataInputFieldsAsync(GetMandateDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List country mandates that are supported by the Avalara E-Invoicing platform @@ -131,7 +160,7 @@ public interface IMandatesApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of MandatesResponse - System.Threading.Tasks.Task GetMandatesAsync(GetMandatesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetMandatesAsync(GetMandatesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -181,7 +210,7 @@ private Avalara.SDK.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Request Object for the API /// List<MandateDataInputField> - public List GetMandateDataInputFields(GetMandateDataInputFieldsRequestSdk requestParameters) + public List GetMandateDataInputFields(GetMandateDataInputFieldsRequest requestParameters) { Avalara.SDK.Client.ApiResponse> localVarResponse = GetMandateDataInputFieldsWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -193,7 +222,7 @@ public List GetMandateDataInputFields(GetMandateDataInput /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of List<MandateDataInputField> - private Avalara.SDK.Client.ApiResponse> GetMandateDataInputFieldsWithHttpInfo(GetMandateDataInputFieldsRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse> GetMandateDataInputFieldsWithHttpInfo(GetMandateDataInputFieldsRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -257,7 +286,7 @@ private Avalara.SDK.Client.ApiResponse> GetMandateDa /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of List<MandateDataInputField> - public async System.Threading.Tasks.Task> GetMandateDataInputFieldsAsync(GetMandateDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetMandateDataInputFieldsAsync(GetMandateDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse> localVarResponse = await GetMandateDataInputFieldsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -270,7 +299,7 @@ private Avalara.SDK.Client.ApiResponse> GetMandateDa /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<MandateDataInputField>) - private async System.Threading.Tasks.Task>> GetMandateDataInputFieldsWithHttpInfoAsync(GetMandateDataInputFieldsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task>> GetMandateDataInputFieldsWithHttpInfoAsync(GetMandateDataInputFieldsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -335,7 +364,7 @@ private Avalara.SDK.Client.ApiResponse> GetMandateDa /// Thrown when fails to make API call /// Request Object for the API /// MandatesResponse - public MandatesResponse GetMandates(GetMandatesRequestSdk requestParameters) + public MandatesResponse GetMandates(GetMandatesRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = GetMandatesWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -347,7 +376,7 @@ public MandatesResponse GetMandates(GetMandatesRequestSdk requestParameters) /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of MandatesResponse - private Avalara.SDK.Client.ApiResponse GetMandatesWithHttpInfo(GetMandatesRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse GetMandatesWithHttpInfo(GetMandatesRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -416,7 +445,7 @@ private Avalara.SDK.Client.ApiResponse GetMandatesWithHttpInfo /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of MandatesResponse - public async System.Threading.Tasks.Task GetMandatesAsync(GetMandatesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetMandatesAsync(GetMandatesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await GetMandatesWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -429,7 +458,7 @@ private Avalara.SDK.Client.ApiResponse GetMandatesWithHttpInfo /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (MandatesResponse) - private async System.Threading.Tasks.Task> GetMandatesWithHttpInfoAsync(GetMandatesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> GetMandatesWithHttpInfoAsync(GetMandatesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -502,7 +531,7 @@ private void SetConfiguration(IApiClient client) if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); this.Client = (IInternalApiClient)client; - this.Client.SdkVersion = "25.5.3"; + this.Client.SdkVersion = "25.5.4"; } } diff --git a/src/Avalara.SDK/Api/EInvoicing/V1/TradingPartnersApi.cs b/src/Avalara.SDK/Api/EInvoicing/V1/TradingPartnersApi.cs index 5036b56..81395bc 100644 --- a/src/Avalara.SDK/Api/EInvoicing/V1/TradingPartnersApi.cs +++ b/src/Avalara.SDK/Api/EInvoicing/V1/TradingPartnersApi.cs @@ -1,3 +1,22 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara E-Invoicing API + * + * An API that supports sending data for an E-Invoicing compliance use-case. + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ using System; @@ -14,11 +33,16 @@ namespace Avalara.SDK.Api.EInvoicing.V1 /// /// Represents the Request object for the BatchSearchParticipants API /// - public class BatchSearchParticipantsRequestSdk { + public class BatchSearchParticipantsRequest { + /// + /// Constructor for the Request object + /// + public BatchSearchParticipantsRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// The human readable name given to this batch search. /// @@ -44,11 +68,16 @@ public class BatchSearchParticipantsRequestSdk { /// /// Represents the Request object for the DownloadBatchSearchReport API /// - public class DownloadBatchSearchReportRequestSdk { + public class DownloadBatchSearchReportRequest { + /// + /// Constructor for the Request object + /// + public DownloadBatchSearchReportRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// The ID of the batch search whose report is to be downloaded. /// @@ -66,11 +95,16 @@ public class DownloadBatchSearchReportRequestSdk { /// /// Represents the Request object for the GetBatchSearchDetail API /// - public class GetBatchSearchDetailRequestSdk { + public class GetBatchSearchDetailRequest { + /// + /// Constructor for the Request object + /// + public GetBatchSearchDetailRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// The ID of the batch search that was submitted earlier. /// @@ -88,11 +122,16 @@ public class GetBatchSearchDetailRequestSdk { /// /// Represents the Request object for the ListBatchSearches API /// - public class ListBatchSearchesRequestSdk { + public class ListBatchSearchesRequest { + /// + /// Constructor for the Request object + /// + public ListBatchSearchesRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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\" /// @@ -126,11 +165,16 @@ public class ListBatchSearchesRequestSdk { /// /// Represents the Request object for the SearchParticipants API /// - public class SearchParticipantsRequestSdk { + public class SearchParticipantsRequest { + /// + /// Constructor for the Request object + /// + public SearchParticipantsRequest () { + } /// /// The HTTP Header meant to specify the version of the API intended to be used /// - public string? AvalaraVersion { get; set; } = "1.3"; + public string? AvalaraVersion { get; set; } = "1.2"; /// /// 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 <code>name</code> and <code>identifier</code> parameters only. /// @@ -180,8 +224,8 @@ public interface ITradingPartnersApiSync /// /// Thrown when fails to make API call /// Request Object for the API - /// BatchSearchParticipants202Response - BatchSearchParticipants202Response BatchSearchParticipants(BatchSearchParticipantsRequestSdk requestParameters); + /// + void BatchSearchParticipants(BatchSearchParticipantsRequest requestParameters); /// /// Download batch search results in a csv file. @@ -192,40 +236,40 @@ public interface ITradingPartnersApiSync /// Thrown when fails to make API call /// Request Object for the API /// FileParameter - FileParameter DownloadBatchSearchReport(DownloadBatchSearchReportRequestSdk requestParameters); + FileParameter DownloadBatchSearchReport(DownloadBatchSearchReportRequest requestParameters); /// /// Get the batch search details for a given id. /// /// - /// This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// BatchSearch - BatchSearch GetBatchSearchDetail(GetBatchSearchDetailRequestSdk requestParameters); + BatchSearch GetBatchSearchDetail(GetBatchSearchDetailRequest requestParameters); /// /// List all batch searches that were previously submitted. /// /// - /// This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// BatchSearchListResponse - BatchSearchListResponse ListBatchSearches(ListBatchSearchesRequestSdk requestParameters); + BatchSearchListResponse ListBatchSearches(ListBatchSearchesRequest requestParameters); /// /// Returns a list of participants matching the input query. /// /// - /// This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// DirectorySearchResponse - DirectorySearchResponse SearchParticipants(SearchParticipantsRequestSdk requestParameters); + DirectorySearchResponse SearchParticipants(SearchParticipantsRequest requestParameters); #endregion Synchronous Operations } @@ -245,8 +289,8 @@ public interface ITradingPartnersApiAsync /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. - /// Task of BatchSearchParticipants202Response - System.Threading.Tasks.Task BatchSearchParticipantsAsync(BatchSearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of void + System.Threading.Tasks.Task BatchSearchParticipantsAsync(BatchSearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Download batch search results in a csv file. @@ -258,43 +302,43 @@ public interface ITradingPartnersApiAsync /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of FileParameter - System.Threading.Tasks.Task DownloadBatchSearchReportAsync(DownloadBatchSearchReportRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DownloadBatchSearchReportAsync(DownloadBatchSearchReportRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get the batch search details for a given id. /// /// - /// This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of BatchSearch - System.Threading.Tasks.Task GetBatchSearchDetailAsync(GetBatchSearchDetailRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetBatchSearchDetailAsync(GetBatchSearchDetailRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List all batch searches that were previously submitted. /// /// - /// This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of BatchSearchListResponse - System.Threading.Tasks.Task ListBatchSearchesAsync(ListBatchSearchesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListBatchSearchesAsync(ListBatchSearchesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Returns a list of participants matching the input query. /// /// - /// This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DirectorySearchResponse - System.Threading.Tasks.Task SearchParticipantsAsync(SearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task SearchParticipantsAsync(SearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -343,11 +387,10 @@ private Avalara.SDK.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Request Object for the API - /// BatchSearchParticipants202Response - public BatchSearchParticipants202Response BatchSearchParticipants(BatchSearchParticipantsRequestSdk requestParameters) + /// + public void BatchSearchParticipants(BatchSearchParticipantsRequest requestParameters) { - Avalara.SDK.Client.ApiResponse localVarResponse = BatchSearchParticipantsWithHttpInfo(requestParameters); - return localVarResponse.Data; + BatchSearchParticipantsWithHttpInfo(requestParameters); } /// @@ -355,8 +398,8 @@ public BatchSearchParticipants202Response BatchSearchParticipants(BatchSearchPar /// /// Thrown when fails to make API call /// Request Object for the API - /// ApiResponse of BatchSearchParticipants202Response - private Avalara.SDK.Client.ApiResponse BatchSearchParticipantsWithHttpInfo(BatchSearchParticipantsRequestSdk requestParameters) + /// ApiResponse of Object(void) + private Avalara.SDK.Client.ApiResponse BatchSearchParticipantsWithHttpInfo(BatchSearchParticipantsRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -407,7 +450,7 @@ private Avalara.SDK.Client.ApiResponse Batch localVarRequestOptions.FileParameters.Add("file", requestParameters.File); // make the HTTP request - var localVarResponse = this.Client.Post("/einvoicing/trading-partners/batch-searches", localVarRequestOptions, requiredScopes, AvalaraMicroservice.EInvoicing); + var localVarResponse = this.Client.Post("/einvoicing/trading-partners/batch-searches", localVarRequestOptions, requiredScopes, AvalaraMicroservice.EInvoicing); if (this.ExceptionFactory != null) { @@ -424,11 +467,10 @@ private Avalara.SDK.Client.ApiResponse Batch /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. - /// Task of BatchSearchParticipants202Response - public async System.Threading.Tasks.Task BatchSearchParticipantsAsync(BatchSearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task BatchSearchParticipantsAsync(BatchSearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Avalara.SDK.Client.ApiResponse localVarResponse = await BatchSearchParticipantsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await BatchSearchParticipantsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); } /// @@ -437,8 +479,8 @@ private Avalara.SDK.Client.ApiResponse Batch /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. - /// Task of ApiResponse (BatchSearchParticipants202Response) - private async System.Threading.Tasks.Task> BatchSearchParticipantsWithHttpInfoAsync(BatchSearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + private async System.Threading.Tasks.Task> BatchSearchParticipantsWithHttpInfoAsync(BatchSearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -491,7 +533,7 @@ private Avalara.SDK.Client.ApiResponse Batch localVarRequestOptions.FileParameters.Add("file", requestParameters.File); // make the HTTP request - var localVarResponse = await this.Client.PostAsync("/einvoicing/trading-partners/batch-searches", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.EInvoicing).ConfigureAwait(false); + var localVarResponse = await this.Client.PostAsync("/einvoicing/trading-partners/batch-searches", localVarRequestOptions, cancellationToken, requiredScopes, AvalaraMicroservice.EInvoicing).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -508,7 +550,7 @@ private Avalara.SDK.Client.ApiResponse Batch /// Thrown when fails to make API call /// Request Object for the API /// FileParameter - public FileParameter DownloadBatchSearchReport(DownloadBatchSearchReportRequestSdk requestParameters) + public FileParameter DownloadBatchSearchReport(DownloadBatchSearchReportRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = DownloadBatchSearchReportWithHttpInfo(requestParameters); return localVarResponse.Data; @@ -520,7 +562,7 @@ public FileParameter DownloadBatchSearchReport(DownloadBatchSearchReportRequestS /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of FileParameter - private Avalara.SDK.Client.ApiResponse DownloadBatchSearchReportWithHttpInfo(DownloadBatchSearchReportRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse DownloadBatchSearchReportWithHttpInfo(DownloadBatchSearchReportRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -579,7 +621,7 @@ private Avalara.SDK.Client.ApiResponse DownloadBatchSearchReportW /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of FileParameter - public async System.Threading.Tasks.Task DownloadBatchSearchReportAsync(DownloadBatchSearchReportRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DownloadBatchSearchReportAsync(DownloadBatchSearchReportRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await DownloadBatchSearchReportWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -592,7 +634,7 @@ private Avalara.SDK.Client.ApiResponse DownloadBatchSearchReportW /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) - private async System.Threading.Tasks.Task> DownloadBatchSearchReportWithHttpInfoAsync(DownloadBatchSearchReportRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> DownloadBatchSearchReportWithHttpInfoAsync(DownloadBatchSearchReportRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -647,24 +689,24 @@ private Avalara.SDK.Client.ApiResponse DownloadBatchSearchReportW } /// - /// Get the batch search details for a given id. This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// BatchSearch - public BatchSearch GetBatchSearchDetail(GetBatchSearchDetailRequestSdk requestParameters) + public BatchSearch GetBatchSearchDetail(GetBatchSearchDetailRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = GetBatchSearchDetailWithHttpInfo(requestParameters); return localVarResponse.Data; } /// - /// Get the batch search details for a given id. This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of BatchSearch - private Avalara.SDK.Client.ApiResponse GetBatchSearchDetailWithHttpInfo(GetBatchSearchDetailRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse GetBatchSearchDetailWithHttpInfo(GetBatchSearchDetailRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -716,26 +758,26 @@ private Avalara.SDK.Client.ApiResponse GetBatchSearchDetailWithHttp } /// - /// Get the batch search details for a given id. This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of BatchSearch - public async System.Threading.Tasks.Task GetBatchSearchDetailAsync(GetBatchSearchDetailRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetBatchSearchDetailAsync(GetBatchSearchDetailRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await GetBatchSearchDetailWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get the batch search details for a given id. This endpoint provides a detailed information for a specific batch search based on a given ID. It is ideal for tracking the progress of a previously initiated batch search operation. + /// Get the batch search details for a given id. Get the batch search details for a given id. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (BatchSearch) - private async System.Threading.Tasks.Task> GetBatchSearchDetailWithHttpInfoAsync(GetBatchSearchDetailRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> GetBatchSearchDetailWithHttpInfoAsync(GetBatchSearchDetailRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -789,24 +831,24 @@ private Avalara.SDK.Client.ApiResponse GetBatchSearchDetailWithHttp } /// - /// List all batch searches that were previously submitted. This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// List all batch searches that were previously submitted. Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// BatchSearchListResponse - public BatchSearchListResponse ListBatchSearches(ListBatchSearchesRequestSdk requestParameters) + public BatchSearchListResponse ListBatchSearches(ListBatchSearchesRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = ListBatchSearchesWithHttpInfo(requestParameters); return localVarResponse.Data; } /// - /// List all batch searches that were previously submitted. This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// List all batch searches that were previously submitted. Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of BatchSearchListResponse - private Avalara.SDK.Client.ApiResponse ListBatchSearchesWithHttpInfo(ListBatchSearchesRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse ListBatchSearchesWithHttpInfo(ListBatchSearchesRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -873,26 +915,26 @@ private Avalara.SDK.Client.ApiResponse ListBatchSearche } /// - /// List all batch searches that were previously submitted. This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// List all batch searches that were previously submitted. Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of BatchSearchListResponse - public async System.Threading.Tasks.Task ListBatchSearchesAsync(ListBatchSearchesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListBatchSearchesAsync(ListBatchSearchesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await ListBatchSearchesWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// List all batch searches that were previously submitted. This endpoint provides a way to retrieve a comprehensive list of all batch search operations that have been previously submitted. This endpoint returns details about each batch search, such as their id, status, created date and associated metadata, allowing users to easily view past batch search requests. It's particularly useful for tracking the progress of a previously initiated batch search operations. + /// List all batch searches that were previously submitted. Retrieves all batch searches performed by the user. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (BatchSearchListResponse) - private async System.Threading.Tasks.Task> ListBatchSearchesWithHttpInfoAsync(ListBatchSearchesRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> ListBatchSearchesWithHttpInfoAsync(ListBatchSearchesRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -961,24 +1003,24 @@ private Avalara.SDK.Client.ApiResponse ListBatchSearche } /// - /// Returns a list of participants matching the input query. This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// DirectorySearchResponse - public DirectorySearchResponse SearchParticipants(SearchParticipantsRequestSdk requestParameters) + public DirectorySearchResponse SearchParticipants(SearchParticipantsRequest requestParameters) { Avalara.SDK.Client.ApiResponse localVarResponse = SearchParticipantsWithHttpInfo(requestParameters); return localVarResponse.Data; } /// - /// Returns a list of participants matching the input query. This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// ApiResponse of DirectorySearchResponse - private Avalara.SDK.Client.ApiResponse SearchParticipantsWithHttpInfo(SearchParticipantsRequestSdk requestParameters) + private Avalara.SDK.Client.ApiResponse SearchParticipantsWithHttpInfo(SearchParticipantsRequest requestParameters) { //OAuth2 Scopes String requiredScopes = ""; @@ -1050,26 +1092,26 @@ private Avalara.SDK.Client.ApiResponse SearchParticipan } /// - /// Returns a list of participants matching the input query. This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of DirectorySearchResponse - public async System.Threading.Tasks.Task SearchParticipantsAsync(SearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task SearchParticipantsAsync(SearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Avalara.SDK.Client.ApiResponse localVarResponse = await SearchParticipantsWithHttpInfoAsync(requestParameters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Returns a list of participants matching the input query. This endpoint provides a list of trading partners that match a specified input query. The search is performed based on various filters, search text, and other relevant parameters. + /// Returns a list of participants matching the input query. Returns a list of participants matching the input query. /// /// Thrown when fails to make API call /// Request Object for the API /// Cancellation Token to cancel the request. /// Task of ApiResponse (DirectorySearchResponse) - private async System.Threading.Tasks.Task> SearchParticipantsWithHttpInfoAsync(SearchParticipantsRequestSdk requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async System.Threading.Tasks.Task> SearchParticipantsWithHttpInfoAsync(SearchParticipantsRequest requestParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { //OAuth2 Scopes String requiredScopes = ""; @@ -1151,7 +1193,7 @@ private void SetConfiguration(IApiClient client) if (client.Configuration == null) throw new ArgumentNullException("ApiClient.Configuration"); this.Client = (IInternalApiClient)client; - this.Client.SdkVersion = "25.5.3"; + this.Client.SdkVersion = "25.5.4"; } } diff --git a/src/Avalara.SDK/Model/A1099/V2/AbstractOpenAPISchema.cs b/src/Avalara.SDK/Model/A1099/V2/AbstractOpenAPISchema.cs index 04c5409..c30736c 100644 --- a/src/Avalara.SDK/Model/A1099/V2/AbstractOpenAPISchema.cs +++ b/src/Avalara.SDK/Model/A1099/V2/AbstractOpenAPISchema.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal diff --git a/src/Avalara.SDK/Model/A1099/V2/AddressVerificationStatus.cs b/src/Avalara.SDK/Model/A1099/V2/AddressVerificationStatus.cs new file mode 100644 index 0000000..ad08294 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/AddressVerificationStatus.cs @@ -0,0 +1,130 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of address verification. + /// + [DataContract(Name = "addressVerificationStatus")] + public partial class AddressVerificationStatus : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 1, + + /// + /// Enum Verified for value: verified + /// + [EnumMember(Value = "verified")] + Verified = 2, + + /// + /// Enum Failed for value: failed + /// + [EnumMember(Value = "failed")] + Failed = 3 + } + + + /// + /// Gets or Sets Status + /// + /// verified + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public AddressVerificationStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class AddressVerificationStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestModel.cs b/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestModel.cs index be96086..2c43785 100644 --- a/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -46,7 +46,7 @@ public partial class AuthorizedApiRequestModel : IValidatableObject /// /// Initializes a new instance of the class. /// - /// The path and query of the API request you want to pre-authorize, omitting the leading /api/. + /// The path and query of the API request you want to pre-authorize. /// Seconds until this AuthorizedApiRequest should expire, 3600 if omitted; values greater than 86400 will not be honored. public AuthorizedApiRequestModel(string path = default(string), int ttl = default(int)) { @@ -55,11 +55,11 @@ public partial class AuthorizedApiRequestModel : IValidatableObject } /// - /// The path and query of the API request you want to pre-authorize, omitting the leading /api/ + /// The path and query of the API request you want to pre-authorize /// - /// The path and query of the API request you want to pre-authorize, omitting the leading /api/ + /// The path and query of the API request you want to pre-authorize /// form-pdf?filter[form_type_eq]=1099-NEC&filter[reference_id_eq]=SE-02453450&filter[tax_year_eq]=2023 - [DataMember(Name = "path", EmitDefaultValue = false)] + [DataMember(Name = "path", EmitDefaultValue = true)] public string Path { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestV2DataModel.cs b/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestV2DataModel.cs index 0e85d95..8853a4c 100644 --- a/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestV2DataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/AuthorizedApiRequestV2DataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.A1099.V2 { /// - /// AuthorizedApiRequestV2DataModel + /// Describes a one-time-use URL that, when accessed, executes the API request specified in path using the account and credentials you used to create this AuthorizedApiRequest /// [DataContract(Name = "AuthorizedApiRequestV2DataModel")] public partial class AuthorizedApiRequestV2DataModel : IValidatableObject @@ -47,8 +47,8 @@ public partial class AuthorizedApiRequestV2DataModel : IValidatableObject /// Initializes a new instance of the class. /// /// id. - /// path. - /// expiresAt. + /// The path and query of the API request you want to pre-authorize. + /// Timestamp when this AuthorizedApiRequest will expire, ttl (or 3600) seconds from creation. public AuthorizedApiRequestV2DataModel(string id = default(string), string path = default(string), string expiresAt = default(string)) { this.Id = id; @@ -60,21 +60,23 @@ public partial class AuthorizedApiRequestV2DataModel : IValidatableObject /// Gets or Sets Id /// /// d0d09a2f-619e-4e9d-aae4-3311d9e0c67c - [DataMember(Name = "id", EmitDefaultValue = false)] + [DataMember(Name = "id", EmitDefaultValue = true)] public string Id { get; set; } /// - /// Gets or Sets Path + /// The path and query of the API request you want to pre-authorize /// + /// The path and query of the API request you want to pre-authorize /// form-pdf?filter[form_type_eq]=1099-NEC&filter[reference_id_eq]=SE-02453450&filter[tax_year_eq]=2024 - [DataMember(Name = "path", EmitDefaultValue = false)] + [DataMember(Name = "path", EmitDefaultValue = true)] public string Path { get; set; } /// - /// Gets or Sets ExpiresAt + /// Timestamp when this AuthorizedApiRequest will expire, ttl (or 3600) seconds from creation /// + /// Timestamp when this AuthorizedApiRequest will expire, ttl (or 3600) seconds from creation /// 2022-04-29T15:19:42.995-04:00 - [DataMember(Name = "expiresAt", EmitDefaultValue = false)] + [DataMember(Name = "expiresAt", EmitDefaultValue = true)] public string ExpiresAt { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/BaseFormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/BaseFormDataModel.cs new file mode 100644 index 0000000..ae16754 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/BaseFormDataModel.cs @@ -0,0 +1,306 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Resource data model for /w9/forms API + /// + [DataContract(Name = "BaseFormDataModel")] + public partial class BaseFormDataModel : IValidatableObject + { + /// + /// Defines Type + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum W9 for value: w9 + /// + [EnumMember(Value = "w9")] + W9 = 1, + + /// + /// Enum W4 for value: w4 + /// + [EnumMember(Value = "w4")] + W4 = 2, + + /// + /// Enum W8imy for value: w8imy + /// + [EnumMember(Value = "w8imy")] + W8imy = 3, + + /// + /// Enum W8ben for value: w8ben + /// + [EnumMember(Value = "w8ben")] + W8ben = 4, + + /// + /// Enum W8bene for value: w8bene + /// + [EnumMember(Value = "w8bene")] + W8bene = 5 + } + + + /// + /// Gets or Sets Type + /// + /// w9 + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } + + /// + /// Returns false as Type should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeType() + { + return false; + } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// entryStatus. + /// The last updated date of the form.. + /// A reference identifier for the form.. + /// The ID of the associated company.. + /// The display name associated with the form.. + /// The email address of the individual associated with the form.. + /// Indicates whether the form is archived.. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// signature. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public BaseFormDataModel(string id = default(string), string entryStatus = default(string), DateTime? updatedAt = default(DateTime?), string referenceId = default(string), string companyId = default(string), string displayName = default(string), string email = default(string), bool? archived = default(bool?), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), string signature = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) + { + this.Id = id; + this.EntryStatus = entryStatus; + this.UpdatedAt = updatedAt; + this.ReferenceId = referenceId; + this.CompanyId = companyId; + this.DisplayName = displayName; + this.Email = email; + this.Archived = archived; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; + this.Signature = signature; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets EntryStatus + /// + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } + + /// + /// The last updated date of the form. + /// + /// The last updated date of the form. + [DataMember(Name = "updatedAt", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } + + /// + /// A reference identifier for the form. + /// + /// A reference identifier for the form. + [DataMember(Name = "referenceId", EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// The ID of the associated company. + /// + /// The ID of the associated company. + [DataMember(Name = "companyId", EmitDefaultValue = true)] + public string CompanyId { get; set; } + + /// + /// The display name associated with the form. + /// + /// The display name associated with the form. + [DataMember(Name = "displayName", EmitDefaultValue = true)] + public string DisplayName { get; set; } + + /// + /// The email address of the individual associated with the form. + /// + /// The email address of the individual associated with the form. + [DataMember(Name = "email", EmitDefaultValue = true)] + public string Email { get; set; } + + /// + /// Indicates whether the form is archived. + /// + /// Indicates whether the form is archived. + [DataMember(Name = "archived", EmitDefaultValue = true)] + public bool? Archived { get; set; } + + /// + /// Gets or Sets EntryStatusDate + /// + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } + + /// + /// Gets or Sets PdfJson + /// + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } + + /// + /// Gets or Sets PdfVersion + /// + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } + + /// + /// Gets or Sets RequestToken + /// + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } + + /// + /// Gets or Sets Signature + /// + [DataMember(Name = "signature", EmitDefaultValue = true)] + public string Signature { get; set; } + + /// + /// Gets or Sets Mobile + /// + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } + + /// + /// Gets or Sets AppVersion + /// + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } + + /// + /// Gets or Sets Platform + /// + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } + + /// + /// Gets or Sets OsVersion + /// + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } + + /// + /// Gets or Sets AncestorId + /// + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BaseFormDataModel {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/BulkUpsert1099FormsRequest.cs b/src/Avalara.SDK/Model/A1099/V2/BulkUpsert1099FormsRequest.cs index ddf51e4..2163c49 100644 --- a/src/Avalara.SDK/Model/A1099/V2/BulkUpsert1099FormsRequest.cs +++ b/src/Avalara.SDK/Model/A1099/V2/BulkUpsert1099FormsRequest.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -34,331 +34,70 @@ using System.ComponentModel.DataAnnotations; using FileParameter = Avalara.SDK.Client.FileParameter; using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; -using System.Reflection; namespace Avalara.SDK.Model.A1099.V2 { - /// - /// BulkUpsert1099FormsRequest - /// - [JsonConverter(typeof(BulkUpsert1099FormsRequestJsonConverter))] - [DataContract(Name = "BulkUpsert1099Forms_request")] - public partial class BulkUpsert1099FormsRequest : AbstractOpenAPISchema, IValidatableObject - { - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Form1099DivList. - public BulkUpsert1099FormsRequest(Form1099DivList actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Form1099MiscList. - public BulkUpsert1099FormsRequest(Form1099MiscList actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Form1099NecList. - public BulkUpsert1099FormsRequest(Form1099NecList actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - /// - /// Initializes a new instance of the class - /// with the class - /// - /// An instance of Form1099RList. - public BulkUpsert1099FormsRequest(Form1099RList actualInstance) - { - this.IsNullable = false; - this.SchemaType= "oneOf"; - this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); - } - - - private Object _actualInstance; - - /// - /// Gets or Sets ActualInstance - /// - public override Object ActualInstance - { - get - { - return _actualInstance; - } - set - { - if (value.GetType() == typeof(Form1099DivList) || value is Form1099DivList) - { - this._actualInstance = value; - } - else if (value.GetType() == typeof(Form1099MiscList) || value is Form1099MiscList) - { - this._actualInstance = value; - } - else if (value.GetType() == typeof(Form1099NecList) || value is Form1099NecList) - { - this._actualInstance = value; - } - else if (value.GetType() == typeof(Form1099RList) || value is Form1099RList) - { - this._actualInstance = value; - } - else - { - throw new ArgumentException("Invalid instance found. Must be the following types: Form1099DivList, Form1099MiscList, Form1099NecList, Form1099RList"); - } - } - } - - /// - /// Get the actual instance of `Form1099DivList`. If the actual instance is not `Form1099DivList`, - /// the InvalidClassException will be thrown - /// - /// An instance of Form1099DivList - public Form1099DivList GetForm1099DivList() - { - return (Form1099DivList)this.ActualInstance; - } - - /// - /// Get the actual instance of `Form1099MiscList`. If the actual instance is not `Form1099MiscList`, - /// the InvalidClassException will be thrown - /// - /// An instance of Form1099MiscList - public Form1099MiscList GetForm1099MiscList() - { - return (Form1099MiscList)this.ActualInstance; - } - - /// - /// Get the actual instance of `Form1099NecList`. If the actual instance is not `Form1099NecList`, - /// the InvalidClassException will be thrown - /// - /// An instance of Form1099NecList - public Form1099NecList GetForm1099NecList() - { - return (Form1099NecList)this.ActualInstance; - } - - /// - /// Get the actual instance of `Form1099RList`. If the actual instance is not `Form1099RList`, - /// the InvalidClassException will be thrown - /// - /// An instance of Form1099RList - public Form1099RList GetForm1099RList() - { - return (Form1099RList)this.ActualInstance; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class BulkUpsert1099FormsRequest {\n"); - sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public override string ToJson() - { - return JsonConvert.SerializeObject(this.ActualInstance, BulkUpsert1099FormsRequest.SerializerSettings); - } - - /// - /// Converts the JSON string into an instance of BulkUpsert1099FormsRequest - /// - /// JSON string - /// An instance of BulkUpsert1099FormsRequest - public static BulkUpsert1099FormsRequest FromJson(string jsonString) - { - BulkUpsert1099FormsRequest newBulkUpsert1099FormsRequest = null; - - if (string.IsNullOrEmpty(jsonString)) - { - return newBulkUpsert1099FormsRequest; - } - int match = 0; - List matchedTypes = new List(); - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(Form1099DivList).GetProperty("AdditionalProperties") == null) - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.SerializerSettings)); - } - else - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.AdditionalPropertiesSerializerSettings)); - } - matchedTypes.Add("Form1099DivList"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099DivList: {1}", jsonString, exception.ToString())); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(Form1099MiscList).GetProperty("AdditionalProperties") == null) - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.SerializerSettings)); - } - else - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.AdditionalPropertiesSerializerSettings)); - } - matchedTypes.Add("Form1099MiscList"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099MiscList: {1}", jsonString, exception.ToString())); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(Form1099NecList).GetProperty("AdditionalProperties") == null) - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.SerializerSettings)); - } - else - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.AdditionalPropertiesSerializerSettings)); - } - matchedTypes.Add("Form1099NecList"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099NecList: {1}", jsonString, exception.ToString())); - } - - try - { - // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(Form1099RList).GetProperty("AdditionalProperties") == null) - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.SerializerSettings)); - } - else - { - newBulkUpsert1099FormsRequest = new BulkUpsert1099FormsRequest(JsonConvert.DeserializeObject(jsonString, BulkUpsert1099FormsRequest.AdditionalPropertiesSerializerSettings)); - } - matchedTypes.Add("Form1099RList"); - match++; - } - catch (Exception exception) - { - // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099RList: {1}", jsonString, exception.ToString())); - } - - if (match == 0) - { - throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); - } - else if (match > 1) - { - throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); - } - - // deserialization is considered successful at this point if no exception has been thrown. - return newBulkUpsert1099FormsRequest; - } - - +/// + /// 1099 forms to upsert. + /// + [DataContract(Name = "BulkUpsert1099Forms_request")] + public partial class BulkUpsert1099FormsRequest : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BulkUpsert1099FormsRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// forms (required). + public BulkUpsert1099FormsRequest(List forms = default(List)) + { + // to ensure "forms" is required (not null) + if (forms == null) + { + throw new ArgumentNullException("forms is a required property for BulkUpsert1099FormsRequest and cannot be null"); + } + this.Forms = forms; + } + + /// + /// Gets or Sets Forms + /// + [DataMember(Name = "forms", IsRequired = true, EmitDefaultValue = true)] + public List Forms { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BulkUpsert1099FormsRequest {\n"); + sb.Append(" Forms: ").Append(Forms).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + /// /// To validate all properties of the instance /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; - } + } } - - /// - /// Custom JSON converter for BulkUpsert1099FormsRequest - /// - public class BulkUpsert1099FormsRequestJsonConverter : JsonConverter - { - /// - /// To write the JSON string - /// - /// JSON writer - /// Object to be converted into a JSON string - /// JSON Serializer - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) - { - writer.WriteRawValue((string)(typeof(BulkUpsert1099FormsRequest).GetMethod("ToJson").Invoke(value, null))); - } - - /// - /// To convert a JSON string into an object - /// - /// JSON reader - /// Object type - /// Existing value - /// JSON Serializer - /// The object converted from the JSON string - public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) - { - switch(reader.TokenType) - { - case JsonToken.StartObject: - return BulkUpsert1099FormsRequest.FromJson(JObject.Load(reader).ToString(Formatting.None)); - case JsonToken.StartArray: - return BulkUpsert1099FormsRequest.FromJson(JArray.Load(reader).ToString(Formatting.None)); - default: - return null; - } - } - - /// - /// Check if the object can be converted - /// - /// Object type - /// True if the object can be converted - public override bool CanConvert(Type objectType) - { - return false; - } - } - } diff --git a/src/Avalara.SDK/Model/A1099/V2/CompanyModel.cs b/src/Avalara.SDK/Model/A1099/V2/CompanyModel.cs index 72c9778..57a4d0a 100644 --- a/src/Avalara.SDK/Model/A1099/V2/CompanyModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/CompanyModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -48,50 +48,50 @@ public partial class CompanyModel : IValidatableObject /// /// Company ID. /// User ID associated with the company. + /// Legal company name. + /// Company email address. + /// Shipping address. + /// City. + /// State code. + /// ZIP/Postal code. + /// Phone number. + /// Tax identification number. + /// DBA (Doing Business As) name. /// Account ID associated with the company. + /// Optional identifier for reference. + /// Flag indicating whether to perform TIN matching. + /// Group Name associated with the company. + /// Foreign province for non-US addresses. + /// Shipping country code. + /// Flag indicating whether to resend requests. + /// Interval in days for resending requests. + /// Maximum number of reminder attempts. /// Record creation timestamp. /// Record last update timestamp. - /// name. - /// email. - /// address. - /// city. - /// state. - /// zip. - /// telephone. - /// tin. - /// dbaName. - /// referenceId. - /// doTinMatch. - /// groupName. - /// foreignProvince. - /// countryCode. - /// resendRequests. - /// resendIntervalDays. - /// maxReminderAttempts. - public CompanyModel(string id = default(string), long userId = default(long), long accountId = default(long), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), string name = default(string), string email = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string telephone = default(string), string tin = default(string), string dbaName = default(string), string referenceId = default(string), bool doTinMatch = default(bool), string groupName = default(string), string foreignProvince = default(string), string countryCode = default(string), bool resendRequests = default(bool), int? resendIntervalDays = default(int?), int? maxReminderAttempts = default(int?)) + public CompanyModel(string id = default(string), string userId = default(string), string name = default(string), string email = default(string), string shippingAddress = default(string), string city = default(string), string state = default(string), string zip = default(string), string telephone = default(string), string tin = default(string), string dbaName = default(string), string accountId = default(string), string referenceId = default(string), bool doTinMatch = default(bool), string groupName = default(string), string foreignProvince = default(string), string shippingCountryCode = default(string), bool resendRequests = default(bool), int? resendIntervalDays = default(int?), int? maxReminderAttempts = default(int?), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime)) { this.Id = id; this.UserId = userId; - this.AccountId = accountId; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; this.Name = name; this.Email = email; - this.Address = address; + this.ShippingAddress = shippingAddress; this.City = city; this.State = state; this.Zip = zip; this.Telephone = telephone; this.Tin = tin; this.DbaName = dbaName; + this.AccountId = accountId; this.ReferenceId = referenceId; this.DoTinMatch = doTinMatch; this.GroupName = groupName; this.ForeignProvince = foreignProvince; - this.CountryCode = countryCode; + this.ShippingCountryCode = shippingCountryCode; this.ResendRequests = resendRequests; this.ResendIntervalDays = resendIntervalDays; this.MaxReminderAttempts = maxReminderAttempts; + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; } /// @@ -105,134 +105,160 @@ public partial class CompanyModel : IValidatableObject /// User ID associated with the company /// /// User ID associated with the company - /// 0 [DataMember(Name = "userId", EmitDefaultValue = false)] - public long UserId { get; set; } - - /// - /// Account ID associated with the company - /// - /// Account ID associated with the company - /// 0 - [DataMember(Name = "accountId", EmitDefaultValue = false)] - public long AccountId { get; set; } - - /// - /// Record creation timestamp - /// - /// Record creation timestamp - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } - - /// - /// Record last update timestamp - /// - /// Record last update timestamp - [DataMember(Name = "updatedAt", EmitDefaultValue = false)] - public DateTime UpdatedAt { get; set; } + public string UserId { get; set; } /// - /// Gets or Sets Name + /// Legal company name /// - [DataMember(Name = "name", EmitDefaultValue = false)] + /// Legal company name + /// Example Corp + [DataMember(Name = "name", EmitDefaultValue = true)] public string Name { get; set; } /// - /// Gets or Sets Email + /// Company email address /// - [DataMember(Name = "email", EmitDefaultValue = false)] + /// Company email address + /// contact@examplecorp.com + [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } /// - /// Gets or Sets Address + /// Shipping address /// - [DataMember(Name = "address", EmitDefaultValue = false)] - public string Address { get; set; } + /// Shipping address + /// 123 Business Ave + [DataMember(Name = "shippingAddress", EmitDefaultValue = true)] + public string ShippingAddress { get; set; } /// - /// Gets or Sets City + /// City /// - [DataMember(Name = "city", EmitDefaultValue = false)] + /// City + /// Phoenix + [DataMember(Name = "city", EmitDefaultValue = true)] public string City { get; set; } /// - /// Gets or Sets State + /// State code /// - [DataMember(Name = "state", EmitDefaultValue = false)] + /// State code + /// AZ + [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } /// - /// Gets or Sets Zip + /// ZIP/Postal code /// - [DataMember(Name = "zip", EmitDefaultValue = false)] + /// ZIP/Postal code + /// 85001-1234 + [DataMember(Name = "zip", EmitDefaultValue = true)] public string Zip { get; set; } /// - /// Gets or Sets Telephone + /// Phone number /// - [DataMember(Name = "telephone", EmitDefaultValue = false)] + /// Phone number + /// 602-555-0123 + [DataMember(Name = "telephone", EmitDefaultValue = true)] public string Telephone { get; set; } /// - /// Gets or Sets Tin + /// Tax identification number /// - [DataMember(Name = "tin", EmitDefaultValue = false)] + /// Tax identification number + /// 12-3456789 + [DataMember(Name = "tin", EmitDefaultValue = true)] public string Tin { get; set; } /// - /// Gets or Sets DbaName + /// DBA (Doing Business As) name /// - [DataMember(Name = "dbaName", EmitDefaultValue = false)] + /// DBA (Doing Business As) name + [DataMember(Name = "dbaName", EmitDefaultValue = true)] public string DbaName { get; set; } /// - /// Gets or Sets ReferenceId + /// Account ID associated with the company /// - [DataMember(Name = "referenceId", EmitDefaultValue = false)] + /// Account ID associated with the company + [DataMember(Name = "accountId", EmitDefaultValue = false)] + public string AccountId { get; set; } + + /// + /// Optional identifier for reference + /// + /// Optional identifier for reference + [DataMember(Name = "referenceId", EmitDefaultValue = true)] public string ReferenceId { get; set; } /// - /// Gets or Sets DoTinMatch + /// Flag indicating whether to perform TIN matching /// + /// Flag indicating whether to perform TIN matching + /// false [DataMember(Name = "doTinMatch", EmitDefaultValue = true)] public bool DoTinMatch { get; set; } /// - /// Gets or Sets GroupName + /// Group Name associated with the company /// - [DataMember(Name = "groupName", EmitDefaultValue = false)] + /// Group Name associated with the company + [DataMember(Name = "groupName", EmitDefaultValue = true)] public string GroupName { get; set; } /// - /// Gets or Sets ForeignProvince + /// Foreign province for non-US addresses /// - [DataMember(Name = "foreignProvince", EmitDefaultValue = false)] + /// Foreign province for non-US addresses + [DataMember(Name = "foreignProvince", EmitDefaultValue = true)] public string ForeignProvince { get; set; } /// - /// Gets or Sets CountryCode + /// Shipping country code /// - [DataMember(Name = "countryCode", EmitDefaultValue = false)] - public string CountryCode { get; set; } + /// Shipping country code + /// US + [DataMember(Name = "shippingCountryCode", EmitDefaultValue = true)] + public string ShippingCountryCode { get; set; } /// - /// Gets or Sets ResendRequests + /// Flag indicating whether to resend requests /// + /// Flag indicating whether to resend requests + /// false [DataMember(Name = "resendRequests", EmitDefaultValue = true)] public bool ResendRequests { get; set; } /// - /// Gets or Sets ResendIntervalDays + /// Interval in days for resending requests /// + /// Interval in days for resending requests [DataMember(Name = "resendIntervalDays", EmitDefaultValue = true)] public int? ResendIntervalDays { get; set; } /// - /// Gets or Sets MaxReminderAttempts + /// Maximum number of reminder attempts /// + /// Maximum number of reminder attempts [DataMember(Name = "maxReminderAttempts", EmitDefaultValue = true)] public int? MaxReminderAttempts { get; set; } + /// + /// Record creation timestamp + /// + /// Record creation timestamp + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Record last update timestamp + /// + /// Record last update timestamp + [DataMember(Name = "updatedAt", EmitDefaultValue = false)] + public DateTime UpdatedAt { get; set; } + /// /// Returns the string presentation of the object /// @@ -243,26 +269,26 @@ public override string ToString() sb.Append("class CompanyModel {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" AccountId: ").Append(AccountId).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" ShippingAddress: ").Append(ShippingAddress).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" State: ").Append(State).Append("\n"); sb.Append(" Zip: ").Append(Zip).Append("\n"); sb.Append(" Telephone: ").Append(Telephone).Append("\n"); sb.Append(" Tin: ").Append(Tin).Append("\n"); sb.Append(" DbaName: ").Append(DbaName).Append("\n"); + sb.Append(" AccountId: ").Append(AccountId).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" DoTinMatch: ").Append(DoTinMatch).Append("\n"); sb.Append(" GroupName: ").Append(GroupName).Append("\n"); sb.Append(" ForeignProvince: ").Append(ForeignProvince).Append("\n"); - sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" ShippingCountryCode: ").Append(ShippingCountryCode).Append("\n"); sb.Append(" ResendRequests: ").Append(ResendRequests).Append("\n"); sb.Append(" ResendIntervalDays: ").Append(ResendIntervalDays).Append("\n"); sb.Append(" MaxReminderAttempts: ").Append(MaxReminderAttempts).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/ErrorModel.cs b/src/Avalara.SDK/Model/A1099/V2/ErrorModel.cs index a74e042..4e6158d 100644 --- a/src/Avalara.SDK/Model/A1099/V2/ErrorModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/ErrorModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -67,7 +67,7 @@ public partial class ErrorModel : IValidatableObject /// /// HTTP error code in 4xx or 5xx. /// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400 - [DataMember(Name = "type", EmitDefaultValue = false)] + [DataMember(Name = "type", EmitDefaultValue = true)] public string Type { get; set; } /// @@ -75,7 +75,7 @@ public partial class ErrorModel : IValidatableObject /// /// HTTP error code in 4xx or 5xx. /// 400 - [DataMember(Name = "status", EmitDefaultValue = false)] + [DataMember(Name = "status", EmitDefaultValue = true)] public string Status { get; set; } /// @@ -83,22 +83,22 @@ public partial class ErrorModel : IValidatableObject /// /// Description of the HTTP error code. /// Bad request - [DataMember(Name = "title", EmitDefaultValue = false)] + [DataMember(Name = "title", EmitDefaultValue = true)] public string Title { get; set; } /// /// Detailed error message. /// /// Detailed error message. - [DataMember(Name = "detail", EmitDefaultValue = false)] + [DataMember(Name = "detail", EmitDefaultValue = true)] public string Detail { get; set; } /// /// Error code. /// /// Error code. - /// /issuers/12345 - [DataMember(Name = "instance", EmitDefaultValue = false)] + /// /issuers/334790889 + [DataMember(Name = "instance", EmitDefaultValue = true)] public string Instance { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/FederalEfileStatus.cs b/src/Avalara.SDK/Model/A1099/V2/FederalEfileStatus.cs new file mode 100644 index 0000000..dcaf40e --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/FederalEfileStatus.cs @@ -0,0 +1,154 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of federal e-filing. ONLY USED ON RESPONSES. + /// + [DataContract(Name = "federalEfileStatus")] + public partial class FederalEfileStatus : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Accepted for value: accepted + /// + [EnumMember(Value = "accepted")] + Accepted = 4, + + /// + /// Enum CorrectedScheduled for value: correctedScheduled + /// + [EnumMember(Value = "correctedScheduled")] + CorrectedScheduled = 5, + + /// + /// Enum CorrectedSent for value: correctedSent + /// + [EnumMember(Value = "correctedSent")] + CorrectedSent = 6, + + /// + /// Enum CorrectedAccepted for value: correctedAccepted + /// + [EnumMember(Value = "correctedAccepted")] + CorrectedAccepted = 7 + } + + + /// + /// Gets or Sets Status + /// + /// accepted + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public FederalEfileStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FederalEfileStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModel.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModel.cs new file mode 100644 index 0000000..554cfc7 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModel.cs @@ -0,0 +1,561 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Resource data model for Form 1099-NEC, capturing details about issuer, recipient, and filing statuses. + /// + [DataContract(Name = "Form1099BaseModel")] + public partial class Form1099BaseModel : IValidatableObject + { + /// + /// Defines Type + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Form1099nec for value: form1099nec + /// + [EnumMember(Value = "form1099nec")] + Form1099nec = 1, + + /// + /// Enum Form1099misc for value: form1099misc + /// + [EnumMember(Value = "form1099misc")] + Form1099misc = 2 + } + + + /// + /// Gets or Sets Type + /// + /// form1099nec + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + + /// + /// Returns false as Type should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeType() + { + return false; + } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Form1099BaseModel() { } + /// + /// Initializes a new instance of the class. + /// + /// The ID of the issuer. (required). + /// Unique reference ID of the issuer. + /// The Taxpayer Identification Number of the issuer.. + /// The tax year for the form in the format CCYY. + /// When upserting, this declares whether or not to federal e-file this form.. + /// federalEfileStatus. + /// When upserting, this declares whether or not to postal mail this form to the recipient.. + /// postalMailStatus. + /// When upserting, this declares whether or not to state e-file this form.. + /// The status of state e-filing. ONLY USED ON RESPONSES.. + /// When upserting this declares whether or not to TIN match this form.. + /// tinMatchStatus. + /// When upserting, this declares whether or not to perform address verification for this form.. + /// addressVerificationStatus. + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. (required). + /// Legal name of the recipient (required). + /// The type of federal ID provided by the recipient.. + /// The federal ID number of the recipient. (required). + /// The second name of the recipient, if applicable.. + /// The street address of the recipient.. + /// The second line of the street address, if applicable.. + /// The city of the recipient.. + /// The state of the recipient. (required). + /// The ZIP code of the recipient. (required). + /// The foreign province, if applicable.. + /// The country code of the recipient. (required). + /// The email address of the recipient.. + /// The account number associated with the form.. + /// The office code associated with the form.. + public Form1099BaseModel(string issuerId = default(string), string issuerReferenceId = default(string), string issuerTin = default(string), int taxYear = default(int), bool federalEfile = default(bool), Form1099BaseModelFederalEfileStatus federalEfileStatus = default(Form1099BaseModelFederalEfileStatus), bool postalMail = default(bool), Form1099BaseModelPostalMailStatus postalMailStatus = default(Form1099BaseModelPostalMailStatus), bool stateEfile = default(bool), List stateEfileStatuses = default(List), bool tinMatch = default(bool), TinMatchStatus tinMatchStatus = default(TinMatchStatus), bool addressVerification = default(bool), AddressVerificationStatus addressVerificationStatus = default(AddressVerificationStatus), string referenceId = default(string), string recipientName = default(string), string federalIdType = default(string), string recipientFederalIdNo = default(string), string recipientSecondName = default(string), string streetAddress = default(string), string streetAddressLine2 = default(string), string city = default(string), string state = default(string), string zip = default(string), string foreignProvince = default(string), string countryCode = default(string), string recipientEmail = default(string), string acctNo = default(string), string officeCode = default(string)) + { + // to ensure "issuerId" is required (not null) + if (issuerId == null) + { + throw new ArgumentNullException("issuerId is a required property for Form1099BaseModel and cannot be null"); + } + this.IssuerId = issuerId; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for Form1099BaseModel and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "recipientName" is required (not null) + if (recipientName == null) + { + throw new ArgumentNullException("recipientName is a required property for Form1099BaseModel and cannot be null"); + } + this.RecipientName = recipientName; + // to ensure "recipientFederalIdNo" is required (not null) + if (recipientFederalIdNo == null) + { + throw new ArgumentNullException("recipientFederalIdNo is a required property for Form1099BaseModel and cannot be null"); + } + this.RecipientFederalIdNo = recipientFederalIdNo; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for Form1099BaseModel and cannot be null"); + } + this.State = state; + // to ensure "zip" is required (not null) + if (zip == null) + { + throw new ArgumentNullException("zip is a required property for Form1099BaseModel and cannot be null"); + } + this.Zip = zip; + // to ensure "countryCode" is required (not null) + if (countryCode == null) + { + throw new ArgumentNullException("countryCode is a required property for Form1099BaseModel and cannot be null"); + } + this.CountryCode = countryCode; + this.IssuerReferenceId = issuerReferenceId; + this.IssuerTin = issuerTin; + this.TaxYear = taxYear; + this.FederalEfile = federalEfile; + this.FederalEfileStatus = federalEfileStatus; + this.PostalMail = postalMail; + this.PostalMailStatus = postalMailStatus; + this.StateEfile = stateEfile; + this.StateEfileStatuses = stateEfileStatuses; + this.TinMatch = tinMatch; + this.TinMatchStatus = tinMatchStatus; + this.AddressVerification = addressVerification; + this.AddressVerificationStatus = addressVerificationStatus; + this.FederalIdType = federalIdType; + this.RecipientSecondName = recipientSecondName; + this.StreetAddress = streetAddress; + this.StreetAddressLine2 = streetAddressLine2; + this.City = city; + this.ForeignProvince = foreignProvince; + this.RecipientEmail = recipientEmail; + this.AcctNo = acctNo; + this.OfficeCode = officeCode; + } + + /// + /// The ID of the issuer. + /// + /// The ID of the issuer. + [DataMember(Name = "issuerId", IsRequired = true, EmitDefaultValue = true)] + public string IssuerId { get; set; } + + /// + /// Unique reference ID of the issuer + /// + /// Unique reference ID of the issuer + /// C-935801 + [DataMember(Name = "issuerReferenceId", EmitDefaultValue = true)] + public string IssuerReferenceId { get; set; } + + /// + /// The Taxpayer Identification Number of the issuer. + /// + /// The Taxpayer Identification Number of the issuer. + /// 27-4598011 + [DataMember(Name = "issuerTin", EmitDefaultValue = false)] + public string IssuerTin { get; set; } + + /// + /// The tax year for the form in the format CCYY + /// + /// The tax year for the form in the format CCYY + /// 2024 + [DataMember(Name = "taxYear", EmitDefaultValue = false)] + public int TaxYear { get; set; } + + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// true + [DataMember(Name = "federalEfile", EmitDefaultValue = true)] + public bool FederalEfile { get; set; } + + /// + /// Gets or Sets FederalEfileStatus + /// + [DataMember(Name = "federalEfileStatus", EmitDefaultValue = true)] + public Form1099BaseModelFederalEfileStatus FederalEfileStatus { get; set; } + + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// true + [DataMember(Name = "postalMail", EmitDefaultValue = true)] + public bool PostalMail { get; set; } + + /// + /// Gets or Sets PostalMailStatus + /// + [DataMember(Name = "postalMailStatus", EmitDefaultValue = true)] + public Form1099BaseModelPostalMailStatus PostalMailStatus { get; set; } + + /// + /// When upserting, this declares whether or not to state e-file this form. + /// + /// When upserting, this declares whether or not to state e-file this form. + /// true + [DataMember(Name = "stateEfile", EmitDefaultValue = true)] + public bool StateEfile { get; set; } + + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + [DataMember(Name = "stateEfileStatuses", EmitDefaultValue = false)] + public List StateEfileStatuses { get; set; } + + /// + /// When upserting this declares whether or not to TIN match this form. + /// + /// When upserting this declares whether or not to TIN match this form. + /// true + [DataMember(Name = "tinMatch", EmitDefaultValue = true)] + public bool TinMatch { get; set; } + + /// + /// Gets or Sets TinMatchStatus + /// + [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] + public TinMatchStatus TinMatchStatus { get; set; } + + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// true + [DataMember(Name = "addressVerification", EmitDefaultValue = true)] + public bool AddressVerification { get; set; } + + /// + /// Gets or Sets AddressVerificationStatus + /// + [DataMember(Name = "addressVerificationStatus", EmitDefaultValue = true)] + public AddressVerificationStatus AddressVerificationStatus { get; set; } + + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + [DataMember(Name = "referenceId", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// Legal name of the recipient + /// + /// Legal name of the recipient + /// Jane Smith + [DataMember(Name = "recipientName", IsRequired = true, EmitDefaultValue = true)] + public string RecipientName { get; set; } + + /// + /// The type of federal ID provided by the recipient. + /// + /// The type of federal ID provided by the recipient. + /// SSN + [DataMember(Name = "federalIdType", EmitDefaultValue = false)] + public string FederalIdType { get; set; } + + /// + /// The federal ID number of the recipient. + /// + /// The federal ID number of the recipient. + /// 555-55-2222 + [DataMember(Name = "recipientFederalIdNo", IsRequired = true, EmitDefaultValue = true)] + public string RecipientFederalIdNo { get; set; } + + /// + /// The second name of the recipient, if applicable. + /// + /// The second name of the recipient, if applicable. + /// Rainy Days Legal + [DataMember(Name = "recipientSecondName", EmitDefaultValue = true)] + public string RecipientSecondName { get; set; } + + /// + /// The street address of the recipient. + /// + /// The street address of the recipient. + /// 79 Madison Avenue + [DataMember(Name = "streetAddress", EmitDefaultValue = false)] + public string StreetAddress { get; set; } + + /// + /// The second line of the street address, if applicable. + /// + /// The second line of the street address, if applicable. + /// Suite 47 + [DataMember(Name = "streetAddressLine2", EmitDefaultValue = true)] + public string StreetAddressLine2 { get; set; } + + /// + /// The city of the recipient. + /// + /// The city of the recipient. + /// New York + [DataMember(Name = "city", EmitDefaultValue = false)] + public string City { get; set; } + + /// + /// The state of the recipient. + /// + /// The state of the recipient. + /// NY + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// The ZIP code of the recipient. + /// + /// The ZIP code of the recipient. + /// 10016 + [DataMember(Name = "zip", IsRequired = true, EmitDefaultValue = true)] + public string Zip { get; set; } + + /// + /// The foreign province, if applicable. + /// + /// The foreign province, if applicable. + [DataMember(Name = "foreignProvince", EmitDefaultValue = true)] + public string ForeignProvince { get; set; } + + /// + /// The country code of the recipient. + /// + /// The country code of the recipient. + /// US + [DataMember(Name = "countryCode", IsRequired = true, EmitDefaultValue = true)] + public string CountryCode { get; set; } + + /// + /// The email address of the recipient. + /// + /// The email address of the recipient. + /// corey.green@example.com + [DataMember(Name = "recipientEmail", EmitDefaultValue = false)] + public string RecipientEmail { get; set; } + + /// + /// The account number associated with the form. + /// + /// The account number associated with the form. + [DataMember(Name = "acctNo", EmitDefaultValue = true)] + public string AcctNo { get; set; } + + /// + /// The office code associated with the form. + /// + /// The office code associated with the form. + [DataMember(Name = "officeCode", EmitDefaultValue = true)] + public string OfficeCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Form1099BaseModel {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" IssuerId: ").Append(IssuerId).Append("\n"); + sb.Append(" IssuerReferenceId: ").Append(IssuerReferenceId).Append("\n"); + sb.Append(" IssuerTin: ").Append(IssuerTin).Append("\n"); + sb.Append(" TaxYear: ").Append(TaxYear).Append("\n"); + sb.Append(" FederalEfile: ").Append(FederalEfile).Append("\n"); + sb.Append(" FederalEfileStatus: ").Append(FederalEfileStatus).Append("\n"); + sb.Append(" PostalMail: ").Append(PostalMail).Append("\n"); + sb.Append(" PostalMailStatus: ").Append(PostalMailStatus).Append("\n"); + sb.Append(" StateEfile: ").Append(StateEfile).Append("\n"); + sb.Append(" StateEfileStatuses: ").Append(StateEfileStatuses).Append("\n"); + sb.Append(" TinMatch: ").Append(TinMatch).Append("\n"); + sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" AddressVerification: ").Append(AddressVerification).Append("\n"); + sb.Append(" AddressVerificationStatus: ").Append(AddressVerificationStatus).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" RecipientName: ").Append(RecipientName).Append("\n"); + sb.Append(" FederalIdType: ").Append(FederalIdType).Append("\n"); + sb.Append(" RecipientFederalIdNo: ").Append(RecipientFederalIdNo).Append("\n"); + sb.Append(" RecipientSecondName: ").Append(RecipientSecondName).Append("\n"); + sb.Append(" StreetAddress: ").Append(StreetAddress).Append("\n"); + sb.Append(" StreetAddressLine2: ").Append(StreetAddressLine2).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Zip: ").Append(Zip).Append("\n"); + sb.Append(" ForeignProvince: ").Append(ForeignProvince).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" RecipientEmail: ").Append(RecipientEmail).Append("\n"); + sb.Append(" AcctNo: ").Append(AcctNo).Append("\n"); + sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // IssuerReferenceId (string) maxLength + if (this.IssuerReferenceId != null && this.IssuerReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for IssuerReferenceId, length must be less than 50.", new [] { "IssuerReferenceId" }); + } + + if (this.IssuerReferenceId != null) { + // IssuerReferenceId (string) pattern + Regex regexIssuerReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexIssuerReferenceId.Match(this.IssuerReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerReferenceId, must match a pattern of " + regexIssuerReferenceId, new [] { "IssuerReferenceId" }); + } + } + + if (this.IssuerTin != null) { + // IssuerTin (string) pattern + Regex regexIssuerTin = new Regex(@"[\s-]*([0-9][\s-]*){9}", RegexOptions.CultureInvariant); + if (!regexIssuerTin.Match(this.IssuerTin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerTin, must match a pattern of " + regexIssuerTin, new [] { "IssuerTin" }); + } + } + + // ReferenceId (string) maxLength + if (this.ReferenceId != null && this.ReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for ReferenceId, length must be less than 50.", new [] { "ReferenceId" }); + } + + if (this.ReferenceId != null) { + // ReferenceId (string) pattern + Regex regexReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexReferenceId.Match(this.ReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, must match a pattern of " + regexReferenceId, new [] { "ReferenceId" }); + } + } + + // RecipientName (string) maxLength + if (this.RecipientName != null && this.RecipientName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be less than 40.", new [] { "RecipientName" }); + } + + // RecipientName (string) minLength + if (this.RecipientName != null && this.RecipientName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be greater than 1.", new [] { "RecipientName" }); + } + + // RecipientSecondName (string) maxLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be less than 40.", new [] { "RecipientSecondName" }); + } + + // RecipientSecondName (string) minLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be greater than 1.", new [] { "RecipientSecondName" }); + } + + // StreetAddress (string) maxLength + if (this.StreetAddress != null && this.StreetAddress.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be less than 60.", new [] { "StreetAddress" }); + } + + // StreetAddress (string) minLength + if (this.StreetAddress != null && this.StreetAddress.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be greater than 1.", new [] { "StreetAddress" }); + } + + // StreetAddressLine2 (string) maxLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be less than 60.", new [] { "StreetAddressLine2" }); + } + + // StreetAddressLine2 (string) minLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be greater than 1.", new [] { "StreetAddressLine2" }); + } + + if (this.RecipientEmail != null) { + // RecipientEmail (string) pattern + Regex regexRecipientEmail = new Regex(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z]{2,3}){1,2}", RegexOptions.CultureInvariant); + if (!regexRecipientEmail.Match(this.RecipientEmail).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RecipientEmail, must match a pattern of " + regexRecipientEmail, new [] { "RecipientEmail" }); + } + } + + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelFederalEfileStatus.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelFederalEfileStatus.cs new file mode 100644 index 0000000..43bc1ad --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelFederalEfileStatus.cs @@ -0,0 +1,154 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of federal e-filing. + /// + [DataContract(Name = "Form1099BaseModel_federalEfileStatus")] + public partial class Form1099BaseModelFederalEfileStatus : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Accepted for value: accepted + /// + [EnumMember(Value = "accepted")] + Accepted = 4, + + /// + /// Enum CorrectedScheduled for value: correctedScheduled + /// + [EnumMember(Value = "correctedScheduled")] + CorrectedScheduled = 5, + + /// + /// Enum CorrectedSent for value: correctedSent + /// + [EnumMember(Value = "correctedSent")] + CorrectedSent = 6, + + /// + /// Enum CorrectedAccepted for value: correctedAccepted + /// + [EnumMember(Value = "correctedAccepted")] + CorrectedAccepted = 7 + } + + + /// + /// Gets or Sets Status + /// + /// accepted + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public Form1099BaseModelFederalEfileStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Form1099BaseModelFederalEfileStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelPostalMailStatus.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelPostalMailStatus.cs new file mode 100644 index 0000000..9779216 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099BaseModelPostalMailStatus.cs @@ -0,0 +1,136 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of postal mail delivery. + /// + [DataContract(Name = "Form1099BaseModel_postalMailStatus")] + public partial class Form1099BaseModelPostalMailStatus : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Delivered for value: delivered + /// + [EnumMember(Value = "delivered")] + Delivered = 4 + } + + + /// + /// Gets or Sets Status + /// + /// delivered + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public Form1099BaseModelPostalMailStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-22T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Form1099BaseModelPostalMailStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099MiscModel.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099MiscModel.cs new file mode 100644 index 0000000..69a819c --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099MiscModel.cs @@ -0,0 +1,705 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Resource data model for Form 1099-MISC, capturing details about various income types and withholding. + /// + [DataContract(Name = "Form1099MiscModel")] + public partial class Form1099MiscModel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Form1099MiscModel() { } + /// + /// Initializes a new instance of the class. + /// + /// type. + /// Amount of rents.. + /// Amount of royalties.. + /// Amount of other income.. + /// Amount of federal income tax withheld.. + /// Proceeds from fishing boats.. + /// Amount of medical and healthcare payments.. + /// Indicates whether the payment is for resale purposes.. + /// Amount of substitute payments.. + /// Crop insurance proceeds.. + /// Gross proceeds paid to an attorney.. + /// Amount of fish purchased for resale.. + /// Section 409A deferrals.. + /// FATCA filing requirement indicator.. + /// Excess golden parachute payments.. + /// Nonqualified deferred compensation.. + /// stateWithholding. + /// The ID of the issuer. (required). + /// Unique reference ID of the issuer. + /// The Taxpayer Identification Number of the issuer.. + /// The tax year for the form in the format CCYY. + /// When upserting, this declares whether or not to federal e-file this form.. + /// federalEfileStatus. + /// When upserting, this declares whether or not to postal mail this form to the recipient.. + /// postalMailStatus. + /// When upserting, this declares whether or not to state e-file this form.. + /// The status of state e-filing. ONLY USED ON RESPONSES.. + /// When upserting this declares whether or not to TIN match this form.. + /// tinMatchStatus. + /// When upserting, this declares whether or not to perform address verification for this form.. + /// addressVerificationStatus. + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. (required). + /// Legal name of the recipient (required). + /// The type of federal ID provided by the recipient.. + /// The federal ID number of the recipient. (required). + /// The second name of the recipient, if applicable.. + /// The street address of the recipient.. + /// The second line of the street address, if applicable.. + /// The city of the recipient.. + /// The state of the recipient. (required). + /// The ZIP code of the recipient. (required). + /// The foreign province, if applicable.. + /// The country code of the recipient. (required). + /// The email address of the recipient.. + /// The account number associated with the form.. + /// The office code associated with the form.. + public Form1099MiscModel(Object type = default(Object), double rents = default(double), double royalties = default(double), double otherIncome = default(double), double fedIncomeTaxWithheld = default(double), double fishingBoatProceeds = default(double), double medicalAndHealthCare = default(double), string forResale = default(string), double substitutePayments = default(double), double cropInsuranceProceeds = default(double), double grossProceedsPaidToAnAttorney = default(double), double fishPurchasedForResale = default(double), double? section409aDeferrals = default(double?), string fatcaFilingReqt = default(string), double excessGoldenParachutePayments = default(double), double? nonqualifiedDeferredCompensation = default(double?), StateWithholding stateWithholding = default(StateWithholding), string issuerId = default(string), string issuerReferenceId = default(string), string issuerTin = default(string), int taxYear = default(int), bool federalEfile = default(bool), Form1099BaseModelFederalEfileStatus federalEfileStatus = default(Form1099BaseModelFederalEfileStatus), bool postalMail = default(bool), Form1099BaseModelPostalMailStatus postalMailStatus = default(Form1099BaseModelPostalMailStatus), bool stateEfile = default(bool), List stateEfileStatuses = default(List), bool tinMatch = default(bool), TinMatchStatus tinMatchStatus = default(TinMatchStatus), bool addressVerification = default(bool), AddressVerificationStatus addressVerificationStatus = default(AddressVerificationStatus), string referenceId = default(string), string recipientName = default(string), string federalIdType = default(string), string recipientFederalIdNo = default(string), string recipientSecondName = default(string), string streetAddress = default(string), string streetAddressLine2 = default(string), string city = default(string), string state = default(string), string zip = default(string), string foreignProvince = default(string), string countryCode = default(string), string recipientEmail = default(string), string acctNo = default(string), string officeCode = default(string)) + { + // to ensure "issuerId" is required (not null) + if (issuerId == null) + { + throw new ArgumentNullException("issuerId is a required property for Form1099MiscModel and cannot be null"); + } + this.IssuerId = issuerId; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for Form1099MiscModel and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "recipientName" is required (not null) + if (recipientName == null) + { + throw new ArgumentNullException("recipientName is a required property for Form1099MiscModel and cannot be null"); + } + this.RecipientName = recipientName; + // to ensure "recipientFederalIdNo" is required (not null) + if (recipientFederalIdNo == null) + { + throw new ArgumentNullException("recipientFederalIdNo is a required property for Form1099MiscModel and cannot be null"); + } + this.RecipientFederalIdNo = recipientFederalIdNo; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for Form1099MiscModel and cannot be null"); + } + this.State = state; + // to ensure "zip" is required (not null) + if (zip == null) + { + throw new ArgumentNullException("zip is a required property for Form1099MiscModel and cannot be null"); + } + this.Zip = zip; + // to ensure "countryCode" is required (not null) + if (countryCode == null) + { + throw new ArgumentNullException("countryCode is a required property for Form1099MiscModel and cannot be null"); + } + this.CountryCode = countryCode; + this.Type = type; + this.Rents = rents; + this.Royalties = royalties; + this.OtherIncome = otherIncome; + this.FedIncomeTaxWithheld = fedIncomeTaxWithheld; + this.FishingBoatProceeds = fishingBoatProceeds; + this.MedicalAndHealthCare = medicalAndHealthCare; + this.ForResale = forResale; + this.SubstitutePayments = substitutePayments; + this.CropInsuranceProceeds = cropInsuranceProceeds; + this.GrossProceedsPaidToAnAttorney = grossProceedsPaidToAnAttorney; + this.FishPurchasedForResale = fishPurchasedForResale; + this.Section409aDeferrals = section409aDeferrals; + this.FatcaFilingReqt = fatcaFilingReqt; + this.ExcessGoldenParachutePayments = excessGoldenParachutePayments; + this.NonqualifiedDeferredCompensation = nonqualifiedDeferredCompensation; + this.StateWithholding = stateWithholding; + this.IssuerReferenceId = issuerReferenceId; + this.IssuerTin = issuerTin; + this.TaxYear = taxYear; + this.FederalEfile = federalEfile; + this.FederalEfileStatus = federalEfileStatus; + this.PostalMail = postalMail; + this.PostalMailStatus = postalMailStatus; + this.StateEfile = stateEfile; + this.StateEfileStatuses = stateEfileStatuses; + this.TinMatch = tinMatch; + this.TinMatchStatus = tinMatchStatus; + this.AddressVerification = addressVerification; + this.AddressVerificationStatus = addressVerificationStatus; + this.FederalIdType = federalIdType; + this.RecipientSecondName = recipientSecondName; + this.StreetAddress = streetAddress; + this.StreetAddressLine2 = streetAddressLine2; + this.City = city; + this.ForeignProvince = foreignProvince; + this.RecipientEmail = recipientEmail; + this.AcctNo = acctNo; + this.OfficeCode = officeCode; + } + + /// + /// Gets or Sets Type + /// + /// form1099misc + [DataMember(Name = "type", EmitDefaultValue = true)] + public Object Type { get; set; } + + /// + /// Amount of rents. + /// + /// Amount of rents. + /// 0.0 + [DataMember(Name = "rents", EmitDefaultValue = false)] + public double Rents { get; set; } + + /// + /// Amount of royalties. + /// + /// Amount of royalties. + /// 0.0 + [DataMember(Name = "royalties", EmitDefaultValue = false)] + public double Royalties { get; set; } + + /// + /// Amount of other income. + /// + /// Amount of other income. + /// 0.0 + [DataMember(Name = "otherIncome", EmitDefaultValue = false)] + public double OtherIncome { get; set; } + + /// + /// Amount of federal income tax withheld. + /// + /// Amount of federal income tax withheld. + /// 0.0 + [DataMember(Name = "fedIncomeTaxWithheld", EmitDefaultValue = false)] + public double FedIncomeTaxWithheld { get; set; } + + /// + /// Proceeds from fishing boats. + /// + /// Proceeds from fishing boats. + /// 0.0 + [DataMember(Name = "fishingBoatProceeds", EmitDefaultValue = false)] + public double FishingBoatProceeds { get; set; } + + /// + /// Amount of medical and healthcare payments. + /// + /// Amount of medical and healthcare payments. + /// 0.0 + [DataMember(Name = "medicalAndHealthCare", EmitDefaultValue = false)] + public double MedicalAndHealthCare { get; set; } + + /// + /// Indicates whether the payment is for resale purposes. + /// + /// Indicates whether the payment is for resale purposes. + [DataMember(Name = "forResale", EmitDefaultValue = false)] + public string ForResale { get; set; } + + /// + /// Amount of substitute payments. + /// + /// Amount of substitute payments. + /// 0.0 + [DataMember(Name = "substitutePayments", EmitDefaultValue = false)] + public double SubstitutePayments { get; set; } + + /// + /// Crop insurance proceeds. + /// + /// Crop insurance proceeds. + /// 0.0 + [DataMember(Name = "cropInsuranceProceeds", EmitDefaultValue = false)] + public double CropInsuranceProceeds { get; set; } + + /// + /// Gross proceeds paid to an attorney. + /// + /// Gross proceeds paid to an attorney. + /// 1400.0 + [DataMember(Name = "grossProceedsPaidToAnAttorney", EmitDefaultValue = false)] + public double GrossProceedsPaidToAnAttorney { get; set; } + + /// + /// Amount of fish purchased for resale. + /// + /// Amount of fish purchased for resale. + /// 0.0 + [DataMember(Name = "fishPurchasedForResale", EmitDefaultValue = false)] + public double FishPurchasedForResale { get; set; } + + /// + /// Section 409A deferrals. + /// + /// Section 409A deferrals. + [DataMember(Name = "section409aDeferrals", EmitDefaultValue = true)] + public double? Section409aDeferrals { get; set; } + + /// + /// FATCA filing requirement indicator. + /// + /// FATCA filing requirement indicator. + [DataMember(Name = "fatcaFilingReqt", EmitDefaultValue = false)] + public string FatcaFilingReqt { get; set; } + + /// + /// Excess golden parachute payments. + /// + /// Excess golden parachute payments. + /// 0.0 + [DataMember(Name = "excessGoldenParachutePayments", EmitDefaultValue = false)] + public double ExcessGoldenParachutePayments { get; set; } + + /// + /// Nonqualified deferred compensation. + /// + /// Nonqualified deferred compensation. + [DataMember(Name = "nonqualifiedDeferredCompensation", EmitDefaultValue = true)] + public double? NonqualifiedDeferredCompensation { get; set; } + + /// + /// Gets or Sets StateWithholding + /// + [DataMember(Name = "stateWithholding", EmitDefaultValue = false)] + public StateWithholding StateWithholding { get; set; } + + /// + /// The ID of the issuer. + /// + /// The ID of the issuer. + [DataMember(Name = "issuerId", IsRequired = true, EmitDefaultValue = true)] + public string IssuerId { get; set; } + + /// + /// Unique reference ID of the issuer + /// + /// Unique reference ID of the issuer + /// C-935801 + [DataMember(Name = "issuerReferenceId", EmitDefaultValue = true)] + public string IssuerReferenceId { get; set; } + + /// + /// The Taxpayer Identification Number of the issuer. + /// + /// The Taxpayer Identification Number of the issuer. + /// 27-4598011 + [DataMember(Name = "issuerTin", EmitDefaultValue = false)] + public string IssuerTin { get; set; } + + /// + /// The tax year for the form in the format CCYY + /// + /// The tax year for the form in the format CCYY + /// 2024 + [DataMember(Name = "taxYear", EmitDefaultValue = false)] + public int TaxYear { get; set; } + + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// true + [DataMember(Name = "federalEfile", EmitDefaultValue = true)] + public bool FederalEfile { get; set; } + + /// + /// Gets or Sets FederalEfileStatus + /// + [DataMember(Name = "federalEfileStatus", EmitDefaultValue = true)] + public Form1099BaseModelFederalEfileStatus FederalEfileStatus { get; set; } + + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// true + [DataMember(Name = "postalMail", EmitDefaultValue = true)] + public bool PostalMail { get; set; } + + /// + /// Gets or Sets PostalMailStatus + /// + [DataMember(Name = "postalMailStatus", EmitDefaultValue = true)] + public Form1099BaseModelPostalMailStatus PostalMailStatus { get; set; } + + /// + /// When upserting, this declares whether or not to state e-file this form. + /// + /// When upserting, this declares whether or not to state e-file this form. + /// true + [DataMember(Name = "stateEfile", EmitDefaultValue = true)] + public bool StateEfile { get; set; } + + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + [DataMember(Name = "stateEfileStatuses", EmitDefaultValue = false)] + public List StateEfileStatuses { get; set; } + + /// + /// When upserting this declares whether or not to TIN match this form. + /// + /// When upserting this declares whether or not to TIN match this form. + /// true + [DataMember(Name = "tinMatch", EmitDefaultValue = true)] + public bool TinMatch { get; set; } + + /// + /// Gets or Sets TinMatchStatus + /// + [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] + public TinMatchStatus TinMatchStatus { get; set; } + + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// true + [DataMember(Name = "addressVerification", EmitDefaultValue = true)] + public bool AddressVerification { get; set; } + + /// + /// Gets or Sets AddressVerificationStatus + /// + [DataMember(Name = "addressVerificationStatus", EmitDefaultValue = true)] + public AddressVerificationStatus AddressVerificationStatus { get; set; } + + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + [DataMember(Name = "referenceId", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// Legal name of the recipient + /// + /// Legal name of the recipient + /// Jane Smith + [DataMember(Name = "recipientName", IsRequired = true, EmitDefaultValue = true)] + public string RecipientName { get; set; } + + /// + /// The type of federal ID provided by the recipient. + /// + /// The type of federal ID provided by the recipient. + /// SSN + [DataMember(Name = "federalIdType", EmitDefaultValue = false)] + public string FederalIdType { get; set; } + + /// + /// The federal ID number of the recipient. + /// + /// The federal ID number of the recipient. + /// 555-55-2222 + [DataMember(Name = "recipientFederalIdNo", IsRequired = true, EmitDefaultValue = true)] + public string RecipientFederalIdNo { get; set; } + + /// + /// The second name of the recipient, if applicable. + /// + /// The second name of the recipient, if applicable. + /// Rainy Days Legal + [DataMember(Name = "recipientSecondName", EmitDefaultValue = true)] + public string RecipientSecondName { get; set; } + + /// + /// The street address of the recipient. + /// + /// The street address of the recipient. + /// 79 Madison Avenue + [DataMember(Name = "streetAddress", EmitDefaultValue = false)] + public string StreetAddress { get; set; } + + /// + /// The second line of the street address, if applicable. + /// + /// The second line of the street address, if applicable. + /// Suite 47 + [DataMember(Name = "streetAddressLine2", EmitDefaultValue = true)] + public string StreetAddressLine2 { get; set; } + + /// + /// The city of the recipient. + /// + /// The city of the recipient. + /// New York + [DataMember(Name = "city", EmitDefaultValue = false)] + public string City { get; set; } + + /// + /// The state of the recipient. + /// + /// The state of the recipient. + /// NY + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// The ZIP code of the recipient. + /// + /// The ZIP code of the recipient. + /// 10016 + [DataMember(Name = "zip", IsRequired = true, EmitDefaultValue = true)] + public string Zip { get; set; } + + /// + /// The foreign province, if applicable. + /// + /// The foreign province, if applicable. + [DataMember(Name = "foreignProvince", EmitDefaultValue = true)] + public string ForeignProvince { get; set; } + + /// + /// The country code of the recipient. + /// + /// The country code of the recipient. + /// US + [DataMember(Name = "countryCode", IsRequired = true, EmitDefaultValue = true)] + public string CountryCode { get; set; } + + /// + /// The email address of the recipient. + /// + /// The email address of the recipient. + /// corey.green@example.com + [DataMember(Name = "recipientEmail", EmitDefaultValue = false)] + public string RecipientEmail { get; set; } + + /// + /// The account number associated with the form. + /// + /// The account number associated with the form. + [DataMember(Name = "acctNo", EmitDefaultValue = true)] + public string AcctNo { get; set; } + + /// + /// The office code associated with the form. + /// + /// The office code associated with the form. + [DataMember(Name = "officeCode", EmitDefaultValue = true)] + public string OfficeCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Form1099MiscModel {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Rents: ").Append(Rents).Append("\n"); + sb.Append(" Royalties: ").Append(Royalties).Append("\n"); + sb.Append(" OtherIncome: ").Append(OtherIncome).Append("\n"); + sb.Append(" FedIncomeTaxWithheld: ").Append(FedIncomeTaxWithheld).Append("\n"); + sb.Append(" FishingBoatProceeds: ").Append(FishingBoatProceeds).Append("\n"); + sb.Append(" MedicalAndHealthCare: ").Append(MedicalAndHealthCare).Append("\n"); + sb.Append(" ForResale: ").Append(ForResale).Append("\n"); + sb.Append(" SubstitutePayments: ").Append(SubstitutePayments).Append("\n"); + sb.Append(" CropInsuranceProceeds: ").Append(CropInsuranceProceeds).Append("\n"); + sb.Append(" GrossProceedsPaidToAnAttorney: ").Append(GrossProceedsPaidToAnAttorney).Append("\n"); + sb.Append(" FishPurchasedForResale: ").Append(FishPurchasedForResale).Append("\n"); + sb.Append(" Section409aDeferrals: ").Append(Section409aDeferrals).Append("\n"); + sb.Append(" FatcaFilingReqt: ").Append(FatcaFilingReqt).Append("\n"); + sb.Append(" ExcessGoldenParachutePayments: ").Append(ExcessGoldenParachutePayments).Append("\n"); + sb.Append(" NonqualifiedDeferredCompensation: ").Append(NonqualifiedDeferredCompensation).Append("\n"); + sb.Append(" StateWithholding: ").Append(StateWithholding).Append("\n"); + sb.Append(" IssuerId: ").Append(IssuerId).Append("\n"); + sb.Append(" IssuerReferenceId: ").Append(IssuerReferenceId).Append("\n"); + sb.Append(" IssuerTin: ").Append(IssuerTin).Append("\n"); + sb.Append(" TaxYear: ").Append(TaxYear).Append("\n"); + sb.Append(" FederalEfile: ").Append(FederalEfile).Append("\n"); + sb.Append(" FederalEfileStatus: ").Append(FederalEfileStatus).Append("\n"); + sb.Append(" PostalMail: ").Append(PostalMail).Append("\n"); + sb.Append(" PostalMailStatus: ").Append(PostalMailStatus).Append("\n"); + sb.Append(" StateEfile: ").Append(StateEfile).Append("\n"); + sb.Append(" StateEfileStatuses: ").Append(StateEfileStatuses).Append("\n"); + sb.Append(" TinMatch: ").Append(TinMatch).Append("\n"); + sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" AddressVerification: ").Append(AddressVerification).Append("\n"); + sb.Append(" AddressVerificationStatus: ").Append(AddressVerificationStatus).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" RecipientName: ").Append(RecipientName).Append("\n"); + sb.Append(" FederalIdType: ").Append(FederalIdType).Append("\n"); + sb.Append(" RecipientFederalIdNo: ").Append(RecipientFederalIdNo).Append("\n"); + sb.Append(" RecipientSecondName: ").Append(RecipientSecondName).Append("\n"); + sb.Append(" StreetAddress: ").Append(StreetAddress).Append("\n"); + sb.Append(" StreetAddressLine2: ").Append(StreetAddressLine2).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Zip: ").Append(Zip).Append("\n"); + sb.Append(" ForeignProvince: ").Append(ForeignProvince).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" RecipientEmail: ").Append(RecipientEmail).Append("\n"); + sb.Append(" AcctNo: ").Append(AcctNo).Append("\n"); + sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // IssuerReferenceId (string) maxLength + if (this.IssuerReferenceId != null && this.IssuerReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for IssuerReferenceId, length must be less than 50.", new [] { "IssuerReferenceId" }); + } + + if (this.IssuerReferenceId != null) { + // IssuerReferenceId (string) pattern + Regex regexIssuerReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexIssuerReferenceId.Match(this.IssuerReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerReferenceId, must match a pattern of " + regexIssuerReferenceId, new [] { "IssuerReferenceId" }); + } + } + + if (this.IssuerTin != null) { + // IssuerTin (string) pattern + Regex regexIssuerTin = new Regex(@"[\s-]*([0-9][\s-]*){9}", RegexOptions.CultureInvariant); + if (!regexIssuerTin.Match(this.IssuerTin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerTin, must match a pattern of " + regexIssuerTin, new [] { "IssuerTin" }); + } + } + + // ReferenceId (string) maxLength + if (this.ReferenceId != null && this.ReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for ReferenceId, length must be less than 50.", new [] { "ReferenceId" }); + } + + if (this.ReferenceId != null) { + // ReferenceId (string) pattern + Regex regexReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexReferenceId.Match(this.ReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, must match a pattern of " + regexReferenceId, new [] { "ReferenceId" }); + } + } + + // RecipientName (string) maxLength + if (this.RecipientName != null && this.RecipientName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be less than 40.", new [] { "RecipientName" }); + } + + // RecipientName (string) minLength + if (this.RecipientName != null && this.RecipientName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be greater than 1.", new [] { "RecipientName" }); + } + + // RecipientSecondName (string) maxLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be less than 40.", new [] { "RecipientSecondName" }); + } + + // RecipientSecondName (string) minLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be greater than 1.", new [] { "RecipientSecondName" }); + } + + // StreetAddress (string) maxLength + if (this.StreetAddress != null && this.StreetAddress.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be less than 60.", new [] { "StreetAddress" }); + } + + // StreetAddress (string) minLength + if (this.StreetAddress != null && this.StreetAddress.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be greater than 1.", new [] { "StreetAddress" }); + } + + // StreetAddressLine2 (string) maxLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be less than 60.", new [] { "StreetAddressLine2" }); + } + + // StreetAddressLine2 (string) minLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be greater than 1.", new [] { "StreetAddressLine2" }); + } + + if (this.RecipientEmail != null) { + // RecipientEmail (string) pattern + Regex regexRecipientEmail = new Regex(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z]{2,3}){1,2}", RegexOptions.CultureInvariant); + if (!regexRecipientEmail.Match(this.RecipientEmail).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RecipientEmail, must match a pattern of " + regexRecipientEmail, new [] { "RecipientEmail" }); + } + } + + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099NecModel.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099NecModel.cs new file mode 100644 index 0000000..f4478a5 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099NecModel.cs @@ -0,0 +1,576 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Form 1099-NEC for non-employee compensation. + /// + [DataContract(Name = "Form1099NecModel")] + public partial class Form1099NecModel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Form1099NecModel() { } + /// + /// Initializes a new instance of the class. + /// + /// type. + /// The non-employee compensation reported in box 1.. + /// Indicates if the amount was for resale purposes.. + /// The amount of federal income tax withheld, if any.. + /// stateWithholding. + /// The ID of the issuer. (required). + /// Unique reference ID of the issuer. + /// The Taxpayer Identification Number of the issuer.. + /// The tax year for the form in the format CCYY. + /// When upserting, this declares whether or not to federal e-file this form.. + /// federalEfileStatus. + /// When upserting, this declares whether or not to postal mail this form to the recipient.. + /// postalMailStatus. + /// When upserting, this declares whether or not to state e-file this form.. + /// The status of state e-filing. ONLY USED ON RESPONSES.. + /// When upserting this declares whether or not to TIN match this form.. + /// tinMatchStatus. + /// When upserting, this declares whether or not to perform address verification for this form.. + /// addressVerificationStatus. + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. (required). + /// Legal name of the recipient (required). + /// The type of federal ID provided by the recipient.. + /// The federal ID number of the recipient. (required). + /// The second name of the recipient, if applicable.. + /// The street address of the recipient.. + /// The second line of the street address, if applicable.. + /// The city of the recipient.. + /// The state of the recipient. (required). + /// The ZIP code of the recipient. (required). + /// The foreign province, if applicable.. + /// The country code of the recipient. (required). + /// The email address of the recipient.. + /// The account number associated with the form.. + /// The office code associated with the form.. + public Form1099NecModel(Object type = default(Object), double nonemployeeCompensation = default(double), bool forResale = default(bool), double? federalIncomeTaxWithheld = default(double?), StateWithholding stateWithholding = default(StateWithholding), string issuerId = default(string), string issuerReferenceId = default(string), string issuerTin = default(string), int taxYear = default(int), bool federalEfile = default(bool), Form1099BaseModelFederalEfileStatus federalEfileStatus = default(Form1099BaseModelFederalEfileStatus), bool postalMail = default(bool), Form1099BaseModelPostalMailStatus postalMailStatus = default(Form1099BaseModelPostalMailStatus), bool stateEfile = default(bool), List stateEfileStatuses = default(List), bool tinMatch = default(bool), TinMatchStatus tinMatchStatus = default(TinMatchStatus), bool addressVerification = default(bool), AddressVerificationStatus addressVerificationStatus = default(AddressVerificationStatus), string referenceId = default(string), string recipientName = default(string), string federalIdType = default(string), string recipientFederalIdNo = default(string), string recipientSecondName = default(string), string streetAddress = default(string), string streetAddressLine2 = default(string), string city = default(string), string state = default(string), string zip = default(string), string foreignProvince = default(string), string countryCode = default(string), string recipientEmail = default(string), string acctNo = default(string), string officeCode = default(string)) + { + // to ensure "issuerId" is required (not null) + if (issuerId == null) + { + throw new ArgumentNullException("issuerId is a required property for Form1099NecModel and cannot be null"); + } + this.IssuerId = issuerId; + // to ensure "referenceId" is required (not null) + if (referenceId == null) + { + throw new ArgumentNullException("referenceId is a required property for Form1099NecModel and cannot be null"); + } + this.ReferenceId = referenceId; + // to ensure "recipientName" is required (not null) + if (recipientName == null) + { + throw new ArgumentNullException("recipientName is a required property for Form1099NecModel and cannot be null"); + } + this.RecipientName = recipientName; + // to ensure "recipientFederalIdNo" is required (not null) + if (recipientFederalIdNo == null) + { + throw new ArgumentNullException("recipientFederalIdNo is a required property for Form1099NecModel and cannot be null"); + } + this.RecipientFederalIdNo = recipientFederalIdNo; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for Form1099NecModel and cannot be null"); + } + this.State = state; + // to ensure "zip" is required (not null) + if (zip == null) + { + throw new ArgumentNullException("zip is a required property for Form1099NecModel and cannot be null"); + } + this.Zip = zip; + // to ensure "countryCode" is required (not null) + if (countryCode == null) + { + throw new ArgumentNullException("countryCode is a required property for Form1099NecModel and cannot be null"); + } + this.CountryCode = countryCode; + this.Type = type; + this.NonemployeeCompensation = nonemployeeCompensation; + this.ForResale = forResale; + this.FederalIncomeTaxWithheld = federalIncomeTaxWithheld; + this.StateWithholding = stateWithholding; + this.IssuerReferenceId = issuerReferenceId; + this.IssuerTin = issuerTin; + this.TaxYear = taxYear; + this.FederalEfile = federalEfile; + this.FederalEfileStatus = federalEfileStatus; + this.PostalMail = postalMail; + this.PostalMailStatus = postalMailStatus; + this.StateEfile = stateEfile; + this.StateEfileStatuses = stateEfileStatuses; + this.TinMatch = tinMatch; + this.TinMatchStatus = tinMatchStatus; + this.AddressVerification = addressVerification; + this.AddressVerificationStatus = addressVerificationStatus; + this.FederalIdType = federalIdType; + this.RecipientSecondName = recipientSecondName; + this.StreetAddress = streetAddress; + this.StreetAddressLine2 = streetAddressLine2; + this.City = city; + this.ForeignProvince = foreignProvince; + this.RecipientEmail = recipientEmail; + this.AcctNo = acctNo; + this.OfficeCode = officeCode; + } + + /// + /// Gets or Sets Type + /// + /// form1099nec + [DataMember(Name = "type", EmitDefaultValue = true)] + public Object Type { get; set; } + + /// + /// The non-employee compensation reported in box 1. + /// + /// The non-employee compensation reported in box 1. + /// 2733.85 + [DataMember(Name = "nonemployeeCompensation", EmitDefaultValue = false)] + public double NonemployeeCompensation { get; set; } + + /// + /// Indicates if the amount was for resale purposes. + /// + /// Indicates if the amount was for resale purposes. + /// false + [DataMember(Name = "forResale", EmitDefaultValue = true)] + public bool ForResale { get; set; } + + /// + /// The amount of federal income tax withheld, if any. + /// + /// The amount of federal income tax withheld, if any. + [DataMember(Name = "federalIncomeTaxWithheld", EmitDefaultValue = true)] + public double? FederalIncomeTaxWithheld { get; set; } + + /// + /// Gets or Sets StateWithholding + /// + [DataMember(Name = "stateWithholding", EmitDefaultValue = false)] + public StateWithholding StateWithholding { get; set; } + + /// + /// The ID of the issuer. + /// + /// The ID of the issuer. + [DataMember(Name = "issuerId", IsRequired = true, EmitDefaultValue = true)] + public string IssuerId { get; set; } + + /// + /// Unique reference ID of the issuer + /// + /// Unique reference ID of the issuer + /// C-935801 + [DataMember(Name = "issuerReferenceId", EmitDefaultValue = true)] + public string IssuerReferenceId { get; set; } + + /// + /// The Taxpayer Identification Number of the issuer. + /// + /// The Taxpayer Identification Number of the issuer. + /// 27-4598011 + [DataMember(Name = "issuerTin", EmitDefaultValue = false)] + public string IssuerTin { get; set; } + + /// + /// The tax year for the form in the format CCYY + /// + /// The tax year for the form in the format CCYY + /// 2024 + [DataMember(Name = "taxYear", EmitDefaultValue = false)] + public int TaxYear { get; set; } + + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// + /// When upserting, this declares whether or not to federal e-file this form. + /// true + [DataMember(Name = "federalEfile", EmitDefaultValue = true)] + public bool FederalEfile { get; set; } + + /// + /// Gets or Sets FederalEfileStatus + /// + [DataMember(Name = "federalEfileStatus", EmitDefaultValue = true)] + public Form1099BaseModelFederalEfileStatus FederalEfileStatus { get; set; } + + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// + /// When upserting, this declares whether or not to postal mail this form to the recipient. + /// true + [DataMember(Name = "postalMail", EmitDefaultValue = true)] + public bool PostalMail { get; set; } + + /// + /// Gets or Sets PostalMailStatus + /// + [DataMember(Name = "postalMailStatus", EmitDefaultValue = true)] + public Form1099BaseModelPostalMailStatus PostalMailStatus { get; set; } + + /// + /// When upserting, this declares whether or not to state e-file this form. + /// + /// When upserting, this declares whether or not to state e-file this form. + /// true + [DataMember(Name = "stateEfile", EmitDefaultValue = true)] + public bool StateEfile { get; set; } + + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + /// + /// The status of state e-filing. ONLY USED ON RESPONSES. + [DataMember(Name = "stateEfileStatuses", EmitDefaultValue = false)] + public List StateEfileStatuses { get; set; } + + /// + /// When upserting this declares whether or not to TIN match this form. + /// + /// When upserting this declares whether or not to TIN match this form. + /// true + [DataMember(Name = "tinMatch", EmitDefaultValue = true)] + public bool TinMatch { get; set; } + + /// + /// Gets or Sets TinMatchStatus + /// + [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] + public TinMatchStatus TinMatchStatus { get; set; } + + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// + /// When upserting, this declares whether or not to perform address verification for this form. + /// true + [DataMember(Name = "addressVerification", EmitDefaultValue = true)] + public bool AddressVerification { get; set; } + + /// + /// Gets or Sets AddressVerificationStatus + /// + [DataMember(Name = "addressVerificationStatus", EmitDefaultValue = true)] + public AddressVerificationStatus AddressVerificationStatus { get; set; } + + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + [DataMember(Name = "referenceId", IsRequired = true, EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// Legal name of the recipient + /// + /// Legal name of the recipient + /// Jane Smith + [DataMember(Name = "recipientName", IsRequired = true, EmitDefaultValue = true)] + public string RecipientName { get; set; } + + /// + /// The type of federal ID provided by the recipient. + /// + /// The type of federal ID provided by the recipient. + /// SSN + [DataMember(Name = "federalIdType", EmitDefaultValue = false)] + public string FederalIdType { get; set; } + + /// + /// The federal ID number of the recipient. + /// + /// The federal ID number of the recipient. + /// 555-55-2222 + [DataMember(Name = "recipientFederalIdNo", IsRequired = true, EmitDefaultValue = true)] + public string RecipientFederalIdNo { get; set; } + + /// + /// The second name of the recipient, if applicable. + /// + /// The second name of the recipient, if applicable. + /// Rainy Days Legal + [DataMember(Name = "recipientSecondName", EmitDefaultValue = true)] + public string RecipientSecondName { get; set; } + + /// + /// The street address of the recipient. + /// + /// The street address of the recipient. + /// 79 Madison Avenue + [DataMember(Name = "streetAddress", EmitDefaultValue = false)] + public string StreetAddress { get; set; } + + /// + /// The second line of the street address, if applicable. + /// + /// The second line of the street address, if applicable. + /// Suite 47 + [DataMember(Name = "streetAddressLine2", EmitDefaultValue = true)] + public string StreetAddressLine2 { get; set; } + + /// + /// The city of the recipient. + /// + /// The city of the recipient. + /// New York + [DataMember(Name = "city", EmitDefaultValue = false)] + public string City { get; set; } + + /// + /// The state of the recipient. + /// + /// The state of the recipient. + /// NY + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// The ZIP code of the recipient. + /// + /// The ZIP code of the recipient. + /// 10016 + [DataMember(Name = "zip", IsRequired = true, EmitDefaultValue = true)] + public string Zip { get; set; } + + /// + /// The foreign province, if applicable. + /// + /// The foreign province, if applicable. + [DataMember(Name = "foreignProvince", EmitDefaultValue = true)] + public string ForeignProvince { get; set; } + + /// + /// The country code of the recipient. + /// + /// The country code of the recipient. + /// US + [DataMember(Name = "countryCode", IsRequired = true, EmitDefaultValue = true)] + public string CountryCode { get; set; } + + /// + /// The email address of the recipient. + /// + /// The email address of the recipient. + /// corey.green@example.com + [DataMember(Name = "recipientEmail", EmitDefaultValue = false)] + public string RecipientEmail { get; set; } + + /// + /// The account number associated with the form. + /// + /// The account number associated with the form. + [DataMember(Name = "acctNo", EmitDefaultValue = true)] + public string AcctNo { get; set; } + + /// + /// The office code associated with the form. + /// + /// The office code associated with the form. + [DataMember(Name = "officeCode", EmitDefaultValue = true)] + public string OfficeCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Form1099NecModel {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" NonemployeeCompensation: ").Append(NonemployeeCompensation).Append("\n"); + sb.Append(" ForResale: ").Append(ForResale).Append("\n"); + sb.Append(" FederalIncomeTaxWithheld: ").Append(FederalIncomeTaxWithheld).Append("\n"); + sb.Append(" StateWithholding: ").Append(StateWithholding).Append("\n"); + sb.Append(" IssuerId: ").Append(IssuerId).Append("\n"); + sb.Append(" IssuerReferenceId: ").Append(IssuerReferenceId).Append("\n"); + sb.Append(" IssuerTin: ").Append(IssuerTin).Append("\n"); + sb.Append(" TaxYear: ").Append(TaxYear).Append("\n"); + sb.Append(" FederalEfile: ").Append(FederalEfile).Append("\n"); + sb.Append(" FederalEfileStatus: ").Append(FederalEfileStatus).Append("\n"); + sb.Append(" PostalMail: ").Append(PostalMail).Append("\n"); + sb.Append(" PostalMailStatus: ").Append(PostalMailStatus).Append("\n"); + sb.Append(" StateEfile: ").Append(StateEfile).Append("\n"); + sb.Append(" StateEfileStatuses: ").Append(StateEfileStatuses).Append("\n"); + sb.Append(" TinMatch: ").Append(TinMatch).Append("\n"); + sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" AddressVerification: ").Append(AddressVerification).Append("\n"); + sb.Append(" AddressVerificationStatus: ").Append(AddressVerificationStatus).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" RecipientName: ").Append(RecipientName).Append("\n"); + sb.Append(" FederalIdType: ").Append(FederalIdType).Append("\n"); + sb.Append(" RecipientFederalIdNo: ").Append(RecipientFederalIdNo).Append("\n"); + sb.Append(" RecipientSecondName: ").Append(RecipientSecondName).Append("\n"); + sb.Append(" StreetAddress: ").Append(StreetAddress).Append("\n"); + sb.Append(" StreetAddressLine2: ").Append(StreetAddressLine2).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Zip: ").Append(Zip).Append("\n"); + sb.Append(" ForeignProvince: ").Append(ForeignProvince).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" RecipientEmail: ").Append(RecipientEmail).Append("\n"); + sb.Append(" AcctNo: ").Append(AcctNo).Append("\n"); + sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // IssuerReferenceId (string) maxLength + if (this.IssuerReferenceId != null && this.IssuerReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for IssuerReferenceId, length must be less than 50.", new [] { "IssuerReferenceId" }); + } + + if (this.IssuerReferenceId != null) { + // IssuerReferenceId (string) pattern + Regex regexIssuerReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexIssuerReferenceId.Match(this.IssuerReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerReferenceId, must match a pattern of " + regexIssuerReferenceId, new [] { "IssuerReferenceId" }); + } + } + + if (this.IssuerTin != null) { + // IssuerTin (string) pattern + Regex regexIssuerTin = new Regex(@"[\s-]*([0-9][\s-]*){9}", RegexOptions.CultureInvariant); + if (!regexIssuerTin.Match(this.IssuerTin).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerTin, must match a pattern of " + regexIssuerTin, new [] { "IssuerTin" }); + } + } + + // ReferenceId (string) maxLength + if (this.ReferenceId != null && this.ReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for ReferenceId, length must be less than 50.", new [] { "ReferenceId" }); + } + + if (this.ReferenceId != null) { + // ReferenceId (string) pattern + Regex regexReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexReferenceId.Match(this.ReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, must match a pattern of " + regexReferenceId, new [] { "ReferenceId" }); + } + } + + // RecipientName (string) maxLength + if (this.RecipientName != null && this.RecipientName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be less than 40.", new [] { "RecipientName" }); + } + + // RecipientName (string) minLength + if (this.RecipientName != null && this.RecipientName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be greater than 1.", new [] { "RecipientName" }); + } + + // RecipientSecondName (string) maxLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be less than 40.", new [] { "RecipientSecondName" }); + } + + // RecipientSecondName (string) minLength + if (this.RecipientSecondName != null && this.RecipientSecondName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientSecondName, length must be greater than 1.", new [] { "RecipientSecondName" }); + } + + // StreetAddress (string) maxLength + if (this.StreetAddress != null && this.StreetAddress.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be less than 60.", new [] { "StreetAddress" }); + } + + // StreetAddress (string) minLength + if (this.StreetAddress != null && this.StreetAddress.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddress, length must be greater than 1.", new [] { "StreetAddress" }); + } + + // StreetAddressLine2 (string) maxLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length > 60) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be less than 60.", new [] { "StreetAddressLine2" }); + } + + // StreetAddressLine2 (string) minLength + if (this.StreetAddressLine2 != null && this.StreetAddressLine2.Length < 1) + { + yield return new ValidationResult("Invalid value for StreetAddressLine2, length must be greater than 1.", new [] { "StreetAddressLine2" }); + } + + if (this.RecipientEmail != null) { + // RecipientEmail (string) pattern + Regex regexRecipientEmail = new Regex(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z]{2,3}){1,2}", RegexOptions.CultureInvariant); + if (!regexRecipientEmail.Match(this.RecipientEmail).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RecipientEmail, must match a pattern of " + regexRecipientEmail, new [] { "RecipientEmail" }); + } + } + + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/Form1099OneOf.cs b/src/Avalara.SDK/Model/A1099/V2/Form1099OneOf.cs new file mode 100644 index 0000000..d95a102 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/Form1099OneOf.cs @@ -0,0 +1,273 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Avalara.SDK.Model.A1099.V2 +{ + /// + /// 1099 form + /// + [JsonConverter(typeof(Form1099OneOfJsonConverter))] + [DataContract(Name = "Form1099OneOf")] + public partial class Form1099OneOf : AbstractOpenAPISchema, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Form1099NecModel. + public Form1099OneOf(Form1099NecModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of Form1099MiscModel. + public Form1099OneOf(Form1099MiscModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(Form1099MiscModel) || value is Form1099MiscModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(Form1099NecModel) || value is Form1099NecModel) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: Form1099MiscModel, Form1099NecModel"); + } + } + } + + /// + /// Get the actual instance of `Form1099NecModel`. If the actual instance is not `Form1099NecModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of Form1099NecModel + public Form1099NecModel GetForm1099NecModel() + { + return (Form1099NecModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `Form1099MiscModel`. If the actual instance is not `Form1099MiscModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of Form1099MiscModel + public Form1099MiscModel GetForm1099MiscModel() + { + return (Form1099MiscModel)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Form1099OneOf {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, Form1099OneOf.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of Form1099OneOf + /// + /// JSON string + /// An instance of Form1099OneOf + public static Form1099OneOf FromJson(string jsonString) + { + Form1099OneOf newForm1099OneOf = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newForm1099OneOf; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Form1099MiscModel).GetProperty("AdditionalProperties") == null) + { + newForm1099OneOf = new Form1099OneOf(JsonConvert.DeserializeObject(jsonString, Form1099OneOf.SerializerSettings)); + } + else + { + newForm1099OneOf = new Form1099OneOf(JsonConvert.DeserializeObject(jsonString, Form1099OneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Form1099MiscModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099MiscModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(Form1099NecModel).GetProperty("AdditionalProperties") == null) + { + newForm1099OneOf = new Form1099OneOf(JsonConvert.DeserializeObject(jsonString, Form1099OneOf.SerializerSettings)); + } + else + { + newForm1099OneOf = new Form1099OneOf(JsonConvert.DeserializeObject(jsonString, Form1099OneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("Form1099NecModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into Form1099NecModel: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newForm1099OneOf; + } + + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for Form1099OneOf + /// + public class Form1099OneOfJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(Form1099OneOf).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return Form1099OneOf.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return Form1099OneOf.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Avalara.SDK/Model/A1099/V2/FormRequestModel.cs b/src/Avalara.SDK/Model/A1099/V2/FormRequestModel.cs index 4168e91..0d1f82d 100644 --- a/src/Avalara.SDK/Model/A1099/V2/FormRequestModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/FormRequestModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -127,7 +127,7 @@ public enum TinMatchStatusEnum /// Result of IRS TIN match query for name and TIN in the last signed form, null if signed_at is null. /// Timestamp when this FormRequest will expire, ttl (or 3600) seconds from creation. /// URL of PDF representation of just-signed form, otherwise null. Integrations may use this value to offer a \"download for your records\" function after a vendor completes and signs a form. Link expires at the same time as this FormRequest. Treat the format of this URL as opaque and expect it to change in the future.. - public FormRequestModel(string id = default(string), TypeEnum? type = default(TypeEnum?), FormTypeEnum? formType = default(FormTypeEnum?), int companyId = default(int), string companyName = default(string), string companyEmail = default(string), string referenceId = default(string), DateTime signedAt = default(DateTime), TinMatchStatusEnum? tinMatchStatus = default(TinMatchStatusEnum?), DateTime expiresAt = default(DateTime), string signedPdf = default(string)) + public FormRequestModel(string id = default(string), TypeEnum? type = default(TypeEnum?), FormTypeEnum? formType = default(FormTypeEnum?), string companyId = default(string), string companyName = default(string), string companyEmail = default(string), string referenceId = default(string), DateTime signedAt = default(DateTime), TinMatchStatusEnum? tinMatchStatus = default(TinMatchStatusEnum?), DateTime expiresAt = default(DateTime), string signedPdf = default(string)) { this.Id = id; this.Type = type; @@ -146,7 +146,7 @@ public enum TinMatchStatusEnum /// Gets or Sets Id /// /// d0d09a2f-619e-4e9d-aae4-3311d9e0c67c - [DataMember(Name = "id", EmitDefaultValue = false)] + [DataMember(Name = "id", EmitDefaultValue = true)] public string Id { get; set; } /// @@ -155,14 +155,14 @@ public enum TinMatchStatusEnum /// Track1099's ID of your company, found in the W-9 UI /// 2345678 [DataMember(Name = "companyId", EmitDefaultValue = false)] - public int CompanyId { get; set; } + public string CompanyId { get; set; } /// /// Name of your company, set in the W-9 UI /// /// Name of your company, set in the W-9 UI /// ACME Corp - [DataMember(Name = "companyName", EmitDefaultValue = false)] + [DataMember(Name = "companyName", EmitDefaultValue = true)] public string CompanyName { get; set; } /// @@ -170,7 +170,7 @@ public enum TinMatchStatusEnum /// /// Contact email of your company, set in the W-9 UI /// roadrunner@acmecorp.com - [DataMember(Name = "companyEmail", EmitDefaultValue = false)] + [DataMember(Name = "companyEmail", EmitDefaultValue = true)] public string CompanyEmail { get; set; } /// @@ -178,7 +178,7 @@ public enum TinMatchStatusEnum /// /// Your internal identifier for the vendor from whom you are requesting a form /// SE-02453450 - [DataMember(Name = "referenceId", EmitDefaultValue = false)] + [DataMember(Name = "referenceId", EmitDefaultValue = true)] public string ReferenceId { get; set; } /// @@ -201,7 +201,7 @@ public enum TinMatchStatusEnum /// URL of PDF representation of just-signed form, otherwise null. Integrations may use this value to offer a \"download for your records\" function after a vendor completes and signs a form. Link expires at the same time as this FormRequest. Treat the format of this URL as opaque and expect it to change in the future. /// /// URL of PDF representation of just-signed form, otherwise null. Integrations may use this value to offer a \"download for your records\" function after a vendor completes and signs a form. Link expires at the same time as this FormRequest. Treat the format of this URL as opaque and expect it to change in the future. - [DataMember(Name = "signedPdf", EmitDefaultValue = false)] + [DataMember(Name = "signedPdf", EmitDefaultValue = true)] public string SignedPdf { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/GenericPaginatedModel.cs b/src/Avalara.SDK/Model/A1099/V2/GenericPaginatedModel.cs new file mode 100644 index 0000000..2a24cd6 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/GenericPaginatedModel.cs @@ -0,0 +1,113 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// GenericPaginatedModel + /// + [DataContract(Name = "GenericPaginatedModel")] + public partial class GenericPaginatedModel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// recordsetCount. + /// nextLink. + /// value. + public GenericPaginatedModel(decimal recordsetCount = default(decimal), string nextLink = default(string), List value = default(List)) + { + this.RecordsetCount = recordsetCount; + this.NextLink = nextLink; + this.Value = value; + } + + /// + /// Gets or Sets RecordsetCount + /// + /// 1 + [DataMember(Name = "@recordsetCount", EmitDefaultValue = false)] + public decimal RecordsetCount { get; set; } + + /// + /// Gets or Sets NextLink + /// + /// https://api.avalara.com/track1099/v2/1099/issuers?filter='taxYear eq 2024'&$top=10&$skip=1&$orderBy=name" + [DataMember(Name = "@nextLink", EmitDefaultValue = false)] + public string NextLink { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", EmitDefaultValue = false)] + public List Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GenericPaginatedModel {\n"); + sb.Append(" RecordsetCount: ").Append(RecordsetCount).Append("\n"); + sb.Append(" NextLink: ").Append(NextLink).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/GetW9Form200Response.cs b/src/Avalara.SDK/Model/A1099/V2/GetW9Form200Response.cs new file mode 100644 index 0000000..bea5c21 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/GetW9Form200Response.cs @@ -0,0 +1,410 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Avalara.SDK.Model.A1099.V2 +{ + /// + /// Resource data model for /w9/forms API + /// + [JsonConverter(typeof(GetW9Form200ResponseJsonConverter))] + [DataContract(Name = "GetW9Form_200_response")] + public partial class GetW9Form200Response : AbstractOpenAPISchema, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W4FormDataModel. + public GetW9Form200Response(W4FormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8BeneFormDataModel. + public GetW9Form200Response(W8BeneFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8BenFormDataModel. + public GetW9Form200Response(W8BenFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8ImyFormDataModel. + public GetW9Form200Response(W8ImyFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W9FormDataModel. + public GetW9Form200Response(W9FormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(W4FormDataModel) || value is W4FormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8BenFormDataModel) || value is W8BenFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8BeneFormDataModel) || value is W8BeneFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8ImyFormDataModel) || value is W8ImyFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W9FormDataModel) || value is W9FormDataModel) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: W4FormDataModel, W8BenFormDataModel, W8BeneFormDataModel, W8ImyFormDataModel, W9FormDataModel"); + } + } + } + + /// + /// Get the actual instance of `W4FormDataModel`. If the actual instance is not `W4FormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W4FormDataModel + public W4FormDataModel GetW4FormDataModel() + { + return (W4FormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8BeneFormDataModel`. If the actual instance is not `W8BeneFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8BeneFormDataModel + public W8BeneFormDataModel GetW8BeneFormDataModel() + { + return (W8BeneFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8BenFormDataModel`. If the actual instance is not `W8BenFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8BenFormDataModel + public W8BenFormDataModel GetW8BenFormDataModel() + { + return (W8BenFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8ImyFormDataModel`. If the actual instance is not `W8ImyFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8ImyFormDataModel + public W8ImyFormDataModel GetW8ImyFormDataModel() + { + return (W8ImyFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W9FormDataModel`. If the actual instance is not `W9FormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W9FormDataModel + public W9FormDataModel GetW9FormDataModel() + { + return (W9FormDataModel)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetW9Form200Response {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, GetW9Form200Response.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of GetW9Form200Response + /// + /// JSON string + /// An instance of GetW9Form200Response + public static GetW9Form200Response FromJson(string jsonString) + { + GetW9Form200Response newGetW9Form200Response = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newGetW9Form200Response; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W4FormDataModel).GetProperty("AdditionalProperties") == null) + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.SerializerSettings)); + } + else + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W4FormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W4FormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8BenFormDataModel).GetProperty("AdditionalProperties") == null) + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.SerializerSettings)); + } + else + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8BenFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8BenFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8BeneFormDataModel).GetProperty("AdditionalProperties") == null) + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.SerializerSettings)); + } + else + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8BeneFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8BeneFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8ImyFormDataModel).GetProperty("AdditionalProperties") == null) + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.SerializerSettings)); + } + else + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8ImyFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8ImyFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W9FormDataModel).GetProperty("AdditionalProperties") == null) + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.SerializerSettings)); + } + else + { + newGetW9Form200Response = new GetW9Form200Response(JsonConvert.DeserializeObject(jsonString, GetW9Form200Response.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W9FormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W9FormDataModel: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newGetW9Form200Response; + } + + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for GetW9Form200Response + /// + public class GetW9Form200ResponseJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(GetW9Form200Response).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return GetW9Form200Response.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return GetW9Form200Response.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Avalara.SDK/Model/A1099/V2/HttpValidationProblemDetails.cs b/src/Avalara.SDK/Model/A1099/V2/HttpValidationProblemDetails.cs index 6ec8937..756b72e 100644 --- a/src/Avalara.SDK/Model/A1099/V2/HttpValidationProblemDetails.cs +++ b/src/Avalara.SDK/Model/A1099/V2/HttpValidationProblemDetails.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -66,7 +66,7 @@ public partial class HttpValidationProblemDetails : IValidatableObject /// /// Gets or Sets Errors /// - [DataMember(Name = "errors", EmitDefaultValue = false)] + [DataMember(Name = "errors", EmitDefaultValue = true)] public Dictionary> Errors { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModel.cs b/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModel.cs new file mode 100644 index 0000000..057ef00 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModel.cs @@ -0,0 +1,324 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Resource data model for inititating a download job for 1099 forms. + /// + [DataContract(Name = "InitiateDownloadInputModel")] + public partial class InitiateDownloadInputModel : IValidatableObject + { + /// + /// Defines Type + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Form1099nec for value: form1099nec + /// + [EnumMember(Value = "form1099nec")] + Form1099nec = 1, + + /// + /// Enum Form1099misc for value: form1099misc + /// + [EnumMember(Value = "form1099misc")] + Form1099misc = 2 + } + + + /// + /// Gets or Sets Type + /// + /// form1099nec + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } + + /// + /// Returns false as Type should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeType() + { + return false; + } + /// + /// Defines PostalMailStatus + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PostalMailStatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Delivered for value: delivered + /// + [EnumMember(Value = "delivered")] + Delivered = 4 + } + + + /// + /// Gets or Sets PostalMailStatus + /// + /// delivered + [DataMember(Name = "postalMailStatus", EmitDefaultValue = false)] + public PostalMailStatusEnum? PostalMailStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The ID of the issuer.. + /// A unique reference ID of the issuer. + /// The tax year for the form.. + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces.. + /// federalEfileStatus. + /// postalMailStatus. + /// stateEfileStatus. + /// tinMatchStatus. + /// addressVerificationStatus. + /// Legal name of the recipient. + /// The email address of the recipient.. + /// The federal ID number of the recipient.. + public InitiateDownloadInputModel(string issuerId = default(string), string issuerReferenceId = default(string), int taxYear = default(int), string referenceId = default(string), Form1099BaseModelFederalEfileStatus federalEfileStatus = default(Form1099BaseModelFederalEfileStatus), PostalMailStatusEnum? postalMailStatus = default(PostalMailStatusEnum?), InitiateDownloadInputModelStateEfileStatus stateEfileStatus = default(InitiateDownloadInputModelStateEfileStatus), TinMatchStatus tinMatchStatus = default(TinMatchStatus), AddressVerificationStatus addressVerificationStatus = default(AddressVerificationStatus), string recipientName = default(string), string recipientEmail = default(string), string recipientFederalIdNo = default(string)) + { + this.IssuerId = issuerId; + this.IssuerReferenceId = issuerReferenceId; + this.TaxYear = taxYear; + this.ReferenceId = referenceId; + this.FederalEfileStatus = federalEfileStatus; + this.PostalMailStatus = postalMailStatus; + this.StateEfileStatus = stateEfileStatus; + this.TinMatchStatus = tinMatchStatus; + this.AddressVerificationStatus = addressVerificationStatus; + this.RecipientName = recipientName; + this.RecipientEmail = recipientEmail; + this.RecipientFederalIdNo = recipientFederalIdNo; + } + + /// + /// The ID of the issuer. + /// + /// The ID of the issuer. + [DataMember(Name = "issuerId", EmitDefaultValue = false)] + public string IssuerId { get; set; } + + /// + /// A unique reference ID of the issuer + /// + /// A unique reference ID of the issuer + /// C-935801 + [DataMember(Name = "issuerReferenceId", EmitDefaultValue = false)] + public string IssuerReferenceId { get; set; } + + /// + /// The tax year for the form. + /// + /// The tax year for the form. + /// 2024 + [DataMember(Name = "taxYear", EmitDefaultValue = false)] + public int TaxYear { get; set; } + + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + /// + /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. + /// B-10001 + [DataMember(Name = "referenceId", EmitDefaultValue = true)] + public string ReferenceId { get; set; } + + /// + /// Gets or Sets FederalEfileStatus + /// + [DataMember(Name = "federalEfileStatus", EmitDefaultValue = true)] + public Form1099BaseModelFederalEfileStatus FederalEfileStatus { get; set; } + + /// + /// Gets or Sets StateEfileStatus + /// + [DataMember(Name = "stateEfileStatus", EmitDefaultValue = true)] + public InitiateDownloadInputModelStateEfileStatus StateEfileStatus { get; set; } + + /// + /// Gets or Sets TinMatchStatus + /// + [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] + public TinMatchStatus TinMatchStatus { get; set; } + + /// + /// Gets or Sets AddressVerificationStatus + /// + [DataMember(Name = "addressVerificationStatus", EmitDefaultValue = true)] + public AddressVerificationStatus AddressVerificationStatus { get; set; } + + /// + /// Legal name of the recipient + /// + /// Legal name of the recipient + /// Jane Smith + [DataMember(Name = "recipientName", EmitDefaultValue = false)] + public string RecipientName { get; set; } + + /// + /// The email address of the recipient. + /// + /// The email address of the recipient. + /// corey.green@example.com + [DataMember(Name = "recipientEmail", EmitDefaultValue = false)] + public string RecipientEmail { get; set; } + + /// + /// The federal ID number of the recipient. + /// + /// The federal ID number of the recipient. + /// 555-55-2222 + [DataMember(Name = "recipientFederalIdNo", EmitDefaultValue = false)] + public string RecipientFederalIdNo { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InitiateDownloadInputModel {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" IssuerId: ").Append(IssuerId).Append("\n"); + sb.Append(" IssuerReferenceId: ").Append(IssuerReferenceId).Append("\n"); + sb.Append(" TaxYear: ").Append(TaxYear).Append("\n"); + sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); + sb.Append(" FederalEfileStatus: ").Append(FederalEfileStatus).Append("\n"); + sb.Append(" PostalMailStatus: ").Append(PostalMailStatus).Append("\n"); + sb.Append(" StateEfileStatus: ").Append(StateEfileStatus).Append("\n"); + sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" AddressVerificationStatus: ").Append(AddressVerificationStatus).Append("\n"); + sb.Append(" RecipientName: ").Append(RecipientName).Append("\n"); + sb.Append(" RecipientEmail: ").Append(RecipientEmail).Append("\n"); + sb.Append(" RecipientFederalIdNo: ").Append(RecipientFederalIdNo).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // IssuerReferenceId (string) maxLength + if (this.IssuerReferenceId != null && this.IssuerReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for IssuerReferenceId, length must be less than 50.", new [] { "IssuerReferenceId" }); + } + + if (this.IssuerReferenceId != null) { + // IssuerReferenceId (string) pattern + Regex regexIssuerReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexIssuerReferenceId.Match(this.IssuerReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for IssuerReferenceId, must match a pattern of " + regexIssuerReferenceId, new [] { "IssuerReferenceId" }); + } + } + + // ReferenceId (string) maxLength + if (this.ReferenceId != null && this.ReferenceId.Length > 50) + { + yield return new ValidationResult("Invalid value for ReferenceId, length must be less than 50.", new [] { "ReferenceId" }); + } + + if (this.ReferenceId != null) { + // ReferenceId (string) pattern + Regex regexReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); + if (!regexReferenceId.Match(this.ReferenceId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, must match a pattern of " + regexReferenceId, new [] { "ReferenceId" }); + } + } + + // RecipientName (string) maxLength + if (this.RecipientName != null && this.RecipientName.Length > 40) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be less than 40.", new [] { "RecipientName" }); + } + + // RecipientName (string) minLength + if (this.RecipientName != null && this.RecipientName.Length < 1) + { + yield return new ValidationResult("Invalid value for RecipientName, length must be greater than 1.", new [] { "RecipientName" }); + } + + if (this.RecipientEmail != null) { + // RecipientEmail (string) pattern + Regex regexRecipientEmail = new Regex(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+(\.[a-zA-Z]{2,3}){1,2}", RegexOptions.CultureInvariant); + if (!regexRecipientEmail.Match(this.RecipientEmail).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RecipientEmail, must match a pattern of " + regexRecipientEmail, new [] { "RecipientEmail" }); + } + } + + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModelStateEfileStatus.cs b/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModelStateEfileStatus.cs new file mode 100644 index 0000000..379d944 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/InitiateDownloadInputModelStateEfileStatus.cs @@ -0,0 +1,105 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of state e-filing. + /// + [DataContract(Name = "InitiateDownloadInputModel_stateEfileStatus")] + public partial class InitiateDownloadInputModelStateEfileStatus : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public InitiateDownloadInputModelStateEfileStatus(DateTime date = default(DateTime), string status = default(string)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Gets or Sets Status + /// + /// Filed + [DataMember(Name = "status", EmitDefaultValue = false)] + public string Status { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InitiateDownloadInputModelStateEfileStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/InititateDownloadOutputModel.cs b/src/Avalara.SDK/Model/A1099/V2/InititateDownloadOutputModel.cs new file mode 100644 index 0000000..3a22d08 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/InititateDownloadOutputModel.cs @@ -0,0 +1,104 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// InititateDownloadOutputModel + /// + [DataContract(Name = "InititateDownloadOutputModel")] + public partial class InititateDownloadOutputModel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// jobId. + /// jobType. + public InititateDownloadOutputModel(string jobId = default(string), string jobType = default(string)) + { + this.JobId = jobId; + this.JobType = jobType; + } + + /// + /// Gets or Sets JobId + /// + /// 1234567 + [DataMember(Name = "jobId", EmitDefaultValue = false)] + public string JobId { get; set; } + + /// + /// Gets or Sets JobType + /// + /// BulkDownload + [DataMember(Name = "jobType", EmitDefaultValue = false)] + public string JobType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class InititateDownloadOutputModel {\n"); + sb.Append(" JobId: ").Append(JobId).Append("\n"); + sb.Append(" JobType: ").Append(JobType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/IssuerModel.cs b/src/Avalara.SDK/Model/A1099/V2/IssuerModel.cs index 025bbb7..0029852 100644 --- a/src/Avalara.SDK/Model/A1099/V2/IssuerModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/IssuerModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -57,15 +57,14 @@ protected IssuerModel() { } /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces.. /// Telephone number (required). /// Tax year (required). - /// If there is a transfer agent, use the shipping address of the transfer agent.. + /// If there is a transfer agent, use the shipping address of the transfer agent.. /// Email address. /// Shipping address (required). /// City (required). /// State. /// Zip code (required). /// Foreign province. - /// transferAgentName. - public IssuerModel(string name = default(string), string nameDba = default(string), string tin = default(string), string referenceId = default(string), string telephone = default(string), int taxYear = default(int), string countryCode = default(string), string email = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string foreignProvince = default(string), string transferAgentName = default(string)) + public IssuerModel(string name = default(string), string nameDba = default(string), string tin = default(string), string referenceId = default(string), string telephone = default(string), int taxYear = default(int), string shippingCountryCode = default(string), string email = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string foreignProvince = default(string)) { // to ensure "name" is required (not null) if (name == null) @@ -101,11 +100,10 @@ protected IssuerModel() { } this.NameDba = nameDba; this.Tin = tin; this.ReferenceId = referenceId; - this.CountryCode = countryCode; + this.ShippingCountryCode = shippingCountryCode; this.Email = email; this.State = state; this.ForeignProvince = foreignProvince; - this.TransferAgentName = transferAgentName; } /// @@ -120,7 +118,7 @@ protected IssuerModel() { } /// Optional DBA name or continuation of a long legal name /// /// Optional DBA name or continuation of a long legal name - [DataMember(Name = "nameDba", EmitDefaultValue = false)] + [DataMember(Name = "nameDba", EmitDefaultValue = true)] public string NameDba { get; set; } /// @@ -128,14 +126,14 @@ protected IssuerModel() { } /// /// Tax identification number /// 23-8234555 - [DataMember(Name = "tin", EmitDefaultValue = false)] + [DataMember(Name = "tin", EmitDefaultValue = true)] public string Tin { get; set; } /// /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. /// /// Optional identifier for your reference, never shown to any agency or recipient. We will also prefix download filenames with this value, if present. Can only include letters, numbers, dashes, underscores and spaces. - [DataMember(Name = "referenceId", EmitDefaultValue = false)] + [DataMember(Name = "referenceId", EmitDefaultValue = true)] public string ReferenceId { get; set; } /// @@ -150,7 +148,7 @@ protected IssuerModel() { } /// Tax year /// /// Tax year - /// 2024 + /// 2023 [DataMember(Name = "taxYear", IsRequired = true, EmitDefaultValue = true)] public int TaxYear { get; set; } @@ -159,15 +157,15 @@ protected IssuerModel() { } /// /// If there is a transfer agent, use the shipping address of the transfer agent. /// US - [DataMember(Name = "countryCode", EmitDefaultValue = false)] - public string CountryCode { get; set; } + [DataMember(Name = "shippingCountryCode", EmitDefaultValue = true)] + public string ShippingCountryCode { get; set; } /// /// Email address /// /// Email address /// roadrunner@acmecorp.com - [DataMember(Name = "email", EmitDefaultValue = false)] + [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } /// @@ -190,7 +188,7 @@ protected IssuerModel() { } /// /// State /// AZ - [DataMember(Name = "state", EmitDefaultValue = false)] + [DataMember(Name = "state", EmitDefaultValue = true)] public string State { get; set; } /// @@ -212,7 +210,6 @@ protected IssuerModel() { } /// Unique identifier set when the record is created /// /// Unique identifier set when the record is created - /// 0 [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; private set; } @@ -255,11 +252,20 @@ public bool ShouldSerializeUpdatedAt() return false; } /// - /// Gets or Sets TransferAgentName + /// id or the manager_id of the user to whom this issuer belongs to /// - [DataMember(Name = "transferAgentName", EmitDefaultValue = false)] - public string TransferAgentName { get; set; } + /// id or the manager_id of the user to whom this issuer belongs to + [DataMember(Name = "userId", EmitDefaultValue = false)] + public string UserId { get; private set; } + /// + /// Returns false as UserId should not be serialized given that it's read-only. + /// + /// false (boolean) + public bool ShouldSerializeUserId() + { + return false; + } /// /// Returns the string presentation of the object /// @@ -274,7 +280,7 @@ public override string ToString() sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" Telephone: ").Append(Telephone).Append("\n"); sb.Append(" TaxYear: ").Append(TaxYear).Append("\n"); - sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" ShippingCountryCode: ").Append(ShippingCountryCode).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Address: ").Append(Address).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); @@ -284,7 +290,7 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" TransferAgentName: ").Append(TransferAgentName).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -331,7 +337,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali if (this.ReferenceId != null) { // ReferenceId (string) pattern - Regex regexReferenceId = new Regex(@"^(?is)[a-z\d\-_ ]*$", RegexOptions.CultureInvariant); + Regex regexReferenceId = new Regex(@"[a-z\d\-_ ]*", RegexOptions.CultureInvariant); if (!regexReferenceId.Match(this.ReferenceId).Success) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ReferenceId, must match a pattern of " + regexReferenceId, new [] { "ReferenceId" }); diff --git a/src/Avalara.SDK/Model/A1099/V2/IssuerModelPaginatedQueryResultModel.cs b/src/Avalara.SDK/Model/A1099/V2/IssuerModelPaginatedQueryResultModel.cs new file mode 100644 index 0000000..3050c02 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/IssuerModelPaginatedQueryResultModel.cs @@ -0,0 +1,112 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// Generic paginated model to wrap query response data + /// + [DataContract(Name = "IssuerModelPaginatedQueryResultModel")] + public partial class IssuerModelPaginatedQueryResultModel : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// recordsetCount. + /// value. + /// nextLink. + public IssuerModelPaginatedQueryResultModel(int recordsetCount = default(int), List value = default(List), string nextLink = default(string)) + { + this.RecordsetCount = recordsetCount; + this.Value = value; + this.NextLink = nextLink; + } + + /// + /// Gets or Sets RecordsetCount + /// + [DataMember(Name = "@recordsetCount", EmitDefaultValue = false)] + public int RecordsetCount { get; set; } + + /// + /// Gets or Sets Value + /// + /// [{"name":"Acme Corp","nameDba":"","tin":"23-8234555","referenceId":"","telephone":"520-555-1234","taxYear":2023,"shippingCountryCode":"US","email":"roadrunner@acmecorp.com","address":"1234 Meep Meep Blvd","city":"Tucson","state":"AZ","zip":"85701-0001","foreignProvince":null,"id":0,"createdAt":"0001-01-01T00:00:00","updatedAt":"0001-01-01T00:00:00","userId":0}] + [DataMember(Name = "value", EmitDefaultValue = true)] + public List Value { get; set; } + + /// + /// Gets or Sets NextLink + /// + [DataMember(Name = "@nextLink", EmitDefaultValue = true)] + public string NextLink { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class IssuerModelPaginatedQueryResultModel {\n"); + sb.Append(" RecordsetCount: ").Append(RecordsetCount).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" NextLink: ").Append(NextLink).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/JobModel.cs b/src/Avalara.SDK/Model/A1099/V2/JobModel.cs new file mode 100644 index 0000000..7db8b97 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/JobModel.cs @@ -0,0 +1,136 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// JobModel + /// + [DataContract(Name = "JobModel")] + public partial class JobModel : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum InProgress for value: InProgress + /// + [EnumMember(Value = "InProgress")] + InProgress = 1, + + /// + /// Enum Success for value: Success + /// + [EnumMember(Value = "Success")] + Success = 2, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 3 + } + + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// status. + /// data. + public JobModel(string id = default(string), StatusEnum? status = default(StatusEnum?), JobModelData data = default(JobModelData)) + { + this.Id = id; + this.Status = status; + this.Data = data; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public JobModelData Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class JobModel {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/JobModelData.cs b/src/Avalara.SDK/Model/A1099/V2/JobModelData.cs new file mode 100644 index 0000000..41f20fc --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/JobModelData.cs @@ -0,0 +1,226 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Avalara.SDK.Model.A1099.V2 +{ + /// + /// JobModelData + /// + [JsonConverter(typeof(JobModelDataJsonConverter))] + [DataContract(Name = "JobModel_data")] + public partial class JobModelData : AbstractOpenAPISchema, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of JobModelDataOneOf. + public JobModelData(JobModelDataOneOf actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(JobModelDataOneOf) || value is JobModelDataOneOf) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: JobModelDataOneOf"); + } + } + } + + /// + /// Get the actual instance of `JobModelDataOneOf`. If the actual instance is not `JobModelDataOneOf`, + /// the InvalidClassException will be thrown + /// + /// An instance of JobModelDataOneOf + public JobModelDataOneOf GetJobModelDataOneOf() + { + return (JobModelDataOneOf)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobModelData {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, JobModelData.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of JobModelData + /// + /// JSON string + /// An instance of JobModelData + public static JobModelData FromJson(string jsonString) + { + JobModelData newJobModelData = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newJobModelData; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(JobModelDataOneOf).GetProperty("AdditionalProperties") == null) + { + newJobModelData = new JobModelData(JsonConvert.DeserializeObject(jsonString, JobModelData.SerializerSettings)); + } + else + { + newJobModelData = new JobModelData(JsonConvert.DeserializeObject(jsonString, JobModelData.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("JobModelDataOneOf"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into JobModelDataOneOf: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newJobModelData; + } + + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for JobModelData + /// + public class JobModelDataJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(JobModelData).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return JobModelData.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return JobModelData.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOf.cs b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOf.cs new file mode 100644 index 0000000..72d398b --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOf.cs @@ -0,0 +1,102 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// JobModelDataOneOf + /// + [DataContract(Name = "JobModel_data_oneOf")] + public partial class JobModelDataOneOf : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// upsert. + /// bulkDownload. + public JobModelDataOneOf(JobModelDataOneOfUpsert upsert = default(JobModelDataOneOfUpsert), JobModelDataOneOfBulkDownload bulkDownload = default(JobModelDataOneOfBulkDownload)) + { + this.Upsert = upsert; + this.BulkDownload = bulkDownload; + } + + /// + /// Gets or Sets Upsert + /// + [DataMember(Name = "upsert", EmitDefaultValue = false)] + public JobModelDataOneOfUpsert Upsert { get; set; } + + /// + /// Gets or Sets BulkDownload + /// + [DataMember(Name = "bulkDownload", EmitDefaultValue = false)] + public JobModelDataOneOfBulkDownload BulkDownload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class JobModelDataOneOf {\n"); + sb.Append(" Upsert: ").Append(Upsert).Append("\n"); + sb.Append(" BulkDownload: ").Append(BulkDownload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfBulkDownload.cs b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfBulkDownload.cs new file mode 100644 index 0000000..f066720 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfBulkDownload.cs @@ -0,0 +1,94 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// JobModelDataOneOfBulkDownload + /// + [DataContract(Name = "JobModel_data_oneOf_bulkDownload")] + public partial class JobModelDataOneOfBulkDownload : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// downloadUrl. + public JobModelDataOneOfBulkDownload(string downloadUrl = default(string)) + { + this.DownloadUrl = downloadUrl; + } + + /// + /// Gets or Sets DownloadUrl + /// + /// https://... + [DataMember(Name = "downloadUrl", EmitDefaultValue = false)] + public string DownloadUrl { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class JobModelDataOneOfBulkDownload {\n"); + sb.Append(" DownloadUrl: ").Append(DownloadUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfUpsert.cs b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfUpsert.cs new file mode 100644 index 0000000..c5be8d3 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/JobModelDataOneOfUpsert.cs @@ -0,0 +1,125 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// JobModelDataOneOfUpsert + /// + [DataContract(Name = "JobModel_data_oneOf_upsert")] + public partial class JobModelDataOneOfUpsert : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Current tally of forms successfully imported.. + /// Current tally of forms ready to schedule with IRS and/or State.. + /// Current tally of forms without an email.. + /// Current tally of forms with one or more errors that cannot be scheduled for IRS or State.. + public JobModelDataOneOfUpsert(int importedCount = default(int), int? okCount = default(int?), int? missingEmailCount = default(int?), int? errorCount = default(int?)) + { + this.ImportedCount = importedCount; + this.OkCount = okCount; + this.MissingEmailCount = missingEmailCount; + this.ErrorCount = errorCount; + } + + /// + /// Current tally of forms successfully imported. + /// + /// Current tally of forms successfully imported. + /// 0 + [DataMember(Name = "importedCount", EmitDefaultValue = false)] + public int ImportedCount { get; set; } + + /// + /// Current tally of forms ready to schedule with IRS and/or State. + /// + /// Current tally of forms ready to schedule with IRS and/or State. + [DataMember(Name = "okCount", EmitDefaultValue = true)] + public int? OkCount { get; set; } + + /// + /// Current tally of forms without an email. + /// + /// Current tally of forms without an email. + [DataMember(Name = "missingEmailCount", EmitDefaultValue = true)] + public int? MissingEmailCount { get; set; } + + /// + /// Current tally of forms with one or more errors that cannot be scheduled for IRS or State. + /// + /// Current tally of forms with one or more errors that cannot be scheduled for IRS or State. + [DataMember(Name = "errorCount", EmitDefaultValue = true)] + public int? ErrorCount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class JobModelDataOneOfUpsert {\n"); + sb.Append(" ImportedCount: ").Append(ImportedCount).Append("\n"); + sb.Append(" OkCount: ").Append(OkCount).Append("\n"); + sb.Append(" MissingEmailCount: ").Append(MissingEmailCount).Append("\n"); + sb.Append(" ErrorCount: ").Append(ErrorCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/List1099Forms200Response.cs b/src/Avalara.SDK/Model/A1099/V2/List1099Forms200Response.cs new file mode 100644 index 0000000..a577099 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/List1099Forms200Response.cs @@ -0,0 +1,113 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// List1099Forms200Response + /// + [DataContract(Name = "List1099Forms_200_response")] + public partial class List1099Forms200Response : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// recordsetCount. + /// nextLink. + /// value. + public List1099Forms200Response(decimal recordsetCount = default(decimal), string nextLink = default(string), List value = default(List)) + { + this.RecordsetCount = recordsetCount; + this.NextLink = nextLink; + this.Value = value; + } + + /// + /// Gets or Sets RecordsetCount + /// + /// 1 + [DataMember(Name = "@recordsetCount", EmitDefaultValue = false)] + public decimal RecordsetCount { get; set; } + + /// + /// Gets or Sets NextLink + /// + /// https://api.avalara.com/track1099/v2/1099/issuers?filter='taxYear eq 2024'&$top=10&$skip=1&$orderBy=name" + [DataMember(Name = "@nextLink", EmitDefaultValue = false)] + public string NextLink { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", EmitDefaultValue = false)] + public List Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class List1099Forms200Response {\n"); + sb.Append(" RecordsetCount: ").Append(RecordsetCount).Append("\n"); + sb.Append(" NextLink: ").Append(NextLink).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/PaginatedQueryResultModel.cs b/src/Avalara.SDK/Model/A1099/V2/PaginatedQueryResultModel.cs index 0bd4520..aad96e5 100644 --- a/src/Avalara.SDK/Model/A1099/V2/PaginatedQueryResultModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/PaginatedQueryResultModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -40,7 +40,7 @@ namespace Avalara.SDK.Model.A1099.V2 /// /// Generic paginated model to wrap query response data /// - [DataContract(Name = "PaginatedQueryResultModel_")] + [DataContract(Name = "PaginatedQueryResultModel")] public partial class PaginatedQueryResultModel : IValidatableObject { /// @@ -49,7 +49,7 @@ public partial class PaginatedQueryResultModel : IValidatableObject /// recordsetCount. /// value. /// nextLink. - public PaginatedQueryResultModel(int? recordsetCount = default(int?), List value = default(List), string nextLink = default(string)) + public PaginatedQueryResultModel(int recordsetCount = default(int), List value = default(List), string nextLink = default(string)) { this.RecordsetCount = recordsetCount; this.Value = value; @@ -59,8 +59,8 @@ public partial class PaginatedQueryResultModel : IValidatableObject /// /// Gets or Sets RecordsetCount /// - [DataMember(Name = "@recordsetCount", EmitDefaultValue = true)] - public int? RecordsetCount { get; set; } + [DataMember(Name = "@recordsetCount", EmitDefaultValue = false)] + public int RecordsetCount { get; set; } /// /// Gets or Sets Value diff --git a/src/Avalara.SDK/Model/A1099/V2/PaginatedW9FormsModel.cs b/src/Avalara.SDK/Model/A1099/V2/PaginatedW9FormsModel.cs index 09272eb..21dcd2a 100644 --- a/src/Avalara.SDK/Model/A1099/V2/PaginatedW9FormsModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/PaginatedW9FormsModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -49,7 +49,7 @@ public partial class PaginatedW9FormsModel : IValidatableObject /// recordsetCount. /// value. /// nextLink. - public PaginatedW9FormsModel(int recordsetCount = default(int), List value = default(List), string nextLink = default(string)) + public PaginatedW9FormsModel(int recordsetCount = default(int), List value = default(List), string nextLink = default(string)) { this.RecordsetCount = recordsetCount; this.Value = value; @@ -65,14 +65,14 @@ public partial class PaginatedW9FormsModel : IValidatableObject /// /// Gets or Sets Value /// - /// [{"type":"w4","signedDate":"2022-04-29T00:00:00Z","createdAt":"2022-04-29T10:15:00Z","employeeFirstName":"Jane","employeeMiddleName":"A.","employeeLastName":"Smith","employeeNameSuffix":"Jr.","address":"456 Elm St","city":"Springfield","state":"IL","zip":"62704","typeOfTin":null,"tin":"98-7654321","box3MaritalStatus":"Married","box4LastNameDiffers":false,"box5NumAllowances":3,"otherDependents":1,"nonJobIncome":5000.0,"deductions":2000.0,"box6AdditionalWithheld":150.0,"box7ExemptFromWithholding":false,"officeCode":"OC12345","eDeliveryConsentedAt":"2022-04-29T15:00:00Z","id":0,"entryStatus":null,"updatedAt":"2022-05-01T12:00:00Z","referenceId":"REF56789","companyId":2002,"displayName":"Jane Smith","email":"janesmith@example.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8ben","signedDate":"2023-01-15T00:00:00Z","birthday":null,"foreignTinNotRequired":null,"archived":false,"referenceId":"REF67890","companyId":4004,"displayName":"International Trading","email":"info@internationaltrading.com","typeOfTin":null,"name":"International Trading Co.","residenceAddress":"789 Global St","residenceCity":"Capital City","residenceState":"DC","residencePostalCode":"20001","residenceCountry":"USA","residenceIsMailing":false,"mailingAddress":"P.O. Box 456","mailingCity":"Capital City","mailingState":"DC","mailingPostalCode":"20002","mailingCountry":"USA","tin":"34-5678901","foreignTin":"FTIN56789","referenceNumber":"W8BEN45678","citizenshipCountry":"USA","treatyCountry":"Canada","treatyArticle":"Article 12","withholdingRate":"15%","incomeType":"Dividend","treatyReasons":"Reduced withholding","signerName":"Alice Johnson","signerCapacity":"Authorized Representative","eDeliveryConsentedAt":"2023-01-15T10:00:00Z","createdAt":"2023-01-10T08:00:00Z","updatedAt":"2023-02-05T09:30:00Z","id":0,"entryStatus":null,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8bene","signedDate":"2022-04-29T00:00:00Z","disregardedEntityChapter4FatcaStatus":null,"createdAt":"2022-04-29T10:00:00Z","name":"Global Enterprises LLC","residenceAddress":"123 International Blvd","residenceCity":"Metropolis","residenceState":"NY","residencePostalCode":"10118","residenceCountry":"USA","mailingAddress":"P.O. Box 123","mailingCity":"Metropolis","mailingState":"NY","mailingPostalCode":"10119","mailingCountry":"USA","disregardedAddress":null,"disregardedCity":null,"disregardedState":null,"disregardedPostalCode":null,"disregardedCountry":null,"tin":"12-3456789","typeOfTin":null,"foreignTin":null,"ftinNotRequired":null,"referenceNumber":"W8BENE12345","giin":"GIIN12345678","chapter3EntityType":"Corporation","chapter4FatcaStatus":"Active","disregardedEntity":"Subsidiary LLC","disregardedEntityGiin":"GIIN87654321","benefitLimitation":"Treaty Benefit","part4SponsoringEntity":"Parent Company","part4SponsoringEntityGiin":"GIIN11223344","part7SponsoringEntity":"Affiliated Organization","part12IgaCountry":"USA","part12IgaType":"Model 1","part12FatcaStatusUnderIgaAnnexIi":"Registered Deemed Compliant","part12TrusteeName":"Trustee Inc.","part12TrusteeIsForeign":false,"part12Model2IgaGiin":"GIIN33445566","box37AExchange":"NYSE","box37BExchange":"NASDAQ","box37BEntity":"Trading Partner","part28SponsoringEntity":"Global Trust","part28SponsoringEntityGiin":"GIIN99887766","signerName":"John Doe","eDeliveryConsentedAt":"2022-04-29T15:30:00Z","residenceIsMailing":false,"citizenshipCountry":null,"makingTreatyClaim":false,"treatyCountry":null,"treatyArticle":null,"withholdingRate":null,"incomeType":null,"treatyReasons":null,"certifyBox14A":false,"certifyBox14B":false,"certifyBox14C":false,"certifyBox17_1":false,"certifyBox17_2":false,"certifyBox18":false,"certifyBox19":false,"certifyBox21":false,"certifyBox22":false,"certifyBox23":false,"certifyBox24A":false,"certifyBox24B":false,"certifyBox24C":false,"certifyBox24D":false,"certifyBox25A":false,"certifyBox25B":false,"certifyBox25C":false,"certifyBox26":false,"certifyBox27":false,"certifyBox28A":false,"certifyBox28B":false,"certifyBox29A":false,"certifyBox29B":false,"certifyBox29C":false,"certifyBox29D":false,"certifyBox29E":false,"certifyBox29F":false,"certifyBox30":false,"certifyBox31":false,"certifyBox32":false,"certifyBox33":false,"certifyBox34":false,"certifyBox35":false,"certifyBox36":false,"certifyBox37A":false,"certifyBox37B":false,"certifyBox38":false,"certifyBox39":false,"certifyBox40A":false,"certifyBox40B":false,"certifyBox40C":false,"certifyBox41":false,"certifyBox43":false,"certifyPart29Signature":false,"part19FormationOrResolutionDate":null,"part20FilingDate":null,"part21DeterminationDate":null,"substantialUsOwners":[],"id":0,"entryStatus":null,"updatedAt":"2022-05-01T11:30:00Z","referenceId":"REF98765","companyId":3003,"displayName":"Global Enterprises","email":"contact@globalenterprises.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8imy","signedDate":"2023-06-10T00:00:00Z","disregardedEntityChapter4FatcaStatus":null,"createdAt":"2023-06-05T09:00:00Z","updatedAt":"2023-06-20T14:30:00Z","displayName":"Global Financials","email":"contact@globalfinancials.com","tin":null,"typeOfTin":null,"name":"Global Financials LLC","citizenshipCountry":"USA","chapter3EntityType":"Partnership","chapter4FatcaStatus":"Compliant","residenceAddress":"321 Wealth Ave","residenceCity":"Finance City","residenceState":"TX","residencePostalCode":"75001","residenceCountry":"USA","residenceIsMailing":false,"mailingAddress":"P.O. Box 789","mailingCity":"Finance City","mailingState":"TX","mailingPostalCode":"75002","mailingCountry":"USA","disregardedEntity":"Subsidiary Finance","disregardedAddress":null,"disregardedCity":null,"disregardedState":null,"disregardedPostalCode":null,"disregardedCountry":null,"disregardedEntityGiin":"GIIN78901234","ein":null,"einType":null,"giin":null,"foreignTin":null,"referenceNumber":"W8IMY56789","certifyBox14":false,"certifyBox15A":false,"certifyBox15B":false,"certifyBox15C":false,"certifyBox15D":false,"certifyBox15E":false,"certifyBox15F":false,"certifyBox15G":false,"certifyBox15H":false,"certifyBox15I":false,"certifyBox16A":false,"box16BQddCorporate":false,"box16BQddPartnership":false,"box16BQddDisregardedEntity":false,"certifyBox17A":false,"certifyBox17B":false,"certifyBox17C":false,"certifyBox17D":false,"certifyBox17E":false,"certifyBox18A":false,"certifyBox18B":false,"certifyBox18C":false,"certifyBox18D":false,"certifyBox18E":false,"certifyBox18F":false,"certifyBox19A":false,"certifyBox19B":false,"certifyBox19C":false,"certifyBox19D":false,"certifyBox19E":false,"certifyBox19F":false,"certifyBox20":false,"certifyBox21A":false,"certifyBox21B":false,"certifyBox21C":false,"certifyBox21D":false,"certifyBox21E":false,"certifyBox21F":false,"certifyBox22":false,"box23ANameSponsoringEntity":null,"certifyBox23B":false,"certifyBox23C":false,"certifyBox24A":false,"certifyBox24B":false,"certifyBox24C":false,"certifyBox25":false,"certifyBox26":false,"box27ANameSponsoringEntity":null,"certifyBox27B":false,"certifyBox28":false,"certifyBox29":false,"certifyBox30A":false,"certifyBox30B":false,"certifyBox30C":false,"certifyBox31":false,"certifyBox32":false,"box32IgaCountry":null,"box32IgaType":null,"box32IgaTreatedAs":null,"box32TrusteeOrSponsor":null,"box32TrusteeIsForeign":false,"certifyBox33A":false,"certifyBox33B":false,"certifyBox33C":false,"certifyBox33D":false,"certifyBox33E":false,"certifyBox33F":false,"certifyBox34":false,"certifyBox35":false,"certifyBox36":false,"certifyBox37A":false,"box37ASecuritiesMarket":null,"certifyBox37B":false,"box37BNameOfEntity":null,"box37BSecuritiesMarket":null,"certifyBox38":false,"certifyBox39":false,"certifyBox40":false,"box41SponsoringEntity":null,"certifyBox42":false,"signerName":"Richard Roe","eDeliveryConsentedAt":"2023-06-10T11:00:00Z","box35FormedOnDate":null,"box36FiledOnDate":null,"id":0,"entryStatus":null,"referenceId":"REF12345","companyId":5005,"archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w9","tinMatchStatus":"Match","signature":null,"signedDate":"2022-04-29T15:19:42Z","name":"John Doe","businessClassification":"LLC","businessName":"Doe Enterprises","businessOther":null,"exemptPayeeCode":null,"exemptFatcaCode":null,"typeOfTin":"EIN","tin":"12-3456789","address":"123 Main St","city":"Anytown","state":"CA","zip":"90210","accountNumber":"ACC123456","foreignCountryIndicator":false,"foreignAddress":null,"backupWithholding":false,"eDeliveryConsentedAt":"2022-04-29T15:19:42Z","is1099able":null,"foreignPartnerOwnerOrBeneficiary":false,"createdAt":"2022-04-29T15:19:42Z","id":0,"entryStatus":null,"updatedAt":"2022-04-29T15:19:42Z","referenceId":"REF12345","companyId":1001,"displayName":"John Doe","email":"johndoe@example.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null}] - [DataMember(Name = "value", EmitDefaultValue = false)] - public List Value { get; set; } + /// [{"type":"w4","signedDate":"2022-04-29T00:00:00Z","createdAt":"2022-04-29T10:15:00Z","employeeFirstName":"Jane","employeeMiddleName":"A.","employeeLastName":"Smith","employeeNameSuffix":"Jr.","address":"456 Elm St","city":"Springfield","state":"IL","zip":"62704","typeOfTin":null,"tin":"98-7654321","maritalStatus":"Married","lastNameDiffers":false,"numAllowances":3,"otherDependents":1,"nonJobIncome":5000,"deductions":2000,"additionalWithheld":150,"exemptFromWithholding":false,"officeCode":"OC12345","eDeliveryConsentedAt":"2022-04-29T15:00:00Z","id":0,"entryStatus":null,"updatedAt":"2022-05-01T12:00:00Z","referenceId":"REF56789","companyId":2002,"displayName":"Jane Smith","email":"janesmith@example.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8ben","signedDate":"2023-01-15T00:00:00Z","birthday":null,"foreignTinNotRequired":null,"archived":false,"referenceId":"REF67890","companyId":4004,"displayName":"International Trading","email":"info@internationaltrading.com","typeOfTin":null,"name":"International Trading Co.","residenceAddress":"789 Global St","residenceCity":"Capital City","residenceState":"DC","residencePostalCode":"20001","residenceCountry":"USA","residenceIsMailing":false,"mailingAddress":"P.O. Box 456","mailingCity":"Capital City","mailingState":"DC","mailingPostalCode":"20002","mailingCountry":"USA","tin":"34-5678901","foreignTin":"FTIN56789","referenceNumber":"W8BEN45678","citizenshipCountry":"USA","treatyCountry":"Canada","treatyArticle":"Article 12","withholdingRate":"15%","incomeType":"Dividend","treatyReasons":"Reduced withholding","signerName":"Alice Johnson","signerCapacity":"Authorized Representative","eDeliveryConsentedAt":"2023-01-15T10:00:00Z","createdAt":"2023-01-10T08:00:00Z","updatedAt":"2023-02-05T09:30:00Z","id":0,"entryStatus":null,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8bene","signedDate":"2022-04-29T00:00:00Z","disregardedEntityChapter4FatcaStatus":null,"createdAt":"2022-04-29T10:00:00Z","name":"Global Enterprises LLC","residenceAddress":"123 International Blvd","residenceCity":"Metropolis","residenceState":"NY","residencePostalCode":"10118","residenceCountry":"USA","mailingAddress":"P.O. Box 123","mailingCity":"Metropolis","mailingState":"NY","mailingPostalCode":"10119","mailingCountry":"USA","disregardedAddress":null,"disregardedCity":null,"disregardedState":null,"disregardedPostalCode":null,"disregardedCountry":null,"tin":"12-3456789","typeOfTin":null,"foreignTin":null,"ftinNotRequired":null,"referenceNumber":"W8BENE12345","giin":"GIIN12345678","chapter3EntityType":"Corporation","chapter4FatcaStatus":"Active","disregardedEntity":"Subsidiary LLC","disregardedEntityGiin":"GIIN87654321","benefitLimitation":"Treaty Benefit","part4SponsoringEntity":"Parent Company","part4SponsoringEntityGiin":"GIIN11223344","part7SponsoringEntity":"Affiliated Organization","part12IgaCountry":"USA","part12IgaType":"Model 1","part12FatcaStatusUnderIgaAnnexIi":"Registered Deemed Compliant","part12TrusteeName":"Trustee Inc.","part12TrusteeIsForeign":false,"part12Model2IgaGiin":"GIIN33445566","box37AExchange":"NYSE","box37BExchange":"NASDAQ","box37BEntity":"Trading Partner","part28SponsoringEntity":"Global Trust","part28SponsoringEntityGiin":"GIIN99887766","signerName":"John Doe","eDeliveryConsentedAt":"2022-04-29T15:30:00Z","residenceIsMailing":false,"citizenshipCountry":null,"makingTreatyClaim":false,"treatyCountry":null,"treatyArticle":null,"withholdingRate":null,"incomeType":null,"treatyReasons":null,"certifyBox14A":false,"certifyBox14B":false,"certifyBox14C":false,"certifyBox17_1":false,"certifyBox17_2":false,"certifyBox18":false,"certifyBox19":false,"certifyBox21":false,"certifyBox22":false,"certifyBox23":false,"certifyBox24A":false,"certifyBox24B":false,"certifyBox24C":false,"certifyBox24D":false,"certifyBox25A":false,"certifyBox25B":false,"certifyBox25C":false,"certifyBox26":false,"certifyBox27":false,"certifyBox28A":false,"certifyBox28B":false,"certifyBox29A":false,"certifyBox29B":false,"certifyBox29C":false,"certifyBox29D":false,"certifyBox29E":false,"certifyBox29F":false,"certifyBox30":false,"certifyBox31":false,"certifyBox32":false,"certifyBox33":false,"certifyBox34":false,"certifyBox35":false,"certifyBox36":false,"certifyBox37A":false,"certifyBox37B":false,"certifyBox38":false,"certifyBox39":false,"certifyBox40A":false,"certifyBox40B":false,"certifyBox40C":false,"certifyBox41":false,"certifyBox43":false,"certifyPart29Signature":false,"part19FormationOrResolutionDate":null,"part20FilingDate":null,"part21DeterminationDate":null,"id":0,"entryStatus":null,"updatedAt":"2022-05-01T11:30:00Z","referenceId":"REF98765","companyId":3003,"displayName":"Global Enterprises","email":"contact@globalenterprises.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w8imy","signedDate":"2023-06-10T00:00:00Z","disregardedEntityChapter4FatcaStatus":null,"createdAt":"2023-06-05T09:00:00Z","updatedAt":"2023-06-20T14:30:00Z","displayName":"Global Financials","email":"contact@globalfinancials.com","tin":null,"typeOfTin":null,"name":"Global Financials LLC","citizenshipCountry":"USA","chapter3EntityType":"Partnership","chapter4FatcaStatus":"Compliant","residenceAddress":"321 Wealth Ave","residenceCity":"Finance City","residenceState":"TX","residencePostalCode":"75001","residenceCountry":"USA","residenceIsMailing":null,"mailingAddress":"P.O. Box 789","mailingCity":"Finance City","mailingState":"TX","mailingPostalCode":"75002","mailingCountry":"USA","disregardedEntity":"Subsidiary Finance","disregardedAddress":null,"disregardedCity":null,"disregardedState":null,"disregardedPostalCode":null,"disregardedCountry":null,"disregardedEntityGiin":"GIIN78901234","ein":null,"einType":null,"giin":null,"foreignTin":null,"referenceNumber":"W8IMY56789","certifyBox14":null,"certifyBox15A":null,"certifyBox15B":null,"certifyBox15C":null,"certifyBox15D":null,"certifyBox15E":null,"certifyBox15F":null,"certifyBox15G":null,"certifyBox15H":null,"certifyBox15I":null,"certifyBox16A":null,"box16BQddCorporate":null,"box16BQddPartnership":null,"box16BQddDisregardedEntity":null,"certifyBox17A":null,"certifyBox17B":null,"certifyBox17C":null,"certifyBox17D":null,"certifyBox17E":null,"certifyBox18A":null,"certifyBox18B":null,"certifyBox18C":null,"certifyBox18D":null,"certifyBox18E":null,"certifyBox18F":null,"certifyBox19A":null,"certifyBox19B":null,"certifyBox19C":null,"certifyBox19D":null,"certifyBox19E":null,"certifyBox19F":null,"certifyBox20":null,"certifyBox21A":null,"certifyBox21B":null,"certifyBox21C":null,"certifyBox21D":null,"certifyBox21E":null,"certifyBox21F":null,"certifyBox22":null,"box23ANameSponsoringEntity":null,"certifyBox23B":null,"certifyBox23C":null,"certifyBox24A":null,"certifyBox24B":null,"certifyBox24C":null,"certifyBox25":null,"certifyBox26":null,"box27ANameSponsoringEntity":null,"certifyBox27B":null,"certifyBox28":null,"certifyBox29":null,"certifyBox30A":null,"certifyBox30B":null,"certifyBox30C":null,"certifyBox31":null,"certifyBox32":null,"box32IgaCountry":null,"box32IgaType":null,"box32IgaTreatedAs":null,"box32TrusteeOrSponsor":null,"box32TrusteeIsForeign":null,"certifyBox33A":null,"certifyBox33B":null,"certifyBox33C":null,"certifyBox33D":null,"certifyBox33E":null,"certifyBox33F":null,"certifyBox34":null,"certifyBox35":null,"certifyBox36":null,"certifyBox37A":null,"box37ASecuritiesMarket":null,"certifyBox37B":null,"box37BNameOfEntity":null,"box37BSecuritiesMarket":null,"certifyBox38":null,"certifyBox39":null,"certifyBox40":null,"box41SponsoringEntity":null,"certifyBox42":null,"signerName":"Richard Roe","eDeliveryConsentedAt":"2023-06-10T11:00:00Z","box35FormedOnDate":null,"box36FiledOnDate":null,"id":0,"entryStatus":null,"referenceId":"REF12345","companyId":5005,"archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"signature":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null},{"type":"w9","tinMatchStatus":"Match","signature":null,"signedDate":"2022-04-29T15:19:42Z","name":"John Doe","businessClassification":"LLC","businessName":"Doe Enterprises","businessOther":null,"exemptPayeeCode":null,"exemptFatcaCode":null,"typeOfTin":"EIN","tin":"12-3456789","address":"123 Main St","city":"Anytown","state":"CA","zip":"90210","accountNumber":"ACC123456","foreignCountryIndicator":false,"foreignAddress":null,"backupWithholding":false,"eDeliveryConsentedAt":"2022-04-29T15:19:42Z","is1099able":null,"foreignPartnerOwnerOrBeneficiary":false,"createdAt":"2022-04-29T15:19:42Z","id":0,"entryStatus":null,"updatedAt":"2022-04-29T15:19:42Z","referenceId":"REF12345","companyId":1001,"displayName":"John Doe","email":"johndoe@example.com","archived":false,"entryStatusDate":null,"pdfJson":null,"pdfVersion":null,"requestToken":null,"mobile":false,"appVersion":null,"platform":null,"osVersion":null,"ancestorId":null}] + [DataMember(Name = "value", EmitDefaultValue = true)] + public List Value { get; set; } /// /// Gets or Sets NextLink /// - [DataMember(Name = "@nextLink", EmitDefaultValue = false)] + [DataMember(Name = "@nextLink", EmitDefaultValue = true)] public string NextLink { get; set; } /// diff --git a/src/Avalara.SDK/Model/A1099/V2/PostalMailStatus.cs b/src/Avalara.SDK/Model/A1099/V2/PostalMailStatus.cs new file mode 100644 index 0000000..d6db97d --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/PostalMailStatus.cs @@ -0,0 +1,136 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// The status of postal mail delivery. + /// + [DataContract(Name = "postalMailStatus")] + public partial class PostalMailStatus : IValidatableObject + { + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Delivered for value: delivered + /// + [EnumMember(Value = "delivered")] + Delivered = 4 + } + + + /// + /// Gets or Sets Status + /// + /// delivered + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// status. + public PostalMailStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-22T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PostalMailStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/ProblemDetails.cs b/src/Avalara.SDK/Model/A1099/V2/ProblemDetails.cs index d938cb4..5675f20 100644 --- a/src/Avalara.SDK/Model/A1099/V2/ProblemDetails.cs +++ b/src/Avalara.SDK/Model/A1099/V2/ProblemDetails.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal diff --git a/src/Avalara.SDK/Model/A1099/V2/StateEfileStatusesInner.cs b/src/Avalara.SDK/Model/A1099/V2/StateEfileStatusesInner.cs new file mode 100644 index 0000000..25bf69b --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/StateEfileStatusesInner.cs @@ -0,0 +1,557 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// StateEfileStatusesInner + /// + [DataContract(Name = "stateEfileStatuses_inner")] + public partial class StateEfileStatusesInner : IValidatableObject + { + /// + /// The jurisdiction of the state e-filing. + /// + /// The jurisdiction of the state e-filing. + [JsonConverter(typeof(StringEnumConverter))] + public enum JurisdictionEnum + { + /// + /// Enum AA for value: AA + /// + [EnumMember(Value = "AA")] + AA = 1, + + /// + /// Enum AE for value: AE + /// + [EnumMember(Value = "AE")] + AE = 2, + + /// + /// Enum AK for value: AK + /// + [EnumMember(Value = "AK")] + AK = 3, + + /// + /// Enum AL for value: AL + /// + [EnumMember(Value = "AL")] + AL = 4, + + /// + /// Enum AP for value: AP + /// + [EnumMember(Value = "AP")] + AP = 5, + + /// + /// Enum AR for value: AR + /// + [EnumMember(Value = "AR")] + AR = 6, + + /// + /// Enum AS for value: AS + /// + [EnumMember(Value = "AS")] + AS = 7, + + /// + /// Enum AZ for value: AZ + /// + [EnumMember(Value = "AZ")] + AZ = 8, + + /// + /// Enum CA for value: CA + /// + [EnumMember(Value = "CA")] + CA = 9, + + /// + /// Enum CO for value: CO + /// + [EnumMember(Value = "CO")] + CO = 10, + + /// + /// Enum CT for value: CT + /// + [EnumMember(Value = "CT")] + CT = 11, + + /// + /// Enum DC for value: DC + /// + [EnumMember(Value = "DC")] + DC = 12, + + /// + /// Enum DE for value: DE + /// + [EnumMember(Value = "DE")] + DE = 13, + + /// + /// Enum FL for value: FL + /// + [EnumMember(Value = "FL")] + FL = 14, + + /// + /// Enum FM for value: FM + /// + [EnumMember(Value = "FM")] + FM = 15, + + /// + /// Enum GA for value: GA + /// + [EnumMember(Value = "GA")] + GA = 16, + + /// + /// Enum GU for value: GU + /// + [EnumMember(Value = "GU")] + GU = 17, + + /// + /// Enum HI for value: HI + /// + [EnumMember(Value = "HI")] + HI = 18, + + /// + /// Enum IA for value: IA + /// + [EnumMember(Value = "IA")] + IA = 19, + + /// + /// Enum ID for value: ID + /// + [EnumMember(Value = "ID")] + ID = 20, + + /// + /// Enum IL for value: IL + /// + [EnumMember(Value = "IL")] + IL = 21, + + /// + /// Enum IN for value: IN + /// + [EnumMember(Value = "IN")] + IN = 22, + + /// + /// Enum KS for value: KS + /// + [EnumMember(Value = "KS")] + KS = 23, + + /// + /// Enum KY for value: KY + /// + [EnumMember(Value = "KY")] + KY = 24, + + /// + /// Enum LA for value: LA + /// + [EnumMember(Value = "LA")] + LA = 25, + + /// + /// Enum MA for value: MA + /// + [EnumMember(Value = "MA")] + MA = 26, + + /// + /// Enum MD for value: MD + /// + [EnumMember(Value = "MD")] + MD = 27, + + /// + /// Enum ME for value: ME + /// + [EnumMember(Value = "ME")] + ME = 28, + + /// + /// Enum MH for value: MH + /// + [EnumMember(Value = "MH")] + MH = 29, + + /// + /// Enum MI for value: MI + /// + [EnumMember(Value = "MI")] + MI = 30, + + /// + /// Enum MN for value: MN + /// + [EnumMember(Value = "MN")] + MN = 31, + + /// + /// Enum MO for value: MO + /// + [EnumMember(Value = "MO")] + MO = 32, + + /// + /// Enum MP for value: MP + /// + [EnumMember(Value = "MP")] + MP = 33, + + /// + /// Enum MS for value: MS + /// + [EnumMember(Value = "MS")] + MS = 34, + + /// + /// Enum MT for value: MT + /// + [EnumMember(Value = "MT")] + MT = 35, + + /// + /// Enum NC for value: NC + /// + [EnumMember(Value = "NC")] + NC = 36, + + /// + /// Enum ND for value: ND + /// + [EnumMember(Value = "ND")] + ND = 37, + + /// + /// Enum NE for value: NE + /// + [EnumMember(Value = "NE")] + NE = 38, + + /// + /// Enum NH for value: NH + /// + [EnumMember(Value = "NH")] + NH = 39, + + /// + /// Enum NJ for value: NJ + /// + [EnumMember(Value = "NJ")] + NJ = 40, + + /// + /// Enum NM for value: NM + /// + [EnumMember(Value = "NM")] + NM = 41, + + /// + /// Enum NV for value: NV + /// + [EnumMember(Value = "NV")] + NV = 42, + + /// + /// Enum NY for value: NY + /// + [EnumMember(Value = "NY")] + NY = 43, + + /// + /// Enum OH for value: OH + /// + [EnumMember(Value = "OH")] + OH = 44, + + /// + /// Enum OK for value: OK + /// + [EnumMember(Value = "OK")] + OK = 45, + + /// + /// Enum OR for value: OR + /// + [EnumMember(Value = "OR")] + OR = 46, + + /// + /// Enum PA for value: PA + /// + [EnumMember(Value = "PA")] + PA = 47, + + /// + /// Enum PR for value: PR + /// + [EnumMember(Value = "PR")] + PR = 48, + + /// + /// Enum PW for value: PW + /// + [EnumMember(Value = "PW")] + PW = 49, + + /// + /// Enum RI for value: RI + /// + [EnumMember(Value = "RI")] + RI = 50, + + /// + /// Enum SC for value: SC + /// + [EnumMember(Value = "SC")] + SC = 51, + + /// + /// Enum SD for value: SD + /// + [EnumMember(Value = "SD")] + SD = 52, + + /// + /// Enum TN for value: TN + /// + [EnumMember(Value = "TN")] + TN = 53, + + /// + /// Enum TX for value: TX + /// + [EnumMember(Value = "TX")] + TX = 54, + + /// + /// Enum UT for value: UT + /// + [EnumMember(Value = "UT")] + UT = 55, + + /// + /// Enum VA for value: VA + /// + [EnumMember(Value = "VA")] + VA = 56, + + /// + /// Enum VI for value: VI + /// + [EnumMember(Value = "VI")] + VI = 57, + + /// + /// Enum VT for value: VT + /// + [EnumMember(Value = "VT")] + VT = 58, + + /// + /// Enum WA for value: WA + /// + [EnumMember(Value = "WA")] + WA = 59, + + /// + /// Enum WI for value: WI + /// + [EnumMember(Value = "WI")] + WI = 60, + + /// + /// Enum WV for value: WV + /// + [EnumMember(Value = "WV")] + WV = 61, + + /// + /// Enum WY for value: WY + /// + [EnumMember(Value = "WY")] + WY = 62 + } + + + /// + /// The jurisdiction of the state e-filing. + /// + /// The jurisdiction of the state e-filing. + /// Filed + [DataMember(Name = "jurisdiction", EmitDefaultValue = false)] + public JurisdictionEnum? Jurisdiction { get; set; } + /// + /// Defines Status + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Unscheduled for value: unscheduled + /// + [EnumMember(Value = "unscheduled")] + Unscheduled = 1, + + /// + /// Enum Scheduled for value: scheduled + /// + [EnumMember(Value = "scheduled")] + Scheduled = 2, + + /// + /// Enum Sent for value: sent + /// + [EnumMember(Value = "sent")] + Sent = 3, + + /// + /// Enum Rejected for value: rejected + /// + [EnumMember(Value = "rejected")] + Rejected = 4, + + /// + /// Enum Accepted for value: accepted + /// + [EnumMember(Value = "accepted")] + Accepted = 5, + + /// + /// Enum CorrectedScheduled for value: correctedScheduled + /// + [EnumMember(Value = "correctedScheduled")] + CorrectedScheduled = 6, + + /// + /// Enum CorrectedSent for value: correctedSent + /// + [EnumMember(Value = "correctedSent")] + CorrectedSent = 7, + + /// + /// Enum CorrectedRejected for value: correctedRejected + /// + [EnumMember(Value = "correctedRejected")] + CorrectedRejected = 8, + + /// + /// Enum CorrectedAccepted for value: correctedAccepted + /// + [EnumMember(Value = "correctedAccepted")] + CorrectedAccepted = 9 + } + + + /// + /// Gets or Sets Status + /// + /// accepted + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// The jurisdiction of the state e-filing.. + /// Date time when the status was set. + /// status. + public StateEfileStatusesInner(JurisdictionEnum? jurisdiction = default(JurisdictionEnum?), DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Jurisdiction = jurisdiction; + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StateEfileStatusesInner {\n"); + sb.Append(" Jurisdiction: ").Append(Jurisdiction).Append("\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/StateWithholding.cs b/src/Avalara.SDK/Model/A1099/V2/StateWithholding.cs new file mode 100644 index 0000000..47d9a76 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/StateWithholding.cs @@ -0,0 +1,154 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// StateWithholding + /// + [DataContract(Name = "stateWithholding")] + public partial class StateWithholding : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The amount of state tax withheld, if any.. + /// The state associated with the withholding.. + /// The payer's state number.. + /// The state income reported.. + /// The local tax withheld reported.. + /// The locality reported.. + /// The local income reported.. + public StateWithholding(double? taxWithheld = default(double?), string state = default(string), string payerStateNo = default(string), double? income = default(double?), double? localTaxWithheld = default(double?), string locality = default(string), double? localIncome = default(double?)) + { + this.TaxWithheld = taxWithheld; + this.State = state; + this.PayerStateNo = payerStateNo; + this.Income = income; + this.LocalTaxWithheld = localTaxWithheld; + this.Locality = locality; + this.LocalIncome = localIncome; + } + + /// + /// The amount of state tax withheld, if any. + /// + /// The amount of state tax withheld, if any. + [DataMember(Name = "taxWithheld", EmitDefaultValue = true)] + public double? TaxWithheld { get; set; } + + /// + /// The state associated with the withholding. + /// + /// The state associated with the withholding. + [DataMember(Name = "state", EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// The payer's state number. + /// + /// The payer's state number. + [DataMember(Name = "payerStateNo", EmitDefaultValue = true)] + public string PayerStateNo { get; set; } + + /// + /// The state income reported. + /// + /// The state income reported. + [DataMember(Name = "income", EmitDefaultValue = true)] + public double? Income { get; set; } + + /// + /// The local tax withheld reported. + /// + /// The local tax withheld reported. + [DataMember(Name = "localTaxWithheld", EmitDefaultValue = true)] + public double? LocalTaxWithheld { get; set; } + + /// + /// The locality reported. + /// + /// The locality reported. + [DataMember(Name = "locality", EmitDefaultValue = true)] + public string Locality { get; set; } + + /// + /// The local income reported. + /// + /// The local income reported. + [DataMember(Name = "localIncome", EmitDefaultValue = true)] + public double? LocalIncome { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class StateWithholding {\n"); + sb.Append(" TaxWithheld: ").Append(TaxWithheld).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" PayerStateNo: ").Append(PayerStateNo).Append("\n"); + sb.Append(" Income: ").Append(Income).Append("\n"); + sb.Append(" LocalTaxWithheld: ").Append(LocalTaxWithheld).Append("\n"); + sb.Append(" Locality: ").Append(Locality).Append("\n"); + sb.Append(" LocalIncome: ").Append(LocalIncome).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/TinMatchStatus.cs b/src/Avalara.SDK/Model/A1099/V2/TinMatchStatus.cs new file mode 100644 index 0000000..fb19cd2 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/TinMatchStatus.cs @@ -0,0 +1,132 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; + +namespace Avalara.SDK.Model.A1099.V2 +{ +/// + /// TinMatchStatus + /// + [DataContract(Name = "tinMatchStatus")] + public partial class TinMatchStatus : IValidatableObject + { + /// + /// The status of TIN matching. + /// + /// The status of TIN matching. + [JsonConverter(typeof(StringEnumConverter))] + public enum StatusEnum + { + /// + /// Enum Pending for value: pending + /// + [EnumMember(Value = "pending")] + Pending = 1, + + /// + /// Enum Matched for value: matched + /// + [EnumMember(Value = "matched")] + Matched = 2, + + /// + /// Enum Failed for value: failed + /// + [EnumMember(Value = "failed")] + Failed = 3 + } + + + /// + /// The status of TIN matching. + /// + /// The status of TIN matching. + /// matched + [DataMember(Name = "status", EmitDefaultValue = false)] + public StatusEnum? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Date time when the status was set. + /// The status of TIN matching.. + public TinMatchStatus(DateTime date = default(DateTime), StatusEnum? status = default(StatusEnum?)) + { + this.Date = date; + this.Status = status; + } + + /// + /// Date time when the status was set + /// + /// Date time when the status was set + /// 2025-01-26T15:19:42Z + [DataMember(Name = "date", EmitDefaultValue = false)] + public DateTime Date { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TinMatchStatus {\n"); + sb.Append(" Date: ").Append(Date).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } +} diff --git a/src/Avalara.SDK/Model/A1099/V2/W4FormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/W4FormDataModel.cs index 9d525cb..36bf37b 100644 --- a/src/Avalara.SDK/Model/A1099/V2/W4FormDataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/W4FormDataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -113,206 +113,35 @@ public bool ShouldSerializeType() /// The ZIP code of residence of the employee.. /// The type of TIN provided.. /// The taxpayer identification number (TIN) of the employee.. - /// The marital status of the employee.. - /// Indicates whether the last name differs from prior records.. - /// The number of allowances claimed by the employee.. + /// The marital status of the employee.. + /// Indicates whether the last name differs from prior records.. + /// The number of allowances claimed by the employee.. /// The number of dependents other than allowances.. /// The amount of non-job income.. /// The amount of deductions claimed.. - /// The additional amount withheld.. - /// Indicates whether the employee is exempt from withholding.. + /// The additional amount withheld.. + /// Indicates whether the employee is exempt from withholding.. /// The office code associated with the form.. /// The date when e-delivery was consented.. - /// The FATCA status for disregarded entities under Chapter 4.. - /// The name of the individual or entity associated with the form.. - /// The residential address of the individual or entity.. - /// The city of residence.. - /// The state of residence.. - /// The postal code of the residence.. - /// The country of residence.. - /// The mailing address.. - /// The city of the mailing address.. - /// The state of the mailing address.. - /// The postal code of the mailing address.. - /// The country of the mailing address.. - /// The address for disregarded entities.. - /// The city for disregarded entities.. - /// The state for disregarded entities.. - /// The postal code for disregarded entities.. - /// The country for disregarded entities.. - /// The foreign taxpayer identification number (TIN).. - /// Indicates whether a foreign TIN is not required.. - /// A reference number for the form.. - /// The global intermediary identification number (GIIN).. - /// The Chapter 3 entity type.. - /// The Chapter 4 FATCA status.. - /// The disregarded entity information.. - /// The GIIN for disregarded entities.. - /// The benefit limitation for tax treaty claims.. - /// The sponsoring entity information for Part 4.. - /// The GIIN for the sponsoring entity in Part 4.. - /// The sponsoring entity information for Part 7.. - /// The IGA country information for Part 12.. - /// The IGA type information for Part 12.. - /// The FATCA status under IGA Annex II for Part 12.. - /// The trustee name for Part 12.. - /// Indicates whether the trustee is foreign for Part 12.. - /// The GIIN for Model 2 IGA in Part 12.. - /// The exchange information for Box 37A.. - /// The exchange information for Box 37B.. - /// The entity information for Box 37B.. - /// The sponsoring entity information for Part 28.. - /// The GIIN for the sponsoring entity in Part 28.. - /// The name of the signer of the form.. - /// Indicates whether the residence address is also the mailing address.. - /// The country of citizenship.. - /// makingTreatyClaim. - /// The country for which the treaty applies.. - /// The specific article of the treaty being claimed.. - /// The withholding rate applied as per the treaty.. - /// The type of income covered by the treaty.. - /// The reasons for claiming treaty benefits.. - /// certifyBox14A. - /// certifyBox14B. - /// certifyBox14C. - /// certifyBox171. - /// certifyBox172. - /// certifyBox18. - /// certifyBox19. - /// certifyBox21. - /// Indicates certification for box 22.. - /// certifyBox23. - /// Indicates certification for box 24A.. - /// Indicates certification for box 24B.. - /// Indicates certification for box 24C.. - /// certifyBox24D. - /// certifyBox25A. - /// certifyBox25B. - /// certifyBox25C. - /// Indicates certification for box 26.. - /// certifyBox27. - /// certifyBox28A. - /// certifyBox28B. - /// certifyBox29A. - /// certifyBox29B. - /// certifyBox29C. - /// certifyBox29D. - /// certifyBox29E. - /// certifyBox29F. - /// certifyBox30. - /// Indicates certification for box 31.. - /// Indicates certification for box 32.. - /// certifyBox33. - /// Indicates certification for box 34.. - /// Indicates certification for box 35.. - /// Indicates certification for box 36.. - /// Indicates certification for box 37A.. - /// Indicates certification for box 37B.. - /// Indicates certification for box 38.. - /// Indicates certification for box 39.. - /// certifyBox40A. - /// certifyBox40B. - /// certifyBox40C. - /// certifyBox41. - /// certifyBox43. - /// certifyPart29Signature. - /// part19FormationOrResolutionDate. - /// part20FilingDate. - /// part21DeterminationDate. - /// substantialUsOwners. - /// The birthday of the individual associated with the form.. - /// Indicates whether a foreign TIN is not required.. - /// Indicates whether the form is archived.. + /// id. + /// entryStatus. + /// The last updated date of the form.. /// A reference identifier for the form.. /// The ID of the associated company.. /// The display name associated with the form.. /// The email address of the individual associated with the form.. - /// The capacity in which the signer is signing the form.. - /// The last updated date of the form.. - /// The employer identification number (EIN).. - /// The type of employer identification number (EIN).. - /// Indicates certification for box 14.. - /// Indicates certification for box 15A.. - /// Indicates certification for box 15B.. - /// Indicates certification for box 15C.. - /// Indicates certification for box 15D.. - /// Indicates certification for box 15E.. - /// Indicates certification for box 15F.. - /// Indicates certification for box 15G.. - /// Indicates certification for box 15H.. - /// Indicates certification for box 15I.. - /// Indicates certification for box 16A.. - /// Indicates certification for box 16B as a QDD corporate entity.. - /// Indicates certification for box 16B as a QDD partnership.. - /// Indicates certification for box 16B as a QDD disregarded entity.. - /// Indicates certification for box 17A.. - /// Indicates certification for box 17B.. - /// Indicates certification for box 17C.. - /// Indicates certification for box 17D.. - /// Indicates certification for box 17E.. - /// Indicates certification for box 18A.. - /// Indicates certification for box 18B.. - /// Indicates certification for box 18C.. - /// Indicates certification for box 18D.. - /// Indicates certification for box 18E.. - /// Indicates certification for box 18F.. - /// Indicates certification for box 19A.. - /// Indicates certification for box 19B.. - /// Indicates certification for box 19C.. - /// Indicates certification for box 19D.. - /// Indicates certification for box 19E.. - /// Indicates certification for box 19F.. - /// Indicates certification for box 20.. - /// Indicates certification for box 21A.. - /// Indicates certification for box 21B.. - /// Indicates certification for box 21C.. - /// Indicates certification for box 21D.. - /// Indicates certification for box 21E.. - /// Indicates certification for box 21F.. - /// The name of the sponsoring entity for box 23A.. - /// Indicates certification for box 23B.. - /// Indicates certification for box 23C.. - /// Indicates certification for box 25.. - /// The name of the sponsoring entity for box 27A.. - /// Indicates certification for box 27B.. - /// Indicates certification for box 28.. - /// Indicates certification for box 29.. - /// Indicates certification for box 30A.. - /// Indicates certification for box 30B.. - /// Indicates certification for box 30C.. - /// The IGA country information for box 32.. - /// The IGA type information for box 32.. - /// The IGA treatment information for box 32.. - /// The trustee or sponsor information for box 32.. - /// Indicates whether the trustee is foreign for box 32.. - /// Indicates certification for box 33A.. - /// Indicates certification for box 33B.. - /// Indicates certification for box 33C.. - /// Indicates certification for box 33D.. - /// Indicates certification for box 33E.. - /// Indicates certification for box 33F.. - /// The securities market information for box 37A.. - /// The name of the entity for box 37B.. - /// The securities market information for box 37B.. - /// Indicates certification for box 40.. - /// The sponsoring entity information for box 41.. - /// Indicates certification for box 42.. - /// box35FormedOnDate. - /// box36FiledOnDate. - /// The status of the TIN match.. - /// The signature itself. - /// The classification of the business.. - /// The name of the business associated with the form.. - /// businessOther. - /// exemptPayeeCode. - /// exemptFatcaCode. - /// The account number associated with the form.. - /// Indicates whether the individual or entity is in a foreign country.. - /// The foreign address of the individual or entity.. - /// Indicates whether backup withholding applies.. - /// is1099able. - /// Indicates whether the individual is a foreign partner, owner, or beneficiary.. - public W4FormDataModel(DateTime? signedDate = default(DateTime?), DateTime? createdAt = default(DateTime?), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string typeOfTin = default(string), string tin = default(string), string box3MaritalStatus = default(string), bool? box4LastNameDiffers = default(bool?), int? box5NumAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? box6AdditionalWithheld = default(double?), bool? box7ExemptFromWithholding = default(bool?), string officeCode = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), string disregardedEntityChapter4FatcaStatus = default(string), string name = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string foreignTin = default(string), bool? ftinNotRequired = default(bool?), string referenceNumber = default(string), string giin = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string disregardedEntity = default(string), string disregardedEntityGiin = default(string), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), string signerName = default(string), bool residenceIsMailing = default(bool), string citizenshipCountry = default(string), bool? makingTreatyClaim = default(bool?), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox22 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox26 = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), bool certifyBox33 = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), bool certifyBox37B = default(bool), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), List substantialUsOwners = default(List), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), int? companyId = default(int?), string displayName = default(string), string email = default(string), string signerCapacity = default(string), DateTime? updatedAt = default(DateTime?), string ein = default(string), string einType = default(string), bool certifyBox14 = default(bool), bool certifyBox15A = default(bool), bool certifyBox15B = default(bool), bool certifyBox15C = default(bool), bool certifyBox15D = default(bool), bool certifyBox15E = default(bool), bool certifyBox15F = default(bool), bool certifyBox15G = default(bool), bool certifyBox15H = default(bool), bool certifyBox15I = default(bool), bool certifyBox16A = default(bool), bool box16BQddCorporate = default(bool), bool box16BQddPartnership = default(bool), bool box16BQddDisregardedEntity = default(bool), bool certifyBox17A = default(bool), bool certifyBox17B = default(bool), bool certifyBox17C = default(bool), bool certifyBox17D = default(bool), bool certifyBox17E = default(bool), bool certifyBox18A = default(bool), bool certifyBox18B = default(bool), bool certifyBox18C = default(bool), bool certifyBox18D = default(bool), bool certifyBox18E = default(bool), bool certifyBox18F = default(bool), bool certifyBox19A = default(bool), bool certifyBox19B = default(bool), bool certifyBox19C = default(bool), bool certifyBox19D = default(bool), bool certifyBox19E = default(bool), bool certifyBox19F = default(bool), bool certifyBox20 = default(bool), bool certifyBox21A = default(bool), bool certifyBox21B = default(bool), bool certifyBox21C = default(bool), bool certifyBox21D = default(bool), bool certifyBox21E = default(bool), bool certifyBox21F = default(bool), string box23ANameSponsoringEntity = default(string), bool certifyBox23B = default(bool), bool certifyBox23C = default(bool), bool certifyBox25 = default(bool), string box27ANameSponsoringEntity = default(string), bool certifyBox27B = default(bool), bool certifyBox28 = default(bool), bool certifyBox29 = default(bool), bool certifyBox30A = default(bool), bool certifyBox30B = default(bool), bool certifyBox30C = default(bool), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool box32TrusteeIsForeign = default(bool), bool certifyBox33A = default(bool), bool certifyBox33B = default(bool), bool certifyBox33C = default(bool), bool certifyBox33D = default(bool), bool certifyBox33E = default(bool), bool certifyBox33F = default(bool), string box37ASecuritiesMarket = default(string), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool certifyBox40 = default(bool), string box41SponsoringEntity = default(string), bool certifyBox42 = default(bool), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?), string tinMatchStatus = default(string), string signature = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?)) + /// Indicates whether the form is archived.. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// signature. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public W4FormDataModel(DateTime? signedDate = default(DateTime?), DateTime? createdAt = default(DateTime?), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string typeOfTin = default(string), string tin = default(string), string maritalStatus = default(string), bool? lastNameDiffers = default(bool?), int? numAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? additionalWithheld = default(double?), bool? exemptFromWithholding = default(bool?), string officeCode = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), string id = default(string), string entryStatus = default(string), DateTime? updatedAt = default(DateTime?), string referenceId = default(string), string companyId = default(string), string displayName = default(string), string email = default(string), bool? archived = default(bool?), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), string signature = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) { this.SignedDate = signedDate; this.CreatedAt = createdAt; @@ -326,205 +155,34 @@ public bool ShouldSerializeType() this.Zip = zip; this.TypeOfTin = typeOfTin; this.Tin = tin; - this.Box3MaritalStatus = box3MaritalStatus; - this.Box4LastNameDiffers = box4LastNameDiffers; - this.Box5NumAllowances = box5NumAllowances; + this.MaritalStatus = maritalStatus; + this.LastNameDiffers = lastNameDiffers; + this.NumAllowances = numAllowances; this.OtherDependents = otherDependents; this.NonJobIncome = nonJobIncome; this.Deductions = deductions; - this.Box6AdditionalWithheld = box6AdditionalWithheld; - this.Box7ExemptFromWithholding = box7ExemptFromWithholding; + this.AdditionalWithheld = additionalWithheld; + this.ExemptFromWithholding = exemptFromWithholding; this.OfficeCode = officeCode; this.EDeliveryConsentedAt = eDeliveryConsentedAt; - this.DisregardedEntityChapter4FatcaStatus = disregardedEntityChapter4FatcaStatus; - this.Name = name; - this.ResidenceAddress = residenceAddress; - this.ResidenceCity = residenceCity; - this.ResidenceState = residenceState; - this.ResidencePostalCode = residencePostalCode; - this.ResidenceCountry = residenceCountry; - this.MailingAddress = mailingAddress; - this.MailingCity = mailingCity; - this.MailingState = mailingState; - this.MailingPostalCode = mailingPostalCode; - this.MailingCountry = mailingCountry; - this.DisregardedAddress = disregardedAddress; - this.DisregardedCity = disregardedCity; - this.DisregardedState = disregardedState; - this.DisregardedPostalCode = disregardedPostalCode; - this.DisregardedCountry = disregardedCountry; - this.ForeignTin = foreignTin; - this.FtinNotRequired = ftinNotRequired; - this.ReferenceNumber = referenceNumber; - this.Giin = giin; - this.Chapter3EntityType = chapter3EntityType; - this.Chapter4FatcaStatus = chapter4FatcaStatus; - this.DisregardedEntity = disregardedEntity; - this.DisregardedEntityGiin = disregardedEntityGiin; - this.BenefitLimitation = benefitLimitation; - this.Part4SponsoringEntity = part4SponsoringEntity; - this.Part4SponsoringEntityGiin = part4SponsoringEntityGiin; - this.Part7SponsoringEntity = part7SponsoringEntity; - this.Part12IgaCountry = part12IgaCountry; - this.Part12IgaType = part12IgaType; - this.Part12FatcaStatusUnderIgaAnnexIi = part12FatcaStatusUnderIgaAnnexIi; - this.Part12TrusteeName = part12TrusteeName; - this.Part12TrusteeIsForeign = part12TrusteeIsForeign; - this.Part12Model2IgaGiin = part12Model2IgaGiin; - this.Box37AExchange = box37AExchange; - this.Box37BExchange = box37BExchange; - this.Box37BEntity = box37BEntity; - this.Part28SponsoringEntity = part28SponsoringEntity; - this.Part28SponsoringEntityGiin = part28SponsoringEntityGiin; - this.SignerName = signerName; - this.ResidenceIsMailing = residenceIsMailing; - this.CitizenshipCountry = citizenshipCountry; - this.MakingTreatyClaim = makingTreatyClaim; - this.TreatyCountry = treatyCountry; - this.TreatyArticle = treatyArticle; - this.WithholdingRate = withholdingRate; - this.IncomeType = incomeType; - this.TreatyReasons = treatyReasons; - this.CertifyBox14A = certifyBox14A; - this.CertifyBox14B = certifyBox14B; - this.CertifyBox14C = certifyBox14C; - this.CertifyBox171 = certifyBox171; - this.CertifyBox172 = certifyBox172; - this.CertifyBox18 = certifyBox18; - this.CertifyBox19 = certifyBox19; - this.CertifyBox21 = certifyBox21; - this.CertifyBox22 = certifyBox22; - this.CertifyBox23 = certifyBox23; - this.CertifyBox24A = certifyBox24A; - this.CertifyBox24B = certifyBox24B; - this.CertifyBox24C = certifyBox24C; - this.CertifyBox24D = certifyBox24D; - this.CertifyBox25A = certifyBox25A; - this.CertifyBox25B = certifyBox25B; - this.CertifyBox25C = certifyBox25C; - this.CertifyBox26 = certifyBox26; - this.CertifyBox27 = certifyBox27; - this.CertifyBox28A = certifyBox28A; - this.CertifyBox28B = certifyBox28B; - this.CertifyBox29A = certifyBox29A; - this.CertifyBox29B = certifyBox29B; - this.CertifyBox29C = certifyBox29C; - this.CertifyBox29D = certifyBox29D; - this.CertifyBox29E = certifyBox29E; - this.CertifyBox29F = certifyBox29F; - this.CertifyBox30 = certifyBox30; - this.CertifyBox31 = certifyBox31; - this.CertifyBox32 = certifyBox32; - this.CertifyBox33 = certifyBox33; - this.CertifyBox34 = certifyBox34; - this.CertifyBox35 = certifyBox35; - this.CertifyBox36 = certifyBox36; - this.CertifyBox37A = certifyBox37A; - this.CertifyBox37B = certifyBox37B; - this.CertifyBox38 = certifyBox38; - this.CertifyBox39 = certifyBox39; - this.CertifyBox40A = certifyBox40A; - this.CertifyBox40B = certifyBox40B; - this.CertifyBox40C = certifyBox40C; - this.CertifyBox41 = certifyBox41; - this.CertifyBox43 = certifyBox43; - this.CertifyPart29Signature = certifyPart29Signature; - this.Part19FormationOrResolutionDate = part19FormationOrResolutionDate; - this.Part20FilingDate = part20FilingDate; - this.Part21DeterminationDate = part21DeterminationDate; - this.SubstantialUsOwners = substantialUsOwners; - this.Birthday = birthday; - this.ForeignTinNotRequired = foreignTinNotRequired; - this.Archived = archived; + this.Id = id; + this.EntryStatus = entryStatus; + this.UpdatedAt = updatedAt; this.ReferenceId = referenceId; this.CompanyId = companyId; this.DisplayName = displayName; this.Email = email; - this.SignerCapacity = signerCapacity; - this.UpdatedAt = updatedAt; - this.Ein = ein; - this.EinType = einType; - this.CertifyBox14 = certifyBox14; - this.CertifyBox15A = certifyBox15A; - this.CertifyBox15B = certifyBox15B; - this.CertifyBox15C = certifyBox15C; - this.CertifyBox15D = certifyBox15D; - this.CertifyBox15E = certifyBox15E; - this.CertifyBox15F = certifyBox15F; - this.CertifyBox15G = certifyBox15G; - this.CertifyBox15H = certifyBox15H; - this.CertifyBox15I = certifyBox15I; - this.CertifyBox16A = certifyBox16A; - this.Box16BQddCorporate = box16BQddCorporate; - this.Box16BQddPartnership = box16BQddPartnership; - this.Box16BQddDisregardedEntity = box16BQddDisregardedEntity; - this.CertifyBox17A = certifyBox17A; - this.CertifyBox17B = certifyBox17B; - this.CertifyBox17C = certifyBox17C; - this.CertifyBox17D = certifyBox17D; - this.CertifyBox17E = certifyBox17E; - this.CertifyBox18A = certifyBox18A; - this.CertifyBox18B = certifyBox18B; - this.CertifyBox18C = certifyBox18C; - this.CertifyBox18D = certifyBox18D; - this.CertifyBox18E = certifyBox18E; - this.CertifyBox18F = certifyBox18F; - this.CertifyBox19A = certifyBox19A; - this.CertifyBox19B = certifyBox19B; - this.CertifyBox19C = certifyBox19C; - this.CertifyBox19D = certifyBox19D; - this.CertifyBox19E = certifyBox19E; - this.CertifyBox19F = certifyBox19F; - this.CertifyBox20 = certifyBox20; - this.CertifyBox21A = certifyBox21A; - this.CertifyBox21B = certifyBox21B; - this.CertifyBox21C = certifyBox21C; - this.CertifyBox21D = certifyBox21D; - this.CertifyBox21E = certifyBox21E; - this.CertifyBox21F = certifyBox21F; - this.Box23ANameSponsoringEntity = box23ANameSponsoringEntity; - this.CertifyBox23B = certifyBox23B; - this.CertifyBox23C = certifyBox23C; - this.CertifyBox25 = certifyBox25; - this.Box27ANameSponsoringEntity = box27ANameSponsoringEntity; - this.CertifyBox27B = certifyBox27B; - this.CertifyBox28 = certifyBox28; - this.CertifyBox29 = certifyBox29; - this.CertifyBox30A = certifyBox30A; - this.CertifyBox30B = certifyBox30B; - this.CertifyBox30C = certifyBox30C; - this.Box32IgaCountry = box32IgaCountry; - this.Box32IgaType = box32IgaType; - this.Box32IgaTreatedAs = box32IgaTreatedAs; - this.Box32TrusteeOrSponsor = box32TrusteeOrSponsor; - this.Box32TrusteeIsForeign = box32TrusteeIsForeign; - this.CertifyBox33A = certifyBox33A; - this.CertifyBox33B = certifyBox33B; - this.CertifyBox33C = certifyBox33C; - this.CertifyBox33D = certifyBox33D; - this.CertifyBox33E = certifyBox33E; - this.CertifyBox33F = certifyBox33F; - this.Box37ASecuritiesMarket = box37ASecuritiesMarket; - this.Box37BNameOfEntity = box37BNameOfEntity; - this.Box37BSecuritiesMarket = box37BSecuritiesMarket; - this.CertifyBox40 = certifyBox40; - this.Box41SponsoringEntity = box41SponsoringEntity; - this.CertifyBox42 = certifyBox42; - this.Box35FormedOnDate = box35FormedOnDate; - this.Box36FiledOnDate = box36FiledOnDate; - this.TinMatchStatus = tinMatchStatus; + this.Archived = archived; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; this.Signature = signature; - this.BusinessClassification = businessClassification; - this.BusinessName = businessName; - this.BusinessOther = businessOther; - this.ExemptPayeeCode = exemptPayeeCode; - this.ExemptFatcaCode = exemptFatcaCode; - this.AccountNumber = accountNumber; - this.ForeignCountryIndicator = foreignCountryIndicator; - this.ForeignAddress = foreignAddress; - this.BackupWithholding = backupWithholding; - this.Is1099able = is1099able; - this.ForeignPartnerOwnerOrBeneficiary = foreignPartnerOwnerOrBeneficiary; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; } /// @@ -627,24 +285,24 @@ public bool ShouldSerializeType() /// /// The marital status of the employee. /// Married - [DataMember(Name = "box3MaritalStatus", EmitDefaultValue = true)] - public string Box3MaritalStatus { get; set; } + [DataMember(Name = "maritalStatus", EmitDefaultValue = true)] + public string MaritalStatus { get; set; } /// /// Indicates whether the last name differs from prior records. /// /// Indicates whether the last name differs from prior records. /// false - [DataMember(Name = "box4LastNameDiffers", EmitDefaultValue = true)] - public bool? Box4LastNameDiffers { get; set; } + [DataMember(Name = "lastNameDiffers", EmitDefaultValue = true)] + public bool? LastNameDiffers { get; set; } /// /// The number of allowances claimed by the employee. /// /// The number of allowances claimed by the employee. /// 3 - [DataMember(Name = "box5NumAllowances", EmitDefaultValue = true)] - public int? Box5NumAllowances { get; set; } + [DataMember(Name = "numAllowances", EmitDefaultValue = true)] + public int? NumAllowances { get; set; } /// /// The number of dependents other than allowances. @@ -658,7 +316,7 @@ public bool ShouldSerializeType() /// The amount of non-job income. /// /// The amount of non-job income. - /// 5000.0 + /// 5000 [DataMember(Name = "nonJobIncome", EmitDefaultValue = true)] public double? NonJobIncome { get; set; } @@ -666,7 +324,7 @@ public bool ShouldSerializeType() /// The amount of deductions claimed. /// /// The amount of deductions claimed. - /// 2000.0 + /// 2000 [DataMember(Name = "deductions", EmitDefaultValue = true)] public double? Deductions { get; set; } @@ -674,17 +332,17 @@ public bool ShouldSerializeType() /// The additional amount withheld. /// /// The additional amount withheld. - /// 150.0 - [DataMember(Name = "box6AdditionalWithheld", EmitDefaultValue = true)] - public double? Box6AdditionalWithheld { get; set; } + /// 150 + [DataMember(Name = "additionalWithheld", EmitDefaultValue = true)] + public double? AdditionalWithheld { get; set; } /// /// Indicates whether the employee is exempt from withholding. /// /// Indicates whether the employee is exempt from withholding. /// false - [DataMember(Name = "box7ExemptFromWithholding", EmitDefaultValue = true)] - public bool? Box7ExemptFromWithholding { get; set; } + [DataMember(Name = "exemptFromWithholding", EmitDefaultValue = true)] + public bool? ExemptFromWithholding { get; set; } /// /// The office code associated with the form. @@ -703,1444 +361,121 @@ public bool ShouldSerializeType() public DateTime? EDeliveryConsentedAt { get; set; } /// - /// The FATCA status for disregarded entities under Chapter 4. - /// - /// The FATCA status for disregarded entities under Chapter 4. - [DataMember(Name = "disregardedEntityChapter4FatcaStatus", EmitDefaultValue = true)] - public string DisregardedEntityChapter4FatcaStatus { get; set; } - - /// - /// The name of the individual or entity associated with the form. - /// - /// The name of the individual or entity associated with the form. - /// John Doe - [DataMember(Name = "name", EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// The residential address of the individual or entity. - /// - /// The residential address of the individual or entity. - /// 321 Wealth Ave - [DataMember(Name = "residenceAddress", EmitDefaultValue = true)] - public string ResidenceAddress { get; set; } - - /// - /// The city of residence. - /// - /// The city of residence. - /// Finance City - [DataMember(Name = "residenceCity", EmitDefaultValue = true)] - public string ResidenceCity { get; set; } - - /// - /// The state of residence. - /// - /// The state of residence. - /// TX - [DataMember(Name = "residenceState", EmitDefaultValue = true)] - public string ResidenceState { get; set; } - - /// - /// The postal code of the residence. - /// - /// The postal code of the residence. - /// 75001 - [DataMember(Name = "residencePostalCode", EmitDefaultValue = true)] - public string ResidencePostalCode { get; set; } - - /// - /// The country of residence. - /// - /// The country of residence. - /// USA - [DataMember(Name = "residenceCountry", EmitDefaultValue = true)] - public string ResidenceCountry { get; set; } - - /// - /// The mailing address. - /// - /// The mailing address. - /// P.O. Box 789 - [DataMember(Name = "mailingAddress", EmitDefaultValue = true)] - public string MailingAddress { get; set; } - - /// - /// The city of the mailing address. - /// - /// The city of the mailing address. - /// Finance City - [DataMember(Name = "mailingCity", EmitDefaultValue = true)] - public string MailingCity { get; set; } - - /// - /// The state of the mailing address. - /// - /// The state of the mailing address. - /// TX - [DataMember(Name = "mailingState", EmitDefaultValue = true)] - public string MailingState { get; set; } - - /// - /// The postal code of the mailing address. - /// - /// The postal code of the mailing address. - /// 75002 - [DataMember(Name = "mailingPostalCode", EmitDefaultValue = true)] - public string MailingPostalCode { get; set; } - - /// - /// The country of the mailing address. - /// - /// The country of the mailing address. - /// USA - [DataMember(Name = "mailingCountry", EmitDefaultValue = true)] - public string MailingCountry { get; set; } - - /// - /// The address for disregarded entities. - /// - /// The address for disregarded entities. - [DataMember(Name = "disregardedAddress", EmitDefaultValue = true)] - public string DisregardedAddress { get; set; } - - /// - /// The city for disregarded entities. - /// - /// The city for disregarded entities. - [DataMember(Name = "disregardedCity", EmitDefaultValue = true)] - public string DisregardedCity { get; set; } - - /// - /// The state for disregarded entities. - /// - /// The state for disregarded entities. - [DataMember(Name = "disregardedState", EmitDefaultValue = true)] - public string DisregardedState { get; set; } - - /// - /// The postal code for disregarded entities. - /// - /// The postal code for disregarded entities. - [DataMember(Name = "disregardedPostalCode", EmitDefaultValue = true)] - public string DisregardedPostalCode { get; set; } - - /// - /// The country for disregarded entities. - /// - /// The country for disregarded entities. - [DataMember(Name = "disregardedCountry", EmitDefaultValue = true)] - public string DisregardedCountry { get; set; } - - /// - /// The foreign taxpayer identification number (TIN). - /// - /// The foreign taxpayer identification number (TIN). - [DataMember(Name = "foreignTin", EmitDefaultValue = true)] - public string ForeignTin { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "ftinNotRequired", EmitDefaultValue = true)] - public bool? FtinNotRequired { get; set; } - - /// - /// A reference number for the form. - /// - /// A reference number for the form. - /// W8IMY56789 - [DataMember(Name = "referenceNumber", EmitDefaultValue = true)] - public string ReferenceNumber { get; set; } - - /// - /// The global intermediary identification number (GIIN). - /// - /// The global intermediary identification number (GIIN). - [DataMember(Name = "giin", EmitDefaultValue = true)] - public string Giin { get; set; } - - /// - /// The Chapter 3 entity type. - /// - /// The Chapter 3 entity type. - /// Partnership - [DataMember(Name = "chapter3EntityType", EmitDefaultValue = true)] - public string Chapter3EntityType { get; set; } - - /// - /// The Chapter 4 FATCA status. - /// - /// The Chapter 4 FATCA status. - /// Compliant - [DataMember(Name = "chapter4FatcaStatus", EmitDefaultValue = true)] - public string Chapter4FatcaStatus { get; set; } - - /// - /// The disregarded entity information. - /// - /// The disregarded entity information. - /// Subsidiary Finance - [DataMember(Name = "disregardedEntity", EmitDefaultValue = true)] - public string DisregardedEntity { get; set; } - - /// - /// The GIIN for disregarded entities. - /// - /// The GIIN for disregarded entities. - /// GIIN78901234 - [DataMember(Name = "disregardedEntityGiin", EmitDefaultValue = true)] - public string DisregardedEntityGiin { get; set; } - - /// - /// The benefit limitation for tax treaty claims. - /// - /// The benefit limitation for tax treaty claims. - /// Treaty Benefit - [DataMember(Name = "benefitLimitation", EmitDefaultValue = true)] - public string BenefitLimitation { get; set; } - - /// - /// The sponsoring entity information for Part 4. - /// - /// The sponsoring entity information for Part 4. - /// Parent Company - [DataMember(Name = "part4SponsoringEntity", EmitDefaultValue = true)] - public string Part4SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 4. - /// - /// The GIIN for the sponsoring entity in Part 4. - /// GIIN11223344 - [DataMember(Name = "part4SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part4SponsoringEntityGiin { get; set; } - - /// - /// The sponsoring entity information for Part 7. - /// - /// The sponsoring entity information for Part 7. - /// Affiliated Organization - [DataMember(Name = "part7SponsoringEntity", EmitDefaultValue = true)] - public string Part7SponsoringEntity { get; set; } - - /// - /// The IGA country information for Part 12. - /// - /// The IGA country information for Part 12. - /// USA - [DataMember(Name = "part12IgaCountry", EmitDefaultValue = true)] - public string Part12IgaCountry { get; set; } - - /// - /// The IGA type information for Part 12. - /// - /// The IGA type information for Part 12. - /// Model 1 - [DataMember(Name = "part12IgaType", EmitDefaultValue = true)] - public string Part12IgaType { get; set; } - - /// - /// The FATCA status under IGA Annex II for Part 12. - /// - /// The FATCA status under IGA Annex II for Part 12. - /// Registered Deemed Compliant - [DataMember(Name = "part12FatcaStatusUnderIgaAnnexIi", EmitDefaultValue = true)] - public string Part12FatcaStatusUnderIgaAnnexIi { get; set; } - - /// - /// The trustee name for Part 12. - /// - /// The trustee name for Part 12. - /// Trustee Inc. - [DataMember(Name = "part12TrusteeName", EmitDefaultValue = true)] - public string Part12TrusteeName { get; set; } - - /// - /// Indicates whether the trustee is foreign for Part 12. - /// - /// Indicates whether the trustee is foreign for Part 12. - /// false - [DataMember(Name = "part12TrusteeIsForeign", EmitDefaultValue = true)] - public bool? Part12TrusteeIsForeign { get; set; } - - /// - /// The GIIN for Model 2 IGA in Part 12. - /// - /// The GIIN for Model 2 IGA in Part 12. - /// GIIN33445566 - [DataMember(Name = "part12Model2IgaGiin", EmitDefaultValue = true)] - public string Part12Model2IgaGiin { get; set; } - - /// - /// The exchange information for Box 37A. - /// - /// The exchange information for Box 37A. - /// NYSE - [DataMember(Name = "box37AExchange", EmitDefaultValue = true)] - public string Box37AExchange { get; set; } - - /// - /// The exchange information for Box 37B. - /// - /// The exchange information for Box 37B. - /// NASDAQ - [DataMember(Name = "box37BExchange", EmitDefaultValue = true)] - public string Box37BExchange { get; set; } - - /// - /// The entity information for Box 37B. - /// - /// The entity information for Box 37B. - /// Trading Partner - [DataMember(Name = "box37BEntity", EmitDefaultValue = true)] - public string Box37BEntity { get; set; } - - /// - /// The sponsoring entity information for Part 28. - /// - /// The sponsoring entity information for Part 28. - /// Global Trust - [DataMember(Name = "part28SponsoringEntity", EmitDefaultValue = true)] - public string Part28SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 28. - /// - /// The GIIN for the sponsoring entity in Part 28. - /// GIIN99887766 - [DataMember(Name = "part28SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part28SponsoringEntityGiin { get; set; } - - /// - /// The name of the signer of the form. - /// - /// The name of the signer of the form. - /// Richard Roe - [DataMember(Name = "signerName", EmitDefaultValue = true)] - public string SignerName { get; set; } - - /// - /// Indicates whether the residence address is also the mailing address. - /// - /// Indicates whether the residence address is also the mailing address. - /// false - [DataMember(Name = "residenceIsMailing", EmitDefaultValue = true)] - public bool ResidenceIsMailing { get; set; } - - /// - /// The country of citizenship. - /// - /// The country of citizenship. - /// USA - [DataMember(Name = "citizenshipCountry", EmitDefaultValue = true)] - public string CitizenshipCountry { get; set; } - - /// - /// Gets or Sets MakingTreatyClaim - /// - /// false - [DataMember(Name = "makingTreatyClaim", EmitDefaultValue = true)] - public bool? MakingTreatyClaim { get; set; } - - /// - /// The country for which the treaty applies. - /// - /// The country for which the treaty applies. - /// Canada - [DataMember(Name = "treatyCountry", EmitDefaultValue = true)] - public string TreatyCountry { get; set; } - - /// - /// The specific article of the treaty being claimed. - /// - /// The specific article of the treaty being claimed. - /// Article 12 - [DataMember(Name = "treatyArticle", EmitDefaultValue = true)] - public string TreatyArticle { get; set; } - - /// - /// The withholding rate applied as per the treaty. - /// - /// The withholding rate applied as per the treaty. - /// 15% - [DataMember(Name = "withholdingRate", EmitDefaultValue = true)] - public string WithholdingRate { get; set; } - - /// - /// The type of income covered by the treaty. - /// - /// The type of income covered by the treaty. - /// Dividend - [DataMember(Name = "incomeType", EmitDefaultValue = true)] - public string IncomeType { get; set; } - - /// - /// The reasons for claiming treaty benefits. - /// - /// The reasons for claiming treaty benefits. - /// Reduced withholding - [DataMember(Name = "treatyReasons", EmitDefaultValue = true)] - public string TreatyReasons { get; set; } - - /// - /// Gets or Sets CertifyBox14A - /// - /// false - [DataMember(Name = "certifyBox14A", EmitDefaultValue = true)] - public bool CertifyBox14A { get; set; } - - /// - /// Gets or Sets CertifyBox14B - /// - /// false - [DataMember(Name = "certifyBox14B", EmitDefaultValue = true)] - public bool CertifyBox14B { get; set; } - - /// - /// Gets or Sets CertifyBox14C - /// - /// false - [DataMember(Name = "certifyBox14C", EmitDefaultValue = true)] - public bool CertifyBox14C { get; set; } - - /// - /// Gets or Sets CertifyBox171 - /// - /// false - [DataMember(Name = "certifyBox17_1", EmitDefaultValue = true)] - public bool CertifyBox171 { get; set; } - - /// - /// Gets or Sets CertifyBox172 - /// - /// false - [DataMember(Name = "certifyBox17_2", EmitDefaultValue = true)] - public bool CertifyBox172 { get; set; } - - /// - /// Gets or Sets CertifyBox18 - /// - /// false - [DataMember(Name = "certifyBox18", EmitDefaultValue = true)] - public bool CertifyBox18 { get; set; } - - /// - /// Gets or Sets CertifyBox19 - /// - /// false - [DataMember(Name = "certifyBox19", EmitDefaultValue = true)] - public bool CertifyBox19 { get; set; } - - /// - /// Gets or Sets CertifyBox21 - /// - /// false - [DataMember(Name = "certifyBox21", EmitDefaultValue = true)] - public bool CertifyBox21 { get; set; } - - /// - /// Indicates certification for box 22. - /// - /// Indicates certification for box 22. - /// false - [DataMember(Name = "certifyBox22", EmitDefaultValue = true)] - public bool CertifyBox22 { get; set; } - - /// - /// Gets or Sets CertifyBox23 - /// - /// false - [DataMember(Name = "certifyBox23", EmitDefaultValue = true)] - public bool CertifyBox23 { get; set; } - - /// - /// Indicates certification for box 24A. - /// - /// Indicates certification for box 24A. - /// false - [DataMember(Name = "certifyBox24A", EmitDefaultValue = true)] - public bool CertifyBox24A { get; set; } - - /// - /// Indicates certification for box 24B. - /// - /// Indicates certification for box 24B. - /// false - [DataMember(Name = "certifyBox24B", EmitDefaultValue = true)] - public bool CertifyBox24B { get; set; } - - /// - /// Indicates certification for box 24C. - /// - /// Indicates certification for box 24C. - /// false - [DataMember(Name = "certifyBox24C", EmitDefaultValue = true)] - public bool CertifyBox24C { get; set; } - - /// - /// Gets or Sets CertifyBox24D + /// Gets or Sets Id /// - /// false - [DataMember(Name = "certifyBox24D", EmitDefaultValue = true)] - public bool CertifyBox24D { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets CertifyBox25A + /// Gets or Sets EntryStatus /// - /// false - [DataMember(Name = "certifyBox25A", EmitDefaultValue = true)] - public bool CertifyBox25A { get; set; } + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } /// - /// Gets or Sets CertifyBox25B + /// The last updated date of the form. /// - /// false - [DataMember(Name = "certifyBox25B", EmitDefaultValue = true)] - public bool CertifyBox25B { get; set; } + /// The last updated date of the form. + [DataMember(Name = "updatedAt", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } /// - /// Gets or Sets CertifyBox25C + /// A reference identifier for the form. /// - /// false - [DataMember(Name = "certifyBox25C", EmitDefaultValue = true)] - public bool CertifyBox25C { get; set; } + /// A reference identifier for the form. + [DataMember(Name = "referenceId", EmitDefaultValue = true)] + public string ReferenceId { get; set; } /// - /// Indicates certification for box 26. + /// The ID of the associated company. /// - /// Indicates certification for box 26. - /// false - [DataMember(Name = "certifyBox26", EmitDefaultValue = true)] - public bool CertifyBox26 { get; set; } + /// The ID of the associated company. + [DataMember(Name = "companyId", EmitDefaultValue = true)] + public string CompanyId { get; set; } /// - /// Gets or Sets CertifyBox27 + /// The display name associated with the form. /// - /// false - [DataMember(Name = "certifyBox27", EmitDefaultValue = true)] - public bool CertifyBox27 { get; set; } + /// The display name associated with the form. + [DataMember(Name = "displayName", EmitDefaultValue = true)] + public string DisplayName { get; set; } /// - /// Gets or Sets CertifyBox28A + /// The email address of the individual associated with the form. /// - /// false - [DataMember(Name = "certifyBox28A", EmitDefaultValue = true)] - public bool CertifyBox28A { get; set; } + /// The email address of the individual associated with the form. + [DataMember(Name = "email", EmitDefaultValue = true)] + public string Email { get; set; } /// - /// Gets or Sets CertifyBox28B + /// Indicates whether the form is archived. /// - /// false - [DataMember(Name = "certifyBox28B", EmitDefaultValue = true)] - public bool CertifyBox28B { get; set; } + /// Indicates whether the form is archived. + [DataMember(Name = "archived", EmitDefaultValue = true)] + public bool? Archived { get; set; } /// - /// Gets or Sets CertifyBox29A + /// Gets or Sets EntryStatusDate /// - /// false - [DataMember(Name = "certifyBox29A", EmitDefaultValue = true)] - public bool CertifyBox29A { get; set; } + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } /// - /// Gets or Sets CertifyBox29B + /// Gets or Sets PdfJson /// - /// false - [DataMember(Name = "certifyBox29B", EmitDefaultValue = true)] - public bool CertifyBox29B { get; set; } + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } /// - /// Gets or Sets CertifyBox29C + /// Gets or Sets PdfVersion /// - /// false - [DataMember(Name = "certifyBox29C", EmitDefaultValue = true)] - public bool CertifyBox29C { get; set; } + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } /// - /// Gets or Sets CertifyBox29D + /// Gets or Sets RequestToken /// - /// false - [DataMember(Name = "certifyBox29D", EmitDefaultValue = true)] - public bool CertifyBox29D { get; set; } + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } /// - /// Gets or Sets CertifyBox29E + /// Gets or Sets Signature /// - /// false - [DataMember(Name = "certifyBox29E", EmitDefaultValue = true)] - public bool CertifyBox29E { get; set; } + [DataMember(Name = "signature", EmitDefaultValue = true)] + public string Signature { get; set; } /// - /// Gets or Sets CertifyBox29F + /// Gets or Sets Mobile /// - /// false - [DataMember(Name = "certifyBox29F", EmitDefaultValue = true)] - public bool CertifyBox29F { get; set; } + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } /// - /// Gets or Sets CertifyBox30 + /// Gets or Sets AppVersion /// - /// false - [DataMember(Name = "certifyBox30", EmitDefaultValue = true)] - public bool CertifyBox30 { get; set; } + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } /// - /// Indicates certification for box 31. + /// Gets or Sets Platform /// - /// Indicates certification for box 31. - /// false - [DataMember(Name = "certifyBox31", EmitDefaultValue = true)] - public bool CertifyBox31 { get; set; } + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } /// - /// Indicates certification for box 32. + /// Gets or Sets OsVersion /// - /// Indicates certification for box 32. - /// false - [DataMember(Name = "certifyBox32", EmitDefaultValue = true)] - public bool CertifyBox32 { get; set; } + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } /// - /// Gets or Sets CertifyBox33 + /// Gets or Sets AncestorId /// - /// false - [DataMember(Name = "certifyBox33", EmitDefaultValue = true)] - public bool CertifyBox33 { get; set; } + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } /// - /// Indicates certification for box 34. - /// - /// Indicates certification for box 34. - /// false - [DataMember(Name = "certifyBox34", EmitDefaultValue = true)] - public bool CertifyBox34 { get; set; } - - /// - /// Indicates certification for box 35. - /// - /// Indicates certification for box 35. - /// false - [DataMember(Name = "certifyBox35", EmitDefaultValue = true)] - public bool CertifyBox35 { get; set; } - - /// - /// Indicates certification for box 36. - /// - /// Indicates certification for box 36. - /// false - [DataMember(Name = "certifyBox36", EmitDefaultValue = true)] - public bool CertifyBox36 { get; set; } - - /// - /// Indicates certification for box 37A. - /// - /// Indicates certification for box 37A. - /// false - [DataMember(Name = "certifyBox37A", EmitDefaultValue = true)] - public bool CertifyBox37A { get; set; } - - /// - /// Indicates certification for box 37B. - /// - /// Indicates certification for box 37B. - /// false - [DataMember(Name = "certifyBox37B", EmitDefaultValue = true)] - public bool CertifyBox37B { get; set; } - - /// - /// Indicates certification for box 38. - /// - /// Indicates certification for box 38. - /// false - [DataMember(Name = "certifyBox38", EmitDefaultValue = true)] - public bool CertifyBox38 { get; set; } - - /// - /// Indicates certification for box 39. - /// - /// Indicates certification for box 39. - /// false - [DataMember(Name = "certifyBox39", EmitDefaultValue = true)] - public bool CertifyBox39 { get; set; } - - /// - /// Gets or Sets CertifyBox40A - /// - /// false - [DataMember(Name = "certifyBox40A", EmitDefaultValue = true)] - public bool CertifyBox40A { get; set; } - - /// - /// Gets or Sets CertifyBox40B - /// - /// false - [DataMember(Name = "certifyBox40B", EmitDefaultValue = true)] - public bool CertifyBox40B { get; set; } - - /// - /// Gets or Sets CertifyBox40C - /// - /// false - [DataMember(Name = "certifyBox40C", EmitDefaultValue = true)] - public bool CertifyBox40C { get; set; } - - /// - /// Gets or Sets CertifyBox41 - /// - /// false - [DataMember(Name = "certifyBox41", EmitDefaultValue = true)] - public bool CertifyBox41 { get; set; } - - /// - /// Gets or Sets CertifyBox43 - /// - /// false - [DataMember(Name = "certifyBox43", EmitDefaultValue = true)] - public bool CertifyBox43 { get; set; } - - /// - /// Gets or Sets CertifyPart29Signature - /// - /// false - [DataMember(Name = "certifyPart29Signature", EmitDefaultValue = true)] - public bool CertifyPart29Signature { get; set; } - - /// - /// Gets or Sets Part19FormationOrResolutionDate - /// - [DataMember(Name = "part19FormationOrResolutionDate", EmitDefaultValue = true)] - public DateTime? Part19FormationOrResolutionDate { get; set; } - - /// - /// Gets or Sets Part20FilingDate - /// - [DataMember(Name = "part20FilingDate", EmitDefaultValue = true)] - public DateTime? Part20FilingDate { get; set; } - - /// - /// Gets or Sets Part21DeterminationDate - /// - [DataMember(Name = "part21DeterminationDate", EmitDefaultValue = true)] - public DateTime? Part21DeterminationDate { get; set; } - - /// - /// Gets or Sets SubstantialUsOwners - /// - /// [] - [DataMember(Name = "substantialUsOwners", EmitDefaultValue = false)] - public List SubstantialUsOwners { get; set; } - - /// - /// The birthday of the individual associated with the form. - /// - /// The birthday of the individual associated with the form. - [DataMember(Name = "birthday", EmitDefaultValue = true)] - public string Birthday { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "foreignTinNotRequired", EmitDefaultValue = true)] - public bool? ForeignTinNotRequired { get; set; } - - /// - /// Indicates whether the form is archived. - /// - /// Indicates whether the form is archived. - /// false - [DataMember(Name = "archived", EmitDefaultValue = true)] - public bool? Archived { get; set; } - - /// - /// A reference identifier for the form. - /// - /// A reference identifier for the form. - /// REF67890 - [DataMember(Name = "referenceId", EmitDefaultValue = true)] - public string ReferenceId { get; set; } - - /// - /// The ID of the associated company. - /// - /// The ID of the associated company. - /// 4004 - [DataMember(Name = "companyId", EmitDefaultValue = true)] - public int? CompanyId { get; set; } - - /// - /// The display name associated with the form. - /// - /// The display name associated with the form. - /// Global Financials - [DataMember(Name = "displayName", EmitDefaultValue = true)] - public string DisplayName { get; set; } - - /// - /// The email address of the individual associated with the form. - /// - /// The email address of the individual associated with the form. - /// contact@globalfinancials.com - [DataMember(Name = "email", EmitDefaultValue = true)] - public string Email { get; set; } - - /// - /// The capacity in which the signer is signing the form. - /// - /// The capacity in which the signer is signing the form. - /// Authorized Representative - [DataMember(Name = "signerCapacity", EmitDefaultValue = true)] - public string SignerCapacity { get; set; } - - /// - /// The last updated date of the form. - /// - /// The last updated date of the form. - /// 2023-06-20T14:30Z - [DataMember(Name = "updatedAt", EmitDefaultValue = true)] - public DateTime? UpdatedAt { get; set; } - - /// - /// The employer identification number (EIN). - /// - /// The employer identification number (EIN). - [DataMember(Name = "ein", EmitDefaultValue = true)] - public string Ein { get; set; } - - /// - /// The type of employer identification number (EIN). - /// - /// The type of employer identification number (EIN). - [DataMember(Name = "einType", EmitDefaultValue = true)] - public string EinType { get; set; } - - /// - /// Indicates certification for box 14. - /// - /// Indicates certification for box 14. - /// false - [DataMember(Name = "certifyBox14", EmitDefaultValue = true)] - public bool CertifyBox14 { get; set; } - - /// - /// Indicates certification for box 15A. - /// - /// Indicates certification for box 15A. - /// false - [DataMember(Name = "certifyBox15A", EmitDefaultValue = true)] - public bool CertifyBox15A { get; set; } - - /// - /// Indicates certification for box 15B. - /// - /// Indicates certification for box 15B. - /// false - [DataMember(Name = "certifyBox15B", EmitDefaultValue = true)] - public bool CertifyBox15B { get; set; } - - /// - /// Indicates certification for box 15C. - /// - /// Indicates certification for box 15C. - /// false - [DataMember(Name = "certifyBox15C", EmitDefaultValue = true)] - public bool CertifyBox15C { get; set; } - - /// - /// Indicates certification for box 15D. - /// - /// Indicates certification for box 15D. - /// false - [DataMember(Name = "certifyBox15D", EmitDefaultValue = true)] - public bool CertifyBox15D { get; set; } - - /// - /// Indicates certification for box 15E. - /// - /// Indicates certification for box 15E. - /// false - [DataMember(Name = "certifyBox15E", EmitDefaultValue = true)] - public bool CertifyBox15E { get; set; } - - /// - /// Indicates certification for box 15F. - /// - /// Indicates certification for box 15F. - /// false - [DataMember(Name = "certifyBox15F", EmitDefaultValue = true)] - public bool CertifyBox15F { get; set; } - - /// - /// Indicates certification for box 15G. - /// - /// Indicates certification for box 15G. - /// false - [DataMember(Name = "certifyBox15G", EmitDefaultValue = true)] - public bool CertifyBox15G { get; set; } - - /// - /// Indicates certification for box 15H. - /// - /// Indicates certification for box 15H. - /// false - [DataMember(Name = "certifyBox15H", EmitDefaultValue = true)] - public bool CertifyBox15H { get; set; } - - /// - /// Indicates certification for box 15I. - /// - /// Indicates certification for box 15I. - /// false - [DataMember(Name = "certifyBox15I", EmitDefaultValue = true)] - public bool CertifyBox15I { get; set; } - - /// - /// Indicates certification for box 16A. - /// - /// Indicates certification for box 16A. - /// false - [DataMember(Name = "certifyBox16A", EmitDefaultValue = true)] - public bool CertifyBox16A { get; set; } - - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// false - [DataMember(Name = "box16BQddCorporate", EmitDefaultValue = true)] - public bool Box16BQddCorporate { get; set; } - - /// - /// Indicates certification for box 16B as a QDD partnership. - /// - /// Indicates certification for box 16B as a QDD partnership. - /// false - [DataMember(Name = "box16BQddPartnership", EmitDefaultValue = true)] - public bool Box16BQddPartnership { get; set; } - - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// false - [DataMember(Name = "box16BQddDisregardedEntity", EmitDefaultValue = true)] - public bool Box16BQddDisregardedEntity { get; set; } - - /// - /// Indicates certification for box 17A. - /// - /// Indicates certification for box 17A. - /// false - [DataMember(Name = "certifyBox17A", EmitDefaultValue = true)] - public bool CertifyBox17A { get; set; } - - /// - /// Indicates certification for box 17B. - /// - /// Indicates certification for box 17B. - /// false - [DataMember(Name = "certifyBox17B", EmitDefaultValue = true)] - public bool CertifyBox17B { get; set; } - - /// - /// Indicates certification for box 17C. - /// - /// Indicates certification for box 17C. - /// false - [DataMember(Name = "certifyBox17C", EmitDefaultValue = true)] - public bool CertifyBox17C { get; set; } - - /// - /// Indicates certification for box 17D. - /// - /// Indicates certification for box 17D. - /// false - [DataMember(Name = "certifyBox17D", EmitDefaultValue = true)] - public bool CertifyBox17D { get; set; } - - /// - /// Indicates certification for box 17E. - /// - /// Indicates certification for box 17E. - /// false - [DataMember(Name = "certifyBox17E", EmitDefaultValue = true)] - public bool CertifyBox17E { get; set; } - - /// - /// Indicates certification for box 18A. - /// - /// Indicates certification for box 18A. - /// false - [DataMember(Name = "certifyBox18A", EmitDefaultValue = true)] - public bool CertifyBox18A { get; set; } - - /// - /// Indicates certification for box 18B. - /// - /// Indicates certification for box 18B. - /// false - [DataMember(Name = "certifyBox18B", EmitDefaultValue = true)] - public bool CertifyBox18B { get; set; } - - /// - /// Indicates certification for box 18C. - /// - /// Indicates certification for box 18C. - /// false - [DataMember(Name = "certifyBox18C", EmitDefaultValue = true)] - public bool CertifyBox18C { get; set; } - - /// - /// Indicates certification for box 18D. - /// - /// Indicates certification for box 18D. - /// false - [DataMember(Name = "certifyBox18D", EmitDefaultValue = true)] - public bool CertifyBox18D { get; set; } - - /// - /// Indicates certification for box 18E. - /// - /// Indicates certification for box 18E. - /// false - [DataMember(Name = "certifyBox18E", EmitDefaultValue = true)] - public bool CertifyBox18E { get; set; } - - /// - /// Indicates certification for box 18F. - /// - /// Indicates certification for box 18F. - /// false - [DataMember(Name = "certifyBox18F", EmitDefaultValue = true)] - public bool CertifyBox18F { get; set; } - - /// - /// Indicates certification for box 19A. - /// - /// Indicates certification for box 19A. - /// false - [DataMember(Name = "certifyBox19A", EmitDefaultValue = true)] - public bool CertifyBox19A { get; set; } - - /// - /// Indicates certification for box 19B. - /// - /// Indicates certification for box 19B. - /// false - [DataMember(Name = "certifyBox19B", EmitDefaultValue = true)] - public bool CertifyBox19B { get; set; } - - /// - /// Indicates certification for box 19C. - /// - /// Indicates certification for box 19C. - /// false - [DataMember(Name = "certifyBox19C", EmitDefaultValue = true)] - public bool CertifyBox19C { get; set; } - - /// - /// Indicates certification for box 19D. - /// - /// Indicates certification for box 19D. - /// false - [DataMember(Name = "certifyBox19D", EmitDefaultValue = true)] - public bool CertifyBox19D { get; set; } - - /// - /// Indicates certification for box 19E. - /// - /// Indicates certification for box 19E. - /// false - [DataMember(Name = "certifyBox19E", EmitDefaultValue = true)] - public bool CertifyBox19E { get; set; } - - /// - /// Indicates certification for box 19F. - /// - /// Indicates certification for box 19F. - /// false - [DataMember(Name = "certifyBox19F", EmitDefaultValue = true)] - public bool CertifyBox19F { get; set; } - - /// - /// Indicates certification for box 20. - /// - /// Indicates certification for box 20. - /// false - [DataMember(Name = "certifyBox20", EmitDefaultValue = true)] - public bool CertifyBox20 { get; set; } - - /// - /// Indicates certification for box 21A. - /// - /// Indicates certification for box 21A. - /// false - [DataMember(Name = "certifyBox21A", EmitDefaultValue = true)] - public bool CertifyBox21A { get; set; } - - /// - /// Indicates certification for box 21B. - /// - /// Indicates certification for box 21B. - /// false - [DataMember(Name = "certifyBox21B", EmitDefaultValue = true)] - public bool CertifyBox21B { get; set; } - - /// - /// Indicates certification for box 21C. - /// - /// Indicates certification for box 21C. - /// false - [DataMember(Name = "certifyBox21C", EmitDefaultValue = true)] - public bool CertifyBox21C { get; set; } - - /// - /// Indicates certification for box 21D. - /// - /// Indicates certification for box 21D. - /// false - [DataMember(Name = "certifyBox21D", EmitDefaultValue = true)] - public bool CertifyBox21D { get; set; } - - /// - /// Indicates certification for box 21E. - /// - /// Indicates certification for box 21E. - /// false - [DataMember(Name = "certifyBox21E", EmitDefaultValue = true)] - public bool CertifyBox21E { get; set; } - - /// - /// Indicates certification for box 21F. - /// - /// Indicates certification for box 21F. - /// false - [DataMember(Name = "certifyBox21F", EmitDefaultValue = true)] - public bool CertifyBox21F { get; set; } - - /// - /// The name of the sponsoring entity for box 23A. - /// - /// The name of the sponsoring entity for box 23A. - [DataMember(Name = "box23ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box23ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 23B. - /// - /// Indicates certification for box 23B. - /// false - [DataMember(Name = "certifyBox23B", EmitDefaultValue = true)] - public bool CertifyBox23B { get; set; } - - /// - /// Indicates certification for box 23C. - /// - /// Indicates certification for box 23C. - /// false - [DataMember(Name = "certifyBox23C", EmitDefaultValue = true)] - public bool CertifyBox23C { get; set; } - - /// - /// Indicates certification for box 25. - /// - /// Indicates certification for box 25. - /// false - [DataMember(Name = "certifyBox25", EmitDefaultValue = true)] - public bool CertifyBox25 { get; set; } - - /// - /// The name of the sponsoring entity for box 27A. - /// - /// The name of the sponsoring entity for box 27A. - [DataMember(Name = "box27ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box27ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 27B. - /// - /// Indicates certification for box 27B. - /// false - [DataMember(Name = "certifyBox27B", EmitDefaultValue = true)] - public bool CertifyBox27B { get; set; } - - /// - /// Indicates certification for box 28. - /// - /// Indicates certification for box 28. - /// false - [DataMember(Name = "certifyBox28", EmitDefaultValue = true)] - public bool CertifyBox28 { get; set; } - - /// - /// Indicates certification for box 29. - /// - /// Indicates certification for box 29. - /// false - [DataMember(Name = "certifyBox29", EmitDefaultValue = true)] - public bool CertifyBox29 { get; set; } - - /// - /// Indicates certification for box 30A. - /// - /// Indicates certification for box 30A. - /// false - [DataMember(Name = "certifyBox30A", EmitDefaultValue = true)] - public bool CertifyBox30A { get; set; } - - /// - /// Indicates certification for box 30B. - /// - /// Indicates certification for box 30B. - /// false - [DataMember(Name = "certifyBox30B", EmitDefaultValue = true)] - public bool CertifyBox30B { get; set; } - - /// - /// Indicates certification for box 30C. - /// - /// Indicates certification for box 30C. - /// false - [DataMember(Name = "certifyBox30C", EmitDefaultValue = true)] - public bool CertifyBox30C { get; set; } - - /// - /// The IGA country information for box 32. - /// - /// The IGA country information for box 32. - [DataMember(Name = "box32IgaCountry", EmitDefaultValue = true)] - public string Box32IgaCountry { get; set; } - - /// - /// The IGA type information for box 32. - /// - /// The IGA type information for box 32. - [DataMember(Name = "box32IgaType", EmitDefaultValue = true)] - public string Box32IgaType { get; set; } - - /// - /// The IGA treatment information for box 32. - /// - /// The IGA treatment information for box 32. - [DataMember(Name = "box32IgaTreatedAs", EmitDefaultValue = true)] - public string Box32IgaTreatedAs { get; set; } - - /// - /// The trustee or sponsor information for box 32. - /// - /// The trustee or sponsor information for box 32. - [DataMember(Name = "box32TrusteeOrSponsor", EmitDefaultValue = true)] - public string Box32TrusteeOrSponsor { get; set; } - - /// - /// Indicates whether the trustee is foreign for box 32. - /// - /// Indicates whether the trustee is foreign for box 32. - /// false - [DataMember(Name = "box32TrusteeIsForeign", EmitDefaultValue = true)] - public bool Box32TrusteeIsForeign { get; set; } - - /// - /// Indicates certification for box 33A. - /// - /// Indicates certification for box 33A. - /// false - [DataMember(Name = "certifyBox33A", EmitDefaultValue = true)] - public bool CertifyBox33A { get; set; } - - /// - /// Indicates certification for box 33B. - /// - /// Indicates certification for box 33B. - /// false - [DataMember(Name = "certifyBox33B", EmitDefaultValue = true)] - public bool CertifyBox33B { get; set; } - - /// - /// Indicates certification for box 33C. - /// - /// Indicates certification for box 33C. - /// false - [DataMember(Name = "certifyBox33C", EmitDefaultValue = true)] - public bool CertifyBox33C { get; set; } - - /// - /// Indicates certification for box 33D. - /// - /// Indicates certification for box 33D. - /// false - [DataMember(Name = "certifyBox33D", EmitDefaultValue = true)] - public bool CertifyBox33D { get; set; } - - /// - /// Indicates certification for box 33E. - /// - /// Indicates certification for box 33E. - /// false - [DataMember(Name = "certifyBox33E", EmitDefaultValue = true)] - public bool CertifyBox33E { get; set; } - - /// - /// Indicates certification for box 33F. - /// - /// Indicates certification for box 33F. - /// false - [DataMember(Name = "certifyBox33F", EmitDefaultValue = true)] - public bool CertifyBox33F { get; set; } - - /// - /// The securities market information for box 37A. - /// - /// The securities market information for box 37A. - [DataMember(Name = "box37ASecuritiesMarket", EmitDefaultValue = true)] - public string Box37ASecuritiesMarket { get; set; } - - /// - /// The name of the entity for box 37B. - /// - /// The name of the entity for box 37B. - [DataMember(Name = "box37BNameOfEntity", EmitDefaultValue = true)] - public string Box37BNameOfEntity { get; set; } - - /// - /// The securities market information for box 37B. - /// - /// The securities market information for box 37B. - [DataMember(Name = "box37BSecuritiesMarket", EmitDefaultValue = true)] - public string Box37BSecuritiesMarket { get; set; } - - /// - /// Indicates certification for box 40. - /// - /// Indicates certification for box 40. - /// false - [DataMember(Name = "certifyBox40", EmitDefaultValue = true)] - public bool CertifyBox40 { get; set; } - - /// - /// The sponsoring entity information for box 41. - /// - /// The sponsoring entity information for box 41. - [DataMember(Name = "box41SponsoringEntity", EmitDefaultValue = true)] - public string Box41SponsoringEntity { get; set; } - - /// - /// Indicates certification for box 42. - /// - /// Indicates certification for box 42. - /// false - [DataMember(Name = "certifyBox42", EmitDefaultValue = true)] - public bool CertifyBox42 { get; set; } - - /// - /// Gets or Sets Box35FormedOnDate - /// - [DataMember(Name = "box35FormedOnDate", EmitDefaultValue = true)] - public DateTime? Box35FormedOnDate { get; set; } - - /// - /// Gets or Sets Box36FiledOnDate - /// - [DataMember(Name = "box36FiledOnDate", EmitDefaultValue = true)] - public DateTime? Box36FiledOnDate { get; set; } - - /// - /// The status of the TIN match. - /// - /// The status of the TIN match. - /// Match - [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] - public string TinMatchStatus { get; set; } - - /// - /// The signature itself - /// - /// The signature itself - [DataMember(Name = "signature", EmitDefaultValue = true)] - public string Signature { get; set; } - - /// - /// The classification of the business. - /// - /// The classification of the business. - /// LLC - [DataMember(Name = "businessClassification", EmitDefaultValue = true)] - public string BusinessClassification { get; set; } - - /// - /// The name of the business associated with the form. - /// - /// The name of the business associated with the form. - /// Doe Enterprises - [DataMember(Name = "businessName", EmitDefaultValue = true)] - public string BusinessName { get; set; } - - /// - /// Gets or Sets BusinessOther - /// - [DataMember(Name = "businessOther", EmitDefaultValue = true)] - public string BusinessOther { get; set; } - - /// - /// Gets or Sets ExemptPayeeCode - /// - [DataMember(Name = "exemptPayeeCode", EmitDefaultValue = true)] - public string ExemptPayeeCode { get; set; } - - /// - /// Gets or Sets ExemptFatcaCode - /// - [DataMember(Name = "exemptFatcaCode", EmitDefaultValue = true)] - public string ExemptFatcaCode { get; set; } - - /// - /// The account number associated with the form. - /// - /// The account number associated with the form. - /// ACC123456 - [DataMember(Name = "accountNumber", EmitDefaultValue = true)] - public string AccountNumber { get; set; } - - /// - /// Indicates whether the individual or entity is in a foreign country. - /// - /// Indicates whether the individual or entity is in a foreign country. - /// false - [DataMember(Name = "foreignCountryIndicator", EmitDefaultValue = true)] - public bool? ForeignCountryIndicator { get; set; } - - /// - /// The foreign address of the individual or entity. - /// - /// The foreign address of the individual or entity. - [DataMember(Name = "foreignAddress", EmitDefaultValue = true)] - public string ForeignAddress { get; set; } - - /// - /// Indicates whether backup withholding applies. - /// - /// Indicates whether backup withholding applies. - /// false - [DataMember(Name = "backupWithholding", EmitDefaultValue = true)] - public bool? BackupWithholding { get; set; } - - /// - /// Gets or Sets Is1099able - /// - [DataMember(Name = "is1099able", EmitDefaultValue = true)] - public bool? Is1099able { get; set; } - - /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// false - [DataMember(Name = "foreignPartnerOwnerOrBeneficiary", EmitDefaultValue = true)] - public bool? ForeignPartnerOwnerOrBeneficiary { get; set; } - - /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() @@ -2160,205 +495,34 @@ public override string ToString() sb.Append(" Zip: ").Append(Zip).Append("\n"); sb.Append(" TypeOfTin: ").Append(TypeOfTin).Append("\n"); sb.Append(" Tin: ").Append(Tin).Append("\n"); - sb.Append(" Box3MaritalStatus: ").Append(Box3MaritalStatus).Append("\n"); - sb.Append(" Box4LastNameDiffers: ").Append(Box4LastNameDiffers).Append("\n"); - sb.Append(" Box5NumAllowances: ").Append(Box5NumAllowances).Append("\n"); + sb.Append(" MaritalStatus: ").Append(MaritalStatus).Append("\n"); + sb.Append(" LastNameDiffers: ").Append(LastNameDiffers).Append("\n"); + sb.Append(" NumAllowances: ").Append(NumAllowances).Append("\n"); sb.Append(" OtherDependents: ").Append(OtherDependents).Append("\n"); sb.Append(" NonJobIncome: ").Append(NonJobIncome).Append("\n"); sb.Append(" Deductions: ").Append(Deductions).Append("\n"); - sb.Append(" Box6AdditionalWithheld: ").Append(Box6AdditionalWithheld).Append("\n"); - sb.Append(" Box7ExemptFromWithholding: ").Append(Box7ExemptFromWithholding).Append("\n"); + sb.Append(" AdditionalWithheld: ").Append(AdditionalWithheld).Append("\n"); + sb.Append(" ExemptFromWithholding: ").Append(ExemptFromWithholding).Append("\n"); sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); sb.Append(" EDeliveryConsentedAt: ").Append(EDeliveryConsentedAt).Append("\n"); - sb.Append(" DisregardedEntityChapter4FatcaStatus: ").Append(DisregardedEntityChapter4FatcaStatus).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ResidenceAddress: ").Append(ResidenceAddress).Append("\n"); - sb.Append(" ResidenceCity: ").Append(ResidenceCity).Append("\n"); - sb.Append(" ResidenceState: ").Append(ResidenceState).Append("\n"); - sb.Append(" ResidencePostalCode: ").Append(ResidencePostalCode).Append("\n"); - sb.Append(" ResidenceCountry: ").Append(ResidenceCountry).Append("\n"); - sb.Append(" MailingAddress: ").Append(MailingAddress).Append("\n"); - sb.Append(" MailingCity: ").Append(MailingCity).Append("\n"); - sb.Append(" MailingState: ").Append(MailingState).Append("\n"); - sb.Append(" MailingPostalCode: ").Append(MailingPostalCode).Append("\n"); - sb.Append(" MailingCountry: ").Append(MailingCountry).Append("\n"); - sb.Append(" DisregardedAddress: ").Append(DisregardedAddress).Append("\n"); - sb.Append(" DisregardedCity: ").Append(DisregardedCity).Append("\n"); - sb.Append(" DisregardedState: ").Append(DisregardedState).Append("\n"); - sb.Append(" DisregardedPostalCode: ").Append(DisregardedPostalCode).Append("\n"); - sb.Append(" DisregardedCountry: ").Append(DisregardedCountry).Append("\n"); - sb.Append(" ForeignTin: ").Append(ForeignTin).Append("\n"); - sb.Append(" FtinNotRequired: ").Append(FtinNotRequired).Append("\n"); - sb.Append(" ReferenceNumber: ").Append(ReferenceNumber).Append("\n"); - sb.Append(" Giin: ").Append(Giin).Append("\n"); - sb.Append(" Chapter3EntityType: ").Append(Chapter3EntityType).Append("\n"); - sb.Append(" Chapter4FatcaStatus: ").Append(Chapter4FatcaStatus).Append("\n"); - sb.Append(" DisregardedEntity: ").Append(DisregardedEntity).Append("\n"); - sb.Append(" DisregardedEntityGiin: ").Append(DisregardedEntityGiin).Append("\n"); - sb.Append(" BenefitLimitation: ").Append(BenefitLimitation).Append("\n"); - sb.Append(" Part4SponsoringEntity: ").Append(Part4SponsoringEntity).Append("\n"); - sb.Append(" Part4SponsoringEntityGiin: ").Append(Part4SponsoringEntityGiin).Append("\n"); - sb.Append(" Part7SponsoringEntity: ").Append(Part7SponsoringEntity).Append("\n"); - sb.Append(" Part12IgaCountry: ").Append(Part12IgaCountry).Append("\n"); - sb.Append(" Part12IgaType: ").Append(Part12IgaType).Append("\n"); - sb.Append(" Part12FatcaStatusUnderIgaAnnexIi: ").Append(Part12FatcaStatusUnderIgaAnnexIi).Append("\n"); - sb.Append(" Part12TrusteeName: ").Append(Part12TrusteeName).Append("\n"); - sb.Append(" Part12TrusteeIsForeign: ").Append(Part12TrusteeIsForeign).Append("\n"); - sb.Append(" Part12Model2IgaGiin: ").Append(Part12Model2IgaGiin).Append("\n"); - sb.Append(" Box37AExchange: ").Append(Box37AExchange).Append("\n"); - sb.Append(" Box37BExchange: ").Append(Box37BExchange).Append("\n"); - sb.Append(" Box37BEntity: ").Append(Box37BEntity).Append("\n"); - sb.Append(" Part28SponsoringEntity: ").Append(Part28SponsoringEntity).Append("\n"); - sb.Append(" Part28SponsoringEntityGiin: ").Append(Part28SponsoringEntityGiin).Append("\n"); - sb.Append(" SignerName: ").Append(SignerName).Append("\n"); - sb.Append(" ResidenceIsMailing: ").Append(ResidenceIsMailing).Append("\n"); - sb.Append(" CitizenshipCountry: ").Append(CitizenshipCountry).Append("\n"); - sb.Append(" MakingTreatyClaim: ").Append(MakingTreatyClaim).Append("\n"); - sb.Append(" TreatyCountry: ").Append(TreatyCountry).Append("\n"); - sb.Append(" TreatyArticle: ").Append(TreatyArticle).Append("\n"); - sb.Append(" WithholdingRate: ").Append(WithholdingRate).Append("\n"); - sb.Append(" IncomeType: ").Append(IncomeType).Append("\n"); - sb.Append(" TreatyReasons: ").Append(TreatyReasons).Append("\n"); - sb.Append(" CertifyBox14A: ").Append(CertifyBox14A).Append("\n"); - sb.Append(" CertifyBox14B: ").Append(CertifyBox14B).Append("\n"); - sb.Append(" CertifyBox14C: ").Append(CertifyBox14C).Append("\n"); - sb.Append(" CertifyBox171: ").Append(CertifyBox171).Append("\n"); - sb.Append(" CertifyBox172: ").Append(CertifyBox172).Append("\n"); - sb.Append(" CertifyBox18: ").Append(CertifyBox18).Append("\n"); - sb.Append(" CertifyBox19: ").Append(CertifyBox19).Append("\n"); - sb.Append(" CertifyBox21: ").Append(CertifyBox21).Append("\n"); - sb.Append(" CertifyBox22: ").Append(CertifyBox22).Append("\n"); - sb.Append(" CertifyBox23: ").Append(CertifyBox23).Append("\n"); - sb.Append(" CertifyBox24A: ").Append(CertifyBox24A).Append("\n"); - sb.Append(" CertifyBox24B: ").Append(CertifyBox24B).Append("\n"); - sb.Append(" CertifyBox24C: ").Append(CertifyBox24C).Append("\n"); - sb.Append(" CertifyBox24D: ").Append(CertifyBox24D).Append("\n"); - sb.Append(" CertifyBox25A: ").Append(CertifyBox25A).Append("\n"); - sb.Append(" CertifyBox25B: ").Append(CertifyBox25B).Append("\n"); - sb.Append(" CertifyBox25C: ").Append(CertifyBox25C).Append("\n"); - sb.Append(" CertifyBox26: ").Append(CertifyBox26).Append("\n"); - sb.Append(" CertifyBox27: ").Append(CertifyBox27).Append("\n"); - sb.Append(" CertifyBox28A: ").Append(CertifyBox28A).Append("\n"); - sb.Append(" CertifyBox28B: ").Append(CertifyBox28B).Append("\n"); - sb.Append(" CertifyBox29A: ").Append(CertifyBox29A).Append("\n"); - sb.Append(" CertifyBox29B: ").Append(CertifyBox29B).Append("\n"); - sb.Append(" CertifyBox29C: ").Append(CertifyBox29C).Append("\n"); - sb.Append(" CertifyBox29D: ").Append(CertifyBox29D).Append("\n"); - sb.Append(" CertifyBox29E: ").Append(CertifyBox29E).Append("\n"); - sb.Append(" CertifyBox29F: ").Append(CertifyBox29F).Append("\n"); - sb.Append(" CertifyBox30: ").Append(CertifyBox30).Append("\n"); - sb.Append(" CertifyBox31: ").Append(CertifyBox31).Append("\n"); - sb.Append(" CertifyBox32: ").Append(CertifyBox32).Append("\n"); - sb.Append(" CertifyBox33: ").Append(CertifyBox33).Append("\n"); - sb.Append(" CertifyBox34: ").Append(CertifyBox34).Append("\n"); - sb.Append(" CertifyBox35: ").Append(CertifyBox35).Append("\n"); - sb.Append(" CertifyBox36: ").Append(CertifyBox36).Append("\n"); - sb.Append(" CertifyBox37A: ").Append(CertifyBox37A).Append("\n"); - sb.Append(" CertifyBox37B: ").Append(CertifyBox37B).Append("\n"); - sb.Append(" CertifyBox38: ").Append(CertifyBox38).Append("\n"); - sb.Append(" CertifyBox39: ").Append(CertifyBox39).Append("\n"); - sb.Append(" CertifyBox40A: ").Append(CertifyBox40A).Append("\n"); - sb.Append(" CertifyBox40B: ").Append(CertifyBox40B).Append("\n"); - sb.Append(" CertifyBox40C: ").Append(CertifyBox40C).Append("\n"); - sb.Append(" CertifyBox41: ").Append(CertifyBox41).Append("\n"); - sb.Append(" CertifyBox43: ").Append(CertifyBox43).Append("\n"); - sb.Append(" CertifyPart29Signature: ").Append(CertifyPart29Signature).Append("\n"); - sb.Append(" Part19FormationOrResolutionDate: ").Append(Part19FormationOrResolutionDate).Append("\n"); - sb.Append(" Part20FilingDate: ").Append(Part20FilingDate).Append("\n"); - sb.Append(" Part21DeterminationDate: ").Append(Part21DeterminationDate).Append("\n"); - sb.Append(" SubstantialUsOwners: ").Append(SubstantialUsOwners).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); - sb.Append(" ForeignTinNotRequired: ").Append(ForeignTinNotRequired).Append("\n"); - sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" SignerCapacity: ").Append(SignerCapacity).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" Ein: ").Append(Ein).Append("\n"); - sb.Append(" EinType: ").Append(EinType).Append("\n"); - sb.Append(" CertifyBox14: ").Append(CertifyBox14).Append("\n"); - sb.Append(" CertifyBox15A: ").Append(CertifyBox15A).Append("\n"); - sb.Append(" CertifyBox15B: ").Append(CertifyBox15B).Append("\n"); - sb.Append(" CertifyBox15C: ").Append(CertifyBox15C).Append("\n"); - sb.Append(" CertifyBox15D: ").Append(CertifyBox15D).Append("\n"); - sb.Append(" CertifyBox15E: ").Append(CertifyBox15E).Append("\n"); - sb.Append(" CertifyBox15F: ").Append(CertifyBox15F).Append("\n"); - sb.Append(" CertifyBox15G: ").Append(CertifyBox15G).Append("\n"); - sb.Append(" CertifyBox15H: ").Append(CertifyBox15H).Append("\n"); - sb.Append(" CertifyBox15I: ").Append(CertifyBox15I).Append("\n"); - sb.Append(" CertifyBox16A: ").Append(CertifyBox16A).Append("\n"); - sb.Append(" Box16BQddCorporate: ").Append(Box16BQddCorporate).Append("\n"); - sb.Append(" Box16BQddPartnership: ").Append(Box16BQddPartnership).Append("\n"); - sb.Append(" Box16BQddDisregardedEntity: ").Append(Box16BQddDisregardedEntity).Append("\n"); - sb.Append(" CertifyBox17A: ").Append(CertifyBox17A).Append("\n"); - sb.Append(" CertifyBox17B: ").Append(CertifyBox17B).Append("\n"); - sb.Append(" CertifyBox17C: ").Append(CertifyBox17C).Append("\n"); - sb.Append(" CertifyBox17D: ").Append(CertifyBox17D).Append("\n"); - sb.Append(" CertifyBox17E: ").Append(CertifyBox17E).Append("\n"); - sb.Append(" CertifyBox18A: ").Append(CertifyBox18A).Append("\n"); - sb.Append(" CertifyBox18B: ").Append(CertifyBox18B).Append("\n"); - sb.Append(" CertifyBox18C: ").Append(CertifyBox18C).Append("\n"); - sb.Append(" CertifyBox18D: ").Append(CertifyBox18D).Append("\n"); - sb.Append(" CertifyBox18E: ").Append(CertifyBox18E).Append("\n"); - sb.Append(" CertifyBox18F: ").Append(CertifyBox18F).Append("\n"); - sb.Append(" CertifyBox19A: ").Append(CertifyBox19A).Append("\n"); - sb.Append(" CertifyBox19B: ").Append(CertifyBox19B).Append("\n"); - sb.Append(" CertifyBox19C: ").Append(CertifyBox19C).Append("\n"); - sb.Append(" CertifyBox19D: ").Append(CertifyBox19D).Append("\n"); - sb.Append(" CertifyBox19E: ").Append(CertifyBox19E).Append("\n"); - sb.Append(" CertifyBox19F: ").Append(CertifyBox19F).Append("\n"); - sb.Append(" CertifyBox20: ").Append(CertifyBox20).Append("\n"); - sb.Append(" CertifyBox21A: ").Append(CertifyBox21A).Append("\n"); - sb.Append(" CertifyBox21B: ").Append(CertifyBox21B).Append("\n"); - sb.Append(" CertifyBox21C: ").Append(CertifyBox21C).Append("\n"); - sb.Append(" CertifyBox21D: ").Append(CertifyBox21D).Append("\n"); - sb.Append(" CertifyBox21E: ").Append(CertifyBox21E).Append("\n"); - sb.Append(" CertifyBox21F: ").Append(CertifyBox21F).Append("\n"); - sb.Append(" Box23ANameSponsoringEntity: ").Append(Box23ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox23B: ").Append(CertifyBox23B).Append("\n"); - sb.Append(" CertifyBox23C: ").Append(CertifyBox23C).Append("\n"); - sb.Append(" CertifyBox25: ").Append(CertifyBox25).Append("\n"); - sb.Append(" Box27ANameSponsoringEntity: ").Append(Box27ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox27B: ").Append(CertifyBox27B).Append("\n"); - sb.Append(" CertifyBox28: ").Append(CertifyBox28).Append("\n"); - sb.Append(" CertifyBox29: ").Append(CertifyBox29).Append("\n"); - sb.Append(" CertifyBox30A: ").Append(CertifyBox30A).Append("\n"); - sb.Append(" CertifyBox30B: ").Append(CertifyBox30B).Append("\n"); - sb.Append(" CertifyBox30C: ").Append(CertifyBox30C).Append("\n"); - sb.Append(" Box32IgaCountry: ").Append(Box32IgaCountry).Append("\n"); - sb.Append(" Box32IgaType: ").Append(Box32IgaType).Append("\n"); - sb.Append(" Box32IgaTreatedAs: ").Append(Box32IgaTreatedAs).Append("\n"); - sb.Append(" Box32TrusteeOrSponsor: ").Append(Box32TrusteeOrSponsor).Append("\n"); - sb.Append(" Box32TrusteeIsForeign: ").Append(Box32TrusteeIsForeign).Append("\n"); - sb.Append(" CertifyBox33A: ").Append(CertifyBox33A).Append("\n"); - sb.Append(" CertifyBox33B: ").Append(CertifyBox33B).Append("\n"); - sb.Append(" CertifyBox33C: ").Append(CertifyBox33C).Append("\n"); - sb.Append(" CertifyBox33D: ").Append(CertifyBox33D).Append("\n"); - sb.Append(" CertifyBox33E: ").Append(CertifyBox33E).Append("\n"); - sb.Append(" CertifyBox33F: ").Append(CertifyBox33F).Append("\n"); - sb.Append(" Box37ASecuritiesMarket: ").Append(Box37ASecuritiesMarket).Append("\n"); - sb.Append(" Box37BNameOfEntity: ").Append(Box37BNameOfEntity).Append("\n"); - sb.Append(" Box37BSecuritiesMarket: ").Append(Box37BSecuritiesMarket).Append("\n"); - sb.Append(" CertifyBox40: ").Append(CertifyBox40).Append("\n"); - sb.Append(" Box41SponsoringEntity: ").Append(Box41SponsoringEntity).Append("\n"); - sb.Append(" CertifyBox42: ").Append(CertifyBox42).Append("\n"); - sb.Append(" Box35FormedOnDate: ").Append(Box35FormedOnDate).Append("\n"); - sb.Append(" Box36FiledOnDate: ").Append(Box36FiledOnDate).Append("\n"); - sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append(" BusinessClassification: ").Append(BusinessClassification).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" BusinessOther: ").Append(BusinessOther).Append("\n"); - sb.Append(" ExemptPayeeCode: ").Append(ExemptPayeeCode).Append("\n"); - sb.Append(" ExemptFatcaCode: ").Append(ExemptFatcaCode).Append("\n"); - sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); - sb.Append(" ForeignCountryIndicator: ").Append(ForeignCountryIndicator).Append("\n"); - sb.Append(" ForeignAddress: ").Append(ForeignAddress).Append("\n"); - sb.Append(" BackupWithholding: ").Append(BackupWithholding).Append("\n"); - sb.Append(" Is1099able: ").Append(Is1099able).Append("\n"); - sb.Append(" ForeignPartnerOwnerOrBeneficiary: ").Append(ForeignPartnerOwnerOrBeneficiary).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/W8BenFormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/W8BenFormDataModel.cs index 3323717..d67c742 100644 --- a/src/Avalara.SDK/Model/A1099/V2/W8BenFormDataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/W8BenFormDataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -136,183 +136,19 @@ public bool ShouldSerializeType() /// The date when e-delivery was consented.. /// The creation date of the form.. /// The last updated date of the form.. - /// The first name of the employee.. - /// The middle name of the employee.. - /// The last name of the employee.. - /// The name suffix of the employee.. - /// The address of the individual or entity.. - /// The city of the address.. - /// The state of the address.. - /// The ZIP code of the address.. - /// The marital status of the employee.. - /// Indicates whether the last name differs from prior records.. - /// The number of allowances claimed by the employee.. - /// The number of dependents other than allowances.. - /// The amount of non-job income.. - /// The amount of deductions claimed.. - /// The additional amount withheld.. - /// Indicates whether the employee is exempt from withholding.. - /// The office code associated with the form.. - /// The FATCA status for disregarded entities under Chapter 4.. - /// The address for disregarded entities.. - /// The city for disregarded entities.. - /// The state for disregarded entities.. - /// The postal code for disregarded entities.. - /// The country for disregarded entities.. - /// Indicates whether a foreign TIN is not required.. - /// The global intermediary identification number (GIIN).. - /// The Chapter 3 entity type.. - /// The Chapter 4 FATCA status.. - /// The disregarded entity information.. - /// The GIIN for disregarded entities.. - /// The benefit limitation for tax treaty claims.. - /// The sponsoring entity information for Part 4.. - /// The GIIN for the sponsoring entity in Part 4.. - /// The sponsoring entity information for Part 7.. - /// The IGA country information for Part 12.. - /// The IGA type information for Part 12.. - /// The FATCA status under IGA Annex II for Part 12.. - /// The trustee name for Part 12.. - /// Indicates whether the trustee is foreign for Part 12.. - /// The GIIN for Model 2 IGA in Part 12.. - /// The exchange information for Box 37A.. - /// The exchange information for Box 37B.. - /// The entity information for Box 37B.. - /// The sponsoring entity information for Part 28.. - /// The GIIN for the sponsoring entity in Part 28.. - /// makingTreatyClaim. - /// certifyBox14A. - /// certifyBox14B. - /// certifyBox14C. - /// certifyBox171. - /// certifyBox172. - /// certifyBox18. - /// certifyBox19. - /// certifyBox21. - /// Indicates certification for box 22.. - /// certifyBox23. - /// Indicates certification for box 24A.. - /// Indicates certification for box 24B.. - /// Indicates certification for box 24C.. - /// certifyBox24D. - /// certifyBox25A. - /// certifyBox25B. - /// certifyBox25C. - /// Indicates certification for box 26.. - /// certifyBox27. - /// certifyBox28A. - /// certifyBox28B. - /// certifyBox29A. - /// certifyBox29B. - /// certifyBox29C. - /// certifyBox29D. - /// certifyBox29E. - /// certifyBox29F. - /// certifyBox30. - /// Indicates certification for box 31.. - /// Indicates certification for box 32.. - /// certifyBox33. - /// Indicates certification for box 34.. - /// Indicates certification for box 35.. - /// Indicates certification for box 36.. - /// Indicates certification for box 37A.. - /// Indicates certification for box 37B.. - /// Indicates certification for box 38.. - /// Indicates certification for box 39.. - /// certifyBox40A. - /// certifyBox40B. - /// certifyBox40C. - /// certifyBox41. - /// certifyBox43. - /// certifyPart29Signature. - /// part19FormationOrResolutionDate. - /// part20FilingDate. - /// part21DeterminationDate. - /// substantialUsOwners. - /// The employer identification number (EIN).. - /// The type of employer identification number (EIN).. - /// Indicates certification for box 14.. - /// Indicates certification for box 15A.. - /// Indicates certification for box 15B.. - /// Indicates certification for box 15C.. - /// Indicates certification for box 15D.. - /// Indicates certification for box 15E.. - /// Indicates certification for box 15F.. - /// Indicates certification for box 15G.. - /// Indicates certification for box 15H.. - /// Indicates certification for box 15I.. - /// Indicates certification for box 16A.. - /// Indicates certification for box 16B as a QDD corporate entity.. - /// Indicates certification for box 16B as a QDD partnership.. - /// Indicates certification for box 16B as a QDD disregarded entity.. - /// Indicates certification for box 17A.. - /// Indicates certification for box 17B.. - /// Indicates certification for box 17C.. - /// Indicates certification for box 17D.. - /// Indicates certification for box 17E.. - /// Indicates certification for box 18A.. - /// Indicates certification for box 18B.. - /// Indicates certification for box 18C.. - /// Indicates certification for box 18D.. - /// Indicates certification for box 18E.. - /// Indicates certification for box 18F.. - /// Indicates certification for box 19A.. - /// Indicates certification for box 19B.. - /// Indicates certification for box 19C.. - /// Indicates certification for box 19D.. - /// Indicates certification for box 19E.. - /// Indicates certification for box 19F.. - /// Indicates certification for box 20.. - /// Indicates certification for box 21A.. - /// Indicates certification for box 21B.. - /// Indicates certification for box 21C.. - /// Indicates certification for box 21D.. - /// Indicates certification for box 21E.. - /// Indicates certification for box 21F.. - /// The name of the sponsoring entity for box 23A.. - /// Indicates certification for box 23B.. - /// Indicates certification for box 23C.. - /// Indicates certification for box 25.. - /// The name of the sponsoring entity for box 27A.. - /// Indicates certification for box 27B.. - /// Indicates certification for box 28.. - /// Indicates certification for box 29.. - /// Indicates certification for box 30A.. - /// Indicates certification for box 30B.. - /// Indicates certification for box 30C.. - /// The IGA country information for box 32.. - /// The IGA type information for box 32.. - /// The IGA treatment information for box 32.. - /// The trustee or sponsor information for box 32.. - /// Indicates whether the trustee is foreign for box 32.. - /// Indicates certification for box 33A.. - /// Indicates certification for box 33B.. - /// Indicates certification for box 33C.. - /// Indicates certification for box 33D.. - /// Indicates certification for box 33E.. - /// Indicates certification for box 33F.. - /// The securities market information for box 37A.. - /// The name of the entity for box 37B.. - /// The securities market information for box 37B.. - /// Indicates certification for box 40.. - /// The sponsoring entity information for box 41.. - /// Indicates certification for box 42.. - /// box35FormedOnDate. - /// box36FiledOnDate. - /// The status of the TIN match.. - /// The signature itself. - /// The classification of the business.. - /// The name of the business associated with the form.. - /// businessOther. - /// exemptPayeeCode. - /// exemptFatcaCode. - /// The account number associated with the form.. - /// Indicates whether the individual or entity is in a foreign country.. - /// The foreign address of the individual or entity.. - /// Indicates whether backup withholding applies.. - /// is1099able. - /// Indicates whether the individual is a foreign partner, owner, or beneficiary.. - public W8BenFormDataModel(DateTime? signedDate = default(DateTime?), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), int? companyId = default(int?), string displayName = default(string), string email = default(string), string typeOfTin = default(string), string name = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), bool residenceIsMailing = default(bool), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string tin = default(string), string foreignTin = default(string), string referenceNumber = default(string), string citizenshipCountry = default(string), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), string signerName = default(string), string signerCapacity = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), DateTime? createdAt = default(DateTime?), DateTime? updatedAt = default(DateTime?), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string box3MaritalStatus = default(string), bool? box4LastNameDiffers = default(bool?), int? box5NumAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? box6AdditionalWithheld = default(double?), bool? box7ExemptFromWithholding = default(bool?), string officeCode = default(string), string disregardedEntityChapter4FatcaStatus = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), bool? ftinNotRequired = default(bool?), string giin = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string disregardedEntity = default(string), string disregardedEntityGiin = default(string), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), bool? makingTreatyClaim = default(bool?), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox22 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox26 = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), bool certifyBox33 = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), bool certifyBox37B = default(bool), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), List substantialUsOwners = default(List), string ein = default(string), string einType = default(string), bool certifyBox14 = default(bool), bool certifyBox15A = default(bool), bool certifyBox15B = default(bool), bool certifyBox15C = default(bool), bool certifyBox15D = default(bool), bool certifyBox15E = default(bool), bool certifyBox15F = default(bool), bool certifyBox15G = default(bool), bool certifyBox15H = default(bool), bool certifyBox15I = default(bool), bool certifyBox16A = default(bool), bool box16BQddCorporate = default(bool), bool box16BQddPartnership = default(bool), bool box16BQddDisregardedEntity = default(bool), bool certifyBox17A = default(bool), bool certifyBox17B = default(bool), bool certifyBox17C = default(bool), bool certifyBox17D = default(bool), bool certifyBox17E = default(bool), bool certifyBox18A = default(bool), bool certifyBox18B = default(bool), bool certifyBox18C = default(bool), bool certifyBox18D = default(bool), bool certifyBox18E = default(bool), bool certifyBox18F = default(bool), bool certifyBox19A = default(bool), bool certifyBox19B = default(bool), bool certifyBox19C = default(bool), bool certifyBox19D = default(bool), bool certifyBox19E = default(bool), bool certifyBox19F = default(bool), bool certifyBox20 = default(bool), bool certifyBox21A = default(bool), bool certifyBox21B = default(bool), bool certifyBox21C = default(bool), bool certifyBox21D = default(bool), bool certifyBox21E = default(bool), bool certifyBox21F = default(bool), string box23ANameSponsoringEntity = default(string), bool certifyBox23B = default(bool), bool certifyBox23C = default(bool), bool certifyBox25 = default(bool), string box27ANameSponsoringEntity = default(string), bool certifyBox27B = default(bool), bool certifyBox28 = default(bool), bool certifyBox29 = default(bool), bool certifyBox30A = default(bool), bool certifyBox30B = default(bool), bool certifyBox30C = default(bool), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool box32TrusteeIsForeign = default(bool), bool certifyBox33A = default(bool), bool certifyBox33B = default(bool), bool certifyBox33C = default(bool), bool certifyBox33D = default(bool), bool certifyBox33E = default(bool), bool certifyBox33F = default(bool), string box37ASecuritiesMarket = default(string), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool certifyBox40 = default(bool), string box41SponsoringEntity = default(string), bool certifyBox42 = default(bool), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?), string tinMatchStatus = default(string), string signature = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?)) + /// id. + /// entryStatus. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// signature. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public W8BenFormDataModel(DateTime? signedDate = default(DateTime?), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), string companyId = default(string), string displayName = default(string), string email = default(string), string typeOfTin = default(string), string name = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), bool residenceIsMailing = default(bool), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string tin = default(string), string foreignTin = default(string), string referenceNumber = default(string), string citizenshipCountry = default(string), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), string signerName = default(string), string signerCapacity = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), DateTime? createdAt = default(DateTime?), DateTime? updatedAt = default(DateTime?), string id = default(string), string entryStatus = default(string), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), string signature = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) { this.SignedDate = signedDate; this.Birthday = birthday; @@ -349,182 +185,18 @@ public bool ShouldSerializeType() this.EDeliveryConsentedAt = eDeliveryConsentedAt; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; - this.EmployeeFirstName = employeeFirstName; - this.EmployeeMiddleName = employeeMiddleName; - this.EmployeeLastName = employeeLastName; - this.EmployeeNameSuffix = employeeNameSuffix; - this.Address = address; - this.City = city; - this.State = state; - this.Zip = zip; - this.Box3MaritalStatus = box3MaritalStatus; - this.Box4LastNameDiffers = box4LastNameDiffers; - this.Box5NumAllowances = box5NumAllowances; - this.OtherDependents = otherDependents; - this.NonJobIncome = nonJobIncome; - this.Deductions = deductions; - this.Box6AdditionalWithheld = box6AdditionalWithheld; - this.Box7ExemptFromWithholding = box7ExemptFromWithholding; - this.OfficeCode = officeCode; - this.DisregardedEntityChapter4FatcaStatus = disregardedEntityChapter4FatcaStatus; - this.DisregardedAddress = disregardedAddress; - this.DisregardedCity = disregardedCity; - this.DisregardedState = disregardedState; - this.DisregardedPostalCode = disregardedPostalCode; - this.DisregardedCountry = disregardedCountry; - this.FtinNotRequired = ftinNotRequired; - this.Giin = giin; - this.Chapter3EntityType = chapter3EntityType; - this.Chapter4FatcaStatus = chapter4FatcaStatus; - this.DisregardedEntity = disregardedEntity; - this.DisregardedEntityGiin = disregardedEntityGiin; - this.BenefitLimitation = benefitLimitation; - this.Part4SponsoringEntity = part4SponsoringEntity; - this.Part4SponsoringEntityGiin = part4SponsoringEntityGiin; - this.Part7SponsoringEntity = part7SponsoringEntity; - this.Part12IgaCountry = part12IgaCountry; - this.Part12IgaType = part12IgaType; - this.Part12FatcaStatusUnderIgaAnnexIi = part12FatcaStatusUnderIgaAnnexIi; - this.Part12TrusteeName = part12TrusteeName; - this.Part12TrusteeIsForeign = part12TrusteeIsForeign; - this.Part12Model2IgaGiin = part12Model2IgaGiin; - this.Box37AExchange = box37AExchange; - this.Box37BExchange = box37BExchange; - this.Box37BEntity = box37BEntity; - this.Part28SponsoringEntity = part28SponsoringEntity; - this.Part28SponsoringEntityGiin = part28SponsoringEntityGiin; - this.MakingTreatyClaim = makingTreatyClaim; - this.CertifyBox14A = certifyBox14A; - this.CertifyBox14B = certifyBox14B; - this.CertifyBox14C = certifyBox14C; - this.CertifyBox171 = certifyBox171; - this.CertifyBox172 = certifyBox172; - this.CertifyBox18 = certifyBox18; - this.CertifyBox19 = certifyBox19; - this.CertifyBox21 = certifyBox21; - this.CertifyBox22 = certifyBox22; - this.CertifyBox23 = certifyBox23; - this.CertifyBox24A = certifyBox24A; - this.CertifyBox24B = certifyBox24B; - this.CertifyBox24C = certifyBox24C; - this.CertifyBox24D = certifyBox24D; - this.CertifyBox25A = certifyBox25A; - this.CertifyBox25B = certifyBox25B; - this.CertifyBox25C = certifyBox25C; - this.CertifyBox26 = certifyBox26; - this.CertifyBox27 = certifyBox27; - this.CertifyBox28A = certifyBox28A; - this.CertifyBox28B = certifyBox28B; - this.CertifyBox29A = certifyBox29A; - this.CertifyBox29B = certifyBox29B; - this.CertifyBox29C = certifyBox29C; - this.CertifyBox29D = certifyBox29D; - this.CertifyBox29E = certifyBox29E; - this.CertifyBox29F = certifyBox29F; - this.CertifyBox30 = certifyBox30; - this.CertifyBox31 = certifyBox31; - this.CertifyBox32 = certifyBox32; - this.CertifyBox33 = certifyBox33; - this.CertifyBox34 = certifyBox34; - this.CertifyBox35 = certifyBox35; - this.CertifyBox36 = certifyBox36; - this.CertifyBox37A = certifyBox37A; - this.CertifyBox37B = certifyBox37B; - this.CertifyBox38 = certifyBox38; - this.CertifyBox39 = certifyBox39; - this.CertifyBox40A = certifyBox40A; - this.CertifyBox40B = certifyBox40B; - this.CertifyBox40C = certifyBox40C; - this.CertifyBox41 = certifyBox41; - this.CertifyBox43 = certifyBox43; - this.CertifyPart29Signature = certifyPart29Signature; - this.Part19FormationOrResolutionDate = part19FormationOrResolutionDate; - this.Part20FilingDate = part20FilingDate; - this.Part21DeterminationDate = part21DeterminationDate; - this.SubstantialUsOwners = substantialUsOwners; - this.Ein = ein; - this.EinType = einType; - this.CertifyBox14 = certifyBox14; - this.CertifyBox15A = certifyBox15A; - this.CertifyBox15B = certifyBox15B; - this.CertifyBox15C = certifyBox15C; - this.CertifyBox15D = certifyBox15D; - this.CertifyBox15E = certifyBox15E; - this.CertifyBox15F = certifyBox15F; - this.CertifyBox15G = certifyBox15G; - this.CertifyBox15H = certifyBox15H; - this.CertifyBox15I = certifyBox15I; - this.CertifyBox16A = certifyBox16A; - this.Box16BQddCorporate = box16BQddCorporate; - this.Box16BQddPartnership = box16BQddPartnership; - this.Box16BQddDisregardedEntity = box16BQddDisregardedEntity; - this.CertifyBox17A = certifyBox17A; - this.CertifyBox17B = certifyBox17B; - this.CertifyBox17C = certifyBox17C; - this.CertifyBox17D = certifyBox17D; - this.CertifyBox17E = certifyBox17E; - this.CertifyBox18A = certifyBox18A; - this.CertifyBox18B = certifyBox18B; - this.CertifyBox18C = certifyBox18C; - this.CertifyBox18D = certifyBox18D; - this.CertifyBox18E = certifyBox18E; - this.CertifyBox18F = certifyBox18F; - this.CertifyBox19A = certifyBox19A; - this.CertifyBox19B = certifyBox19B; - this.CertifyBox19C = certifyBox19C; - this.CertifyBox19D = certifyBox19D; - this.CertifyBox19E = certifyBox19E; - this.CertifyBox19F = certifyBox19F; - this.CertifyBox20 = certifyBox20; - this.CertifyBox21A = certifyBox21A; - this.CertifyBox21B = certifyBox21B; - this.CertifyBox21C = certifyBox21C; - this.CertifyBox21D = certifyBox21D; - this.CertifyBox21E = certifyBox21E; - this.CertifyBox21F = certifyBox21F; - this.Box23ANameSponsoringEntity = box23ANameSponsoringEntity; - this.CertifyBox23B = certifyBox23B; - this.CertifyBox23C = certifyBox23C; - this.CertifyBox25 = certifyBox25; - this.Box27ANameSponsoringEntity = box27ANameSponsoringEntity; - this.CertifyBox27B = certifyBox27B; - this.CertifyBox28 = certifyBox28; - this.CertifyBox29 = certifyBox29; - this.CertifyBox30A = certifyBox30A; - this.CertifyBox30B = certifyBox30B; - this.CertifyBox30C = certifyBox30C; - this.Box32IgaCountry = box32IgaCountry; - this.Box32IgaType = box32IgaType; - this.Box32IgaTreatedAs = box32IgaTreatedAs; - this.Box32TrusteeOrSponsor = box32TrusteeOrSponsor; - this.Box32TrusteeIsForeign = box32TrusteeIsForeign; - this.CertifyBox33A = certifyBox33A; - this.CertifyBox33B = certifyBox33B; - this.CertifyBox33C = certifyBox33C; - this.CertifyBox33D = certifyBox33D; - this.CertifyBox33E = certifyBox33E; - this.CertifyBox33F = certifyBox33F; - this.Box37ASecuritiesMarket = box37ASecuritiesMarket; - this.Box37BNameOfEntity = box37BNameOfEntity; - this.Box37BSecuritiesMarket = box37BSecuritiesMarket; - this.CertifyBox40 = certifyBox40; - this.Box41SponsoringEntity = box41SponsoringEntity; - this.CertifyBox42 = certifyBox42; - this.Box35FormedOnDate = box35FormedOnDate; - this.Box36FiledOnDate = box36FiledOnDate; - this.TinMatchStatus = tinMatchStatus; + this.Id = id; + this.EntryStatus = entryStatus; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; this.Signature = signature; - this.BusinessClassification = businessClassification; - this.BusinessName = businessName; - this.BusinessOther = businessOther; - this.ExemptPayeeCode = exemptPayeeCode; - this.ExemptFatcaCode = exemptFatcaCode; - this.AccountNumber = accountNumber; - this.ForeignCountryIndicator = foreignCountryIndicator; - this.ForeignAddress = foreignAddress; - this.BackupWithholding = backupWithholding; - this.Is1099able = is1099able; - this.ForeignPartnerOwnerOrBeneficiary = foreignPartnerOwnerOrBeneficiary; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; } /// @@ -569,9 +241,8 @@ public bool ShouldSerializeType() /// The ID of the associated company. /// /// The ID of the associated company. - /// 4004 [DataMember(Name = "companyId", EmitDefaultValue = true)] - public int? CompanyId { get; set; } + public string CompanyId { get; set; } /// /// The display name associated with the form. @@ -804,1340 +475,76 @@ public bool ShouldSerializeType() public DateTime? UpdatedAt { get; set; } /// - /// The first name of the employee. + /// Gets or Sets Id /// - /// The first name of the employee. - /// Jane - [DataMember(Name = "employeeFirstName", EmitDefaultValue = true)] - public string EmployeeFirstName { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// The middle name of the employee. + /// Gets or Sets EntryStatus /// - /// The middle name of the employee. - /// A. - [DataMember(Name = "employeeMiddleName", EmitDefaultValue = true)] - public string EmployeeMiddleName { get; set; } + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } /// - /// The last name of the employee. + /// Gets or Sets EntryStatusDate /// - /// The last name of the employee. - /// Smith - [DataMember(Name = "employeeLastName", EmitDefaultValue = true)] - public string EmployeeLastName { get; set; } + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } /// - /// The name suffix of the employee. + /// Gets or Sets PdfJson /// - /// The name suffix of the employee. - /// Jr. - [DataMember(Name = "employeeNameSuffix", EmitDefaultValue = true)] - public string EmployeeNameSuffix { get; set; } + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } /// - /// The address of the individual or entity. + /// Gets or Sets PdfVersion /// - /// The address of the individual or entity. - /// 123 Main St - [DataMember(Name = "address", EmitDefaultValue = true)] - public string Address { get; set; } + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } /// - /// The city of the address. + /// Gets or Sets RequestToken /// - /// The city of the address. - /// Anytown - [DataMember(Name = "city", EmitDefaultValue = true)] - public string City { get; set; } + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } /// - /// The state of the address. + /// Gets or Sets Signature /// - /// The state of the address. - /// CA - [DataMember(Name = "state", EmitDefaultValue = true)] - public string State { get; set; } - - /// - /// The ZIP code of the address. - /// - /// The ZIP code of the address. - /// 90210 - [DataMember(Name = "zip", EmitDefaultValue = true)] - public string Zip { get; set; } - - /// - /// The marital status of the employee. - /// - /// The marital status of the employee. - /// Married - [DataMember(Name = "box3MaritalStatus", EmitDefaultValue = true)] - public string Box3MaritalStatus { get; set; } - - /// - /// Indicates whether the last name differs from prior records. - /// - /// Indicates whether the last name differs from prior records. - /// false - [DataMember(Name = "box4LastNameDiffers", EmitDefaultValue = true)] - public bool? Box4LastNameDiffers { get; set; } - - /// - /// The number of allowances claimed by the employee. - /// - /// The number of allowances claimed by the employee. - /// 3 - [DataMember(Name = "box5NumAllowances", EmitDefaultValue = true)] - public int? Box5NumAllowances { get; set; } - - /// - /// The number of dependents other than allowances. - /// - /// The number of dependents other than allowances. - /// 1 - [DataMember(Name = "otherDependents", EmitDefaultValue = true)] - public int? OtherDependents { get; set; } - - /// - /// The amount of non-job income. - /// - /// The amount of non-job income. - /// 5000.0 - [DataMember(Name = "nonJobIncome", EmitDefaultValue = true)] - public double? NonJobIncome { get; set; } - - /// - /// The amount of deductions claimed. - /// - /// The amount of deductions claimed. - /// 2000.0 - [DataMember(Name = "deductions", EmitDefaultValue = true)] - public double? Deductions { get; set; } - - /// - /// The additional amount withheld. - /// - /// The additional amount withheld. - /// 150.0 - [DataMember(Name = "box6AdditionalWithheld", EmitDefaultValue = true)] - public double? Box6AdditionalWithheld { get; set; } - - /// - /// Indicates whether the employee is exempt from withholding. - /// - /// Indicates whether the employee is exempt from withholding. - /// false - [DataMember(Name = "box7ExemptFromWithholding", EmitDefaultValue = true)] - public bool? Box7ExemptFromWithholding { get; set; } - - /// - /// The office code associated with the form. - /// - /// The office code associated with the form. - /// OC12345 - [DataMember(Name = "officeCode", EmitDefaultValue = true)] - public string OfficeCode { get; set; } - - /// - /// The FATCA status for disregarded entities under Chapter 4. - /// - /// The FATCA status for disregarded entities under Chapter 4. - [DataMember(Name = "disregardedEntityChapter4FatcaStatus", EmitDefaultValue = true)] - public string DisregardedEntityChapter4FatcaStatus { get; set; } - - /// - /// The address for disregarded entities. - /// - /// The address for disregarded entities. - [DataMember(Name = "disregardedAddress", EmitDefaultValue = true)] - public string DisregardedAddress { get; set; } - - /// - /// The city for disregarded entities. - /// - /// The city for disregarded entities. - [DataMember(Name = "disregardedCity", EmitDefaultValue = true)] - public string DisregardedCity { get; set; } - - /// - /// The state for disregarded entities. - /// - /// The state for disregarded entities. - [DataMember(Name = "disregardedState", EmitDefaultValue = true)] - public string DisregardedState { get; set; } - - /// - /// The postal code for disregarded entities. - /// - /// The postal code for disregarded entities. - [DataMember(Name = "disregardedPostalCode", EmitDefaultValue = true)] - public string DisregardedPostalCode { get; set; } - - /// - /// The country for disregarded entities. - /// - /// The country for disregarded entities. - [DataMember(Name = "disregardedCountry", EmitDefaultValue = true)] - public string DisregardedCountry { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "ftinNotRequired", EmitDefaultValue = true)] - public bool? FtinNotRequired { get; set; } - - /// - /// The global intermediary identification number (GIIN). - /// - /// The global intermediary identification number (GIIN). - [DataMember(Name = "giin", EmitDefaultValue = true)] - public string Giin { get; set; } - - /// - /// The Chapter 3 entity type. - /// - /// The Chapter 3 entity type. - /// Partnership - [DataMember(Name = "chapter3EntityType", EmitDefaultValue = true)] - public string Chapter3EntityType { get; set; } - - /// - /// The Chapter 4 FATCA status. - /// - /// The Chapter 4 FATCA status. - /// Compliant - [DataMember(Name = "chapter4FatcaStatus", EmitDefaultValue = true)] - public string Chapter4FatcaStatus { get; set; } - - /// - /// The disregarded entity information. - /// - /// The disregarded entity information. - /// Subsidiary Finance - [DataMember(Name = "disregardedEntity", EmitDefaultValue = true)] - public string DisregardedEntity { get; set; } - - /// - /// The GIIN for disregarded entities. - /// - /// The GIIN for disregarded entities. - /// GIIN78901234 - [DataMember(Name = "disregardedEntityGiin", EmitDefaultValue = true)] - public string DisregardedEntityGiin { get; set; } - - /// - /// The benefit limitation for tax treaty claims. - /// - /// The benefit limitation for tax treaty claims. - /// Treaty Benefit - [DataMember(Name = "benefitLimitation", EmitDefaultValue = true)] - public string BenefitLimitation { get; set; } - - /// - /// The sponsoring entity information for Part 4. - /// - /// The sponsoring entity information for Part 4. - /// Parent Company - [DataMember(Name = "part4SponsoringEntity", EmitDefaultValue = true)] - public string Part4SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 4. - /// - /// The GIIN for the sponsoring entity in Part 4. - /// GIIN11223344 - [DataMember(Name = "part4SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part4SponsoringEntityGiin { get; set; } - - /// - /// The sponsoring entity information for Part 7. - /// - /// The sponsoring entity information for Part 7. - /// Affiliated Organization - [DataMember(Name = "part7SponsoringEntity", EmitDefaultValue = true)] - public string Part7SponsoringEntity { get; set; } - - /// - /// The IGA country information for Part 12. - /// - /// The IGA country information for Part 12. - /// USA - [DataMember(Name = "part12IgaCountry", EmitDefaultValue = true)] - public string Part12IgaCountry { get; set; } - - /// - /// The IGA type information for Part 12. - /// - /// The IGA type information for Part 12. - /// Model 1 - [DataMember(Name = "part12IgaType", EmitDefaultValue = true)] - public string Part12IgaType { get; set; } - - /// - /// The FATCA status under IGA Annex II for Part 12. - /// - /// The FATCA status under IGA Annex II for Part 12. - /// Registered Deemed Compliant - [DataMember(Name = "part12FatcaStatusUnderIgaAnnexIi", EmitDefaultValue = true)] - public string Part12FatcaStatusUnderIgaAnnexIi { get; set; } - - /// - /// The trustee name for Part 12. - /// - /// The trustee name for Part 12. - /// Trustee Inc. - [DataMember(Name = "part12TrusteeName", EmitDefaultValue = true)] - public string Part12TrusteeName { get; set; } - - /// - /// Indicates whether the trustee is foreign for Part 12. - /// - /// Indicates whether the trustee is foreign for Part 12. - /// false - [DataMember(Name = "part12TrusteeIsForeign", EmitDefaultValue = true)] - public bool? Part12TrusteeIsForeign { get; set; } - - /// - /// The GIIN for Model 2 IGA in Part 12. - /// - /// The GIIN for Model 2 IGA in Part 12. - /// GIIN33445566 - [DataMember(Name = "part12Model2IgaGiin", EmitDefaultValue = true)] - public string Part12Model2IgaGiin { get; set; } - - /// - /// The exchange information for Box 37A. - /// - /// The exchange information for Box 37A. - /// NYSE - [DataMember(Name = "box37AExchange", EmitDefaultValue = true)] - public string Box37AExchange { get; set; } - - /// - /// The exchange information for Box 37B. - /// - /// The exchange information for Box 37B. - /// NASDAQ - [DataMember(Name = "box37BExchange", EmitDefaultValue = true)] - public string Box37BExchange { get; set; } - - /// - /// The entity information for Box 37B. - /// - /// The entity information for Box 37B. - /// Trading Partner - [DataMember(Name = "box37BEntity", EmitDefaultValue = true)] - public string Box37BEntity { get; set; } - - /// - /// The sponsoring entity information for Part 28. - /// - /// The sponsoring entity information for Part 28. - /// Global Trust - [DataMember(Name = "part28SponsoringEntity", EmitDefaultValue = true)] - public string Part28SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 28. - /// - /// The GIIN for the sponsoring entity in Part 28. - /// GIIN99887766 - [DataMember(Name = "part28SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part28SponsoringEntityGiin { get; set; } - - /// - /// Gets or Sets MakingTreatyClaim - /// - /// false - [DataMember(Name = "makingTreatyClaim", EmitDefaultValue = true)] - public bool? MakingTreatyClaim { get; set; } - - /// - /// Gets or Sets CertifyBox14A - /// - /// false - [DataMember(Name = "certifyBox14A", EmitDefaultValue = true)] - public bool CertifyBox14A { get; set; } - - /// - /// Gets or Sets CertifyBox14B - /// - /// false - [DataMember(Name = "certifyBox14B", EmitDefaultValue = true)] - public bool CertifyBox14B { get; set; } - - /// - /// Gets or Sets CertifyBox14C - /// - /// false - [DataMember(Name = "certifyBox14C", EmitDefaultValue = true)] - public bool CertifyBox14C { get; set; } - - /// - /// Gets or Sets CertifyBox171 - /// - /// false - [DataMember(Name = "certifyBox17_1", EmitDefaultValue = true)] - public bool CertifyBox171 { get; set; } - - /// - /// Gets or Sets CertifyBox172 - /// - /// false - [DataMember(Name = "certifyBox17_2", EmitDefaultValue = true)] - public bool CertifyBox172 { get; set; } - - /// - /// Gets or Sets CertifyBox18 - /// - /// false - [DataMember(Name = "certifyBox18", EmitDefaultValue = true)] - public bool CertifyBox18 { get; set; } - - /// - /// Gets or Sets CertifyBox19 - /// - /// false - [DataMember(Name = "certifyBox19", EmitDefaultValue = true)] - public bool CertifyBox19 { get; set; } - - /// - /// Gets or Sets CertifyBox21 - /// - /// false - [DataMember(Name = "certifyBox21", EmitDefaultValue = true)] - public bool CertifyBox21 { get; set; } - - /// - /// Indicates certification for box 22. - /// - /// Indicates certification for box 22. - /// false - [DataMember(Name = "certifyBox22", EmitDefaultValue = true)] - public bool CertifyBox22 { get; set; } - - /// - /// Gets or Sets CertifyBox23 - /// - /// false - [DataMember(Name = "certifyBox23", EmitDefaultValue = true)] - public bool CertifyBox23 { get; set; } - - /// - /// Indicates certification for box 24A. - /// - /// Indicates certification for box 24A. - /// false - [DataMember(Name = "certifyBox24A", EmitDefaultValue = true)] - public bool CertifyBox24A { get; set; } - - /// - /// Indicates certification for box 24B. - /// - /// Indicates certification for box 24B. - /// false - [DataMember(Name = "certifyBox24B", EmitDefaultValue = true)] - public bool CertifyBox24B { get; set; } - - /// - /// Indicates certification for box 24C. - /// - /// Indicates certification for box 24C. - /// false - [DataMember(Name = "certifyBox24C", EmitDefaultValue = true)] - public bool CertifyBox24C { get; set; } - - /// - /// Gets or Sets CertifyBox24D - /// - /// false - [DataMember(Name = "certifyBox24D", EmitDefaultValue = true)] - public bool CertifyBox24D { get; set; } - - /// - /// Gets or Sets CertifyBox25A - /// - /// false - [DataMember(Name = "certifyBox25A", EmitDefaultValue = true)] - public bool CertifyBox25A { get; set; } - - /// - /// Gets or Sets CertifyBox25B - /// - /// false - [DataMember(Name = "certifyBox25B", EmitDefaultValue = true)] - public bool CertifyBox25B { get; set; } - - /// - /// Gets or Sets CertifyBox25C - /// - /// false - [DataMember(Name = "certifyBox25C", EmitDefaultValue = true)] - public bool CertifyBox25C { get; set; } - - /// - /// Indicates certification for box 26. - /// - /// Indicates certification for box 26. - /// false - [DataMember(Name = "certifyBox26", EmitDefaultValue = true)] - public bool CertifyBox26 { get; set; } - - /// - /// Gets or Sets CertifyBox27 - /// - /// false - [DataMember(Name = "certifyBox27", EmitDefaultValue = true)] - public bool CertifyBox27 { get; set; } - - /// - /// Gets or Sets CertifyBox28A - /// - /// false - [DataMember(Name = "certifyBox28A", EmitDefaultValue = true)] - public bool CertifyBox28A { get; set; } - - /// - /// Gets or Sets CertifyBox28B - /// - /// false - [DataMember(Name = "certifyBox28B", EmitDefaultValue = true)] - public bool CertifyBox28B { get; set; } - - /// - /// Gets or Sets CertifyBox29A - /// - /// false - [DataMember(Name = "certifyBox29A", EmitDefaultValue = true)] - public bool CertifyBox29A { get; set; } - - /// - /// Gets or Sets CertifyBox29B - /// - /// false - [DataMember(Name = "certifyBox29B", EmitDefaultValue = true)] - public bool CertifyBox29B { get; set; } - - /// - /// Gets or Sets CertifyBox29C - /// - /// false - [DataMember(Name = "certifyBox29C", EmitDefaultValue = true)] - public bool CertifyBox29C { get; set; } - - /// - /// Gets or Sets CertifyBox29D - /// - /// false - [DataMember(Name = "certifyBox29D", EmitDefaultValue = true)] - public bool CertifyBox29D { get; set; } - - /// - /// Gets or Sets CertifyBox29E - /// - /// false - [DataMember(Name = "certifyBox29E", EmitDefaultValue = true)] - public bool CertifyBox29E { get; set; } - - /// - /// Gets or Sets CertifyBox29F - /// - /// false - [DataMember(Name = "certifyBox29F", EmitDefaultValue = true)] - public bool CertifyBox29F { get; set; } - - /// - /// Gets or Sets CertifyBox30 - /// - /// false - [DataMember(Name = "certifyBox30", EmitDefaultValue = true)] - public bool CertifyBox30 { get; set; } - - /// - /// Indicates certification for box 31. - /// - /// Indicates certification for box 31. - /// false - [DataMember(Name = "certifyBox31", EmitDefaultValue = true)] - public bool CertifyBox31 { get; set; } - - /// - /// Indicates certification for box 32. - /// - /// Indicates certification for box 32. - /// false - [DataMember(Name = "certifyBox32", EmitDefaultValue = true)] - public bool CertifyBox32 { get; set; } - - /// - /// Gets or Sets CertifyBox33 - /// - /// false - [DataMember(Name = "certifyBox33", EmitDefaultValue = true)] - public bool CertifyBox33 { get; set; } - - /// - /// Indicates certification for box 34. - /// - /// Indicates certification for box 34. - /// false - [DataMember(Name = "certifyBox34", EmitDefaultValue = true)] - public bool CertifyBox34 { get; set; } - - /// - /// Indicates certification for box 35. - /// - /// Indicates certification for box 35. - /// false - [DataMember(Name = "certifyBox35", EmitDefaultValue = true)] - public bool CertifyBox35 { get; set; } - - /// - /// Indicates certification for box 36. - /// - /// Indicates certification for box 36. - /// false - [DataMember(Name = "certifyBox36", EmitDefaultValue = true)] - public bool CertifyBox36 { get; set; } - - /// - /// Indicates certification for box 37A. - /// - /// Indicates certification for box 37A. - /// false - [DataMember(Name = "certifyBox37A", EmitDefaultValue = true)] - public bool CertifyBox37A { get; set; } - - /// - /// Indicates certification for box 37B. - /// - /// Indicates certification for box 37B. - /// false - [DataMember(Name = "certifyBox37B", EmitDefaultValue = true)] - public bool CertifyBox37B { get; set; } - - /// - /// Indicates certification for box 38. - /// - /// Indicates certification for box 38. - /// false - [DataMember(Name = "certifyBox38", EmitDefaultValue = true)] - public bool CertifyBox38 { get; set; } - - /// - /// Indicates certification for box 39. - /// - /// Indicates certification for box 39. - /// false - [DataMember(Name = "certifyBox39", EmitDefaultValue = true)] - public bool CertifyBox39 { get; set; } - - /// - /// Gets or Sets CertifyBox40A - /// - /// false - [DataMember(Name = "certifyBox40A", EmitDefaultValue = true)] - public bool CertifyBox40A { get; set; } - - /// - /// Gets or Sets CertifyBox40B - /// - /// false - [DataMember(Name = "certifyBox40B", EmitDefaultValue = true)] - public bool CertifyBox40B { get; set; } - - /// - /// Gets or Sets CertifyBox40C - /// - /// false - [DataMember(Name = "certifyBox40C", EmitDefaultValue = true)] - public bool CertifyBox40C { get; set; } - - /// - /// Gets or Sets CertifyBox41 - /// - /// false - [DataMember(Name = "certifyBox41", EmitDefaultValue = true)] - public bool CertifyBox41 { get; set; } - - /// - /// Gets or Sets CertifyBox43 - /// - /// false - [DataMember(Name = "certifyBox43", EmitDefaultValue = true)] - public bool CertifyBox43 { get; set; } - - /// - /// Gets or Sets CertifyPart29Signature - /// - /// false - [DataMember(Name = "certifyPart29Signature", EmitDefaultValue = true)] - public bool CertifyPart29Signature { get; set; } - - /// - /// Gets or Sets Part19FormationOrResolutionDate - /// - [DataMember(Name = "part19FormationOrResolutionDate", EmitDefaultValue = true)] - public DateTime? Part19FormationOrResolutionDate { get; set; } - - /// - /// Gets or Sets Part20FilingDate - /// - [DataMember(Name = "part20FilingDate", EmitDefaultValue = true)] - public DateTime? Part20FilingDate { get; set; } - - /// - /// Gets or Sets Part21DeterminationDate - /// - [DataMember(Name = "part21DeterminationDate", EmitDefaultValue = true)] - public DateTime? Part21DeterminationDate { get; set; } - - /// - /// Gets or Sets SubstantialUsOwners - /// - /// [] - [DataMember(Name = "substantialUsOwners", EmitDefaultValue = false)] - public List SubstantialUsOwners { get; set; } - - /// - /// The employer identification number (EIN). - /// - /// The employer identification number (EIN). - [DataMember(Name = "ein", EmitDefaultValue = true)] - public string Ein { get; set; } - - /// - /// The type of employer identification number (EIN). - /// - /// The type of employer identification number (EIN). - [DataMember(Name = "einType", EmitDefaultValue = true)] - public string EinType { get; set; } - - /// - /// Indicates certification for box 14. - /// - /// Indicates certification for box 14. - /// false - [DataMember(Name = "certifyBox14", EmitDefaultValue = true)] - public bool CertifyBox14 { get; set; } - - /// - /// Indicates certification for box 15A. - /// - /// Indicates certification for box 15A. - /// false - [DataMember(Name = "certifyBox15A", EmitDefaultValue = true)] - public bool CertifyBox15A { get; set; } - - /// - /// Indicates certification for box 15B. - /// - /// Indicates certification for box 15B. - /// false - [DataMember(Name = "certifyBox15B", EmitDefaultValue = true)] - public bool CertifyBox15B { get; set; } - - /// - /// Indicates certification for box 15C. - /// - /// Indicates certification for box 15C. - /// false - [DataMember(Name = "certifyBox15C", EmitDefaultValue = true)] - public bool CertifyBox15C { get; set; } - - /// - /// Indicates certification for box 15D. - /// - /// Indicates certification for box 15D. - /// false - [DataMember(Name = "certifyBox15D", EmitDefaultValue = true)] - public bool CertifyBox15D { get; set; } - - /// - /// Indicates certification for box 15E. - /// - /// Indicates certification for box 15E. - /// false - [DataMember(Name = "certifyBox15E", EmitDefaultValue = true)] - public bool CertifyBox15E { get; set; } - - /// - /// Indicates certification for box 15F. - /// - /// Indicates certification for box 15F. - /// false - [DataMember(Name = "certifyBox15F", EmitDefaultValue = true)] - public bool CertifyBox15F { get; set; } - - /// - /// Indicates certification for box 15G. - /// - /// Indicates certification for box 15G. - /// false - [DataMember(Name = "certifyBox15G", EmitDefaultValue = true)] - public bool CertifyBox15G { get; set; } - - /// - /// Indicates certification for box 15H. - /// - /// Indicates certification for box 15H. - /// false - [DataMember(Name = "certifyBox15H", EmitDefaultValue = true)] - public bool CertifyBox15H { get; set; } - - /// - /// Indicates certification for box 15I. - /// - /// Indicates certification for box 15I. - /// false - [DataMember(Name = "certifyBox15I", EmitDefaultValue = true)] - public bool CertifyBox15I { get; set; } - - /// - /// Indicates certification for box 16A. - /// - /// Indicates certification for box 16A. - /// false - [DataMember(Name = "certifyBox16A", EmitDefaultValue = true)] - public bool CertifyBox16A { get; set; } - - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// false - [DataMember(Name = "box16BQddCorporate", EmitDefaultValue = true)] - public bool Box16BQddCorporate { get; set; } - - /// - /// Indicates certification for box 16B as a QDD partnership. - /// - /// Indicates certification for box 16B as a QDD partnership. - /// false - [DataMember(Name = "box16BQddPartnership", EmitDefaultValue = true)] - public bool Box16BQddPartnership { get; set; } - - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// false - [DataMember(Name = "box16BQddDisregardedEntity", EmitDefaultValue = true)] - public bool Box16BQddDisregardedEntity { get; set; } - - /// - /// Indicates certification for box 17A. - /// - /// Indicates certification for box 17A. - /// false - [DataMember(Name = "certifyBox17A", EmitDefaultValue = true)] - public bool CertifyBox17A { get; set; } - - /// - /// Indicates certification for box 17B. - /// - /// Indicates certification for box 17B. - /// false - [DataMember(Name = "certifyBox17B", EmitDefaultValue = true)] - public bool CertifyBox17B { get; set; } - - /// - /// Indicates certification for box 17C. - /// - /// Indicates certification for box 17C. - /// false - [DataMember(Name = "certifyBox17C", EmitDefaultValue = true)] - public bool CertifyBox17C { get; set; } - - /// - /// Indicates certification for box 17D. - /// - /// Indicates certification for box 17D. - /// false - [DataMember(Name = "certifyBox17D", EmitDefaultValue = true)] - public bool CertifyBox17D { get; set; } - - /// - /// Indicates certification for box 17E. - /// - /// Indicates certification for box 17E. - /// false - [DataMember(Name = "certifyBox17E", EmitDefaultValue = true)] - public bool CertifyBox17E { get; set; } - - /// - /// Indicates certification for box 18A. - /// - /// Indicates certification for box 18A. - /// false - [DataMember(Name = "certifyBox18A", EmitDefaultValue = true)] - public bool CertifyBox18A { get; set; } - - /// - /// Indicates certification for box 18B. - /// - /// Indicates certification for box 18B. - /// false - [DataMember(Name = "certifyBox18B", EmitDefaultValue = true)] - public bool CertifyBox18B { get; set; } - - /// - /// Indicates certification for box 18C. - /// - /// Indicates certification for box 18C. - /// false - [DataMember(Name = "certifyBox18C", EmitDefaultValue = true)] - public bool CertifyBox18C { get; set; } - - /// - /// Indicates certification for box 18D. - /// - /// Indicates certification for box 18D. - /// false - [DataMember(Name = "certifyBox18D", EmitDefaultValue = true)] - public bool CertifyBox18D { get; set; } - - /// - /// Indicates certification for box 18E. - /// - /// Indicates certification for box 18E. - /// false - [DataMember(Name = "certifyBox18E", EmitDefaultValue = true)] - public bool CertifyBox18E { get; set; } - - /// - /// Indicates certification for box 18F. - /// - /// Indicates certification for box 18F. - /// false - [DataMember(Name = "certifyBox18F", EmitDefaultValue = true)] - public bool CertifyBox18F { get; set; } - - /// - /// Indicates certification for box 19A. - /// - /// Indicates certification for box 19A. - /// false - [DataMember(Name = "certifyBox19A", EmitDefaultValue = true)] - public bool CertifyBox19A { get; set; } - - /// - /// Indicates certification for box 19B. - /// - /// Indicates certification for box 19B. - /// false - [DataMember(Name = "certifyBox19B", EmitDefaultValue = true)] - public bool CertifyBox19B { get; set; } - - /// - /// Indicates certification for box 19C. - /// - /// Indicates certification for box 19C. - /// false - [DataMember(Name = "certifyBox19C", EmitDefaultValue = true)] - public bool CertifyBox19C { get; set; } - - /// - /// Indicates certification for box 19D. - /// - /// Indicates certification for box 19D. - /// false - [DataMember(Name = "certifyBox19D", EmitDefaultValue = true)] - public bool CertifyBox19D { get; set; } - - /// - /// Indicates certification for box 19E. - /// - /// Indicates certification for box 19E. - /// false - [DataMember(Name = "certifyBox19E", EmitDefaultValue = true)] - public bool CertifyBox19E { get; set; } - - /// - /// Indicates certification for box 19F. - /// - /// Indicates certification for box 19F. - /// false - [DataMember(Name = "certifyBox19F", EmitDefaultValue = true)] - public bool CertifyBox19F { get; set; } - - /// - /// Indicates certification for box 20. - /// - /// Indicates certification for box 20. - /// false - [DataMember(Name = "certifyBox20", EmitDefaultValue = true)] - public bool CertifyBox20 { get; set; } - - /// - /// Indicates certification for box 21A. - /// - /// Indicates certification for box 21A. - /// false - [DataMember(Name = "certifyBox21A", EmitDefaultValue = true)] - public bool CertifyBox21A { get; set; } - - /// - /// Indicates certification for box 21B. - /// - /// Indicates certification for box 21B. - /// false - [DataMember(Name = "certifyBox21B", EmitDefaultValue = true)] - public bool CertifyBox21B { get; set; } - - /// - /// Indicates certification for box 21C. - /// - /// Indicates certification for box 21C. - /// false - [DataMember(Name = "certifyBox21C", EmitDefaultValue = true)] - public bool CertifyBox21C { get; set; } - - /// - /// Indicates certification for box 21D. - /// - /// Indicates certification for box 21D. - /// false - [DataMember(Name = "certifyBox21D", EmitDefaultValue = true)] - public bool CertifyBox21D { get; set; } - - /// - /// Indicates certification for box 21E. - /// - /// Indicates certification for box 21E. - /// false - [DataMember(Name = "certifyBox21E", EmitDefaultValue = true)] - public bool CertifyBox21E { get; set; } - - /// - /// Indicates certification for box 21F. - /// - /// Indicates certification for box 21F. - /// false - [DataMember(Name = "certifyBox21F", EmitDefaultValue = true)] - public bool CertifyBox21F { get; set; } - - /// - /// The name of the sponsoring entity for box 23A. - /// - /// The name of the sponsoring entity for box 23A. - [DataMember(Name = "box23ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box23ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 23B. - /// - /// Indicates certification for box 23B. - /// false - [DataMember(Name = "certifyBox23B", EmitDefaultValue = true)] - public bool CertifyBox23B { get; set; } - - /// - /// Indicates certification for box 23C. - /// - /// Indicates certification for box 23C. - /// false - [DataMember(Name = "certifyBox23C", EmitDefaultValue = true)] - public bool CertifyBox23C { get; set; } - - /// - /// Indicates certification for box 25. - /// - /// Indicates certification for box 25. - /// false - [DataMember(Name = "certifyBox25", EmitDefaultValue = true)] - public bool CertifyBox25 { get; set; } - - /// - /// The name of the sponsoring entity for box 27A. - /// - /// The name of the sponsoring entity for box 27A. - [DataMember(Name = "box27ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box27ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 27B. - /// - /// Indicates certification for box 27B. - /// false - [DataMember(Name = "certifyBox27B", EmitDefaultValue = true)] - public bool CertifyBox27B { get; set; } - - /// - /// Indicates certification for box 28. - /// - /// Indicates certification for box 28. - /// false - [DataMember(Name = "certifyBox28", EmitDefaultValue = true)] - public bool CertifyBox28 { get; set; } - - /// - /// Indicates certification for box 29. - /// - /// Indicates certification for box 29. - /// false - [DataMember(Name = "certifyBox29", EmitDefaultValue = true)] - public bool CertifyBox29 { get; set; } - - /// - /// Indicates certification for box 30A. - /// - /// Indicates certification for box 30A. - /// false - [DataMember(Name = "certifyBox30A", EmitDefaultValue = true)] - public bool CertifyBox30A { get; set; } - - /// - /// Indicates certification for box 30B. - /// - /// Indicates certification for box 30B. - /// false - [DataMember(Name = "certifyBox30B", EmitDefaultValue = true)] - public bool CertifyBox30B { get; set; } - - /// - /// Indicates certification for box 30C. - /// - /// Indicates certification for box 30C. - /// false - [DataMember(Name = "certifyBox30C", EmitDefaultValue = true)] - public bool CertifyBox30C { get; set; } - - /// - /// The IGA country information for box 32. - /// - /// The IGA country information for box 32. - [DataMember(Name = "box32IgaCountry", EmitDefaultValue = true)] - public string Box32IgaCountry { get; set; } - - /// - /// The IGA type information for box 32. - /// - /// The IGA type information for box 32. - [DataMember(Name = "box32IgaType", EmitDefaultValue = true)] - public string Box32IgaType { get; set; } - - /// - /// The IGA treatment information for box 32. - /// - /// The IGA treatment information for box 32. - [DataMember(Name = "box32IgaTreatedAs", EmitDefaultValue = true)] - public string Box32IgaTreatedAs { get; set; } - - /// - /// The trustee or sponsor information for box 32. - /// - /// The trustee or sponsor information for box 32. - [DataMember(Name = "box32TrusteeOrSponsor", EmitDefaultValue = true)] - public string Box32TrusteeOrSponsor { get; set; } - - /// - /// Indicates whether the trustee is foreign for box 32. - /// - /// Indicates whether the trustee is foreign for box 32. - /// false - [DataMember(Name = "box32TrusteeIsForeign", EmitDefaultValue = true)] - public bool Box32TrusteeIsForeign { get; set; } - - /// - /// Indicates certification for box 33A. - /// - /// Indicates certification for box 33A. - /// false - [DataMember(Name = "certifyBox33A", EmitDefaultValue = true)] - public bool CertifyBox33A { get; set; } - - /// - /// Indicates certification for box 33B. - /// - /// Indicates certification for box 33B. - /// false - [DataMember(Name = "certifyBox33B", EmitDefaultValue = true)] - public bool CertifyBox33B { get; set; } - - /// - /// Indicates certification for box 33C. - /// - /// Indicates certification for box 33C. - /// false - [DataMember(Name = "certifyBox33C", EmitDefaultValue = true)] - public bool CertifyBox33C { get; set; } - - /// - /// Indicates certification for box 33D. - /// - /// Indicates certification for box 33D. - /// false - [DataMember(Name = "certifyBox33D", EmitDefaultValue = true)] - public bool CertifyBox33D { get; set; } - - /// - /// Indicates certification for box 33E. - /// - /// Indicates certification for box 33E. - /// false - [DataMember(Name = "certifyBox33E", EmitDefaultValue = true)] - public bool CertifyBox33E { get; set; } - - /// - /// Indicates certification for box 33F. - /// - /// Indicates certification for box 33F. - /// false - [DataMember(Name = "certifyBox33F", EmitDefaultValue = true)] - public bool CertifyBox33F { get; set; } - - /// - /// The securities market information for box 37A. - /// - /// The securities market information for box 37A. - [DataMember(Name = "box37ASecuritiesMarket", EmitDefaultValue = true)] - public string Box37ASecuritiesMarket { get; set; } - - /// - /// The name of the entity for box 37B. - /// - /// The name of the entity for box 37B. - [DataMember(Name = "box37BNameOfEntity", EmitDefaultValue = true)] - public string Box37BNameOfEntity { get; set; } - - /// - /// The securities market information for box 37B. - /// - /// The securities market information for box 37B. - [DataMember(Name = "box37BSecuritiesMarket", EmitDefaultValue = true)] - public string Box37BSecuritiesMarket { get; set; } - - /// - /// Indicates certification for box 40. - /// - /// Indicates certification for box 40. - /// false - [DataMember(Name = "certifyBox40", EmitDefaultValue = true)] - public bool CertifyBox40 { get; set; } - - /// - /// The sponsoring entity information for box 41. - /// - /// The sponsoring entity information for box 41. - [DataMember(Name = "box41SponsoringEntity", EmitDefaultValue = true)] - public string Box41SponsoringEntity { get; set; } - - /// - /// Indicates certification for box 42. - /// - /// Indicates certification for box 42. - /// false - [DataMember(Name = "certifyBox42", EmitDefaultValue = true)] - public bool CertifyBox42 { get; set; } - - /// - /// Gets or Sets Box35FormedOnDate - /// - [DataMember(Name = "box35FormedOnDate", EmitDefaultValue = true)] - public DateTime? Box35FormedOnDate { get; set; } - - /// - /// Gets or Sets Box36FiledOnDate - /// - [DataMember(Name = "box36FiledOnDate", EmitDefaultValue = true)] - public DateTime? Box36FiledOnDate { get; set; } - - /// - /// The status of the TIN match. - /// - /// The status of the TIN match. - /// Match - [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] - public string TinMatchStatus { get; set; } - - /// - /// The signature itself - /// - /// The signature itself [DataMember(Name = "signature", EmitDefaultValue = true)] public string Signature { get; set; } /// - /// The classification of the business. - /// - /// The classification of the business. - /// LLC - [DataMember(Name = "businessClassification", EmitDefaultValue = true)] - public string BusinessClassification { get; set; } - - /// - /// The name of the business associated with the form. - /// - /// The name of the business associated with the form. - /// Doe Enterprises - [DataMember(Name = "businessName", EmitDefaultValue = true)] - public string BusinessName { get; set; } - - /// - /// Gets or Sets BusinessOther - /// - [DataMember(Name = "businessOther", EmitDefaultValue = true)] - public string BusinessOther { get; set; } - - /// - /// Gets or Sets ExemptPayeeCode - /// - [DataMember(Name = "exemptPayeeCode", EmitDefaultValue = true)] - public string ExemptPayeeCode { get; set; } - - /// - /// Gets or Sets ExemptFatcaCode - /// - [DataMember(Name = "exemptFatcaCode", EmitDefaultValue = true)] - public string ExemptFatcaCode { get; set; } - - /// - /// The account number associated with the form. - /// - /// The account number associated with the form. - /// ACC123456 - [DataMember(Name = "accountNumber", EmitDefaultValue = true)] - public string AccountNumber { get; set; } - - /// - /// Indicates whether the individual or entity is in a foreign country. + /// Gets or Sets Mobile /// - /// Indicates whether the individual or entity is in a foreign country. - /// false - [DataMember(Name = "foreignCountryIndicator", EmitDefaultValue = true)] - public bool? ForeignCountryIndicator { get; set; } + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } /// - /// The foreign address of the individual or entity. + /// Gets or Sets AppVersion /// - /// The foreign address of the individual or entity. - [DataMember(Name = "foreignAddress", EmitDefaultValue = true)] - public string ForeignAddress { get; set; } + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } /// - /// Indicates whether backup withholding applies. + /// Gets or Sets Platform /// - /// Indicates whether backup withholding applies. - /// false - [DataMember(Name = "backupWithholding", EmitDefaultValue = true)] - public bool? BackupWithholding { get; set; } + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } /// - /// Gets or Sets Is1099able + /// Gets or Sets OsVersion /// - [DataMember(Name = "is1099able", EmitDefaultValue = true)] - public bool? Is1099able { get; set; } + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. + /// Gets or Sets AncestorId /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// false - [DataMember(Name = "foreignPartnerOwnerOrBeneficiary", EmitDefaultValue = true)] - public bool? ForeignPartnerOwnerOrBeneficiary { get; set; } + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } /// /// Returns the string presentation of the object @@ -2183,182 +590,18 @@ public override string ToString() sb.Append(" EDeliveryConsentedAt: ").Append(EDeliveryConsentedAt).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" EmployeeFirstName: ").Append(EmployeeFirstName).Append("\n"); - sb.Append(" EmployeeMiddleName: ").Append(EmployeeMiddleName).Append("\n"); - sb.Append(" EmployeeLastName: ").Append(EmployeeLastName).Append("\n"); - sb.Append(" EmployeeNameSuffix: ").Append(EmployeeNameSuffix).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Zip: ").Append(Zip).Append("\n"); - sb.Append(" Box3MaritalStatus: ").Append(Box3MaritalStatus).Append("\n"); - sb.Append(" Box4LastNameDiffers: ").Append(Box4LastNameDiffers).Append("\n"); - sb.Append(" Box5NumAllowances: ").Append(Box5NumAllowances).Append("\n"); - sb.Append(" OtherDependents: ").Append(OtherDependents).Append("\n"); - sb.Append(" NonJobIncome: ").Append(NonJobIncome).Append("\n"); - sb.Append(" Deductions: ").Append(Deductions).Append("\n"); - sb.Append(" Box6AdditionalWithheld: ").Append(Box6AdditionalWithheld).Append("\n"); - sb.Append(" Box7ExemptFromWithholding: ").Append(Box7ExemptFromWithholding).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" DisregardedEntityChapter4FatcaStatus: ").Append(DisregardedEntityChapter4FatcaStatus).Append("\n"); - sb.Append(" DisregardedAddress: ").Append(DisregardedAddress).Append("\n"); - sb.Append(" DisregardedCity: ").Append(DisregardedCity).Append("\n"); - sb.Append(" DisregardedState: ").Append(DisregardedState).Append("\n"); - sb.Append(" DisregardedPostalCode: ").Append(DisregardedPostalCode).Append("\n"); - sb.Append(" DisregardedCountry: ").Append(DisregardedCountry).Append("\n"); - sb.Append(" FtinNotRequired: ").Append(FtinNotRequired).Append("\n"); - sb.Append(" Giin: ").Append(Giin).Append("\n"); - sb.Append(" Chapter3EntityType: ").Append(Chapter3EntityType).Append("\n"); - sb.Append(" Chapter4FatcaStatus: ").Append(Chapter4FatcaStatus).Append("\n"); - sb.Append(" DisregardedEntity: ").Append(DisregardedEntity).Append("\n"); - sb.Append(" DisregardedEntityGiin: ").Append(DisregardedEntityGiin).Append("\n"); - sb.Append(" BenefitLimitation: ").Append(BenefitLimitation).Append("\n"); - sb.Append(" Part4SponsoringEntity: ").Append(Part4SponsoringEntity).Append("\n"); - sb.Append(" Part4SponsoringEntityGiin: ").Append(Part4SponsoringEntityGiin).Append("\n"); - sb.Append(" Part7SponsoringEntity: ").Append(Part7SponsoringEntity).Append("\n"); - sb.Append(" Part12IgaCountry: ").Append(Part12IgaCountry).Append("\n"); - sb.Append(" Part12IgaType: ").Append(Part12IgaType).Append("\n"); - sb.Append(" Part12FatcaStatusUnderIgaAnnexIi: ").Append(Part12FatcaStatusUnderIgaAnnexIi).Append("\n"); - sb.Append(" Part12TrusteeName: ").Append(Part12TrusteeName).Append("\n"); - sb.Append(" Part12TrusteeIsForeign: ").Append(Part12TrusteeIsForeign).Append("\n"); - sb.Append(" Part12Model2IgaGiin: ").Append(Part12Model2IgaGiin).Append("\n"); - sb.Append(" Box37AExchange: ").Append(Box37AExchange).Append("\n"); - sb.Append(" Box37BExchange: ").Append(Box37BExchange).Append("\n"); - sb.Append(" Box37BEntity: ").Append(Box37BEntity).Append("\n"); - sb.Append(" Part28SponsoringEntity: ").Append(Part28SponsoringEntity).Append("\n"); - sb.Append(" Part28SponsoringEntityGiin: ").Append(Part28SponsoringEntityGiin).Append("\n"); - sb.Append(" MakingTreatyClaim: ").Append(MakingTreatyClaim).Append("\n"); - sb.Append(" CertifyBox14A: ").Append(CertifyBox14A).Append("\n"); - sb.Append(" CertifyBox14B: ").Append(CertifyBox14B).Append("\n"); - sb.Append(" CertifyBox14C: ").Append(CertifyBox14C).Append("\n"); - sb.Append(" CertifyBox171: ").Append(CertifyBox171).Append("\n"); - sb.Append(" CertifyBox172: ").Append(CertifyBox172).Append("\n"); - sb.Append(" CertifyBox18: ").Append(CertifyBox18).Append("\n"); - sb.Append(" CertifyBox19: ").Append(CertifyBox19).Append("\n"); - sb.Append(" CertifyBox21: ").Append(CertifyBox21).Append("\n"); - sb.Append(" CertifyBox22: ").Append(CertifyBox22).Append("\n"); - sb.Append(" CertifyBox23: ").Append(CertifyBox23).Append("\n"); - sb.Append(" CertifyBox24A: ").Append(CertifyBox24A).Append("\n"); - sb.Append(" CertifyBox24B: ").Append(CertifyBox24B).Append("\n"); - sb.Append(" CertifyBox24C: ").Append(CertifyBox24C).Append("\n"); - sb.Append(" CertifyBox24D: ").Append(CertifyBox24D).Append("\n"); - sb.Append(" CertifyBox25A: ").Append(CertifyBox25A).Append("\n"); - sb.Append(" CertifyBox25B: ").Append(CertifyBox25B).Append("\n"); - sb.Append(" CertifyBox25C: ").Append(CertifyBox25C).Append("\n"); - sb.Append(" CertifyBox26: ").Append(CertifyBox26).Append("\n"); - sb.Append(" CertifyBox27: ").Append(CertifyBox27).Append("\n"); - sb.Append(" CertifyBox28A: ").Append(CertifyBox28A).Append("\n"); - sb.Append(" CertifyBox28B: ").Append(CertifyBox28B).Append("\n"); - sb.Append(" CertifyBox29A: ").Append(CertifyBox29A).Append("\n"); - sb.Append(" CertifyBox29B: ").Append(CertifyBox29B).Append("\n"); - sb.Append(" CertifyBox29C: ").Append(CertifyBox29C).Append("\n"); - sb.Append(" CertifyBox29D: ").Append(CertifyBox29D).Append("\n"); - sb.Append(" CertifyBox29E: ").Append(CertifyBox29E).Append("\n"); - sb.Append(" CertifyBox29F: ").Append(CertifyBox29F).Append("\n"); - sb.Append(" CertifyBox30: ").Append(CertifyBox30).Append("\n"); - sb.Append(" CertifyBox31: ").Append(CertifyBox31).Append("\n"); - sb.Append(" CertifyBox32: ").Append(CertifyBox32).Append("\n"); - sb.Append(" CertifyBox33: ").Append(CertifyBox33).Append("\n"); - sb.Append(" CertifyBox34: ").Append(CertifyBox34).Append("\n"); - sb.Append(" CertifyBox35: ").Append(CertifyBox35).Append("\n"); - sb.Append(" CertifyBox36: ").Append(CertifyBox36).Append("\n"); - sb.Append(" CertifyBox37A: ").Append(CertifyBox37A).Append("\n"); - sb.Append(" CertifyBox37B: ").Append(CertifyBox37B).Append("\n"); - sb.Append(" CertifyBox38: ").Append(CertifyBox38).Append("\n"); - sb.Append(" CertifyBox39: ").Append(CertifyBox39).Append("\n"); - sb.Append(" CertifyBox40A: ").Append(CertifyBox40A).Append("\n"); - sb.Append(" CertifyBox40B: ").Append(CertifyBox40B).Append("\n"); - sb.Append(" CertifyBox40C: ").Append(CertifyBox40C).Append("\n"); - sb.Append(" CertifyBox41: ").Append(CertifyBox41).Append("\n"); - sb.Append(" CertifyBox43: ").Append(CertifyBox43).Append("\n"); - sb.Append(" CertifyPart29Signature: ").Append(CertifyPart29Signature).Append("\n"); - sb.Append(" Part19FormationOrResolutionDate: ").Append(Part19FormationOrResolutionDate).Append("\n"); - sb.Append(" Part20FilingDate: ").Append(Part20FilingDate).Append("\n"); - sb.Append(" Part21DeterminationDate: ").Append(Part21DeterminationDate).Append("\n"); - sb.Append(" SubstantialUsOwners: ").Append(SubstantialUsOwners).Append("\n"); - sb.Append(" Ein: ").Append(Ein).Append("\n"); - sb.Append(" EinType: ").Append(EinType).Append("\n"); - sb.Append(" CertifyBox14: ").Append(CertifyBox14).Append("\n"); - sb.Append(" CertifyBox15A: ").Append(CertifyBox15A).Append("\n"); - sb.Append(" CertifyBox15B: ").Append(CertifyBox15B).Append("\n"); - sb.Append(" CertifyBox15C: ").Append(CertifyBox15C).Append("\n"); - sb.Append(" CertifyBox15D: ").Append(CertifyBox15D).Append("\n"); - sb.Append(" CertifyBox15E: ").Append(CertifyBox15E).Append("\n"); - sb.Append(" CertifyBox15F: ").Append(CertifyBox15F).Append("\n"); - sb.Append(" CertifyBox15G: ").Append(CertifyBox15G).Append("\n"); - sb.Append(" CertifyBox15H: ").Append(CertifyBox15H).Append("\n"); - sb.Append(" CertifyBox15I: ").Append(CertifyBox15I).Append("\n"); - sb.Append(" CertifyBox16A: ").Append(CertifyBox16A).Append("\n"); - sb.Append(" Box16BQddCorporate: ").Append(Box16BQddCorporate).Append("\n"); - sb.Append(" Box16BQddPartnership: ").Append(Box16BQddPartnership).Append("\n"); - sb.Append(" Box16BQddDisregardedEntity: ").Append(Box16BQddDisregardedEntity).Append("\n"); - sb.Append(" CertifyBox17A: ").Append(CertifyBox17A).Append("\n"); - sb.Append(" CertifyBox17B: ").Append(CertifyBox17B).Append("\n"); - sb.Append(" CertifyBox17C: ").Append(CertifyBox17C).Append("\n"); - sb.Append(" CertifyBox17D: ").Append(CertifyBox17D).Append("\n"); - sb.Append(" CertifyBox17E: ").Append(CertifyBox17E).Append("\n"); - sb.Append(" CertifyBox18A: ").Append(CertifyBox18A).Append("\n"); - sb.Append(" CertifyBox18B: ").Append(CertifyBox18B).Append("\n"); - sb.Append(" CertifyBox18C: ").Append(CertifyBox18C).Append("\n"); - sb.Append(" CertifyBox18D: ").Append(CertifyBox18D).Append("\n"); - sb.Append(" CertifyBox18E: ").Append(CertifyBox18E).Append("\n"); - sb.Append(" CertifyBox18F: ").Append(CertifyBox18F).Append("\n"); - sb.Append(" CertifyBox19A: ").Append(CertifyBox19A).Append("\n"); - sb.Append(" CertifyBox19B: ").Append(CertifyBox19B).Append("\n"); - sb.Append(" CertifyBox19C: ").Append(CertifyBox19C).Append("\n"); - sb.Append(" CertifyBox19D: ").Append(CertifyBox19D).Append("\n"); - sb.Append(" CertifyBox19E: ").Append(CertifyBox19E).Append("\n"); - sb.Append(" CertifyBox19F: ").Append(CertifyBox19F).Append("\n"); - sb.Append(" CertifyBox20: ").Append(CertifyBox20).Append("\n"); - sb.Append(" CertifyBox21A: ").Append(CertifyBox21A).Append("\n"); - sb.Append(" CertifyBox21B: ").Append(CertifyBox21B).Append("\n"); - sb.Append(" CertifyBox21C: ").Append(CertifyBox21C).Append("\n"); - sb.Append(" CertifyBox21D: ").Append(CertifyBox21D).Append("\n"); - sb.Append(" CertifyBox21E: ").Append(CertifyBox21E).Append("\n"); - sb.Append(" CertifyBox21F: ").Append(CertifyBox21F).Append("\n"); - sb.Append(" Box23ANameSponsoringEntity: ").Append(Box23ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox23B: ").Append(CertifyBox23B).Append("\n"); - sb.Append(" CertifyBox23C: ").Append(CertifyBox23C).Append("\n"); - sb.Append(" CertifyBox25: ").Append(CertifyBox25).Append("\n"); - sb.Append(" Box27ANameSponsoringEntity: ").Append(Box27ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox27B: ").Append(CertifyBox27B).Append("\n"); - sb.Append(" CertifyBox28: ").Append(CertifyBox28).Append("\n"); - sb.Append(" CertifyBox29: ").Append(CertifyBox29).Append("\n"); - sb.Append(" CertifyBox30A: ").Append(CertifyBox30A).Append("\n"); - sb.Append(" CertifyBox30B: ").Append(CertifyBox30B).Append("\n"); - sb.Append(" CertifyBox30C: ").Append(CertifyBox30C).Append("\n"); - sb.Append(" Box32IgaCountry: ").Append(Box32IgaCountry).Append("\n"); - sb.Append(" Box32IgaType: ").Append(Box32IgaType).Append("\n"); - sb.Append(" Box32IgaTreatedAs: ").Append(Box32IgaTreatedAs).Append("\n"); - sb.Append(" Box32TrusteeOrSponsor: ").Append(Box32TrusteeOrSponsor).Append("\n"); - sb.Append(" Box32TrusteeIsForeign: ").Append(Box32TrusteeIsForeign).Append("\n"); - sb.Append(" CertifyBox33A: ").Append(CertifyBox33A).Append("\n"); - sb.Append(" CertifyBox33B: ").Append(CertifyBox33B).Append("\n"); - sb.Append(" CertifyBox33C: ").Append(CertifyBox33C).Append("\n"); - sb.Append(" CertifyBox33D: ").Append(CertifyBox33D).Append("\n"); - sb.Append(" CertifyBox33E: ").Append(CertifyBox33E).Append("\n"); - sb.Append(" CertifyBox33F: ").Append(CertifyBox33F).Append("\n"); - sb.Append(" Box37ASecuritiesMarket: ").Append(Box37ASecuritiesMarket).Append("\n"); - sb.Append(" Box37BNameOfEntity: ").Append(Box37BNameOfEntity).Append("\n"); - sb.Append(" Box37BSecuritiesMarket: ").Append(Box37BSecuritiesMarket).Append("\n"); - sb.Append(" CertifyBox40: ").Append(CertifyBox40).Append("\n"); - sb.Append(" Box41SponsoringEntity: ").Append(Box41SponsoringEntity).Append("\n"); - sb.Append(" CertifyBox42: ").Append(CertifyBox42).Append("\n"); - sb.Append(" Box35FormedOnDate: ").Append(Box35FormedOnDate).Append("\n"); - sb.Append(" Box36FiledOnDate: ").Append(Box36FiledOnDate).Append("\n"); - sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append(" BusinessClassification: ").Append(BusinessClassification).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" BusinessOther: ").Append(BusinessOther).Append("\n"); - sb.Append(" ExemptPayeeCode: ").Append(ExemptPayeeCode).Append("\n"); - sb.Append(" ExemptFatcaCode: ").Append(ExemptFatcaCode).Append("\n"); - sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); - sb.Append(" ForeignCountryIndicator: ").Append(ForeignCountryIndicator).Append("\n"); - sb.Append(" ForeignAddress: ").Append(ForeignAddress).Append("\n"); - sb.Append(" BackupWithholding: ").Append(BackupWithholding).Append("\n"); - sb.Append(" Is1099able: ").Append(Is1099able).Append("\n"); - sb.Append(" ForeignPartnerOwnerOrBeneficiary: ").Append(ForeignPartnerOwnerOrBeneficiary).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/W8BeneFormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/W8BeneFormDataModel.cs index 0bb7bab..1e3d223 100644 --- a/src/Avalara.SDK/Model/A1099/V2/W8BeneFormDataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/W8BeneFormDataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -202,117 +202,25 @@ public bool ShouldSerializeType() /// part19FormationOrResolutionDate. /// part20FilingDate. /// part21DeterminationDate. - /// substantialUsOwners. - /// The first name of the employee.. - /// The middle name of the employee.. - /// The last name of the employee.. - /// The name suffix of the employee.. - /// The address of the individual or entity.. - /// The city of the address.. - /// The state of the address.. - /// The ZIP code of the address.. - /// The marital status of the employee.. - /// Indicates whether the last name differs from prior records.. - /// The number of allowances claimed by the employee.. - /// The number of dependents other than allowances.. - /// The amount of non-job income.. - /// The amount of deductions claimed.. - /// The additional amount withheld.. - /// Indicates whether the employee is exempt from withholding.. - /// The office code associated with the form.. - /// The birthday of the individual associated with the form.. - /// Indicates whether a foreign TIN is not required.. - /// Indicates whether the form is archived.. + /// id. + /// entryStatus. + /// The last updated date of the form.. /// A reference identifier for the form.. /// The ID of the associated company.. /// The display name associated with the form.. /// The email address of the individual associated with the form.. - /// The capacity in which the signer is signing the form.. - /// The last updated date of the form.. - /// The employer identification number (EIN).. - /// The type of employer identification number (EIN).. - /// Indicates certification for box 14.. - /// Indicates certification for box 15A.. - /// Indicates certification for box 15B.. - /// Indicates certification for box 15C.. - /// Indicates certification for box 15D.. - /// Indicates certification for box 15E.. - /// Indicates certification for box 15F.. - /// Indicates certification for box 15G.. - /// Indicates certification for box 15H.. - /// Indicates certification for box 15I.. - /// Indicates certification for box 16A.. - /// Indicates certification for box 16B as a QDD corporate entity.. - /// Indicates certification for box 16B as a QDD partnership.. - /// Indicates certification for box 16B as a QDD disregarded entity.. - /// Indicates certification for box 17A.. - /// Indicates certification for box 17B.. - /// Indicates certification for box 17C.. - /// Indicates certification for box 17D.. - /// Indicates certification for box 17E.. - /// Indicates certification for box 18A.. - /// Indicates certification for box 18B.. - /// Indicates certification for box 18C.. - /// Indicates certification for box 18D.. - /// Indicates certification for box 18E.. - /// Indicates certification for box 18F.. - /// Indicates certification for box 19A.. - /// Indicates certification for box 19B.. - /// Indicates certification for box 19C.. - /// Indicates certification for box 19D.. - /// Indicates certification for box 19E.. - /// Indicates certification for box 19F.. - /// Indicates certification for box 20.. - /// Indicates certification for box 21A.. - /// Indicates certification for box 21B.. - /// Indicates certification for box 21C.. - /// Indicates certification for box 21D.. - /// Indicates certification for box 21E.. - /// Indicates certification for box 21F.. - /// The name of the sponsoring entity for box 23A.. - /// Indicates certification for box 23B.. - /// Indicates certification for box 23C.. - /// Indicates certification for box 25.. - /// The name of the sponsoring entity for box 27A.. - /// Indicates certification for box 27B.. - /// Indicates certification for box 28.. - /// Indicates certification for box 29.. - /// Indicates certification for box 30A.. - /// Indicates certification for box 30B.. - /// Indicates certification for box 30C.. - /// The IGA country information for box 32.. - /// The IGA type information for box 32.. - /// The IGA treatment information for box 32.. - /// The trustee or sponsor information for box 32.. - /// Indicates whether the trustee is foreign for box 32.. - /// Indicates certification for box 33A.. - /// Indicates certification for box 33B.. - /// Indicates certification for box 33C.. - /// Indicates certification for box 33D.. - /// Indicates certification for box 33E.. - /// Indicates certification for box 33F.. - /// The securities market information for box 37A.. - /// The name of the entity for box 37B.. - /// The securities market information for box 37B.. - /// Indicates certification for box 40.. - /// The sponsoring entity information for box 41.. - /// Indicates certification for box 42.. - /// box35FormedOnDate. - /// box36FiledOnDate. - /// The status of the TIN match.. - /// The signature itself. - /// The classification of the business.. - /// The name of the business associated with the form.. - /// businessOther. - /// exemptPayeeCode. - /// exemptFatcaCode. - /// The account number associated with the form.. - /// Indicates whether the individual or entity is in a foreign country.. - /// The foreign address of the individual or entity.. - /// Indicates whether backup withholding applies.. - /// is1099able. - /// Indicates whether the individual is a foreign partner, owner, or beneficiary.. - public W8BeneFormDataModel(DateTime? signedDate = default(DateTime?), string disregardedEntityChapter4FatcaStatus = default(string), DateTime? createdAt = default(DateTime?), string name = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string tin = default(string), string typeOfTin = default(string), string foreignTin = default(string), bool? ftinNotRequired = default(bool?), string referenceNumber = default(string), string giin = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string disregardedEntity = default(string), string disregardedEntityGiin = default(string), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), string signerName = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), bool? residenceIsMailing = default(bool?), string citizenshipCountry = default(string), bool? makingTreatyClaim = default(bool?), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox22 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox26 = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), bool certifyBox33 = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), bool certifyBox37B = default(bool), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), List substantialUsOwners = default(List), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string box3MaritalStatus = default(string), bool? box4LastNameDiffers = default(bool?), int? box5NumAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? box6AdditionalWithheld = default(double?), bool? box7ExemptFromWithholding = default(bool?), string officeCode = default(string), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), int? companyId = default(int?), string displayName = default(string), string email = default(string), string signerCapacity = default(string), DateTime? updatedAt = default(DateTime?), string ein = default(string), string einType = default(string), bool certifyBox14 = default(bool), bool certifyBox15A = default(bool), bool certifyBox15B = default(bool), bool certifyBox15C = default(bool), bool certifyBox15D = default(bool), bool certifyBox15E = default(bool), bool certifyBox15F = default(bool), bool certifyBox15G = default(bool), bool certifyBox15H = default(bool), bool certifyBox15I = default(bool), bool certifyBox16A = default(bool), bool box16BQddCorporate = default(bool), bool box16BQddPartnership = default(bool), bool box16BQddDisregardedEntity = default(bool), bool certifyBox17A = default(bool), bool certifyBox17B = default(bool), bool certifyBox17C = default(bool), bool certifyBox17D = default(bool), bool certifyBox17E = default(bool), bool certifyBox18A = default(bool), bool certifyBox18B = default(bool), bool certifyBox18C = default(bool), bool certifyBox18D = default(bool), bool certifyBox18E = default(bool), bool certifyBox18F = default(bool), bool certifyBox19A = default(bool), bool certifyBox19B = default(bool), bool certifyBox19C = default(bool), bool certifyBox19D = default(bool), bool certifyBox19E = default(bool), bool certifyBox19F = default(bool), bool certifyBox20 = default(bool), bool certifyBox21A = default(bool), bool certifyBox21B = default(bool), bool certifyBox21C = default(bool), bool certifyBox21D = default(bool), bool certifyBox21E = default(bool), bool certifyBox21F = default(bool), string box23ANameSponsoringEntity = default(string), bool certifyBox23B = default(bool), bool certifyBox23C = default(bool), bool certifyBox25 = default(bool), string box27ANameSponsoringEntity = default(string), bool certifyBox27B = default(bool), bool certifyBox28 = default(bool), bool certifyBox29 = default(bool), bool certifyBox30A = default(bool), bool certifyBox30B = default(bool), bool certifyBox30C = default(bool), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool box32TrusteeIsForeign = default(bool), bool certifyBox33A = default(bool), bool certifyBox33B = default(bool), bool certifyBox33C = default(bool), bool certifyBox33D = default(bool), bool certifyBox33E = default(bool), bool certifyBox33F = default(bool), string box37ASecuritiesMarket = default(string), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool certifyBox40 = default(bool), string box41SponsoringEntity = default(string), bool certifyBox42 = default(bool), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?), string tinMatchStatus = default(string), string signature = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?)) + /// Indicates whether the form is archived.. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// signature. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public W8BeneFormDataModel(DateTime? signedDate = default(DateTime?), string disregardedEntityChapter4FatcaStatus = default(string), DateTime? createdAt = default(DateTime?), string name = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string tin = default(string), string typeOfTin = default(string), string foreignTin = default(string), bool? ftinNotRequired = default(bool?), string referenceNumber = default(string), string giin = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string disregardedEntity = default(string), string disregardedEntityGiin = default(string), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), string signerName = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), bool? residenceIsMailing = default(bool?), string citizenshipCountry = default(string), bool? makingTreatyClaim = default(bool?), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox22 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox26 = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), bool certifyBox33 = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), bool certifyBox37B = default(bool), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), string id = default(string), string entryStatus = default(string), DateTime? updatedAt = default(DateTime?), string referenceId = default(string), string companyId = default(string), string displayName = default(string), string email = default(string), bool? archived = default(bool?), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), string signature = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) { this.SignedDate = signedDate; this.DisregardedEntityChapter4FatcaStatus = disregardedEntityChapter4FatcaStatus; @@ -415,116 +323,24 @@ public bool ShouldSerializeType() this.Part19FormationOrResolutionDate = part19FormationOrResolutionDate; this.Part20FilingDate = part20FilingDate; this.Part21DeterminationDate = part21DeterminationDate; - this.SubstantialUsOwners = substantialUsOwners; - this.EmployeeFirstName = employeeFirstName; - this.EmployeeMiddleName = employeeMiddleName; - this.EmployeeLastName = employeeLastName; - this.EmployeeNameSuffix = employeeNameSuffix; - this.Address = address; - this.City = city; - this.State = state; - this.Zip = zip; - this.Box3MaritalStatus = box3MaritalStatus; - this.Box4LastNameDiffers = box4LastNameDiffers; - this.Box5NumAllowances = box5NumAllowances; - this.OtherDependents = otherDependents; - this.NonJobIncome = nonJobIncome; - this.Deductions = deductions; - this.Box6AdditionalWithheld = box6AdditionalWithheld; - this.Box7ExemptFromWithholding = box7ExemptFromWithholding; - this.OfficeCode = officeCode; - this.Birthday = birthday; - this.ForeignTinNotRequired = foreignTinNotRequired; - this.Archived = archived; + this.Id = id; + this.EntryStatus = entryStatus; + this.UpdatedAt = updatedAt; this.ReferenceId = referenceId; this.CompanyId = companyId; this.DisplayName = displayName; this.Email = email; - this.SignerCapacity = signerCapacity; - this.UpdatedAt = updatedAt; - this.Ein = ein; - this.EinType = einType; - this.CertifyBox14 = certifyBox14; - this.CertifyBox15A = certifyBox15A; - this.CertifyBox15B = certifyBox15B; - this.CertifyBox15C = certifyBox15C; - this.CertifyBox15D = certifyBox15D; - this.CertifyBox15E = certifyBox15E; - this.CertifyBox15F = certifyBox15F; - this.CertifyBox15G = certifyBox15G; - this.CertifyBox15H = certifyBox15H; - this.CertifyBox15I = certifyBox15I; - this.CertifyBox16A = certifyBox16A; - this.Box16BQddCorporate = box16BQddCorporate; - this.Box16BQddPartnership = box16BQddPartnership; - this.Box16BQddDisregardedEntity = box16BQddDisregardedEntity; - this.CertifyBox17A = certifyBox17A; - this.CertifyBox17B = certifyBox17B; - this.CertifyBox17C = certifyBox17C; - this.CertifyBox17D = certifyBox17D; - this.CertifyBox17E = certifyBox17E; - this.CertifyBox18A = certifyBox18A; - this.CertifyBox18B = certifyBox18B; - this.CertifyBox18C = certifyBox18C; - this.CertifyBox18D = certifyBox18D; - this.CertifyBox18E = certifyBox18E; - this.CertifyBox18F = certifyBox18F; - this.CertifyBox19A = certifyBox19A; - this.CertifyBox19B = certifyBox19B; - this.CertifyBox19C = certifyBox19C; - this.CertifyBox19D = certifyBox19D; - this.CertifyBox19E = certifyBox19E; - this.CertifyBox19F = certifyBox19F; - this.CertifyBox20 = certifyBox20; - this.CertifyBox21A = certifyBox21A; - this.CertifyBox21B = certifyBox21B; - this.CertifyBox21C = certifyBox21C; - this.CertifyBox21D = certifyBox21D; - this.CertifyBox21E = certifyBox21E; - this.CertifyBox21F = certifyBox21F; - this.Box23ANameSponsoringEntity = box23ANameSponsoringEntity; - this.CertifyBox23B = certifyBox23B; - this.CertifyBox23C = certifyBox23C; - this.CertifyBox25 = certifyBox25; - this.Box27ANameSponsoringEntity = box27ANameSponsoringEntity; - this.CertifyBox27B = certifyBox27B; - this.CertifyBox28 = certifyBox28; - this.CertifyBox29 = certifyBox29; - this.CertifyBox30A = certifyBox30A; - this.CertifyBox30B = certifyBox30B; - this.CertifyBox30C = certifyBox30C; - this.Box32IgaCountry = box32IgaCountry; - this.Box32IgaType = box32IgaType; - this.Box32IgaTreatedAs = box32IgaTreatedAs; - this.Box32TrusteeOrSponsor = box32TrusteeOrSponsor; - this.Box32TrusteeIsForeign = box32TrusteeIsForeign; - this.CertifyBox33A = certifyBox33A; - this.CertifyBox33B = certifyBox33B; - this.CertifyBox33C = certifyBox33C; - this.CertifyBox33D = certifyBox33D; - this.CertifyBox33E = certifyBox33E; - this.CertifyBox33F = certifyBox33F; - this.Box37ASecuritiesMarket = box37ASecuritiesMarket; - this.Box37BNameOfEntity = box37BNameOfEntity; - this.Box37BSecuritiesMarket = box37BSecuritiesMarket; - this.CertifyBox40 = certifyBox40; - this.Box41SponsoringEntity = box41SponsoringEntity; - this.CertifyBox42 = certifyBox42; - this.Box35FormedOnDate = box35FormedOnDate; - this.Box36FiledOnDate = box36FiledOnDate; - this.TinMatchStatus = tinMatchStatus; + this.Archived = archived; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; this.Signature = signature; - this.BusinessClassification = businessClassification; - this.BusinessName = businessName; - this.BusinessOther = businessOther; - this.ExemptPayeeCode = exemptPayeeCode; - this.ExemptFatcaCode = exemptFatcaCode; - this.AccountNumber = accountNumber; - this.ForeignCountryIndicator = foreignCountryIndicator; - this.ForeignAddress = foreignAddress; - this.BackupWithholding = backupWithholding; - this.Is1099able = is1099able; - this.ForeignPartnerOwnerOrBeneficiary = foreignPartnerOwnerOrBeneficiary; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; } /// @@ -1263,175 +1079,28 @@ public bool ShouldSerializeType() public DateTime? Part21DeterminationDate { get; set; } /// - /// Gets or Sets SubstantialUsOwners - /// - /// [] - [DataMember(Name = "substantialUsOwners", EmitDefaultValue = false)] - public List SubstantialUsOwners { get; set; } - - /// - /// The first name of the employee. - /// - /// The first name of the employee. - /// Jane - [DataMember(Name = "employeeFirstName", EmitDefaultValue = true)] - public string EmployeeFirstName { get; set; } - - /// - /// The middle name of the employee. - /// - /// The middle name of the employee. - /// A. - [DataMember(Name = "employeeMiddleName", EmitDefaultValue = true)] - public string EmployeeMiddleName { get; set; } - - /// - /// The last name of the employee. - /// - /// The last name of the employee. - /// Smith - [DataMember(Name = "employeeLastName", EmitDefaultValue = true)] - public string EmployeeLastName { get; set; } - - /// - /// The name suffix of the employee. - /// - /// The name suffix of the employee. - /// Jr. - [DataMember(Name = "employeeNameSuffix", EmitDefaultValue = true)] - public string EmployeeNameSuffix { get; set; } - - /// - /// The address of the individual or entity. - /// - /// The address of the individual or entity. - /// 123 Main St - [DataMember(Name = "address", EmitDefaultValue = true)] - public string Address { get; set; } - - /// - /// The city of the address. - /// - /// The city of the address. - /// Anytown - [DataMember(Name = "city", EmitDefaultValue = true)] - public string City { get; set; } - - /// - /// The state of the address. - /// - /// The state of the address. - /// CA - [DataMember(Name = "state", EmitDefaultValue = true)] - public string State { get; set; } - - /// - /// The ZIP code of the address. - /// - /// The ZIP code of the address. - /// 90210 - [DataMember(Name = "zip", EmitDefaultValue = true)] - public string Zip { get; set; } - - /// - /// The marital status of the employee. - /// - /// The marital status of the employee. - /// Married - [DataMember(Name = "box3MaritalStatus", EmitDefaultValue = true)] - public string Box3MaritalStatus { get; set; } - - /// - /// Indicates whether the last name differs from prior records. - /// - /// Indicates whether the last name differs from prior records. - /// false - [DataMember(Name = "box4LastNameDiffers", EmitDefaultValue = true)] - public bool? Box4LastNameDiffers { get; set; } - - /// - /// The number of allowances claimed by the employee. - /// - /// The number of allowances claimed by the employee. - /// 3 - [DataMember(Name = "box5NumAllowances", EmitDefaultValue = true)] - public int? Box5NumAllowances { get; set; } - - /// - /// The number of dependents other than allowances. - /// - /// The number of dependents other than allowances. - /// 1 - [DataMember(Name = "otherDependents", EmitDefaultValue = true)] - public int? OtherDependents { get; set; } - - /// - /// The amount of non-job income. - /// - /// The amount of non-job income. - /// 5000.0 - [DataMember(Name = "nonJobIncome", EmitDefaultValue = true)] - public double? NonJobIncome { get; set; } - - /// - /// The amount of deductions claimed. - /// - /// The amount of deductions claimed. - /// 2000.0 - [DataMember(Name = "deductions", EmitDefaultValue = true)] - public double? Deductions { get; set; } - - /// - /// The additional amount withheld. - /// - /// The additional amount withheld. - /// 150.0 - [DataMember(Name = "box6AdditionalWithheld", EmitDefaultValue = true)] - public double? Box6AdditionalWithheld { get; set; } - - /// - /// Indicates whether the employee is exempt from withholding. + /// Gets or Sets Id /// - /// Indicates whether the employee is exempt from withholding. - /// false - [DataMember(Name = "box7ExemptFromWithholding", EmitDefaultValue = true)] - public bool? Box7ExemptFromWithholding { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// The office code associated with the form. + /// Gets or Sets EntryStatus /// - /// The office code associated with the form. - /// OC12345 - [DataMember(Name = "officeCode", EmitDefaultValue = true)] - public string OfficeCode { get; set; } + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } /// - /// The birthday of the individual associated with the form. - /// - /// The birthday of the individual associated with the form. - [DataMember(Name = "birthday", EmitDefaultValue = true)] - public string Birthday { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "foreignTinNotRequired", EmitDefaultValue = true)] - public bool? ForeignTinNotRequired { get; set; } - - /// - /// Indicates whether the form is archived. + /// The last updated date of the form. /// - /// Indicates whether the form is archived. - /// false - [DataMember(Name = "archived", EmitDefaultValue = true)] - public bool? Archived { get; set; } + /// The last updated date of the form. + [DataMember(Name = "updatedAt", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } /// /// A reference identifier for the form. /// /// A reference identifier for the form. - /// REF67890 [DataMember(Name = "referenceId", EmitDefaultValue = true)] public string ReferenceId { get; set; } @@ -1439,15 +1108,13 @@ public bool ShouldSerializeType() /// The ID of the associated company. /// /// The ID of the associated company. - /// 4004 [DataMember(Name = "companyId", EmitDefaultValue = true)] - public int? CompanyId { get; set; } + public string CompanyId { get; set; } /// /// The display name associated with the form. /// /// The display name associated with the form. - /// Global Financials [DataMember(Name = "displayName", EmitDefaultValue = true)] public string DisplayName { get; set; } @@ -1455,663 +1122,75 @@ public bool ShouldSerializeType() /// The email address of the individual associated with the form. /// /// The email address of the individual associated with the form. - /// contact@globalfinancials.com [DataMember(Name = "email", EmitDefaultValue = true)] public string Email { get; set; } /// - /// The capacity in which the signer is signing the form. - /// - /// The capacity in which the signer is signing the form. - /// Authorized Representative - [DataMember(Name = "signerCapacity", EmitDefaultValue = true)] - public string SignerCapacity { get; set; } - - /// - /// The last updated date of the form. - /// - /// The last updated date of the form. - /// 2023-06-20T14:30Z - [DataMember(Name = "updatedAt", EmitDefaultValue = true)] - public DateTime? UpdatedAt { get; set; } - - /// - /// The employer identification number (EIN). - /// - /// The employer identification number (EIN). - [DataMember(Name = "ein", EmitDefaultValue = true)] - public string Ein { get; set; } - - /// - /// The type of employer identification number (EIN). - /// - /// The type of employer identification number (EIN). - [DataMember(Name = "einType", EmitDefaultValue = true)] - public string EinType { get; set; } - - /// - /// Indicates certification for box 14. - /// - /// Indicates certification for box 14. - /// false - [DataMember(Name = "certifyBox14", EmitDefaultValue = true)] - public bool CertifyBox14 { get; set; } - - /// - /// Indicates certification for box 15A. - /// - /// Indicates certification for box 15A. - /// false - [DataMember(Name = "certifyBox15A", EmitDefaultValue = true)] - public bool CertifyBox15A { get; set; } - - /// - /// Indicates certification for box 15B. - /// - /// Indicates certification for box 15B. - /// false - [DataMember(Name = "certifyBox15B", EmitDefaultValue = true)] - public bool CertifyBox15B { get; set; } - - /// - /// Indicates certification for box 15C. - /// - /// Indicates certification for box 15C. - /// false - [DataMember(Name = "certifyBox15C", EmitDefaultValue = true)] - public bool CertifyBox15C { get; set; } - - /// - /// Indicates certification for box 15D. - /// - /// Indicates certification for box 15D. - /// false - [DataMember(Name = "certifyBox15D", EmitDefaultValue = true)] - public bool CertifyBox15D { get; set; } - - /// - /// Indicates certification for box 15E. - /// - /// Indicates certification for box 15E. - /// false - [DataMember(Name = "certifyBox15E", EmitDefaultValue = true)] - public bool CertifyBox15E { get; set; } - - /// - /// Indicates certification for box 15F. - /// - /// Indicates certification for box 15F. - /// false - [DataMember(Name = "certifyBox15F", EmitDefaultValue = true)] - public bool CertifyBox15F { get; set; } - - /// - /// Indicates certification for box 15G. - /// - /// Indicates certification for box 15G. - /// false - [DataMember(Name = "certifyBox15G", EmitDefaultValue = true)] - public bool CertifyBox15G { get; set; } - - /// - /// Indicates certification for box 15H. - /// - /// Indicates certification for box 15H. - /// false - [DataMember(Name = "certifyBox15H", EmitDefaultValue = true)] - public bool CertifyBox15H { get; set; } - - /// - /// Indicates certification for box 15I. - /// - /// Indicates certification for box 15I. - /// false - [DataMember(Name = "certifyBox15I", EmitDefaultValue = true)] - public bool CertifyBox15I { get; set; } - - /// - /// Indicates certification for box 16A. - /// - /// Indicates certification for box 16A. - /// false - [DataMember(Name = "certifyBox16A", EmitDefaultValue = true)] - public bool CertifyBox16A { get; set; } - - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// false - [DataMember(Name = "box16BQddCorporate", EmitDefaultValue = true)] - public bool Box16BQddCorporate { get; set; } - - /// - /// Indicates certification for box 16B as a QDD partnership. - /// - /// Indicates certification for box 16B as a QDD partnership. - /// false - [DataMember(Name = "box16BQddPartnership", EmitDefaultValue = true)] - public bool Box16BQddPartnership { get; set; } - - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// false - [DataMember(Name = "box16BQddDisregardedEntity", EmitDefaultValue = true)] - public bool Box16BQddDisregardedEntity { get; set; } - - /// - /// Indicates certification for box 17A. - /// - /// Indicates certification for box 17A. - /// false - [DataMember(Name = "certifyBox17A", EmitDefaultValue = true)] - public bool CertifyBox17A { get; set; } - - /// - /// Indicates certification for box 17B. - /// - /// Indicates certification for box 17B. - /// false - [DataMember(Name = "certifyBox17B", EmitDefaultValue = true)] - public bool CertifyBox17B { get; set; } - - /// - /// Indicates certification for box 17C. - /// - /// Indicates certification for box 17C. - /// false - [DataMember(Name = "certifyBox17C", EmitDefaultValue = true)] - public bool CertifyBox17C { get; set; } - - /// - /// Indicates certification for box 17D. - /// - /// Indicates certification for box 17D. - /// false - [DataMember(Name = "certifyBox17D", EmitDefaultValue = true)] - public bool CertifyBox17D { get; set; } - - /// - /// Indicates certification for box 17E. - /// - /// Indicates certification for box 17E. - /// false - [DataMember(Name = "certifyBox17E", EmitDefaultValue = true)] - public bool CertifyBox17E { get; set; } - - /// - /// Indicates certification for box 18A. - /// - /// Indicates certification for box 18A. - /// false - [DataMember(Name = "certifyBox18A", EmitDefaultValue = true)] - public bool CertifyBox18A { get; set; } - - /// - /// Indicates certification for box 18B. - /// - /// Indicates certification for box 18B. - /// false - [DataMember(Name = "certifyBox18B", EmitDefaultValue = true)] - public bool CertifyBox18B { get; set; } - - /// - /// Indicates certification for box 18C. - /// - /// Indicates certification for box 18C. - /// false - [DataMember(Name = "certifyBox18C", EmitDefaultValue = true)] - public bool CertifyBox18C { get; set; } - - /// - /// Indicates certification for box 18D. - /// - /// Indicates certification for box 18D. - /// false - [DataMember(Name = "certifyBox18D", EmitDefaultValue = true)] - public bool CertifyBox18D { get; set; } - - /// - /// Indicates certification for box 18E. - /// - /// Indicates certification for box 18E. - /// false - [DataMember(Name = "certifyBox18E", EmitDefaultValue = true)] - public bool CertifyBox18E { get; set; } - - /// - /// Indicates certification for box 18F. - /// - /// Indicates certification for box 18F. - /// false - [DataMember(Name = "certifyBox18F", EmitDefaultValue = true)] - public bool CertifyBox18F { get; set; } - - /// - /// Indicates certification for box 19A. - /// - /// Indicates certification for box 19A. - /// false - [DataMember(Name = "certifyBox19A", EmitDefaultValue = true)] - public bool CertifyBox19A { get; set; } - - /// - /// Indicates certification for box 19B. - /// - /// Indicates certification for box 19B. - /// false - [DataMember(Name = "certifyBox19B", EmitDefaultValue = true)] - public bool CertifyBox19B { get; set; } - - /// - /// Indicates certification for box 19C. - /// - /// Indicates certification for box 19C. - /// false - [DataMember(Name = "certifyBox19C", EmitDefaultValue = true)] - public bool CertifyBox19C { get; set; } - - /// - /// Indicates certification for box 19D. - /// - /// Indicates certification for box 19D. - /// false - [DataMember(Name = "certifyBox19D", EmitDefaultValue = true)] - public bool CertifyBox19D { get; set; } - - /// - /// Indicates certification for box 19E. - /// - /// Indicates certification for box 19E. - /// false - [DataMember(Name = "certifyBox19E", EmitDefaultValue = true)] - public bool CertifyBox19E { get; set; } - - /// - /// Indicates certification for box 19F. - /// - /// Indicates certification for box 19F. - /// false - [DataMember(Name = "certifyBox19F", EmitDefaultValue = true)] - public bool CertifyBox19F { get; set; } - - /// - /// Indicates certification for box 20. - /// - /// Indicates certification for box 20. - /// false - [DataMember(Name = "certifyBox20", EmitDefaultValue = true)] - public bool CertifyBox20 { get; set; } - - /// - /// Indicates certification for box 21A. - /// - /// Indicates certification for box 21A. - /// false - [DataMember(Name = "certifyBox21A", EmitDefaultValue = true)] - public bool CertifyBox21A { get; set; } - - /// - /// Indicates certification for box 21B. - /// - /// Indicates certification for box 21B. - /// false - [DataMember(Name = "certifyBox21B", EmitDefaultValue = true)] - public bool CertifyBox21B { get; set; } - - /// - /// Indicates certification for box 21C. - /// - /// Indicates certification for box 21C. - /// false - [DataMember(Name = "certifyBox21C", EmitDefaultValue = true)] - public bool CertifyBox21C { get; set; } - - /// - /// Indicates certification for box 21D. - /// - /// Indicates certification for box 21D. - /// false - [DataMember(Name = "certifyBox21D", EmitDefaultValue = true)] - public bool CertifyBox21D { get; set; } - - /// - /// Indicates certification for box 21E. - /// - /// Indicates certification for box 21E. - /// false - [DataMember(Name = "certifyBox21E", EmitDefaultValue = true)] - public bool CertifyBox21E { get; set; } - - /// - /// Indicates certification for box 21F. - /// - /// Indicates certification for box 21F. - /// false - [DataMember(Name = "certifyBox21F", EmitDefaultValue = true)] - public bool CertifyBox21F { get; set; } - - /// - /// The name of the sponsoring entity for box 23A. - /// - /// The name of the sponsoring entity for box 23A. - [DataMember(Name = "box23ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box23ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 23B. - /// - /// Indicates certification for box 23B. - /// false - [DataMember(Name = "certifyBox23B", EmitDefaultValue = true)] - public bool CertifyBox23B { get; set; } - - /// - /// Indicates certification for box 23C. - /// - /// Indicates certification for box 23C. - /// false - [DataMember(Name = "certifyBox23C", EmitDefaultValue = true)] - public bool CertifyBox23C { get; set; } - - /// - /// Indicates certification for box 25. - /// - /// Indicates certification for box 25. - /// false - [DataMember(Name = "certifyBox25", EmitDefaultValue = true)] - public bool CertifyBox25 { get; set; } - - /// - /// The name of the sponsoring entity for box 27A. - /// - /// The name of the sponsoring entity for box 27A. - [DataMember(Name = "box27ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box27ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 27B. - /// - /// Indicates certification for box 27B. - /// false - [DataMember(Name = "certifyBox27B", EmitDefaultValue = true)] - public bool CertifyBox27B { get; set; } - - /// - /// Indicates certification for box 28. - /// - /// Indicates certification for box 28. - /// false - [DataMember(Name = "certifyBox28", EmitDefaultValue = true)] - public bool CertifyBox28 { get; set; } - - /// - /// Indicates certification for box 29. - /// - /// Indicates certification for box 29. - /// false - [DataMember(Name = "certifyBox29", EmitDefaultValue = true)] - public bool CertifyBox29 { get; set; } - - /// - /// Indicates certification for box 30A. - /// - /// Indicates certification for box 30A. - /// false - [DataMember(Name = "certifyBox30A", EmitDefaultValue = true)] - public bool CertifyBox30A { get; set; } - - /// - /// Indicates certification for box 30B. - /// - /// Indicates certification for box 30B. - /// false - [DataMember(Name = "certifyBox30B", EmitDefaultValue = true)] - public bool CertifyBox30B { get; set; } - - /// - /// Indicates certification for box 30C. - /// - /// Indicates certification for box 30C. - /// false - [DataMember(Name = "certifyBox30C", EmitDefaultValue = true)] - public bool CertifyBox30C { get; set; } - - /// - /// The IGA country information for box 32. - /// - /// The IGA country information for box 32. - [DataMember(Name = "box32IgaCountry", EmitDefaultValue = true)] - public string Box32IgaCountry { get; set; } - - /// - /// The IGA type information for box 32. - /// - /// The IGA type information for box 32. - [DataMember(Name = "box32IgaType", EmitDefaultValue = true)] - public string Box32IgaType { get; set; } - - /// - /// The IGA treatment information for box 32. - /// - /// The IGA treatment information for box 32. - [DataMember(Name = "box32IgaTreatedAs", EmitDefaultValue = true)] - public string Box32IgaTreatedAs { get; set; } - - /// - /// The trustee or sponsor information for box 32. - /// - /// The trustee or sponsor information for box 32. - [DataMember(Name = "box32TrusteeOrSponsor", EmitDefaultValue = true)] - public string Box32TrusteeOrSponsor { get; set; } - - /// - /// Indicates whether the trustee is foreign for box 32. - /// - /// Indicates whether the trustee is foreign for box 32. - /// false - [DataMember(Name = "box32TrusteeIsForeign", EmitDefaultValue = true)] - public bool Box32TrusteeIsForeign { get; set; } - - /// - /// Indicates certification for box 33A. - /// - /// Indicates certification for box 33A. - /// false - [DataMember(Name = "certifyBox33A", EmitDefaultValue = true)] - public bool CertifyBox33A { get; set; } - - /// - /// Indicates certification for box 33B. - /// - /// Indicates certification for box 33B. - /// false - [DataMember(Name = "certifyBox33B", EmitDefaultValue = true)] - public bool CertifyBox33B { get; set; } - - /// - /// Indicates certification for box 33C. - /// - /// Indicates certification for box 33C. - /// false - [DataMember(Name = "certifyBox33C", EmitDefaultValue = true)] - public bool CertifyBox33C { get; set; } - - /// - /// Indicates certification for box 33D. - /// - /// Indicates certification for box 33D. - /// false - [DataMember(Name = "certifyBox33D", EmitDefaultValue = true)] - public bool CertifyBox33D { get; set; } - - /// - /// Indicates certification for box 33E. - /// - /// Indicates certification for box 33E. - /// false - [DataMember(Name = "certifyBox33E", EmitDefaultValue = true)] - public bool CertifyBox33E { get; set; } - - /// - /// Indicates certification for box 33F. - /// - /// Indicates certification for box 33F. - /// false - [DataMember(Name = "certifyBox33F", EmitDefaultValue = true)] - public bool CertifyBox33F { get; set; } - - /// - /// The securities market information for box 37A. - /// - /// The securities market information for box 37A. - [DataMember(Name = "box37ASecuritiesMarket", EmitDefaultValue = true)] - public string Box37ASecuritiesMarket { get; set; } - - /// - /// The name of the entity for box 37B. - /// - /// The name of the entity for box 37B. - [DataMember(Name = "box37BNameOfEntity", EmitDefaultValue = true)] - public string Box37BNameOfEntity { get; set; } - - /// - /// The securities market information for box 37B. - /// - /// The securities market information for box 37B. - [DataMember(Name = "box37BSecuritiesMarket", EmitDefaultValue = true)] - public string Box37BSecuritiesMarket { get; set; } - - /// - /// Indicates certification for box 40. - /// - /// Indicates certification for box 40. - /// false - [DataMember(Name = "certifyBox40", EmitDefaultValue = true)] - public bool CertifyBox40 { get; set; } - - /// - /// The sponsoring entity information for box 41. + /// Indicates whether the form is archived. /// - /// The sponsoring entity information for box 41. - [DataMember(Name = "box41SponsoringEntity", EmitDefaultValue = true)] - public string Box41SponsoringEntity { get; set; } + /// Indicates whether the form is archived. + [DataMember(Name = "archived", EmitDefaultValue = true)] + public bool? Archived { get; set; } /// - /// Indicates certification for box 42. + /// Gets or Sets EntryStatusDate /// - /// Indicates certification for box 42. - /// false - [DataMember(Name = "certifyBox42", EmitDefaultValue = true)] - public bool CertifyBox42 { get; set; } + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } /// - /// Gets or Sets Box35FormedOnDate + /// Gets or Sets PdfJson /// - [DataMember(Name = "box35FormedOnDate", EmitDefaultValue = true)] - public DateTime? Box35FormedOnDate { get; set; } + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } /// - /// Gets or Sets Box36FiledOnDate + /// Gets or Sets PdfVersion /// - [DataMember(Name = "box36FiledOnDate", EmitDefaultValue = true)] - public DateTime? Box36FiledOnDate { get; set; } + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } /// - /// The status of the TIN match. + /// Gets or Sets RequestToken /// - /// The status of the TIN match. - /// Match - [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] - public string TinMatchStatus { get; set; } + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } /// - /// The signature itself + /// Gets or Sets Signature /// - /// The signature itself [DataMember(Name = "signature", EmitDefaultValue = true)] public string Signature { get; set; } /// - /// The classification of the business. - /// - /// The classification of the business. - /// LLC - [DataMember(Name = "businessClassification", EmitDefaultValue = true)] - public string BusinessClassification { get; set; } - - /// - /// The name of the business associated with the form. - /// - /// The name of the business associated with the form. - /// Doe Enterprises - [DataMember(Name = "businessName", EmitDefaultValue = true)] - public string BusinessName { get; set; } - - /// - /// Gets or Sets BusinessOther - /// - [DataMember(Name = "businessOther", EmitDefaultValue = true)] - public string BusinessOther { get; set; } - - /// - /// Gets or Sets ExemptPayeeCode - /// - [DataMember(Name = "exemptPayeeCode", EmitDefaultValue = true)] - public string ExemptPayeeCode { get; set; } - - /// - /// Gets or Sets ExemptFatcaCode + /// Gets or Sets Mobile /// - [DataMember(Name = "exemptFatcaCode", EmitDefaultValue = true)] - public string ExemptFatcaCode { get; set; } + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } /// - /// The account number associated with the form. + /// Gets or Sets AppVersion /// - /// The account number associated with the form. - /// ACC123456 - [DataMember(Name = "accountNumber", EmitDefaultValue = true)] - public string AccountNumber { get; set; } + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } /// - /// Indicates whether the individual or entity is in a foreign country. + /// Gets or Sets Platform /// - /// Indicates whether the individual or entity is in a foreign country. - /// false - [DataMember(Name = "foreignCountryIndicator", EmitDefaultValue = true)] - public bool? ForeignCountryIndicator { get; set; } + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } /// - /// The foreign address of the individual or entity. + /// Gets or Sets OsVersion /// - /// The foreign address of the individual or entity. - [DataMember(Name = "foreignAddress", EmitDefaultValue = true)] - public string ForeignAddress { get; set; } + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } /// - /// Indicates whether backup withholding applies. + /// Gets or Sets AncestorId /// - /// Indicates whether backup withholding applies. - /// false - [DataMember(Name = "backupWithholding", EmitDefaultValue = true)] - public bool? BackupWithholding { get; set; } - - /// - /// Gets or Sets Is1099able - /// - [DataMember(Name = "is1099able", EmitDefaultValue = true)] - public bool? Is1099able { get; set; } - - /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// false - [DataMember(Name = "foreignPartnerOwnerOrBeneficiary", EmitDefaultValue = true)] - public bool? ForeignPartnerOwnerOrBeneficiary { get; set; } + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } /// /// Returns the string presentation of the object @@ -2223,116 +1302,24 @@ public override string ToString() sb.Append(" Part19FormationOrResolutionDate: ").Append(Part19FormationOrResolutionDate).Append("\n"); sb.Append(" Part20FilingDate: ").Append(Part20FilingDate).Append("\n"); sb.Append(" Part21DeterminationDate: ").Append(Part21DeterminationDate).Append("\n"); - sb.Append(" SubstantialUsOwners: ").Append(SubstantialUsOwners).Append("\n"); - sb.Append(" EmployeeFirstName: ").Append(EmployeeFirstName).Append("\n"); - sb.Append(" EmployeeMiddleName: ").Append(EmployeeMiddleName).Append("\n"); - sb.Append(" EmployeeLastName: ").Append(EmployeeLastName).Append("\n"); - sb.Append(" EmployeeNameSuffix: ").Append(EmployeeNameSuffix).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Zip: ").Append(Zip).Append("\n"); - sb.Append(" Box3MaritalStatus: ").Append(Box3MaritalStatus).Append("\n"); - sb.Append(" Box4LastNameDiffers: ").Append(Box4LastNameDiffers).Append("\n"); - sb.Append(" Box5NumAllowances: ").Append(Box5NumAllowances).Append("\n"); - sb.Append(" OtherDependents: ").Append(OtherDependents).Append("\n"); - sb.Append(" NonJobIncome: ").Append(NonJobIncome).Append("\n"); - sb.Append(" Deductions: ").Append(Deductions).Append("\n"); - sb.Append(" Box6AdditionalWithheld: ").Append(Box6AdditionalWithheld).Append("\n"); - sb.Append(" Box7ExemptFromWithholding: ").Append(Box7ExemptFromWithholding).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); - sb.Append(" ForeignTinNotRequired: ").Append(ForeignTinNotRequired).Append("\n"); - sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" SignerCapacity: ").Append(SignerCapacity).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" Ein: ").Append(Ein).Append("\n"); - sb.Append(" EinType: ").Append(EinType).Append("\n"); - sb.Append(" CertifyBox14: ").Append(CertifyBox14).Append("\n"); - sb.Append(" CertifyBox15A: ").Append(CertifyBox15A).Append("\n"); - sb.Append(" CertifyBox15B: ").Append(CertifyBox15B).Append("\n"); - sb.Append(" CertifyBox15C: ").Append(CertifyBox15C).Append("\n"); - sb.Append(" CertifyBox15D: ").Append(CertifyBox15D).Append("\n"); - sb.Append(" CertifyBox15E: ").Append(CertifyBox15E).Append("\n"); - sb.Append(" CertifyBox15F: ").Append(CertifyBox15F).Append("\n"); - sb.Append(" CertifyBox15G: ").Append(CertifyBox15G).Append("\n"); - sb.Append(" CertifyBox15H: ").Append(CertifyBox15H).Append("\n"); - sb.Append(" CertifyBox15I: ").Append(CertifyBox15I).Append("\n"); - sb.Append(" CertifyBox16A: ").Append(CertifyBox16A).Append("\n"); - sb.Append(" Box16BQddCorporate: ").Append(Box16BQddCorporate).Append("\n"); - sb.Append(" Box16BQddPartnership: ").Append(Box16BQddPartnership).Append("\n"); - sb.Append(" Box16BQddDisregardedEntity: ").Append(Box16BQddDisregardedEntity).Append("\n"); - sb.Append(" CertifyBox17A: ").Append(CertifyBox17A).Append("\n"); - sb.Append(" CertifyBox17B: ").Append(CertifyBox17B).Append("\n"); - sb.Append(" CertifyBox17C: ").Append(CertifyBox17C).Append("\n"); - sb.Append(" CertifyBox17D: ").Append(CertifyBox17D).Append("\n"); - sb.Append(" CertifyBox17E: ").Append(CertifyBox17E).Append("\n"); - sb.Append(" CertifyBox18A: ").Append(CertifyBox18A).Append("\n"); - sb.Append(" CertifyBox18B: ").Append(CertifyBox18B).Append("\n"); - sb.Append(" CertifyBox18C: ").Append(CertifyBox18C).Append("\n"); - sb.Append(" CertifyBox18D: ").Append(CertifyBox18D).Append("\n"); - sb.Append(" CertifyBox18E: ").Append(CertifyBox18E).Append("\n"); - sb.Append(" CertifyBox18F: ").Append(CertifyBox18F).Append("\n"); - sb.Append(" CertifyBox19A: ").Append(CertifyBox19A).Append("\n"); - sb.Append(" CertifyBox19B: ").Append(CertifyBox19B).Append("\n"); - sb.Append(" CertifyBox19C: ").Append(CertifyBox19C).Append("\n"); - sb.Append(" CertifyBox19D: ").Append(CertifyBox19D).Append("\n"); - sb.Append(" CertifyBox19E: ").Append(CertifyBox19E).Append("\n"); - sb.Append(" CertifyBox19F: ").Append(CertifyBox19F).Append("\n"); - sb.Append(" CertifyBox20: ").Append(CertifyBox20).Append("\n"); - sb.Append(" CertifyBox21A: ").Append(CertifyBox21A).Append("\n"); - sb.Append(" CertifyBox21B: ").Append(CertifyBox21B).Append("\n"); - sb.Append(" CertifyBox21C: ").Append(CertifyBox21C).Append("\n"); - sb.Append(" CertifyBox21D: ").Append(CertifyBox21D).Append("\n"); - sb.Append(" CertifyBox21E: ").Append(CertifyBox21E).Append("\n"); - sb.Append(" CertifyBox21F: ").Append(CertifyBox21F).Append("\n"); - sb.Append(" Box23ANameSponsoringEntity: ").Append(Box23ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox23B: ").Append(CertifyBox23B).Append("\n"); - sb.Append(" CertifyBox23C: ").Append(CertifyBox23C).Append("\n"); - sb.Append(" CertifyBox25: ").Append(CertifyBox25).Append("\n"); - sb.Append(" Box27ANameSponsoringEntity: ").Append(Box27ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox27B: ").Append(CertifyBox27B).Append("\n"); - sb.Append(" CertifyBox28: ").Append(CertifyBox28).Append("\n"); - sb.Append(" CertifyBox29: ").Append(CertifyBox29).Append("\n"); - sb.Append(" CertifyBox30A: ").Append(CertifyBox30A).Append("\n"); - sb.Append(" CertifyBox30B: ").Append(CertifyBox30B).Append("\n"); - sb.Append(" CertifyBox30C: ").Append(CertifyBox30C).Append("\n"); - sb.Append(" Box32IgaCountry: ").Append(Box32IgaCountry).Append("\n"); - sb.Append(" Box32IgaType: ").Append(Box32IgaType).Append("\n"); - sb.Append(" Box32IgaTreatedAs: ").Append(Box32IgaTreatedAs).Append("\n"); - sb.Append(" Box32TrusteeOrSponsor: ").Append(Box32TrusteeOrSponsor).Append("\n"); - sb.Append(" Box32TrusteeIsForeign: ").Append(Box32TrusteeIsForeign).Append("\n"); - sb.Append(" CertifyBox33A: ").Append(CertifyBox33A).Append("\n"); - sb.Append(" CertifyBox33B: ").Append(CertifyBox33B).Append("\n"); - sb.Append(" CertifyBox33C: ").Append(CertifyBox33C).Append("\n"); - sb.Append(" CertifyBox33D: ").Append(CertifyBox33D).Append("\n"); - sb.Append(" CertifyBox33E: ").Append(CertifyBox33E).Append("\n"); - sb.Append(" CertifyBox33F: ").Append(CertifyBox33F).Append("\n"); - sb.Append(" Box37ASecuritiesMarket: ").Append(Box37ASecuritiesMarket).Append("\n"); - sb.Append(" Box37BNameOfEntity: ").Append(Box37BNameOfEntity).Append("\n"); - sb.Append(" Box37BSecuritiesMarket: ").Append(Box37BSecuritiesMarket).Append("\n"); - sb.Append(" CertifyBox40: ").Append(CertifyBox40).Append("\n"); - sb.Append(" Box41SponsoringEntity: ").Append(Box41SponsoringEntity).Append("\n"); - sb.Append(" CertifyBox42: ").Append(CertifyBox42).Append("\n"); - sb.Append(" Box35FormedOnDate: ").Append(Box35FormedOnDate).Append("\n"); - sb.Append(" Box36FiledOnDate: ").Append(Box36FiledOnDate).Append("\n"); - sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append(" BusinessClassification: ").Append(BusinessClassification).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" BusinessOther: ").Append(BusinessOther).Append("\n"); - sb.Append(" ExemptPayeeCode: ").Append(ExemptPayeeCode).Append("\n"); - sb.Append(" ExemptFatcaCode: ").Append(ExemptFatcaCode).Append("\n"); - sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); - sb.Append(" ForeignCountryIndicator: ").Append(ForeignCountryIndicator).Append("\n"); - sb.Append(" ForeignAddress: ").Append(ForeignAddress).Append("\n"); - sb.Append(" BackupWithholding: ").Append(BackupWithholding).Append("\n"); - sb.Append(" Is1099able: ").Append(Is1099able).Append("\n"); - sb.Append(" ForeignPartnerOwnerOrBeneficiary: ").Append(ForeignPartnerOwnerOrBeneficiary).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/W8ImyFormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/W8ImyFormDataModel.cs index bdd7df8..1f3ed64 100644 --- a/src/Avalara.SDK/Model/A1099/V2/W8ImyFormDataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/W8ImyFormDataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -220,99 +220,22 @@ public bool ShouldSerializeType() /// The date when e-delivery was consented.. /// box35FormedOnDate. /// box36FiledOnDate. - /// The first name of the employee.. - /// The middle name of the employee.. - /// The last name of the employee.. - /// The name suffix of the employee.. - /// The address of the individual or entity.. - /// The city of the address.. - /// The state of the address.. - /// The ZIP code of the address.. - /// The marital status of the employee.. - /// Indicates whether the last name differs from prior records.. - /// The number of allowances claimed by the employee.. - /// The number of dependents other than allowances.. - /// The amount of non-job income.. - /// The amount of deductions claimed.. - /// The additional amount withheld.. - /// Indicates whether the employee is exempt from withholding.. - /// The office code associated with the form.. - /// Indicates whether a foreign TIN is not required.. - /// The benefit limitation for tax treaty claims.. - /// The sponsoring entity information for Part 4.. - /// The GIIN for the sponsoring entity in Part 4.. - /// The sponsoring entity information for Part 7.. - /// The IGA country information for Part 12.. - /// The IGA type information for Part 12.. - /// The FATCA status under IGA Annex II for Part 12.. - /// The trustee name for Part 12.. - /// Indicates whether the trustee is foreign for Part 12.. - /// The GIIN for Model 2 IGA in Part 12.. - /// The exchange information for Box 37A.. - /// The exchange information for Box 37B.. - /// The entity information for Box 37B.. - /// The sponsoring entity information for Part 28.. - /// The GIIN for the sponsoring entity in Part 28.. - /// makingTreatyClaim. - /// The country for which the treaty applies.. - /// The specific article of the treaty being claimed.. - /// The withholding rate applied as per the treaty.. - /// The type of income covered by the treaty.. - /// The reasons for claiming treaty benefits.. - /// certifyBox14A. - /// certifyBox14B. - /// certifyBox14C. - /// certifyBox171. - /// certifyBox172. - /// certifyBox18. - /// certifyBox19. - /// certifyBox21. - /// certifyBox23. - /// certifyBox24D. - /// certifyBox25A. - /// certifyBox25B. - /// certifyBox25C. - /// certifyBox27. - /// certifyBox28A. - /// certifyBox28B. - /// certifyBox29A. - /// certifyBox29B. - /// certifyBox29C. - /// certifyBox29D. - /// certifyBox29E. - /// certifyBox29F. - /// certifyBox30. - /// certifyBox33. - /// certifyBox40A. - /// certifyBox40B. - /// certifyBox40C. - /// certifyBox41. - /// certifyBox43. - /// certifyPart29Signature. - /// part19FormationOrResolutionDate. - /// part20FilingDate. - /// part21DeterminationDate. - /// substantialUsOwners. - /// The birthday of the individual associated with the form.. - /// Indicates whether a foreign TIN is not required.. - /// Indicates whether the form is archived.. + /// id. + /// entryStatus. /// A reference identifier for the form.. /// The ID of the associated company.. - /// The capacity in which the signer is signing the form.. - /// The status of the TIN match.. - /// The signature itself. - /// The classification of the business.. - /// The name of the business associated with the form.. - /// businessOther. - /// exemptPayeeCode. - /// exemptFatcaCode. - /// The account number associated with the form.. - /// Indicates whether the individual or entity is in a foreign country.. - /// The foreign address of the individual or entity.. - /// Indicates whether backup withholding applies.. - /// is1099able. - /// Indicates whether the individual is a foreign partner, owner, or beneficiary.. - public W8ImyFormDataModel(DateTime? signedDate = default(DateTime?), string disregardedEntityChapter4FatcaStatus = default(string), DateTime? createdAt = default(DateTime?), DateTime? updatedAt = default(DateTime?), string displayName = default(string), string email = default(string), string tin = default(string), string typeOfTin = default(string), string name = default(string), string citizenshipCountry = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), bool residenceIsMailing = default(bool), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedEntity = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string disregardedEntityGiin = default(string), string ein = default(string), string einType = default(string), string giin = default(string), string foreignTin = default(string), string referenceNumber = default(string), bool certifyBox14 = default(bool), bool certifyBox15A = default(bool), bool certifyBox15B = default(bool), bool certifyBox15C = default(bool), bool certifyBox15D = default(bool), bool certifyBox15E = default(bool), bool certifyBox15F = default(bool), bool certifyBox15G = default(bool), bool certifyBox15H = default(bool), bool certifyBox15I = default(bool), bool certifyBox16A = default(bool), bool box16BQddCorporate = default(bool), bool box16BQddPartnership = default(bool), bool box16BQddDisregardedEntity = default(bool), bool certifyBox17A = default(bool), bool certifyBox17B = default(bool), bool certifyBox17C = default(bool), bool certifyBox17D = default(bool), bool certifyBox17E = default(bool), bool certifyBox18A = default(bool), bool certifyBox18B = default(bool), bool certifyBox18C = default(bool), bool certifyBox18D = default(bool), bool certifyBox18E = default(bool), bool certifyBox18F = default(bool), bool certifyBox19A = default(bool), bool certifyBox19B = default(bool), bool certifyBox19C = default(bool), bool certifyBox19D = default(bool), bool certifyBox19E = default(bool), bool certifyBox19F = default(bool), bool certifyBox20 = default(bool), bool certifyBox21A = default(bool), bool certifyBox21B = default(bool), bool certifyBox21C = default(bool), bool certifyBox21D = default(bool), bool certifyBox21E = default(bool), bool certifyBox21F = default(bool), bool certifyBox22 = default(bool), string box23ANameSponsoringEntity = default(string), bool certifyBox23B = default(bool), bool certifyBox23C = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox25 = default(bool), bool certifyBox26 = default(bool), string box27ANameSponsoringEntity = default(string), bool certifyBox27B = default(bool), bool certifyBox28 = default(bool), bool certifyBox29 = default(bool), bool certifyBox30A = default(bool), bool certifyBox30B = default(bool), bool certifyBox30C = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool box32TrusteeIsForeign = default(bool), bool certifyBox33A = default(bool), bool certifyBox33B = default(bool), bool certifyBox33C = default(bool), bool certifyBox33D = default(bool), bool certifyBox33E = default(bool), bool certifyBox33F = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), string box37ASecuritiesMarket = default(string), bool certifyBox37B = default(bool), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40 = default(bool), string box41SponsoringEntity = default(string), bool certifyBox42 = default(bool), string signerName = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string box3MaritalStatus = default(string), bool? box4LastNameDiffers = default(bool?), int? box5NumAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? box6AdditionalWithheld = default(double?), bool? box7ExemptFromWithholding = default(bool?), string officeCode = default(string), bool? ftinNotRequired = default(bool?), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), bool? makingTreatyClaim = default(bool?), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox33 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), List substantialUsOwners = default(List), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), int? companyId = default(int?), string signerCapacity = default(string), string tinMatchStatus = default(string), string signature = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?)) + /// Indicates whether the form is archived.. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// signature. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public W8ImyFormDataModel(DateTime? signedDate = default(DateTime?), string disregardedEntityChapter4FatcaStatus = default(string), DateTime? createdAt = default(DateTime?), DateTime? updatedAt = default(DateTime?), string displayName = default(string), string email = default(string), string tin = default(string), string typeOfTin = default(string), string name = default(string), string citizenshipCountry = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), bool? residenceIsMailing = default(bool?), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedEntity = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string disregardedEntityGiin = default(string), string ein = default(string), string einType = default(string), string giin = default(string), string foreignTin = default(string), string referenceNumber = default(string), bool? certifyBox14 = default(bool?), bool? certifyBox15A = default(bool?), bool? certifyBox15B = default(bool?), bool? certifyBox15C = default(bool?), bool? certifyBox15D = default(bool?), bool? certifyBox15E = default(bool?), bool? certifyBox15F = default(bool?), bool? certifyBox15G = default(bool?), bool? certifyBox15H = default(bool?), bool? certifyBox15I = default(bool?), bool? certifyBox16A = default(bool?), bool? box16BQddCorporate = default(bool?), bool? box16BQddPartnership = default(bool?), bool? box16BQddDisregardedEntity = default(bool?), bool? certifyBox17A = default(bool?), bool? certifyBox17B = default(bool?), bool? certifyBox17C = default(bool?), bool? certifyBox17D = default(bool?), bool? certifyBox17E = default(bool?), bool? certifyBox18A = default(bool?), bool? certifyBox18B = default(bool?), bool? certifyBox18C = default(bool?), bool? certifyBox18D = default(bool?), bool? certifyBox18E = default(bool?), bool? certifyBox18F = default(bool?), bool? certifyBox19A = default(bool?), bool? certifyBox19B = default(bool?), bool? certifyBox19C = default(bool?), bool? certifyBox19D = default(bool?), bool? certifyBox19E = default(bool?), bool? certifyBox19F = default(bool?), bool? certifyBox20 = default(bool?), bool? certifyBox21A = default(bool?), bool? certifyBox21B = default(bool?), bool? certifyBox21C = default(bool?), bool? certifyBox21D = default(bool?), bool? certifyBox21E = default(bool?), bool? certifyBox21F = default(bool?), bool? certifyBox22 = default(bool?), string box23ANameSponsoringEntity = default(string), bool? certifyBox23B = default(bool?), bool? certifyBox23C = default(bool?), bool? certifyBox24A = default(bool?), bool? certifyBox24B = default(bool?), bool? certifyBox24C = default(bool?), bool? certifyBox25 = default(bool?), bool? certifyBox26 = default(bool?), string box27ANameSponsoringEntity = default(string), bool? certifyBox27B = default(bool?), bool? certifyBox28 = default(bool?), bool? certifyBox29 = default(bool?), bool? certifyBox30A = default(bool?), bool? certifyBox30B = default(bool?), bool? certifyBox30C = default(bool?), bool? certifyBox31 = default(bool?), bool? certifyBox32 = default(bool?), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool? box32TrusteeIsForeign = default(bool?), bool? certifyBox33A = default(bool?), bool? certifyBox33B = default(bool?), bool? certifyBox33C = default(bool?), bool? certifyBox33D = default(bool?), bool? certifyBox33E = default(bool?), bool? certifyBox33F = default(bool?), bool? certifyBox34 = default(bool?), bool? certifyBox35 = default(bool?), bool? certifyBox36 = default(bool?), bool? certifyBox37A = default(bool?), string box37ASecuritiesMarket = default(string), bool? certifyBox37B = default(bool?), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool? certifyBox38 = default(bool?), bool? certifyBox39 = default(bool?), bool? certifyBox40 = default(bool?), string box41SponsoringEntity = default(string), bool? certifyBox42 = default(bool?), string signerName = default(string), DateTime? eDeliveryConsentedAt = default(DateTime?), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?), string id = default(string), string entryStatus = default(string), string referenceId = default(string), string companyId = default(string), bool? archived = default(bool?), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), string signature = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) { this.SignedDate = signedDate; this.DisregardedEntityChapter4FatcaStatus = disregardedEntityChapter4FatcaStatus; @@ -433,98 +356,21 @@ public bool ShouldSerializeType() this.EDeliveryConsentedAt = eDeliveryConsentedAt; this.Box35FormedOnDate = box35FormedOnDate; this.Box36FiledOnDate = box36FiledOnDate; - this.EmployeeFirstName = employeeFirstName; - this.EmployeeMiddleName = employeeMiddleName; - this.EmployeeLastName = employeeLastName; - this.EmployeeNameSuffix = employeeNameSuffix; - this.Address = address; - this.City = city; - this.State = state; - this.Zip = zip; - this.Box3MaritalStatus = box3MaritalStatus; - this.Box4LastNameDiffers = box4LastNameDiffers; - this.Box5NumAllowances = box5NumAllowances; - this.OtherDependents = otherDependents; - this.NonJobIncome = nonJobIncome; - this.Deductions = deductions; - this.Box6AdditionalWithheld = box6AdditionalWithheld; - this.Box7ExemptFromWithholding = box7ExemptFromWithholding; - this.OfficeCode = officeCode; - this.FtinNotRequired = ftinNotRequired; - this.BenefitLimitation = benefitLimitation; - this.Part4SponsoringEntity = part4SponsoringEntity; - this.Part4SponsoringEntityGiin = part4SponsoringEntityGiin; - this.Part7SponsoringEntity = part7SponsoringEntity; - this.Part12IgaCountry = part12IgaCountry; - this.Part12IgaType = part12IgaType; - this.Part12FatcaStatusUnderIgaAnnexIi = part12FatcaStatusUnderIgaAnnexIi; - this.Part12TrusteeName = part12TrusteeName; - this.Part12TrusteeIsForeign = part12TrusteeIsForeign; - this.Part12Model2IgaGiin = part12Model2IgaGiin; - this.Box37AExchange = box37AExchange; - this.Box37BExchange = box37BExchange; - this.Box37BEntity = box37BEntity; - this.Part28SponsoringEntity = part28SponsoringEntity; - this.Part28SponsoringEntityGiin = part28SponsoringEntityGiin; - this.MakingTreatyClaim = makingTreatyClaim; - this.TreatyCountry = treatyCountry; - this.TreatyArticle = treatyArticle; - this.WithholdingRate = withholdingRate; - this.IncomeType = incomeType; - this.TreatyReasons = treatyReasons; - this.CertifyBox14A = certifyBox14A; - this.CertifyBox14B = certifyBox14B; - this.CertifyBox14C = certifyBox14C; - this.CertifyBox171 = certifyBox171; - this.CertifyBox172 = certifyBox172; - this.CertifyBox18 = certifyBox18; - this.CertifyBox19 = certifyBox19; - this.CertifyBox21 = certifyBox21; - this.CertifyBox23 = certifyBox23; - this.CertifyBox24D = certifyBox24D; - this.CertifyBox25A = certifyBox25A; - this.CertifyBox25B = certifyBox25B; - this.CertifyBox25C = certifyBox25C; - this.CertifyBox27 = certifyBox27; - this.CertifyBox28A = certifyBox28A; - this.CertifyBox28B = certifyBox28B; - this.CertifyBox29A = certifyBox29A; - this.CertifyBox29B = certifyBox29B; - this.CertifyBox29C = certifyBox29C; - this.CertifyBox29D = certifyBox29D; - this.CertifyBox29E = certifyBox29E; - this.CertifyBox29F = certifyBox29F; - this.CertifyBox30 = certifyBox30; - this.CertifyBox33 = certifyBox33; - this.CertifyBox40A = certifyBox40A; - this.CertifyBox40B = certifyBox40B; - this.CertifyBox40C = certifyBox40C; - this.CertifyBox41 = certifyBox41; - this.CertifyBox43 = certifyBox43; - this.CertifyPart29Signature = certifyPart29Signature; - this.Part19FormationOrResolutionDate = part19FormationOrResolutionDate; - this.Part20FilingDate = part20FilingDate; - this.Part21DeterminationDate = part21DeterminationDate; - this.SubstantialUsOwners = substantialUsOwners; - this.Birthday = birthday; - this.ForeignTinNotRequired = foreignTinNotRequired; - this.Archived = archived; + this.Id = id; + this.EntryStatus = entryStatus; this.ReferenceId = referenceId; this.CompanyId = companyId; - this.SignerCapacity = signerCapacity; - this.TinMatchStatus = tinMatchStatus; + this.Archived = archived; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; this.Signature = signature; - this.BusinessClassification = businessClassification; - this.BusinessName = businessName; - this.BusinessOther = businessOther; - this.ExemptPayeeCode = exemptPayeeCode; - this.ExemptFatcaCode = exemptFatcaCode; - this.AccountNumber = accountNumber; - this.ForeignCountryIndicator = foreignCountryIndicator; - this.ForeignAddress = foreignAddress; - this.BackupWithholding = backupWithholding; - this.Is1099able = is1099able; - this.ForeignPartnerOwnerOrBeneficiary = foreignPartnerOwnerOrBeneficiary; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; } /// @@ -664,9 +510,8 @@ public bool ShouldSerializeType() /// Indicates whether the residence address is also the mailing address. /// /// Indicates whether the residence address is also the mailing address. - /// false [DataMember(Name = "residenceIsMailing", EmitDefaultValue = true)] - public bool ResidenceIsMailing { get; set; } + public bool? ResidenceIsMailing { get; set; } /// /// The mailing address. @@ -799,313 +644,274 @@ public bool ShouldSerializeType() /// Indicates certification for box 14. /// /// Indicates certification for box 14. - /// false [DataMember(Name = "certifyBox14", EmitDefaultValue = true)] - public bool CertifyBox14 { get; set; } + public bool? CertifyBox14 { get; set; } /// /// Indicates certification for box 15A. /// /// Indicates certification for box 15A. - /// false [DataMember(Name = "certifyBox15A", EmitDefaultValue = true)] - public bool CertifyBox15A { get; set; } + public bool? CertifyBox15A { get; set; } /// /// Indicates certification for box 15B. /// /// Indicates certification for box 15B. - /// false [DataMember(Name = "certifyBox15B", EmitDefaultValue = true)] - public bool CertifyBox15B { get; set; } + public bool? CertifyBox15B { get; set; } /// /// Indicates certification for box 15C. /// /// Indicates certification for box 15C. - /// false [DataMember(Name = "certifyBox15C", EmitDefaultValue = true)] - public bool CertifyBox15C { get; set; } + public bool? CertifyBox15C { get; set; } /// /// Indicates certification for box 15D. /// /// Indicates certification for box 15D. - /// false [DataMember(Name = "certifyBox15D", EmitDefaultValue = true)] - public bool CertifyBox15D { get; set; } + public bool? CertifyBox15D { get; set; } /// /// Indicates certification for box 15E. /// /// Indicates certification for box 15E. - /// false [DataMember(Name = "certifyBox15E", EmitDefaultValue = true)] - public bool CertifyBox15E { get; set; } + public bool? CertifyBox15E { get; set; } /// /// Indicates certification for box 15F. /// /// Indicates certification for box 15F. - /// false [DataMember(Name = "certifyBox15F", EmitDefaultValue = true)] - public bool CertifyBox15F { get; set; } + public bool? CertifyBox15F { get; set; } /// /// Indicates certification for box 15G. /// /// Indicates certification for box 15G. - /// false [DataMember(Name = "certifyBox15G", EmitDefaultValue = true)] - public bool CertifyBox15G { get; set; } + public bool? CertifyBox15G { get; set; } /// /// Indicates certification for box 15H. /// /// Indicates certification for box 15H. - /// false [DataMember(Name = "certifyBox15H", EmitDefaultValue = true)] - public bool CertifyBox15H { get; set; } + public bool? CertifyBox15H { get; set; } /// /// Indicates certification for box 15I. /// /// Indicates certification for box 15I. - /// false [DataMember(Name = "certifyBox15I", EmitDefaultValue = true)] - public bool CertifyBox15I { get; set; } + public bool? CertifyBox15I { get; set; } /// /// Indicates certification for box 16A. /// /// Indicates certification for box 16A. - /// false [DataMember(Name = "certifyBox16A", EmitDefaultValue = true)] - public bool CertifyBox16A { get; set; } + public bool? CertifyBox16A { get; set; } /// /// Indicates certification for box 16B as a QDD corporate entity. /// /// Indicates certification for box 16B as a QDD corporate entity. - /// false [DataMember(Name = "box16BQddCorporate", EmitDefaultValue = true)] - public bool Box16BQddCorporate { get; set; } + public bool? Box16BQddCorporate { get; set; } /// /// Indicates certification for box 16B as a QDD partnership. /// /// Indicates certification for box 16B as a QDD partnership. - /// false [DataMember(Name = "box16BQddPartnership", EmitDefaultValue = true)] - public bool Box16BQddPartnership { get; set; } + public bool? Box16BQddPartnership { get; set; } /// /// Indicates certification for box 16B as a QDD disregarded entity. /// /// Indicates certification for box 16B as a QDD disregarded entity. - /// false [DataMember(Name = "box16BQddDisregardedEntity", EmitDefaultValue = true)] - public bool Box16BQddDisregardedEntity { get; set; } + public bool? Box16BQddDisregardedEntity { get; set; } /// /// Indicates certification for box 17A. /// /// Indicates certification for box 17A. - /// false [DataMember(Name = "certifyBox17A", EmitDefaultValue = true)] - public bool CertifyBox17A { get; set; } + public bool? CertifyBox17A { get; set; } /// /// Indicates certification for box 17B. /// /// Indicates certification for box 17B. - /// false [DataMember(Name = "certifyBox17B", EmitDefaultValue = true)] - public bool CertifyBox17B { get; set; } + public bool? CertifyBox17B { get; set; } /// /// Indicates certification for box 17C. /// /// Indicates certification for box 17C. - /// false [DataMember(Name = "certifyBox17C", EmitDefaultValue = true)] - public bool CertifyBox17C { get; set; } + public bool? CertifyBox17C { get; set; } /// /// Indicates certification for box 17D. /// /// Indicates certification for box 17D. - /// false [DataMember(Name = "certifyBox17D", EmitDefaultValue = true)] - public bool CertifyBox17D { get; set; } + public bool? CertifyBox17D { get; set; } /// /// Indicates certification for box 17E. /// /// Indicates certification for box 17E. - /// false [DataMember(Name = "certifyBox17E", EmitDefaultValue = true)] - public bool CertifyBox17E { get; set; } + public bool? CertifyBox17E { get; set; } /// /// Indicates certification for box 18A. /// /// Indicates certification for box 18A. - /// false [DataMember(Name = "certifyBox18A", EmitDefaultValue = true)] - public bool CertifyBox18A { get; set; } + public bool? CertifyBox18A { get; set; } /// /// Indicates certification for box 18B. /// /// Indicates certification for box 18B. - /// false [DataMember(Name = "certifyBox18B", EmitDefaultValue = true)] - public bool CertifyBox18B { get; set; } + public bool? CertifyBox18B { get; set; } /// /// Indicates certification for box 18C. /// /// Indicates certification for box 18C. - /// false [DataMember(Name = "certifyBox18C", EmitDefaultValue = true)] - public bool CertifyBox18C { get; set; } + public bool? CertifyBox18C { get; set; } /// /// Indicates certification for box 18D. /// /// Indicates certification for box 18D. - /// false [DataMember(Name = "certifyBox18D", EmitDefaultValue = true)] - public bool CertifyBox18D { get; set; } + public bool? CertifyBox18D { get; set; } /// /// Indicates certification for box 18E. /// /// Indicates certification for box 18E. - /// false [DataMember(Name = "certifyBox18E", EmitDefaultValue = true)] - public bool CertifyBox18E { get; set; } + public bool? CertifyBox18E { get; set; } /// /// Indicates certification for box 18F. /// /// Indicates certification for box 18F. - /// false [DataMember(Name = "certifyBox18F", EmitDefaultValue = true)] - public bool CertifyBox18F { get; set; } + public bool? CertifyBox18F { get; set; } /// /// Indicates certification for box 19A. /// /// Indicates certification for box 19A. - /// false [DataMember(Name = "certifyBox19A", EmitDefaultValue = true)] - public bool CertifyBox19A { get; set; } + public bool? CertifyBox19A { get; set; } /// /// Indicates certification for box 19B. /// /// Indicates certification for box 19B. - /// false [DataMember(Name = "certifyBox19B", EmitDefaultValue = true)] - public bool CertifyBox19B { get; set; } + public bool? CertifyBox19B { get; set; } /// /// Indicates certification for box 19C. /// /// Indicates certification for box 19C. - /// false [DataMember(Name = "certifyBox19C", EmitDefaultValue = true)] - public bool CertifyBox19C { get; set; } + public bool? CertifyBox19C { get; set; } /// /// Indicates certification for box 19D. /// /// Indicates certification for box 19D. - /// false [DataMember(Name = "certifyBox19D", EmitDefaultValue = true)] - public bool CertifyBox19D { get; set; } + public bool? CertifyBox19D { get; set; } /// /// Indicates certification for box 19E. /// /// Indicates certification for box 19E. - /// false [DataMember(Name = "certifyBox19E", EmitDefaultValue = true)] - public bool CertifyBox19E { get; set; } + public bool? CertifyBox19E { get; set; } /// /// Indicates certification for box 19F. /// /// Indicates certification for box 19F. - /// false [DataMember(Name = "certifyBox19F", EmitDefaultValue = true)] - public bool CertifyBox19F { get; set; } + public bool? CertifyBox19F { get; set; } /// /// Indicates certification for box 20. /// /// Indicates certification for box 20. - /// false [DataMember(Name = "certifyBox20", EmitDefaultValue = true)] - public bool CertifyBox20 { get; set; } + public bool? CertifyBox20 { get; set; } /// /// Indicates certification for box 21A. /// /// Indicates certification for box 21A. - /// false [DataMember(Name = "certifyBox21A", EmitDefaultValue = true)] - public bool CertifyBox21A { get; set; } + public bool? CertifyBox21A { get; set; } /// /// Indicates certification for box 21B. /// /// Indicates certification for box 21B. - /// false [DataMember(Name = "certifyBox21B", EmitDefaultValue = true)] - public bool CertifyBox21B { get; set; } + public bool? CertifyBox21B { get; set; } /// /// Indicates certification for box 21C. /// /// Indicates certification for box 21C. - /// false [DataMember(Name = "certifyBox21C", EmitDefaultValue = true)] - public bool CertifyBox21C { get; set; } + public bool? CertifyBox21C { get; set; } /// /// Indicates certification for box 21D. /// /// Indicates certification for box 21D. - /// false [DataMember(Name = "certifyBox21D", EmitDefaultValue = true)] - public bool CertifyBox21D { get; set; } + public bool? CertifyBox21D { get; set; } /// /// Indicates certification for box 21E. /// /// Indicates certification for box 21E. - /// false [DataMember(Name = "certifyBox21E", EmitDefaultValue = true)] - public bool CertifyBox21E { get; set; } + public bool? CertifyBox21E { get; set; } /// /// Indicates certification for box 21F. /// /// Indicates certification for box 21F. - /// false [DataMember(Name = "certifyBox21F", EmitDefaultValue = true)] - public bool CertifyBox21F { get; set; } + public bool? CertifyBox21F { get; set; } /// /// Indicates certification for box 22. /// /// Indicates certification for box 22. - /// false [DataMember(Name = "certifyBox22", EmitDefaultValue = true)] - public bool CertifyBox22 { get; set; } + public bool? CertifyBox22 { get; set; } /// /// The name of the sponsoring entity for box 23A. @@ -1118,57 +924,50 @@ public bool ShouldSerializeType() /// Indicates certification for box 23B. /// /// Indicates certification for box 23B. - /// false [DataMember(Name = "certifyBox23B", EmitDefaultValue = true)] - public bool CertifyBox23B { get; set; } + public bool? CertifyBox23B { get; set; } /// /// Indicates certification for box 23C. /// /// Indicates certification for box 23C. - /// false [DataMember(Name = "certifyBox23C", EmitDefaultValue = true)] - public bool CertifyBox23C { get; set; } + public bool? CertifyBox23C { get; set; } /// /// Indicates certification for box 24A. /// /// Indicates certification for box 24A. - /// false [DataMember(Name = "certifyBox24A", EmitDefaultValue = true)] - public bool CertifyBox24A { get; set; } + public bool? CertifyBox24A { get; set; } /// /// Indicates certification for box 24B. /// /// Indicates certification for box 24B. - /// false [DataMember(Name = "certifyBox24B", EmitDefaultValue = true)] - public bool CertifyBox24B { get; set; } + public bool? CertifyBox24B { get; set; } /// /// Indicates certification for box 24C. /// /// Indicates certification for box 24C. - /// false [DataMember(Name = "certifyBox24C", EmitDefaultValue = true)] - public bool CertifyBox24C { get; set; } + public bool? CertifyBox24C { get; set; } /// /// Indicates certification for box 25. /// /// Indicates certification for box 25. - /// false [DataMember(Name = "certifyBox25", EmitDefaultValue = true)] - public bool CertifyBox25 { get; set; } + public bool? CertifyBox25 { get; set; } /// /// Indicates certification for box 26. /// /// Indicates certification for box 26. - /// false [DataMember(Name = "certifyBox26", EmitDefaultValue = true)] - public bool CertifyBox26 { get; set; } + public bool? CertifyBox26 { get; set; } /// /// The name of the sponsoring entity for box 27A. @@ -1181,65 +980,57 @@ public bool ShouldSerializeType() /// Indicates certification for box 27B. /// /// Indicates certification for box 27B. - /// false [DataMember(Name = "certifyBox27B", EmitDefaultValue = true)] - public bool CertifyBox27B { get; set; } + public bool? CertifyBox27B { get; set; } /// /// Indicates certification for box 28. /// /// Indicates certification for box 28. - /// false [DataMember(Name = "certifyBox28", EmitDefaultValue = true)] - public bool CertifyBox28 { get; set; } + public bool? CertifyBox28 { get; set; } /// /// Indicates certification for box 29. /// /// Indicates certification for box 29. - /// false [DataMember(Name = "certifyBox29", EmitDefaultValue = true)] - public bool CertifyBox29 { get; set; } + public bool? CertifyBox29 { get; set; } /// /// Indicates certification for box 30A. /// /// Indicates certification for box 30A. - /// false [DataMember(Name = "certifyBox30A", EmitDefaultValue = true)] - public bool CertifyBox30A { get; set; } + public bool? CertifyBox30A { get; set; } /// /// Indicates certification for box 30B. /// /// Indicates certification for box 30B. - /// false [DataMember(Name = "certifyBox30B", EmitDefaultValue = true)] - public bool CertifyBox30B { get; set; } + public bool? CertifyBox30B { get; set; } /// /// Indicates certification for box 30C. /// /// Indicates certification for box 30C. - /// false [DataMember(Name = "certifyBox30C", EmitDefaultValue = true)] - public bool CertifyBox30C { get; set; } + public bool? CertifyBox30C { get; set; } /// /// Indicates certification for box 31. /// /// Indicates certification for box 31. - /// false [DataMember(Name = "certifyBox31", EmitDefaultValue = true)] - public bool CertifyBox31 { get; set; } + public bool? CertifyBox31 { get; set; } /// /// Indicates certification for box 32. /// /// Indicates certification for box 32. - /// false [DataMember(Name = "certifyBox32", EmitDefaultValue = true)] - public bool CertifyBox32 { get; set; } + public bool? CertifyBox32 { get; set; } /// /// The IGA country information for box 32. @@ -1273,89 +1064,78 @@ public bool ShouldSerializeType() /// Indicates whether the trustee is foreign for box 32. /// /// Indicates whether the trustee is foreign for box 32. - /// false [DataMember(Name = "box32TrusteeIsForeign", EmitDefaultValue = true)] - public bool Box32TrusteeIsForeign { get; set; } + public bool? Box32TrusteeIsForeign { get; set; } /// /// Indicates certification for box 33A. /// /// Indicates certification for box 33A. - /// false [DataMember(Name = "certifyBox33A", EmitDefaultValue = true)] - public bool CertifyBox33A { get; set; } + public bool? CertifyBox33A { get; set; } /// /// Indicates certification for box 33B. /// /// Indicates certification for box 33B. - /// false [DataMember(Name = "certifyBox33B", EmitDefaultValue = true)] - public bool CertifyBox33B { get; set; } + public bool? CertifyBox33B { get; set; } /// /// Indicates certification for box 33C. /// /// Indicates certification for box 33C. - /// false [DataMember(Name = "certifyBox33C", EmitDefaultValue = true)] - public bool CertifyBox33C { get; set; } + public bool? CertifyBox33C { get; set; } /// /// Indicates certification for box 33D. /// /// Indicates certification for box 33D. - /// false [DataMember(Name = "certifyBox33D", EmitDefaultValue = true)] - public bool CertifyBox33D { get; set; } + public bool? CertifyBox33D { get; set; } /// /// Indicates certification for box 33E. /// /// Indicates certification for box 33E. - /// false [DataMember(Name = "certifyBox33E", EmitDefaultValue = true)] - public bool CertifyBox33E { get; set; } + public bool? CertifyBox33E { get; set; } /// /// Indicates certification for box 33F. /// /// Indicates certification for box 33F. - /// false [DataMember(Name = "certifyBox33F", EmitDefaultValue = true)] - public bool CertifyBox33F { get; set; } + public bool? CertifyBox33F { get; set; } /// /// Indicates certification for box 34. /// /// Indicates certification for box 34. - /// false [DataMember(Name = "certifyBox34", EmitDefaultValue = true)] - public bool CertifyBox34 { get; set; } + public bool? CertifyBox34 { get; set; } /// /// Indicates certification for box 35. /// /// Indicates certification for box 35. - /// false [DataMember(Name = "certifyBox35", EmitDefaultValue = true)] - public bool CertifyBox35 { get; set; } + public bool? CertifyBox35 { get; set; } /// /// Indicates certification for box 36. /// /// Indicates certification for box 36. - /// false [DataMember(Name = "certifyBox36", EmitDefaultValue = true)] - public bool CertifyBox36 { get; set; } + public bool? CertifyBox36 { get; set; } /// /// Indicates certification for box 37A. /// /// Indicates certification for box 37A. - /// false [DataMember(Name = "certifyBox37A", EmitDefaultValue = true)] - public bool CertifyBox37A { get; set; } + public bool? CertifyBox37A { get; set; } /// /// The securities market information for box 37A. @@ -1368,9 +1148,8 @@ public bool ShouldSerializeType() /// Indicates certification for box 37B. /// /// Indicates certification for box 37B. - /// false [DataMember(Name = "certifyBox37B", EmitDefaultValue = true)] - public bool CertifyBox37B { get; set; } + public bool? CertifyBox37B { get; set; } /// /// The name of the entity for box 37B. @@ -1390,25 +1169,22 @@ public bool ShouldSerializeType() /// Indicates certification for box 38. /// /// Indicates certification for box 38. - /// false [DataMember(Name = "certifyBox38", EmitDefaultValue = true)] - public bool CertifyBox38 { get; set; } + public bool? CertifyBox38 { get; set; } /// /// Indicates certification for box 39. /// /// Indicates certification for box 39. - /// false [DataMember(Name = "certifyBox39", EmitDefaultValue = true)] - public bool CertifyBox39 { get; set; } + public bool? CertifyBox39 { get; set; } /// /// Indicates certification for box 40. /// /// Indicates certification for box 40. - /// false [DataMember(Name = "certifyBox40", EmitDefaultValue = true)] - public bool CertifyBox40 { get; set; } + public bool? CertifyBox40 { get; set; } /// /// The sponsoring entity information for box 41. @@ -1421,9 +1197,8 @@ public bool ShouldSerializeType() /// Indicates certification for box 42. /// /// Indicates certification for box 42. - /// false [DataMember(Name = "certifyBox42", EmitDefaultValue = true)] - public bool CertifyBox42 { get; set; } + public bool? CertifyBox42 { get; set; } /// /// The name of the signer of the form. @@ -1454,577 +1229,21 @@ public bool ShouldSerializeType() public DateTime? Box36FiledOnDate { get; set; } /// - /// The first name of the employee. - /// - /// The first name of the employee. - /// Jane - [DataMember(Name = "employeeFirstName", EmitDefaultValue = true)] - public string EmployeeFirstName { get; set; } - - /// - /// The middle name of the employee. - /// - /// The middle name of the employee. - /// A. - [DataMember(Name = "employeeMiddleName", EmitDefaultValue = true)] - public string EmployeeMiddleName { get; set; } - - /// - /// The last name of the employee. - /// - /// The last name of the employee. - /// Smith - [DataMember(Name = "employeeLastName", EmitDefaultValue = true)] - public string EmployeeLastName { get; set; } - - /// - /// The name suffix of the employee. - /// - /// The name suffix of the employee. - /// Jr. - [DataMember(Name = "employeeNameSuffix", EmitDefaultValue = true)] - public string EmployeeNameSuffix { get; set; } - - /// - /// The address of the individual or entity. - /// - /// The address of the individual or entity. - /// 123 Main St - [DataMember(Name = "address", EmitDefaultValue = true)] - public string Address { get; set; } - - /// - /// The city of the address. - /// - /// The city of the address. - /// Anytown - [DataMember(Name = "city", EmitDefaultValue = true)] - public string City { get; set; } - - /// - /// The state of the address. - /// - /// The state of the address. - /// CA - [DataMember(Name = "state", EmitDefaultValue = true)] - public string State { get; set; } - - /// - /// The ZIP code of the address. - /// - /// The ZIP code of the address. - /// 90210 - [DataMember(Name = "zip", EmitDefaultValue = true)] - public string Zip { get; set; } - - /// - /// The marital status of the employee. - /// - /// The marital status of the employee. - /// Married - [DataMember(Name = "box3MaritalStatus", EmitDefaultValue = true)] - public string Box3MaritalStatus { get; set; } - - /// - /// Indicates whether the last name differs from prior records. - /// - /// Indicates whether the last name differs from prior records. - /// false - [DataMember(Name = "box4LastNameDiffers", EmitDefaultValue = true)] - public bool? Box4LastNameDiffers { get; set; } - - /// - /// The number of allowances claimed by the employee. - /// - /// The number of allowances claimed by the employee. - /// 3 - [DataMember(Name = "box5NumAllowances", EmitDefaultValue = true)] - public int? Box5NumAllowances { get; set; } - - /// - /// The number of dependents other than allowances. - /// - /// The number of dependents other than allowances. - /// 1 - [DataMember(Name = "otherDependents", EmitDefaultValue = true)] - public int? OtherDependents { get; set; } - - /// - /// The amount of non-job income. - /// - /// The amount of non-job income. - /// 5000.0 - [DataMember(Name = "nonJobIncome", EmitDefaultValue = true)] - public double? NonJobIncome { get; set; } - - /// - /// The amount of deductions claimed. - /// - /// The amount of deductions claimed. - /// 2000.0 - [DataMember(Name = "deductions", EmitDefaultValue = true)] - public double? Deductions { get; set; } - - /// - /// The additional amount withheld. - /// - /// The additional amount withheld. - /// 150.0 - [DataMember(Name = "box6AdditionalWithheld", EmitDefaultValue = true)] - public double? Box6AdditionalWithheld { get; set; } - - /// - /// Indicates whether the employee is exempt from withholding. - /// - /// Indicates whether the employee is exempt from withholding. - /// false - [DataMember(Name = "box7ExemptFromWithholding", EmitDefaultValue = true)] - public bool? Box7ExemptFromWithholding { get; set; } - - /// - /// The office code associated with the form. - /// - /// The office code associated with the form. - /// OC12345 - [DataMember(Name = "officeCode", EmitDefaultValue = true)] - public string OfficeCode { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "ftinNotRequired", EmitDefaultValue = true)] - public bool? FtinNotRequired { get; set; } - - /// - /// The benefit limitation for tax treaty claims. - /// - /// The benefit limitation for tax treaty claims. - /// Treaty Benefit - [DataMember(Name = "benefitLimitation", EmitDefaultValue = true)] - public string BenefitLimitation { get; set; } - - /// - /// The sponsoring entity information for Part 4. - /// - /// The sponsoring entity information for Part 4. - /// Parent Company - [DataMember(Name = "part4SponsoringEntity", EmitDefaultValue = true)] - public string Part4SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 4. - /// - /// The GIIN for the sponsoring entity in Part 4. - /// GIIN11223344 - [DataMember(Name = "part4SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part4SponsoringEntityGiin { get; set; } - - /// - /// The sponsoring entity information for Part 7. - /// - /// The sponsoring entity information for Part 7. - /// Affiliated Organization - [DataMember(Name = "part7SponsoringEntity", EmitDefaultValue = true)] - public string Part7SponsoringEntity { get; set; } - - /// - /// The IGA country information for Part 12. - /// - /// The IGA country information for Part 12. - /// USA - [DataMember(Name = "part12IgaCountry", EmitDefaultValue = true)] - public string Part12IgaCountry { get; set; } - - /// - /// The IGA type information for Part 12. - /// - /// The IGA type information for Part 12. - /// Model 1 - [DataMember(Name = "part12IgaType", EmitDefaultValue = true)] - public string Part12IgaType { get; set; } - - /// - /// The FATCA status under IGA Annex II for Part 12. - /// - /// The FATCA status under IGA Annex II for Part 12. - /// Registered Deemed Compliant - [DataMember(Name = "part12FatcaStatusUnderIgaAnnexIi", EmitDefaultValue = true)] - public string Part12FatcaStatusUnderIgaAnnexIi { get; set; } - - /// - /// The trustee name for Part 12. - /// - /// The trustee name for Part 12. - /// Trustee Inc. - [DataMember(Name = "part12TrusteeName", EmitDefaultValue = true)] - public string Part12TrusteeName { get; set; } - - /// - /// Indicates whether the trustee is foreign for Part 12. - /// - /// Indicates whether the trustee is foreign for Part 12. - /// false - [DataMember(Name = "part12TrusteeIsForeign", EmitDefaultValue = true)] - public bool? Part12TrusteeIsForeign { get; set; } - - /// - /// The GIIN for Model 2 IGA in Part 12. - /// - /// The GIIN for Model 2 IGA in Part 12. - /// GIIN33445566 - [DataMember(Name = "part12Model2IgaGiin", EmitDefaultValue = true)] - public string Part12Model2IgaGiin { get; set; } - - /// - /// The exchange information for Box 37A. - /// - /// The exchange information for Box 37A. - /// NYSE - [DataMember(Name = "box37AExchange", EmitDefaultValue = true)] - public string Box37AExchange { get; set; } - - /// - /// The exchange information for Box 37B. - /// - /// The exchange information for Box 37B. - /// NASDAQ - [DataMember(Name = "box37BExchange", EmitDefaultValue = true)] - public string Box37BExchange { get; set; } - - /// - /// The entity information for Box 37B. - /// - /// The entity information for Box 37B. - /// Trading Partner - [DataMember(Name = "box37BEntity", EmitDefaultValue = true)] - public string Box37BEntity { get; set; } - - /// - /// The sponsoring entity information for Part 28. - /// - /// The sponsoring entity information for Part 28. - /// Global Trust - [DataMember(Name = "part28SponsoringEntity", EmitDefaultValue = true)] - public string Part28SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 28. - /// - /// The GIIN for the sponsoring entity in Part 28. - /// GIIN99887766 - [DataMember(Name = "part28SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part28SponsoringEntityGiin { get; set; } - - /// - /// Gets or Sets MakingTreatyClaim - /// - /// false - [DataMember(Name = "makingTreatyClaim", EmitDefaultValue = true)] - public bool? MakingTreatyClaim { get; set; } - - /// - /// The country for which the treaty applies. - /// - /// The country for which the treaty applies. - /// Canada - [DataMember(Name = "treatyCountry", EmitDefaultValue = true)] - public string TreatyCountry { get; set; } - - /// - /// The specific article of the treaty being claimed. - /// - /// The specific article of the treaty being claimed. - /// Article 12 - [DataMember(Name = "treatyArticle", EmitDefaultValue = true)] - public string TreatyArticle { get; set; } - - /// - /// The withholding rate applied as per the treaty. - /// - /// The withholding rate applied as per the treaty. - /// 15% - [DataMember(Name = "withholdingRate", EmitDefaultValue = true)] - public string WithholdingRate { get; set; } - - /// - /// The type of income covered by the treaty. - /// - /// The type of income covered by the treaty. - /// Dividend - [DataMember(Name = "incomeType", EmitDefaultValue = true)] - public string IncomeType { get; set; } - - /// - /// The reasons for claiming treaty benefits. - /// - /// The reasons for claiming treaty benefits. - /// Reduced withholding - [DataMember(Name = "treatyReasons", EmitDefaultValue = true)] - public string TreatyReasons { get; set; } - - /// - /// Gets or Sets CertifyBox14A - /// - /// false - [DataMember(Name = "certifyBox14A", EmitDefaultValue = true)] - public bool CertifyBox14A { get; set; } - - /// - /// Gets or Sets CertifyBox14B + /// Gets or Sets Id /// - /// false - [DataMember(Name = "certifyBox14B", EmitDefaultValue = true)] - public bool CertifyBox14B { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets CertifyBox14C + /// Gets or Sets EntryStatus /// - /// false - [DataMember(Name = "certifyBox14C", EmitDefaultValue = true)] - public bool CertifyBox14C { get; set; } - - /// - /// Gets or Sets CertifyBox171 - /// - /// false - [DataMember(Name = "certifyBox17_1", EmitDefaultValue = true)] - public bool CertifyBox171 { get; set; } - - /// - /// Gets or Sets CertifyBox172 - /// - /// false - [DataMember(Name = "certifyBox17_2", EmitDefaultValue = true)] - public bool CertifyBox172 { get; set; } - - /// - /// Gets or Sets CertifyBox18 - /// - /// false - [DataMember(Name = "certifyBox18", EmitDefaultValue = true)] - public bool CertifyBox18 { get; set; } - - /// - /// Gets or Sets CertifyBox19 - /// - /// false - [DataMember(Name = "certifyBox19", EmitDefaultValue = true)] - public bool CertifyBox19 { get; set; } - - /// - /// Gets or Sets CertifyBox21 - /// - /// false - [DataMember(Name = "certifyBox21", EmitDefaultValue = true)] - public bool CertifyBox21 { get; set; } - - /// - /// Gets or Sets CertifyBox23 - /// - /// false - [DataMember(Name = "certifyBox23", EmitDefaultValue = true)] - public bool CertifyBox23 { get; set; } - - /// - /// Gets or Sets CertifyBox24D - /// - /// false - [DataMember(Name = "certifyBox24D", EmitDefaultValue = true)] - public bool CertifyBox24D { get; set; } - - /// - /// Gets or Sets CertifyBox25A - /// - /// false - [DataMember(Name = "certifyBox25A", EmitDefaultValue = true)] - public bool CertifyBox25A { get; set; } - - /// - /// Gets or Sets CertifyBox25B - /// - /// false - [DataMember(Name = "certifyBox25B", EmitDefaultValue = true)] - public bool CertifyBox25B { get; set; } - - /// - /// Gets or Sets CertifyBox25C - /// - /// false - [DataMember(Name = "certifyBox25C", EmitDefaultValue = true)] - public bool CertifyBox25C { get; set; } - - /// - /// Gets or Sets CertifyBox27 - /// - /// false - [DataMember(Name = "certifyBox27", EmitDefaultValue = true)] - public bool CertifyBox27 { get; set; } - - /// - /// Gets or Sets CertifyBox28A - /// - /// false - [DataMember(Name = "certifyBox28A", EmitDefaultValue = true)] - public bool CertifyBox28A { get; set; } - - /// - /// Gets or Sets CertifyBox28B - /// - /// false - [DataMember(Name = "certifyBox28B", EmitDefaultValue = true)] - public bool CertifyBox28B { get; set; } - - /// - /// Gets or Sets CertifyBox29A - /// - /// false - [DataMember(Name = "certifyBox29A", EmitDefaultValue = true)] - public bool CertifyBox29A { get; set; } - - /// - /// Gets or Sets CertifyBox29B - /// - /// false - [DataMember(Name = "certifyBox29B", EmitDefaultValue = true)] - public bool CertifyBox29B { get; set; } - - /// - /// Gets or Sets CertifyBox29C - /// - /// false - [DataMember(Name = "certifyBox29C", EmitDefaultValue = true)] - public bool CertifyBox29C { get; set; } - - /// - /// Gets or Sets CertifyBox29D - /// - /// false - [DataMember(Name = "certifyBox29D", EmitDefaultValue = true)] - public bool CertifyBox29D { get; set; } - - /// - /// Gets or Sets CertifyBox29E - /// - /// false - [DataMember(Name = "certifyBox29E", EmitDefaultValue = true)] - public bool CertifyBox29E { get; set; } - - /// - /// Gets or Sets CertifyBox29F - /// - /// false - [DataMember(Name = "certifyBox29F", EmitDefaultValue = true)] - public bool CertifyBox29F { get; set; } - - /// - /// Gets or Sets CertifyBox30 - /// - /// false - [DataMember(Name = "certifyBox30", EmitDefaultValue = true)] - public bool CertifyBox30 { get; set; } - - /// - /// Gets or Sets CertifyBox33 - /// - /// false - [DataMember(Name = "certifyBox33", EmitDefaultValue = true)] - public bool CertifyBox33 { get; set; } - - /// - /// Gets or Sets CertifyBox40A - /// - /// false - [DataMember(Name = "certifyBox40A", EmitDefaultValue = true)] - public bool CertifyBox40A { get; set; } - - /// - /// Gets or Sets CertifyBox40B - /// - /// false - [DataMember(Name = "certifyBox40B", EmitDefaultValue = true)] - public bool CertifyBox40B { get; set; } - - /// - /// Gets or Sets CertifyBox40C - /// - /// false - [DataMember(Name = "certifyBox40C", EmitDefaultValue = true)] - public bool CertifyBox40C { get; set; } - - /// - /// Gets or Sets CertifyBox41 - /// - /// false - [DataMember(Name = "certifyBox41", EmitDefaultValue = true)] - public bool CertifyBox41 { get; set; } - - /// - /// Gets or Sets CertifyBox43 - /// - /// false - [DataMember(Name = "certifyBox43", EmitDefaultValue = true)] - public bool CertifyBox43 { get; set; } - - /// - /// Gets or Sets CertifyPart29Signature - /// - /// false - [DataMember(Name = "certifyPart29Signature", EmitDefaultValue = true)] - public bool CertifyPart29Signature { get; set; } - - /// - /// Gets or Sets Part19FormationOrResolutionDate - /// - [DataMember(Name = "part19FormationOrResolutionDate", EmitDefaultValue = true)] - public DateTime? Part19FormationOrResolutionDate { get; set; } - - /// - /// Gets or Sets Part20FilingDate - /// - [DataMember(Name = "part20FilingDate", EmitDefaultValue = true)] - public DateTime? Part20FilingDate { get; set; } - - /// - /// Gets or Sets Part21DeterminationDate - /// - [DataMember(Name = "part21DeterminationDate", EmitDefaultValue = true)] - public DateTime? Part21DeterminationDate { get; set; } - - /// - /// Gets or Sets SubstantialUsOwners - /// - /// [] - [DataMember(Name = "substantialUsOwners", EmitDefaultValue = false)] - public List SubstantialUsOwners { get; set; } - - /// - /// The birthday of the individual associated with the form. - /// - /// The birthday of the individual associated with the form. - [DataMember(Name = "birthday", EmitDefaultValue = true)] - public string Birthday { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "foreignTinNotRequired", EmitDefaultValue = true)] - public bool? ForeignTinNotRequired { get; set; } - - /// - /// Indicates whether the form is archived. - /// - /// Indicates whether the form is archived. - /// false - [DataMember(Name = "archived", EmitDefaultValue = true)] - public bool? Archived { get; set; } + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } /// /// A reference identifier for the form. /// /// A reference identifier for the form. - /// REF67890 [DataMember(Name = "referenceId", EmitDefaultValue = true)] public string ReferenceId { get; set; } @@ -2032,111 +1251,75 @@ public bool ShouldSerializeType() /// The ID of the associated company. /// /// The ID of the associated company. - /// 4004 [DataMember(Name = "companyId", EmitDefaultValue = true)] - public int? CompanyId { get; set; } + public string CompanyId { get; set; } /// - /// The capacity in which the signer is signing the form. - /// - /// The capacity in which the signer is signing the form. - /// Authorized Representative - [DataMember(Name = "signerCapacity", EmitDefaultValue = true)] - public string SignerCapacity { get; set; } - - /// - /// The status of the TIN match. - /// - /// The status of the TIN match. - /// Match - [DataMember(Name = "tinMatchStatus", EmitDefaultValue = true)] - public string TinMatchStatus { get; set; } - - /// - /// The signature itself - /// - /// The signature itself - [DataMember(Name = "signature", EmitDefaultValue = true)] - public string Signature { get; set; } - - /// - /// The classification of the business. + /// Indicates whether the form is archived. /// - /// The classification of the business. - /// LLC - [DataMember(Name = "businessClassification", EmitDefaultValue = true)] - public string BusinessClassification { get; set; } + /// Indicates whether the form is archived. + [DataMember(Name = "archived", EmitDefaultValue = true)] + public bool? Archived { get; set; } /// - /// The name of the business associated with the form. + /// Gets or Sets EntryStatusDate /// - /// The name of the business associated with the form. - /// Doe Enterprises - [DataMember(Name = "businessName", EmitDefaultValue = true)] - public string BusinessName { get; set; } + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } /// - /// Gets or Sets BusinessOther + /// Gets or Sets PdfJson /// - [DataMember(Name = "businessOther", EmitDefaultValue = true)] - public string BusinessOther { get; set; } + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } /// - /// Gets or Sets ExemptPayeeCode + /// Gets or Sets PdfVersion /// - [DataMember(Name = "exemptPayeeCode", EmitDefaultValue = true)] - public string ExemptPayeeCode { get; set; } + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } /// - /// Gets or Sets ExemptFatcaCode + /// Gets or Sets RequestToken /// - [DataMember(Name = "exemptFatcaCode", EmitDefaultValue = true)] - public string ExemptFatcaCode { get; set; } + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } /// - /// The account number associated with the form. + /// Gets or Sets Signature /// - /// The account number associated with the form. - /// ACC123456 - [DataMember(Name = "accountNumber", EmitDefaultValue = true)] - public string AccountNumber { get; set; } + [DataMember(Name = "signature", EmitDefaultValue = true)] + public string Signature { get; set; } /// - /// Indicates whether the individual or entity is in a foreign country. + /// Gets or Sets Mobile /// - /// Indicates whether the individual or entity is in a foreign country. - /// false - [DataMember(Name = "foreignCountryIndicator", EmitDefaultValue = true)] - public bool? ForeignCountryIndicator { get; set; } + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } /// - /// The foreign address of the individual or entity. + /// Gets or Sets AppVersion /// - /// The foreign address of the individual or entity. - [DataMember(Name = "foreignAddress", EmitDefaultValue = true)] - public string ForeignAddress { get; set; } + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } /// - /// Indicates whether backup withholding applies. + /// Gets or Sets Platform /// - /// Indicates whether backup withholding applies. - /// false - [DataMember(Name = "backupWithholding", EmitDefaultValue = true)] - public bool? BackupWithholding { get; set; } + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } /// - /// Gets or Sets Is1099able + /// Gets or Sets OsVersion /// - [DataMember(Name = "is1099able", EmitDefaultValue = true)] - public bool? Is1099able { get; set; } + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. + /// Gets or Sets AncestorId /// - /// Indicates whether the individual is a foreign partner, owner, or beneficiary. - /// false - [DataMember(Name = "foreignPartnerOwnerOrBeneficiary", EmitDefaultValue = true)] - public bool? ForeignPartnerOwnerOrBeneficiary { get; set; } + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } /// /// Returns the string presentation of the object @@ -2266,98 +1449,21 @@ public override string ToString() sb.Append(" EDeliveryConsentedAt: ").Append(EDeliveryConsentedAt).Append("\n"); sb.Append(" Box35FormedOnDate: ").Append(Box35FormedOnDate).Append("\n"); sb.Append(" Box36FiledOnDate: ").Append(Box36FiledOnDate).Append("\n"); - sb.Append(" EmployeeFirstName: ").Append(EmployeeFirstName).Append("\n"); - sb.Append(" EmployeeMiddleName: ").Append(EmployeeMiddleName).Append("\n"); - sb.Append(" EmployeeLastName: ").Append(EmployeeLastName).Append("\n"); - sb.Append(" EmployeeNameSuffix: ").Append(EmployeeNameSuffix).Append("\n"); - sb.Append(" Address: ").Append(Address).Append("\n"); - sb.Append(" City: ").Append(City).Append("\n"); - sb.Append(" State: ").Append(State).Append("\n"); - sb.Append(" Zip: ").Append(Zip).Append("\n"); - sb.Append(" Box3MaritalStatus: ").Append(Box3MaritalStatus).Append("\n"); - sb.Append(" Box4LastNameDiffers: ").Append(Box4LastNameDiffers).Append("\n"); - sb.Append(" Box5NumAllowances: ").Append(Box5NumAllowances).Append("\n"); - sb.Append(" OtherDependents: ").Append(OtherDependents).Append("\n"); - sb.Append(" NonJobIncome: ").Append(NonJobIncome).Append("\n"); - sb.Append(" Deductions: ").Append(Deductions).Append("\n"); - sb.Append(" Box6AdditionalWithheld: ").Append(Box6AdditionalWithheld).Append("\n"); - sb.Append(" Box7ExemptFromWithholding: ").Append(Box7ExemptFromWithholding).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" FtinNotRequired: ").Append(FtinNotRequired).Append("\n"); - sb.Append(" BenefitLimitation: ").Append(BenefitLimitation).Append("\n"); - sb.Append(" Part4SponsoringEntity: ").Append(Part4SponsoringEntity).Append("\n"); - sb.Append(" Part4SponsoringEntityGiin: ").Append(Part4SponsoringEntityGiin).Append("\n"); - sb.Append(" Part7SponsoringEntity: ").Append(Part7SponsoringEntity).Append("\n"); - sb.Append(" Part12IgaCountry: ").Append(Part12IgaCountry).Append("\n"); - sb.Append(" Part12IgaType: ").Append(Part12IgaType).Append("\n"); - sb.Append(" Part12FatcaStatusUnderIgaAnnexIi: ").Append(Part12FatcaStatusUnderIgaAnnexIi).Append("\n"); - sb.Append(" Part12TrusteeName: ").Append(Part12TrusteeName).Append("\n"); - sb.Append(" Part12TrusteeIsForeign: ").Append(Part12TrusteeIsForeign).Append("\n"); - sb.Append(" Part12Model2IgaGiin: ").Append(Part12Model2IgaGiin).Append("\n"); - sb.Append(" Box37AExchange: ").Append(Box37AExchange).Append("\n"); - sb.Append(" Box37BExchange: ").Append(Box37BExchange).Append("\n"); - sb.Append(" Box37BEntity: ").Append(Box37BEntity).Append("\n"); - sb.Append(" Part28SponsoringEntity: ").Append(Part28SponsoringEntity).Append("\n"); - sb.Append(" Part28SponsoringEntityGiin: ").Append(Part28SponsoringEntityGiin).Append("\n"); - sb.Append(" MakingTreatyClaim: ").Append(MakingTreatyClaim).Append("\n"); - sb.Append(" TreatyCountry: ").Append(TreatyCountry).Append("\n"); - sb.Append(" TreatyArticle: ").Append(TreatyArticle).Append("\n"); - sb.Append(" WithholdingRate: ").Append(WithholdingRate).Append("\n"); - sb.Append(" IncomeType: ").Append(IncomeType).Append("\n"); - sb.Append(" TreatyReasons: ").Append(TreatyReasons).Append("\n"); - sb.Append(" CertifyBox14A: ").Append(CertifyBox14A).Append("\n"); - sb.Append(" CertifyBox14B: ").Append(CertifyBox14B).Append("\n"); - sb.Append(" CertifyBox14C: ").Append(CertifyBox14C).Append("\n"); - sb.Append(" CertifyBox171: ").Append(CertifyBox171).Append("\n"); - sb.Append(" CertifyBox172: ").Append(CertifyBox172).Append("\n"); - sb.Append(" CertifyBox18: ").Append(CertifyBox18).Append("\n"); - sb.Append(" CertifyBox19: ").Append(CertifyBox19).Append("\n"); - sb.Append(" CertifyBox21: ").Append(CertifyBox21).Append("\n"); - sb.Append(" CertifyBox23: ").Append(CertifyBox23).Append("\n"); - sb.Append(" CertifyBox24D: ").Append(CertifyBox24D).Append("\n"); - sb.Append(" CertifyBox25A: ").Append(CertifyBox25A).Append("\n"); - sb.Append(" CertifyBox25B: ").Append(CertifyBox25B).Append("\n"); - sb.Append(" CertifyBox25C: ").Append(CertifyBox25C).Append("\n"); - sb.Append(" CertifyBox27: ").Append(CertifyBox27).Append("\n"); - sb.Append(" CertifyBox28A: ").Append(CertifyBox28A).Append("\n"); - sb.Append(" CertifyBox28B: ").Append(CertifyBox28B).Append("\n"); - sb.Append(" CertifyBox29A: ").Append(CertifyBox29A).Append("\n"); - sb.Append(" CertifyBox29B: ").Append(CertifyBox29B).Append("\n"); - sb.Append(" CertifyBox29C: ").Append(CertifyBox29C).Append("\n"); - sb.Append(" CertifyBox29D: ").Append(CertifyBox29D).Append("\n"); - sb.Append(" CertifyBox29E: ").Append(CertifyBox29E).Append("\n"); - sb.Append(" CertifyBox29F: ").Append(CertifyBox29F).Append("\n"); - sb.Append(" CertifyBox30: ").Append(CertifyBox30).Append("\n"); - sb.Append(" CertifyBox33: ").Append(CertifyBox33).Append("\n"); - sb.Append(" CertifyBox40A: ").Append(CertifyBox40A).Append("\n"); - sb.Append(" CertifyBox40B: ").Append(CertifyBox40B).Append("\n"); - sb.Append(" CertifyBox40C: ").Append(CertifyBox40C).Append("\n"); - sb.Append(" CertifyBox41: ").Append(CertifyBox41).Append("\n"); - sb.Append(" CertifyBox43: ").Append(CertifyBox43).Append("\n"); - sb.Append(" CertifyPart29Signature: ").Append(CertifyPart29Signature).Append("\n"); - sb.Append(" Part19FormationOrResolutionDate: ").Append(Part19FormationOrResolutionDate).Append("\n"); - sb.Append(" Part20FilingDate: ").Append(Part20FilingDate).Append("\n"); - sb.Append(" Part21DeterminationDate: ").Append(Part21DeterminationDate).Append("\n"); - sb.Append(" SubstantialUsOwners: ").Append(SubstantialUsOwners).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); - sb.Append(" ForeignTinNotRequired: ").Append(ForeignTinNotRequired).Append("\n"); - sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); - sb.Append(" SignerCapacity: ").Append(SignerCapacity).Append("\n"); - sb.Append(" TinMatchStatus: ").Append(TinMatchStatus).Append("\n"); + sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); sb.Append(" Signature: ").Append(Signature).Append("\n"); - sb.Append(" BusinessClassification: ").Append(BusinessClassification).Append("\n"); - sb.Append(" BusinessName: ").Append(BusinessName).Append("\n"); - sb.Append(" BusinessOther: ").Append(BusinessOther).Append("\n"); - sb.Append(" ExemptPayeeCode: ").Append(ExemptPayeeCode).Append("\n"); - sb.Append(" ExemptFatcaCode: ").Append(ExemptFatcaCode).Append("\n"); - sb.Append(" AccountNumber: ").Append(AccountNumber).Append("\n"); - sb.Append(" ForeignCountryIndicator: ").Append(ForeignCountryIndicator).Append("\n"); - sb.Append(" ForeignAddress: ").Append(ForeignAddress).Append("\n"); - sb.Append(" BackupWithholding: ").Append(BackupWithholding).Append("\n"); - sb.Append(" Is1099able: ").Append(Is1099able).Append("\n"); - sb.Append(" ForeignPartnerOwnerOrBeneficiary: ").Append(ForeignPartnerOwnerOrBeneficiary).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/W9FormDataModel.cs b/src/Avalara.SDK/Model/A1099/V2/W9FormDataModel.cs index 5d0233d..b8a3834 100644 --- a/src/Avalara.SDK/Model/A1099/V2/W9FormDataModel.cs +++ b/src/Avalara.SDK/Model/A1099/V2/W9FormDataModel.cs @@ -6,9 +6,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * - * Avalara 1099 & W-9 API Definition + * Avalara 1099 API Definition * - * ## 🔐 Authentication Use **username/password** or generate a **license key** from: *Avalara Portal → Settings → License and API Keys*. [More on authentication methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) [Test your credentials](https://developer.avalara.com/avatax/test-credentials/) ## 📘 API & SDK Documentation [Avalara SDK (.NET) on GitHub](https://github.com/avadev/Avalara-SDK-DotNet#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples – 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) * * @author Sachin Baijal @@ -124,195 +124,24 @@ public bool ShouldSerializeType() /// is1099able. /// Indicates whether the individual is a foreign partner, owner, or beneficiary.. /// The creation date of the form.. - /// The first name of the employee.. - /// The middle name of the employee.. - /// The last name of the employee.. - /// The name suffix of the employee.. - /// The marital status of the employee.. - /// Indicates whether the last name differs from prior records.. - /// The number of allowances claimed by the employee.. - /// The number of dependents other than allowances.. - /// The amount of non-job income.. - /// The amount of deductions claimed.. - /// The additional amount withheld.. - /// Indicates whether the employee is exempt from withholding.. - /// The office code associated with the form.. - /// The FATCA status for disregarded entities under Chapter 4.. - /// The residential address of the individual or entity.. - /// The city of residence.. - /// The state of residence.. - /// The postal code of the residence.. - /// The country of residence.. - /// The mailing address.. - /// The city of the mailing address.. - /// The state of the mailing address.. - /// The postal code of the mailing address.. - /// The country of the mailing address.. - /// The address for disregarded entities.. - /// The city for disregarded entities.. - /// The state for disregarded entities.. - /// The postal code for disregarded entities.. - /// The country for disregarded entities.. - /// The foreign taxpayer identification number (TIN).. - /// Indicates whether a foreign TIN is not required.. - /// A reference number for the form.. - /// The global intermediary identification number (GIIN).. - /// The Chapter 3 entity type.. - /// The Chapter 4 FATCA status.. - /// The disregarded entity information.. - /// The GIIN for disregarded entities.. - /// The benefit limitation for tax treaty claims.. - /// The sponsoring entity information for Part 4.. - /// The GIIN for the sponsoring entity in Part 4.. - /// The sponsoring entity information for Part 7.. - /// The IGA country information for Part 12.. - /// The IGA type information for Part 12.. - /// The FATCA status under IGA Annex II for Part 12.. - /// The trustee name for Part 12.. - /// Indicates whether the trustee is foreign for Part 12.. - /// The GIIN for Model 2 IGA in Part 12.. - /// The exchange information for Box 37A.. - /// The exchange information for Box 37B.. - /// The entity information for Box 37B.. - /// The sponsoring entity information for Part 28.. - /// The GIIN for the sponsoring entity in Part 28.. - /// The name of the signer of the form.. - /// Indicates whether the residence address is also the mailing address.. - /// The country of citizenship.. - /// makingTreatyClaim. - /// The country for which the treaty applies.. - /// The specific article of the treaty being claimed.. - /// The withholding rate applied as per the treaty.. - /// The type of income covered by the treaty.. - /// The reasons for claiming treaty benefits.. - /// certifyBox14A. - /// certifyBox14B. - /// certifyBox14C. - /// certifyBox171. - /// certifyBox172. - /// certifyBox18. - /// certifyBox19. - /// certifyBox21. - /// Indicates certification for box 22.. - /// certifyBox23. - /// Indicates certification for box 24A.. - /// Indicates certification for box 24B.. - /// Indicates certification for box 24C.. - /// certifyBox24D. - /// certifyBox25A. - /// certifyBox25B. - /// certifyBox25C. - /// Indicates certification for box 26.. - /// certifyBox27. - /// certifyBox28A. - /// certifyBox28B. - /// certifyBox29A. - /// certifyBox29B. - /// certifyBox29C. - /// certifyBox29D. - /// certifyBox29E. - /// certifyBox29F. - /// certifyBox30. - /// Indicates certification for box 31.. - /// Indicates certification for box 32.. - /// certifyBox33. - /// Indicates certification for box 34.. - /// Indicates certification for box 35.. - /// Indicates certification for box 36.. - /// Indicates certification for box 37A.. - /// Indicates certification for box 37B.. - /// Indicates certification for box 38.. - /// Indicates certification for box 39.. - /// certifyBox40A. - /// certifyBox40B. - /// certifyBox40C. - /// certifyBox41. - /// certifyBox43. - /// certifyPart29Signature. - /// part19FormationOrResolutionDate. - /// part20FilingDate. - /// part21DeterminationDate. - /// substantialUsOwners. - /// The birthday of the individual associated with the form.. - /// Indicates whether a foreign TIN is not required.. - /// Indicates whether the form is archived.. + /// id. + /// entryStatus. + /// The last updated date of the form.. /// A reference identifier for the form.. /// The ID of the associated company.. /// The display name associated with the form.. /// The email address of the individual associated with the form.. - /// The capacity in which the signer is signing the form.. - /// The last updated date of the form.. - /// The employer identification number (EIN).. - /// The type of employer identification number (EIN).. - /// Indicates certification for box 14.. - /// Indicates certification for box 15A.. - /// Indicates certification for box 15B.. - /// Indicates certification for box 15C.. - /// Indicates certification for box 15D.. - /// Indicates certification for box 15E.. - /// Indicates certification for box 15F.. - /// Indicates certification for box 15G.. - /// Indicates certification for box 15H.. - /// Indicates certification for box 15I.. - /// Indicates certification for box 16A.. - /// Indicates certification for box 16B as a QDD corporate entity.. - /// Indicates certification for box 16B as a QDD partnership.. - /// Indicates certification for box 16B as a QDD disregarded entity.. - /// Indicates certification for box 17A.. - /// Indicates certification for box 17B.. - /// Indicates certification for box 17C.. - /// Indicates certification for box 17D.. - /// Indicates certification for box 17E.. - /// Indicates certification for box 18A.. - /// Indicates certification for box 18B.. - /// Indicates certification for box 18C.. - /// Indicates certification for box 18D.. - /// Indicates certification for box 18E.. - /// Indicates certification for box 18F.. - /// Indicates certification for box 19A.. - /// Indicates certification for box 19B.. - /// Indicates certification for box 19C.. - /// Indicates certification for box 19D.. - /// Indicates certification for box 19E.. - /// Indicates certification for box 19F.. - /// Indicates certification for box 20.. - /// Indicates certification for box 21A.. - /// Indicates certification for box 21B.. - /// Indicates certification for box 21C.. - /// Indicates certification for box 21D.. - /// Indicates certification for box 21E.. - /// Indicates certification for box 21F.. - /// The name of the sponsoring entity for box 23A.. - /// Indicates certification for box 23B.. - /// Indicates certification for box 23C.. - /// Indicates certification for box 25.. - /// The name of the sponsoring entity for box 27A.. - /// Indicates certification for box 27B.. - /// Indicates certification for box 28.. - /// Indicates certification for box 29.. - /// Indicates certification for box 30A.. - /// Indicates certification for box 30B.. - /// Indicates certification for box 30C.. - /// The IGA country information for box 32.. - /// The IGA type information for box 32.. - /// The IGA treatment information for box 32.. - /// The trustee or sponsor information for box 32.. - /// Indicates whether the trustee is foreign for box 32.. - /// Indicates certification for box 33A.. - /// Indicates certification for box 33B.. - /// Indicates certification for box 33C.. - /// Indicates certification for box 33D.. - /// Indicates certification for box 33E.. - /// Indicates certification for box 33F.. - /// The securities market information for box 37A.. - /// The name of the entity for box 37B.. - /// The securities market information for box 37B.. - /// Indicates certification for box 40.. - /// The sponsoring entity information for box 41.. - /// Indicates certification for box 42.. - /// box35FormedOnDate. - /// box36FiledOnDate. - public W9FormDataModel(string tinMatchStatus = default(string), string signature = default(string), DateTime? signedDate = default(DateTime?), string name = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string typeOfTin = default(string), string tin = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), DateTime? eDeliveryConsentedAt = default(DateTime?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?), DateTime? createdAt = default(DateTime?), string employeeFirstName = default(string), string employeeMiddleName = default(string), string employeeLastName = default(string), string employeeNameSuffix = default(string), string box3MaritalStatus = default(string), bool? box4LastNameDiffers = default(bool?), int? box5NumAllowances = default(int?), int? otherDependents = default(int?), double? nonJobIncome = default(double?), double? deductions = default(double?), double? box6AdditionalWithheld = default(double?), bool? box7ExemptFromWithholding = default(bool?), string officeCode = default(string), string disregardedEntityChapter4FatcaStatus = default(string), string residenceAddress = default(string), string residenceCity = default(string), string residenceState = default(string), string residencePostalCode = default(string), string residenceCountry = default(string), string mailingAddress = default(string), string mailingCity = default(string), string mailingState = default(string), string mailingPostalCode = default(string), string mailingCountry = default(string), string disregardedAddress = default(string), string disregardedCity = default(string), string disregardedState = default(string), string disregardedPostalCode = default(string), string disregardedCountry = default(string), string foreignTin = default(string), bool? ftinNotRequired = default(bool?), string referenceNumber = default(string), string giin = default(string), string chapter3EntityType = default(string), string chapter4FatcaStatus = default(string), string disregardedEntity = default(string), string disregardedEntityGiin = default(string), string benefitLimitation = default(string), string part4SponsoringEntity = default(string), string part4SponsoringEntityGiin = default(string), string part7SponsoringEntity = default(string), string part12IgaCountry = default(string), string part12IgaType = default(string), string part12FatcaStatusUnderIgaAnnexIi = default(string), string part12TrusteeName = default(string), bool? part12TrusteeIsForeign = default(bool?), string part12Model2IgaGiin = default(string), string box37AExchange = default(string), string box37BExchange = default(string), string box37BEntity = default(string), string part28SponsoringEntity = default(string), string part28SponsoringEntityGiin = default(string), string signerName = default(string), bool residenceIsMailing = default(bool), string citizenshipCountry = default(string), bool? makingTreatyClaim = default(bool?), string treatyCountry = default(string), string treatyArticle = default(string), string withholdingRate = default(string), string incomeType = default(string), string treatyReasons = default(string), bool certifyBox14A = default(bool), bool certifyBox14B = default(bool), bool certifyBox14C = default(bool), bool certifyBox171 = default(bool), bool certifyBox172 = default(bool), bool certifyBox18 = default(bool), bool certifyBox19 = default(bool), bool certifyBox21 = default(bool), bool certifyBox22 = default(bool), bool certifyBox23 = default(bool), bool certifyBox24A = default(bool), bool certifyBox24B = default(bool), bool certifyBox24C = default(bool), bool certifyBox24D = default(bool), bool certifyBox25A = default(bool), bool certifyBox25B = default(bool), bool certifyBox25C = default(bool), bool certifyBox26 = default(bool), bool certifyBox27 = default(bool), bool certifyBox28A = default(bool), bool certifyBox28B = default(bool), bool certifyBox29A = default(bool), bool certifyBox29B = default(bool), bool certifyBox29C = default(bool), bool certifyBox29D = default(bool), bool certifyBox29E = default(bool), bool certifyBox29F = default(bool), bool certifyBox30 = default(bool), bool certifyBox31 = default(bool), bool certifyBox32 = default(bool), bool certifyBox33 = default(bool), bool certifyBox34 = default(bool), bool certifyBox35 = default(bool), bool certifyBox36 = default(bool), bool certifyBox37A = default(bool), bool certifyBox37B = default(bool), bool certifyBox38 = default(bool), bool certifyBox39 = default(bool), bool certifyBox40A = default(bool), bool certifyBox40B = default(bool), bool certifyBox40C = default(bool), bool certifyBox41 = default(bool), bool certifyBox43 = default(bool), bool certifyPart29Signature = default(bool), DateTime? part19FormationOrResolutionDate = default(DateTime?), DateTime? part20FilingDate = default(DateTime?), DateTime? part21DeterminationDate = default(DateTime?), List substantialUsOwners = default(List), string birthday = default(string), bool? foreignTinNotRequired = default(bool?), bool? archived = default(bool?), string referenceId = default(string), int? companyId = default(int?), string displayName = default(string), string email = default(string), string signerCapacity = default(string), DateTime? updatedAt = default(DateTime?), string ein = default(string), string einType = default(string), bool certifyBox14 = default(bool), bool certifyBox15A = default(bool), bool certifyBox15B = default(bool), bool certifyBox15C = default(bool), bool certifyBox15D = default(bool), bool certifyBox15E = default(bool), bool certifyBox15F = default(bool), bool certifyBox15G = default(bool), bool certifyBox15H = default(bool), bool certifyBox15I = default(bool), bool certifyBox16A = default(bool), bool box16BQddCorporate = default(bool), bool box16BQddPartnership = default(bool), bool box16BQddDisregardedEntity = default(bool), bool certifyBox17A = default(bool), bool certifyBox17B = default(bool), bool certifyBox17C = default(bool), bool certifyBox17D = default(bool), bool certifyBox17E = default(bool), bool certifyBox18A = default(bool), bool certifyBox18B = default(bool), bool certifyBox18C = default(bool), bool certifyBox18D = default(bool), bool certifyBox18E = default(bool), bool certifyBox18F = default(bool), bool certifyBox19A = default(bool), bool certifyBox19B = default(bool), bool certifyBox19C = default(bool), bool certifyBox19D = default(bool), bool certifyBox19E = default(bool), bool certifyBox19F = default(bool), bool certifyBox20 = default(bool), bool certifyBox21A = default(bool), bool certifyBox21B = default(bool), bool certifyBox21C = default(bool), bool certifyBox21D = default(bool), bool certifyBox21E = default(bool), bool certifyBox21F = default(bool), string box23ANameSponsoringEntity = default(string), bool certifyBox23B = default(bool), bool certifyBox23C = default(bool), bool certifyBox25 = default(bool), string box27ANameSponsoringEntity = default(string), bool certifyBox27B = default(bool), bool certifyBox28 = default(bool), bool certifyBox29 = default(bool), bool certifyBox30A = default(bool), bool certifyBox30B = default(bool), bool certifyBox30C = default(bool), string box32IgaCountry = default(string), string box32IgaType = default(string), string box32IgaTreatedAs = default(string), string box32TrusteeOrSponsor = default(string), bool box32TrusteeIsForeign = default(bool), bool certifyBox33A = default(bool), bool certifyBox33B = default(bool), bool certifyBox33C = default(bool), bool certifyBox33D = default(bool), bool certifyBox33E = default(bool), bool certifyBox33F = default(bool), string box37ASecuritiesMarket = default(string), string box37BNameOfEntity = default(string), string box37BSecuritiesMarket = default(string), bool certifyBox40 = default(bool), string box41SponsoringEntity = default(string), bool certifyBox42 = default(bool), DateTime? box35FormedOnDate = default(DateTime?), DateTime? box36FiledOnDate = default(DateTime?)) + /// Indicates whether the form is archived.. + /// entryStatusDate. + /// pdfJson. + /// pdfVersion. + /// requestToken. + /// mobile. + /// appVersion. + /// platform. + /// osVersion. + /// ancestorId. + public W9FormDataModel(string tinMatchStatus = default(string), string signature = default(string), DateTime? signedDate = default(DateTime?), string name = default(string), string businessClassification = default(string), string businessName = default(string), string businessOther = default(string), string exemptPayeeCode = default(string), string exemptFatcaCode = default(string), string typeOfTin = default(string), string tin = default(string), string address = default(string), string city = default(string), string state = default(string), string zip = default(string), string accountNumber = default(string), bool? foreignCountryIndicator = default(bool?), string foreignAddress = default(string), bool? backupWithholding = default(bool?), DateTime? eDeliveryConsentedAt = default(DateTime?), bool? is1099able = default(bool?), bool? foreignPartnerOwnerOrBeneficiary = default(bool?), DateTime? createdAt = default(DateTime?), string id = default(string), string entryStatus = default(string), DateTime? updatedAt = default(DateTime?), string referenceId = default(string), string companyId = default(string), string displayName = default(string), string email = default(string), bool? archived = default(bool?), DateTime? entryStatusDate = default(DateTime?), string pdfJson = default(string), string pdfVersion = default(string), string requestToken = default(string), bool? mobile = default(bool?), string appVersion = default(string), string platform = default(string), string osVersion = default(string), string ancestorId = default(string)) { this.TinMatchStatus = tinMatchStatus; this.Signature = signature; @@ -337,194 +166,23 @@ public bool ShouldSerializeType() this.Is1099able = is1099able; this.ForeignPartnerOwnerOrBeneficiary = foreignPartnerOwnerOrBeneficiary; this.CreatedAt = createdAt; - this.EmployeeFirstName = employeeFirstName; - this.EmployeeMiddleName = employeeMiddleName; - this.EmployeeLastName = employeeLastName; - this.EmployeeNameSuffix = employeeNameSuffix; - this.Box3MaritalStatus = box3MaritalStatus; - this.Box4LastNameDiffers = box4LastNameDiffers; - this.Box5NumAllowances = box5NumAllowances; - this.OtherDependents = otherDependents; - this.NonJobIncome = nonJobIncome; - this.Deductions = deductions; - this.Box6AdditionalWithheld = box6AdditionalWithheld; - this.Box7ExemptFromWithholding = box7ExemptFromWithholding; - this.OfficeCode = officeCode; - this.DisregardedEntityChapter4FatcaStatus = disregardedEntityChapter4FatcaStatus; - this.ResidenceAddress = residenceAddress; - this.ResidenceCity = residenceCity; - this.ResidenceState = residenceState; - this.ResidencePostalCode = residencePostalCode; - this.ResidenceCountry = residenceCountry; - this.MailingAddress = mailingAddress; - this.MailingCity = mailingCity; - this.MailingState = mailingState; - this.MailingPostalCode = mailingPostalCode; - this.MailingCountry = mailingCountry; - this.DisregardedAddress = disregardedAddress; - this.DisregardedCity = disregardedCity; - this.DisregardedState = disregardedState; - this.DisregardedPostalCode = disregardedPostalCode; - this.DisregardedCountry = disregardedCountry; - this.ForeignTin = foreignTin; - this.FtinNotRequired = ftinNotRequired; - this.ReferenceNumber = referenceNumber; - this.Giin = giin; - this.Chapter3EntityType = chapter3EntityType; - this.Chapter4FatcaStatus = chapter4FatcaStatus; - this.DisregardedEntity = disregardedEntity; - this.DisregardedEntityGiin = disregardedEntityGiin; - this.BenefitLimitation = benefitLimitation; - this.Part4SponsoringEntity = part4SponsoringEntity; - this.Part4SponsoringEntityGiin = part4SponsoringEntityGiin; - this.Part7SponsoringEntity = part7SponsoringEntity; - this.Part12IgaCountry = part12IgaCountry; - this.Part12IgaType = part12IgaType; - this.Part12FatcaStatusUnderIgaAnnexIi = part12FatcaStatusUnderIgaAnnexIi; - this.Part12TrusteeName = part12TrusteeName; - this.Part12TrusteeIsForeign = part12TrusteeIsForeign; - this.Part12Model2IgaGiin = part12Model2IgaGiin; - this.Box37AExchange = box37AExchange; - this.Box37BExchange = box37BExchange; - this.Box37BEntity = box37BEntity; - this.Part28SponsoringEntity = part28SponsoringEntity; - this.Part28SponsoringEntityGiin = part28SponsoringEntityGiin; - this.SignerName = signerName; - this.ResidenceIsMailing = residenceIsMailing; - this.CitizenshipCountry = citizenshipCountry; - this.MakingTreatyClaim = makingTreatyClaim; - this.TreatyCountry = treatyCountry; - this.TreatyArticle = treatyArticle; - this.WithholdingRate = withholdingRate; - this.IncomeType = incomeType; - this.TreatyReasons = treatyReasons; - this.CertifyBox14A = certifyBox14A; - this.CertifyBox14B = certifyBox14B; - this.CertifyBox14C = certifyBox14C; - this.CertifyBox171 = certifyBox171; - this.CertifyBox172 = certifyBox172; - this.CertifyBox18 = certifyBox18; - this.CertifyBox19 = certifyBox19; - this.CertifyBox21 = certifyBox21; - this.CertifyBox22 = certifyBox22; - this.CertifyBox23 = certifyBox23; - this.CertifyBox24A = certifyBox24A; - this.CertifyBox24B = certifyBox24B; - this.CertifyBox24C = certifyBox24C; - this.CertifyBox24D = certifyBox24D; - this.CertifyBox25A = certifyBox25A; - this.CertifyBox25B = certifyBox25B; - this.CertifyBox25C = certifyBox25C; - this.CertifyBox26 = certifyBox26; - this.CertifyBox27 = certifyBox27; - this.CertifyBox28A = certifyBox28A; - this.CertifyBox28B = certifyBox28B; - this.CertifyBox29A = certifyBox29A; - this.CertifyBox29B = certifyBox29B; - this.CertifyBox29C = certifyBox29C; - this.CertifyBox29D = certifyBox29D; - this.CertifyBox29E = certifyBox29E; - this.CertifyBox29F = certifyBox29F; - this.CertifyBox30 = certifyBox30; - this.CertifyBox31 = certifyBox31; - this.CertifyBox32 = certifyBox32; - this.CertifyBox33 = certifyBox33; - this.CertifyBox34 = certifyBox34; - this.CertifyBox35 = certifyBox35; - this.CertifyBox36 = certifyBox36; - this.CertifyBox37A = certifyBox37A; - this.CertifyBox37B = certifyBox37B; - this.CertifyBox38 = certifyBox38; - this.CertifyBox39 = certifyBox39; - this.CertifyBox40A = certifyBox40A; - this.CertifyBox40B = certifyBox40B; - this.CertifyBox40C = certifyBox40C; - this.CertifyBox41 = certifyBox41; - this.CertifyBox43 = certifyBox43; - this.CertifyPart29Signature = certifyPart29Signature; - this.Part19FormationOrResolutionDate = part19FormationOrResolutionDate; - this.Part20FilingDate = part20FilingDate; - this.Part21DeterminationDate = part21DeterminationDate; - this.SubstantialUsOwners = substantialUsOwners; - this.Birthday = birthday; - this.ForeignTinNotRequired = foreignTinNotRequired; - this.Archived = archived; + this.Id = id; + this.EntryStatus = entryStatus; + this.UpdatedAt = updatedAt; this.ReferenceId = referenceId; this.CompanyId = companyId; this.DisplayName = displayName; this.Email = email; - this.SignerCapacity = signerCapacity; - this.UpdatedAt = updatedAt; - this.Ein = ein; - this.EinType = einType; - this.CertifyBox14 = certifyBox14; - this.CertifyBox15A = certifyBox15A; - this.CertifyBox15B = certifyBox15B; - this.CertifyBox15C = certifyBox15C; - this.CertifyBox15D = certifyBox15D; - this.CertifyBox15E = certifyBox15E; - this.CertifyBox15F = certifyBox15F; - this.CertifyBox15G = certifyBox15G; - this.CertifyBox15H = certifyBox15H; - this.CertifyBox15I = certifyBox15I; - this.CertifyBox16A = certifyBox16A; - this.Box16BQddCorporate = box16BQddCorporate; - this.Box16BQddPartnership = box16BQddPartnership; - this.Box16BQddDisregardedEntity = box16BQddDisregardedEntity; - this.CertifyBox17A = certifyBox17A; - this.CertifyBox17B = certifyBox17B; - this.CertifyBox17C = certifyBox17C; - this.CertifyBox17D = certifyBox17D; - this.CertifyBox17E = certifyBox17E; - this.CertifyBox18A = certifyBox18A; - this.CertifyBox18B = certifyBox18B; - this.CertifyBox18C = certifyBox18C; - this.CertifyBox18D = certifyBox18D; - this.CertifyBox18E = certifyBox18E; - this.CertifyBox18F = certifyBox18F; - this.CertifyBox19A = certifyBox19A; - this.CertifyBox19B = certifyBox19B; - this.CertifyBox19C = certifyBox19C; - this.CertifyBox19D = certifyBox19D; - this.CertifyBox19E = certifyBox19E; - this.CertifyBox19F = certifyBox19F; - this.CertifyBox20 = certifyBox20; - this.CertifyBox21A = certifyBox21A; - this.CertifyBox21B = certifyBox21B; - this.CertifyBox21C = certifyBox21C; - this.CertifyBox21D = certifyBox21D; - this.CertifyBox21E = certifyBox21E; - this.CertifyBox21F = certifyBox21F; - this.Box23ANameSponsoringEntity = box23ANameSponsoringEntity; - this.CertifyBox23B = certifyBox23B; - this.CertifyBox23C = certifyBox23C; - this.CertifyBox25 = certifyBox25; - this.Box27ANameSponsoringEntity = box27ANameSponsoringEntity; - this.CertifyBox27B = certifyBox27B; - this.CertifyBox28 = certifyBox28; - this.CertifyBox29 = certifyBox29; - this.CertifyBox30A = certifyBox30A; - this.CertifyBox30B = certifyBox30B; - this.CertifyBox30C = certifyBox30C; - this.Box32IgaCountry = box32IgaCountry; - this.Box32IgaType = box32IgaType; - this.Box32IgaTreatedAs = box32IgaTreatedAs; - this.Box32TrusteeOrSponsor = box32TrusteeOrSponsor; - this.Box32TrusteeIsForeign = box32TrusteeIsForeign; - this.CertifyBox33A = certifyBox33A; - this.CertifyBox33B = certifyBox33B; - this.CertifyBox33C = certifyBox33C; - this.CertifyBox33D = certifyBox33D; - this.CertifyBox33E = certifyBox33E; - this.CertifyBox33F = certifyBox33F; - this.Box37ASecuritiesMarket = box37ASecuritiesMarket; - this.Box37BNameOfEntity = box37BNameOfEntity; - this.Box37BSecuritiesMarket = box37BSecuritiesMarket; - this.CertifyBox40 = certifyBox40; - this.Box41SponsoringEntity = box41SponsoringEntity; - this.CertifyBox42 = certifyBox42; - this.Box35FormedOnDate = box35FormedOnDate; - this.Box36FiledOnDate = box36FiledOnDate; + this.Archived = archived; + this.EntryStatusDate = entryStatusDate; + this.PdfJson = pdfJson; + this.PdfVersion = pdfVersion; + this.RequestToken = requestToken; + this.Mobile = mobile; + this.AppVersion = appVersion; + this.Platform = platform; + this.OsVersion = osVersion; + this.AncestorId = ancestorId; } /// @@ -702,1446 +360,115 @@ public bool ShouldSerializeType() public DateTime? CreatedAt { get; set; } /// - /// The first name of the employee. - /// - /// The first name of the employee. - /// Jane - [DataMember(Name = "employeeFirstName", EmitDefaultValue = true)] - public string EmployeeFirstName { get; set; } - - /// - /// The middle name of the employee. - /// - /// The middle name of the employee. - /// A. - [DataMember(Name = "employeeMiddleName", EmitDefaultValue = true)] - public string EmployeeMiddleName { get; set; } - - /// - /// The last name of the employee. - /// - /// The last name of the employee. - /// Smith - [DataMember(Name = "employeeLastName", EmitDefaultValue = true)] - public string EmployeeLastName { get; set; } - - /// - /// The name suffix of the employee. - /// - /// The name suffix of the employee. - /// Jr. - [DataMember(Name = "employeeNameSuffix", EmitDefaultValue = true)] - public string EmployeeNameSuffix { get; set; } - - /// - /// The marital status of the employee. - /// - /// The marital status of the employee. - /// Married - [DataMember(Name = "box3MaritalStatus", EmitDefaultValue = true)] - public string Box3MaritalStatus { get; set; } - - /// - /// Indicates whether the last name differs from prior records. - /// - /// Indicates whether the last name differs from prior records. - /// false - [DataMember(Name = "box4LastNameDiffers", EmitDefaultValue = true)] - public bool? Box4LastNameDiffers { get; set; } - - /// - /// The number of allowances claimed by the employee. - /// - /// The number of allowances claimed by the employee. - /// 3 - [DataMember(Name = "box5NumAllowances", EmitDefaultValue = true)] - public int? Box5NumAllowances { get; set; } - - /// - /// The number of dependents other than allowances. - /// - /// The number of dependents other than allowances. - /// 1 - [DataMember(Name = "otherDependents", EmitDefaultValue = true)] - public int? OtherDependents { get; set; } - - /// - /// The amount of non-job income. - /// - /// The amount of non-job income. - /// 5000.0 - [DataMember(Name = "nonJobIncome", EmitDefaultValue = true)] - public double? NonJobIncome { get; set; } - - /// - /// The amount of deductions claimed. - /// - /// The amount of deductions claimed. - /// 2000.0 - [DataMember(Name = "deductions", EmitDefaultValue = true)] - public double? Deductions { get; set; } - - /// - /// The additional amount withheld. - /// - /// The additional amount withheld. - /// 150.0 - [DataMember(Name = "box6AdditionalWithheld", EmitDefaultValue = true)] - public double? Box6AdditionalWithheld { get; set; } - - /// - /// Indicates whether the employee is exempt from withholding. - /// - /// Indicates whether the employee is exempt from withholding. - /// false - [DataMember(Name = "box7ExemptFromWithholding", EmitDefaultValue = true)] - public bool? Box7ExemptFromWithholding { get; set; } - - /// - /// The office code associated with the form. - /// - /// The office code associated with the form. - /// OC12345 - [DataMember(Name = "officeCode", EmitDefaultValue = true)] - public string OfficeCode { get; set; } - - /// - /// The FATCA status for disregarded entities under Chapter 4. - /// - /// The FATCA status for disregarded entities under Chapter 4. - [DataMember(Name = "disregardedEntityChapter4FatcaStatus", EmitDefaultValue = true)] - public string DisregardedEntityChapter4FatcaStatus { get; set; } - - /// - /// The residential address of the individual or entity. - /// - /// The residential address of the individual or entity. - /// 321 Wealth Ave - [DataMember(Name = "residenceAddress", EmitDefaultValue = true)] - public string ResidenceAddress { get; set; } - - /// - /// The city of residence. - /// - /// The city of residence. - /// Finance City - [DataMember(Name = "residenceCity", EmitDefaultValue = true)] - public string ResidenceCity { get; set; } - - /// - /// The state of residence. - /// - /// The state of residence. - /// TX - [DataMember(Name = "residenceState", EmitDefaultValue = true)] - public string ResidenceState { get; set; } - - /// - /// The postal code of the residence. - /// - /// The postal code of the residence. - /// 75001 - [DataMember(Name = "residencePostalCode", EmitDefaultValue = true)] - public string ResidencePostalCode { get; set; } - - /// - /// The country of residence. - /// - /// The country of residence. - /// USA - [DataMember(Name = "residenceCountry", EmitDefaultValue = true)] - public string ResidenceCountry { get; set; } - - /// - /// The mailing address. - /// - /// The mailing address. - /// P.O. Box 789 - [DataMember(Name = "mailingAddress", EmitDefaultValue = true)] - public string MailingAddress { get; set; } - - /// - /// The city of the mailing address. - /// - /// The city of the mailing address. - /// Finance City - [DataMember(Name = "mailingCity", EmitDefaultValue = true)] - public string MailingCity { get; set; } - - /// - /// The state of the mailing address. - /// - /// The state of the mailing address. - /// TX - [DataMember(Name = "mailingState", EmitDefaultValue = true)] - public string MailingState { get; set; } - - /// - /// The postal code of the mailing address. - /// - /// The postal code of the mailing address. - /// 75002 - [DataMember(Name = "mailingPostalCode", EmitDefaultValue = true)] - public string MailingPostalCode { get; set; } - - /// - /// The country of the mailing address. - /// - /// The country of the mailing address. - /// USA - [DataMember(Name = "mailingCountry", EmitDefaultValue = true)] - public string MailingCountry { get; set; } - - /// - /// The address for disregarded entities. - /// - /// The address for disregarded entities. - [DataMember(Name = "disregardedAddress", EmitDefaultValue = true)] - public string DisregardedAddress { get; set; } - - /// - /// The city for disregarded entities. - /// - /// The city for disregarded entities. - [DataMember(Name = "disregardedCity", EmitDefaultValue = true)] - public string DisregardedCity { get; set; } - - /// - /// The state for disregarded entities. - /// - /// The state for disregarded entities. - [DataMember(Name = "disregardedState", EmitDefaultValue = true)] - public string DisregardedState { get; set; } - - /// - /// The postal code for disregarded entities. - /// - /// The postal code for disregarded entities. - [DataMember(Name = "disregardedPostalCode", EmitDefaultValue = true)] - public string DisregardedPostalCode { get; set; } - - /// - /// The country for disregarded entities. - /// - /// The country for disregarded entities. - [DataMember(Name = "disregardedCountry", EmitDefaultValue = true)] - public string DisregardedCountry { get; set; } - - /// - /// The foreign taxpayer identification number (TIN). - /// - /// The foreign taxpayer identification number (TIN). - [DataMember(Name = "foreignTin", EmitDefaultValue = true)] - public string ForeignTin { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "ftinNotRequired", EmitDefaultValue = true)] - public bool? FtinNotRequired { get; set; } - - /// - /// A reference number for the form. - /// - /// A reference number for the form. - /// W8IMY56789 - [DataMember(Name = "referenceNumber", EmitDefaultValue = true)] - public string ReferenceNumber { get; set; } - - /// - /// The global intermediary identification number (GIIN). - /// - /// The global intermediary identification number (GIIN). - [DataMember(Name = "giin", EmitDefaultValue = true)] - public string Giin { get; set; } - - /// - /// The Chapter 3 entity type. - /// - /// The Chapter 3 entity type. - /// Partnership - [DataMember(Name = "chapter3EntityType", EmitDefaultValue = true)] - public string Chapter3EntityType { get; set; } - - /// - /// The Chapter 4 FATCA status. - /// - /// The Chapter 4 FATCA status. - /// Compliant - [DataMember(Name = "chapter4FatcaStatus", EmitDefaultValue = true)] - public string Chapter4FatcaStatus { get; set; } - - /// - /// The disregarded entity information. - /// - /// The disregarded entity information. - /// Subsidiary Finance - [DataMember(Name = "disregardedEntity", EmitDefaultValue = true)] - public string DisregardedEntity { get; set; } - - /// - /// The GIIN for disregarded entities. - /// - /// The GIIN for disregarded entities. - /// GIIN78901234 - [DataMember(Name = "disregardedEntityGiin", EmitDefaultValue = true)] - public string DisregardedEntityGiin { get; set; } - - /// - /// The benefit limitation for tax treaty claims. - /// - /// The benefit limitation for tax treaty claims. - /// Treaty Benefit - [DataMember(Name = "benefitLimitation", EmitDefaultValue = true)] - public string BenefitLimitation { get; set; } - - /// - /// The sponsoring entity information for Part 4. - /// - /// The sponsoring entity information for Part 4. - /// Parent Company - [DataMember(Name = "part4SponsoringEntity", EmitDefaultValue = true)] - public string Part4SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 4. - /// - /// The GIIN for the sponsoring entity in Part 4. - /// GIIN11223344 - [DataMember(Name = "part4SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part4SponsoringEntityGiin { get; set; } - - /// - /// The sponsoring entity information for Part 7. - /// - /// The sponsoring entity information for Part 7. - /// Affiliated Organization - [DataMember(Name = "part7SponsoringEntity", EmitDefaultValue = true)] - public string Part7SponsoringEntity { get; set; } - - /// - /// The IGA country information for Part 12. - /// - /// The IGA country information for Part 12. - /// USA - [DataMember(Name = "part12IgaCountry", EmitDefaultValue = true)] - public string Part12IgaCountry { get; set; } - - /// - /// The IGA type information for Part 12. - /// - /// The IGA type information for Part 12. - /// Model 1 - [DataMember(Name = "part12IgaType", EmitDefaultValue = true)] - public string Part12IgaType { get; set; } - - /// - /// The FATCA status under IGA Annex II for Part 12. - /// - /// The FATCA status under IGA Annex II for Part 12. - /// Registered Deemed Compliant - [DataMember(Name = "part12FatcaStatusUnderIgaAnnexIi", EmitDefaultValue = true)] - public string Part12FatcaStatusUnderIgaAnnexIi { get; set; } - - /// - /// The trustee name for Part 12. - /// - /// The trustee name for Part 12. - /// Trustee Inc. - [DataMember(Name = "part12TrusteeName", EmitDefaultValue = true)] - public string Part12TrusteeName { get; set; } - - /// - /// Indicates whether the trustee is foreign for Part 12. - /// - /// Indicates whether the trustee is foreign for Part 12. - /// false - [DataMember(Name = "part12TrusteeIsForeign", EmitDefaultValue = true)] - public bool? Part12TrusteeIsForeign { get; set; } - - /// - /// The GIIN for Model 2 IGA in Part 12. - /// - /// The GIIN for Model 2 IGA in Part 12. - /// GIIN33445566 - [DataMember(Name = "part12Model2IgaGiin", EmitDefaultValue = true)] - public string Part12Model2IgaGiin { get; set; } - - /// - /// The exchange information for Box 37A. - /// - /// The exchange information for Box 37A. - /// NYSE - [DataMember(Name = "box37AExchange", EmitDefaultValue = true)] - public string Box37AExchange { get; set; } - - /// - /// The exchange information for Box 37B. - /// - /// The exchange information for Box 37B. - /// NASDAQ - [DataMember(Name = "box37BExchange", EmitDefaultValue = true)] - public string Box37BExchange { get; set; } - - /// - /// The entity information for Box 37B. - /// - /// The entity information for Box 37B. - /// Trading Partner - [DataMember(Name = "box37BEntity", EmitDefaultValue = true)] - public string Box37BEntity { get; set; } - - /// - /// The sponsoring entity information for Part 28. - /// - /// The sponsoring entity information for Part 28. - /// Global Trust - [DataMember(Name = "part28SponsoringEntity", EmitDefaultValue = true)] - public string Part28SponsoringEntity { get; set; } - - /// - /// The GIIN for the sponsoring entity in Part 28. - /// - /// The GIIN for the sponsoring entity in Part 28. - /// GIIN99887766 - [DataMember(Name = "part28SponsoringEntityGiin", EmitDefaultValue = true)] - public string Part28SponsoringEntityGiin { get; set; } - - /// - /// The name of the signer of the form. - /// - /// The name of the signer of the form. - /// Richard Roe - [DataMember(Name = "signerName", EmitDefaultValue = true)] - public string SignerName { get; set; } - - /// - /// Indicates whether the residence address is also the mailing address. - /// - /// Indicates whether the residence address is also the mailing address. - /// false - [DataMember(Name = "residenceIsMailing", EmitDefaultValue = true)] - public bool ResidenceIsMailing { get; set; } - - /// - /// The country of citizenship. - /// - /// The country of citizenship. - /// USA - [DataMember(Name = "citizenshipCountry", EmitDefaultValue = true)] - public string CitizenshipCountry { get; set; } - - /// - /// Gets or Sets MakingTreatyClaim - /// - /// false - [DataMember(Name = "makingTreatyClaim", EmitDefaultValue = true)] - public bool? MakingTreatyClaim { get; set; } - - /// - /// The country for which the treaty applies. - /// - /// The country for which the treaty applies. - /// Canada - [DataMember(Name = "treatyCountry", EmitDefaultValue = true)] - public string TreatyCountry { get; set; } - - /// - /// The specific article of the treaty being claimed. - /// - /// The specific article of the treaty being claimed. - /// Article 12 - [DataMember(Name = "treatyArticle", EmitDefaultValue = true)] - public string TreatyArticle { get; set; } - - /// - /// The withholding rate applied as per the treaty. - /// - /// The withholding rate applied as per the treaty. - /// 15% - [DataMember(Name = "withholdingRate", EmitDefaultValue = true)] - public string WithholdingRate { get; set; } - - /// - /// The type of income covered by the treaty. - /// - /// The type of income covered by the treaty. - /// Dividend - [DataMember(Name = "incomeType", EmitDefaultValue = true)] - public string IncomeType { get; set; } - - /// - /// The reasons for claiming treaty benefits. - /// - /// The reasons for claiming treaty benefits. - /// Reduced withholding - [DataMember(Name = "treatyReasons", EmitDefaultValue = true)] - public string TreatyReasons { get; set; } - - /// - /// Gets or Sets CertifyBox14A - /// - /// false - [DataMember(Name = "certifyBox14A", EmitDefaultValue = true)] - public bool CertifyBox14A { get; set; } - - /// - /// Gets or Sets CertifyBox14B - /// - /// false - [DataMember(Name = "certifyBox14B", EmitDefaultValue = true)] - public bool CertifyBox14B { get; set; } - - /// - /// Gets or Sets CertifyBox14C - /// - /// false - [DataMember(Name = "certifyBox14C", EmitDefaultValue = true)] - public bool CertifyBox14C { get; set; } - - /// - /// Gets or Sets CertifyBox171 + /// Gets or Sets Id /// - /// false - [DataMember(Name = "certifyBox17_1", EmitDefaultValue = true)] - public bool CertifyBox171 { get; set; } - - /// - /// Gets or Sets CertifyBox172 - /// - /// false - [DataMember(Name = "certifyBox17_2", EmitDefaultValue = true)] - public bool CertifyBox172 { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets CertifyBox18 + /// Gets or Sets EntryStatus /// - /// false - [DataMember(Name = "certifyBox18", EmitDefaultValue = true)] - public bool CertifyBox18 { get; set; } + [DataMember(Name = "entryStatus", EmitDefaultValue = true)] + public string EntryStatus { get; set; } /// - /// Gets or Sets CertifyBox19 + /// The last updated date of the form. /// - /// false - [DataMember(Name = "certifyBox19", EmitDefaultValue = true)] - public bool CertifyBox19 { get; set; } + /// The last updated date of the form. + [DataMember(Name = "updatedAt", EmitDefaultValue = true)] + public DateTime? UpdatedAt { get; set; } /// - /// Gets or Sets CertifyBox21 + /// A reference identifier for the form. /// - /// false - [DataMember(Name = "certifyBox21", EmitDefaultValue = true)] - public bool CertifyBox21 { get; set; } + /// A reference identifier for the form. + [DataMember(Name = "referenceId", EmitDefaultValue = true)] + public string ReferenceId { get; set; } /// - /// Indicates certification for box 22. + /// The ID of the associated company. /// - /// Indicates certification for box 22. - /// false - [DataMember(Name = "certifyBox22", EmitDefaultValue = true)] - public bool CertifyBox22 { get; set; } + /// The ID of the associated company. + [DataMember(Name = "companyId", EmitDefaultValue = true)] + public string CompanyId { get; set; } /// - /// Gets or Sets CertifyBox23 + /// The display name associated with the form. /// - /// false - [DataMember(Name = "certifyBox23", EmitDefaultValue = true)] - public bool CertifyBox23 { get; set; } + /// The display name associated with the form. + [DataMember(Name = "displayName", EmitDefaultValue = true)] + public string DisplayName { get; set; } /// - /// Indicates certification for box 24A. + /// The email address of the individual associated with the form. /// - /// Indicates certification for box 24A. - /// false - [DataMember(Name = "certifyBox24A", EmitDefaultValue = true)] - public bool CertifyBox24A { get; set; } + /// The email address of the individual associated with the form. + [DataMember(Name = "email", EmitDefaultValue = true)] + public string Email { get; set; } /// - /// Indicates certification for box 24B. + /// Indicates whether the form is archived. /// - /// Indicates certification for box 24B. - /// false - [DataMember(Name = "certifyBox24B", EmitDefaultValue = true)] - public bool CertifyBox24B { get; set; } + /// Indicates whether the form is archived. + [DataMember(Name = "archived", EmitDefaultValue = true)] + public bool? Archived { get; set; } /// - /// Indicates certification for box 24C. + /// Gets or Sets EntryStatusDate /// - /// Indicates certification for box 24C. - /// false - [DataMember(Name = "certifyBox24C", EmitDefaultValue = true)] - public bool CertifyBox24C { get; set; } + [DataMember(Name = "entryStatusDate", EmitDefaultValue = true)] + public DateTime? EntryStatusDate { get; set; } /// - /// Gets or Sets CertifyBox24D + /// Gets or Sets PdfJson /// - /// false - [DataMember(Name = "certifyBox24D", EmitDefaultValue = true)] - public bool CertifyBox24D { get; set; } + [DataMember(Name = "pdfJson", EmitDefaultValue = true)] + public string PdfJson { get; set; } /// - /// Gets or Sets CertifyBox25A + /// Gets or Sets PdfVersion /// - /// false - [DataMember(Name = "certifyBox25A", EmitDefaultValue = true)] - public bool CertifyBox25A { get; set; } + [DataMember(Name = "pdfVersion", EmitDefaultValue = true)] + public string PdfVersion { get; set; } /// - /// Gets or Sets CertifyBox25B + /// Gets or Sets RequestToken /// - /// false - [DataMember(Name = "certifyBox25B", EmitDefaultValue = true)] - public bool CertifyBox25B { get; set; } + [DataMember(Name = "requestToken", EmitDefaultValue = true)] + public string RequestToken { get; set; } /// - /// Gets or Sets CertifyBox25C + /// Gets or Sets Mobile /// - /// false - [DataMember(Name = "certifyBox25C", EmitDefaultValue = true)] - public bool CertifyBox25C { get; set; } + [DataMember(Name = "mobile", EmitDefaultValue = true)] + public bool? Mobile { get; set; } /// - /// Indicates certification for box 26. + /// Gets or Sets AppVersion /// - /// Indicates certification for box 26. - /// false - [DataMember(Name = "certifyBox26", EmitDefaultValue = true)] - public bool CertifyBox26 { get; set; } + [DataMember(Name = "appVersion", EmitDefaultValue = true)] + public string AppVersion { get; set; } /// - /// Gets or Sets CertifyBox27 + /// Gets or Sets Platform /// - /// false - [DataMember(Name = "certifyBox27", EmitDefaultValue = true)] - public bool CertifyBox27 { get; set; } + [DataMember(Name = "platform", EmitDefaultValue = true)] + public string Platform { get; set; } /// - /// Gets or Sets CertifyBox28A + /// Gets or Sets OsVersion /// - /// false - [DataMember(Name = "certifyBox28A", EmitDefaultValue = true)] - public bool CertifyBox28A { get; set; } + [DataMember(Name = "osVersion", EmitDefaultValue = true)] + public string OsVersion { get; set; } /// - /// Gets or Sets CertifyBox28B + /// Gets or Sets AncestorId /// - /// false - [DataMember(Name = "certifyBox28B", EmitDefaultValue = true)] - public bool CertifyBox28B { get; set; } + [DataMember(Name = "ancestorId", EmitDefaultValue = true)] + public string AncestorId { get; set; } /// - /// Gets or Sets CertifyBox29A - /// - /// false - [DataMember(Name = "certifyBox29A", EmitDefaultValue = true)] - public bool CertifyBox29A { get; set; } - - /// - /// Gets or Sets CertifyBox29B - /// - /// false - [DataMember(Name = "certifyBox29B", EmitDefaultValue = true)] - public bool CertifyBox29B { get; set; } - - /// - /// Gets or Sets CertifyBox29C - /// - /// false - [DataMember(Name = "certifyBox29C", EmitDefaultValue = true)] - public bool CertifyBox29C { get; set; } - - /// - /// Gets or Sets CertifyBox29D - /// - /// false - [DataMember(Name = "certifyBox29D", EmitDefaultValue = true)] - public bool CertifyBox29D { get; set; } - - /// - /// Gets or Sets CertifyBox29E - /// - /// false - [DataMember(Name = "certifyBox29E", EmitDefaultValue = true)] - public bool CertifyBox29E { get; set; } - - /// - /// Gets or Sets CertifyBox29F - /// - /// false - [DataMember(Name = "certifyBox29F", EmitDefaultValue = true)] - public bool CertifyBox29F { get; set; } - - /// - /// Gets or Sets CertifyBox30 - /// - /// false - [DataMember(Name = "certifyBox30", EmitDefaultValue = true)] - public bool CertifyBox30 { get; set; } - - /// - /// Indicates certification for box 31. - /// - /// Indicates certification for box 31. - /// false - [DataMember(Name = "certifyBox31", EmitDefaultValue = true)] - public bool CertifyBox31 { get; set; } - - /// - /// Indicates certification for box 32. - /// - /// Indicates certification for box 32. - /// false - [DataMember(Name = "certifyBox32", EmitDefaultValue = true)] - public bool CertifyBox32 { get; set; } - - /// - /// Gets or Sets CertifyBox33 - /// - /// false - [DataMember(Name = "certifyBox33", EmitDefaultValue = true)] - public bool CertifyBox33 { get; set; } - - /// - /// Indicates certification for box 34. - /// - /// Indicates certification for box 34. - /// false - [DataMember(Name = "certifyBox34", EmitDefaultValue = true)] - public bool CertifyBox34 { get; set; } - - /// - /// Indicates certification for box 35. - /// - /// Indicates certification for box 35. - /// false - [DataMember(Name = "certifyBox35", EmitDefaultValue = true)] - public bool CertifyBox35 { get; set; } - - /// - /// Indicates certification for box 36. - /// - /// Indicates certification for box 36. - /// false - [DataMember(Name = "certifyBox36", EmitDefaultValue = true)] - public bool CertifyBox36 { get; set; } - - /// - /// Indicates certification for box 37A. - /// - /// Indicates certification for box 37A. - /// false - [DataMember(Name = "certifyBox37A", EmitDefaultValue = true)] - public bool CertifyBox37A { get; set; } - - /// - /// Indicates certification for box 37B. - /// - /// Indicates certification for box 37B. - /// false - [DataMember(Name = "certifyBox37B", EmitDefaultValue = true)] - public bool CertifyBox37B { get; set; } - - /// - /// Indicates certification for box 38. - /// - /// Indicates certification for box 38. - /// false - [DataMember(Name = "certifyBox38", EmitDefaultValue = true)] - public bool CertifyBox38 { get; set; } - - /// - /// Indicates certification for box 39. - /// - /// Indicates certification for box 39. - /// false - [DataMember(Name = "certifyBox39", EmitDefaultValue = true)] - public bool CertifyBox39 { get; set; } - - /// - /// Gets or Sets CertifyBox40A - /// - /// false - [DataMember(Name = "certifyBox40A", EmitDefaultValue = true)] - public bool CertifyBox40A { get; set; } - - /// - /// Gets or Sets CertifyBox40B - /// - /// false - [DataMember(Name = "certifyBox40B", EmitDefaultValue = true)] - public bool CertifyBox40B { get; set; } - - /// - /// Gets or Sets CertifyBox40C - /// - /// false - [DataMember(Name = "certifyBox40C", EmitDefaultValue = true)] - public bool CertifyBox40C { get; set; } - - /// - /// Gets or Sets CertifyBox41 - /// - /// false - [DataMember(Name = "certifyBox41", EmitDefaultValue = true)] - public bool CertifyBox41 { get; set; } - - /// - /// Gets or Sets CertifyBox43 - /// - /// false - [DataMember(Name = "certifyBox43", EmitDefaultValue = true)] - public bool CertifyBox43 { get; set; } - - /// - /// Gets or Sets CertifyPart29Signature - /// - /// false - [DataMember(Name = "certifyPart29Signature", EmitDefaultValue = true)] - public bool CertifyPart29Signature { get; set; } - - /// - /// Gets or Sets Part19FormationOrResolutionDate - /// - [DataMember(Name = "part19FormationOrResolutionDate", EmitDefaultValue = true)] - public DateTime? Part19FormationOrResolutionDate { get; set; } - - /// - /// Gets or Sets Part20FilingDate - /// - [DataMember(Name = "part20FilingDate", EmitDefaultValue = true)] - public DateTime? Part20FilingDate { get; set; } - - /// - /// Gets or Sets Part21DeterminationDate - /// - [DataMember(Name = "part21DeterminationDate", EmitDefaultValue = true)] - public DateTime? Part21DeterminationDate { get; set; } - - /// - /// Gets or Sets SubstantialUsOwners - /// - /// [] - [DataMember(Name = "substantialUsOwners", EmitDefaultValue = false)] - public List SubstantialUsOwners { get; set; } - - /// - /// The birthday of the individual associated with the form. - /// - /// The birthday of the individual associated with the form. - [DataMember(Name = "birthday", EmitDefaultValue = true)] - public string Birthday { get; set; } - - /// - /// Indicates whether a foreign TIN is not required. - /// - /// Indicates whether a foreign TIN is not required. - [DataMember(Name = "foreignTinNotRequired", EmitDefaultValue = true)] - public bool? ForeignTinNotRequired { get; set; } - - /// - /// Indicates whether the form is archived. - /// - /// Indicates whether the form is archived. - /// false - [DataMember(Name = "archived", EmitDefaultValue = true)] - public bool? Archived { get; set; } - - /// - /// A reference identifier for the form. - /// - /// A reference identifier for the form. - /// REF67890 - [DataMember(Name = "referenceId", EmitDefaultValue = true)] - public string ReferenceId { get; set; } - - /// - /// The ID of the associated company. - /// - /// The ID of the associated company. - /// 4004 - [DataMember(Name = "companyId", EmitDefaultValue = true)] - public int? CompanyId { get; set; } - - /// - /// The display name associated with the form. - /// - /// The display name associated with the form. - /// Global Financials - [DataMember(Name = "displayName", EmitDefaultValue = true)] - public string DisplayName { get; set; } - - /// - /// The email address of the individual associated with the form. - /// - /// The email address of the individual associated with the form. - /// contact@globalfinancials.com - [DataMember(Name = "email", EmitDefaultValue = true)] - public string Email { get; set; } - - /// - /// The capacity in which the signer is signing the form. - /// - /// The capacity in which the signer is signing the form. - /// Authorized Representative - [DataMember(Name = "signerCapacity", EmitDefaultValue = true)] - public string SignerCapacity { get; set; } - - /// - /// The last updated date of the form. - /// - /// The last updated date of the form. - /// 2023-06-20T14:30Z - [DataMember(Name = "updatedAt", EmitDefaultValue = true)] - public DateTime? UpdatedAt { get; set; } - - /// - /// The employer identification number (EIN). - /// - /// The employer identification number (EIN). - [DataMember(Name = "ein", EmitDefaultValue = true)] - public string Ein { get; set; } - - /// - /// The type of employer identification number (EIN). - /// - /// The type of employer identification number (EIN). - [DataMember(Name = "einType", EmitDefaultValue = true)] - public string EinType { get; set; } - - /// - /// Indicates certification for box 14. - /// - /// Indicates certification for box 14. - /// false - [DataMember(Name = "certifyBox14", EmitDefaultValue = true)] - public bool CertifyBox14 { get; set; } - - /// - /// Indicates certification for box 15A. - /// - /// Indicates certification for box 15A. - /// false - [DataMember(Name = "certifyBox15A", EmitDefaultValue = true)] - public bool CertifyBox15A { get; set; } - - /// - /// Indicates certification for box 15B. - /// - /// Indicates certification for box 15B. - /// false - [DataMember(Name = "certifyBox15B", EmitDefaultValue = true)] - public bool CertifyBox15B { get; set; } - - /// - /// Indicates certification for box 15C. - /// - /// Indicates certification for box 15C. - /// false - [DataMember(Name = "certifyBox15C", EmitDefaultValue = true)] - public bool CertifyBox15C { get; set; } - - /// - /// Indicates certification for box 15D. - /// - /// Indicates certification for box 15D. - /// false - [DataMember(Name = "certifyBox15D", EmitDefaultValue = true)] - public bool CertifyBox15D { get; set; } - - /// - /// Indicates certification for box 15E. - /// - /// Indicates certification for box 15E. - /// false - [DataMember(Name = "certifyBox15E", EmitDefaultValue = true)] - public bool CertifyBox15E { get; set; } - - /// - /// Indicates certification for box 15F. - /// - /// Indicates certification for box 15F. - /// false - [DataMember(Name = "certifyBox15F", EmitDefaultValue = true)] - public bool CertifyBox15F { get; set; } - - /// - /// Indicates certification for box 15G. - /// - /// Indicates certification for box 15G. - /// false - [DataMember(Name = "certifyBox15G", EmitDefaultValue = true)] - public bool CertifyBox15G { get; set; } - - /// - /// Indicates certification for box 15H. - /// - /// Indicates certification for box 15H. - /// false - [DataMember(Name = "certifyBox15H", EmitDefaultValue = true)] - public bool CertifyBox15H { get; set; } - - /// - /// Indicates certification for box 15I. - /// - /// Indicates certification for box 15I. - /// false - [DataMember(Name = "certifyBox15I", EmitDefaultValue = true)] - public bool CertifyBox15I { get; set; } - - /// - /// Indicates certification for box 16A. - /// - /// Indicates certification for box 16A. - /// false - [DataMember(Name = "certifyBox16A", EmitDefaultValue = true)] - public bool CertifyBox16A { get; set; } - - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// - /// Indicates certification for box 16B as a QDD corporate entity. - /// false - [DataMember(Name = "box16BQddCorporate", EmitDefaultValue = true)] - public bool Box16BQddCorporate { get; set; } - - /// - /// Indicates certification for box 16B as a QDD partnership. - /// - /// Indicates certification for box 16B as a QDD partnership. - /// false - [DataMember(Name = "box16BQddPartnership", EmitDefaultValue = true)] - public bool Box16BQddPartnership { get; set; } - - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// - /// Indicates certification for box 16B as a QDD disregarded entity. - /// false - [DataMember(Name = "box16BQddDisregardedEntity", EmitDefaultValue = true)] - public bool Box16BQddDisregardedEntity { get; set; } - - /// - /// Indicates certification for box 17A. - /// - /// Indicates certification for box 17A. - /// false - [DataMember(Name = "certifyBox17A", EmitDefaultValue = true)] - public bool CertifyBox17A { get; set; } - - /// - /// Indicates certification for box 17B. - /// - /// Indicates certification for box 17B. - /// false - [DataMember(Name = "certifyBox17B", EmitDefaultValue = true)] - public bool CertifyBox17B { get; set; } - - /// - /// Indicates certification for box 17C. - /// - /// Indicates certification for box 17C. - /// false - [DataMember(Name = "certifyBox17C", EmitDefaultValue = true)] - public bool CertifyBox17C { get; set; } - - /// - /// Indicates certification for box 17D. - /// - /// Indicates certification for box 17D. - /// false - [DataMember(Name = "certifyBox17D", EmitDefaultValue = true)] - public bool CertifyBox17D { get; set; } - - /// - /// Indicates certification for box 17E. - /// - /// Indicates certification for box 17E. - /// false - [DataMember(Name = "certifyBox17E", EmitDefaultValue = true)] - public bool CertifyBox17E { get; set; } - - /// - /// Indicates certification for box 18A. - /// - /// Indicates certification for box 18A. - /// false - [DataMember(Name = "certifyBox18A", EmitDefaultValue = true)] - public bool CertifyBox18A { get; set; } - - /// - /// Indicates certification for box 18B. - /// - /// Indicates certification for box 18B. - /// false - [DataMember(Name = "certifyBox18B", EmitDefaultValue = true)] - public bool CertifyBox18B { get; set; } - - /// - /// Indicates certification for box 18C. - /// - /// Indicates certification for box 18C. - /// false - [DataMember(Name = "certifyBox18C", EmitDefaultValue = true)] - public bool CertifyBox18C { get; set; } - - /// - /// Indicates certification for box 18D. - /// - /// Indicates certification for box 18D. - /// false - [DataMember(Name = "certifyBox18D", EmitDefaultValue = true)] - public bool CertifyBox18D { get; set; } - - /// - /// Indicates certification for box 18E. - /// - /// Indicates certification for box 18E. - /// false - [DataMember(Name = "certifyBox18E", EmitDefaultValue = true)] - public bool CertifyBox18E { get; set; } - - /// - /// Indicates certification for box 18F. - /// - /// Indicates certification for box 18F. - /// false - [DataMember(Name = "certifyBox18F", EmitDefaultValue = true)] - public bool CertifyBox18F { get; set; } - - /// - /// Indicates certification for box 19A. - /// - /// Indicates certification for box 19A. - /// false - [DataMember(Name = "certifyBox19A", EmitDefaultValue = true)] - public bool CertifyBox19A { get; set; } - - /// - /// Indicates certification for box 19B. - /// - /// Indicates certification for box 19B. - /// false - [DataMember(Name = "certifyBox19B", EmitDefaultValue = true)] - public bool CertifyBox19B { get; set; } - - /// - /// Indicates certification for box 19C. - /// - /// Indicates certification for box 19C. - /// false - [DataMember(Name = "certifyBox19C", EmitDefaultValue = true)] - public bool CertifyBox19C { get; set; } - - /// - /// Indicates certification for box 19D. - /// - /// Indicates certification for box 19D. - /// false - [DataMember(Name = "certifyBox19D", EmitDefaultValue = true)] - public bool CertifyBox19D { get; set; } - - /// - /// Indicates certification for box 19E. - /// - /// Indicates certification for box 19E. - /// false - [DataMember(Name = "certifyBox19E", EmitDefaultValue = true)] - public bool CertifyBox19E { get; set; } - - /// - /// Indicates certification for box 19F. - /// - /// Indicates certification for box 19F. - /// false - [DataMember(Name = "certifyBox19F", EmitDefaultValue = true)] - public bool CertifyBox19F { get; set; } - - /// - /// Indicates certification for box 20. - /// - /// Indicates certification for box 20. - /// false - [DataMember(Name = "certifyBox20", EmitDefaultValue = true)] - public bool CertifyBox20 { get; set; } - - /// - /// Indicates certification for box 21A. - /// - /// Indicates certification for box 21A. - /// false - [DataMember(Name = "certifyBox21A", EmitDefaultValue = true)] - public bool CertifyBox21A { get; set; } - - /// - /// Indicates certification for box 21B. - /// - /// Indicates certification for box 21B. - /// false - [DataMember(Name = "certifyBox21B", EmitDefaultValue = true)] - public bool CertifyBox21B { get; set; } - - /// - /// Indicates certification for box 21C. - /// - /// Indicates certification for box 21C. - /// false - [DataMember(Name = "certifyBox21C", EmitDefaultValue = true)] - public bool CertifyBox21C { get; set; } - - /// - /// Indicates certification for box 21D. - /// - /// Indicates certification for box 21D. - /// false - [DataMember(Name = "certifyBox21D", EmitDefaultValue = true)] - public bool CertifyBox21D { get; set; } - - /// - /// Indicates certification for box 21E. - /// - /// Indicates certification for box 21E. - /// false - [DataMember(Name = "certifyBox21E", EmitDefaultValue = true)] - public bool CertifyBox21E { get; set; } - - /// - /// Indicates certification for box 21F. - /// - /// Indicates certification for box 21F. - /// false - [DataMember(Name = "certifyBox21F", EmitDefaultValue = true)] - public bool CertifyBox21F { get; set; } - - /// - /// The name of the sponsoring entity for box 23A. - /// - /// The name of the sponsoring entity for box 23A. - [DataMember(Name = "box23ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box23ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 23B. - /// - /// Indicates certification for box 23B. - /// false - [DataMember(Name = "certifyBox23B", EmitDefaultValue = true)] - public bool CertifyBox23B { get; set; } - - /// - /// Indicates certification for box 23C. - /// - /// Indicates certification for box 23C. - /// false - [DataMember(Name = "certifyBox23C", EmitDefaultValue = true)] - public bool CertifyBox23C { get; set; } - - /// - /// Indicates certification for box 25. - /// - /// Indicates certification for box 25. - /// false - [DataMember(Name = "certifyBox25", EmitDefaultValue = true)] - public bool CertifyBox25 { get; set; } - - /// - /// The name of the sponsoring entity for box 27A. - /// - /// The name of the sponsoring entity for box 27A. - [DataMember(Name = "box27ANameSponsoringEntity", EmitDefaultValue = true)] - public string Box27ANameSponsoringEntity { get; set; } - - /// - /// Indicates certification for box 27B. - /// - /// Indicates certification for box 27B. - /// false - [DataMember(Name = "certifyBox27B", EmitDefaultValue = true)] - public bool CertifyBox27B { get; set; } - - /// - /// Indicates certification for box 28. - /// - /// Indicates certification for box 28. - /// false - [DataMember(Name = "certifyBox28", EmitDefaultValue = true)] - public bool CertifyBox28 { get; set; } - - /// - /// Indicates certification for box 29. - /// - /// Indicates certification for box 29. - /// false - [DataMember(Name = "certifyBox29", EmitDefaultValue = true)] - public bool CertifyBox29 { get; set; } - - /// - /// Indicates certification for box 30A. - /// - /// Indicates certification for box 30A. - /// false - [DataMember(Name = "certifyBox30A", EmitDefaultValue = true)] - public bool CertifyBox30A { get; set; } - - /// - /// Indicates certification for box 30B. - /// - /// Indicates certification for box 30B. - /// false - [DataMember(Name = "certifyBox30B", EmitDefaultValue = true)] - public bool CertifyBox30B { get; set; } - - /// - /// Indicates certification for box 30C. - /// - /// Indicates certification for box 30C. - /// false - [DataMember(Name = "certifyBox30C", EmitDefaultValue = true)] - public bool CertifyBox30C { get; set; } - - /// - /// The IGA country information for box 32. - /// - /// The IGA country information for box 32. - [DataMember(Name = "box32IgaCountry", EmitDefaultValue = true)] - public string Box32IgaCountry { get; set; } - - /// - /// The IGA type information for box 32. - /// - /// The IGA type information for box 32. - [DataMember(Name = "box32IgaType", EmitDefaultValue = true)] - public string Box32IgaType { get; set; } - - /// - /// The IGA treatment information for box 32. - /// - /// The IGA treatment information for box 32. - [DataMember(Name = "box32IgaTreatedAs", EmitDefaultValue = true)] - public string Box32IgaTreatedAs { get; set; } - - /// - /// The trustee or sponsor information for box 32. - /// - /// The trustee or sponsor information for box 32. - [DataMember(Name = "box32TrusteeOrSponsor", EmitDefaultValue = true)] - public string Box32TrusteeOrSponsor { get; set; } - - /// - /// Indicates whether the trustee is foreign for box 32. - /// - /// Indicates whether the trustee is foreign for box 32. - /// false - [DataMember(Name = "box32TrusteeIsForeign", EmitDefaultValue = true)] - public bool Box32TrusteeIsForeign { get; set; } - - /// - /// Indicates certification for box 33A. - /// - /// Indicates certification for box 33A. - /// false - [DataMember(Name = "certifyBox33A", EmitDefaultValue = true)] - public bool CertifyBox33A { get; set; } - - /// - /// Indicates certification for box 33B. - /// - /// Indicates certification for box 33B. - /// false - [DataMember(Name = "certifyBox33B", EmitDefaultValue = true)] - public bool CertifyBox33B { get; set; } - - /// - /// Indicates certification for box 33C. - /// - /// Indicates certification for box 33C. - /// false - [DataMember(Name = "certifyBox33C", EmitDefaultValue = true)] - public bool CertifyBox33C { get; set; } - - /// - /// Indicates certification for box 33D. - /// - /// Indicates certification for box 33D. - /// false - [DataMember(Name = "certifyBox33D", EmitDefaultValue = true)] - public bool CertifyBox33D { get; set; } - - /// - /// Indicates certification for box 33E. - /// - /// Indicates certification for box 33E. - /// false - [DataMember(Name = "certifyBox33E", EmitDefaultValue = true)] - public bool CertifyBox33E { get; set; } - - /// - /// Indicates certification for box 33F. - /// - /// Indicates certification for box 33F. - /// false - [DataMember(Name = "certifyBox33F", EmitDefaultValue = true)] - public bool CertifyBox33F { get; set; } - - /// - /// The securities market information for box 37A. - /// - /// The securities market information for box 37A. - [DataMember(Name = "box37ASecuritiesMarket", EmitDefaultValue = true)] - public string Box37ASecuritiesMarket { get; set; } - - /// - /// The name of the entity for box 37B. - /// - /// The name of the entity for box 37B. - [DataMember(Name = "box37BNameOfEntity", EmitDefaultValue = true)] - public string Box37BNameOfEntity { get; set; } - - /// - /// The securities market information for box 37B. - /// - /// The securities market information for box 37B. - [DataMember(Name = "box37BSecuritiesMarket", EmitDefaultValue = true)] - public string Box37BSecuritiesMarket { get; set; } - - /// - /// Indicates certification for box 40. - /// - /// Indicates certification for box 40. - /// false - [DataMember(Name = "certifyBox40", EmitDefaultValue = true)] - public bool CertifyBox40 { get; set; } - - /// - /// The sponsoring entity information for box 41. - /// - /// The sponsoring entity information for box 41. - [DataMember(Name = "box41SponsoringEntity", EmitDefaultValue = true)] - public string Box41SponsoringEntity { get; set; } - - /// - /// Indicates certification for box 42. - /// - /// Indicates certification for box 42. - /// false - [DataMember(Name = "certifyBox42", EmitDefaultValue = true)] - public bool CertifyBox42 { get; set; } - - /// - /// Gets or Sets Box35FormedOnDate - /// - [DataMember(Name = "box35FormedOnDate", EmitDefaultValue = true)] - public DateTime? Box35FormedOnDate { get; set; } - - /// - /// Gets or Sets Box36FiledOnDate - /// - [DataMember(Name = "box36FiledOnDate", EmitDefaultValue = true)] - public DateTime? Box36FiledOnDate { get; set; } - - /// - /// Returns the string presentation of the object + /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() @@ -2172,194 +499,23 @@ public override string ToString() sb.Append(" Is1099able: ").Append(Is1099able).Append("\n"); sb.Append(" ForeignPartnerOwnerOrBeneficiary: ").Append(ForeignPartnerOwnerOrBeneficiary).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" EmployeeFirstName: ").Append(EmployeeFirstName).Append("\n"); - sb.Append(" EmployeeMiddleName: ").Append(EmployeeMiddleName).Append("\n"); - sb.Append(" EmployeeLastName: ").Append(EmployeeLastName).Append("\n"); - sb.Append(" EmployeeNameSuffix: ").Append(EmployeeNameSuffix).Append("\n"); - sb.Append(" Box3MaritalStatus: ").Append(Box3MaritalStatus).Append("\n"); - sb.Append(" Box4LastNameDiffers: ").Append(Box4LastNameDiffers).Append("\n"); - sb.Append(" Box5NumAllowances: ").Append(Box5NumAllowances).Append("\n"); - sb.Append(" OtherDependents: ").Append(OtherDependents).Append("\n"); - sb.Append(" NonJobIncome: ").Append(NonJobIncome).Append("\n"); - sb.Append(" Deductions: ").Append(Deductions).Append("\n"); - sb.Append(" Box6AdditionalWithheld: ").Append(Box6AdditionalWithheld).Append("\n"); - sb.Append(" Box7ExemptFromWithholding: ").Append(Box7ExemptFromWithholding).Append("\n"); - sb.Append(" OfficeCode: ").Append(OfficeCode).Append("\n"); - sb.Append(" DisregardedEntityChapter4FatcaStatus: ").Append(DisregardedEntityChapter4FatcaStatus).Append("\n"); - sb.Append(" ResidenceAddress: ").Append(ResidenceAddress).Append("\n"); - sb.Append(" ResidenceCity: ").Append(ResidenceCity).Append("\n"); - sb.Append(" ResidenceState: ").Append(ResidenceState).Append("\n"); - sb.Append(" ResidencePostalCode: ").Append(ResidencePostalCode).Append("\n"); - sb.Append(" ResidenceCountry: ").Append(ResidenceCountry).Append("\n"); - sb.Append(" MailingAddress: ").Append(MailingAddress).Append("\n"); - sb.Append(" MailingCity: ").Append(MailingCity).Append("\n"); - sb.Append(" MailingState: ").Append(MailingState).Append("\n"); - sb.Append(" MailingPostalCode: ").Append(MailingPostalCode).Append("\n"); - sb.Append(" MailingCountry: ").Append(MailingCountry).Append("\n"); - sb.Append(" DisregardedAddress: ").Append(DisregardedAddress).Append("\n"); - sb.Append(" DisregardedCity: ").Append(DisregardedCity).Append("\n"); - sb.Append(" DisregardedState: ").Append(DisregardedState).Append("\n"); - sb.Append(" DisregardedPostalCode: ").Append(DisregardedPostalCode).Append("\n"); - sb.Append(" DisregardedCountry: ").Append(DisregardedCountry).Append("\n"); - sb.Append(" ForeignTin: ").Append(ForeignTin).Append("\n"); - sb.Append(" FtinNotRequired: ").Append(FtinNotRequired).Append("\n"); - sb.Append(" ReferenceNumber: ").Append(ReferenceNumber).Append("\n"); - sb.Append(" Giin: ").Append(Giin).Append("\n"); - sb.Append(" Chapter3EntityType: ").Append(Chapter3EntityType).Append("\n"); - sb.Append(" Chapter4FatcaStatus: ").Append(Chapter4FatcaStatus).Append("\n"); - sb.Append(" DisregardedEntity: ").Append(DisregardedEntity).Append("\n"); - sb.Append(" DisregardedEntityGiin: ").Append(DisregardedEntityGiin).Append("\n"); - sb.Append(" BenefitLimitation: ").Append(BenefitLimitation).Append("\n"); - sb.Append(" Part4SponsoringEntity: ").Append(Part4SponsoringEntity).Append("\n"); - sb.Append(" Part4SponsoringEntityGiin: ").Append(Part4SponsoringEntityGiin).Append("\n"); - sb.Append(" Part7SponsoringEntity: ").Append(Part7SponsoringEntity).Append("\n"); - sb.Append(" Part12IgaCountry: ").Append(Part12IgaCountry).Append("\n"); - sb.Append(" Part12IgaType: ").Append(Part12IgaType).Append("\n"); - sb.Append(" Part12FatcaStatusUnderIgaAnnexIi: ").Append(Part12FatcaStatusUnderIgaAnnexIi).Append("\n"); - sb.Append(" Part12TrusteeName: ").Append(Part12TrusteeName).Append("\n"); - sb.Append(" Part12TrusteeIsForeign: ").Append(Part12TrusteeIsForeign).Append("\n"); - sb.Append(" Part12Model2IgaGiin: ").Append(Part12Model2IgaGiin).Append("\n"); - sb.Append(" Box37AExchange: ").Append(Box37AExchange).Append("\n"); - sb.Append(" Box37BExchange: ").Append(Box37BExchange).Append("\n"); - sb.Append(" Box37BEntity: ").Append(Box37BEntity).Append("\n"); - sb.Append(" Part28SponsoringEntity: ").Append(Part28SponsoringEntity).Append("\n"); - sb.Append(" Part28SponsoringEntityGiin: ").Append(Part28SponsoringEntityGiin).Append("\n"); - sb.Append(" SignerName: ").Append(SignerName).Append("\n"); - sb.Append(" ResidenceIsMailing: ").Append(ResidenceIsMailing).Append("\n"); - sb.Append(" CitizenshipCountry: ").Append(CitizenshipCountry).Append("\n"); - sb.Append(" MakingTreatyClaim: ").Append(MakingTreatyClaim).Append("\n"); - sb.Append(" TreatyCountry: ").Append(TreatyCountry).Append("\n"); - sb.Append(" TreatyArticle: ").Append(TreatyArticle).Append("\n"); - sb.Append(" WithholdingRate: ").Append(WithholdingRate).Append("\n"); - sb.Append(" IncomeType: ").Append(IncomeType).Append("\n"); - sb.Append(" TreatyReasons: ").Append(TreatyReasons).Append("\n"); - sb.Append(" CertifyBox14A: ").Append(CertifyBox14A).Append("\n"); - sb.Append(" CertifyBox14B: ").Append(CertifyBox14B).Append("\n"); - sb.Append(" CertifyBox14C: ").Append(CertifyBox14C).Append("\n"); - sb.Append(" CertifyBox171: ").Append(CertifyBox171).Append("\n"); - sb.Append(" CertifyBox172: ").Append(CertifyBox172).Append("\n"); - sb.Append(" CertifyBox18: ").Append(CertifyBox18).Append("\n"); - sb.Append(" CertifyBox19: ").Append(CertifyBox19).Append("\n"); - sb.Append(" CertifyBox21: ").Append(CertifyBox21).Append("\n"); - sb.Append(" CertifyBox22: ").Append(CertifyBox22).Append("\n"); - sb.Append(" CertifyBox23: ").Append(CertifyBox23).Append("\n"); - sb.Append(" CertifyBox24A: ").Append(CertifyBox24A).Append("\n"); - sb.Append(" CertifyBox24B: ").Append(CertifyBox24B).Append("\n"); - sb.Append(" CertifyBox24C: ").Append(CertifyBox24C).Append("\n"); - sb.Append(" CertifyBox24D: ").Append(CertifyBox24D).Append("\n"); - sb.Append(" CertifyBox25A: ").Append(CertifyBox25A).Append("\n"); - sb.Append(" CertifyBox25B: ").Append(CertifyBox25B).Append("\n"); - sb.Append(" CertifyBox25C: ").Append(CertifyBox25C).Append("\n"); - sb.Append(" CertifyBox26: ").Append(CertifyBox26).Append("\n"); - sb.Append(" CertifyBox27: ").Append(CertifyBox27).Append("\n"); - sb.Append(" CertifyBox28A: ").Append(CertifyBox28A).Append("\n"); - sb.Append(" CertifyBox28B: ").Append(CertifyBox28B).Append("\n"); - sb.Append(" CertifyBox29A: ").Append(CertifyBox29A).Append("\n"); - sb.Append(" CertifyBox29B: ").Append(CertifyBox29B).Append("\n"); - sb.Append(" CertifyBox29C: ").Append(CertifyBox29C).Append("\n"); - sb.Append(" CertifyBox29D: ").Append(CertifyBox29D).Append("\n"); - sb.Append(" CertifyBox29E: ").Append(CertifyBox29E).Append("\n"); - sb.Append(" CertifyBox29F: ").Append(CertifyBox29F).Append("\n"); - sb.Append(" CertifyBox30: ").Append(CertifyBox30).Append("\n"); - sb.Append(" CertifyBox31: ").Append(CertifyBox31).Append("\n"); - sb.Append(" CertifyBox32: ").Append(CertifyBox32).Append("\n"); - sb.Append(" CertifyBox33: ").Append(CertifyBox33).Append("\n"); - sb.Append(" CertifyBox34: ").Append(CertifyBox34).Append("\n"); - sb.Append(" CertifyBox35: ").Append(CertifyBox35).Append("\n"); - sb.Append(" CertifyBox36: ").Append(CertifyBox36).Append("\n"); - sb.Append(" CertifyBox37A: ").Append(CertifyBox37A).Append("\n"); - sb.Append(" CertifyBox37B: ").Append(CertifyBox37B).Append("\n"); - sb.Append(" CertifyBox38: ").Append(CertifyBox38).Append("\n"); - sb.Append(" CertifyBox39: ").Append(CertifyBox39).Append("\n"); - sb.Append(" CertifyBox40A: ").Append(CertifyBox40A).Append("\n"); - sb.Append(" CertifyBox40B: ").Append(CertifyBox40B).Append("\n"); - sb.Append(" CertifyBox40C: ").Append(CertifyBox40C).Append("\n"); - sb.Append(" CertifyBox41: ").Append(CertifyBox41).Append("\n"); - sb.Append(" CertifyBox43: ").Append(CertifyBox43).Append("\n"); - sb.Append(" CertifyPart29Signature: ").Append(CertifyPart29Signature).Append("\n"); - sb.Append(" Part19FormationOrResolutionDate: ").Append(Part19FormationOrResolutionDate).Append("\n"); - sb.Append(" Part20FilingDate: ").Append(Part20FilingDate).Append("\n"); - sb.Append(" Part21DeterminationDate: ").Append(Part21DeterminationDate).Append("\n"); - sb.Append(" SubstantialUsOwners: ").Append(SubstantialUsOwners).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); - sb.Append(" ForeignTinNotRequired: ").Append(ForeignTinNotRequired).Append("\n"); - sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" EntryStatus: ").Append(EntryStatus).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" SignerCapacity: ").Append(SignerCapacity).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" Ein: ").Append(Ein).Append("\n"); - sb.Append(" EinType: ").Append(EinType).Append("\n"); - sb.Append(" CertifyBox14: ").Append(CertifyBox14).Append("\n"); - sb.Append(" CertifyBox15A: ").Append(CertifyBox15A).Append("\n"); - sb.Append(" CertifyBox15B: ").Append(CertifyBox15B).Append("\n"); - sb.Append(" CertifyBox15C: ").Append(CertifyBox15C).Append("\n"); - sb.Append(" CertifyBox15D: ").Append(CertifyBox15D).Append("\n"); - sb.Append(" CertifyBox15E: ").Append(CertifyBox15E).Append("\n"); - sb.Append(" CertifyBox15F: ").Append(CertifyBox15F).Append("\n"); - sb.Append(" CertifyBox15G: ").Append(CertifyBox15G).Append("\n"); - sb.Append(" CertifyBox15H: ").Append(CertifyBox15H).Append("\n"); - sb.Append(" CertifyBox15I: ").Append(CertifyBox15I).Append("\n"); - sb.Append(" CertifyBox16A: ").Append(CertifyBox16A).Append("\n"); - sb.Append(" Box16BQddCorporate: ").Append(Box16BQddCorporate).Append("\n"); - sb.Append(" Box16BQddPartnership: ").Append(Box16BQddPartnership).Append("\n"); - sb.Append(" Box16BQddDisregardedEntity: ").Append(Box16BQddDisregardedEntity).Append("\n"); - sb.Append(" CertifyBox17A: ").Append(CertifyBox17A).Append("\n"); - sb.Append(" CertifyBox17B: ").Append(CertifyBox17B).Append("\n"); - sb.Append(" CertifyBox17C: ").Append(CertifyBox17C).Append("\n"); - sb.Append(" CertifyBox17D: ").Append(CertifyBox17D).Append("\n"); - sb.Append(" CertifyBox17E: ").Append(CertifyBox17E).Append("\n"); - sb.Append(" CertifyBox18A: ").Append(CertifyBox18A).Append("\n"); - sb.Append(" CertifyBox18B: ").Append(CertifyBox18B).Append("\n"); - sb.Append(" CertifyBox18C: ").Append(CertifyBox18C).Append("\n"); - sb.Append(" CertifyBox18D: ").Append(CertifyBox18D).Append("\n"); - sb.Append(" CertifyBox18E: ").Append(CertifyBox18E).Append("\n"); - sb.Append(" CertifyBox18F: ").Append(CertifyBox18F).Append("\n"); - sb.Append(" CertifyBox19A: ").Append(CertifyBox19A).Append("\n"); - sb.Append(" CertifyBox19B: ").Append(CertifyBox19B).Append("\n"); - sb.Append(" CertifyBox19C: ").Append(CertifyBox19C).Append("\n"); - sb.Append(" CertifyBox19D: ").Append(CertifyBox19D).Append("\n"); - sb.Append(" CertifyBox19E: ").Append(CertifyBox19E).Append("\n"); - sb.Append(" CertifyBox19F: ").Append(CertifyBox19F).Append("\n"); - sb.Append(" CertifyBox20: ").Append(CertifyBox20).Append("\n"); - sb.Append(" CertifyBox21A: ").Append(CertifyBox21A).Append("\n"); - sb.Append(" CertifyBox21B: ").Append(CertifyBox21B).Append("\n"); - sb.Append(" CertifyBox21C: ").Append(CertifyBox21C).Append("\n"); - sb.Append(" CertifyBox21D: ").Append(CertifyBox21D).Append("\n"); - sb.Append(" CertifyBox21E: ").Append(CertifyBox21E).Append("\n"); - sb.Append(" CertifyBox21F: ").Append(CertifyBox21F).Append("\n"); - sb.Append(" Box23ANameSponsoringEntity: ").Append(Box23ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox23B: ").Append(CertifyBox23B).Append("\n"); - sb.Append(" CertifyBox23C: ").Append(CertifyBox23C).Append("\n"); - sb.Append(" CertifyBox25: ").Append(CertifyBox25).Append("\n"); - sb.Append(" Box27ANameSponsoringEntity: ").Append(Box27ANameSponsoringEntity).Append("\n"); - sb.Append(" CertifyBox27B: ").Append(CertifyBox27B).Append("\n"); - sb.Append(" CertifyBox28: ").Append(CertifyBox28).Append("\n"); - sb.Append(" CertifyBox29: ").Append(CertifyBox29).Append("\n"); - sb.Append(" CertifyBox30A: ").Append(CertifyBox30A).Append("\n"); - sb.Append(" CertifyBox30B: ").Append(CertifyBox30B).Append("\n"); - sb.Append(" CertifyBox30C: ").Append(CertifyBox30C).Append("\n"); - sb.Append(" Box32IgaCountry: ").Append(Box32IgaCountry).Append("\n"); - sb.Append(" Box32IgaType: ").Append(Box32IgaType).Append("\n"); - sb.Append(" Box32IgaTreatedAs: ").Append(Box32IgaTreatedAs).Append("\n"); - sb.Append(" Box32TrusteeOrSponsor: ").Append(Box32TrusteeOrSponsor).Append("\n"); - sb.Append(" Box32TrusteeIsForeign: ").Append(Box32TrusteeIsForeign).Append("\n"); - sb.Append(" CertifyBox33A: ").Append(CertifyBox33A).Append("\n"); - sb.Append(" CertifyBox33B: ").Append(CertifyBox33B).Append("\n"); - sb.Append(" CertifyBox33C: ").Append(CertifyBox33C).Append("\n"); - sb.Append(" CertifyBox33D: ").Append(CertifyBox33D).Append("\n"); - sb.Append(" CertifyBox33E: ").Append(CertifyBox33E).Append("\n"); - sb.Append(" CertifyBox33F: ").Append(CertifyBox33F).Append("\n"); - sb.Append(" Box37ASecuritiesMarket: ").Append(Box37ASecuritiesMarket).Append("\n"); - sb.Append(" Box37BNameOfEntity: ").Append(Box37BNameOfEntity).Append("\n"); - sb.Append(" Box37BSecuritiesMarket: ").Append(Box37BSecuritiesMarket).Append("\n"); - sb.Append(" CertifyBox40: ").Append(CertifyBox40).Append("\n"); - sb.Append(" Box41SponsoringEntity: ").Append(Box41SponsoringEntity).Append("\n"); - sb.Append(" CertifyBox42: ").Append(CertifyBox42).Append("\n"); - sb.Append(" Box35FormedOnDate: ").Append(Box35FormedOnDate).Append("\n"); - sb.Append(" Box36FiledOnDate: ").Append(Box36FiledOnDate).Append("\n"); + sb.Append(" Archived: ").Append(Archived).Append("\n"); + sb.Append(" EntryStatusDate: ").Append(EntryStatusDate).Append("\n"); + sb.Append(" PdfJson: ").Append(PdfJson).Append("\n"); + sb.Append(" PdfVersion: ").Append(PdfVersion).Append("\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); + sb.Append(" Mobile: ").Append(Mobile).Append("\n"); + sb.Append(" AppVersion: ").Append(AppVersion).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" OsVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" AncestorId: ").Append(AncestorId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Avalara.SDK/Model/A1099/V2/W9FormDataModelsOneOf.cs b/src/Avalara.SDK/Model/A1099/V2/W9FormDataModelsOneOf.cs new file mode 100644 index 0000000..0fedb79 --- /dev/null +++ b/src/Avalara.SDK/Model/A1099/V2/W9FormDataModelsOneOf.cs @@ -0,0 +1,411 @@ +/* + * AvaTax Software Development Kit for C# + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * Avalara 1099 API Definition + * + * ## Authentication Use **username/password** or **generate a license** key from: Avalara Portal → Settings → License and API Keys More info on authentication: [Avalara Authentication Methods](https://developer.avalara.com/avatax-dm-combined-erp/common-setup/authentication/authentication-methods/) Validate your credentials here: [Test Credentials](https://developer.avalara.com/avatax/test-credentials/) ## API & SDK Docs [Avalara (C#/.NET) SDK on GitHub](https://github.com/avadev/Avalara-SDK-DotNet/tree/main#avalarasdk- -the-unified-c-library-for-next-gen-avalara-services) [Code Examples for 1099 API](https://github.com/avadev/Avalara-SDK-DotNet/blob/main/docs/A1099/V2/Class1099IssuersApi.md#call1099issuersget) + * + + * @author Sachin Baijal + * @author Jonathan Wenger + * @copyright 2004-2022 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-DotNet-SDK + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using FileParameter = Avalara.SDK.Client.FileParameter; +using OpenAPIDateConverter = Avalara.SDK.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace Avalara.SDK.Model.A1099.V2 +{ + /// + /// Resource data model for /w9/forms API + /// + [JsonConverter(typeof(W9FormDataModelsOneOfJsonConverter))] + [DataContract(Name = "W9FormDataModelsOneOf")] + public partial class W9FormDataModelsOneOf : AbstractOpenAPISchema, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W4FormDataModel. + public W9FormDataModelsOneOf(W4FormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8BeneFormDataModel. + public W9FormDataModelsOneOf(W8BeneFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8BenFormDataModel. + public W9FormDataModelsOneOf(W8BenFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W8ImyFormDataModel. + public W9FormDataModelsOneOf(W8ImyFormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of W9FormDataModel. + public W9FormDataModelsOneOf(W9FormDataModel actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(W4FormDataModel) || value is W4FormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8BenFormDataModel) || value is W8BenFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8BeneFormDataModel) || value is W8BeneFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W8ImyFormDataModel) || value is W8ImyFormDataModel) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(W9FormDataModel) || value is W9FormDataModel) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: W4FormDataModel, W8BenFormDataModel, W8BeneFormDataModel, W8ImyFormDataModel, W9FormDataModel"); + } + } + } + + /// + /// Get the actual instance of `W4FormDataModel`. If the actual instance is not `W4FormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W4FormDataModel + public W4FormDataModel GetW4FormDataModel() + { + return (W4FormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8BeneFormDataModel`. If the actual instance is not `W8BeneFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8BeneFormDataModel + public W8BeneFormDataModel GetW8BeneFormDataModel() + { + return (W8BeneFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8BenFormDataModel`. If the actual instance is not `W8BenFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8BenFormDataModel + public W8BenFormDataModel GetW8BenFormDataModel() + { + return (W8BenFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W8ImyFormDataModel`. If the actual instance is not `W8ImyFormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W8ImyFormDataModel + public W8ImyFormDataModel GetW8ImyFormDataModel() + { + return (W8ImyFormDataModel)this.ActualInstance; + } + + /// + /// Get the actual instance of `W9FormDataModel`. If the actual instance is not `W9FormDataModel`, + /// the InvalidClassException will be thrown + /// + /// An instance of W9FormDataModel + public W9FormDataModel GetW9FormDataModel() + { + return (W9FormDataModel)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class W9FormDataModelsOneOf {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, W9FormDataModelsOneOf.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of W9FormDataModelsOneOf + /// + /// JSON string + /// An instance of W9FormDataModelsOneOf + public static W9FormDataModelsOneOf FromJson(string jsonString) + { + W9FormDataModelsOneOf newW9FormDataModelsOneOf = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newW9FormDataModelsOneOf; + } + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W4FormDataModel).GetProperty("AdditionalProperties") == null) + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.SerializerSettings)); + } + else + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W4FormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W4FormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8BenFormDataModel).GetProperty("AdditionalProperties") == null) + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.SerializerSettings)); + } + else + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8BenFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8BenFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8BeneFormDataModel).GetProperty("AdditionalProperties") == null) + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.SerializerSettings)); + } + else + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8BeneFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8BeneFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W8ImyFormDataModel).GetProperty("AdditionalProperties") == null) + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.SerializerSettings)); + } + else + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W8ImyFormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W8ImyFormDataModel: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(W9FormDataModel).GetProperty("AdditionalProperties") == null) + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.SerializerSettings)); + } + else + { + newW9FormDataModelsOneOf = new W9FormDataModelsOneOf(JsonConvert.DeserializeObject(jsonString, W9FormDataModelsOneOf.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("W9FormDataModel"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into W9FormDataModel: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + String.Join(",", matchedTypes)); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newW9FormDataModelsOneOf; + } + + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for W9FormDataModelsOneOf + /// + public class W9FormDataModelsOneOfJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(W9FormDataModelsOneOf).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + switch(reader.TokenType) + { + case JsonToken.StartObject: + return W9FormDataModelsOneOf.FromJson(JObject.Load(reader).ToString(Formatting.None)); + case JsonToken.StartArray: + return W9FormDataModelsOneOf.FromJson(JArray.Load(reader).ToString(Formatting.None)); + default: + return null; + } + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearch.cs b/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearch.cs index bb57196..0474f2f 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearch.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearch.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// Provides details about a batch search operation, including status, timestamps, and potential errors. + /// BatchSearch /// [DataContract(Name = "BatchSearch")] public partial class BatchSearch : IValidatableObject @@ -80,6 +80,7 @@ public enum StatusEnum /// Status of the batch search /// /// Status of the batch search + /// Accepted [DataMember(Name = "status", EmitDefaultValue = false)] public StatusEnum? Status { get; set; } /// @@ -107,6 +108,7 @@ public enum StatusEnum /// ID of the batch search /// /// ID of the batch search + /// 2f5ea4b5-4dae-445a-b3e4-9f65a61eaa99 [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } @@ -114,6 +116,7 @@ public enum StatusEnum /// Name of the batch report /// /// Name of the batch report + /// Batch Search Report 1 [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } @@ -121,6 +124,7 @@ public enum StatusEnum /// Email of the user who created the batch search /// /// Email of the user who created the batch search + /// user@example.com [DataMember(Name = "createdBy", EmitDefaultValue = false)] public string CreatedBy { get; set; } @@ -128,6 +132,7 @@ public enum StatusEnum /// Timestamp when the batch search was created /// /// Timestamp when the batch search was created + /// 2024-08-01T12:34:56Z [DataMember(Name = "created", EmitDefaultValue = false)] public DateTime Created { get; set; } @@ -135,6 +140,7 @@ public enum StatusEnum /// Timestamp when the batch search was created /// /// Timestamp when the batch search was created + /// 2024-08-01T12:34:56Z [DataMember(Name = "lastModified", EmitDefaultValue = false)] public DateTime LastModified { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearchListResponse.cs b/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearchListResponse.cs index 1ed8018..339d803 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearchListResponse.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/BatchSearchListResponse.cs @@ -60,6 +60,7 @@ public partial class BatchSearchListResponse : IValidatableObject /// The count of records in the result set /// /// The count of records in the result set + /// 500 [DataMember(Name = "@recordSetCount", EmitDefaultValue = false)] public int RecordSetCount { get; set; } @@ -67,6 +68,7 @@ public partial class BatchSearchListResponse : IValidatableObject /// Next Link /// /// Next Link + /// TODO [DataMember(Name = "@nextLink", EmitDefaultValue = false)] public string NextLink { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DataInputFieldsResponse.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DataInputFieldsResponse.cs index 46fe871..7ba9208 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DataInputFieldsResponse.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DataInputFieldsResponse.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// Response model providing a list of input fields required, optional, or conditional for different country mandates. + /// DataInputFieldsResponse /// [DataContract(Name = "DataInputFieldsResponse")] public partial class DataInputFieldsResponse : IValidatableObject diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponse.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponse.cs index 70a220f..4e7289d 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponse.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponse.cs @@ -60,6 +60,7 @@ public partial class DirectorySearchResponse : IValidatableObject /// The count of records in the result set /// /// The count of records in the result set + /// 500 [DataMember(Name = "@recordSetCount", EmitDefaultValue = false)] public int RecordSetCount { get; set; } @@ -67,6 +68,7 @@ public partial class DirectorySearchResponse : IValidatableObject /// The next page link to get the next set of results. /// /// The next page link to get the next set of results. + /// TODO [DataMember(Name = "@nextLink", EmitDefaultValue = false)] public string NextLink { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInner.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInner.cs index 0f15c7d..fef892f 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInner.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInner.cs @@ -68,6 +68,7 @@ public partial class DirectorySearchResponseValueInner : IValidatableObject /// Avalara unique ID of the participant in the directory. /// /// Avalara unique ID of the participant in the directory. + /// 2a27ee0cf5bcb6165ab891503652343419a8fc5fe6b406299c47d7b44aa8548c [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } @@ -75,6 +76,7 @@ public partial class DirectorySearchResponseValueInner : IValidatableObject /// Name of the participant (typically, the name of the business entity). /// /// Name of the participant (typically, the name of the business entity). + /// Pineapple Labs ltd [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } @@ -82,6 +84,7 @@ public partial class DirectorySearchResponseValueInner : IValidatableObject /// The network where the participant is present. /// /// The network where the participant is present. + /// Peppol [DataMember(Name = "network", EmitDefaultValue = false)] public string Network { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.cs index 191a26e..9ec786d 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerIdentifiersInner.cs @@ -58,6 +58,7 @@ public partial class DirectorySearchResponseValueInnerIdentifiersInner : IValida /// Peppol Participant ID if the participant is in Peppol network /// /// Peppol Participant ID if the participant is in Peppol network + /// PeppolParticipantId [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } @@ -65,6 +66,7 @@ public partial class DirectorySearchResponseValueInnerIdentifiersInner : IValida /// Value of the identifier /// /// Value of the identifier + /// 9930:de112233445 [DataMember(Name = "value", EmitDefaultValue = false)] public string Value { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.cs index 19ead8f..fd6b629 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DirectorySearchResponseValueInnerSupportedDocumentTypesInner.cs @@ -62,6 +62,7 @@ public partial class DirectorySearchResponseValueInnerSupportedDocumentTypesInne /// Document type name. /// /// Document type name. + /// Peppol BIS Billing UBL Invoice V3 [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } @@ -69,6 +70,7 @@ public partial class DirectorySearchResponseValueInnerSupportedDocumentTypesInne /// Document type identifier. /// /// Document type identifier. + /// busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1 [DataMember(Name = "value", EmitDefaultValue = false)] public string Value { get; set; } @@ -76,6 +78,7 @@ public partial class DirectorySearchResponseValueInnerSupportedDocumentTypesInne /// Does trading partner support receiving this document type /// /// Does trading partner support receiving this document type + /// true [DataMember(Name = "supportedByTradingPartner", EmitDefaultValue = true)] public bool SupportedByTradingPartner { get; set; } @@ -83,6 +86,7 @@ public partial class DirectorySearchResponseValueInnerSupportedDocumentTypesInne /// Does avalara support exchanging this document type /// /// Does avalara support exchanging this document type + /// true [DataMember(Name = "supportedByAvalara", EmitDefaultValue = true)] public bool SupportedByAvalara { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DocumentFetch.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DocumentFetch.cs index 1ada53e..70a4513 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DocumentFetch.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DocumentFetch.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// An object of the inbound document + /// DocumentFetch /// [DataContract(Name = "documentFetch")] public partial class DocumentFetch : IValidatableObject diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/DocumentSummary.cs b/src/Avalara.SDK/Model/EInvoicing/V1/DocumentSummary.cs index a8f33bb..1e0e552 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/DocumentSummary.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/DocumentSummary.cs @@ -47,7 +47,6 @@ public partial class DocumentSummary : IValidatableObject /// Initializes a new instance of the class. /// /// The unique ID for this document. - /// Unique identifier that represents the company within the system.. /// The date and time when the document was processed, displayed in the format YYYY-MM-DDThh:mm:ss. /// The Document status. /// The name of the supplier in the transaction. @@ -61,10 +60,9 @@ public partial class DocumentSummary : IValidatableObject /// The e-invoicing mandate for the specified country. /// The interface where the document is sent. /// The document recipient based on the interface. - public DocumentSummary(string id = default(string), string companyId = default(string), string processDateTime = default(string), string status = default(string), string supplierName = default(string), string customerName = default(string), string documentType = default(string), string documentVersion = default(string), string documentNumber = default(string), string documentDate = default(string), string flow = default(string), string countryCode = default(string), string countryMandate = default(string), string varInterface = default(string), string receiver = default(string)) + public DocumentSummary(string id = default(string), string processDateTime = default(string), string status = default(string), string supplierName = default(string), string customerName = default(string), string documentType = default(string), string documentVersion = default(string), string documentNumber = default(string), string documentDate = default(string), string flow = default(string), string countryCode = default(string), string countryMandate = default(string), string varInterface = default(string), string receiver = default(string)) { this.Id = id; - this.CompanyId = companyId; this.ProcessDateTime = processDateTime; this.Status = status; this.SupplierName = supplierName; @@ -88,14 +86,6 @@ public partial class DocumentSummary : IValidatableObject [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } - /// - /// Unique identifier that represents the company within the system. - /// - /// Unique identifier that represents the company within the system. - /// a5869a7b-4d5d-4ec1-9b29-fd272aa58ab2 - [DataMember(Name = "companyId", EmitDefaultValue = false)] - public string CompanyId { get; set; } - /// /// The date and time when the document was processed, displayed in the format YYYY-MM-DDThh:mm:ss /// @@ -209,7 +199,6 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class DocumentSummary {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" CompanyId: ").Append(CompanyId).Append("\n"); sb.Append(" ProcessDateTime: ").Append(ProcessDateTime).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" SupplierName: ").Append(SupplierName).Append("\n"); diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/ErrorResponse.cs b/src/Avalara.SDK/Model/EInvoicing/V1/ErrorResponse.cs index d857fb0..579f929 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/ErrorResponse.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/ErrorResponse.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// Structure for reporting errors encountered during API operations, including title, status, and detailed message. + /// ErrorResponse /// [DataContract(Name = "ErrorResponse")] public partial class ErrorResponse : IValidatableObject @@ -82,7 +82,7 @@ public partial class ErrorResponse : IValidatableObject /// /// Gets or Sets Instance /// - /// Invalid request format or parameters. + /// unknown parameter 'city' [DataMember(Name = "instance", EmitDefaultValue = false)] public string Instance { get; set; } diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/FetchDocumentsRequestMetadata.cs b/src/Avalara.SDK/Model/EInvoicing/V1/FetchDocumentsRequestMetadata.cs index b09342e..a36ec1b 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/FetchDocumentsRequestMetadata.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/FetchDocumentsRequestMetadata.cs @@ -54,11 +54,9 @@ protected FetchDocumentsRequestMetadata() { } /// Specifies a unique ID for this workflow. (required). /// Specifies the data format for this workflow (required). /// Specifies the data format version number (required). - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. (required). - /// Specifies the version of the selected output document format (required). /// The two-letter ISO-3166 country code for the country for which document is being retrieved (required). /// The e-invoicing mandate for the specified country (required). - public FetchDocumentsRequestMetadata(string workflowId = default(string), string dataFormat = default(string), decimal dataFormatVersion = default(decimal), string outputDataFormat = default(string), decimal outputDataFormatVersion = default(decimal), string countryCode = default(string), string countryMandate = default(string)) + public FetchDocumentsRequestMetadata(string workflowId = default(string), string dataFormat = default(string), decimal dataFormatVersion = default(decimal), string countryCode = default(string), string countryMandate = default(string)) { // to ensure "workflowId" is required (not null) if (workflowId == null) @@ -73,13 +71,6 @@ protected FetchDocumentsRequestMetadata() { } } this.DataFormat = dataFormat; this.DataFormatVersion = dataFormatVersion; - // to ensure "outputDataFormat" is required (not null) - if (outputDataFormat == null) - { - throw new ArgumentNullException("outputDataFormat is a required property for FetchDocumentsRequestMetadata and cannot be null"); - } - this.OutputDataFormat = outputDataFormat; - this.OutputDataFormatVersion = outputDataFormatVersion; // to ensure "countryCode" is required (not null) if (countryCode == null) { @@ -118,22 +109,6 @@ protected FetchDocumentsRequestMetadata() { } [DataMember(Name = "dataFormatVersion", IsRequired = true, EmitDefaultValue = true)] public decimal DataFormatVersion { get; set; } - /// - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. - /// - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. - /// ubl-invoice - [DataMember(Name = "outputDataFormat", IsRequired = true, EmitDefaultValue = true)] - public string OutputDataFormat { get; set; } - - /// - /// Specifies the version of the selected output document format - /// - /// Specifies the version of the selected output document format - /// 2.1 - [DataMember(Name = "outputDataFormatVersion", IsRequired = true, EmitDefaultValue = true)] - public decimal OutputDataFormatVersion { get; set; } - /// /// The two-letter ISO-3166 country code for the country for which document is being retrieved /// @@ -161,8 +136,6 @@ public override string ToString() sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); sb.Append(" DataFormat: ").Append(DataFormat).Append("\n"); sb.Append(" DataFormatVersion: ").Append(DataFormatVersion).Append("\n"); - sb.Append(" OutputDataFormat: ").Append(OutputDataFormat).Append("\n"); - sb.Append(" OutputDataFormatVersion: ").Append(OutputDataFormatVersion).Append("\n"); sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); sb.Append(" CountryMandate: ").Append(CountryMandate).Append("\n"); sb.Append("}\n"); diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/Mandate.cs b/src/Avalara.SDK/Model/EInvoicing/V1/Mandate.cs index ef05ecc..be7dd61 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/Mandate.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/Mandate.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// An object representing the country mandate + /// Mandate /// [DataContract(Name = "Mandate")] public partial class Mandate : IValidatableObject @@ -50,29 +50,19 @@ public partial class Mandate : IValidatableObject /// **[LEGACY]** This field is retained for backward compatibility. It is recommended to use `mandateId` instead. The `countryMandate` similar to the `mandateId` is comprised of the country code, mandate type, and the network or regulation type (for example, AU-B2G-PEPPOL). . /// Country code. /// Mandate description. - /// Indicates whether this mandate supported by the ELR API. + /// Indicates whether this mandate supported by the partner API. /// Mandate format. - /// The type of e-invoicing flow for this mandate. - /// Link to the documentation for this mandate's e-invoicing flow. - /// List of available media types for downloading invoices for this mandate. - /// Indicates whether this mandate supports inbound digital documents. /// Format and version used when inputting the data. - /// 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.. /// Workflow ID list. - public Mandate(string mandateId = default(string), string countryMandate = default(string), string countryCode = default(string), string description = default(string), bool supportedByELRAPI = default(bool), string mandateFormat = default(string), string eInvoicingFlow = default(string), string eInvoicingFlowDocumentationLink = default(string), List getInvoiceAvailableMediaType = default(List), string supportsInboundDigitalDocument = default(string), List inputDataFormats = default(List), List outputDataFormats = default(List), List workflowIds = default(List)) + public Mandate(string mandateId = default(string), string countryMandate = default(string), string countryCode = default(string), string description = default(string), bool supportedByPartnerAPI = default(bool), string mandateFormat = default(string), List inputDataFormats = default(List), List workflowIds = default(List)) { this.MandateId = mandateId; this.CountryMandate = countryMandate; this.CountryCode = countryCode; this.Description = description; - this.SupportedByELRAPI = supportedByELRAPI; + this.SupportedByPartnerAPI = supportedByPartnerAPI; this.MandateFormat = mandateFormat; - this.EInvoicingFlow = eInvoicingFlow; - this.EInvoicingFlowDocumentationLink = eInvoicingFlowDocumentationLink; - this.GetInvoiceAvailableMediaType = getInvoiceAvailableMediaType; - this.SupportsInboundDigitalDocument = supportsInboundDigitalDocument; this.InputDataFormats = inputDataFormats; - this.OutputDataFormats = outputDataFormats; this.WorkflowIds = workflowIds; } @@ -109,12 +99,12 @@ public partial class Mandate : IValidatableObject public string Description { get; set; } /// - /// Indicates whether this mandate supported by the ELR API + /// Indicates whether this mandate supported by the partner API /// - /// Indicates whether this mandate supported by the ELR API + /// Indicates whether this mandate supported by the partner API /// true - [DataMember(Name = "supportedByELRAPI", EmitDefaultValue = true)] - public bool SupportedByELRAPI { get; set; } + [DataMember(Name = "supportedByPartnerAPI", EmitDefaultValue = true)] + public bool SupportedByPartnerAPI { get; set; } /// /// Mandate format @@ -124,38 +114,6 @@ public partial class Mandate : IValidatableObject [DataMember(Name = "mandateFormat", EmitDefaultValue = false)] public string MandateFormat { get; set; } - /// - /// The type of e-invoicing flow for this mandate - /// - /// The type of e-invoicing flow for this mandate - /// Network - [DataMember(Name = "eInvoicingFlow", EmitDefaultValue = false)] - public string EInvoicingFlow { get; set; } - - /// - /// Link to the documentation for this mandate's e-invoicing flow - /// - /// Link to the documentation for this mandate's e-invoicing flow - /// https://documentation.example.com/flows/pt-b2c-pdf - [DataMember(Name = "eInvoicingFlowDocumentationLink", EmitDefaultValue = false)] - public string EInvoicingFlowDocumentationLink { get; set; } - - /// - /// List of available media types for downloading invoices for this mandate - /// - /// List of available media types for downloading invoices for this mandate - /// ["application/pdf","application/xml"] - [DataMember(Name = "getInvoiceAvailableMediaType", EmitDefaultValue = false)] - public List GetInvoiceAvailableMediaType { get; set; } - - /// - /// Indicates whether this mandate supports inbound digital documents - /// - /// Indicates whether this mandate supports inbound digital documents - /// TRUE - [DataMember(Name = "supportsInboundDigitalDocument", EmitDefaultValue = false)] - public string SupportsInboundDigitalDocument { get; set; } - /// /// Format and version used when inputting the data /// @@ -163,13 +121,6 @@ public partial class Mandate : IValidatableObject [DataMember(Name = "inputDataFormats", EmitDefaultValue = false)] public List InputDataFormats { get; set; } - /// - /// 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. - /// - /// 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. - [DataMember(Name = "outputDataFormats", EmitDefaultValue = false)] - public List OutputDataFormats { get; set; } - /// /// Workflow ID list /// @@ -189,14 +140,9 @@ public override string ToString() sb.Append(" CountryMandate: ").Append(CountryMandate).Append("\n"); sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" SupportedByELRAPI: ").Append(SupportedByELRAPI).Append("\n"); + sb.Append(" SupportedByPartnerAPI: ").Append(SupportedByPartnerAPI).Append("\n"); sb.Append(" MandateFormat: ").Append(MandateFormat).Append("\n"); - sb.Append(" EInvoicingFlow: ").Append(EInvoicingFlow).Append("\n"); - sb.Append(" EInvoicingFlowDocumentationLink: ").Append(EInvoicingFlowDocumentationLink).Append("\n"); - sb.Append(" GetInvoiceAvailableMediaType: ").Append(GetInvoiceAvailableMediaType).Append("\n"); - sb.Append(" SupportsInboundDigitalDocument: ").Append(SupportsInboundDigitalDocument).Append("\n"); sb.Append(" InputDataFormats: ").Append(InputDataFormats).Append("\n"); - sb.Append(" OutputDataFormats: ").Append(OutputDataFormats).Append("\n"); sb.Append(" WorkflowIds: ").Append(WorkflowIds).Append("\n"); sb.Append("}\n"); return sb.ToString(); diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/RequiredWhenField.cs b/src/Avalara.SDK/Model/EInvoicing/V1/RequiredWhenField.cs index bb6fd81..7079f61 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/RequiredWhenField.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/RequiredWhenField.cs @@ -38,7 +38,7 @@ namespace Avalara.SDK.Model.EInvoicing.V1 { /// - /// Mandates for which this field is required + /// RequiredWhenField /// [DataContract(Name = "RequiredWhenField")] public partial class RequiredWhenField : IValidatableObject diff --git a/src/Avalara.SDK/Model/EInvoicing/V1/SubmitDocumentMetadata.cs b/src/Avalara.SDK/Model/EInvoicing/V1/SubmitDocumentMetadata.cs index d98a168..16cdf06 100644 --- a/src/Avalara.SDK/Model/EInvoicing/V1/SubmitDocumentMetadata.cs +++ b/src/Avalara.SDK/Model/EInvoicing/V1/SubmitDocumentMetadata.cs @@ -54,11 +54,9 @@ protected SubmitDocumentMetadata() { } /// Specifies a unique ID for this workflow. (required). /// Specifies the data format for this workflow. (required). /// Specifies the data format version number. (required). - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate.. - /// Specifies the version of the selected output document format. /// The two-letter ISO-3166 country code for the country where the document is being submitted (required). /// The e-invoicing mandate for the specified country. (required). - public SubmitDocumentMetadata(string workflowId = default(string), string dataFormat = default(string), string dataFormatVersion = default(string), string outputDataFormat = default(string), string outputDataFormatVersion = default(string), string countryCode = default(string), string countryMandate = default(string)) + public SubmitDocumentMetadata(string workflowId = default(string), string dataFormat = default(string), string dataFormatVersion = default(string), string countryCode = default(string), string countryMandate = default(string)) { // to ensure "workflowId" is required (not null) if (workflowId == null) @@ -90,8 +88,6 @@ protected SubmitDocumentMetadata() { } throw new ArgumentNullException("countryMandate is a required property for SubmitDocumentMetadata and cannot be null"); } this.CountryMandate = countryMandate; - this.OutputDataFormat = outputDataFormat; - this.OutputDataFormatVersion = outputDataFormatVersion; } /// @@ -118,22 +114,6 @@ protected SubmitDocumentMetadata() { } [DataMember(Name = "dataFormatVersion", IsRequired = true, EmitDefaultValue = true)] public string DataFormatVersion { get; set; } - /// - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. - /// - /// Specifies the format of the output document to be generated for the recipient. This format should be chosen based on the recipient's preferences or requirements as defined by applicable e-invoicing regulations. When not specified for mandates that don't require a specific output format, the system will use the default format defined for that mandate. - /// ubl-invoice - [DataMember(Name = "outputDataFormat", EmitDefaultValue = false)] - public string OutputDataFormat { get; set; } - - /// - /// Specifies the version of the selected output document format - /// - /// Specifies the version of the selected output document format - /// 2.1 - [DataMember(Name = "outputDataFormatVersion", EmitDefaultValue = false)] - public string OutputDataFormatVersion { get; set; } - /// /// The two-letter ISO-3166 country code for the country where the document is being submitted /// @@ -161,8 +141,6 @@ public override string ToString() sb.Append(" WorkflowId: ").Append(WorkflowId).Append("\n"); sb.Append(" DataFormat: ").Append(DataFormat).Append("\n"); sb.Append(" DataFormatVersion: ").Append(DataFormatVersion).Append("\n"); - sb.Append(" OutputDataFormat: ").Append(OutputDataFormat).Append("\n"); - sb.Append(" OutputDataFormatVersion: ").Append(OutputDataFormatVersion).Append("\n"); sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); sb.Append(" CountryMandate: ").Append(CountryMandate).Append("\n"); sb.Append("}\n");