diff --git a/README.md b/README.md
index 8b1623d..810373d 100644
--- a/README.md
+++ b/README.md
@@ -286,6 +286,7 @@ Class | Method | HTTP request | Description
- [Avalara.SDK.model.A1099.V2.Form1099ListRequest](docs/A1099/V2/Form1099ListRequest.md)
- [Avalara.SDK.model.A1099.V2.Form1099Misc](docs/A1099/V2/Form1099Misc.md)
- [Avalara.SDK.model.A1099.V2.Form1099Nec](docs/A1099/V2/Form1099Nec.md)
+ - [Avalara.SDK.model.A1099.V2.Form1099Patr](docs/A1099/V2/Form1099Patr.md)
- [Avalara.SDK.model.A1099.V2.Form1099R](docs/A1099/V2/Form1099R.md)
- [Avalara.SDK.model.A1099.V2.Form1099StatusDetail](docs/A1099/V2/Form1099StatusDetail.md)
- [Avalara.SDK.model.A1099.V2.Form1099W2](docs/A1099/V2/Form1099W2.md)
diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md
index e7bf079..101536d 100644
--- a/docs/A1099/V2/CompaniesW9Api.md
+++ b/docs/A1099/V2/CompaniesW9Api.md
@@ -1,6 +1,6 @@
# CompaniesW9Api
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -49,7 +49,7 @@ public class Example {
CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "445307e1-57a7-46d0-93bd-99c9cc698790"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a6a6ff01-3320-4e78-b395-fba7d4a82be8"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
CompanyRequest companyRequest = new CompanyRequest(); // CompanyRequest | The company to create
try {
@@ -136,7 +136,7 @@ public class Example {
CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient);
String id = "id_example"; // String | The company to delete
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "983bdd19-d944-400f-a332-6dbed9977702"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "394fd272-5b46-4dd8-9f4d-fa3687176455"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
apiInstance.deleteCompany(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -228,7 +228,7 @@ public class Example {
String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.
Boolean count = true; // Boolean | If true, return the global count of elements in the collection.
Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true.
- String xCorrelationId = "c02a5d8b-6916-4d0c-9d97-e31bfc2020e1"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a2153a47-55d5-4573-9bf2-c280e1edec2c"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
PaginatedQueryResultModelCompanyResponse result = apiInstance.getCompanies(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient);
@@ -321,7 +321,7 @@ public class Example {
CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient);
String id = "id_example"; // String | Id of the company
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "ccf63d6b-d313-44b9-bc14-86486a6c1b19"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a15988e6-52f6-4890-9c78-db2f0530d800"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
CompanyResponse result = apiInstance.getCompany(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -409,7 +409,7 @@ public class Example {
CompaniesW9Api apiInstance = new CompaniesW9Api(apiClient);
String id = "id_example"; // String | The ID of the company to update
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "57991ce4-31f7-41c8-8517-e363058bc302"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "3ed0b33d-ac1c-4cf4-9bfc-db7796038ee8"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
CompanyRequest companyRequest = new CompanyRequest(); // CompanyRequest | The updated company data
try {
diff --git a/docs/A1099/V2/Form1042S.md b/docs/A1099/V2/Form1042S.md
index 3cad99e..17400b9 100644
--- a/docs/A1099/V2/Form1042S.md
+++ b/docs/A1099/V2/Form1042S.md
@@ -355,6 +355,7 @@ Form 1042-S: Foreign Person's U.S. Source Income Subject to Withholding
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1095B.md b/docs/A1099/V2/Form1095B.md
index e662af7..4dc6d89 100644
--- a/docs/A1099/V2/Form1095B.md
+++ b/docs/A1099/V2/Form1095B.md
@@ -78,6 +78,7 @@ Form 1095-B: Health Coverage
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1095C.md b/docs/A1099/V2/Form1095C.md
index 7191de4..60e716f 100644
--- a/docs/A1099/V2/Form1095C.md
+++ b/docs/A1099/V2/Form1095C.md
@@ -86,6 +86,7 @@ Form 1095-C: Employer-Provided Health Insurance Offer and Coverage
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Base.md b/docs/A1099/V2/Form1099Base.md
index 2b62528..27d1056 100644
--- a/docs/A1099/V2/Form1099Base.md
+++ b/docs/A1099/V2/Form1099Base.md
@@ -56,6 +56,7 @@
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Div.md b/docs/A1099/V2/Form1099Div.md
index 4a62650..108fdae 100644
--- a/docs/A1099/V2/Form1099Div.md
+++ b/docs/A1099/V2/Form1099Div.md
@@ -87,6 +87,7 @@ Form 1099-DIV: Dividends and Distributions *At least one of the f
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Int.md b/docs/A1099/V2/Form1099Int.md
index 4dd6dbc..47a8aaf 100644
--- a/docs/A1099/V2/Form1099Int.md
+++ b/docs/A1099/V2/Form1099Int.md
@@ -83,6 +83,7 @@ Form 1099-INT: Interest Imcome *At least one of the following amo
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099K.md b/docs/A1099/V2/Form1099K.md
index be297a5..3bf9f30 100644
--- a/docs/A1099/V2/Form1099K.md
+++ b/docs/A1099/V2/Form1099K.md
@@ -106,6 +106,7 @@ Form 1099-K: Payment Card and Third Party Network Transactions
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099ListRequest.md b/docs/A1099/V2/Form1099ListRequest.md
index bd7c3df..766fd90 100644
--- a/docs/A1099/V2/Form1099ListRequest.md
+++ b/docs/A1099/V2/Form1099ListRequest.md
@@ -7,7 +7,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**type** | [**TypeEnum**](#TypeEnum) | Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-R` * `W-2` | [optional] |
+|**type** | [**TypeEnum**](#TypeEnum) | Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-PATR` * `1099-R` * `W-2` | [optional] |
|**forms** | [**List<Get1099Form200Response>**](Get1099Form200Response.md) | | [optional] |
@@ -24,6 +24,7 @@
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Misc.md b/docs/A1099/V2/Form1099Misc.md
index 1327fdd..fcfa119 100644
--- a/docs/A1099/V2/Form1099Misc.md
+++ b/docs/A1099/V2/Form1099Misc.md
@@ -83,6 +83,7 @@ Form 1099-MISC: Miscellaneous Income *At least one of the following amounts m
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Nec.md b/docs/A1099/V2/Form1099Nec.md
index cfaa7d6..a556556 100644
--- a/docs/A1099/V2/Form1099Nec.md
+++ b/docs/A1099/V2/Form1099Nec.md
@@ -72,6 +72,7 @@ Form 1099-NEC: Nonemployee Compensation
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099Patr.md b/docs/A1099/V2/Form1099Patr.md
new file mode 100644
index 0000000..d7e86b3
--- /dev/null
+++ b/docs/A1099/V2/Form1099Patr.md
@@ -0,0 +1,103 @@
+
+
+# Form1099Patr
+
+Form 1099-PATR: Taxable Distributions Received From Cooperatives *At least one of the following amounts must be greater than zero:* Patronage Dividends, Nonpatronage Distributions, Per-Unit Retain Allocations, or Redeemed Nonqualified Notices. Federal Income Tax Withheld, when provided, must be less than the total of those four amounts. Specified Cooperative may only be set when at least one of Qualified Payments, Section 199A(a) Qualified Items, or Section 199A(a) SSTB Items is provided. Form 1099-PATR has no state or local withholding boxes. `stateAndLocalWithholding` is not supported for this form type on any endpoint: a supplied value is discarded rather than stored, and the field always reads back as `null`.
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**patronageDividends** | **Double** | Patronage dividends | [optional] |
+|**nonpatronageDistributions** | **Double** | Nonpatronage distributions | [optional] |
+|**perUnitRetainAllocations** | **Double** | Per-unit retain allocations | [optional] |
+|**federalIncomeTaxWithheld** | **Double** | Federal income tax withheld | [optional] |
+|**redeemedNonqualifiedNotices** | **Double** | Redeemed nonqualified notices | [optional] |
+|**section199AgDeduction** | **Double** | Section 199A(g) deduction | [optional] |
+|**qualifiedPayments** | **Double** | Qualified payments (Section 199A(b)(7)) | [optional] |
+|**section199AaQualifiedItems** | **Double** | Section 199A(a) qualified items | [optional] |
+|**section199AaSstbItems** | **Double** | Section 199A(a) SSTB items | [optional] |
+|**investmentCredit** | **Double** | Investment credit | [optional] |
+|**workOpportunityCredit** | **Double** | Work opportunity credit | [optional] |
+|**otherCreditsAndDeductions** | **Double** | Other credits and deductions | [optional] |
+|**specifiedCooperativeIndicator** | **Boolean** | Indicates the payer is a specified agricultural or horticultural cooperative | [optional] |
+|**type** | [**TypeEnum**](#TypeEnum) | Form type. | |
+|**id** | **String** | Form ID. Unique identifier set when the record is created. | [optional] [readonly] |
+|**issuerId** | **String** | Issuer ID - only required when creating forms | [optional] |
+|**issuerReferenceId** | **String** | Issuer Reference ID - only required when creating forms via $bulk-upsert | [optional] |
+|**issuerTin** | **String** | Issuer TIN - readonly | [optional] |
+|**taxYear** | **Integer** | Tax Year - only required when creating forms via $bulk-upsert | [optional] |
+|**referenceId** | **String** | Internal reference ID. Never shown to any agency or recipient. | [optional] |
+|**tin** | **String** | Recipient's Federal Tax Identification Number (TIN). | [optional] |
+|**recipientName** | **String** | DEPRECATED: Use `businessName` for businesses; use `firstName`, `middleName`, `lastName`, and `suffixName` for individuals. | [optional] |
+|**address** | **String** | Address. | |
+|**address2** | **String** | Address line 2. | [optional] |
+|**city** | **String** | City. | |
+|**state** | **String** | Two-letter US state or Canadian province code (required for US/CA addresses). | [optional] |
+|**zip** | **String** | ZIP/postal code. | [optional] |
+|**email** | **String** | Recipient's Contact email address. | [optional] |
+|**nonUsProvince** | **String** | Province or region for non-US/CA addresses. | [optional] |
+|**countryCode** | **String** | Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes. | |
+|**federalEfileDate** | **LocalDate** | Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled. | [optional] |
+|**postalMail** | **Boolean** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] |
+|**stateEfileDate** | **LocalDate** | Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled. | [optional] |
+|**recipientEdeliveryDate** | **LocalDate** | Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled. | [optional] |
+|**tinMatch** | **Boolean** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] |
+|**addressVerification** | **Boolean** | Boolean indicating that address verification should be scheduled for this form | [optional] |
+|**stateAndLocalWithholding** | [**StateAndLocalWithholding**](StateAndLocalWithholding.md) | State and local withholding information | [optional] |
+|**federalEfileStatus** | [**Form1099StatusDetail**](Form1099StatusDetail.md) | Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states) | [optional] [readonly] |
+|**stateEfileStatus** | [**List<StateEfileStatusDetail>**](StateEfileStatusDetail.md) | State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state | [optional] [readonly] |
+|**postalMailStatus** | [**Form1099StatusDetail**](Form1099StatusDetail.md) | Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered | [optional] [readonly] |
+|**tinMatchStatus** | [**Form1099StatusDetail**](Form1099StatusDetail.md) | TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued | [optional] [readonly] |
+|**addressVerificationStatus** | [**Form1099StatusDetail**](Form1099StatusDetail.md) | Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted | [optional] [readonly] |
+|**eDeliveryStatus** | [**Form1099StatusDetail**](Form1099StatusDetail.md) | EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend) | [optional] [readonly] |
+|**validationErrors** | [**List<ValidationError>**](ValidationError.md) | Validation errors | [optional] [readonly] |
+|**createdAt** | **OffsetDateTime** | Date time when the record was created. | [optional] [readonly] |
+|**updatedAt** | **OffsetDateTime** | Date time when the record was last updated. | [optional] [readonly] |
+|**tinType** | [**TinTypeEnum**](#TinTypeEnum) | Recipient classification. The platform is transitioning from tax identifier classifications to recipient entity classifications. New values represent recipient entity types and should be preferred. Deprecated values represent identifier formats and remain supported for backward compatibility only. Available values: - INDIVIDUAL: Recipient is an individual - BUSINESS: Recipient is a business - UNKNOWN: Recipient classification is unknown - EIN: (Deprecated - use BUSINESS) Employer Identification Number - SSN: (Deprecated - use INDIVIDUAL) Social Security Number - ITIN: (Deprecated - use INDIVIDUAL) Individual Taxpayer Identification Number - ATIN: (Deprecated - use INDIVIDUAL) Adoption Taxpayer Identification Number | [optional] |
+|**businessName** | **String** | Business name. Required when the recipient of the form is a business; should only be used for businesses. | [optional] |
+|**businessName2** | **String** | Business name line 2. Should only be used for businesses. | [optional] |
+|**firstName** | **String** | First name. Required when the recipient of the form is an individual; should only be used for individuals. | [optional] |
+|**middleName** | **String** | Middle name. Should only be used for individuals. | [optional] |
+|**lastName** | **String** | Last name. Required when the recipient of the form is an individual; should only be used for individuals. | [optional] |
+|**suffixName** | **String** | Suffix name. Should only be used for individuals. | [optional] |
+|**recipientSecondName** | **String** | DEPRECATED: Use `businessName2` instead. | [optional] |
+|**accountNumber** | **String** | Account number | [optional] |
+|**officeCode** | **String** | Office code | [optional] |
+|**noTin** | **Boolean** | No TIN indicator | [optional] |
+|**secondTinNotice** | **Boolean** | Second TIN notice | [optional] |
+
+
+
+## Enum: TypeEnum
+
+| Name | Value |
+|---- | -----|
+| _1042_S | "1042-S" |
+| _1095_B | "1095-B" |
+| _1095_C | "1095-C" |
+| _1099_DIV | "1099-DIV" |
+| _1099_INT | "1099-INT" |
+| _1099_K | "1099-K" |
+| _1099_MISC | "1099-MISC" |
+| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
+| _1099_R | "1099-R" |
+| W_2 | "W-2" |
+
+
+
+## Enum: TinTypeEnum
+
+| Name | Value |
+|---- | -----|
+| EIN | "EIN" |
+| SSN | "SSN" |
+| ITIN | "ITIN" |
+| ATIN | "ATIN" |
+| INDIVIDUAL | "INDIVIDUAL" |
+| BUSINESS | "BUSINESS" |
+| UNKNOWN | "UNKNOWN" |
+
+
+
diff --git a/docs/A1099/V2/Form1099R.md b/docs/A1099/V2/Form1099R.md
index f343c5d..5fac075 100644
--- a/docs/A1099/V2/Form1099R.md
+++ b/docs/A1099/V2/Form1099R.md
@@ -161,6 +161,7 @@ Form 1099-R: Distributions From Pensions, Annuities, Retirement or Profit-Sharin
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Form1099W2.md b/docs/A1099/V2/Form1099W2.md
index c4340fb..bdc9572 100644
--- a/docs/A1099/V2/Form1099W2.md
+++ b/docs/A1099/V2/Form1099W2.md
@@ -99,6 +99,7 @@ Form W-2: Wage and Tax Statement.
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md
index a0a768f..bd7a804 100644
--- a/docs/A1099/V2/Forms1099Api.md
+++ b/docs/A1099/V2/Forms1099Api.md
@@ -1,6 +1,6 @@
# Forms1099Api
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -52,7 +52,7 @@ public class Example {
Forms1099Api apiInstance = new Forms1099Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
Boolean dryRun = false; // Boolean | defaults to false. If true, it will NOT change the DB. It will just return a report of what would've have been changed in the DB
- String xCorrelationId = "7285c0b2-0432-4f2f-8d4e-2027526d39c5"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "6627a0c7-bb12-4635-a6c1-4ed0a47025b2"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
Form1099ListRequest form1099ListRequest = new Form1099ListRequest(); // Form1099ListRequest |
try {
@@ -141,7 +141,7 @@ public class Example {
Forms1099Api apiInstance = new Forms1099Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "23791bc3-1ee7-4dc9-a782-7ebe65332730"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "b7ae861c-748e-4beb-905a-23aa9a8de53b"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
Get1099Form200Response get1099Form200Response = new Get1099Form200Response(); // Get1099Form200Response |
try {
@@ -229,7 +229,7 @@ public class Example {
Forms1099Api apiInstance = new Forms1099Api(apiClient);
String id = "id_example"; // String | The unique identifier of the desired form to delete.
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "d970b833-acc0-4278-8e3f-a950755e5260"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "4d3d01b9-704d-4ece-b9e4-e8a08f0e4632"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
apiInstance.delete1099Form(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -317,7 +317,7 @@ public class Example {
Forms1099Api apiInstance = new Forms1099Api(apiClient);
String id = "id_example"; // String |
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "28cce977-9cdb-4520-bf8c-89b9d8195133"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "5c54b9db-a216-4b2f-b99a-d462ed919919"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
Get1099Form200Response result = apiInstance.get1099Form(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -406,7 +406,7 @@ public class Example {
String id = "id_example"; // String | The ID of the form
String avalaraVersion = "2.0.0"; // String | API version
Boolean markEdelivered = true; // Boolean | Optional boolean that if set indicates that the form should be marked as having been successfully edelivered
- String xCorrelationId = "2d57149a-71b6-4123-9ba3-49c09d4df472"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "47a1d2f5-fa5a-4f7f-8666-898ec3187379"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
File result = apiInstance.get1099FormPdf(id, avalaraVersion, markEdelivered, xCorrelationId, xAvalaraClient);
@@ -500,7 +500,7 @@ public class Example {
String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.
Boolean count = true; // Boolean | If true, return the global count of elements in the collection.
Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true.
- String xCorrelationId = "e3fd9737-b458-4a1d-9874-d3990ecff109"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a6799653-d5d4-41a1-bc1c-e57835067aa4"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
PaginatedQueryResultModelForm1099Base result = apiInstance.list1099Forms(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient);
@@ -593,7 +593,7 @@ public class Example {
Forms1099Api apiInstance = new Forms1099Api(apiClient);
String id = "id_example"; // String |
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "07227337-490f-48f8-97d6-b0aaac48d3e6"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "4bea2d70-6fa5-4abd-9806-092513a95c09"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
Get1099Form200Response get1099Form200Response = new Get1099Form200Response(); // Get1099Form200Response |
try {
diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md
index da7a59a..0474ab5 100644
--- a/docs/A1099/V2/FormsW9Api.md
+++ b/docs/A1099/V2/FormsW9Api.md
@@ -1,6 +1,6 @@
# FormsW9Api
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -53,7 +53,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "c842afc6-dce2-410c-a95e-c71b5236892f"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "b4e7a6bd-3cf3-42b3-b4d1-85e75a36551f"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
CreateAndSendW9FormEmailRequest createAndSendW9FormEmailRequest = new CreateAndSendW9FormEmailRequest(); // CreateAndSendW9FormEmailRequest | Form to be created
try {
@@ -139,7 +139,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "3f573288-3491-46f3-8c49-896d5778a376"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "25133801-8936-44a6-98f5-b428d3f1641e"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
CreateW9FormRequest createW9FormRequest = new CreateW9FormRequest(); // CreateW9FormRequest | Form to be created
try {
@@ -226,7 +226,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | ID of the form to delete
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "48db4467-ed91-463f-899d-9f505667d9de"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "b74d3de7-4369-404c-a15d-908739fcfd25"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
apiInstance.deleteW9Form(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -311,7 +311,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | ID of the form
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "b3f1951f-f9f7-484a-9a90-b805a5641766"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "e443fee3-1400-4fc8-b2fe-5c5f2d67188f"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
CreateW9Form201Response result = apiInstance.getW9Form(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -397,7 +397,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | Id of the form
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "1286516d-cd84-4daf-9381-4f20acea9619"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "2e3f783a-26b4-45d6-9974-cfcdea77dba7"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
File result = apiInstance.getW9FormPdf(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -489,7 +489,7 @@ public class Example {
String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.
Boolean count = true; // Boolean | If true, return the global count of elements in the collection.
Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true.
- String xCorrelationId = "e482d129-5ce4-4b4a-a4fd-c360b92c6a77"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "3b5e8acc-77ca-435a-abbc-deba7135f40b"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
PaginatedQueryResultModelW9FormBaseResponse result = apiInstance.listW9Forms(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient);
@@ -580,7 +580,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | The ID of the W9/W4/W8 form.
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "234cbc16-88cc-4fbb-85a6-07bc770529d3"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a42cbc86-5ba8-433d-ba44-58235e240d18"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
CreateW9Form201Response result = apiInstance.sendW9FormEmail(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -668,7 +668,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | ID of the form to update
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "cdef88f5-1b1d-42fd-a2c3-01d14e9d7cb9"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "af1dfcf6-b1fb-4956-ba5b-a76a698d7f66"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
CreateW9FormRequest createW9FormRequest = new CreateW9FormRequest(); // CreateW9FormRequest | Form to be updated
try {
@@ -757,7 +757,7 @@ public class Example {
FormsW9Api apiInstance = new FormsW9Api(apiClient);
String id = "id_example"; // String | Id of the form
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "dccfb6c1-f301-4c9a-89ae-baa7065ab8f2"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "20e8951d-b7e8-4941-be1f-3b9ef04ebdcc"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
File _file = new File("/path/to/file"); // File |
try {
diff --git a/docs/A1099/V2/Get1099Form200Response.md b/docs/A1099/V2/Get1099Form200Response.md
index ecfc264..6c32caa 100644
--- a/docs/A1099/V2/Get1099Form200Response.md
+++ b/docs/A1099/V2/Get1099Form200Response.md
@@ -149,6 +149,18 @@
|**excessGoldenParachutePayments** | **Double** | Excess golden parachute payments - Available only for tax year 2025 and later | [optional] |
|**nonqualifiedDeferredCompensation** | **Double** | Nonqualified deferred compensation | [optional] |
|**nonemployeeCompensation** | **Double** | Nonemployee compensation. Required if DirectSalesIndicator is false. | |
+|**patronageDividends** | **Double** | Patronage dividends | [optional] |
+|**nonpatronageDistributions** | **Double** | Nonpatronage distributions | [optional] |
+|**perUnitRetainAllocations** | **Double** | Per-unit retain allocations | [optional] |
+|**redeemedNonqualifiedNotices** | **Double** | Redeemed nonqualified notices | [optional] |
+|**section199AgDeduction** | **Double** | Section 199A(g) deduction | [optional] |
+|**qualifiedPayments** | **Double** | Qualified payments (Section 199A(b)(7)) | [optional] |
+|**section199AaQualifiedItems** | **Double** | Section 199A(a) qualified items | [optional] |
+|**section199AaSstbItems** | **Double** | Section 199A(a) SSTB items | [optional] |
+|**investmentCredit** | **Double** | Investment credit | [optional] |
+|**workOpportunityCredit** | **Double** | Work opportunity credit | [optional] |
+|**otherCreditsAndDeductions** | **Double** | Other credits and deductions | [optional] |
+|**specifiedCooperativeIndicator** | **Boolean** | Indicates the payer is a specified agricultural or horticultural cooperative | [optional] |
|**grossDistribution** | **Double** | Gross distribution | [optional] |
|**taxableAmount** | **Double** | Taxable amount | [optional] |
|**taxableAmountNotDetermined** | **Boolean** | Taxable amount not determined | [optional] |
@@ -471,6 +483,7 @@
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/IrisFormBase.md b/docs/A1099/V2/IrisFormBase.md
index 575b7db..cbbb929 100644
--- a/docs/A1099/V2/IrisFormBase.md
+++ b/docs/A1099/V2/IrisFormBase.md
@@ -67,6 +67,7 @@
| _1099_K | "1099-K" |
| _1099_MISC | "1099-MISC" |
| _1099_NEC | "1099-NEC" |
+| _1099_PATR | "1099-PATR" |
| _1099_R | "1099-R" |
| W_2 | "W-2" |
diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md
index 911ac8b..e2edde9 100644
--- a/docs/A1099/V2/Issuers1099Api.md
+++ b/docs/A1099/V2/Issuers1099Api.md
@@ -1,6 +1,6 @@
# Issuers1099Api
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -49,7 +49,7 @@ public class Example {
Issuers1099Api apiInstance = new Issuers1099Api(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "14e92c5a-0e21-4dcd-8e3f-59111c335ba3"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "1516e2f1-02f3-43af-afd4-392db3192b04"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
IssuerRequest issuerRequest = new IssuerRequest(); // IssuerRequest | The issuer to create
try {
@@ -136,7 +136,7 @@ public class Example {
Issuers1099Api apiInstance = new Issuers1099Api(apiClient);
String id = "id_example"; // String | Id of the issuer to delete
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "cc721fe4-7f1e-4228-87d2-9351c780d9e9"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "56cf179b-af17-4c42-8061-a8491fb9c4e9"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
apiInstance.deleteIssuer(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -221,7 +221,7 @@ public class Example {
Issuers1099Api apiInstance = new Issuers1099Api(apiClient);
String id = "id_example"; // String | Id of the issuer to retrieve
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "1c49f829-d029-4e67-8d87-c87a83033413"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a908e994-d311-4d60-9820-9b0739828e8a"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
IssuerResponse result = apiInstance.getIssuer(id, avalaraVersion, xCorrelationId, xAvalaraClient);
@@ -312,7 +312,7 @@ public class Example {
String $orderBy = "$orderBy_example"; // String | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC.
Boolean count = true; // Boolean | If true, return the global count of elements in the collection.
Boolean countOnly = true; // Boolean | If true, return ONLY the global count of elements in the collection. It only applies when count=true.
- String xCorrelationId = "7845d8ad-09ab-4ba4-a644-bc06bcb806b0"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "149439c7-4a09-460d-9d0d-ef39ae99864d"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
PaginatedQueryResultModelIssuerResponse result = apiInstance.getIssuers(avalaraVersion, $filter, $top, $skip, $orderBy, count, countOnly, xCorrelationId, xAvalaraClient);
@@ -405,7 +405,7 @@ public class Example {
Issuers1099Api apiInstance = new Issuers1099Api(apiClient);
String id = "id_example"; // String | Id of the issuer to update
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "484d0024-b885-4e06-aac7-bf3ab4daba3b"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "d8e70cf2-9795-4468-a7e2-16b1e6faac48"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
IssuerRequest issuerRequest = new IssuerRequest(); // IssuerRequest | The issuer to update
try {
diff --git a/docs/A1099/V2/JobsApi.md b/docs/A1099/V2/JobsApi.md
index f076a25..974f90a 100644
--- a/docs/A1099/V2/JobsApi.md
+++ b/docs/A1099/V2/JobsApi.md
@@ -1,6 +1,6 @@
# JobsApi
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -46,7 +46,7 @@ public class Example {
JobsApi apiInstance = new JobsApi(apiClient);
String id = "id_example"; // String | Job id obtained from other API responses, like `/1099/bulk-upsert`.
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "010a01be-bbf4-407e-afff-6151b0580377"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "29e0724f-104f-4657-9374-7e8dc99054ef"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
try {
JobResponse result = apiInstance.getJob(id, avalaraVersion, xCorrelationId, xAvalaraClient);
diff --git a/docs/A1099/V2/TinMatchesApi.md b/docs/A1099/V2/TinMatchesApi.md
index dfc1257..181459e 100644
--- a/docs/A1099/V2/TinMatchesApi.md
+++ b/docs/A1099/V2/TinMatchesApi.md
@@ -1,6 +1,6 @@
# TinMatchesApi
-All URIs are relative to *https://api-ava1099.edge.qa.us-east-1.aws.avalara.io/avalara1099*
+All URIs are relative to *https://api.sbx.avalara.com/avalara1099*
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -45,7 +45,7 @@ public class Example {
TinMatchesApi apiInstance = new TinMatchesApi(apiClient);
String avalaraVersion = "2.0.0"; // String | API version
- String xCorrelationId = "86993e01-0897-4667-b8f3-bac8c0081c4c"; // String | Unique correlation Id in a GUID format
+ String xCorrelationId = "a4f97e62-2087-4274-b92f-39377f73fb20"; // String | Unique correlation Id in a GUID format
String xAvalaraClient = "Swagger UI; 22.1.0"; // String | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .
RealTimeTinMatchRequest realTimeTinMatchRequest = new RealTimeTinMatchRequest(); // RealTimeTinMatchRequest | Required data to perform TIN match
try {
diff --git a/pom.xml b/pom.xml
index b11b56e..2e9d8cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
avalara-sdk
jar
avalara-sdk
- 26.8.0
+ 26.9.0
https://github.com/avadev/Avalara-SDK-Java
OpenAPI Java
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java
index d3b05de..d56003a 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/CompaniesW9Api.java
@@ -1089,7 +1089,7 @@ public UpdateCompanyRequest getUpdateCompanyRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java
index d8963a3..16e2a7e 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/Forms1099Api.java
@@ -1509,7 +1509,7 @@ public Update1099FormRequest getUpdate1099FormRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java
index 139773f..581f408 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/FormsW9Api.java
@@ -1841,7 +1841,7 @@ public UploadW9FilesRequest getUploadW9FilesRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
index 26a80e6..569fd32 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/Issuers1099Api.java
@@ -1078,7 +1078,7 @@ public UpdateIssuerRequest getUpdateIssuerRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
index 216af4f..2e82181 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/JobsApi.java
@@ -275,7 +275,7 @@ public GetJobRequest getGetJobRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/A1099/V2/TinMatchesApi.java b/src/main/java/Avalara/SDK/api/A1099/V2/TinMatchesApi.java
index d1d6cfb..184167c 100644
--- a/src/main/java/Avalara/SDK/api/A1099/V2/TinMatchesApi.java
+++ b/src/main/java/Avalara/SDK/api/A1099/V2/TinMatchesApi.java
@@ -274,7 +274,7 @@ public PerformRealTimeTinMatchRequest getPerformRealTimeTinMatchRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/CodeListsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/CodeListsApi.java
index 81cbb8f..a9e4239 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/CodeListsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/CodeListsApi.java
@@ -537,7 +537,7 @@ public GetCodeListListRequest getGetCodeListListRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
index 451ba3a..6217670 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DataInputFieldsApi.java
@@ -294,7 +294,7 @@ public GetDataInputFieldsRequest getGetDataInputFieldsRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
index 65b2a0f..25bfa08 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/DocumentsApi.java
@@ -1113,7 +1113,7 @@ public SubmitDocumentRequest getSubmitDocumentRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
index 9632e1a..dc64994 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/InteropApi.java
@@ -300,7 +300,7 @@ public SubmitInteropDocumentRequest getSubmitInteropDocumentRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
index d2ddfe3..88753a4 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/MandatesApi.java
@@ -521,7 +521,7 @@ public GetMandatesRequest getGetMandatesRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/ReportsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/ReportsApi.java
index d6b5782..4a5a2c1 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/ReportsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/ReportsApi.java
@@ -705,7 +705,7 @@ public GetReportsRequest getGetReportsRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
index 72fd125..8522400 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/SubscriptionsApi.java
@@ -873,7 +873,7 @@ public ListWebhookSubscriptionsRequest getListWebhookSubscriptionsRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
index 631e7a7..03956ec 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TaxIdentifiersApi.java
@@ -489,7 +489,7 @@ public ValidateTaxIdentifierRequest getValidateTaxIdentifierRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
index 0ffda3a..e693055 100644
--- a/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
+++ b/src/main/java/Avalara/SDK/api/EInvoicing/V1/TradingPartnersApi.java
@@ -1993,7 +1993,7 @@ public UpdateTradingPartnerRequest getUpdateTradingPartnerRequest() {
private void SetConfiguration(ApiClient client) {
if (client == null) throw new MissingFormatArgumentException("client");
- this.localVarApiClient.setSdkVersion("26.7.0");
+ this.localVarApiClient.setSdkVersion("26.9.0");
}
}
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1042S.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1042S.java
index 153fe9a..4ee7021 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1042S.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1042S.java
@@ -983,6 +983,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1095B.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1095B.java
index 110cfee..047c02a 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1095B.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1095B.java
@@ -178,6 +178,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1095C.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1095C.java
index c8561a9..1c2c77a 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1095C.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1095C.java
@@ -199,6 +199,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Base.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Base.java
index 54cb71a..d356c3c 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Base.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Base.java
@@ -87,6 +87,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Div.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Div.java
index 5444380..dd797ee 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Div.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Div.java
@@ -163,6 +163,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Int.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Int.java
index 480bfff..fc13e7a 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Int.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Int.java
@@ -147,6 +147,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099K.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099K.java
index 0b2b283..4b484a2 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099K.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099K.java
@@ -271,6 +271,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099ListRequest.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099ListRequest.java
index 9167250..02336c1 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099ListRequest.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099ListRequest.java
@@ -61,7 +61,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class Form1099ListRequest {
/**
- * Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-R` * `W-2`
+ * Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-PATR` * `1099-R` * `W-2`
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
@@ -81,6 +81,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
@@ -145,7 +147,7 @@ public Form1099ListRequest type(TypeEnum type) {
}
/**
- * Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-R` * `W-2`
+ * Available form types: * `1042-S` * `1095-B` * `1095-C` * `1099-DIV` * `1099-INT` * `1099-K` * `1099-MISC` * `1099-NEC` * `1099-PATR` * `1099-R` * `W-2`
* @return type
*/
@javax.annotation.Nullable
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Misc.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Misc.java
index d67ddb7..db01bb9 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Misc.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Misc.java
@@ -147,6 +147,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Nec.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Nec.java
index 917401a..0c470cb 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Nec.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Nec.java
@@ -103,6 +103,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Patr.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Patr.java
new file mode 100644
index 0000000..83353c1
--- /dev/null
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099Patr.java
@@ -0,0 +1,2013 @@
+/*
+ * AvaTax Software Development Kit for Java (JRE)
+ *
+ * (c) 2004-2025 Avalara, Inc.
+ *
+ * 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
+ *
+ * > **Note:** You must have an active Avalara 1099 & W-9 subscription to authenticate and use these APIs. If you don't have a subscription, please contact our [Sales team](https://www.avalara.com/us/en/products/1099/request-a-demo.html). ## Authentication The Avalara 1099 & W-9 API uses **Bearer Token Authentication**. To authenticate, acquire a bearer token using a **Client ID** and **Client Secret** that you generate in the Avalara 1099 & W-9 web application. The sample cURL commands below use **production** URLs. For **sandbox**, replace them with the sandbox URLs listed in the Sandbox Environment table. ### Option 1 — Client ID and Client Secret (recommended) **Step 1: Create API credentials in the Avalara 1099 & W-9 web app** For a full walkthrough, see the [Avalara 1099 & W-9 integration guide](https://developer.avalara.com/products/avalara-1099-and-w9/integration-guides/1099-and-w-9/siu2796410674799/). > **Note:** To enable credential creation you must first enter a valid company address in **Account Settings > Account** and enable two-factor authentication in **Account Settings > Security**. 1. In Avalara 1099 & W-9, open **Account Settings** (gear icon, top-right of any page) and select **API**. 2. Click **Create new credentials** (a valid company address and 2FA are required). 3. Copy your **Client Id** and **Client Secret** securely — they will not be shown again after you leave the screen. **Step 2: Request a bearer token** ```bash curl -X POST 'https://identity.avalara.com/connect/token' \\ --header 'Content-Type: application/x-www-form-urlencoded' \\ --data-urlencode 'grant_type=client_credentials' \\ --data-urlencode 'client_id={{client_id}}' \\ --data-urlencode 'client_secret={{client_secret}}' ``` ### Option 2 — Account ID and License Key If your organization already uses other Avalara products (AvaTax, CertCapture) and has access to the logged-in area of Avalara.com, you can generate the bearer token using your **Account ID** and **License Key**. > **Note:** If you already have a license key for other Avalara products you can reuse it. Generating a new key will reset any previously created key. 1. Log in to Avalara.com. 2. Go to **Settings → License and API Keys**. 3. Click **Generate New Key**. 4. Note your **Account ID** from the Account menu. ```bash curl -X POST 'https://identity.avalara.com/connect/token' \\ --header 'Content-Type: application/x-www-form-urlencoded' \\ --data-urlencode 'grant_type=client_credentials' \\ --data-urlencode 'client_id={{accountId}}' \\ --data-urlencode 'client_secret={{licenseKey}}' ``` ### Using and renewing the bearer token Include the token in the `Authorization` header on every request: ```http Authorization: Bearer {access_token} ``` Tokens expire after the number of seconds in the `expires_in` field of the token response. Your integration must renew the token before it expires. **Example token response** ```json { \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI...\", \"expires_in\": 3600, \"token_type\": \"Bearer\", \"scope\": \"avatax_api iam-ds\" } ``` ### Sandbox Environment Use the same steps as production, replacing the base URLs: | Purpose | Production | Sandbox | | --- | --- | --- | | Account & License Key management (web) | `https://www.avalara.com` | `https://sandbox.admin.avalara.com` | | Account & License Key management (API) | `https://rest.avatax.com` | `https://sandbox-rest.avatax.com` | | Token generation | `https://identity.avalara.com` | `https://ai-sbx.avlr.sh` | ## Environments #### Production - **Avalara 1099 API URL:** [`https://api.avalara.com/avalara1099`](https://api.avalara.com/avalara1099) - **Identity Token URL:** [`https://identity.avalara.com/connect/token`](https://identity.avalara.com/connect/token) #### Sandbox - **Avalara 1099 API URL:** [`https://api.sbx.avalara.com/avalara1099`](https://api.sbx.avalara.com/avalara1099) - **Identity Token URL:** [`https://ai-sbx.avlr.sh/connect/token`](https://ai-sbx.avlr.sh/connect/token) --- ## API & SDK Documentation [Avalara 1099 API Reference](https://developer.avalara.com/api-reference/avalara1099/avalara1099/) [Avalara SDKs](https://developer.avalara.com/sdk/) [Swagger](https://api.avalara.com/avalara1099/swagger/index.html?api-version=2.0)
+ *
+ * @author Sachin Baijal
+ * @author Jonathan Wenger
+ * @copyright 2004-2025 Avalara, Inc.
+ * @license https://www.apache.org/licenses/LICENSE-2.0
+ * @link https://github.com/avadev/Avalara-SDK-Java
+ */
+
+package Avalara.SDK.model.A1099.V2;
+
+import java.util.Objects;
+import Avalara.SDK.model.A1099.V2.Form1099StatusDetail;
+import Avalara.SDK.model.A1099.V2.StateAndLocalWithholding;
+import Avalara.SDK.model.A1099.V2.StateEfileStatusDetail;
+import Avalara.SDK.model.A1099.V2.ValidationError;
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.time.LocalDate;
+import java.time.OffsetDateTime;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonDeserializationContext;
+import com.google.gson.JsonDeserializer;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.TypeAdapter;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import Avalara.SDK.JSON;
+
+/**
+ * Form 1099-PATR: Taxable Distributions Received From Cooperatives *At least one of the following amounts must be greater than zero:* Patronage Dividends, Nonpatronage Distributions, Per-Unit Retain Allocations, or Redeemed Nonqualified Notices. Federal Income Tax Withheld, when provided, must be less than the total of those four amounts. Specified Cooperative may only be set when at least one of Qualified Payments, Section 199A(a) Qualified Items, or Section 199A(a) SSTB Items is provided. Form 1099-PATR has no state or local withholding boxes. `stateAndLocalWithholding` is not supported for this form type on any endpoint: a supplied value is discarded rather than stored, and the field always reads back as `null`.
+ */
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
+public class Form1099Patr {
+ public static final String SERIALIZED_NAME_PATRONAGE_DIVIDENDS = "patronageDividends";
+ @SerializedName(SERIALIZED_NAME_PATRONAGE_DIVIDENDS)
+ private Double patronageDividends;
+
+ public static final String SERIALIZED_NAME_NONPATRONAGE_DISTRIBUTIONS = "nonpatronageDistributions";
+ @SerializedName(SERIALIZED_NAME_NONPATRONAGE_DISTRIBUTIONS)
+ private Double nonpatronageDistributions;
+
+ public static final String SERIALIZED_NAME_PER_UNIT_RETAIN_ALLOCATIONS = "perUnitRetainAllocations";
+ @SerializedName(SERIALIZED_NAME_PER_UNIT_RETAIN_ALLOCATIONS)
+ private Double perUnitRetainAllocations;
+
+ public static final String SERIALIZED_NAME_FEDERAL_INCOME_TAX_WITHHELD = "federalIncomeTaxWithheld";
+ @SerializedName(SERIALIZED_NAME_FEDERAL_INCOME_TAX_WITHHELD)
+ private Double federalIncomeTaxWithheld;
+
+ public static final String SERIALIZED_NAME_REDEEMED_NONQUALIFIED_NOTICES = "redeemedNonqualifiedNotices";
+ @SerializedName(SERIALIZED_NAME_REDEEMED_NONQUALIFIED_NOTICES)
+ private Double redeemedNonqualifiedNotices;
+
+ public static final String SERIALIZED_NAME_SECTION199_AG_DEDUCTION = "section199AgDeduction";
+ @SerializedName(SERIALIZED_NAME_SECTION199_AG_DEDUCTION)
+ private Double section199AgDeduction;
+
+ public static final String SERIALIZED_NAME_QUALIFIED_PAYMENTS = "qualifiedPayments";
+ @SerializedName(SERIALIZED_NAME_QUALIFIED_PAYMENTS)
+ private Double qualifiedPayments;
+
+ public static final String SERIALIZED_NAME_SECTION199_AA_QUALIFIED_ITEMS = "section199AaQualifiedItems";
+ @SerializedName(SERIALIZED_NAME_SECTION199_AA_QUALIFIED_ITEMS)
+ private Double section199AaQualifiedItems;
+
+ public static final String SERIALIZED_NAME_SECTION199_AA_SSTB_ITEMS = "section199AaSstbItems";
+ @SerializedName(SERIALIZED_NAME_SECTION199_AA_SSTB_ITEMS)
+ private Double section199AaSstbItems;
+
+ public static final String SERIALIZED_NAME_INVESTMENT_CREDIT = "investmentCredit";
+ @SerializedName(SERIALIZED_NAME_INVESTMENT_CREDIT)
+ private Double investmentCredit;
+
+ public static final String SERIALIZED_NAME_WORK_OPPORTUNITY_CREDIT = "workOpportunityCredit";
+ @SerializedName(SERIALIZED_NAME_WORK_OPPORTUNITY_CREDIT)
+ private Double workOpportunityCredit;
+
+ public static final String SERIALIZED_NAME_OTHER_CREDITS_AND_DEDUCTIONS = "otherCreditsAndDeductions";
+ @SerializedName(SERIALIZED_NAME_OTHER_CREDITS_AND_DEDUCTIONS)
+ private Double otherCreditsAndDeductions;
+
+ public static final String SERIALIZED_NAME_SPECIFIED_COOPERATIVE_INDICATOR = "specifiedCooperativeIndicator";
+ @SerializedName(SERIALIZED_NAME_SPECIFIED_COOPERATIVE_INDICATOR)
+ private Boolean specifiedCooperativeIndicator;
+
+ /**
+ * Form type.
+ */
+ @JsonAdapter(TypeEnum.Adapter.class)
+ public enum TypeEnum {
+ _1042_S("1042-S"),
+
+ _1095_B("1095-B"),
+
+ _1095_C("1095-C"),
+
+ _1099_DIV("1099-DIV"),
+
+ _1099_INT("1099-INT"),
+
+ _1099_K("1099-K"),
+
+ _1099_MISC("1099-MISC"),
+
+ _1099_NEC("1099-NEC"),
+
+ _1099_PATR("1099-PATR"),
+
+ _1099_R("1099-R"),
+
+ W_2("W-2");
+
+ private String value;
+
+ TypeEnum(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ public static TypeEnum fromValue(String value) {
+ for (TypeEnum b : TypeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+
+ public static class Adapter extends TypeAdapter {
+ @Override
+ public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
+ jsonWriter.value(enumeration.getValue());
+ }
+
+ @Override
+ public TypeEnum read(final JsonReader jsonReader) throws IOException {
+ String value = jsonReader.nextString();
+ return TypeEnum.fromValue(value);
+ }
+ }
+
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ String value = jsonElement.getAsString();
+ TypeEnum.fromValue(value);
+ }
+ }
+
+ public static final String SERIALIZED_NAME_TYPE = "type";
+ @SerializedName(SERIALIZED_NAME_TYPE)
+ private TypeEnum type;
+
+ public static final String SERIALIZED_NAME_ID = "id";
+ @SerializedName(SERIALIZED_NAME_ID)
+ private String id;
+
+ public static final String SERIALIZED_NAME_ISSUER_ID = "issuerId";
+ @SerializedName(SERIALIZED_NAME_ISSUER_ID)
+ private String issuerId;
+
+ public static final String SERIALIZED_NAME_ISSUER_REFERENCE_ID = "issuerReferenceId";
+ @SerializedName(SERIALIZED_NAME_ISSUER_REFERENCE_ID)
+ private String issuerReferenceId;
+
+ public static final String SERIALIZED_NAME_ISSUER_TIN = "issuerTin";
+ @SerializedName(SERIALIZED_NAME_ISSUER_TIN)
+ private String issuerTin;
+
+ public static final String SERIALIZED_NAME_TAX_YEAR = "taxYear";
+ @SerializedName(SERIALIZED_NAME_TAX_YEAR)
+ private Integer taxYear;
+
+ public static final String SERIALIZED_NAME_REFERENCE_ID = "referenceId";
+ @SerializedName(SERIALIZED_NAME_REFERENCE_ID)
+ private String referenceId;
+
+ public static final String SERIALIZED_NAME_TIN = "tin";
+ @SerializedName(SERIALIZED_NAME_TIN)
+ private String tin;
+
+ public static final String SERIALIZED_NAME_RECIPIENT_NAME = "recipientName";
+ @Deprecated
+ @SerializedName(SERIALIZED_NAME_RECIPIENT_NAME)
+ private String recipientName;
+
+ public static final String SERIALIZED_NAME_ADDRESS = "address";
+ @SerializedName(SERIALIZED_NAME_ADDRESS)
+ private String address;
+
+ public static final String SERIALIZED_NAME_ADDRESS2 = "address2";
+ @SerializedName(SERIALIZED_NAME_ADDRESS2)
+ private String address2;
+
+ public static final String SERIALIZED_NAME_CITY = "city";
+ @SerializedName(SERIALIZED_NAME_CITY)
+ private String city;
+
+ public static final String SERIALIZED_NAME_STATE = "state";
+ @SerializedName(SERIALIZED_NAME_STATE)
+ private String state;
+
+ public static final String SERIALIZED_NAME_ZIP = "zip";
+ @SerializedName(SERIALIZED_NAME_ZIP)
+ private String zip;
+
+ public static final String SERIALIZED_NAME_EMAIL = "email";
+ @SerializedName(SERIALIZED_NAME_EMAIL)
+ private String email;
+
+ public static final String SERIALIZED_NAME_NON_US_PROVINCE = "nonUsProvince";
+ @SerializedName(SERIALIZED_NAME_NON_US_PROVINCE)
+ private String nonUsProvince;
+
+ public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode";
+ @SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
+ private String countryCode;
+
+ public static final String SERIALIZED_NAME_FEDERAL_EFILE_DATE = "federalEfileDate";
+ @SerializedName(SERIALIZED_NAME_FEDERAL_EFILE_DATE)
+ private LocalDate federalEfileDate;
+
+ public static final String SERIALIZED_NAME_POSTAL_MAIL = "postalMail";
+ @SerializedName(SERIALIZED_NAME_POSTAL_MAIL)
+ private Boolean postalMail;
+
+ public static final String SERIALIZED_NAME_STATE_EFILE_DATE = "stateEfileDate";
+ @SerializedName(SERIALIZED_NAME_STATE_EFILE_DATE)
+ private LocalDate stateEfileDate;
+
+ public static final String SERIALIZED_NAME_RECIPIENT_EDELIVERY_DATE = "recipientEdeliveryDate";
+ @SerializedName(SERIALIZED_NAME_RECIPIENT_EDELIVERY_DATE)
+ private LocalDate recipientEdeliveryDate;
+
+ public static final String SERIALIZED_NAME_TIN_MATCH = "tinMatch";
+ @SerializedName(SERIALIZED_NAME_TIN_MATCH)
+ private Boolean tinMatch;
+
+ public static final String SERIALIZED_NAME_ADDRESS_VERIFICATION = "addressVerification";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_VERIFICATION)
+ private Boolean addressVerification;
+
+ public static final String SERIALIZED_NAME_STATE_AND_LOCAL_WITHHOLDING = "stateAndLocalWithholding";
+ @SerializedName(SERIALIZED_NAME_STATE_AND_LOCAL_WITHHOLDING)
+ private StateAndLocalWithholding stateAndLocalWithholding;
+
+ public static final String SERIALIZED_NAME_FEDERAL_EFILE_STATUS = "federalEfileStatus";
+ @SerializedName(SERIALIZED_NAME_FEDERAL_EFILE_STATUS)
+ private Form1099StatusDetail federalEfileStatus;
+
+ public static final String SERIALIZED_NAME_STATE_EFILE_STATUS = "stateEfileStatus";
+ @SerializedName(SERIALIZED_NAME_STATE_EFILE_STATUS)
+ private List stateEfileStatus;
+
+ public static final String SERIALIZED_NAME_POSTAL_MAIL_STATUS = "postalMailStatus";
+ @SerializedName(SERIALIZED_NAME_POSTAL_MAIL_STATUS)
+ private Form1099StatusDetail postalMailStatus;
+
+ public static final String SERIALIZED_NAME_TIN_MATCH_STATUS = "tinMatchStatus";
+ @SerializedName(SERIALIZED_NAME_TIN_MATCH_STATUS)
+ private Form1099StatusDetail tinMatchStatus;
+
+ public static final String SERIALIZED_NAME_ADDRESS_VERIFICATION_STATUS = "addressVerificationStatus";
+ @SerializedName(SERIALIZED_NAME_ADDRESS_VERIFICATION_STATUS)
+ private Form1099StatusDetail addressVerificationStatus;
+
+ public static final String SERIALIZED_NAME_E_DELIVERY_STATUS = "eDeliveryStatus";
+ @SerializedName(SERIALIZED_NAME_E_DELIVERY_STATUS)
+ private Form1099StatusDetail eDeliveryStatus;
+
+ public static final String SERIALIZED_NAME_VALIDATION_ERRORS = "validationErrors";
+ @SerializedName(SERIALIZED_NAME_VALIDATION_ERRORS)
+ private List validationErrors;
+
+ public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
+ @SerializedName(SERIALIZED_NAME_CREATED_AT)
+ private OffsetDateTime createdAt;
+
+ public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
+ @SerializedName(SERIALIZED_NAME_UPDATED_AT)
+ private OffsetDateTime updatedAt;
+
+ /**
+ * Recipient classification. The platform is transitioning from tax identifier classifications to recipient entity classifications. New values represent recipient entity types and should be preferred. Deprecated values represent identifier formats and remain supported for backward compatibility only. Available values: - INDIVIDUAL: Recipient is an individual - BUSINESS: Recipient is a business - UNKNOWN: Recipient classification is unknown - EIN: (Deprecated - use BUSINESS) Employer Identification Number - SSN: (Deprecated - use INDIVIDUAL) Social Security Number - ITIN: (Deprecated - use INDIVIDUAL) Individual Taxpayer Identification Number - ATIN: (Deprecated - use INDIVIDUAL) Adoption Taxpayer Identification Number
+ */
+ @JsonAdapter(TinTypeEnum.Adapter.class)
+ public enum TinTypeEnum {
+ EIN("EIN"),
+
+ SSN("SSN"),
+
+ ITIN("ITIN"),
+
+ ATIN("ATIN"),
+
+ INDIVIDUAL("INDIVIDUAL"),
+
+ BUSINESS("BUSINESS"),
+
+ UNKNOWN("UNKNOWN");
+
+ private String value;
+
+ TinTypeEnum(String value) {
+ this.value = value;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ public static TinTypeEnum fromValue(String value) {
+ for (TinTypeEnum b : TinTypeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ return null;
+ }
+
+ public static class Adapter extends TypeAdapter {
+ @Override
+ public void write(final JsonWriter jsonWriter, final TinTypeEnum enumeration) throws IOException {
+ jsonWriter.value(enumeration.getValue());
+ }
+
+ @Override
+ public TinTypeEnum read(final JsonReader jsonReader) throws IOException {
+ String value = jsonReader.nextString();
+ return TinTypeEnum.fromValue(value);
+ }
+ }
+
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ String value = jsonElement.getAsString();
+ TinTypeEnum.fromValue(value);
+ }
+ }
+
+ public static final String SERIALIZED_NAME_TIN_TYPE = "tinType";
+ @SerializedName(SERIALIZED_NAME_TIN_TYPE)
+ private TinTypeEnum tinType;
+
+ public static final String SERIALIZED_NAME_BUSINESS_NAME = "businessName";
+ @SerializedName(SERIALIZED_NAME_BUSINESS_NAME)
+ private String businessName;
+
+ public static final String SERIALIZED_NAME_BUSINESS_NAME2 = "businessName2";
+ @SerializedName(SERIALIZED_NAME_BUSINESS_NAME2)
+ private String businessName2;
+
+ public static final String SERIALIZED_NAME_FIRST_NAME = "firstName";
+ @SerializedName(SERIALIZED_NAME_FIRST_NAME)
+ private String firstName;
+
+ public static final String SERIALIZED_NAME_MIDDLE_NAME = "middleName";
+ @SerializedName(SERIALIZED_NAME_MIDDLE_NAME)
+ private String middleName;
+
+ public static final String SERIALIZED_NAME_LAST_NAME = "lastName";
+ @SerializedName(SERIALIZED_NAME_LAST_NAME)
+ private String lastName;
+
+ public static final String SERIALIZED_NAME_SUFFIX_NAME = "suffixName";
+ @SerializedName(SERIALIZED_NAME_SUFFIX_NAME)
+ private String suffixName;
+
+ public static final String SERIALIZED_NAME_RECIPIENT_SECOND_NAME = "recipientSecondName";
+ @Deprecated
+ @SerializedName(SERIALIZED_NAME_RECIPIENT_SECOND_NAME)
+ private String recipientSecondName;
+
+ public static final String SERIALIZED_NAME_ACCOUNT_NUMBER = "accountNumber";
+ @SerializedName(SERIALIZED_NAME_ACCOUNT_NUMBER)
+ private String accountNumber;
+
+ public static final String SERIALIZED_NAME_OFFICE_CODE = "officeCode";
+ @SerializedName(SERIALIZED_NAME_OFFICE_CODE)
+ private String officeCode;
+
+ public static final String SERIALIZED_NAME_NO_TIN = "noTin";
+ @SerializedName(SERIALIZED_NAME_NO_TIN)
+ private Boolean noTin;
+
+ public static final String SERIALIZED_NAME_SECOND_TIN_NOTICE = "secondTinNotice";
+ @SerializedName(SERIALIZED_NAME_SECOND_TIN_NOTICE)
+ private Boolean secondTinNotice;
+
+ public Form1099Patr() {
+ }
+
+ public Form1099Patr(
+ String id,
+ Form1099StatusDetail federalEfileStatus,
+ List stateEfileStatus,
+ Form1099StatusDetail postalMailStatus,
+ Form1099StatusDetail tinMatchStatus,
+ Form1099StatusDetail addressVerificationStatus,
+ Form1099StatusDetail eDeliveryStatus,
+ List validationErrors,
+ OffsetDateTime createdAt,
+ OffsetDateTime updatedAt
+ ) {
+ this();
+ this.id = id;
+ this.federalEfileStatus = federalEfileStatus;
+ this.stateEfileStatus = stateEfileStatus;
+ this.postalMailStatus = postalMailStatus;
+ this.tinMatchStatus = tinMatchStatus;
+ this.addressVerificationStatus = addressVerificationStatus;
+ this.eDeliveryStatus = eDeliveryStatus;
+ this.validationErrors = validationErrors;
+ this.createdAt = createdAt;
+ this.updatedAt = updatedAt;
+ }
+
+ public Form1099Patr patronageDividends(Double patronageDividends) {
+ this.patronageDividends = patronageDividends;
+ return this;
+ }
+
+ /**
+ * Patronage dividends
+ * @return patronageDividends
+ */
+ @javax.annotation.Nullable
+ public Double getPatronageDividends() {
+ return patronageDividends;
+ }
+
+ public void setPatronageDividends(Double patronageDividends) {
+ this.patronageDividends = patronageDividends;
+ }
+
+
+ public Form1099Patr nonpatronageDistributions(Double nonpatronageDistributions) {
+ this.nonpatronageDistributions = nonpatronageDistributions;
+ return this;
+ }
+
+ /**
+ * Nonpatronage distributions
+ * @return nonpatronageDistributions
+ */
+ @javax.annotation.Nullable
+ public Double getNonpatronageDistributions() {
+ return nonpatronageDistributions;
+ }
+
+ public void setNonpatronageDistributions(Double nonpatronageDistributions) {
+ this.nonpatronageDistributions = nonpatronageDistributions;
+ }
+
+
+ public Form1099Patr perUnitRetainAllocations(Double perUnitRetainAllocations) {
+ this.perUnitRetainAllocations = perUnitRetainAllocations;
+ return this;
+ }
+
+ /**
+ * Per-unit retain allocations
+ * @return perUnitRetainAllocations
+ */
+ @javax.annotation.Nullable
+ public Double getPerUnitRetainAllocations() {
+ return perUnitRetainAllocations;
+ }
+
+ public void setPerUnitRetainAllocations(Double perUnitRetainAllocations) {
+ this.perUnitRetainAllocations = perUnitRetainAllocations;
+ }
+
+
+ public Form1099Patr federalIncomeTaxWithheld(Double federalIncomeTaxWithheld) {
+ this.federalIncomeTaxWithheld = federalIncomeTaxWithheld;
+ return this;
+ }
+
+ /**
+ * Federal income tax withheld
+ * @return federalIncomeTaxWithheld
+ */
+ @javax.annotation.Nullable
+ public Double getFederalIncomeTaxWithheld() {
+ return federalIncomeTaxWithheld;
+ }
+
+ public void setFederalIncomeTaxWithheld(Double federalIncomeTaxWithheld) {
+ this.federalIncomeTaxWithheld = federalIncomeTaxWithheld;
+ }
+
+
+ public Form1099Patr redeemedNonqualifiedNotices(Double redeemedNonqualifiedNotices) {
+ this.redeemedNonqualifiedNotices = redeemedNonqualifiedNotices;
+ return this;
+ }
+
+ /**
+ * Redeemed nonqualified notices
+ * @return redeemedNonqualifiedNotices
+ */
+ @javax.annotation.Nullable
+ public Double getRedeemedNonqualifiedNotices() {
+ return redeemedNonqualifiedNotices;
+ }
+
+ public void setRedeemedNonqualifiedNotices(Double redeemedNonqualifiedNotices) {
+ this.redeemedNonqualifiedNotices = redeemedNonqualifiedNotices;
+ }
+
+
+ public Form1099Patr section199AgDeduction(Double section199AgDeduction) {
+ this.section199AgDeduction = section199AgDeduction;
+ return this;
+ }
+
+ /**
+ * Section 199A(g) deduction
+ * @return section199AgDeduction
+ */
+ @javax.annotation.Nullable
+ public Double getSection199AgDeduction() {
+ return section199AgDeduction;
+ }
+
+ public void setSection199AgDeduction(Double section199AgDeduction) {
+ this.section199AgDeduction = section199AgDeduction;
+ }
+
+
+ public Form1099Patr qualifiedPayments(Double qualifiedPayments) {
+ this.qualifiedPayments = qualifiedPayments;
+ return this;
+ }
+
+ /**
+ * Qualified payments (Section 199A(b)(7))
+ * @return qualifiedPayments
+ */
+ @javax.annotation.Nullable
+ public Double getQualifiedPayments() {
+ return qualifiedPayments;
+ }
+
+ public void setQualifiedPayments(Double qualifiedPayments) {
+ this.qualifiedPayments = qualifiedPayments;
+ }
+
+
+ public Form1099Patr section199AaQualifiedItems(Double section199AaQualifiedItems) {
+ this.section199AaQualifiedItems = section199AaQualifiedItems;
+ return this;
+ }
+
+ /**
+ * Section 199A(a) qualified items
+ * @return section199AaQualifiedItems
+ */
+ @javax.annotation.Nullable
+ public Double getSection199AaQualifiedItems() {
+ return section199AaQualifiedItems;
+ }
+
+ public void setSection199AaQualifiedItems(Double section199AaQualifiedItems) {
+ this.section199AaQualifiedItems = section199AaQualifiedItems;
+ }
+
+
+ public Form1099Patr section199AaSstbItems(Double section199AaSstbItems) {
+ this.section199AaSstbItems = section199AaSstbItems;
+ return this;
+ }
+
+ /**
+ * Section 199A(a) SSTB items
+ * @return section199AaSstbItems
+ */
+ @javax.annotation.Nullable
+ public Double getSection199AaSstbItems() {
+ return section199AaSstbItems;
+ }
+
+ public void setSection199AaSstbItems(Double section199AaSstbItems) {
+ this.section199AaSstbItems = section199AaSstbItems;
+ }
+
+
+ public Form1099Patr investmentCredit(Double investmentCredit) {
+ this.investmentCredit = investmentCredit;
+ return this;
+ }
+
+ /**
+ * Investment credit
+ * @return investmentCredit
+ */
+ @javax.annotation.Nullable
+ public Double getInvestmentCredit() {
+ return investmentCredit;
+ }
+
+ public void setInvestmentCredit(Double investmentCredit) {
+ this.investmentCredit = investmentCredit;
+ }
+
+
+ public Form1099Patr workOpportunityCredit(Double workOpportunityCredit) {
+ this.workOpportunityCredit = workOpportunityCredit;
+ return this;
+ }
+
+ /**
+ * Work opportunity credit
+ * @return workOpportunityCredit
+ */
+ @javax.annotation.Nullable
+ public Double getWorkOpportunityCredit() {
+ return workOpportunityCredit;
+ }
+
+ public void setWorkOpportunityCredit(Double workOpportunityCredit) {
+ this.workOpportunityCredit = workOpportunityCredit;
+ }
+
+
+ public Form1099Patr otherCreditsAndDeductions(Double otherCreditsAndDeductions) {
+ this.otherCreditsAndDeductions = otherCreditsAndDeductions;
+ return this;
+ }
+
+ /**
+ * Other credits and deductions
+ * @return otherCreditsAndDeductions
+ */
+ @javax.annotation.Nullable
+ public Double getOtherCreditsAndDeductions() {
+ return otherCreditsAndDeductions;
+ }
+
+ public void setOtherCreditsAndDeductions(Double otherCreditsAndDeductions) {
+ this.otherCreditsAndDeductions = otherCreditsAndDeductions;
+ }
+
+
+ public Form1099Patr specifiedCooperativeIndicator(Boolean specifiedCooperativeIndicator) {
+ this.specifiedCooperativeIndicator = specifiedCooperativeIndicator;
+ return this;
+ }
+
+ /**
+ * Indicates the payer is a specified agricultural or horticultural cooperative
+ * @return specifiedCooperativeIndicator
+ */
+ @javax.annotation.Nullable
+ public Boolean getSpecifiedCooperativeIndicator() {
+ return specifiedCooperativeIndicator;
+ }
+
+ public void setSpecifiedCooperativeIndicator(Boolean specifiedCooperativeIndicator) {
+ this.specifiedCooperativeIndicator = specifiedCooperativeIndicator;
+ }
+
+
+ public Form1099Patr type(TypeEnum type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Form type.
+ * @return type
+ */
+ @javax.annotation.Nonnull
+ public TypeEnum getType() {
+ return type;
+ }
+
+ public void setType(TypeEnum type) {
+ this.type = type;
+ }
+
+
+ /**
+ * Form ID. Unique identifier set when the record is created.
+ * @return id
+ */
+ @javax.annotation.Nullable
+ public String getId() {
+ return id;
+ }
+
+
+
+ public Form1099Patr issuerId(String issuerId) {
+ this.issuerId = issuerId;
+ return this;
+ }
+
+ /**
+ * Issuer ID - only required when creating forms
+ * @return issuerId
+ */
+ @javax.annotation.Nullable
+ public String getIssuerId() {
+ return issuerId;
+ }
+
+ public void setIssuerId(String issuerId) {
+ this.issuerId = issuerId;
+ }
+
+
+ public Form1099Patr issuerReferenceId(String issuerReferenceId) {
+ this.issuerReferenceId = issuerReferenceId;
+ return this;
+ }
+
+ /**
+ * Issuer Reference ID - only required when creating forms via $bulk-upsert
+ * @return issuerReferenceId
+ */
+ @javax.annotation.Nullable
+ public String getIssuerReferenceId() {
+ return issuerReferenceId;
+ }
+
+ public void setIssuerReferenceId(String issuerReferenceId) {
+ this.issuerReferenceId = issuerReferenceId;
+ }
+
+
+ public Form1099Patr issuerTin(String issuerTin) {
+ this.issuerTin = issuerTin;
+ return this;
+ }
+
+ /**
+ * Issuer TIN - readonly
+ * @return issuerTin
+ */
+ @javax.annotation.Nullable
+ public String getIssuerTin() {
+ return issuerTin;
+ }
+
+ public void setIssuerTin(String issuerTin) {
+ this.issuerTin = issuerTin;
+ }
+
+
+ public Form1099Patr taxYear(Integer taxYear) {
+ this.taxYear = taxYear;
+ return this;
+ }
+
+ /**
+ * Tax Year - only required when creating forms via $bulk-upsert
+ * @return taxYear
+ */
+ @javax.annotation.Nullable
+ public Integer getTaxYear() {
+ return taxYear;
+ }
+
+ public void setTaxYear(Integer taxYear) {
+ this.taxYear = taxYear;
+ }
+
+
+ public Form1099Patr referenceId(String referenceId) {
+ this.referenceId = referenceId;
+ return this;
+ }
+
+ /**
+ * Internal reference ID. Never shown to any agency or recipient.
+ * @return referenceId
+ */
+ @javax.annotation.Nullable
+ public String getReferenceId() {
+ return referenceId;
+ }
+
+ public void setReferenceId(String referenceId) {
+ this.referenceId = referenceId;
+ }
+
+
+ public Form1099Patr tin(String tin) {
+ this.tin = tin;
+ return this;
+ }
+
+ /**
+ * Recipient's Federal Tax Identification Number (TIN).
+ * @return tin
+ */
+ @javax.annotation.Nullable
+ public String getTin() {
+ return tin;
+ }
+
+ public void setTin(String tin) {
+ this.tin = tin;
+ }
+
+
+ @Deprecated
+ public Form1099Patr recipientName(String recipientName) {
+ this.recipientName = recipientName;
+ return this;
+ }
+
+ /**
+ * DEPRECATED: Use `businessName` for businesses; use `firstName`, `middleName`, `lastName`, and `suffixName` for individuals.
+ * @return recipientName
+ * @deprecated
+ */
+ @Deprecated
+ @javax.annotation.Nullable
+ public String getRecipientName() {
+ return recipientName;
+ }
+
+ @Deprecated
+ public void setRecipientName(String recipientName) {
+ this.recipientName = recipientName;
+ }
+
+
+ public Form1099Patr address(String address) {
+ this.address = address;
+ return this;
+ }
+
+ /**
+ * Address.
+ * @return address
+ */
+ @javax.annotation.Nullable
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address;
+ }
+
+
+ public Form1099Patr address2(String address2) {
+ this.address2 = address2;
+ return this;
+ }
+
+ /**
+ * Address line 2.
+ * @return address2
+ */
+ @javax.annotation.Nullable
+ public String getAddress2() {
+ return address2;
+ }
+
+ public void setAddress2(String address2) {
+ this.address2 = address2;
+ }
+
+
+ public Form1099Patr city(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * City.
+ * @return city
+ */
+ @javax.annotation.Nullable
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+
+ public Form1099Patr state(String state) {
+ this.state = state;
+ return this;
+ }
+
+ /**
+ * Two-letter US state or Canadian province code (required for US/CA addresses).
+ * @return state
+ */
+ @javax.annotation.Nullable
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+
+ public Form1099Patr zip(String zip) {
+ this.zip = zip;
+ return this;
+ }
+
+ /**
+ * ZIP/postal code.
+ * @return zip
+ */
+ @javax.annotation.Nullable
+ public String getZip() {
+ return zip;
+ }
+
+ public void setZip(String zip) {
+ this.zip = zip;
+ }
+
+
+ public Form1099Patr email(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * Recipient's Contact email address.
+ * @return email
+ */
+ @javax.annotation.Nullable
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
+ public Form1099Patr nonUsProvince(String nonUsProvince) {
+ this.nonUsProvince = nonUsProvince;
+ return this;
+ }
+
+ /**
+ * Province or region for non-US/CA addresses.
+ * @return nonUsProvince
+ */
+ @javax.annotation.Nullable
+ public String getNonUsProvince() {
+ return nonUsProvince;
+ }
+
+ public void setNonUsProvince(String nonUsProvince) {
+ this.nonUsProvince = nonUsProvince;
+ }
+
+
+ public Form1099Patr countryCode(String countryCode) {
+ this.countryCode = countryCode;
+ return this;
+ }
+
+ /**
+ * Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.
+ * @return countryCode
+ */
+ @javax.annotation.Nullable
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
+ }
+
+
+ public Form1099Patr federalEfileDate(LocalDate federalEfileDate) {
+ this.federalEfileDate = federalEfileDate;
+ return this;
+ }
+
+ /**
+ * Date when federal e-filing should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
+ * @return federalEfileDate
+ */
+ @javax.annotation.Nullable
+ public LocalDate getFederalEfileDate() {
+ return federalEfileDate;
+ }
+
+ public void setFederalEfileDate(LocalDate federalEfileDate) {
+ this.federalEfileDate = federalEfileDate;
+ }
+
+
+ public Form1099Patr postalMail(Boolean postalMail) {
+ this.postalMail = postalMail;
+ return this;
+ }
+
+ /**
+ * Boolean indicating that postal mailing to the recipient should be scheduled for this form
+ * @return postalMail
+ */
+ @javax.annotation.Nullable
+ public Boolean getPostalMail() {
+ return postalMail;
+ }
+
+ public void setPostalMail(Boolean postalMail) {
+ this.postalMail = postalMail;
+ }
+
+
+ public Form1099Patr stateEfileDate(LocalDate stateEfileDate) {
+ this.stateEfileDate = stateEfileDate;
+ return this;
+ }
+
+ /**
+ * Date when state e-filing should be scheduled. Must be on or after federalEfileDate. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
+ * @return stateEfileDate
+ */
+ @javax.annotation.Nullable
+ public LocalDate getStateEfileDate() {
+ return stateEfileDate;
+ }
+
+ public void setStateEfileDate(LocalDate stateEfileDate) {
+ this.stateEfileDate = stateEfileDate;
+ }
+
+
+ public Form1099Patr recipientEdeliveryDate(LocalDate recipientEdeliveryDate) {
+ this.recipientEdeliveryDate = recipientEdeliveryDate;
+ return this;
+ }
+
+ /**
+ * Date when recipient e-delivery should be scheduled. If set between current date and beginning of blackout period, scheduled to that date. If in the past or blackout period, scheduled to next available date. For blackout period information, see https://www.track1099.com/info/IRS_info. Set to null to leave unscheduled.
+ * @return recipientEdeliveryDate
+ */
+ @javax.annotation.Nullable
+ public LocalDate getRecipientEdeliveryDate() {
+ return recipientEdeliveryDate;
+ }
+
+ public void setRecipientEdeliveryDate(LocalDate recipientEdeliveryDate) {
+ this.recipientEdeliveryDate = recipientEdeliveryDate;
+ }
+
+
+ public Form1099Patr tinMatch(Boolean tinMatch) {
+ this.tinMatch = tinMatch;
+ return this;
+ }
+
+ /**
+ * Boolean indicating that TIN Matching should be scheduled for this form
+ * @return tinMatch
+ */
+ @javax.annotation.Nullable
+ public Boolean getTinMatch() {
+ return tinMatch;
+ }
+
+ public void setTinMatch(Boolean tinMatch) {
+ this.tinMatch = tinMatch;
+ }
+
+
+ public Form1099Patr addressVerification(Boolean addressVerification) {
+ this.addressVerification = addressVerification;
+ return this;
+ }
+
+ /**
+ * Boolean indicating that address verification should be scheduled for this form
+ * @return addressVerification
+ */
+ @javax.annotation.Nullable
+ public Boolean getAddressVerification() {
+ return addressVerification;
+ }
+
+ public void setAddressVerification(Boolean addressVerification) {
+ this.addressVerification = addressVerification;
+ }
+
+
+ public Form1099Patr stateAndLocalWithholding(StateAndLocalWithholding stateAndLocalWithholding) {
+ this.stateAndLocalWithholding = stateAndLocalWithholding;
+ return this;
+ }
+
+ /**
+ * State and local withholding information
+ * @return stateAndLocalWithholding
+ */
+ @javax.annotation.Nullable
+ public StateAndLocalWithholding getStateAndLocalWithholding() {
+ return stateAndLocalWithholding;
+ }
+
+ public void setStateAndLocalWithholding(StateAndLocalWithholding stateAndLocalWithholding) {
+ this.stateAndLocalWithholding = stateAndLocalWithholding;
+ }
+
+
+ /**
+ * Federal e-file status. Available values: - unscheduled: Form has not been scheduled for federal e-filing - scheduled: Form is scheduled for federal e-filing - airlock: Form is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - sent: Form has been sent to the IRS - accepted: Form was accepted by the IRS - corrected_scheduled: Correction is scheduled to be sent - corrected_airlock: Correction is in process of being uploaded to the IRS (forms exist in this state for a very short period and cannot be updated while in this state) - corrected: A correction has been sent to the IRS - corrected_accepted: Correction was accepted by the IRS - rejected: Form was rejected by the IRS - corrected_rejected: Correction was rejected by the IRS - held: Form is held and will not be submitted to IRS (used for certain forms submitted only to states)
+ * @return federalEfileStatus
+ */
+ @javax.annotation.Nullable
+ public Form1099StatusDetail getFederalEfileStatus() {
+ return federalEfileStatus;
+ }
+
+
+
+ /**
+ * State e-file status. Available values: - unscheduled: Form has not been scheduled for state e-filing - scheduled: Form is scheduled for state e-filing - airlocked: Form is in process of being uploaded to the state - sent: Form has been sent to the state - rejected: Form was rejected by the state - accepted: Form was accepted by the state - corrected_scheduled: Correction is scheduled to be sent - corrected_airlocked: Correction is in process of being uploaded to the state - corrected_sent: Correction has been sent to the state - corrected_rejected: Correction was rejected by the state - corrected_accepted: Correction was accepted by the state
+ * @return stateEfileStatus
+ */
+ @javax.annotation.Nullable
+ public List getStateEfileStatus() {
+ return stateEfileStatus;
+ }
+
+
+
+ /**
+ * Postal mail to recipient status. Available values: - unscheduled: Postal mail has not been scheduled - pending: Postal mail is pending to be sent - sent: Postal mail has been sent - delivered: Postal mail has been delivered
+ * @return postalMailStatus
+ */
+ @javax.annotation.Nullable
+ public Form1099StatusDetail getPostalMailStatus() {
+ return postalMailStatus;
+ }
+
+
+
+ /**
+ * TIN Match status. Available values: - none: TIN matching has not been performed - pending: TIN matching request is pending - matched: Name/TIN combination matches IRS records - unknown: TIN is missing, invalid, or request contains errors - rejected: Name/TIN combination does not match IRS records or TIN not currently issued
+ * @return tinMatchStatus
+ */
+ @javax.annotation.Nullable
+ public Form1099StatusDetail getTinMatchStatus() {
+ return tinMatchStatus;
+ }
+
+
+
+ /**
+ * Address verification status. Available values: - unknown: Address verification has not been checked - pending: Address verification is in progress - failed: Address verification failed - incomplete: Address verification is incomplete - unchanged: User declined address changes - verified: Address has been verified and accepted
+ * @return addressVerificationStatus
+ */
+ @javax.annotation.Nullable
+ public Form1099StatusDetail getAddressVerificationStatus() {
+ return addressVerificationStatus;
+ }
+
+
+
+ /**
+ * EDelivery status. Available values: - unscheduled: E-delivery has not been scheduled - scheduled: E-delivery is scheduled to be sent - sent: E-delivery has been sent to recipient - bounced: E-delivery bounced back (invalid email) - refused: E-delivery was refused by recipient - bad_verify: E-delivery failed verification - accepted: E-delivery was accepted by recipient - bad_verify_limit: E-delivery failed verification limit reached - second_delivery: Second e-delivery attempt - undelivered: E-delivery is undelivered (temporary state allowing resend)
+ * @return eDeliveryStatus
+ */
+ @javax.annotation.Nullable
+ public Form1099StatusDetail geteDeliveryStatus() {
+ return eDeliveryStatus;
+ }
+
+
+
+ /**
+ * Validation errors
+ * @return validationErrors
+ */
+ @javax.annotation.Nullable
+ public List getValidationErrors() {
+ return validationErrors;
+ }
+
+
+
+ /**
+ * Date time when the record was created.
+ * @return createdAt
+ */
+ @javax.annotation.Nullable
+ public OffsetDateTime getCreatedAt() {
+ return createdAt;
+ }
+
+
+
+ /**
+ * Date time when the record was last updated.
+ * @return updatedAt
+ */
+ @javax.annotation.Nullable
+ public OffsetDateTime getUpdatedAt() {
+ return updatedAt;
+ }
+
+
+
+ public Form1099Patr tinType(TinTypeEnum tinType) {
+ this.tinType = tinType;
+ return this;
+ }
+
+ /**
+ * Recipient classification. The platform is transitioning from tax identifier classifications to recipient entity classifications. New values represent recipient entity types and should be preferred. Deprecated values represent identifier formats and remain supported for backward compatibility only. Available values: - INDIVIDUAL: Recipient is an individual - BUSINESS: Recipient is a business - UNKNOWN: Recipient classification is unknown - EIN: (Deprecated - use BUSINESS) Employer Identification Number - SSN: (Deprecated - use INDIVIDUAL) Social Security Number - ITIN: (Deprecated - use INDIVIDUAL) Individual Taxpayer Identification Number - ATIN: (Deprecated - use INDIVIDUAL) Adoption Taxpayer Identification Number
+ * @return tinType
+ */
+ @javax.annotation.Nullable
+ public TinTypeEnum getTinType() {
+ return tinType;
+ }
+
+ public void setTinType(TinTypeEnum tinType) {
+ this.tinType = tinType;
+ }
+
+
+ public Form1099Patr businessName(String businessName) {
+ this.businessName = businessName;
+ return this;
+ }
+
+ /**
+ * Business name. Required when the recipient of the form is a business; should only be used for businesses.
+ * @return businessName
+ */
+ @javax.annotation.Nullable
+ public String getBusinessName() {
+ return businessName;
+ }
+
+ public void setBusinessName(String businessName) {
+ this.businessName = businessName;
+ }
+
+
+ public Form1099Patr businessName2(String businessName2) {
+ this.businessName2 = businessName2;
+ return this;
+ }
+
+ /**
+ * Business name line 2. Should only be used for businesses.
+ * @return businessName2
+ */
+ @javax.annotation.Nullable
+ public String getBusinessName2() {
+ return businessName2;
+ }
+
+ public void setBusinessName2(String businessName2) {
+ this.businessName2 = businessName2;
+ }
+
+
+ public Form1099Patr firstName(String firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+
+ /**
+ * First name. Required when the recipient of the form is an individual; should only be used for individuals.
+ * @return firstName
+ */
+ @javax.annotation.Nullable
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+
+ public Form1099Patr middleName(String middleName) {
+ this.middleName = middleName;
+ return this;
+ }
+
+ /**
+ * Middle name. Should only be used for individuals.
+ * @return middleName
+ */
+ @javax.annotation.Nullable
+ public String getMiddleName() {
+ return middleName;
+ }
+
+ public void setMiddleName(String middleName) {
+ this.middleName = middleName;
+ }
+
+
+ public Form1099Patr lastName(String lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+
+ /**
+ * Last name. Required when the recipient of the form is an individual; should only be used for individuals.
+ * @return lastName
+ */
+ @javax.annotation.Nullable
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+
+ public Form1099Patr suffixName(String suffixName) {
+ this.suffixName = suffixName;
+ return this;
+ }
+
+ /**
+ * Suffix name. Should only be used for individuals.
+ * @return suffixName
+ */
+ @javax.annotation.Nullable
+ public String getSuffixName() {
+ return suffixName;
+ }
+
+ public void setSuffixName(String suffixName) {
+ this.suffixName = suffixName;
+ }
+
+
+ @Deprecated
+ public Form1099Patr recipientSecondName(String recipientSecondName) {
+ this.recipientSecondName = recipientSecondName;
+ return this;
+ }
+
+ /**
+ * DEPRECATED: Use `businessName2` instead.
+ * @return recipientSecondName
+ * @deprecated
+ */
+ @Deprecated
+ @javax.annotation.Nullable
+ public String getRecipientSecondName() {
+ return recipientSecondName;
+ }
+
+ @Deprecated
+ public void setRecipientSecondName(String recipientSecondName) {
+ this.recipientSecondName = recipientSecondName;
+ }
+
+
+ public Form1099Patr accountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ return this;
+ }
+
+ /**
+ * Account number
+ * @return accountNumber
+ */
+ @javax.annotation.Nullable
+ public String getAccountNumber() {
+ return accountNumber;
+ }
+
+ public void setAccountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ }
+
+
+ public Form1099Patr officeCode(String officeCode) {
+ this.officeCode = officeCode;
+ return this;
+ }
+
+ /**
+ * Office code
+ * @return officeCode
+ */
+ @javax.annotation.Nullable
+ public String getOfficeCode() {
+ return officeCode;
+ }
+
+ public void setOfficeCode(String officeCode) {
+ this.officeCode = officeCode;
+ }
+
+
+ public Form1099Patr noTin(Boolean noTin) {
+ this.noTin = noTin;
+ return this;
+ }
+
+ /**
+ * No TIN indicator
+ * @return noTin
+ */
+ @javax.annotation.Nullable
+ public Boolean getNoTin() {
+ return noTin;
+ }
+
+ public void setNoTin(Boolean noTin) {
+ this.noTin = noTin;
+ }
+
+
+ public Form1099Patr secondTinNotice(Boolean secondTinNotice) {
+ this.secondTinNotice = secondTinNotice;
+ return this;
+ }
+
+ /**
+ * Second TIN notice
+ * @return secondTinNotice
+ */
+ @javax.annotation.Nullable
+ public Boolean getSecondTinNotice() {
+ return secondTinNotice;
+ }
+
+ public void setSecondTinNotice(Boolean secondTinNotice) {
+ this.secondTinNotice = secondTinNotice;
+ }
+
+ /**
+ * A container for additional, undeclared properties.
+ * This is a holder for any undeclared properties as specified with
+ * the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value.
+ * If the property does not already exist, create it otherwise replace it.
+ *
+ * @param key name of the property
+ * @param value value of the property
+ * @return the Form1099Patr instance itself
+ */
+ public Form1099Patr putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return a map of objects
+ */
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key name of the property
+ * @return an object
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Form1099Patr form1099Patr = (Form1099Patr) o;
+ return Objects.equals(this.patronageDividends, form1099Patr.patronageDividends) &&
+ Objects.equals(this.nonpatronageDistributions, form1099Patr.nonpatronageDistributions) &&
+ Objects.equals(this.perUnitRetainAllocations, form1099Patr.perUnitRetainAllocations) &&
+ Objects.equals(this.federalIncomeTaxWithheld, form1099Patr.federalIncomeTaxWithheld) &&
+ Objects.equals(this.redeemedNonqualifiedNotices, form1099Patr.redeemedNonqualifiedNotices) &&
+ Objects.equals(this.section199AgDeduction, form1099Patr.section199AgDeduction) &&
+ Objects.equals(this.qualifiedPayments, form1099Patr.qualifiedPayments) &&
+ Objects.equals(this.section199AaQualifiedItems, form1099Patr.section199AaQualifiedItems) &&
+ Objects.equals(this.section199AaSstbItems, form1099Patr.section199AaSstbItems) &&
+ Objects.equals(this.investmentCredit, form1099Patr.investmentCredit) &&
+ Objects.equals(this.workOpportunityCredit, form1099Patr.workOpportunityCredit) &&
+ Objects.equals(this.otherCreditsAndDeductions, form1099Patr.otherCreditsAndDeductions) &&
+ Objects.equals(this.specifiedCooperativeIndicator, form1099Patr.specifiedCooperativeIndicator) &&
+ Objects.equals(this.type, form1099Patr.type) &&
+ Objects.equals(this.id, form1099Patr.id) &&
+ Objects.equals(this.issuerId, form1099Patr.issuerId) &&
+ Objects.equals(this.issuerReferenceId, form1099Patr.issuerReferenceId) &&
+ Objects.equals(this.issuerTin, form1099Patr.issuerTin) &&
+ Objects.equals(this.taxYear, form1099Patr.taxYear) &&
+ Objects.equals(this.referenceId, form1099Patr.referenceId) &&
+ Objects.equals(this.tin, form1099Patr.tin) &&
+ Objects.equals(this.recipientName, form1099Patr.recipientName) &&
+ Objects.equals(this.address, form1099Patr.address) &&
+ Objects.equals(this.address2, form1099Patr.address2) &&
+ Objects.equals(this.city, form1099Patr.city) &&
+ Objects.equals(this.state, form1099Patr.state) &&
+ Objects.equals(this.zip, form1099Patr.zip) &&
+ Objects.equals(this.email, form1099Patr.email) &&
+ Objects.equals(this.nonUsProvince, form1099Patr.nonUsProvince) &&
+ Objects.equals(this.countryCode, form1099Patr.countryCode) &&
+ Objects.equals(this.federalEfileDate, form1099Patr.federalEfileDate) &&
+ Objects.equals(this.postalMail, form1099Patr.postalMail) &&
+ Objects.equals(this.stateEfileDate, form1099Patr.stateEfileDate) &&
+ Objects.equals(this.recipientEdeliveryDate, form1099Patr.recipientEdeliveryDate) &&
+ Objects.equals(this.tinMatch, form1099Patr.tinMatch) &&
+ Objects.equals(this.addressVerification, form1099Patr.addressVerification) &&
+ Objects.equals(this.stateAndLocalWithholding, form1099Patr.stateAndLocalWithholding) &&
+ Objects.equals(this.federalEfileStatus, form1099Patr.federalEfileStatus) &&
+ Objects.equals(this.stateEfileStatus, form1099Patr.stateEfileStatus) &&
+ Objects.equals(this.postalMailStatus, form1099Patr.postalMailStatus) &&
+ Objects.equals(this.tinMatchStatus, form1099Patr.tinMatchStatus) &&
+ Objects.equals(this.addressVerificationStatus, form1099Patr.addressVerificationStatus) &&
+ Objects.equals(this.eDeliveryStatus, form1099Patr.eDeliveryStatus) &&
+ Objects.equals(this.validationErrors, form1099Patr.validationErrors) &&
+ Objects.equals(this.createdAt, form1099Patr.createdAt) &&
+ Objects.equals(this.updatedAt, form1099Patr.updatedAt) &&
+ Objects.equals(this.tinType, form1099Patr.tinType) &&
+ Objects.equals(this.businessName, form1099Patr.businessName) &&
+ Objects.equals(this.businessName2, form1099Patr.businessName2) &&
+ Objects.equals(this.firstName, form1099Patr.firstName) &&
+ Objects.equals(this.middleName, form1099Patr.middleName) &&
+ Objects.equals(this.lastName, form1099Patr.lastName) &&
+ Objects.equals(this.suffixName, form1099Patr.suffixName) &&
+ Objects.equals(this.recipientSecondName, form1099Patr.recipientSecondName) &&
+ Objects.equals(this.accountNumber, form1099Patr.accountNumber) &&
+ Objects.equals(this.officeCode, form1099Patr.officeCode) &&
+ Objects.equals(this.noTin, form1099Patr.noTin) &&
+ Objects.equals(this.secondTinNotice, form1099Patr.secondTinNotice)&&
+ Objects.equals(this.additionalProperties, form1099Patr.additionalProperties);
+ }
+
+ private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
+ return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(patronageDividends, nonpatronageDistributions, perUnitRetainAllocations, federalIncomeTaxWithheld, redeemedNonqualifiedNotices, section199AgDeduction, qualifiedPayments, section199AaQualifiedItems, section199AaSstbItems, investmentCredit, workOpportunityCredit, otherCreditsAndDeductions, specifiedCooperativeIndicator, type, id, issuerId, issuerReferenceId, issuerTin, taxYear, referenceId, tin, recipientName, address, address2, city, state, zip, email, nonUsProvince, countryCode, federalEfileDate, postalMail, stateEfileDate, recipientEdeliveryDate, tinMatch, addressVerification, stateAndLocalWithholding, federalEfileStatus, stateEfileStatus, postalMailStatus, tinMatchStatus, addressVerificationStatus, eDeliveryStatus, validationErrors, createdAt, updatedAt, tinType, businessName, businessName2, firstName, middleName, lastName, suffixName, recipientSecondName, accountNumber, officeCode, noTin, secondTinNotice, additionalProperties);
+ }
+
+ private static int hashCodeNullable(JsonNullable a) {
+ if (a == null) {
+ return 1;
+ }
+ return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Form1099Patr {\n");
+ sb.append(" patronageDividends: ").append(toIndentedString(patronageDividends)).append("\n");
+ sb.append(" nonpatronageDistributions: ").append(toIndentedString(nonpatronageDistributions)).append("\n");
+ sb.append(" perUnitRetainAllocations: ").append(toIndentedString(perUnitRetainAllocations)).append("\n");
+ sb.append(" federalIncomeTaxWithheld: ").append(toIndentedString(federalIncomeTaxWithheld)).append("\n");
+ sb.append(" redeemedNonqualifiedNotices: ").append(toIndentedString(redeemedNonqualifiedNotices)).append("\n");
+ sb.append(" section199AgDeduction: ").append(toIndentedString(section199AgDeduction)).append("\n");
+ sb.append(" qualifiedPayments: ").append(toIndentedString(qualifiedPayments)).append("\n");
+ sb.append(" section199AaQualifiedItems: ").append(toIndentedString(section199AaQualifiedItems)).append("\n");
+ sb.append(" section199AaSstbItems: ").append(toIndentedString(section199AaSstbItems)).append("\n");
+ sb.append(" investmentCredit: ").append(toIndentedString(investmentCredit)).append("\n");
+ sb.append(" workOpportunityCredit: ").append(toIndentedString(workOpportunityCredit)).append("\n");
+ sb.append(" otherCreditsAndDeductions: ").append(toIndentedString(otherCreditsAndDeductions)).append("\n");
+ sb.append(" specifiedCooperativeIndicator: ").append(toIndentedString(specifiedCooperativeIndicator)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" issuerId: ").append(toIndentedString(issuerId)).append("\n");
+ sb.append(" issuerReferenceId: ").append(toIndentedString(issuerReferenceId)).append("\n");
+ sb.append(" issuerTin: ").append(toIndentedString(issuerTin)).append("\n");
+ sb.append(" taxYear: ").append(toIndentedString(taxYear)).append("\n");
+ sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
+ sb.append(" tin: ").append(toIndentedString(tin)).append("\n");
+ sb.append(" recipientName: ").append(toIndentedString(recipientName)).append("\n");
+ sb.append(" address: ").append(toIndentedString(address)).append("\n");
+ sb.append(" address2: ").append(toIndentedString(address2)).append("\n");
+ sb.append(" city: ").append(toIndentedString(city)).append("\n");
+ sb.append(" state: ").append(toIndentedString(state)).append("\n");
+ sb.append(" zip: ").append(toIndentedString(zip)).append("\n");
+ sb.append(" email: ").append(toIndentedString(email)).append("\n");
+ sb.append(" nonUsProvince: ").append(toIndentedString(nonUsProvince)).append("\n");
+ sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
+ sb.append(" federalEfileDate: ").append(toIndentedString(federalEfileDate)).append("\n");
+ sb.append(" postalMail: ").append(toIndentedString(postalMail)).append("\n");
+ sb.append(" stateEfileDate: ").append(toIndentedString(stateEfileDate)).append("\n");
+ sb.append(" recipientEdeliveryDate: ").append(toIndentedString(recipientEdeliveryDate)).append("\n");
+ sb.append(" tinMatch: ").append(toIndentedString(tinMatch)).append("\n");
+ sb.append(" addressVerification: ").append(toIndentedString(addressVerification)).append("\n");
+ sb.append(" stateAndLocalWithholding: ").append(toIndentedString(stateAndLocalWithholding)).append("\n");
+ sb.append(" federalEfileStatus: ").append(toIndentedString(federalEfileStatus)).append("\n");
+ sb.append(" stateEfileStatus: ").append(toIndentedString(stateEfileStatus)).append("\n");
+ sb.append(" postalMailStatus: ").append(toIndentedString(postalMailStatus)).append("\n");
+ sb.append(" tinMatchStatus: ").append(toIndentedString(tinMatchStatus)).append("\n");
+ sb.append(" addressVerificationStatus: ").append(toIndentedString(addressVerificationStatus)).append("\n");
+ sb.append(" eDeliveryStatus: ").append(toIndentedString(eDeliveryStatus)).append("\n");
+ sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
+ sb.append(" tinType: ").append(toIndentedString(tinType)).append("\n");
+ sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
+ sb.append(" businessName2: ").append(toIndentedString(businessName2)).append("\n");
+ sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
+ sb.append(" middleName: ").append(toIndentedString(middleName)).append("\n");
+ sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
+ sb.append(" suffixName: ").append(toIndentedString(suffixName)).append("\n");
+ sb.append(" recipientSecondName: ").append(toIndentedString(recipientSecondName)).append("\n");
+ sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
+ sb.append(" officeCode: ").append(toIndentedString(officeCode)).append("\n");
+ sb.append(" noTin: ").append(toIndentedString(noTin)).append("\n");
+ sb.append(" secondTinNotice: ").append(toIndentedString(secondTinNotice)).append("\n");
+ sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet();
+ openapiFields.add("type");
+ openapiFields.add("id");
+ openapiFields.add("issuerId");
+ openapiFields.add("issuerReferenceId");
+ openapiFields.add("issuerTin");
+ openapiFields.add("taxYear");
+ openapiFields.add("referenceId");
+ openapiFields.add("tin");
+ openapiFields.add("recipientName");
+ openapiFields.add("address");
+ openapiFields.add("address2");
+ openapiFields.add("city");
+ openapiFields.add("state");
+ openapiFields.add("zip");
+ openapiFields.add("email");
+ openapiFields.add("nonUsProvince");
+ openapiFields.add("countryCode");
+ openapiFields.add("federalEfileDate");
+ openapiFields.add("postalMail");
+ openapiFields.add("stateEfileDate");
+ openapiFields.add("recipientEdeliveryDate");
+ openapiFields.add("tinMatch");
+ openapiFields.add("addressVerification");
+ openapiFields.add("stateAndLocalWithholding");
+ openapiFields.add("federalEfileStatus");
+ openapiFields.add("stateEfileStatus");
+ openapiFields.add("postalMailStatus");
+ openapiFields.add("tinMatchStatus");
+ openapiFields.add("addressVerificationStatus");
+ openapiFields.add("eDeliveryStatus");
+ openapiFields.add("validationErrors");
+ openapiFields.add("createdAt");
+ openapiFields.add("updatedAt");
+ openapiFields.add("tinType");
+ openapiFields.add("businessName");
+ openapiFields.add("businessName2");
+ openapiFields.add("firstName");
+ openapiFields.add("middleName");
+ openapiFields.add("lastName");
+ openapiFields.add("suffixName");
+ openapiFields.add("recipientSecondName");
+ openapiFields.add("accountNumber");
+ openapiFields.add("officeCode");
+ openapiFields.add("noTin");
+ openapiFields.add("secondTinNotice");
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet();
+ openapiRequiredFields.add("type");
+ openapiRequiredFields.add("address");
+ openapiRequiredFields.add("city");
+ openapiRequiredFields.add("countryCode");
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to Form1099Patr
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!Form1099Patr.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
+ throw new IllegalArgumentException(String.format("The required field(s) %s in Form1099Patr is not found in the empty JSON string", Form1099Patr.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : Form1099Patr.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if (!jsonObj.get("type").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString()));
+ }
+ // validate the required field `type`
+ TypeEnum.validateJsonElement(jsonObj.get("type"));
+ if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString()));
+ }
+ if ((jsonObj.get("issuerId") != null && !jsonObj.get("issuerId").isJsonNull()) && !jsonObj.get("issuerId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `issuerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuerId").toString()));
+ }
+ if ((jsonObj.get("issuerReferenceId") != null && !jsonObj.get("issuerReferenceId").isJsonNull()) && !jsonObj.get("issuerReferenceId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `issuerReferenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuerReferenceId").toString()));
+ }
+ if ((jsonObj.get("issuerTin") != null && !jsonObj.get("issuerTin").isJsonNull()) && !jsonObj.get("issuerTin").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `issuerTin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("issuerTin").toString()));
+ }
+ if ((jsonObj.get("referenceId") != null && !jsonObj.get("referenceId").isJsonNull()) && !jsonObj.get("referenceId").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `referenceId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("referenceId").toString()));
+ }
+ if ((jsonObj.get("tin") != null && !jsonObj.get("tin").isJsonNull()) && !jsonObj.get("tin").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `tin` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tin").toString()));
+ }
+ if ((jsonObj.get("recipientName") != null && !jsonObj.get("recipientName").isJsonNull()) && !jsonObj.get("recipientName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `recipientName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientName").toString()));
+ }
+ if ((jsonObj.get("address") != null && !jsonObj.get("address").isJsonNull()) && !jsonObj.get("address").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString()));
+ }
+ if ((jsonObj.get("address2") != null && !jsonObj.get("address2").isJsonNull()) && !jsonObj.get("address2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `address2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address2").toString()));
+ }
+ if ((jsonObj.get("city") != null && !jsonObj.get("city").isJsonNull()) && !jsonObj.get("city").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `city` to be a primitive type in the JSON string but got `%s`", jsonObj.get("city").toString()));
+ }
+ if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString()));
+ }
+ if ((jsonObj.get("zip") != null && !jsonObj.get("zip").isJsonNull()) && !jsonObj.get("zip").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `zip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("zip").toString()));
+ }
+ if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString()));
+ }
+ if ((jsonObj.get("nonUsProvince") != null && !jsonObj.get("nonUsProvince").isJsonNull()) && !jsonObj.get("nonUsProvince").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `nonUsProvince` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nonUsProvince").toString()));
+ }
+ if ((jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonNull()) && !jsonObj.get("countryCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString()));
+ }
+ // validate the optional field `stateAndLocalWithholding`
+ if (jsonObj.get("stateAndLocalWithholding") != null && !jsonObj.get("stateAndLocalWithholding").isJsonNull()) {
+ StateAndLocalWithholding.validateJsonElement(jsonObj.get("stateAndLocalWithholding"));
+ }
+ // validate the optional field `federalEfileStatus`
+ if (jsonObj.get("federalEfileStatus") != null && !jsonObj.get("federalEfileStatus").isJsonNull()) {
+ Form1099StatusDetail.validateJsonElement(jsonObj.get("federalEfileStatus"));
+ }
+ if (jsonObj.get("stateEfileStatus") != null && !jsonObj.get("stateEfileStatus").isJsonNull()) {
+ JsonArray jsonArraystateEfileStatus = jsonObj.getAsJsonArray("stateEfileStatus");
+ if (jsonArraystateEfileStatus != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("stateEfileStatus").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `stateEfileStatus` to be an array in the JSON string but got `%s`", jsonObj.get("stateEfileStatus").toString()));
+ }
+
+ // validate the optional field `stateEfileStatus` (array)
+ for (int i = 0; i < jsonArraystateEfileStatus.size(); i++) {
+ StateEfileStatusDetail.validateJsonElement(jsonArraystateEfileStatus.get(i));
+ };
+ }
+ }
+ // validate the optional field `postalMailStatus`
+ if (jsonObj.get("postalMailStatus") != null && !jsonObj.get("postalMailStatus").isJsonNull()) {
+ Form1099StatusDetail.validateJsonElement(jsonObj.get("postalMailStatus"));
+ }
+ // validate the optional field `tinMatchStatus`
+ if (jsonObj.get("tinMatchStatus") != null && !jsonObj.get("tinMatchStatus").isJsonNull()) {
+ Form1099StatusDetail.validateJsonElement(jsonObj.get("tinMatchStatus"));
+ }
+ // validate the optional field `addressVerificationStatus`
+ if (jsonObj.get("addressVerificationStatus") != null && !jsonObj.get("addressVerificationStatus").isJsonNull()) {
+ Form1099StatusDetail.validateJsonElement(jsonObj.get("addressVerificationStatus"));
+ }
+ // validate the optional field `eDeliveryStatus`
+ if (jsonObj.get("eDeliveryStatus") != null && !jsonObj.get("eDeliveryStatus").isJsonNull()) {
+ Form1099StatusDetail.validateJsonElement(jsonObj.get("eDeliveryStatus"));
+ }
+ if (jsonObj.get("validationErrors") != null && !jsonObj.get("validationErrors").isJsonNull()) {
+ JsonArray jsonArrayvalidationErrors = jsonObj.getAsJsonArray("validationErrors");
+ if (jsonArrayvalidationErrors != null) {
+ // ensure the json data is an array
+ if (!jsonObj.get("validationErrors").isJsonArray()) {
+ throw new IllegalArgumentException(String.format("Expected the field `validationErrors` to be an array in the JSON string but got `%s`", jsonObj.get("validationErrors").toString()));
+ }
+
+ // validate the optional field `validationErrors` (array)
+ for (int i = 0; i < jsonArrayvalidationErrors.size(); i++) {
+ ValidationError.validateJsonElement(jsonArrayvalidationErrors.get(i));
+ };
+ }
+ }
+ if ((jsonObj.get("tinType") != null && !jsonObj.get("tinType").isJsonNull()) && !jsonObj.get("tinType").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `tinType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tinType").toString()));
+ }
+ // validate the optional field `tinType`
+ if (jsonObj.get("tinType") != null && !jsonObj.get("tinType").isJsonNull()) {
+ TinTypeEnum.validateJsonElement(jsonObj.get("tinType"));
+ }
+ if ((jsonObj.get("businessName") != null && !jsonObj.get("businessName").isJsonNull()) && !jsonObj.get("businessName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `businessName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessName").toString()));
+ }
+ if ((jsonObj.get("businessName2") != null && !jsonObj.get("businessName2").isJsonNull()) && !jsonObj.get("businessName2").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `businessName2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("businessName2").toString()));
+ }
+ if ((jsonObj.get("firstName") != null && !jsonObj.get("firstName").isJsonNull()) && !jsonObj.get("firstName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `firstName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("firstName").toString()));
+ }
+ if ((jsonObj.get("middleName") != null && !jsonObj.get("middleName").isJsonNull()) && !jsonObj.get("middleName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `middleName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("middleName").toString()));
+ }
+ if ((jsonObj.get("lastName") != null && !jsonObj.get("lastName").isJsonNull()) && !jsonObj.get("lastName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `lastName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("lastName").toString()));
+ }
+ if ((jsonObj.get("suffixName") != null && !jsonObj.get("suffixName").isJsonNull()) && !jsonObj.get("suffixName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `suffixName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("suffixName").toString()));
+ }
+ if ((jsonObj.get("recipientSecondName") != null && !jsonObj.get("recipientSecondName").isJsonNull()) && !jsonObj.get("recipientSecondName").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `recipientSecondName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recipientSecondName").toString()));
+ }
+ if ((jsonObj.get("accountNumber") != null && !jsonObj.get("accountNumber").isJsonNull()) && !jsonObj.get("accountNumber").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `accountNumber` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accountNumber").toString()));
+ }
+ if ((jsonObj.get("officeCode") != null && !jsonObj.get("officeCode").isJsonNull()) && !jsonObj.get("officeCode").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `officeCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("officeCode").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!Form1099Patr.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'Form1099Patr' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter
+ = gson.getDelegateAdapter(this, TypeToken.get(Form1099Patr.class));
+
+ return (TypeAdapter) new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, Form1099Patr value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ obj.remove("additionalProperties");
+ // serialize additional properties
+ if (value.getAdditionalProperties() != null) {
+ for (Map.Entry entry : value.getAdditionalProperties().entrySet()) {
+ if (entry.getValue() instanceof String)
+ obj.addProperty(entry.getKey(), (String) entry.getValue());
+ else if (entry.getValue() instanceof Number)
+ obj.addProperty(entry.getKey(), (Number) entry.getValue());
+ else if (entry.getValue() instanceof Boolean)
+ obj.addProperty(entry.getKey(), (Boolean) entry.getValue());
+ else if (entry.getValue() instanceof Character)
+ obj.addProperty(entry.getKey(), (Character) entry.getValue());
+ else {
+ JsonElement jsonElement = gson.toJsonTree(entry.getValue());
+ if (jsonElement.isJsonArray()) {
+ obj.add(entry.getKey(), jsonElement.getAsJsonArray());
+ } else {
+ obj.add(entry.getKey(), jsonElement.getAsJsonObject());
+ }
+ }
+ }
+ }
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public Form1099Patr read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // store additional fields in the deserialized instance
+ Form1099Patr instance = thisAdapter.fromJsonTree(jsonObj);
+ for (Map.Entry entry : jsonObj.entrySet()) {
+ if (!openapiFields.contains(entry.getKey())) {
+ if (entry.getValue().isJsonPrimitive()) { // primitive type
+ if (entry.getValue().getAsJsonPrimitive().isString())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString());
+ else if (entry.getValue().getAsJsonPrimitive().isNumber())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber());
+ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
+ instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean());
+ else
+ throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString()));
+ } else if (entry.getValue().isJsonArray()) {
+ instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class));
+ } else { // JSON object
+ instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class));
+ }
+ }
+ }
+ return instance;
+ }
+
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of Form1099Patr given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of Form1099Patr
+ * @throws IOException if the JSON string is invalid with respect to Form1099Patr
+ */
+ public static Form1099Patr fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, Form1099Patr.class);
+ }
+
+ /**
+ * Convert an instance of Form1099Patr to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
+
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099R.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099R.java
index bf3bb3f..9e3310f 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099R.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099R.java
@@ -381,6 +381,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099W2.java b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099W2.java
index 38efc52..2507bd5 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Form1099W2.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Form1099W2.java
@@ -211,6 +211,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/Get1099Form200Response.java b/src/main/java/Avalara/SDK/model/A1099/V2/Get1099Form200Response.java
index 393b06e..5a1e73b 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/Get1099Form200Response.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/Get1099Form200Response.java
@@ -29,6 +29,7 @@
import Avalara.SDK.model.A1099.V2.Form1099K;
import Avalara.SDK.model.A1099.V2.Form1099Misc;
import Avalara.SDK.model.A1099.V2.Form1099Nec;
+import Avalara.SDK.model.A1099.V2.Form1099Patr;
import Avalara.SDK.model.A1099.V2.Form1099R;
import Avalara.SDK.model.A1099.V2.Form1099StatusDetail;
import Avalara.SDK.model.A1099.V2.Form1099W2;
@@ -106,6 +107,7 @@ public TypeAdapter create(Gson gson, TypeToken type) {
final TypeAdapter adapterForm1099K = gson.getDelegateAdapter(this, TypeToken.get(Form1099K.class));
final TypeAdapter adapterForm1099Misc = gson.getDelegateAdapter(this, TypeToken.get(Form1099Misc.class));
final TypeAdapter adapterForm1099Nec = gson.getDelegateAdapter(this, TypeToken.get(Form1099Nec.class));
+ final TypeAdapter adapterForm1099Patr = gson.getDelegateAdapter(this, TypeToken.get(Form1099Patr.class));
final TypeAdapter adapterForm1099R = gson.getDelegateAdapter(this, TypeToken.get(Form1099R.class));
final TypeAdapter adapterForm1099W2 = gson.getDelegateAdapter(this, TypeToken.get(Form1099W2.class));
@@ -165,6 +167,12 @@ public void write(JsonWriter out, Get1099Form200Response value) throws IOExcepti
elementAdapter.write(out, element);
return;
}
+ // check if the actual instance is of the type `Form1099Patr`
+ if (value.getActualInstance() instanceof Form1099Patr) {
+ JsonElement element = adapterForm1099Patr.toJsonTree((Form1099Patr)value.getActualInstance());
+ elementAdapter.write(out, element);
+ return;
+ }
// check if the actual instance is of the type `Form1099R`
if (value.getActualInstance() instanceof Form1099R) {
JsonElement element = adapterForm1099R.toJsonTree((Form1099R)value.getActualInstance());
@@ -177,7 +185,7 @@ public void write(JsonWriter out, Get1099Form200Response value) throws IOExcepti
elementAdapter.write(out, element);
return;
}
- throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2");
+ throw new IOException("Failed to serialize as the type doesn't match oneOf schemas: Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2");
}
@Override
@@ -285,6 +293,18 @@ public Get1099Form200Response read(JsonReader in) throws IOException {
errorMessages.add(String.format("Deserialization for Form1099Nec failed with `%s`.", e.getMessage()));
log.log(Level.FINER, "Input data does not match schema 'Form1099Nec'", e);
}
+ // deserialize Form1099Patr
+ try {
+ // validate the JSON object to see if any exception is thrown
+ Form1099Patr.validateJsonElement(jsonElement);
+ actualAdapter = adapterForm1099Patr;
+ match++;
+ log.log(Level.FINER, "Input data matches schema 'Form1099Patr'");
+ } catch (Exception e) {
+ // deserialization failed, continue
+ errorMessages.add(String.format("Deserialization for Form1099Patr failed with `%s`.", e.getMessage()));
+ log.log(Level.FINER, "Input data does not match schema 'Form1099Patr'", e);
+ }
// deserialize Form1099R
try {
// validate the JSON object to see if any exception is thrown
@@ -343,6 +363,7 @@ public Get1099Form200Response(Object o) {
schemas.put("Form1099K", Form1099K.class);
schemas.put("Form1099Misc", Form1099Misc.class);
schemas.put("Form1099Nec", Form1099Nec.class);
+ schemas.put("Form1099Patr", Form1099Patr.class);
schemas.put("Form1099R", Form1099R.class);
schemas.put("Form1099W2", Form1099W2.class);
}
@@ -355,7 +376,7 @@ public Map> getSchemas() {
/**
* Set the instance that matches the oneOf child schema, check
* the instance parameter is valid against the oneOf child schemas:
- * Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2
+ * Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2
*
* It could be an instance of the 'oneOf' schemas.
*/
@@ -401,6 +422,11 @@ public void setActualInstance(Object instance) {
return;
}
+ if (instance instanceof Form1099Patr) {
+ super.setActualInstance(instance);
+ return;
+ }
+
if (instance instanceof Form1099R) {
super.setActualInstance(instance);
return;
@@ -411,14 +437,14 @@ public void setActualInstance(Object instance) {
return;
}
- throw new RuntimeException("Invalid instance type. Must be Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2");
+ throw new RuntimeException("Invalid instance type. Must be Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2");
}
/**
* Get the actual instance, which can be the following:
- * Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2
+ * Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2
*
- * @return The actual instance (Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2)
+ * @return The actual instance (Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2)
*/
@SuppressWarnings("unchecked")
@Override
@@ -506,6 +532,16 @@ public Form1099Misc getForm1099Misc() throws ClassCastException {
public Form1099Nec getForm1099Nec() throws ClassCastException {
return (Form1099Nec)super.getActualInstance();
}
+ /**
+ * Get the actual instance of `Form1099Patr`. If the actual instance is not `Form1099Patr`,
+ * the ClassCastException will be thrown.
+ *
+ * @return The actual instance of `Form1099Patr`
+ * @throws ClassCastException if the instance is not `Form1099Patr`
+ */
+ public Form1099Patr getForm1099Patr() throws ClassCastException {
+ return (Form1099Patr)super.getActualInstance();
+ }
/**
* Get the actual instance of `Form1099R`. If the actual instance is not `Form1099R`,
* the ClassCastException will be thrown.
@@ -601,6 +637,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
errorMessages.add(String.format("Deserialization for Form1099Nec failed with `%s`.", e.getMessage()));
// continue to the next one
}
+ // validate the json string with Form1099Patr
+ try {
+ Form1099Patr.validateJsonElement(jsonElement);
+ validCount++;
+ } catch (Exception e) {
+ errorMessages.add(String.format("Deserialization for Form1099Patr failed with `%s`.", e.getMessage()));
+ // continue to the next one
+ }
// validate the json string with Form1099R
try {
Form1099R.validateJsonElement(jsonElement);
@@ -618,7 +662,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
// continue to the next one
}
if (validCount != 1) {
- throw new IOException(String.format("The JSON string is invalid for Get1099Form200Response with oneOf schemas: Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099R, Form1099W2. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString()));
+ throw new IOException(String.format("The JSON string is invalid for Get1099Form200Response with oneOf schemas: Form1042S, Form1095B, Form1095C, Form1099Div, Form1099Int, Form1099K, Form1099Misc, Form1099Nec, Form1099Patr, Form1099R, Form1099W2. %d class(es) match the result, expected 1. Detailed failure message for oneOf schemas: %s. JSON: %s", validCount, errorMessages, jsonElement.toString()));
}
}
diff --git a/src/main/java/Avalara/SDK/model/A1099/V2/IrisFormBase.java b/src/main/java/Avalara/SDK/model/A1099/V2/IrisFormBase.java
index 098f5d7..4c1e00b 100644
--- a/src/main/java/Avalara/SDK/model/A1099/V2/IrisFormBase.java
+++ b/src/main/java/Avalara/SDK/model/A1099/V2/IrisFormBase.java
@@ -87,6 +87,8 @@ public enum TypeEnum {
_1099_NEC("1099-NEC"),
+ _1099_PATR("1099-PATR"),
+
_1099_R("1099-R"),
W_2("W-2");