diff --git a/README.md b/README.md index 14ff3bc..08d06b7 100644 --- a/README.md +++ b/README.md @@ -338,15 +338,19 @@ Class | Method | HTTP request | Description - [Avalara\SDK\Model\A1099\V2\Form1095BListItem](docs/A1099/V2/Form1095BListItem.md) - [Avalara\SDK\Model\A1099\V2\Form1095BListItemResponse](docs/A1099/V2/Form1095BListItemResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1095BRequest](docs/A1099/V2/Form1095BRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1095CList](docs/A1099/V2/Form1095CList.md) + - [Avalara\SDK\Model\A1099\V2\Form1095CListItem](docs/A1099/V2/Form1095CListItem.md) - [Avalara\SDK\Model\A1099\V2\Form1099BaseResponse](docs/A1099/V2/Form1099BaseResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099DivList](docs/A1099/V2/Form1099DivList.md) - [Avalara\SDK\Model\A1099\V2\Form1099DivListItem](docs/A1099/V2/Form1099DivListItem.md) + - [Avalara\SDK\Model\A1099\V2\Form1099DivListItemResponse](docs/A1099/V2/Form1099DivListItemResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099DivRequest](docs/A1099/V2/Form1099DivRequest.md) - [Avalara\SDK\Model\A1099\V2\Form1099DivResponse](docs/A1099/V2/Form1099DivResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099KList](docs/A1099/V2/Form1099KList.md) - [Avalara\SDK\Model\A1099\V2\Form1099KListItem](docs/A1099/V2/Form1099KListItem.md) - [Avalara\SDK\Model\A1099\V2\Form1099KListItemResponse](docs/A1099/V2/Form1099KListItemResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099KRequest](docs/A1099/V2/Form1099KRequest.md) + - [Avalara\SDK\Model\A1099\V2\Form1099KResponse](docs/A1099/V2/Form1099KResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099ListResponse](docs/A1099/V2/Form1099ListResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099ListResponseValueInner](docs/A1099/V2/Form1099ListResponseValueInner.md) - [Avalara\SDK\Model\A1099\V2\Form1099MiscList](docs/A1099/V2/Form1099MiscList.md) @@ -364,7 +368,6 @@ Class | Method | HTTP request | Description - [Avalara\SDK\Model\A1099\V2\Form1099RListItem](docs/A1099/V2/Form1099RListItem.md) - [Avalara\SDK\Model\A1099\V2\Form1099RListItemResponse](docs/A1099/V2/Form1099RListItemResponse.md) - [Avalara\SDK\Model\A1099\V2\Form1099RRequest](docs/A1099/V2/Form1099RRequest.md) - - [Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse](docs/A1099/V2/Form1099StatusDetailResponse.md) - [Avalara\SDK\Model\A1099\V2\FormRequestBase](docs/A1099/V2/FormRequestBase.md) - [Avalara\SDK\Model\A1099\V2\FormRequestListItemBase](docs/A1099/V2/FormRequestListItemBase.md) - [Avalara\SDK\Model\A1099\V2\FormResponseBase](docs/A1099/V2/FormResponseBase.md) @@ -377,10 +380,12 @@ Class | Method | HTTP request | Description - [Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThrough](docs/A1099/V2/IntermediaryOrFlowThrough.md) - [Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughRequest](docs/A1099/V2/IntermediaryOrFlowThroughRequest.md) - [Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse](docs/A1099/V2/IntermediaryOrFlowThroughResponse.md) + - [Avalara\SDK\Model\A1099\V2\IrsResponse](docs/A1099/V2/IrsResponse.md) - [Avalara\SDK\Model\A1099\V2\IssuerCommand](docs/A1099/V2/IssuerCommand.md) - [Avalara\SDK\Model\A1099\V2\IssuerResponse](docs/A1099/V2/IssuerResponse.md) - [Avalara\SDK\Model\A1099\V2\JobResult](docs/A1099/V2/JobResult.md) - [Avalara\SDK\Model\A1099\V2\Link](docs/A1099/V2/Link.md) + - [Avalara\SDK\Model\A1099\V2\OfferAndCoverageRequest](docs/A1099/V2/OfferAndCoverageRequest.md) - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModel](docs/A1099/V2/PaginatedQueryResultModel.md) - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelCompanyResponse](docs/A1099/V2/PaginatedQueryResultModelCompanyResponse.md) - [Avalara\SDK\Model\A1099\V2\PaginatedQueryResultModelIssuerResponse](docs/A1099/V2/PaginatedQueryResultModelIssuerResponse.md) @@ -395,6 +400,7 @@ Class | Method | HTTP request | Description - [Avalara\SDK\Model\A1099\V2\StatusDetail](docs/A1099/V2/StatusDetail.md) - [Avalara\SDK\Model\A1099\V2\SubstantialUsOwnerRequest](docs/A1099/V2/SubstantialUsOwnerRequest.md) - [Avalara\SDK\Model\A1099\V2\SubstantialUsOwnerResponse](docs/A1099/V2/SubstantialUsOwnerResponse.md) + - [Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse](docs/A1099/V2/TinMatchStatusResponse.md) - [Avalara\SDK\Model\A1099\V2\Update1099Form200Response](docs/A1099/V2/Update1099Form200Response.md) - [Avalara\SDK\Model\A1099\V2\ValidationErrorResponse](docs/A1099/V2/ValidationErrorResponse.md) - [Avalara\SDK\Model\A1099\V2\W4FormDataModel](docs/A1099/V2/W4FormDataModel.md) diff --git a/docs/A1099/CoveredIndividualRequest.md b/docs/A1099/CoveredIndividualRequest.md index ddcb037..52e3b18 100644 --- a/docs/A1099/CoveredIndividualRequest.md +++ b/docs/A1099/CoveredIndividualRequest.md @@ -10,18 +10,18 @@ Name | Type | Description | Notes **name_suffix** | **string** | Covered individual's name suffix | [optional] **tin** | **string** | Covered individual's TIN (SSN or ITIN) | [optional] **birth_date** | **\DateTime** | Covered individual's date of birth | [optional] -**covered_month_indicator0** | **bool** | Coverage indicator for all 12 months | [optional] -**covered_month_indicator1** | **bool** | Coverage indicator for January | [optional] -**covered_month_indicator2** | **bool** | Coverage indicator for February | [optional] -**covered_month_indicator3** | **bool** | Coverage indicator for March | [optional] -**covered_month_indicator4** | **bool** | Coverage indicator for April | [optional] -**covered_month_indicator5** | **bool** | Coverage indicator for May | [optional] -**covered_month_indicator6** | **bool** | Coverage indicator for June | [optional] -**covered_month_indicator7** | **bool** | Coverage indicator for July | [optional] -**covered_month_indicator8** | **bool** | Coverage indicator for August | [optional] -**covered_month_indicator9** | **bool** | Coverage indicator for September | [optional] -**covered_month_indicator10** | **bool** | Coverage indicator for October | [optional] -**covered_month_indicator11** | **bool** | Coverage indicator for November | [optional] -**covered_month_indicator12** | **bool** | Coverage indicator for December | [optional] +**covered_all_months** | **bool** | Coverage indicator for all 12 months | [optional] +**covered_january** | **bool** | Coverage indicator for January | [optional] +**covered_february** | **bool** | Coverage indicator for February | [optional] +**covered_march** | **bool** | Coverage indicator for March | [optional] +**covered_april** | **bool** | Coverage indicator for April | [optional] +**covered_may** | **bool** | Coverage indicator for May | [optional] +**covered_june** | **bool** | Coverage indicator for June | [optional] +**covered_july** | **bool** | Coverage indicator for July | [optional] +**covered_august** | **bool** | Coverage indicator for August | [optional] +**covered_september** | **bool** | Coverage indicator for September | [optional] +**covered_october** | **bool** | Coverage indicator for October | [optional] +**covered_november** | **bool** | Coverage indicator for November | [optional] +**covered_december** | **bool** | Coverage indicator for December | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Create1099Form201Response.md b/docs/A1099/Create1099Form201Response.md index 4343884..cbcb7fc 100644 --- a/docs/A1099/Create1099Form201Response.md +++ b/docs/A1099/Create1099Form201Response.md @@ -11,19 +11,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -31,14 +34,16 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **string** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **\DateTime** | Recipient's date of birth | [optional] **recipient_giin** | **string** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **string** | Recipient's foreign TIN | [optional] @@ -63,6 +68,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **string** | Origin of health coverage code | [optional] **covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] +**qualified_dividends** | **string** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **string** | Section 1202 gain | [optional] +**collectibles_gain** | **string** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **string** | Section 897 capital gain | [optional] +**nondividend_distributions** | **string** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **string** | Section 199A dividends | [optional] +**investment_expenses** | **string** | Investment expenses | [optional] +**foreign_tax_paid** | **string** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **string** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **string** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] **filer_type** | **string** | Filer type (PSE or EPF) | [optional] **payment_type** | **string** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] @@ -70,7 +93,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **string** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -88,14 +110,15 @@ Name | Type | Description | Notes **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_and_health_care** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] -**excess_golden_parachute** | **float** | (Legacy field) Excess golden parachute payments | [optional] -**gross_amount_paid_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] +**gross_proceeds_paid_to_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**fish_purchased_for_resale** | **float** | Fish purchased for resale | [optional] **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] -**section409_a_income** | **float** | Nonqualified deferred compensation | [optional] +**nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/CreateW9Form201Response.md b/docs/A1099/CreateW9Form201Response.md index bdcd09f..f658eac 100644 --- a/docs/A1099/CreateW9Form201Response.md +++ b/docs/A1099/CreateW9Form201Response.md @@ -183,5 +183,6 @@ Name | Type | Description | Notes **account_number** | **string** | The account number associated with the form. | [optional] **backup_withholding** | **bool** | Indicates whether backup withholding applies. | [optional] **is1099able** | **bool** | Indicates whether the individual or entity should be issued a 1099 form. | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse**](TinMatchStatusResponse.md) | The TIN Match status from IRS. | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1042SListItem.md b/docs/A1099/Form1042SListItem.md index f9606ca..c47ad92 100644 --- a/docs/A1099/Form1042SListItem.md +++ b/docs/A1099/Form1042SListItem.md @@ -31,7 +31,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -39,15 +39,16 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1042SListItemResponse.md b/docs/A1099/Form1042SListItemResponse.md index 04d7313..435dc05 100644 --- a/docs/A1099/Form1042SListItemResponse.md +++ b/docs/A1099/Form1042SListItemResponse.md @@ -35,19 +35,21 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -55,8 +57,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1042SRequest.md b/docs/A1099/Form1042SRequest.md index 2b7b7cd..61255ff 100644 --- a/docs/A1099/Form1042SRequest.md +++ b/docs/A1099/Form1042SRequest.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **unique_form_id** | **string** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **\DateTime** | Recipient's date of birth | [optional] **recipient_giin** | **string** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **string** | Recipient's foreign TIN | [optional] @@ -33,7 +32,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -41,15 +40,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1042SResponse.md b/docs/A1099/Form1042SResponse.md index 70172f0..447b006 100644 --- a/docs/A1099/Form1042SResponse.md +++ b/docs/A1099/Form1042SResponse.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -24,17 +23,20 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/Form1095BListItem.md b/docs/A1099/Form1095BListItem.md index b59916b..de9bfdb 100644 --- a/docs/A1099/Form1095BListItem.md +++ b/docs/A1099/Form1095BListItem.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -22,15 +22,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1095BListItemResponse.md b/docs/A1099/Form1095BListItemResponse.md index 89fbe7f..da1aff7 100644 --- a/docs/A1099/Form1095BListItemResponse.md +++ b/docs/A1099/Form1095BListItemResponse.md @@ -13,19 +13,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -33,8 +36,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1095BRequest.md b/docs/A1099/Form1095BRequest.md index 6597a26..f560fb8 100644 --- a/docs/A1099/Form1095BRequest.md +++ b/docs/A1099/Form1095BRequest.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -23,15 +23,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1095CList.md b/docs/A1099/Form1095CList.md new file mode 100644 index 0000000..806ada2 --- /dev/null +++ b/docs/A1099/Form1095CList.md @@ -0,0 +1,10 @@ +# # Form1095CList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**forms** | [**\Avalara\SDK\Model\A1099\V2\Form1095CListItem[]**](Form1095CListItem.md) | | [optional] +**form_type** | **string** | | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1095CListItem.md b/docs/A1099/Form1095CListItem.md new file mode 100644 index 0000000..06bad6f --- /dev/null +++ b/docs/A1099/Form1095CListItem.md @@ -0,0 +1,44 @@ +# # Form1095CListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**employee_first_name** | **string** | Employee's first name | [optional] +**employee_middle_name** | **string** | Employee's middle name | [optional] +**employee_last_name** | **string** | Employee's last name | [optional] +**employee_name_suffix** | **string** | Employee's name suffix | [optional] +**recipient_date_of_birth** | **\DateTime** | Recipient's date of birth | [optional] +**plan_start_month** | **string** | Plan start month | [optional] +**offer_and_coverages** | [**\Avalara\SDK\Model\A1099\V2\OfferAndCoverageRequest[]**](OfferAndCoverageRequest.md) | Offer and coverage information | [optional] +**employer_provided_si_coverage** | **bool** | Employer provided self-insured coverage | [optional] +**covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]**](CoveredIndividualRequest.md) | Covered individuals information | [optional] +**issuer_reference_id** | **string** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] +**issuer_tin** | **string** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] +**tax_year** | **int** | Tax year | +**issuer_id** | **string** | Issuer ID | [optional] +**reference_id** | **string** | Reference ID | [optional] +**recipient_tin** | **string** | Recipient Tax ID Number | [optional] +**recipient_name** | **string** | Recipient name | [optional] +**tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] +**recipient_second_name** | **string** | Recipient second name | [optional] +**address** | **string** | Address | +**address2** | **string** | Address line 2 | [optional] +**city** | **string** | City | +**state** | **string** | US state. Required if CountryCode is \"US\". | [optional] +**zip** | **string** | Zip/postal code | [optional] +**email** | **string** | Recipient email address | [optional] +**account_number** | **string** | Account number | [optional] +**office_code** | **string** | Office code | [optional] +**non_us_province** | **string** | Foreign province | [optional] +**country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | +**federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] +**postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] +**state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] +**tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] +**address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099BaseResponse.md b/docs/A1099/Form1099BaseResponse.md index 5d64024..d329f8f 100644 --- a/docs/A1099/Form1099BaseResponse.md +++ b/docs/A1099/Form1099BaseResponse.md @@ -11,19 +11,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -31,8 +34,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1099DivListItem.md b/docs/A1099/Form1099DivListItem.md index a0a94c1..9789570 100644 --- a/docs/A1099/Form1099DivListItem.md +++ b/docs/A1099/Form1099DivListItem.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] **qualified_dividends** | **string** | Qualified dividends | [optional] -**total_capital_gain_distr** | **string** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **string** | Section 1202 gain | [optional] **collectibles_gain** | **string** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] @@ -22,14 +22,14 @@ Name | Type | Description | Notes **noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] **exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] **specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] -**fatca_filing_requirement** | **string** | FATCA filing requirement | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **issuer_reference_id** | **string** | Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. | [optional] **issuer_tin** | **string** | Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. | [optional] **tax_year** | **int** | Tax year | **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -37,15 +37,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099DivListItemResponse.md b/docs/A1099/Form1099DivListItemResponse.md new file mode 100644 index 0000000..29caccb --- /dev/null +++ b/docs/A1099/Form1099DivListItemResponse.md @@ -0,0 +1,65 @@ +# # Form1099DivListItemResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] +**qualified_dividends** | **string** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **string** | Section 1202 gain | [optional] +**collectibles_gain** | **string** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **string** | Section 897 capital gain | [optional] +**nondividend_distributions** | **string** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **string** | Federal income tax withheld | [optional] +**section199_a_dividends** | **string** | Section 199A dividends | [optional] +**investment_expenses** | **string** | Investment expenses | [optional] +**foreign_tax_paid** | **string** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **string** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **string** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] +**id** | **string** | ID of the form | [readonly] +**type** | **string** | Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC | +**issuer_id** | **int** | Issuer ID | +**issuer_reference_id** | **string** | Issuer Reference ID | [optional] +**issuer_tin** | **string** | Issuer TIN | [optional] +**tax_year** | **int** | Tax year | [optional] +**federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] +**state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] +**postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] +**tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] +**address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] +**reference_id** | **string** | Reference ID | [optional] +**email** | **string** | Recipient email address | [optional] +**tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] +**tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] +**recipient_name** | **string** | Recipient name | [optional] +**recipient_second_name** | **string** | Recipient second name | [optional] +**address** | **string** | Address | [optional] +**address2** | **string** | Address line 2 | [optional] +**city** | **string** | City | [optional] +**state** | **string** | US state | [optional] +**zip** | **string** | Zip/postal code | [optional] +**non_us_province** | **string** | Foreign province | [optional] +**country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] +**created_at** | **\DateTime** | Creation time | [optional] [readonly] +**updated_at** | **\DateTime** | Update time | [optional] [readonly] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099DivRequest.md b/docs/A1099/Form1099DivRequest.md index cc2f82f..9471754 100644 --- a/docs/A1099/Form1099DivRequest.md +++ b/docs/A1099/Form1099DivRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] **qualified_dividends** | **string** | Qualified dividends | [optional] -**total_capital_gain_distr** | **string** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **string** | Section 1202 gain | [optional] **collectibles_gain** | **string** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] @@ -22,12 +22,12 @@ Name | Type | Description | Notes **noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] **exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] **specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] -**fatca_filing_requirement** | **string** | FATCA filing requirement | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **type** | **string** | | [optional] **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -35,15 +35,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099DivResponse.md b/docs/A1099/Form1099DivResponse.md index 7ecb856..89d6e6a 100644 --- a/docs/A1099/Form1099DivResponse.md +++ b/docs/A1099/Form1099DivResponse.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -24,17 +23,20 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/Form1099KListItem.md b/docs/A1099/Form1099KListItem.md index 9406b84..b598955 100644 --- a/docs/A1099/Form1099KListItem.md +++ b/docs/A1099/Form1099KListItem.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -38,15 +38,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099KListItemResponse.md b/docs/A1099/Form1099KListItemResponse.md index 6ba2c80..d616eef 100644 --- a/docs/A1099/Form1099KListItemResponse.md +++ b/docs/A1099/Form1099KListItemResponse.md @@ -31,19 +31,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -51,8 +54,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1099KRequest.md b/docs/A1099/Form1099KRequest.md index bb4b2a7..5292182 100644 --- a/docs/A1099/Form1099KRequest.md +++ b/docs/A1099/Form1099KRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**filer_type** | **int** | Filer type (PSE or EPF) | [optional] -**payment_type** | **int** | Payment type (payment card or third party network) | [optional] +**filer_type** | **string** | Filer type (PSE or EPF) | [optional] +**payment_type** | **string** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] **gross_amount_payment_card** | **float** | Gross amount of payment card/third party network transactions | [optional] **card_not_present_transactions** | **float** | Card not present transactions | [optional] @@ -28,7 +28,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -36,15 +36,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099KResponse.md b/docs/A1099/Form1099KResponse.md new file mode 100644 index 0000000..afc7a89 --- /dev/null +++ b/docs/A1099/Form1099KResponse.md @@ -0,0 +1,66 @@ +# # Form1099KResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filer_type** | **string** | | [optional] +**payment_type** | **string** | | [optional] +**payment_settlement_entity_name_phone_number** | **string** | | [optional] +**gross_amount_payment_card** | **float** | | [optional] +**card_not_present_transactions** | **float** | | [optional] +**merchant_category_code** | **string** | | [optional] +**payment_transaction_number** | **float** | | [optional] +**federal_income_tax_withheld** | **float** | | [optional] +**january** | **float** | | [optional] +**february** | **float** | | [optional] +**march** | **float** | | [optional] +**april** | **float** | | [optional] +**may** | **float** | | [optional] +**june** | **float** | | [optional] +**july** | **float** | | [optional] +**august** | **float** | | [optional] +**sept** | **float** | | [optional] +**october** | **float** | | [optional] +**november** | **float** | | [optional] +**december** | **float** | | [optional] +**type** | **string** | | [optional] [readonly] +**created_at** | **\DateTime** | | [optional] +**updated_at** | **\DateTime** | | [optional] +**state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] +**tin_type** | **string** | | [optional] +**id** | **string** | | [optional] +**issuer_id** | **string** | | [optional] +**issuer_reference_id** | **string** | | [optional] +**issuer_tin** | **string** | | [optional] +**tax_year** | **int** | | [optional] +**reference_id** | **string** | | [optional] +**recipient_name** | **string** | | [optional] +**recipient_tin** | **string** | | [optional] +**recipient_second_name** | **string** | | [optional] +**address** | **string** | | [optional] +**address2** | **string** | | [optional] +**city** | **string** | | [optional] +**state** | **string** | | [optional] +**zip** | **string** | | [optional] +**email** | **string** | | [optional] +**account_number** | **string** | | [optional] +**office_code** | **string** | | [optional] +**non_us_province** | **string** | | [optional] +**country_code** | **string** | | [optional] +**federal_e_file** | **bool** | | [optional] +**postal_mail** | **bool** | | [optional] +**state_e_file** | **bool** | | [optional] +**tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] +**address_verification** | **bool** | | [optional] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Form1099ListResponseValueInner.md b/docs/A1099/Form1099ListResponseValueInner.md index 0453fe8..6e21af0 100644 --- a/docs/A1099/Form1099ListResponseValueInner.md +++ b/docs/A1099/Form1099ListResponseValueInner.md @@ -11,19 +11,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -31,14 +34,16 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **string** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **\DateTime** | Recipient's date of birth | [optional] **recipient_giin** | **string** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **string** | Recipient's foreign TIN | [optional] @@ -63,6 +68,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **string** | Origin of health coverage code | [optional] **covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] +**qualified_dividends** | **string** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **string** | Section 1202 gain | [optional] +**collectibles_gain** | **string** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **string** | Section 897 capital gain | [optional] +**nondividend_distributions** | **string** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **string** | Section 199A dividends | [optional] +**investment_expenses** | **string** | Investment expenses | [optional] +**foreign_tax_paid** | **string** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **string** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **string** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] **filer_type** | **string** | Filer type (PSE or EPF) | [optional] **payment_type** | **string** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] @@ -70,7 +93,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **string** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -88,14 +110,15 @@ Name | Type | Description | Notes **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_and_health_care** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] -**excess_golden_parachute** | **float** | (Legacy field) Excess golden parachute payments | [optional] -**gross_amount_paid_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] +**gross_proceeds_paid_to_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**fish_purchased_for_resale** | **float** | Fish purchased for resale | [optional] **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] -**section409_a_income** | **float** | Nonqualified deferred compensation | [optional] +**nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/Form1099MiscListItem.md b/docs/A1099/Form1099MiscListItem.md index c6313d0..0460821 100644 --- a/docs/A1099/Form1099MiscListItem.md +++ b/docs/A1099/Form1099MiscListItem.md @@ -4,13 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **rents** | **float** | Rents | [optional] **royalties** | **float** | Royalties | [optional] **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_health_care_payments** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] @@ -26,7 +25,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -34,15 +33,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099MiscListItemResponse.md b/docs/A1099/Form1099MiscListItemResponse.md index fb38257..32a7d77 100644 --- a/docs/A1099/Form1099MiscListItemResponse.md +++ b/docs/A1099/Form1099MiscListItemResponse.md @@ -9,14 +9,15 @@ Name | Type | Description | Notes **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_and_health_care** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] -**excess_golden_parachute** | **float** | (Legacy field) Excess golden parachute payments | [optional] -**gross_amount_paid_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] +**gross_proceeds_paid_to_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**fish_purchased_for_resale** | **float** | Fish purchased for resale | [optional] **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] -**section409_a_income** | **float** | Nonqualified deferred compensation | [optional] +**nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] **id** | **string** | ID of the form | [readonly] **type** | **string** | Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC | **issuer_id** | **int** | Issuer ID | @@ -24,19 +25,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -44,8 +48,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1099MiscRequest.md b/docs/A1099/Form1099MiscRequest.md index 12595f4..671af4e 100644 --- a/docs/A1099/Form1099MiscRequest.md +++ b/docs/A1099/Form1099MiscRequest.md @@ -4,13 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **rents** | **float** | Rents | [optional] **royalties** | **float** | Royalties | [optional] **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_health_care_payments** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] @@ -24,7 +23,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -32,15 +31,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099MiscResponse.md b/docs/A1099/Form1099MiscResponse.md index 907de8f..b9a2077 100644 --- a/docs/A1099/Form1099MiscResponse.md +++ b/docs/A1099/Form1099MiscResponse.md @@ -4,13 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | | [optional] **rents** | **float** | | [optional] **royalties** | **float** | | [optional] **other_income** | **float** | | [optional] **fed_income_tax_withheld** | **float** | | [optional] **fishing_boat_proceeds** | **float** | | [optional] -**medical_health_care_payments** | **float** | | [optional] +**medical_and_health_care_payments** | **float** | | [optional] **direct_sales_indicator** | **bool** | | [optional] **substitute_payments** | **float** | | [optional] **crop_insurance_proceeds** | **float** | | [optional] @@ -23,7 +22,6 @@ Name | Type | Description | Notes **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -40,17 +38,20 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/Form1099NecListItem.md b/docs/A1099/Form1099NecListItem.md index cbfb0c3..d521518 100644 --- a/docs/A1099/Form1099NecListItem.md +++ b/docs/A1099/Form1099NecListItem.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] @@ -14,7 +13,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -22,15 +21,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099NecListItemResponse.md b/docs/A1099/Form1099NecListItemResponse.md index 182ccb1..dcfa6c1 100644 --- a/docs/A1099/Form1099NecListItemResponse.md +++ b/docs/A1099/Form1099NecListItemResponse.md @@ -14,19 +14,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -34,8 +37,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1099NecRequest.md b/docs/A1099/Form1099NecRequest.md index 79bc7da..6e75ea9 100644 --- a/docs/A1099/Form1099NecRequest.md +++ b/docs/A1099/Form1099NecRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | Second TIN notice | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] @@ -12,7 +11,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -20,15 +19,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099NecResponse.md b/docs/A1099/Form1099NecResponse.md index b795375..3a16457 100644 --- a/docs/A1099/Form1099NecResponse.md +++ b/docs/A1099/Form1099NecResponse.md @@ -4,14 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**second_tin_notice** | **bool** | | [optional] **nonemployee_compensation** | **float** | | [optional] **direct_sales_indicator** | **bool** | | [optional] **federal_income_tax_withheld** | **float** | | [optional] **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -28,17 +26,20 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/Form1099RListItem.md b/docs/A1099/Form1099RListItem.md index e655f08..eb20dc4 100644 --- a/docs/A1099/Form1099RListItem.md +++ b/docs/A1099/Form1099RListItem.md @@ -30,7 +30,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -38,15 +38,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Form1099RListItemResponse.md b/docs/A1099/Form1099RListItemResponse.md index a18e354..105f3ba 100644 --- a/docs/A1099/Form1099RListItemResponse.md +++ b/docs/A1099/Form1099RListItemResponse.md @@ -31,19 +31,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -51,8 +54,11 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] diff --git a/docs/A1099/Form1099RRequest.md b/docs/A1099/Form1099RRequest.md index 6921af7..8d06174 100644 --- a/docs/A1099/Form1099RRequest.md +++ b/docs/A1099/Form1099RRequest.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -36,15 +36,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/FormRequestBase.md b/docs/A1099/FormRequestBase.md index e747dc7..4cff55d 100644 --- a/docs/A1099/FormRequestBase.md +++ b/docs/A1099/FormRequestBase.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -15,15 +15,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/FormRequestListItemBase.md b/docs/A1099/FormRequestListItemBase.md index 9af1f7c..ecf1e69 100644 --- a/docs/A1099/FormRequestListItemBase.md +++ b/docs/A1099/FormRequestListItemBase.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -18,15 +18,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/FormResponseBase.md b/docs/A1099/FormResponseBase.md index adf6b67..79d3141 100644 --- a/docs/A1099/FormResponseBase.md +++ b/docs/A1099/FormResponseBase.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -24,17 +23,20 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] diff --git a/docs/A1099/FormSingleRequestBase.md b/docs/A1099/FormSingleRequestBase.md index 5a3ce9b..e4df573 100644 --- a/docs/A1099/FormSingleRequestBase.md +++ b/docs/A1099/FormSingleRequestBase.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -16,15 +16,17 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] diff --git a/docs/A1099/Get1099Form200Response.md b/docs/A1099/Get1099Form200Response.md index 89fd25e..bc77275 100644 --- a/docs/A1099/Get1099Form200Response.md +++ b/docs/A1099/Get1099Form200Response.md @@ -11,19 +11,22 @@ Name | Type | Description | Notes **issuer_tin** | **string** | Issuer TIN | [optional] **tax_year** | **int** | Tax year | [optional] **federal_efile** | **bool** | Boolean indicating that federal e-filing has been scheduled for this form | -**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Federal e-file status | [optional] [readonly] +**federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Federal e-file status | [optional] [readonly] **state_efile** | **bool** | Boolean indicating that state e-filing has been scheduled for this form | **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | State e-file status | [optional] [readonly] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient has been scheduled for this form | -**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Postal mail to recipient status | [optional] [readonly] +**postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Postal mail to recipient status | [optional] [readonly] **tin_match** | **bool** | Boolean indicating that TIN Matching has been scheduled for this form | -**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | TIN Match status | [optional] [readonly] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | TIN Match status | [optional] [readonly] **address_verification** | **bool** | Boolean indicating that address verification has been scheduled for this form | -**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse**](Form1099StatusDetailResponse.md) | Address verification status | [optional] [readonly] +**address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | Address verification status | [optional] [readonly] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | EDelivery status | [optional] [readonly] **reference_id** | **string** | Reference ID | [optional] **email** | **string** | Recipient email address | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **tin** | **string** | Recipient Tax ID Number | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second Tin Notice | [optional] **recipient_name** | **string** | Recipient name | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | [optional] @@ -31,14 +34,16 @@ Name | Type | Description | Notes **city** | **string** | City | [optional] **state** | **string** | US state | [optional] **zip** | **string** | Zip/postal code | [optional] -**foreign_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | [optional] +**account_number** | **string** | Account Number | [optional] +**office_code** | **string** | Office Code | [optional] +**fatca_filing_requirement** | **bool** | FATCA filing requirement | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | Validation errors | [optional] [readonly] **created_at** | **\DateTime** | Creation time | [optional] [readonly] **updated_at** | **\DateTime** | Update time | [optional] [readonly] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **unique_form_id** | **string** | Unique form identifier | [optional] -**no_tin** | **bool** | No TIN indicator | [optional] **recipient_date_of_birth** | **\DateTime** | Recipient's date of birth | [optional] **recipient_giin** | **string** | Recipient's GIIN (Global Intermediary Identification Number) | [optional] **recipient_foreign_tin** | **string** | Recipient's foreign TIN | [optional] @@ -63,6 +68,24 @@ Name | Type | Description | Notes **intermediary_or_flow_through** | [**\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse**](IntermediaryOrFlowThroughResponse.md) | Intermediary or flow-through entity information | [optional] **origin_of_health_coverage_code** | **string** | Origin of health coverage code | [optional] **covered_individuals** | [**\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]**](CoveredIndividualReferenceResponse.md) | Covered individuals information | [optional] +**total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] +**qualified_dividends** | **string** | Qualified dividends | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**section1202_gain** | **string** | Section 1202 gain | [optional] +**collectibles_gain** | **string** | Collectibles (28%) gain | [optional] +**section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] +**section897_capital_gain** | **string** | Section 897 capital gain | [optional] +**nondividend_distributions** | **string** | Nondividend distributions | [optional] +**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] +**section199_a_dividends** | **string** | Section 199A dividends | [optional] +**investment_expenses** | **string** | Investment expenses | [optional] +**foreign_tax_paid** | **string** | Foreign tax paid | [optional] +**foreign_country_or_us_possession** | **string** | Foreign country or U.S. possession | [optional] +**cash_liquidation_distributions** | **string** | Cash liquidation distributions | [optional] +**noncash_liquidation_distributions** | **string** | Noncash liquidation distributions | [optional] +**exempt_interest_dividends** | **string** | Exempt-interest dividends | [optional] +**specified_private_activity_bond_interest_dividends** | **string** | Specified private activity bond interest dividends | [optional] **filer_type** | **string** | Filer type (PSE or EPF) | [optional] **payment_type** | **string** | Payment type (payment card or third party network) | [optional] **payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] @@ -70,7 +93,6 @@ Name | Type | Description | Notes **card_not_present_transactions** | **float** | Card not present transactions | [optional] **merchant_category_code** | **string** | Merchant category code | [optional] **payment_transaction_number** | **float** | Number of payment transactions | [optional] -**federal_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **january** | **float** | January gross payments | [optional] **february** | **float** | February gross payments | [optional] **march** | **float** | March gross payments | [optional] @@ -88,14 +110,15 @@ Name | Type | Description | Notes **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_and_health_care** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] -**excess_golden_parachute** | **float** | (Legacy field) Excess golden parachute payments | [optional] -**gross_amount_paid_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] +**gross_proceeds_paid_to_attorney** | **float** | Gross proceeds paid to an attorney | [optional] +**fish_purchased_for_resale** | **float** | Fish purchased for resale | [optional] **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] -**section409_a_income** | **float** | Nonqualified deferred compensation | [optional] +**nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | [optional] **gross_distributions** | **float** | Gross distribution | [optional] **taxable_amount** | **float** | Taxable amount | [optional] diff --git a/docs/A1099/ICreateForm1099Request.md b/docs/A1099/ICreateForm1099Request.md index 4ef8ed2..91ba264 100644 --- a/docs/A1099/ICreateForm1099Request.md +++ b/docs/A1099/ICreateForm1099Request.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] **qualified_dividends** | **string** | Qualified dividends | [optional] -**total_capital_gain_distr** | **string** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **string** | Section 1202 gain | [optional] **collectibles_gain** | **string** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -35,24 +35,25 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] -**second_tin_notice** | **bool** | Second TIN notice | [optional] **rents** | **float** | Rents | [optional] **royalties** | **float** | Royalties | [optional] **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_health_care_payments** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] @@ -61,6 +62,25 @@ Name | Type | Description | Notes **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] **excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] **nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] +**filer_type** | **string** | Filer type (PSE or EPF) | [optional] +**payment_type** | **string** | Payment type (payment card or third party network) | [optional] +**payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] +**gross_amount_payment_card** | **float** | Gross amount of payment card/third party network transactions | [optional] +**card_not_present_transactions** | **float** | Card not present transactions | [optional] +**merchant_category_code** | **string** | Merchant category code | [optional] +**payment_transaction_number** | **float** | Number of payment transactions | [optional] +**january** | **float** | January gross payments | [optional] +**february** | **float** | February gross payments | [optional] +**march** | **float** | March gross payments | [optional] +**april** | **float** | April gross payments | [optional] +**may** | **float** | May gross payments | [optional] +**june** | **float** | June gross payments | [optional] +**july** | **float** | July gross payments | [optional] +**august** | **float** | August gross payments | [optional] +**sept** | **float** | September gross payments | [optional] +**october** | **float** | October gross payments | [optional] +**november** | **float** | November gross payments | [optional] +**december** | **float** | December gross payments | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/IUpdateForm1099Request.md b/docs/A1099/IUpdateForm1099Request.md index 413d6f1..f0db052 100644 --- a/docs/A1099/IUpdateForm1099Request.md +++ b/docs/A1099/IUpdateForm1099Request.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **total_ordinary_dividends** | **string** | Total ordinary dividends | [optional] **qualified_dividends** | **string** | Qualified dividends | [optional] -**total_capital_gain_distr** | **string** | Total capital gain distributions | [optional] -**unrecap_sec1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] +**total_capital_gain_distributions** | **string** | Total capital gain distributions | [optional] +**unrecaptured_section1250_gain** | **string** | Unrecaptured Section 1250 gain | [optional] **section1202_gain** | **string** | Section 1202 gain | [optional] **collectibles_gain** | **string** | Collectibles (28%) gain | [optional] **section897_ordinary_dividends** | **string** | Section 897 ordinary dividends | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes **issuer_id** | **string** | Issuer ID | [optional] **reference_id** | **string** | Reference ID | [optional] **recipient_tin** | **string** | Recipient Tax ID Number | [optional] -**recipient_name** | **string** | Recipient name | +**recipient_name** | **string** | Recipient name | [optional] **tin_type** | **string** | Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN | [optional] **recipient_second_name** | **string** | Recipient second name | [optional] **address** | **string** | Address | @@ -35,24 +35,25 @@ Name | Type | Description | Notes **city** | **string** | City | **state** | **string** | US state. Required if CountryCode is \"US\". | [optional] **zip** | **string** | Zip/postal code | [optional] -**recipient_email** | **string** | Recipient email address | [optional] +**email** | **string** | Recipient email address | [optional] **account_number** | **string** | Account number | [optional] **office_code** | **string** | Office code | [optional] -**recipient_non_us_province** | **string** | Foreign province | [optional] +**non_us_province** | **string** | Foreign province | [optional] **country_code** | **string** | Country code, as defined at https://www.irs.gov/e-file-providers/country-codes | **federal_e_file** | **bool** | Boolean indicating that federal e-filing should be scheduled for this form | [optional] **postal_mail** | **bool** | Boolean indicating that postal mailing to the recipient should be scheduled for this form | [optional] **state_e_file** | **bool** | Boolean indicating that state e-filing should be scheduled for this form | [optional] **tin_match** | **bool** | Boolean indicating that TIN Matching should be scheduled for this form | [optional] +**no_tin** | **bool** | Indicates whether the recipient has no TIN | [optional] +**second_tin_notice** | **bool** | Second TIN notice in three years | [optional] **address_verification** | **bool** | Boolean indicating that address verification should be scheduled for this form | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest**](StateAndLocalWithholdingRequest.md) | State and local withholding information | [optional] -**second_tin_notice** | **bool** | Second TIN notice | [optional] **rents** | **float** | Rents | [optional] **royalties** | **float** | Royalties | [optional] **other_income** | **float** | Other income | [optional] **fed_income_tax_withheld** | **float** | Federal income tax withheld | [optional] **fishing_boat_proceeds** | **float** | Fishing boat proceeds | [optional] -**medical_health_care_payments** | **float** | Medical and health care payments | [optional] +**medical_and_health_care_payments** | **float** | Medical and health care payments | [optional] **direct_sales_indicator** | **bool** | Payer made direct sales totaling $5,000 or more of consumer products to recipient for resale | [optional] **substitute_payments** | **float** | Substitute payments in lieu of dividends or interest | [optional] **crop_insurance_proceeds** | **float** | Crop insurance proceeds | [optional] @@ -61,6 +62,25 @@ Name | Type | Description | Notes **section409_a_deferrals** | **float** | Section 409A deferrals | [optional] **excess_golden_parachute_payments** | **float** | (Legacy field) Excess golden parachute payments | [optional] **nonqualified_deferred_compensation** | **float** | Nonqualified deferred compensation | [optional] +**filer_type** | **string** | Filer type (PSE or EPF) | [optional] +**payment_type** | **string** | Payment type (payment card or third party network) | [optional] +**payment_settlement_entity_name_phone_number** | **string** | Payment settlement entity name and phone number | [optional] +**gross_amount_payment_card** | **float** | Gross amount of payment card/third party network transactions | [optional] +**card_not_present_transactions** | **float** | Card not present transactions | [optional] +**merchant_category_code** | **string** | Merchant category code | [optional] +**payment_transaction_number** | **float** | Number of payment transactions | [optional] +**january** | **float** | January gross payments | [optional] +**february** | **float** | February gross payments | [optional] +**march** | **float** | March gross payments | [optional] +**april** | **float** | April gross payments | [optional] +**may** | **float** | May gross payments | [optional] +**june** | **float** | June gross payments | [optional] +**july** | **float** | July gross payments | [optional] +**august** | **float** | August gross payments | [optional] +**sept** | **float** | September gross payments | [optional] +**october** | **float** | October gross payments | [optional] +**november** | **float** | November gross payments | [optional] +**december** | **float** | December gross payments | [optional] **nonemployee_compensation** | **float** | Nonemployee compensation | [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/IrsResponse.md b/docs/A1099/IrsResponse.md new file mode 100644 index 0000000..1b27352 --- /dev/null +++ b/docs/A1099/IrsResponse.md @@ -0,0 +1,10 @@ +# # IrsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **string** | The IRS response code. | [optional] +**description** | **string** | The description for the IRS response. | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/OfferAndCoverageRequest.md b/docs/A1099/OfferAndCoverageRequest.md new file mode 100644 index 0000000..275fd90 --- /dev/null +++ b/docs/A1099/OfferAndCoverageRequest.md @@ -0,0 +1,13 @@ +# # OfferAndCoverageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**month** | **string** | Month of coverage | [optional] +**offer_code** | **string** | Offer of coverage code | [optional] +**share** | **float** | Employee required contribution share | [optional] +**safe_harbor_code** | **string** | Safe harbor code | [optional] +**zip_code** | **string** | ZIP code for coverage area | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/TinMatchStatusResponse.md b/docs/A1099/TinMatchStatusResponse.md new file mode 100644 index 0000000..10237eb --- /dev/null +++ b/docs/A1099/TinMatchStatusResponse.md @@ -0,0 +1,11 @@ +# # TinMatchStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **\DateTime** | The current timestamp for the TIN match request. | [optional] +**status** | **string** | The current status for the TIN match request. | [optional] +**irs_response** | [**\Avalara\SDK\Model\A1099\V2\IrsResponse**](IrsResponse.md) | The IRS response. | [optional] + +[[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/Update1099Form200Response.md b/docs/A1099/Update1099Form200Response.md index f7f1d19..91ada88 100644 --- a/docs/A1099/Update1099Form200Response.md +++ b/docs/A1099/Update1099Form200Response.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **type** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | | [optional] **updated_at** | **\DateTime** | | [optional] -**user_id** | **string** | | [optional] **state_and_local_withholding** | [**\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse**](StateAndLocalWithholdingResponse.md) | | [optional] **tin_type** | **string** | | [optional] **id** | **string** | | [optional] @@ -24,29 +23,51 @@ Name | Type | Description | Notes **city** | **string** | | [optional] **state** | **string** | | [optional] **zip** | **string** | | [optional] -**recipient_email** | **string** | | [optional] +**email** | **string** | | [optional] **account_number** | **string** | | [optional] **office_code** | **string** | | [optional] -**recipient_non_us_province** | **string** | | [optional] +**non_us_province** | **string** | | [optional] **country_code** | **string** | | [optional] **federal_e_file** | **bool** | | [optional] **postal_mail** | **bool** | | [optional] **state_e_file** | **bool** | | [optional] **tin_match** | **bool** | | [optional] +**no_tin** | **bool** | | [optional] +**second_tin_notice** | **bool** | | [optional] **address_verification** | **bool** | | [optional] **federal_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] +**e_delivery_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **state_efile_status** | [**\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]**](StateEfileStatusDetailResponse.md) | | [optional] **postal_mail_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **address_verification_status** | [**\Avalara\SDK\Model\A1099\V2\StatusDetail**](StatusDetail.md) | | [optional] **validation_errors** | [**\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]**](ValidationErrorResponse.md) | | [optional] -**second_tin_notice** | **bool** | | [optional] +**filer_type** | **string** | | [optional] +**payment_type** | **string** | | [optional] +**payment_settlement_entity_name_phone_number** | **string** | | [optional] +**gross_amount_payment_card** | **float** | | [optional] +**card_not_present_transactions** | **float** | | [optional] +**merchant_category_code** | **string** | | [optional] +**payment_transaction_number** | **float** | | [optional] +**federal_income_tax_withheld** | **float** | | [optional] +**january** | **float** | | [optional] +**february** | **float** | | [optional] +**march** | **float** | | [optional] +**april** | **float** | | [optional] +**may** | **float** | | [optional] +**june** | **float** | | [optional] +**july** | **float** | | [optional] +**august** | **float** | | [optional] +**sept** | **float** | | [optional] +**october** | **float** | | [optional] +**november** | **float** | | [optional] +**december** | **float** | | [optional] **rents** | **float** | | [optional] **royalties** | **float** | | [optional] **other_income** | **float** | | [optional] **fed_income_tax_withheld** | **float** | | [optional] **fishing_boat_proceeds** | **float** | | [optional] -**medical_health_care_payments** | **float** | | [optional] +**medical_and_health_care_payments** | **float** | | [optional] **direct_sales_indicator** | **bool** | | [optional] **substitute_payments** | **float** | | [optional] **crop_insurance_proceeds** | **float** | | [optional] @@ -57,6 +78,5 @@ Name | Type | Description | Notes **excess_golden_parachute_payments** | **float** | | [optional] **nonqualified_deferred_compensation** | **float** | | [optional] **nonemployee_compensation** | **float** | | [optional] -**federal_income_tax_withheld** | **float** | | [optional] [[Back to Model list]](../../../README.md#models) [[Back to API list]](../../../README.md#endpoints) [[Back to README]](../../../README.md) diff --git a/docs/A1099/V2/CompaniesW9Api.md b/docs/A1099/V2/CompaniesW9Api.md index 0535425..3cfc6f7 100644 --- a/docs/A1099/V2/CompaniesW9Api.md +++ b/docs/A1099/V2/CompaniesW9Api.md @@ -40,7 +40,7 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 144f810d-5777-472b-b372-c1028d9a13ae; // string | Unique correlation Id in a GUID format +$x_correlation_id = 097506be-b40b-4107-8d62-206070d11548; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $company_create_update_request_model = new \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel(); // \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel | The company to create @@ -108,7 +108,7 @@ $apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | The company to delete $avalara_version = 2.0.0; // string | API version -$x_correlation_id = db071c51-528f-4929-a031-523aa34002d1; // string | Unique correlation Id in a GUID format +$x_correlation_id = 3af2abb1-7024-4cc7-9c52-53e793e1c863; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -173,13 +173,13 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $avalara_version = 2.0.0; // string | API version -$filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. +$filter = name eq 'company name'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. $top = 56; // int | If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. $skip = 56; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | If true, return the global count of elements in the collection. $count_only = True; // bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. -$x_correlation_id = 7ad30f3a-b27d-440e-98da-516663741d89; // string | Unique correlation Id in a GUID format +$x_correlation_id = bbe9eb96-736f-4c5c-99d7-9df8f66819b3; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -251,7 +251,7 @@ $apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | Id of the company $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 77521b27-805c-40b1-a6c8-3d6339acba99; // string | Unique correlation Id in a GUID format +$x_correlation_id = e6013371-7d72-4c3d-8a5f-c4e08177c3ae; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -318,7 +318,7 @@ $apiInstance = new Avalara\SDK\Api\CompaniesW9Api($client); $id = 'id_example'; // string | The ID of the company to update $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 9b982dee-5208-416e-8acf-84070e235acc; // string | Unique correlation Id in a GUID format +$x_correlation_id = d8a0cb91-eb8b-4bd6-8812-2b690995afcc; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $company_create_update_request_model = new \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel(); // \Avalara\SDK\Model\A1099\V2\CompanyCreateUpdateRequestModel | The updated company data diff --git a/docs/A1099/V2/Forms1099Api.md b/docs/A1099/V2/Forms1099Api.md index dc9504d..a673007 100644 --- a/docs/A1099/V2/Forms1099Api.md +++ b/docs/A1099/V2/Forms1099Api.md @@ -21,7 +21,7 @@ bulkUpsert1099Forms($avalara_version, $dry_run, $x_correlation_id, $x_avalara_cl Create or update multiple 1099/1095/W2/1042S forms -This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"RecipientEmail\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"RecipientNonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"recipientNonUsProvince\": \"\", \"recipientEmail\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. +This endpoint allows you to create or update multiple 1099/1095/W2/1042S forms. You can use one of the following payload structures: **Form 1099-MISC:** ```json { \"formType\": \"1099-MISC\", \"forms\": [ { \"IssuerId\": \"123456\", \"IssuerReferenceId\": \"REF123\", \"IssuerTin\": \"12-3456789\", \"TaxYear\": 2023, \"ReferenceId\": \"FORM123456\", \"RecipientName\": \"John Doe\", \"RecipientTin\": \"587-65-4321\", \"TinType\": \"SSN\", \"RecipientSecondName\": \"Jane Doe\", \"Address\": \"123 Main Street\", \"Address2\": \"Apt 4B\", \"City\": \"New York\", \"State\": \"NY\", \"Zip\": \"10001\", \"Email\": \"john.doe@email.com\", \"AccountNumber\": \"ACC123456\", \"OfficeCode\": \"NYC01\", \"SecondTinNotice\": false, \"NonUsProvince\": \"\", \"CountryCode\": \"US\", \"Rents\": 12000.00, \"Royalties\": 5000.00, \"OtherIncome\": 3000.00, \"FishingBoatProceeds\": 0.00, \"MedicalAndHealthCarePayments\": 15000.00, \"SubstitutePayments\": 1000.00, \"CropInsuranceProceeds\": 0.00, \"GrossProceedsPaidToAttorney\": 7500.00, \"FishPurchasedForResale\": 0.00, \"FedIncomeTaxWithheld\": 5000.00, \"Section409ADeferrals\": 0.00, \"ExcessGoldenParachutePayments\": 0.00, \"NonqualifiedDeferredCompensation\": 0.00, \"DirectSalesIndicator\": false, \"FatcaFilingRequirement\": false, \"StateAndLocalWithholding\": { \"StateTaxWithheld\": 2500.00, \"LocalTaxWithheld\": 1000.00, \"State\": \"NY\", \"StateIdNumber\": \"NY123456\", \"Locality\": \"New York City\", \"StateIncome\": 35000.00, \"LocalIncome\": 35000.00 } } ] } ``` **Form 1099-NEC:** ```json { \"formType\": \"1099-NEC\", \"forms\": [ { \"issuerID\": \"180337282\", \"issuerReferenceId\": \"ISS123\", \"issuerTin\": \"12-3000000\", \"taxYear\": 2024, \"referenceID\": \"REF-002\", \"recipientName\": \"Jane Smith\", \"recipientSecondName\": \"\", \"recipientTin\": \"587-65-4321\", \"tinType\": \"SSN\", \"address\": \"123 Center St\", \"address2\": \"\", \"city\": \"Santa Monica\", \"state\": \"CA\", \"zip\": \"90401\", \"countryCode\": \"US\", \"nonUsProvince\": \"\", \"email\": \"\", \"accountNumber\": \"\", \"officeCode\": \"\", \"secondTinNotice\": false, \"nonemployeeCompensation\": 123.45, \"directSalesIndicator\": false, \"federalIncomeTaxWithheld\": 12.34, \"stateAndLocalWithholding\": { \"state\": \"CA\", \"stateIdNumber\": \"123123123\", \"stateIncome\": 123.45, \"stateTaxWithheld\": 12.34, \"locality\": \"Santa Monica\", \"localityIdNumber\": \"456456\", \"localTaxWithheld\": 12.34, \"localIncome\": 50000.00 }, \"federalEFile\": true, \"postalMail\": true, \"stateEFile\": true, \"tinMatch\": true, \"addressVerification\": true } ] } ``` For the full version of the payload and its schema details, refer to the Swagger schemas section. ### Example @@ -43,7 +43,7 @@ $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0.0; // string | API version $dry_run = false; // bool | -$x_correlation_id = 032e11a9-1930-48bc-9cd5-865dfeb5f8bb; // string | Unique correlation Id in a GUID format +$x_correlation_id = 85d89e46-adbc-4a36-a615-347bd0ad3549; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $bulk_upsert1099_forms_request = new \Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest(); // \Avalara\SDK\Model\A1099\V2\BulkUpsert1099FormsRequest | @@ -111,7 +111,7 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 2a525a1d-2ac8-4894-87a5-1bd347d76b1c; // string | Unique correlation Id in a GUID format +$x_correlation_id = ac2b2725-9848-49c3-9255-1d638490cc87; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $i_create_form1099_request = new \Avalara\SDK\Model\A1099\V2\ICreateForm1099Request(); // \Avalara\SDK\Model\A1099\V2\ICreateForm1099Request @@ -179,7 +179,7 @@ $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string | The unique identifier of the desired form to delete. $avalara_version = 2.0.0; // string | API version -$x_correlation_id = ba633be6-e650-424e-a01c-28c6693b9e3a; // string | Unique correlation Id in a GUID format +$x_correlation_id = 0839267c-9208-438e-9fcd-3c193fd0216a; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -245,7 +245,7 @@ $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string $avalara_version = 2.0.0; // string | API version -$x_correlation_id = f311cf9a-de50-4d53-9663-bdf93020dd26; // string | Unique correlation Id in a GUID format +$x_correlation_id = 4c3931c8-2cd4-42f3-9042-7c23336b9f32; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -313,7 +313,7 @@ $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string | The ID of the form $avalara_version = 2.0.0; // string | API version $mark_edelivered = True; // bool | Optional boolean that if set indicates that the form should be marked as having been successfully edelivered -$x_correlation_id = a1c63b5e-c575-4315-90ad-0ac98e71a981; // string | Unique correlation Id in a GUID format +$x_correlation_id = 9133bfa6-8661-46dc-bbf2-4d45d0439e76; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -380,11 +380,11 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $avalara_version = 2.0.0; // string | API version -$filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Collections support filtering only on certain fields. An attempt to filter on an unsupported field will receive a 400 Bad Request response. Supported filtering fields are as follows: issuerId issuerReferenceId taxYear addressVerificationStatus - possible values are: unknown, pending, failed, incomplete, unchanged, verified createdAt edeliveryStatus - possible values are: sent, unscheduled, bad_verify, bad_verify_limit, scheduled, bounced, accepted email federalEfileStatus - possible values are: unscheduled, scheduled, sent, corrected_scheduled, accepted, corrected, corrected_accepted, held recipientName mailStatus - possible values are: sent, unscheduled, pending, delivered referenceId tinMatchStatus - possible values are: none, pending, matched, failed type - possible values are: 940, 941, 943, 944, 945, 1042, 1042-S, 1095-B, 1095-C, 1097-BTC, 1098, 1098-C, 1098-E, 1098-Q, 1098-T, 3921, 3922, 5498, 5498-ESA, 5498-SA, 1099-MISC, 1099-A, 1099-B, 1099-C, 1099-CAP, 1099-DIV, 1099-G, 1099-INT, 1099-K, 1099-LS, 1099-LTC, 1099-NEC, 1099-OID, 1099-PATR, 1099-Q, 1099-R, 1099-S, 1099-SA, T4A, W-2, W-2G, 1099-HC updatedAt validity - possible values are: true, false +$filter = issuerId eq 884781823; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. Collections support filtering only on certain fields. An attempt to filter on an unsupported field will receive a 400 Bad Request response. Supported filtering fields are as follows: issuerId issuerReferenceId taxYear addressVerificationStatus - possible values are: unknown, pending, failed, incomplete, unchanged, verified createdAt edeliveryStatus - possible values are: sent, unscheduled, bad_verify, bad_verify_limit, scheduled, bounced, accepted email federalEfileStatus - possible values are: unscheduled, scheduled, sent, corrected_scheduled, accepted, corrected, corrected_accepted, held recipientName mailStatus - possible values are: sent, unscheduled, pending, delivered referenceId tinMatchStatus - possible values are: none, pending, matched, failed type - possible values are: 940, 941, 943, 944, 945, 1042, 1042-S, 1095-B, 1095-C, 1097-BTC, 1098, 1098-C, 1098-E, 1098-Q, 1098-T, 3921, 3922, 5498, 5498-ESA, 5498-SA, 1099-MISC, 1099-A, 1099-B, 1099-C, 1099-CAP, 1099-DIV, 1099-G, 1099-INT, 1099-K, 1099-LS, 1099-LTC, 1099-NEC, 1099-OID, 1099-PATR, 1099-Q, 1099-R, 1099-S, 1099-SA, T4A, W-2, W-2G, 1099-HC updatedAt validity - possible values are: true, false $top = 10; // int | If nonzero, return no more than this number of results. Used with skip to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. $skip = 0; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example issuerReferenceId ASC. Supported sorting fields are: issuerReferenceId taxYear createdAt recipientName updatedAt -$x_correlation_id = 443e5440-659c-4f7d-865e-fd185b0ed923; // string | Unique correlation Id in a GUID format +$x_correlation_id = 1d1f9e87-4684-46a4-9439-85058f82f858; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -454,7 +454,7 @@ $apiInstance = new Avalara\SDK\Api\Forms1099Api($client); $id = 'id_example'; // string $avalara_version = 2.0.0; // string | API version -$x_correlation_id = d65ebcaf-e252-421c-a543-3d1ba4e4175b; // string | Unique correlation Id in a GUID format +$x_correlation_id = e59dff29-007e-4aa7-8b11-5ba83766a56a; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $i_update_form1099_request = new \Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request(); // \Avalara\SDK\Model\A1099\V2\IUpdateForm1099Request diff --git a/docs/A1099/V2/FormsW9Api.md b/docs/A1099/V2/FormsW9Api.md index 3f1e009..fce74c4 100644 --- a/docs/A1099/V2/FormsW9Api.md +++ b/docs/A1099/V2/FormsW9Api.md @@ -42,7 +42,7 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 968b9850-b859-4a5a-8165-bd1e444fbf47; // string | Unique correlation Id in a GUID format +$x_correlation_id = 479b3bdd-2b5c-48b3-b24c-b0ecbe0d07c5; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $create_w9_form_request = {"type":"W9","name":"John Doe","businessName":"Acme Inc.","businessClassification":"Individual","businessOther":null,"foreignPartnerOwnerOrBeneficiary":false,"exemptPayeeCode":null,"exemptFatcaCode":null,"foreignCountryIndicator":false,"address":"123 Main St.","foreignAddress":null,"city":"Anytown","state":"CA","zip":"12345","accountNumber":null,"tinType":"SSN","tin":"543456789","backupWithholding":false,"is1099able":true,"companyId":"32553266","referenceId":null,"email":null,"eDeliveryConsentedAt":null,"signature":null}; // \Avalara\SDK\Model\A1099\V2\CreateW9FormRequest | Form to be created @@ -110,7 +110,7 @@ $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | ID of the form to delete $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 69926298-ed5b-4d78-8099-b5488589912d; // string | Unique correlation Id in a GUID format +$x_correlation_id = 7d79301a-ebfd-40a1-a1af-a9a1e44f8936; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -176,7 +176,7 @@ $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | ID of the form $avalara_version = 2.0.0; // string | API version -$x_correlation_id = e138390c-5561-49df-a969-49427e2c5ffa; // string | Unique correlation Id in a GUID format +$x_correlation_id = b4cc81aa-1d2e-4cef-aa68-705ea2aaf594; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -247,7 +247,7 @@ $top = 10; // int | If nonzero, return no more than this number of results. Used $skip = 0; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | When true, returns a @recordSetCount in the result set -$x_correlation_id = f80bd20b-84ec-47de-913f-304dd9951b58; // string | Unique correlation Id in a GUID format +$x_correlation_id = 8afdb9ff-bb10-414e-bd81-5cb5175aad0c; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -318,7 +318,7 @@ $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | The ID of the W9/W4/W8 form. $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 75735dc9-2909-4f11-bc6c-6e1ec0d77264; // string | Unique correlation Id in a GUID format +$x_correlation_id = 37d1fca1-1efa-454b-a3ff-94ec972b74b4; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -385,7 +385,7 @@ $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | ID of the form to update $avalara_version = 2.0.0; // string | API version -$x_correlation_id = d24784a4-9522-46c7-b6e0-8f44cb176f17; // string | Unique correlation Id in a GUID format +$x_correlation_id = 8c37ab84-020e-452c-ad69-df89a9ac9cfa; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $iw9_form_data_models_one_of = new \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf(); // \Avalara\SDK\Model\A1099\V2\IW9FormDataModelsOneOf | Form to be updated @@ -454,7 +454,7 @@ $apiInstance = new Avalara\SDK\Api\FormsW9Api($client); $id = 'id_example'; // string | Id of the form $avalara_version = 2.0.0; // string | API version -$x_correlation_id = ee2e9278-6cdb-47ad-82a0-9d5a726f7412; // string | Unique correlation Id in a GUID format +$x_correlation_id = 2ce587b6-7523-41b2-8033-347329740bcb; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $file = "/path/to/file.txt"; // \SplFileObject diff --git a/docs/A1099/V2/Issuers1099Api.md b/docs/A1099/V2/Issuers1099Api.md index ac6d656..c9f1449 100644 --- a/docs/A1099/V2/Issuers1099Api.md +++ b/docs/A1099/V2/Issuers1099Api.md @@ -40,7 +40,7 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $avalara_version = 2.0.0; // string | API version -$x_correlation_id = ce42bd72-2b6a-438a-8e8b-983910339267; // string | Unique correlation Id in a GUID format +$x_correlation_id = cd08f20c-e93f-4ed9-9fcc-1c43161a5ab1; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $issuer_command = new \Avalara\SDK\Model\A1099\V2\IssuerCommand(); // \Avalara\SDK\Model\A1099\V2\IssuerCommand | The issuer to create @@ -108,7 +108,7 @@ $apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string | Id of the issuer to delete $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 706821c8-d3fe-4fb8-82c2-5d6cf92c475e; // string | Unique correlation Id in a GUID format +$x_correlation_id = b31ed293-452b-4f1a-9781-92bf4cc732b2; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -174,7 +174,7 @@ $apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string | Id of the issuer to retrieve $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 14762757-396e-4e07-851b-2b7dd2542250; // string | Unique correlation Id in a GUID format +$x_correlation_id = 6f7412dc-b5d2-4657-9ae0-9eb72e1cbaac; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -240,13 +240,13 @@ $client = new \Avalara\SDK\ApiClient($config); $apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $avalara_version = 2.0.0; // string | API version -$filter = 'filter_example'; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. +$filter = taxYear eq 2024; // string | A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST. $top = 56; // int | If zero or greater than 1000, return at most 1000 results. Otherwise, return this number of results. Used with skip to provide pagination for large datasets. $skip = 56; // int | If nonzero, skip this number of results before returning data. Used with top to provide pagination for large datasets. $order_by = 'order_by_example'; // string | A comma separated list of sort statements in the format (fieldname) [ASC|DESC], for example id ASC. $count = True; // bool | If true, return the global count of elements in the collection. $count_only = True; // bool | If true, return ONLY the global count of elements in the collection. It only applies when count=true. -$x_correlation_id = 99c911ff-f4eb-42a8-841d-342a6cd1c7d5; // string | Unique correlation Id in a GUID format +$x_correlation_id = 6ab59fe8-83fc-4fa3-9617-abb9b8d1bdb7; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { @@ -318,7 +318,7 @@ $apiInstance = new Avalara\SDK\Api\Issuers1099Api($client); $id = 'id_example'; // string | Id of the issuer to update $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 092e5597-f724-49e7-bffa-4f1f21cb6236; // string | Unique correlation Id in a GUID format +$x_correlation_id = 2f427cf4-fa55-4abb-85da-d79a4a846191; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . $issuer_command = new \Avalara\SDK\Model\A1099\V2\IssuerCommand(); // \Avalara\SDK\Model\A1099\V2\IssuerCommand | The issuer to update diff --git a/docs/A1099/V2/Jobs1099Api.md b/docs/A1099/V2/Jobs1099Api.md index e451f0c..f75a3a3 100644 --- a/docs/A1099/V2/Jobs1099Api.md +++ b/docs/A1099/V2/Jobs1099Api.md @@ -37,7 +37,7 @@ $apiInstance = new Avalara\SDK\Api\Jobs1099Api($client); $id = 'id_example'; // string | Job id obtained from other API responses, like `/1099/bulk-upsert`. $avalara_version = 2.0.0; // string | API version -$x_correlation_id = 0d84e31f-0d44-4920-9f1b-5daa360e7925; // string | Unique correlation Id in a GUID format +$x_correlation_id = 85be69fe-08d7-40f4-8ce2-dd043ea36143; // string | Unique correlation Id in a GUID format $x_avalara_client = Swagger UI; 22.1.0; // string | Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . try { diff --git a/docs/A1099/W9FormResponse.md b/docs/A1099/W9FormResponse.md index f70af41..7fbe2e4 100644 --- a/docs/A1099/W9FormResponse.md +++ b/docs/A1099/W9FormResponse.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **tin** | **string** | The taxpayer identification number (TIN). | [optional] **backup_withholding** | **bool** | Indicates whether backup withholding applies. | [optional] **is1099able** | **bool** | Indicates whether the individual or entity should be issued a 1099 form. | [optional] +**tin_match_status** | [**\Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse**](TinMatchStatusResponse.md) | The TIN Match status from IRS. | [optional] **id** | **string** | The unique identifier for the form. | [optional] **type** | **string** | The form type. | [optional] **entry_status** | **string** | The form status. | [optional] diff --git a/lib/API/A1099/V2/CompaniesW9Api.php b/lib/API/A1099/V2/CompaniesW9Api.php index 46b686d..93bb747 100644 --- a/lib/API/A1099/V2/CompaniesW9Api.php +++ b/lib/API/A1099/V2/CompaniesW9Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -423,7 +423,7 @@ public function createCompanyRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -742,7 +742,7 @@ public function deleteCompanyRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1212,7 +1212,7 @@ public function getCompaniesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1625,7 +1625,7 @@ public function getCompanyRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2018,7 +2018,7 @@ public function updateCompanyRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/A1099/V2/Forms1099Api.php b/lib/API/A1099/V2/Forms1099Api.php index 6bd105b..a9c7bfd 100644 --- a/lib/API/A1099/V2/Forms1099Api.php +++ b/lib/API/A1099/V2/Forms1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -456,7 +456,7 @@ public function bulkUpsert1099FormsRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -819,7 +819,7 @@ public function create1099FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1138,7 +1138,7 @@ public function delete1099FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1530,7 +1530,7 @@ public function get1099FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1934,7 +1934,7 @@ public function get1099FormPdfRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2359,7 +2359,7 @@ public function list1099FormsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2752,7 +2752,7 @@ public function update1099FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/A1099/V2/FormsW9Api.php b/lib/API/A1099/V2/FormsW9Api.php index a6399d6..e53a1fc 100644 --- a/lib/API/A1099/V2/FormsW9Api.php +++ b/lib/API/A1099/V2/FormsW9Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -402,7 +402,7 @@ public function createW9FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -705,7 +705,7 @@ public function deleteW9FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1055,7 +1055,7 @@ public function getW9FormRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1471,7 +1471,7 @@ public function listW9FormsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1842,7 +1842,7 @@ public function sendW9FormEmailRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2214,7 +2214,7 @@ public function updateW9FormRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2538,7 +2538,7 @@ public function uploadW9FilesRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/A1099/V2/Issuers1099Api.php b/lib/API/A1099/V2/Issuers1099Api.php index b93bcdd..1f6d82a 100644 --- a/lib/API/A1099/V2/Issuers1099Api.php +++ b/lib/API/A1099/V2/Issuers1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -423,7 +423,7 @@ public function createIssuerRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -726,7 +726,7 @@ public function deleteIssuerRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1097,7 +1097,7 @@ public function getIssuerRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1567,7 +1567,7 @@ public function getIssuersRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1865,7 +1865,7 @@ public function updateIssuerRequest($request_parameters) ['application/json', 'text/json', 'application/*+json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/A1099/V2/Jobs1099Api.php b/lib/API/A1099/V2/Jobs1099Api.php index 5372244..ec17a36 100644 --- a/lib/API/A1099/V2/Jobs1099Api.php +++ b/lib/API/A1099/V2/Jobs1099Api.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -458,7 +458,7 @@ public function getJobRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/DataInputFieldsApi.php b/lib/API/EInvoicing/V1/DataInputFieldsApi.php index 1b44264..72db277 100644 --- a/lib/API/EInvoicing/V1/DataInputFieldsApi.php +++ b/lib/API/EInvoicing/V1/DataInputFieldsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -477,7 +477,7 @@ public function getDataInputFieldsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/DocumentsApi.php b/lib/API/EInvoicing/V1/DocumentsApi.php index 0a1426f..25988c6 100644 --- a/lib/API/EInvoicing/V1/DocumentsApi.php +++ b/lib/API/EInvoicing/V1/DocumentsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -464,7 +464,7 @@ public function downloadDocumentRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -822,7 +822,7 @@ public function fetchDocumentsRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1275,7 +1275,7 @@ public function getDocumentListRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1641,7 +1641,7 @@ public function getDocumentStatusRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2014,7 +2014,7 @@ public function submitDocumentRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/InteropApi.php b/lib/API/EInvoicing/V1/InteropApi.php index 7a362d7..a30b381 100644 --- a/lib/API/EInvoicing/V1/InteropApi.php +++ b/lib/API/EInvoicing/V1/InteropApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -513,7 +513,7 @@ public function submitInteropDocumentRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/MandatesApi.php b/lib/API/EInvoicing/V1/MandatesApi.php index 39328d0..4bc330f 100644 --- a/lib/API/EInvoicing/V1/MandatesApi.php +++ b/lib/API/EInvoicing/V1/MandatesApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -510,7 +510,7 @@ public function getMandateDataInputFieldsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -942,7 +942,7 @@ public function getMandatesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/SubscriptionsApi.php b/lib/API/EInvoicing/V1/SubscriptionsApi.php index 658fa47..71efe8e 100644 --- a/lib/API/EInvoicing/V1/SubscriptionsApi.php +++ b/lib/API/EInvoicing/V1/SubscriptionsApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -450,7 +450,7 @@ public function createWebhookSubscriptionRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -761,7 +761,7 @@ public function deleteWebhookSubscriptionRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1153,7 +1153,7 @@ public function getWebhookSubscriptionRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1578,7 +1578,7 @@ public function listWebhookSubscriptionsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/TaxIdentifiersApi.php b/lib/API/EInvoicing/V1/TaxIdentifiersApi.php index 1e6c798..34b4b7c 100644 --- a/lib/API/EInvoicing/V1/TaxIdentifiersApi.php +++ b/lib/API/EInvoicing/V1/TaxIdentifiersApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -494,7 +494,7 @@ public function taxIdentifierSchemaByCountryRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -920,7 +920,7 @@ public function validateTaxIdentifierRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/API/EInvoicing/V1/TradingPartnersApi.php b/lib/API/EInvoicing/V1/TradingPartnersApi.php index 3fc30dd..8c8b056 100644 --- a/lib/API/EInvoicing/V1/TradingPartnersApi.php +++ b/lib/API/EInvoicing/V1/TradingPartnersApi.php @@ -79,7 +79,7 @@ public function __construct(ApiClient $client ) private function setConfiguration($client): void { $this->verifyAPIClient($client); - $client->setSdkVersion("25.8.0"); + $client->setSdkVersion("25.8.1"); $this->headerSelector = new HeaderSelector(); $this->client = $client; } @@ -519,7 +519,7 @@ public function batchSearchParticipantsRequest($request_parameters) ['multipart/form-data'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -945,7 +945,7 @@ public function createTradingPartnerRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1398,7 +1398,7 @@ public function createTradingPartnersBatchRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -1717,7 +1717,7 @@ public function deleteTradingPartnerRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2130,7 +2130,7 @@ public function downloadBatchSearchReportRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -2543,7 +2543,7 @@ public function getBatchSearchDetailRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -3001,7 +3001,7 @@ public function listBatchSearchesRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -3477,7 +3477,7 @@ public function searchParticipantsRequest($request_parameters) [] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; @@ -3939,7 +3939,7 @@ public function updateTradingPartnerRequest($request_parameters) ['application/json'] ); } - $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.0; {$this->client->config->getMachineName()}"; + $clientId="{$this->client->config->getAppName()}; {$this->client->config->getAppVersion()}; PhpRestClient; 25.8.1; {$this->client->config->getMachineName()}"; $headers['X-Avalara-Client']=$clientId; diff --git a/lib/Model/A1099/V2/CoveredIndividualRequest.php b/lib/Model/A1099/V2/CoveredIndividualRequest.php index 72bbff9..94a3a9f 100644 --- a/lib/Model/A1099/V2/CoveredIndividualRequest.php +++ b/lib/Model/A1099/V2/CoveredIndividualRequest.php @@ -77,19 +77,19 @@ class CoveredIndividualRequest implements ModelInterface, ArrayAccess, \JsonSeri 'name_suffix' => 'string', 'tin' => 'string', 'birth_date' => '\DateTime', - 'covered_month_indicator0' => 'bool', - 'covered_month_indicator1' => 'bool', - 'covered_month_indicator2' => 'bool', - 'covered_month_indicator3' => 'bool', - 'covered_month_indicator4' => 'bool', - 'covered_month_indicator5' => 'bool', - 'covered_month_indicator6' => 'bool', - 'covered_month_indicator7' => 'bool', - 'covered_month_indicator8' => 'bool', - 'covered_month_indicator9' => 'bool', - 'covered_month_indicator10' => 'bool', - 'covered_month_indicator11' => 'bool', - 'covered_month_indicator12' => 'bool' + 'covered_all_months' => 'bool', + 'covered_january' => 'bool', + 'covered_february' => 'bool', + 'covered_march' => 'bool', + 'covered_april' => 'bool', + 'covered_may' => 'bool', + 'covered_june' => 'bool', + 'covered_july' => 'bool', + 'covered_august' => 'bool', + 'covered_september' => 'bool', + 'covered_october' => 'bool', + 'covered_november' => 'bool', + 'covered_december' => 'bool' ]; /** @@ -106,19 +106,19 @@ class CoveredIndividualRequest implements ModelInterface, ArrayAccess, \JsonSeri 'name_suffix' => null, 'tin' => null, 'birth_date' => 'date-time', - 'covered_month_indicator0' => null, - 'covered_month_indicator1' => null, - 'covered_month_indicator2' => null, - 'covered_month_indicator3' => null, - 'covered_month_indicator4' => null, - 'covered_month_indicator5' => null, - 'covered_month_indicator6' => null, - 'covered_month_indicator7' => null, - 'covered_month_indicator8' => null, - 'covered_month_indicator9' => null, - 'covered_month_indicator10' => null, - 'covered_month_indicator11' => null, - 'covered_month_indicator12' => null + 'covered_all_months' => null, + 'covered_january' => null, + 'covered_february' => null, + 'covered_march' => null, + 'covered_april' => null, + 'covered_may' => null, + 'covered_june' => null, + 'covered_july' => null, + 'covered_august' => null, + 'covered_september' => null, + 'covered_october' => null, + 'covered_november' => null, + 'covered_december' => null ]; /** @@ -154,19 +154,19 @@ public static function openAPIFormats() 'name_suffix' => 'nameSuffix', 'tin' => 'tin', 'birth_date' => 'birthDate', - 'covered_month_indicator0' => 'coveredMonthIndicator0', - 'covered_month_indicator1' => 'coveredMonthIndicator1', - 'covered_month_indicator2' => 'coveredMonthIndicator2', - 'covered_month_indicator3' => 'coveredMonthIndicator3', - 'covered_month_indicator4' => 'coveredMonthIndicator4', - 'covered_month_indicator5' => 'coveredMonthIndicator5', - 'covered_month_indicator6' => 'coveredMonthIndicator6', - 'covered_month_indicator7' => 'coveredMonthIndicator7', - 'covered_month_indicator8' => 'coveredMonthIndicator8', - 'covered_month_indicator9' => 'coveredMonthIndicator9', - 'covered_month_indicator10' => 'coveredMonthIndicator10', - 'covered_month_indicator11' => 'coveredMonthIndicator11', - 'covered_month_indicator12' => 'coveredMonthIndicator12' + 'covered_all_months' => 'coveredAllMonths', + 'covered_january' => 'coveredJanuary', + 'covered_february' => 'coveredFebruary', + 'covered_march' => 'coveredMarch', + 'covered_april' => 'coveredApril', + 'covered_may' => 'coveredMay', + 'covered_june' => 'coveredJune', + 'covered_july' => 'coveredJuly', + 'covered_august' => 'coveredAugust', + 'covered_september' => 'coveredSeptember', + 'covered_october' => 'coveredOctober', + 'covered_november' => 'coveredNovember', + 'covered_december' => 'coveredDecember' ]; /** @@ -181,19 +181,19 @@ public static function openAPIFormats() 'name_suffix' => 'setNameSuffix', 'tin' => 'setTin', 'birth_date' => 'setBirthDate', - 'covered_month_indicator0' => 'setCoveredMonthIndicator0', - 'covered_month_indicator1' => 'setCoveredMonthIndicator1', - 'covered_month_indicator2' => 'setCoveredMonthIndicator2', - 'covered_month_indicator3' => 'setCoveredMonthIndicator3', - 'covered_month_indicator4' => 'setCoveredMonthIndicator4', - 'covered_month_indicator5' => 'setCoveredMonthIndicator5', - 'covered_month_indicator6' => 'setCoveredMonthIndicator6', - 'covered_month_indicator7' => 'setCoveredMonthIndicator7', - 'covered_month_indicator8' => 'setCoveredMonthIndicator8', - 'covered_month_indicator9' => 'setCoveredMonthIndicator9', - 'covered_month_indicator10' => 'setCoveredMonthIndicator10', - 'covered_month_indicator11' => 'setCoveredMonthIndicator11', - 'covered_month_indicator12' => 'setCoveredMonthIndicator12' + 'covered_all_months' => 'setCoveredAllMonths', + 'covered_january' => 'setCoveredJanuary', + 'covered_february' => 'setCoveredFebruary', + 'covered_march' => 'setCoveredMarch', + 'covered_april' => 'setCoveredApril', + 'covered_may' => 'setCoveredMay', + 'covered_june' => 'setCoveredJune', + 'covered_july' => 'setCoveredJuly', + 'covered_august' => 'setCoveredAugust', + 'covered_september' => 'setCoveredSeptember', + 'covered_october' => 'setCoveredOctober', + 'covered_november' => 'setCoveredNovember', + 'covered_december' => 'setCoveredDecember' ]; /** @@ -208,19 +208,19 @@ public static function openAPIFormats() 'name_suffix' => 'getNameSuffix', 'tin' => 'getTin', 'birth_date' => 'getBirthDate', - 'covered_month_indicator0' => 'getCoveredMonthIndicator0', - 'covered_month_indicator1' => 'getCoveredMonthIndicator1', - 'covered_month_indicator2' => 'getCoveredMonthIndicator2', - 'covered_month_indicator3' => 'getCoveredMonthIndicator3', - 'covered_month_indicator4' => 'getCoveredMonthIndicator4', - 'covered_month_indicator5' => 'getCoveredMonthIndicator5', - 'covered_month_indicator6' => 'getCoveredMonthIndicator6', - 'covered_month_indicator7' => 'getCoveredMonthIndicator7', - 'covered_month_indicator8' => 'getCoveredMonthIndicator8', - 'covered_month_indicator9' => 'getCoveredMonthIndicator9', - 'covered_month_indicator10' => 'getCoveredMonthIndicator10', - 'covered_month_indicator11' => 'getCoveredMonthIndicator11', - 'covered_month_indicator12' => 'getCoveredMonthIndicator12' + 'covered_all_months' => 'getCoveredAllMonths', + 'covered_january' => 'getCoveredJanuary', + 'covered_february' => 'getCoveredFebruary', + 'covered_march' => 'getCoveredMarch', + 'covered_april' => 'getCoveredApril', + 'covered_may' => 'getCoveredMay', + 'covered_june' => 'getCoveredJune', + 'covered_july' => 'getCoveredJuly', + 'covered_august' => 'getCoveredAugust', + 'covered_september' => 'getCoveredSeptember', + 'covered_october' => 'getCoveredOctober', + 'covered_november' => 'getCoveredNovember', + 'covered_december' => 'getCoveredDecember' ]; /** @@ -286,19 +286,19 @@ public function __construct(array $data = null) $this->container['name_suffix'] = $data['name_suffix'] ?? null; $this->container['tin'] = $data['tin'] ?? null; $this->container['birth_date'] = $data['birth_date'] ?? null; - $this->container['covered_month_indicator0'] = $data['covered_month_indicator0'] ?? null; - $this->container['covered_month_indicator1'] = $data['covered_month_indicator1'] ?? null; - $this->container['covered_month_indicator2'] = $data['covered_month_indicator2'] ?? null; - $this->container['covered_month_indicator3'] = $data['covered_month_indicator3'] ?? null; - $this->container['covered_month_indicator4'] = $data['covered_month_indicator4'] ?? null; - $this->container['covered_month_indicator5'] = $data['covered_month_indicator5'] ?? null; - $this->container['covered_month_indicator6'] = $data['covered_month_indicator6'] ?? null; - $this->container['covered_month_indicator7'] = $data['covered_month_indicator7'] ?? null; - $this->container['covered_month_indicator8'] = $data['covered_month_indicator8'] ?? null; - $this->container['covered_month_indicator9'] = $data['covered_month_indicator9'] ?? null; - $this->container['covered_month_indicator10'] = $data['covered_month_indicator10'] ?? null; - $this->container['covered_month_indicator11'] = $data['covered_month_indicator11'] ?? null; - $this->container['covered_month_indicator12'] = $data['covered_month_indicator12'] ?? null; + $this->container['covered_all_months'] = $data['covered_all_months'] ?? null; + $this->container['covered_january'] = $data['covered_january'] ?? null; + $this->container['covered_february'] = $data['covered_february'] ?? null; + $this->container['covered_march'] = $data['covered_march'] ?? null; + $this->container['covered_april'] = $data['covered_april'] ?? null; + $this->container['covered_may'] = $data['covered_may'] ?? null; + $this->container['covered_june'] = $data['covered_june'] ?? null; + $this->container['covered_july'] = $data['covered_july'] ?? null; + $this->container['covered_august'] = $data['covered_august'] ?? null; + $this->container['covered_september'] = $data['covered_september'] ?? null; + $this->container['covered_october'] = $data['covered_october'] ?? null; + $this->container['covered_november'] = $data['covered_november'] ?? null; + $this->container['covered_december'] = $data['covered_december'] ?? null; } /** @@ -470,313 +470,313 @@ public function setBirthDate($birth_date) } /** - * Gets covered_month_indicator0 + * Gets covered_all_months * * @return bool|null */ - public function getCoveredMonthIndicator0() + public function getCoveredAllMonths() { - return $this->container['covered_month_indicator0']; + return $this->container['covered_all_months']; } /** - * Sets covered_month_indicator0 + * Sets covered_all_months * - * @param bool|null $covered_month_indicator0 Coverage indicator for all 12 months + * @param bool|null $covered_all_months Coverage indicator for all 12 months * * @return self */ - public function setCoveredMonthIndicator0($covered_month_indicator0) + public function setCoveredAllMonths($covered_all_months) { - $this->container['covered_month_indicator0'] = $covered_month_indicator0; + $this->container['covered_all_months'] = $covered_all_months; return $this; } /** - * Gets covered_month_indicator1 + * Gets covered_january * * @return bool|null */ - public function getCoveredMonthIndicator1() + public function getCoveredJanuary() { - return $this->container['covered_month_indicator1']; + return $this->container['covered_january']; } /** - * Sets covered_month_indicator1 + * Sets covered_january * - * @param bool|null $covered_month_indicator1 Coverage indicator for January + * @param bool|null $covered_january Coverage indicator for January * * @return self */ - public function setCoveredMonthIndicator1($covered_month_indicator1) + public function setCoveredJanuary($covered_january) { - $this->container['covered_month_indicator1'] = $covered_month_indicator1; + $this->container['covered_january'] = $covered_january; return $this; } /** - * Gets covered_month_indicator2 + * Gets covered_february * * @return bool|null */ - public function getCoveredMonthIndicator2() + public function getCoveredFebruary() { - return $this->container['covered_month_indicator2']; + return $this->container['covered_february']; } /** - * Sets covered_month_indicator2 + * Sets covered_february * - * @param bool|null $covered_month_indicator2 Coverage indicator for February + * @param bool|null $covered_february Coverage indicator for February * * @return self */ - public function setCoveredMonthIndicator2($covered_month_indicator2) + public function setCoveredFebruary($covered_february) { - $this->container['covered_month_indicator2'] = $covered_month_indicator2; + $this->container['covered_february'] = $covered_february; return $this; } /** - * Gets covered_month_indicator3 + * Gets covered_march * * @return bool|null */ - public function getCoveredMonthIndicator3() + public function getCoveredMarch() { - return $this->container['covered_month_indicator3']; + return $this->container['covered_march']; } /** - * Sets covered_month_indicator3 + * Sets covered_march * - * @param bool|null $covered_month_indicator3 Coverage indicator for March + * @param bool|null $covered_march Coverage indicator for March * * @return self */ - public function setCoveredMonthIndicator3($covered_month_indicator3) + public function setCoveredMarch($covered_march) { - $this->container['covered_month_indicator3'] = $covered_month_indicator3; + $this->container['covered_march'] = $covered_march; return $this; } /** - * Gets covered_month_indicator4 + * Gets covered_april * * @return bool|null */ - public function getCoveredMonthIndicator4() + public function getCoveredApril() { - return $this->container['covered_month_indicator4']; + return $this->container['covered_april']; } /** - * Sets covered_month_indicator4 + * Sets covered_april * - * @param bool|null $covered_month_indicator4 Coverage indicator for April + * @param bool|null $covered_april Coverage indicator for April * * @return self */ - public function setCoveredMonthIndicator4($covered_month_indicator4) + public function setCoveredApril($covered_april) { - $this->container['covered_month_indicator4'] = $covered_month_indicator4; + $this->container['covered_april'] = $covered_april; return $this; } /** - * Gets covered_month_indicator5 + * Gets covered_may * * @return bool|null */ - public function getCoveredMonthIndicator5() + public function getCoveredMay() { - return $this->container['covered_month_indicator5']; + return $this->container['covered_may']; } /** - * Sets covered_month_indicator5 + * Sets covered_may * - * @param bool|null $covered_month_indicator5 Coverage indicator for May + * @param bool|null $covered_may Coverage indicator for May * * @return self */ - public function setCoveredMonthIndicator5($covered_month_indicator5) + public function setCoveredMay($covered_may) { - $this->container['covered_month_indicator5'] = $covered_month_indicator5; + $this->container['covered_may'] = $covered_may; return $this; } /** - * Gets covered_month_indicator6 + * Gets covered_june * * @return bool|null */ - public function getCoveredMonthIndicator6() + public function getCoveredJune() { - return $this->container['covered_month_indicator6']; + return $this->container['covered_june']; } /** - * Sets covered_month_indicator6 + * Sets covered_june * - * @param bool|null $covered_month_indicator6 Coverage indicator for June + * @param bool|null $covered_june Coverage indicator for June * * @return self */ - public function setCoveredMonthIndicator6($covered_month_indicator6) + public function setCoveredJune($covered_june) { - $this->container['covered_month_indicator6'] = $covered_month_indicator6; + $this->container['covered_june'] = $covered_june; return $this; } /** - * Gets covered_month_indicator7 + * Gets covered_july * * @return bool|null */ - public function getCoveredMonthIndicator7() + public function getCoveredJuly() { - return $this->container['covered_month_indicator7']; + return $this->container['covered_july']; } /** - * Sets covered_month_indicator7 + * Sets covered_july * - * @param bool|null $covered_month_indicator7 Coverage indicator for July + * @param bool|null $covered_july Coverage indicator for July * * @return self */ - public function setCoveredMonthIndicator7($covered_month_indicator7) + public function setCoveredJuly($covered_july) { - $this->container['covered_month_indicator7'] = $covered_month_indicator7; + $this->container['covered_july'] = $covered_july; return $this; } /** - * Gets covered_month_indicator8 + * Gets covered_august * * @return bool|null */ - public function getCoveredMonthIndicator8() + public function getCoveredAugust() { - return $this->container['covered_month_indicator8']; + return $this->container['covered_august']; } /** - * Sets covered_month_indicator8 + * Sets covered_august * - * @param bool|null $covered_month_indicator8 Coverage indicator for August + * @param bool|null $covered_august Coverage indicator for August * * @return self */ - public function setCoveredMonthIndicator8($covered_month_indicator8) + public function setCoveredAugust($covered_august) { - $this->container['covered_month_indicator8'] = $covered_month_indicator8; + $this->container['covered_august'] = $covered_august; return $this; } /** - * Gets covered_month_indicator9 + * Gets covered_september * * @return bool|null */ - public function getCoveredMonthIndicator9() + public function getCoveredSeptember() { - return $this->container['covered_month_indicator9']; + return $this->container['covered_september']; } /** - * Sets covered_month_indicator9 + * Sets covered_september * - * @param bool|null $covered_month_indicator9 Coverage indicator for September + * @param bool|null $covered_september Coverage indicator for September * * @return self */ - public function setCoveredMonthIndicator9($covered_month_indicator9) + public function setCoveredSeptember($covered_september) { - $this->container['covered_month_indicator9'] = $covered_month_indicator9; + $this->container['covered_september'] = $covered_september; return $this; } /** - * Gets covered_month_indicator10 + * Gets covered_october * * @return bool|null */ - public function getCoveredMonthIndicator10() + public function getCoveredOctober() { - return $this->container['covered_month_indicator10']; + return $this->container['covered_october']; } /** - * Sets covered_month_indicator10 + * Sets covered_october * - * @param bool|null $covered_month_indicator10 Coverage indicator for October + * @param bool|null $covered_october Coverage indicator for October * * @return self */ - public function setCoveredMonthIndicator10($covered_month_indicator10) + public function setCoveredOctober($covered_october) { - $this->container['covered_month_indicator10'] = $covered_month_indicator10; + $this->container['covered_october'] = $covered_october; return $this; } /** - * Gets covered_month_indicator11 + * Gets covered_november * * @return bool|null */ - public function getCoveredMonthIndicator11() + public function getCoveredNovember() { - return $this->container['covered_month_indicator11']; + return $this->container['covered_november']; } /** - * Sets covered_month_indicator11 + * Sets covered_november * - * @param bool|null $covered_month_indicator11 Coverage indicator for November + * @param bool|null $covered_november Coverage indicator for November * * @return self */ - public function setCoveredMonthIndicator11($covered_month_indicator11) + public function setCoveredNovember($covered_november) { - $this->container['covered_month_indicator11'] = $covered_month_indicator11; + $this->container['covered_november'] = $covered_november; return $this; } /** - * Gets covered_month_indicator12 + * Gets covered_december * * @return bool|null */ - public function getCoveredMonthIndicator12() + public function getCoveredDecember() { - return $this->container['covered_month_indicator12']; + return $this->container['covered_december']; } /** - * Sets covered_month_indicator12 + * Sets covered_december * - * @param bool|null $covered_month_indicator12 Coverage indicator for December + * @param bool|null $covered_december Coverage indicator for December * * @return self */ - public function setCoveredMonthIndicator12($covered_month_indicator12) + public function setCoveredDecember($covered_december) { - $this->container['covered_month_indicator12'] = $covered_month_indicator12; + $this->container['covered_december'] = $covered_december; return $this; } diff --git a/lib/Model/A1099/V2/Create1099Form201Response.php b/lib/Model/A1099/V2/Create1099Form201Response.php index 47f498b..3a56863 100644 --- a/lib/Model/A1099/V2/Create1099Form201Response.php +++ b/lib/Model/A1099/V2/Create1099Form201Response.php @@ -78,19 +78,22 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -98,14 +101,16 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'unique_form_id' => 'string', - 'no_tin' => 'bool', 'recipient_date_of_birth' => '\DateTime', 'recipient_giin' => 'string', 'recipient_foreign_tin' => 'string', @@ -130,6 +135,24 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'intermediary_or_flow_through' => '\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse', 'origin_of_health_coverage_code' => 'string', 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]', + 'total_ordinary_dividends' => 'string', + 'qualified_dividends' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', + 'section1202_gain' => 'string', + 'collectibles_gain' => 'string', + 'section897_ordinary_dividends' => 'string', + 'section897_capital_gain' => 'string', + 'nondividend_distributions' => 'string', + 'federal_income_tax_withheld' => 'float', + 'section199_a_dividends' => 'string', + 'investment_expenses' => 'string', + 'foreign_tax_paid' => 'string', + 'foreign_country_or_us_possession' => 'string', + 'cash_liquidation_distributions' => 'string', + 'noncash_liquidation_distributions' => 'string', + 'exempt_interest_dividends' => 'string', + 'specified_private_activity_bond_interest_dividends' => 'string', 'filer_type' => 'string', 'payment_type' => 'string', 'payment_settlement_entity_name_phone_number' => 'string', @@ -137,7 +160,6 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'card_not_present_transactions' => 'float', 'merchant_category_code' => 'string', 'payment_transaction_number' => 'float', - 'federal_income_tax_withheld' => 'float', 'january' => 'float', 'february' => 'float', 'march' => 'float', @@ -155,14 +177,15 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_and_health_care' => 'float', + 'medical_and_health_care_payments' => 'float', 'substitute_payments' => 'float', 'direct_sales_indicator' => 'bool', 'crop_insurance_proceeds' => 'float', - 'excess_golden_parachute' => 'float', - 'gross_amount_paid_attorney' => 'float', + 'excess_golden_parachute_payments' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', 'section409_a_deferrals' => 'float', - 'section409_a_income' => 'float', + 'nonqualified_deferred_compensation' => 'float', 'nonemployee_compensation' => 'float', 'gross_distributions' => 'float', 'taxable_amount' => 'float', @@ -209,10 +232,13 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -220,14 +246,16 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', 'state_and_local_withholding' => null, 'unique_form_id' => null, - 'no_tin' => null, 'recipient_date_of_birth' => 'date-time', 'recipient_giin' => null, 'recipient_foreign_tin' => null, @@ -252,6 +280,24 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'intermediary_or_flow_through' => null, 'origin_of_health_coverage_code' => null, 'covered_individuals' => null, + 'total_ordinary_dividends' => null, + 'qualified_dividends' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, + 'section1202_gain' => null, + 'collectibles_gain' => null, + 'section897_ordinary_dividends' => null, + 'section897_capital_gain' => null, + 'nondividend_distributions' => null, + 'federal_income_tax_withheld' => 'double', + 'section199_a_dividends' => null, + 'investment_expenses' => null, + 'foreign_tax_paid' => null, + 'foreign_country_or_us_possession' => null, + 'cash_liquidation_distributions' => null, + 'noncash_liquidation_distributions' => null, + 'exempt_interest_dividends' => null, + 'specified_private_activity_bond_interest_dividends' => null, 'filer_type' => null, 'payment_type' => null, 'payment_settlement_entity_name_phone_number' => null, @@ -259,7 +305,6 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'card_not_present_transactions' => 'double', 'merchant_category_code' => null, 'payment_transaction_number' => 'double', - 'federal_income_tax_withheld' => 'double', 'january' => 'double', 'february' => 'double', 'march' => 'double', @@ -277,14 +322,15 @@ class Create1099Form201Response implements ModelInterface, ArrayAccess, \JsonSer 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_and_health_care' => 'double', + 'medical_and_health_care_payments' => 'double', 'substitute_payments' => 'double', 'direct_sales_indicator' => null, 'crop_insurance_proceeds' => 'double', - 'excess_golden_parachute' => 'double', - 'gross_amount_paid_attorney' => 'double', + 'excess_golden_parachute_payments' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', 'section409_a_deferrals' => 'double', - 'section409_a_income' => 'double', + 'nonqualified_deferred_compensation' => 'double', 'nonemployee_compensation' => 'double', 'gross_distributions' => 'double', 'taxable_amount' => 'double', @@ -350,10 +396,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -361,14 +410,16 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'unique_form_id' => 'uniqueFormId', - 'no_tin' => 'noTin', 'recipient_date_of_birth' => 'recipientDateOfBirth', 'recipient_giin' => 'recipientGiin', 'recipient_foreign_tin' => 'recipientForeignTin', @@ -393,6 +444,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'intermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', 'covered_individuals' => 'coveredIndividuals', + 'total_ordinary_dividends' => 'totalOrdinaryDividends', + 'qualified_dividends' => 'qualifiedDividends', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', + 'section1202_gain' => 'section1202Gain', + 'collectibles_gain' => 'collectiblesGain', + 'section897_ordinary_dividends' => 'section897OrdinaryDividends', + 'section897_capital_gain' => 'section897CapitalGain', + 'nondividend_distributions' => 'nondividendDistributions', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'section199_a_dividends' => 'section199ADividends', + 'investment_expenses' => 'investmentExpenses', + 'foreign_tax_paid' => 'foreignTaxPaid', + 'foreign_country_or_us_possession' => 'foreignCountryOrUSPossession', + 'cash_liquidation_distributions' => 'cashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'noncashLiquidationDistributions', + 'exempt_interest_dividends' => 'exemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'filer_type' => 'filerType', 'payment_type' => 'paymentType', 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', @@ -400,7 +469,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'cardNotPresentTransactions', 'merchant_category_code' => 'merchantCategoryCode', 'payment_transaction_number' => 'paymentTransactionNumber', - 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', 'january' => 'january', 'february' => 'february', 'march' => 'march', @@ -418,14 +486,15 @@ public static function openAPIFormats() 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_and_health_care' => 'medicalAndHealthCare', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'substitute_payments' => 'substitutePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', - 'excess_golden_parachute' => 'excessGoldenParachute', - 'gross_amount_paid_attorney' => 'grossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', 'section409_a_deferrals' => 'section409ADeferrals', - 'section409_a_income' => 'section409AIncome', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'nonemployeeCompensation', 'gross_distributions' => 'grossDistributions', 'taxable_amount' => 'taxableAmount', @@ -470,10 +539,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -481,14 +553,16 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'unique_form_id' => 'setUniqueFormId', - 'no_tin' => 'setNoTin', 'recipient_date_of_birth' => 'setRecipientDateOfBirth', 'recipient_giin' => 'setRecipientGiin', 'recipient_foreign_tin' => 'setRecipientForeignTin', @@ -513,6 +587,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'setIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', 'covered_individuals' => 'setCoveredIndividuals', + 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', + 'qualified_dividends' => 'setQualifiedDividends', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', + 'section1202_gain' => 'setSection1202Gain', + 'collectibles_gain' => 'setCollectiblesGain', + 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', + 'section897_capital_gain' => 'setSection897CapitalGain', + 'nondividend_distributions' => 'setNondividendDistributions', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'setSection199ADividends', + 'investment_expenses' => 'setInvestmentExpenses', + 'foreign_tax_paid' => 'setForeignTaxPaid', + 'foreign_country_or_us_possession' => 'setForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'setCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'setNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'setExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'setFilerType', 'payment_type' => 'setPaymentType', 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', @@ -520,7 +612,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'setCardNotPresentTransactions', 'merchant_category_code' => 'setMerchantCategoryCode', 'payment_transaction_number' => 'setPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', 'january' => 'setJanuary', 'february' => 'setFebruary', 'march' => 'setMarch', @@ -538,14 +629,15 @@ public static function openAPIFormats() 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_and_health_care' => 'setMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'substitute_payments' => 'setSubstitutePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', - 'excess_golden_parachute' => 'setExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'setGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', 'section409_a_deferrals' => 'setSection409ADeferrals', - 'section409_a_income' => 'setSection409AIncome', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'gross_distributions' => 'setGrossDistributions', 'taxable_amount' => 'setTaxableAmount', @@ -590,10 +682,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -601,14 +696,16 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'unique_form_id' => 'getUniqueFormId', - 'no_tin' => 'getNoTin', 'recipient_date_of_birth' => 'getRecipientDateOfBirth', 'recipient_giin' => 'getRecipientGiin', 'recipient_foreign_tin' => 'getRecipientForeignTin', @@ -633,6 +730,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'getIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', 'covered_individuals' => 'getCoveredIndividuals', + 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', + 'qualified_dividends' => 'getQualifiedDividends', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', + 'section1202_gain' => 'getSection1202Gain', + 'collectibles_gain' => 'getCollectiblesGain', + 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', + 'section897_capital_gain' => 'getSection897CapitalGain', + 'nondividend_distributions' => 'getNondividendDistributions', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'getSection199ADividends', + 'investment_expenses' => 'getInvestmentExpenses', + 'foreign_tax_paid' => 'getForeignTaxPaid', + 'foreign_country_or_us_possession' => 'getForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'getCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'getNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'getExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'getFilerType', 'payment_type' => 'getPaymentType', 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', @@ -640,7 +755,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'getCardNotPresentTransactions', 'merchant_category_code' => 'getMerchantCategoryCode', 'payment_transaction_number' => 'getPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', 'january' => 'getJanuary', 'february' => 'getFebruary', 'march' => 'getMarch', @@ -658,14 +772,15 @@ public static function openAPIFormats() 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_and_health_care' => 'getMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'substitute_payments' => 'getSubstitutePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', - 'excess_golden_parachute' => 'getExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'getGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', 'section409_a_deferrals' => 'getSection409ADeferrals', - 'section409_a_income' => 'getSection409AIncome', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'gross_distributions' => 'getGrossDistributions', 'taxable_amount' => 'getTaxableAmount', @@ -793,10 +908,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -804,14 +922,16 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['unique_form_id'] = $data['unique_form_id'] ?? null; - $this->container['no_tin'] = $data['no_tin'] ?? null; $this->container['recipient_date_of_birth'] = $data['recipient_date_of_birth'] ?? null; $this->container['recipient_giin'] = $data['recipient_giin'] ?? null; $this->container['recipient_foreign_tin'] = $data['recipient_foreign_tin'] ?? null; @@ -836,6 +956,24 @@ public function __construct(array $data = null) $this->container['intermediary_or_flow_through'] = $data['intermediary_or_flow_through'] ?? null; $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; + $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; + $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; + $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; + $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; + $this->container['section897_capital_gain'] = $data['section897_capital_gain'] ?? null; + $this->container['nondividend_distributions'] = $data['nondividend_distributions'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['section199_a_dividends'] = $data['section199_a_dividends'] ?? null; + $this->container['investment_expenses'] = $data['investment_expenses'] ?? null; + $this->container['foreign_tax_paid'] = $data['foreign_tax_paid'] ?? null; + $this->container['foreign_country_or_us_possession'] = $data['foreign_country_or_us_possession'] ?? null; + $this->container['cash_liquidation_distributions'] = $data['cash_liquidation_distributions'] ?? null; + $this->container['noncash_liquidation_distributions'] = $data['noncash_liquidation_distributions'] ?? null; + $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; + $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['filer_type'] = $data['filer_type'] ?? null; $this->container['payment_type'] = $data['payment_type'] ?? null; $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; @@ -843,7 +981,6 @@ public function __construct(array $data = null) $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; - $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; $this->container['january'] = $data['january'] ?? null; $this->container['february'] = $data['february'] ?? null; $this->container['march'] = $data['march'] ?? null; @@ -861,14 +998,15 @@ public function __construct(array $data = null) $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_and_health_care'] = $data['medical_and_health_care'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; - $this->container['excess_golden_parachute'] = $data['excess_golden_parachute'] ?? null; - $this->container['gross_amount_paid_attorney'] = $data['gross_amount_paid_attorney'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; - $this->container['section409_a_income'] = $data['section409_a_income'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['gross_distributions'] = $data['gross_distributions'] ?? null; $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; @@ -1146,7 +1284,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1156,7 +1294,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1244,7 +1382,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1254,7 +1392,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1292,7 +1430,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1302,7 +1440,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1340,7 +1478,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1350,7 +1488,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1361,6 +1499,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1457,6 +1619,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1626,25 +1836,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1673,6 +1883,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * @@ -1795,30 +2077,6 @@ public function setUniqueFormId($unique_form_id) return $this; } - /** - * Gets no_tin - * - * @return bool|null - */ - public function getNoTin() - { - return $this->container['no_tin']; - } - - /** - * Sets no_tin - * - * @param bool|null $no_tin No TIN indicator - * - * @return self - */ - public function setNoTin($no_tin) - { - $this->container['no_tin'] = $no_tin; - - return $this; - } - /** * Gets recipient_date_of_birth * @@ -2397,6 +2655,438 @@ public function setCoveredIndividuals($covered_individuals) return $this; } + /** + * Gets total_ordinary_dividends + * + * @return string|null + */ + public function getTotalOrdinaryDividends() + { + return $this->container['total_ordinary_dividends']; + } + + /** + * Sets total_ordinary_dividends + * + * @param string|null $total_ordinary_dividends Total ordinary dividends + * + * @return self + */ + public function setTotalOrdinaryDividends($total_ordinary_dividends) + { + $this->container['total_ordinary_dividends'] = $total_ordinary_dividends; + + return $this; + } + + /** + * Gets qualified_dividends + * + * @return string|null + */ + public function getQualifiedDividends() + { + return $this->container['qualified_dividends']; + } + + /** + * Sets qualified_dividends + * + * @param string|null $qualified_dividends Qualified dividends + * + * @return self + */ + public function setQualifiedDividends($qualified_dividends) + { + $this->container['qualified_dividends'] = $qualified_dividends; + + return $this; + } + + /** + * Gets total_capital_gain_distributions + * + * @return string|null + */ + public function getTotalCapitalGainDistributions() + { + return $this->container['total_capital_gain_distributions']; + } + + /** + * Sets total_capital_gain_distributions + * + * @param string|null $total_capital_gain_distributions Total capital gain distributions + * + * @return self + */ + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) + { + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; + + return $this; + } + + /** + * Gets unrecaptured_section1250_gain + * + * @return string|null + */ + public function getUnrecapturedSection1250Gain() + { + return $this->container['unrecaptured_section1250_gain']; + } + + /** + * Sets unrecaptured_section1250_gain + * + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain + * + * @return self + */ + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) + { + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; + + return $this; + } + + /** + * Gets section1202_gain + * + * @return string|null + */ + public function getSection1202Gain() + { + return $this->container['section1202_gain']; + } + + /** + * Sets section1202_gain + * + * @param string|null $section1202_gain Section 1202 gain + * + * @return self + */ + public function setSection1202Gain($section1202_gain) + { + $this->container['section1202_gain'] = $section1202_gain; + + return $this; + } + + /** + * Gets collectibles_gain + * + * @return string|null + */ + public function getCollectiblesGain() + { + return $this->container['collectibles_gain']; + } + + /** + * Sets collectibles_gain + * + * @param string|null $collectibles_gain Collectibles (28%) gain + * + * @return self + */ + public function setCollectiblesGain($collectibles_gain) + { + $this->container['collectibles_gain'] = $collectibles_gain; + + return $this; + } + + /** + * Gets section897_ordinary_dividends + * + * @return string|null + */ + public function getSection897OrdinaryDividends() + { + return $this->container['section897_ordinary_dividends']; + } + + /** + * Sets section897_ordinary_dividends + * + * @param string|null $section897_ordinary_dividends Section 897 ordinary dividends + * + * @return self + */ + public function setSection897OrdinaryDividends($section897_ordinary_dividends) + { + $this->container['section897_ordinary_dividends'] = $section897_ordinary_dividends; + + return $this; + } + + /** + * Gets section897_capital_gain + * + * @return string|null + */ + public function getSection897CapitalGain() + { + return $this->container['section897_capital_gain']; + } + + /** + * Sets section897_capital_gain + * + * @param string|null $section897_capital_gain Section 897 capital gain + * + * @return self + */ + public function setSection897CapitalGain($section897_capital_gain) + { + $this->container['section897_capital_gain'] = $section897_capital_gain; + + return $this; + } + + /** + * Gets nondividend_distributions + * + * @return string|null + */ + public function getNondividendDistributions() + { + return $this->container['nondividend_distributions']; + } + + /** + * Sets nondividend_distributions + * + * @param string|null $nondividend_distributions Nondividend distributions + * + * @return self + */ + public function setNondividendDistributions($nondividend_distributions) + { + $this->container['nondividend_distributions'] = $nondividend_distributions; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld Federal income tax withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets section199_a_dividends + * + * @return string|null + */ + public function getSection199ADividends() + { + return $this->container['section199_a_dividends']; + } + + /** + * Sets section199_a_dividends + * + * @param string|null $section199_a_dividends Section 199A dividends + * + * @return self + */ + public function setSection199ADividends($section199_a_dividends) + { + $this->container['section199_a_dividends'] = $section199_a_dividends; + + return $this; + } + + /** + * Gets investment_expenses + * + * @return string|null + */ + public function getInvestmentExpenses() + { + return $this->container['investment_expenses']; + } + + /** + * Sets investment_expenses + * + * @param string|null $investment_expenses Investment expenses + * + * @return self + */ + public function setInvestmentExpenses($investment_expenses) + { + $this->container['investment_expenses'] = $investment_expenses; + + return $this; + } + + /** + * Gets foreign_tax_paid + * + * @return string|null + */ + public function getForeignTaxPaid() + { + return $this->container['foreign_tax_paid']; + } + + /** + * Sets foreign_tax_paid + * + * @param string|null $foreign_tax_paid Foreign tax paid + * + * @return self + */ + public function setForeignTaxPaid($foreign_tax_paid) + { + $this->container['foreign_tax_paid'] = $foreign_tax_paid; + + return $this; + } + + /** + * Gets foreign_country_or_us_possession + * + * @return string|null + */ + public function getForeignCountryOrUsPossession() + { + return $this->container['foreign_country_or_us_possession']; + } + + /** + * Sets foreign_country_or_us_possession + * + * @param string|null $foreign_country_or_us_possession Foreign country or U.S. possession + * + * @return self + */ + public function setForeignCountryOrUsPossession($foreign_country_or_us_possession) + { + $this->container['foreign_country_or_us_possession'] = $foreign_country_or_us_possession; + + return $this; + } + + /** + * Gets cash_liquidation_distributions + * + * @return string|null + */ + public function getCashLiquidationDistributions() + { + return $this->container['cash_liquidation_distributions']; + } + + /** + * Sets cash_liquidation_distributions + * + * @param string|null $cash_liquidation_distributions Cash liquidation distributions + * + * @return self + */ + public function setCashLiquidationDistributions($cash_liquidation_distributions) + { + $this->container['cash_liquidation_distributions'] = $cash_liquidation_distributions; + + return $this; + } + + /** + * Gets noncash_liquidation_distributions + * + * @return string|null + */ + public function getNoncashLiquidationDistributions() + { + return $this->container['noncash_liquidation_distributions']; + } + + /** + * Sets noncash_liquidation_distributions + * + * @param string|null $noncash_liquidation_distributions Noncash liquidation distributions + * + * @return self + */ + public function setNoncashLiquidationDistributions($noncash_liquidation_distributions) + { + $this->container['noncash_liquidation_distributions'] = $noncash_liquidation_distributions; + + return $this; + } + + /** + * Gets exempt_interest_dividends + * + * @return string|null + */ + public function getExemptInterestDividends() + { + return $this->container['exempt_interest_dividends']; + } + + /** + * Sets exempt_interest_dividends + * + * @param string|null $exempt_interest_dividends Exempt-interest dividends + * + * @return self + */ + public function setExemptInterestDividends($exempt_interest_dividends) + { + $this->container['exempt_interest_dividends'] = $exempt_interest_dividends; + + return $this; + } + + /** + * Gets specified_private_activity_bond_interest_dividends + * + * @return string|null + */ + public function getSpecifiedPrivateActivityBondInterestDividends() + { + return $this->container['specified_private_activity_bond_interest_dividends']; + } + + /** + * Sets specified_private_activity_bond_interest_dividends + * + * @param string|null $specified_private_activity_bond_interest_dividends Specified private activity bond interest dividends + * + * @return self + */ + public function setSpecifiedPrivateActivityBondInterestDividends($specified_private_activity_bond_interest_dividends) + { + $this->container['specified_private_activity_bond_interest_dividends'] = $specified_private_activity_bond_interest_dividends; + + return $this; + } + /** * Gets filer_type * @@ -2585,30 +3275,6 @@ public function setPaymentTransactionNumber($payment_transaction_number) return $this; } - /** - * Gets federal_income_tax_withheld - * - * @return float|null - */ - public function getFederalIncomeTaxWithheld() - { - return $this->container['federal_income_tax_withheld']; - } - - /** - * Sets federal_income_tax_withheld - * - * @param float|null $federal_income_tax_withheld Federal income tax withheld - * - * @return self - */ - public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) - { - $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; - - return $this; - } - /** * Gets january * @@ -3018,25 +3684,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_and_health_care + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalAndHealthCare() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_and_health_care']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_and_health_care + * Sets medical_and_health_care_payments * - * @param float|null $medical_and_health_care Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalAndHealthCare($medical_and_health_care) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_and_health_care'] = $medical_and_health_care; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -3114,49 +3780,73 @@ public function setCropInsuranceProceeds($crop_insurance_proceeds) } /** - * Gets excess_golden_parachute + * Gets excess_golden_parachute_payments + * + * @return float|null + */ + public function getExcessGoldenParachutePayments() + { + return $this->container['excess_golden_parachute_payments']; + } + + /** + * Sets excess_golden_parachute_payments + * + * @param float|null $excess_golden_parachute_payments (Legacy field) Excess golden parachute payments + * + * @return self + */ + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) + { + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; + + return $this; + } + + /** + * Gets gross_proceeds_paid_to_attorney * * @return float|null */ - public function getExcessGoldenParachute() + public function getGrossProceedsPaidToAttorney() { - return $this->container['excess_golden_parachute']; + return $this->container['gross_proceeds_paid_to_attorney']; } /** - * Sets excess_golden_parachute + * Sets gross_proceeds_paid_to_attorney * - * @param float|null $excess_golden_parachute (Legacy field) Excess golden parachute payments + * @param float|null $gross_proceeds_paid_to_attorney Gross proceeds paid to an attorney * * @return self */ - public function setExcessGoldenParachute($excess_golden_parachute) + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) { - $this->container['excess_golden_parachute'] = $excess_golden_parachute; + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; return $this; } /** - * Gets gross_amount_paid_attorney + * Gets fish_purchased_for_resale * * @return float|null */ - public function getGrossAmountPaidAttorney() + public function getFishPurchasedForResale() { - return $this->container['gross_amount_paid_attorney']; + return $this->container['fish_purchased_for_resale']; } /** - * Sets gross_amount_paid_attorney + * Sets fish_purchased_for_resale * - * @param float|null $gross_amount_paid_attorney Gross proceeds paid to an attorney + * @param float|null $fish_purchased_for_resale Fish purchased for resale * * @return self */ - public function setGrossAmountPaidAttorney($gross_amount_paid_attorney) + public function setFishPurchasedForResale($fish_purchased_for_resale) { - $this->container['gross_amount_paid_attorney'] = $gross_amount_paid_attorney; + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; return $this; } @@ -3186,25 +3876,25 @@ public function setSection409ADeferrals($section409_a_deferrals) } /** - * Gets section409_a_income + * Gets nonqualified_deferred_compensation * * @return float|null */ - public function getSection409AIncome() + public function getNonqualifiedDeferredCompensation() { - return $this->container['section409_a_income']; + return $this->container['nonqualified_deferred_compensation']; } /** - * Sets section409_a_income + * Sets nonqualified_deferred_compensation * - * @param float|null $section409_a_income Nonqualified deferred compensation + * @param float|null $nonqualified_deferred_compensation Nonqualified deferred compensation * * @return self */ - public function setSection409AIncome($section409_a_income) + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) { - $this->container['section409_a_income'] = $section409_a_income; + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; return $this; } diff --git a/lib/Model/A1099/V2/CreateW9Form201Response.php b/lib/Model/A1099/V2/CreateW9Form201Response.php index 35adfcb..f38d5e8 100644 --- a/lib/Model/A1099/V2/CreateW9Form201Response.php +++ b/lib/Model/A1099/V2/CreateW9Form201Response.php @@ -249,7 +249,8 @@ class CreateW9Form201Response implements ModelInterface, ArrayAccess, \JsonSeria 'foreign_address' => 'string', 'account_number' => 'string', 'backup_withholding' => 'bool', - 'is1099able' => 'bool' + 'is1099able' => 'bool', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse' ]; /** @@ -438,7 +439,8 @@ class CreateW9Form201Response implements ModelInterface, ArrayAccess, \JsonSeria 'foreign_address' => null, 'account_number' => null, 'backup_withholding' => null, - 'is1099able' => null + 'is1099able' => null, + 'tin_match_status' => null ]; /** @@ -646,7 +648,8 @@ public static function openAPIFormats() 'foreign_address' => 'foreignAddress', 'account_number' => 'accountNumber', 'backup_withholding' => 'backupWithholding', - 'is1099able' => 'is1099able' + 'is1099able' => 'is1099able', + 'tin_match_status' => 'tinMatchStatus' ]; /** @@ -833,7 +836,8 @@ public static function openAPIFormats() 'foreign_address' => 'setForeignAddress', 'account_number' => 'setAccountNumber', 'backup_withholding' => 'setBackupWithholding', - 'is1099able' => 'setIs1099able' + 'is1099able' => 'setIs1099able', + 'tin_match_status' => 'setTinMatchStatus' ]; /** @@ -1020,7 +1024,8 @@ public static function openAPIFormats() 'foreign_address' => 'getForeignAddress', 'account_number' => 'getAccountNumber', 'backup_withholding' => 'getBackupWithholding', - 'is1099able' => 'getIs1099able' + 'is1099able' => 'getIs1099able', + 'tin_match_status' => 'getTinMatchStatus' ]; /** @@ -1259,6 +1264,7 @@ public function __construct(array $data = null) $this->container['account_number'] = $data['account_number'] ?? null; $this->container['backup_withholding'] = $data['backup_withholding'] ?? null; $this->container['is1099able'] = $data['is1099able'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; } /** @@ -5580,6 +5586,30 @@ public function setIs1099able($is1099able) return $this; } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse|null $tin_match_status The TIN Match status from IRS. + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/Form1042SListItem.php b/lib/Model/A1099/V2/Form1042SListItem.php index 1839235..5ae6930 100644 --- a/lib/Model/A1099/V2/Form1042SListItem.php +++ b/lib/Model/A1099/V2/Form1042SListItem.php @@ -106,15 +106,16 @@ class Form1042SListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -162,15 +163,16 @@ class Form1042SListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -237,15 +239,16 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -291,15 +294,16 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -345,15 +349,16 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -776,15 +781,16 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -843,13 +849,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1596,7 +1595,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1606,17 +1605,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1042SListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1811,25 +1805,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1883,25 +1877,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -2031,6 +2025,30 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1042SListItemResponse.php b/lib/Model/A1099/V2/Form1042SListItemResponse.php index b957484..75976af 100644 --- a/lib/Model/A1099/V2/Form1042SListItemResponse.php +++ b/lib/Model/A1099/V2/Form1042SListItemResponse.php @@ -102,19 +102,21 @@ class Form1042SListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -122,8 +124,11 @@ class Form1042SListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -178,10 +183,12 @@ class Form1042SListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -189,8 +196,11 @@ class Form1042SListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -264,10 +274,12 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -275,8 +287,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -329,10 +344,12 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -340,8 +357,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -394,10 +414,12 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -405,8 +427,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -510,10 +535,12 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -521,8 +548,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -1342,7 +1372,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1352,7 +1382,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1440,7 +1470,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1450,7 +1480,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1488,7 +1518,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1498,7 +1528,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1536,7 +1566,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1546,7 +1576,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1557,6 +1587,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1653,6 +1707,30 @@ public function setTin($tin) return $this; } + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1822,25 +1900,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1869,6 +1947,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1042SRequest.php b/lib/Model/A1099/V2/Form1042SRequest.php index d14300b..c6cdf66 100644 --- a/lib/Model/A1099/V2/Form1042SRequest.php +++ b/lib/Model/A1099/V2/Form1042SRequest.php @@ -72,7 +72,6 @@ class Form1042SRequest implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'unique_form_id' => 'string', - 'no_tin' => 'bool', 'recipient_date_of_birth' => '\DateTime', 'recipient_giin' => 'string', 'recipient_foreign_tin' => 'string', @@ -108,15 +107,17 @@ class Form1042SRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool' ]; @@ -129,7 +130,6 @@ class Form1042SRequest implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'unique_form_id' => null, - 'no_tin' => null, 'recipient_date_of_birth' => 'date-time', 'recipient_giin' => null, 'recipient_foreign_tin' => null, @@ -165,15 +165,17 @@ class Form1042SRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null ]; @@ -205,7 +207,6 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'unique_form_id' => 'uniqueFormId', - 'no_tin' => 'noTin', 'recipient_date_of_birth' => 'recipientDateOfBirth', 'recipient_giin' => 'recipientGiin', 'recipient_foreign_tin' => 'recipientForeignTin', @@ -241,15 +242,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification' ]; @@ -260,7 +263,6 @@ public static function openAPIFormats() */ protected static $setters = [ 'unique_form_id' => 'setUniqueFormId', - 'no_tin' => 'setNoTin', 'recipient_date_of_birth' => 'setRecipientDateOfBirth', 'recipient_giin' => 'setRecipientGiin', 'recipient_foreign_tin' => 'setRecipientForeignTin', @@ -296,15 +298,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification' ]; @@ -315,7 +319,6 @@ public static function openAPIFormats() */ protected static $getters = [ 'unique_form_id' => 'getUniqueFormId', - 'no_tin' => 'getNoTin', 'recipient_date_of_birth' => 'getRecipientDateOfBirth', 'recipient_giin' => 'getRecipientGiin', 'recipient_foreign_tin' => 'getRecipientForeignTin', @@ -351,15 +354,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification' ]; @@ -411,6 +416,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -431,6 +437,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -465,7 +472,6 @@ public function getTinTypeAllowableValues() public function __construct(array $data = null) { $this->container['unique_form_id'] = $data['unique_form_id'] ?? null; - $this->container['no_tin'] = $data['no_tin'] ?? null; $this->container['recipient_date_of_birth'] = $data['recipient_date_of_birth'] ?? null; $this->container['recipient_giin'] = $data['recipient_giin'] ?? null; $this->container['recipient_foreign_tin'] = $data['recipient_foreign_tin'] ?? null; @@ -501,15 +507,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; } @@ -531,13 +539,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -607,30 +608,6 @@ public function setUniqueFormId($unique_form_id) return $this; } - /** - * Gets no_tin - * - * @return bool|null - */ - public function getNoTin() - { - return $this->container['no_tin']; - } - - /** - * Sets no_tin - * - * @param bool|null $no_tin No TIN indicator - * - * @return self - */ - public function setNoTin($no_tin) - { - $this->container['no_tin'] = $no_tin; - - return $this; - } - /** * Gets recipient_date_of_birth * @@ -1292,7 +1269,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1302,17 +1279,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1042SRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1507,25 +1479,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1579,25 +1551,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1727,6 +1699,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1042SResponse.php b/lib/Model/A1099/V2/Form1042SResponse.php index ebd7ac6..762c19a 100644 --- a/lib/Model/A1099/V2/Form1042SResponse.php +++ b/lib/Model/A1099/V2/Form1042SResponse.php @@ -74,7 +74,6 @@ class Form1042SResponse implements ModelInterface, ArrayAccess, \JsonSerializabl 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -91,17 +90,20 @@ class Form1042SResponse implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', @@ -120,7 +122,6 @@ class Form1042SResponse implements ModelInterface, ArrayAccess, \JsonSerializabl 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -137,17 +138,20 @@ class Form1042SResponse implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, @@ -185,7 +189,6 @@ public static function openAPIFormats() 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -202,17 +205,20 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', @@ -229,7 +235,6 @@ public static function openAPIFormats() 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -246,17 +251,20 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', @@ -273,7 +281,6 @@ public static function openAPIFormats() 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -290,17 +297,20 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', @@ -356,6 +366,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -376,6 +387,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -412,7 +424,6 @@ public function __construct(array $data = null) $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -429,17 +440,20 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; @@ -571,30 +585,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -990,25 +980,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1062,25 +1052,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1205,6 +1195,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1253,6 +1291,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * diff --git a/lib/Model/A1099/V2/Form1095BListItem.php b/lib/Model/A1099/V2/Form1095BListItem.php index ef41aac..c215b12 100644 --- a/lib/Model/A1099/V2/Form1095BListItem.php +++ b/lib/Model/A1099/V2/Form1095BListItem.php @@ -89,15 +89,17 @@ class Form1095BListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -128,15 +130,17 @@ class Form1095BListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -186,15 +190,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -223,15 +229,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -260,15 +268,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -392,15 +402,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -423,13 +435,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -730,7 +735,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -740,17 +745,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1095BListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -945,25 +945,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1017,25 +1017,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1165,6 +1165,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1095BListItemResponse.php b/lib/Model/A1099/V2/Form1095BListItemResponse.php index 5981c35..82457aa 100644 --- a/lib/Model/A1099/V2/Form1095BListItemResponse.php +++ b/lib/Model/A1099/V2/Form1095BListItemResponse.php @@ -80,19 +80,22 @@ class Form1095BListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -100,8 +103,11 @@ class Form1095BListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -134,10 +140,13 @@ class Form1095BListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -145,8 +154,11 @@ class Form1095BListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -198,10 +210,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -209,8 +224,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -241,10 +259,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -252,8 +273,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -284,10 +308,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -295,8 +322,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -378,10 +408,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -389,8 +422,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -684,7 +720,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -694,7 +730,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -782,7 +818,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -792,7 +828,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -830,7 +866,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -840,7 +876,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -878,7 +914,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -888,7 +924,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -899,6 +935,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -995,6 +1055,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1164,25 +1272,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1211,6 +1319,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1095BRequest.php b/lib/Model/A1099/V2/Form1095BRequest.php index 3a5d638..5b3c69e 100644 --- a/lib/Model/A1099/V2/Form1095BRequest.php +++ b/lib/Model/A1099/V2/Form1095BRequest.php @@ -90,15 +90,17 @@ class Form1095BRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -130,15 +132,17 @@ class Form1095BRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -189,15 +193,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -227,15 +233,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -265,15 +273,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -333,6 +343,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -371,6 +382,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -423,15 +435,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -463,13 +477,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -804,7 +811,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -814,17 +821,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1095BRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1019,25 +1021,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1091,25 +1093,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1239,6 +1241,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1095CList.php b/lib/Model/A1099/V2/Form1095CList.php new file mode 100644 index 0000000..8115e99 --- /dev/null +++ b/lib/Model/A1099/V2/Form1095CList.php @@ -0,0 +1,364 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095CList Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095CList implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095CList'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'forms' => '\Avalara\SDK\Model\A1099\V2\Form1095CListItem[]', + 'form_type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'forms' => null, + 'form_type' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'forms' => 'forms', + 'form_type' => 'formType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'forms' => 'setForms', + 'form_type' => 'setFormType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'forms' => 'getForms', + 'form_type' => 'getFormType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['forms'] = $data['forms'] ?? null; + $this->container['form_type'] = $data['form_type'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets forms + * + * @return \Avalara\SDK\Model\A1099\V2\Form1095CListItem[]|null + */ + public function getForms() + { + return $this->container['forms']; + } + + /** + * Sets forms + * + * @param \Avalara\SDK\Model\A1099\V2\Form1095CListItem[]|null $forms forms + * + * @return self + */ + public function setForms($forms) + { + + + $this->container['forms'] = $forms; + + return $this; + } + + /** + * Gets form_type + * + * @return string|null + */ + public function getFormType() + { + return $this->container['form_type']; + } + + /** + * Sets form_type + * + * @param string|null $form_type form_type + * + * @return self + */ + public function setFormType($form_type) + { + $this->container['form_type'] = $form_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1095CListItem.php b/lib/Model/A1099/V2/Form1095CListItem.php new file mode 100644 index 0000000..a4a0518 --- /dev/null +++ b/lib/Model/A1099/V2/Form1095CListItem.php @@ -0,0 +1,1463 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1095CListItem Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1095CListItem implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1095CListItem'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'employee_first_name' => 'string', + 'employee_middle_name' => 'string', + 'employee_last_name' => 'string', + 'employee_name_suffix' => 'string', + 'recipient_date_of_birth' => '\DateTime', + 'plan_start_month' => 'string', + 'offer_and_coverages' => '\Avalara\SDK\Model\A1099\V2\OfferAndCoverageRequest[]', + 'employer_provided_si_coverage' => 'bool', + 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'issuer_id' => 'string', + 'reference_id' => 'string', + 'recipient_tin' => 'string', + 'recipient_name' => 'string', + 'tin_type' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', + 'address_verification' => 'bool', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'employee_first_name' => null, + 'employee_middle_name' => null, + 'employee_last_name' => null, + 'employee_name_suffix' => null, + 'recipient_date_of_birth' => 'date-time', + 'plan_start_month' => null, + 'offer_and_coverages' => null, + 'employer_provided_si_coverage' => null, + 'covered_individuals' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'issuer_id' => null, + 'reference_id' => null, + 'recipient_tin' => null, + 'recipient_name' => null, + 'tin_type' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'email' => null, + 'account_number' => null, + 'office_code' => null, + 'non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, + 'address_verification' => null, + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'employee_first_name' => 'employeeFirstName', + 'employee_middle_name' => 'employeeMiddleName', + 'employee_last_name' => 'employeeLastName', + 'employee_name_suffix' => 'employeeNameSuffix', + 'recipient_date_of_birth' => 'recipientDateOfBirth', + 'plan_start_month' => 'planStartMonth', + 'offer_and_coverages' => 'offerAndCoverages', + 'employer_provided_si_coverage' => 'employerProvidedSiCoverage', + 'covered_individuals' => 'coveredIndividuals', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'issuer_id' => 'issuerId', + 'reference_id' => 'referenceId', + 'recipient_tin' => 'recipientTin', + 'recipient_name' => 'recipientName', + 'tin_type' => 'tinType', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'email' => 'email', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'non_us_province' => 'nonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', + 'address_verification' => 'addressVerification', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'employee_first_name' => 'setEmployeeFirstName', + 'employee_middle_name' => 'setEmployeeMiddleName', + 'employee_last_name' => 'setEmployeeLastName', + 'employee_name_suffix' => 'setEmployeeNameSuffix', + 'recipient_date_of_birth' => 'setRecipientDateOfBirth', + 'plan_start_month' => 'setPlanStartMonth', + 'offer_and_coverages' => 'setOfferAndCoverages', + 'employer_provided_si_coverage' => 'setEmployerProvidedSiCoverage', + 'covered_individuals' => 'setCoveredIndividuals', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'issuer_id' => 'setIssuerId', + 'reference_id' => 'setReferenceId', + 'recipient_tin' => 'setRecipientTin', + 'recipient_name' => 'setRecipientName', + 'tin_type' => 'setTinType', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'email' => 'setEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'non_us_province' => 'setNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', + 'address_verification' => 'setAddressVerification', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'employee_first_name' => 'getEmployeeFirstName', + 'employee_middle_name' => 'getEmployeeMiddleName', + 'employee_last_name' => 'getEmployeeLastName', + 'employee_name_suffix' => 'getEmployeeNameSuffix', + 'recipient_date_of_birth' => 'getRecipientDateOfBirth', + 'plan_start_month' => 'getPlanStartMonth', + 'offer_and_coverages' => 'getOfferAndCoverages', + 'employer_provided_si_coverage' => 'getEmployerProvidedSiCoverage', + 'covered_individuals' => 'getCoveredIndividuals', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'issuer_id' => 'getIssuerId', + 'reference_id' => 'getReferenceId', + 'recipient_tin' => 'getRecipientTin', + 'recipient_name' => 'getRecipientName', + 'tin_type' => 'getTinType', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'email' => 'getEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'non_us_province' => 'getNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', + 'address_verification' => 'getAddressVerification', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['employee_first_name'] = $data['employee_first_name'] ?? null; + $this->container['employee_middle_name'] = $data['employee_middle_name'] ?? null; + $this->container['employee_last_name'] = $data['employee_last_name'] ?? null; + $this->container['employee_name_suffix'] = $data['employee_name_suffix'] ?? null; + $this->container['recipient_date_of_birth'] = $data['recipient_date_of_birth'] ?? null; + $this->container['plan_start_month'] = $data['plan_start_month'] ?? null; + $this->container['offer_and_coverages'] = $data['offer_and_coverages'] ?? null; + $this->container['employer_provided_si_coverage'] = $data['employer_provided_si_coverage'] ?? null; + $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['tax_year'] === null) { + $invalidProperties[] = "'tax_year' can't be null"; + } + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['address'] === null) { + $invalidProperties[] = "'address' can't be null"; + } + if ((mb_strlen($this->container['address']) < 1)) { + $invalidProperties[] = "invalid value for 'address', the character length must be bigger than or equal to 1."; + } + + if ($this->container['city'] === null) { + $invalidProperties[] = "'city' can't be null"; + } + if ((mb_strlen($this->container['city']) < 1)) { + $invalidProperties[] = "invalid value for 'city', the character length must be bigger than or equal to 1."; + } + + if ($this->container['country_code'] === null) { + $invalidProperties[] = "'country_code' can't be null"; + } + if ((mb_strlen($this->container['country_code']) < 1)) { + $invalidProperties[] = "invalid value for 'country_code', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets employee_first_name + * + * @return string|null + */ + public function getEmployeeFirstName() + { + return $this->container['employee_first_name']; + } + + /** + * Sets employee_first_name + * + * @param string|null $employee_first_name Employee's first name + * + * @return self + */ + public function setEmployeeFirstName($employee_first_name) + { + $this->container['employee_first_name'] = $employee_first_name; + + return $this; + } + + /** + * Gets employee_middle_name + * + * @return string|null + */ + public function getEmployeeMiddleName() + { + return $this->container['employee_middle_name']; + } + + /** + * Sets employee_middle_name + * + * @param string|null $employee_middle_name Employee's middle name + * + * @return self + */ + public function setEmployeeMiddleName($employee_middle_name) + { + $this->container['employee_middle_name'] = $employee_middle_name; + + return $this; + } + + /** + * Gets employee_last_name + * + * @return string|null + */ + public function getEmployeeLastName() + { + return $this->container['employee_last_name']; + } + + /** + * Sets employee_last_name + * + * @param string|null $employee_last_name Employee's last name + * + * @return self + */ + public function setEmployeeLastName($employee_last_name) + { + $this->container['employee_last_name'] = $employee_last_name; + + return $this; + } + + /** + * Gets employee_name_suffix + * + * @return string|null + */ + public function getEmployeeNameSuffix() + { + return $this->container['employee_name_suffix']; + } + + /** + * Sets employee_name_suffix + * + * @param string|null $employee_name_suffix Employee's name suffix + * + * @return self + */ + public function setEmployeeNameSuffix($employee_name_suffix) + { + $this->container['employee_name_suffix'] = $employee_name_suffix; + + return $this; + } + + /** + * Gets recipient_date_of_birth + * + * @return \DateTime|null + */ + public function getRecipientDateOfBirth() + { + return $this->container['recipient_date_of_birth']; + } + + /** + * Sets recipient_date_of_birth + * + * @param \DateTime|null $recipient_date_of_birth Recipient's date of birth + * + * @return self + */ + public function setRecipientDateOfBirth($recipient_date_of_birth) + { + $this->container['recipient_date_of_birth'] = $recipient_date_of_birth; + + return $this; + } + + /** + * Gets plan_start_month + * + * @return string|null + */ + public function getPlanStartMonth() + { + return $this->container['plan_start_month']; + } + + /** + * Sets plan_start_month + * + * @param string|null $plan_start_month Plan start month + * + * @return self + */ + public function setPlanStartMonth($plan_start_month) + { + $this->container['plan_start_month'] = $plan_start_month; + + return $this; + } + + /** + * Gets offer_and_coverages + * + * @return \Avalara\SDK\Model\A1099\V2\OfferAndCoverageRequest[]|null + */ + public function getOfferAndCoverages() + { + return $this->container['offer_and_coverages']; + } + + /** + * Sets offer_and_coverages + * + * @param \Avalara\SDK\Model\A1099\V2\OfferAndCoverageRequest[]|null $offer_and_coverages Offer and coverage information + * + * @return self + */ + public function setOfferAndCoverages($offer_and_coverages) + { + + + $this->container['offer_and_coverages'] = $offer_and_coverages; + + return $this; + } + + /** + * Gets employer_provided_si_coverage + * + * @return bool|null + */ + public function getEmployerProvidedSiCoverage() + { + return $this->container['employer_provided_si_coverage']; + } + + /** + * Sets employer_provided_si_coverage + * + * @param bool|null $employer_provided_si_coverage Employer provided self-insured coverage + * + * @return self + */ + public function setEmployerProvidedSiCoverage($employer_provided_si_coverage) + { + $this->container['employer_provided_si_coverage'] = $employer_provided_si_coverage; + + return $this; + } + + /** + * Gets covered_individuals + * + * @return \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null + */ + public function getCoveredIndividuals() + { + return $this->container['covered_individuals']; + } + + /** + * Sets covered_individuals + * + * @param \Avalara\SDK\Model\A1099\V2\CoveredIndividualRequest[]|null $covered_individuals Covered individuals information + * + * @return self + */ + public function setCoveredIndividuals($covered_individuals) + { + + + $this->container['covered_individuals'] = $covered_individuals; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id Issuer Reference ID. One of `issuerReferenceId` or `issuerTin` is required. + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin Issuer TIN. One of `issuerReferenceId` or `issuerTin` is required. + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int $tax_year Tax year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id Issuer ID + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id Reference ID + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin Recipient Tax ID Number + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name Recipient name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name Recipient second name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address Address + * + * @return self + */ + public function setAddress($address) + { + + if ((mb_strlen($address) < 1)) { + throw new \InvalidArgumentException('invalid length for $address when calling Form1095CListItem., must be bigger than or equal to 1.'); + } + + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 Address line 2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city City + * + * @return self + */ + public function setCity($city) + { + + if ((mb_strlen($city) < 1)) { + throw new \InvalidArgumentException('invalid length for $city when calling Form1095CListItem., must be bigger than or equal to 1.'); + } + + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state US state. Required if CountryCode is \"US\". + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip Zip/postal code + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email Recipient email address + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets non_us_province + * + * @return string|null + */ + public function getNonUsProvince() + { + return $this->container['non_us_province']; + } + + /** + * Sets non_us_province + * + * @param string|null $non_us_province Foreign province + * + * @return self + */ + public function setNonUsProvince($non_us_province) + { + $this->container['non_us_province'] = $non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string $country_code Country code, as defined at https://www.irs.gov/e-file-providers/country-codes + * + * @return self + */ + public function setCountryCode($country_code) + { + + if ((mb_strlen($country_code) < 1)) { + throw new \InvalidArgumentException('invalid length for $country_code when calling Form1095CListItem., must be bigger than or equal to 1.'); + } + + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file Boolean indicating that federal e-filing should be scheduled for this form + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail Boolean indicating that postal mailing to the recipient should be scheduled for this form + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file Boolean indicating that state e-filing should be scheduled for this form + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match Boolean indicating that TIN Matching should be scheduled for this form + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification Boolean indicating that address verification should be scheduled for this form + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding State and local withholding information + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099BaseResponse.php b/lib/Model/A1099/V2/Form1099BaseResponse.php index 90c0be6..e07a929 100644 --- a/lib/Model/A1099/V2/Form1099BaseResponse.php +++ b/lib/Model/A1099/V2/Form1099BaseResponse.php @@ -78,19 +78,22 @@ class Form1099BaseResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -98,8 +101,11 @@ class Form1099BaseResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -130,10 +136,13 @@ class Form1099BaseResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -141,8 +150,11 @@ class Form1099BaseResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -192,10 +204,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -203,8 +218,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -233,10 +251,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -244,8 +265,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -274,10 +298,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -285,8 +312,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -366,10 +396,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -377,8 +410,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -622,7 +658,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -632,7 +668,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -720,7 +756,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -730,7 +766,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -768,7 +804,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -778,7 +814,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -816,7 +852,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -826,7 +862,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -837,6 +873,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -933,6 +993,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1102,25 +1210,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1149,6 +1257,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1099DivListItem.php b/lib/Model/A1099/V2/Form1099DivListItem.php index 528d548..f2b6eea 100644 --- a/lib/Model/A1099/V2/Form1099DivListItem.php +++ b/lib/Model/A1099/V2/Form1099DivListItem.php @@ -73,8 +73,8 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPITypes = [ 'total_ordinary_dividends' => 'string', 'qualified_dividends' => 'string', - 'total_capital_gain_distr' => 'string', - 'unrecap_sec1250_gain' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', 'section1202_gain' => 'string', 'collectibles_gain' => 'string', 'section897_ordinary_dividends' => 'string', @@ -89,7 +89,7 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'noncash_liquidation_distributions' => 'string', 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', - 'fatca_filing_requirement' => 'string', + 'fatca_filing_requirement' => 'bool', 'issuer_reference_id' => 'string', 'issuer_tin' => 'string', 'tax_year' => 'int', @@ -104,15 +104,17 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -127,8 +129,8 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPIFormats = [ 'total_ordinary_dividends' => null, 'qualified_dividends' => null, - 'total_capital_gain_distr' => null, - 'unrecap_sec1250_gain' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, 'section1202_gain' => null, 'collectibles_gain' => null, 'section897_ordinary_dividends' => null, @@ -158,15 +160,17 @@ class Form1099DivListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -200,8 +204,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'total_ordinary_dividends' => 'totalOrdinaryDividends', 'qualified_dividends' => 'qualifiedDividends', - 'total_capital_gain_distr' => 'totalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'unrecapSec1250Gain', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', 'section1202_gain' => 'section1202Gain', 'collectibles_gain' => 'collectiblesGain', 'section897_ordinary_dividends' => 'section897OrdinaryDividends', @@ -231,15 +235,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -252,8 +258,8 @@ public static function openAPIFormats() protected static $setters = [ 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', 'qualified_dividends' => 'setQualifiedDividends', - 'total_capital_gain_distr' => 'setTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'setUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', 'section1202_gain' => 'setSection1202Gain', 'collectibles_gain' => 'setCollectiblesGain', 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', @@ -283,15 +289,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -304,8 +312,8 @@ public static function openAPIFormats() protected static $getters = [ 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', 'qualified_dividends' => 'getQualifiedDividends', - 'total_capital_gain_distr' => 'getTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'getUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', 'section1202_gain' => 'getSection1202Gain', 'collectibles_gain' => 'getCollectiblesGain', 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', @@ -335,15 +343,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -426,8 +436,8 @@ public function __construct(array $data = null) { $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; - $this->container['total_capital_gain_distr'] = $data['total_capital_gain_distr'] ?? null; - $this->container['unrecap_sec1250_gain'] = $data['unrecap_sec1250_gain'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; @@ -457,15 +467,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -482,13 +494,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -583,49 +588,49 @@ public function setQualifiedDividends($qualified_dividends) } /** - * Gets total_capital_gain_distr + * Gets total_capital_gain_distributions * * @return string|null */ - public function getTotalCapitalGainDistr() + public function getTotalCapitalGainDistributions() { - return $this->container['total_capital_gain_distr']; + return $this->container['total_capital_gain_distributions']; } /** - * Sets total_capital_gain_distr + * Sets total_capital_gain_distributions * - * @param string|null $total_capital_gain_distr Total capital gain distributions + * @param string|null $total_capital_gain_distributions Total capital gain distributions * * @return self */ - public function setTotalCapitalGainDistr($total_capital_gain_distr) + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) { - $this->container['total_capital_gain_distr'] = $total_capital_gain_distr; + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; return $this; } /** - * Gets unrecap_sec1250_gain + * Gets unrecaptured_section1250_gain * * @return string|null */ - public function getUnrecapSec1250Gain() + public function getUnrecapturedSection1250Gain() { - return $this->container['unrecap_sec1250_gain']; + return $this->container['unrecaptured_section1250_gain']; } /** - * Sets unrecap_sec1250_gain + * Sets unrecaptured_section1250_gain * - * @param string|null $unrecap_sec1250_gain Unrecaptured Section 1250 gain + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain * * @return self */ - public function setUnrecapSec1250Gain($unrecap_sec1250_gain) + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) { - $this->container['unrecap_sec1250_gain'] = $unrecap_sec1250_gain; + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; return $this; } @@ -969,7 +974,7 @@ public function setSpecifiedPrivateActivityBondInterestDividends($specified_priv /** * Gets fatca_filing_requirement * - * @return string|null + * @return bool|null */ public function getFatcaFilingRequirement() { @@ -979,7 +984,7 @@ public function getFatcaFilingRequirement() /** * Sets fatca_filing_requirement * - * @param string|null $fatca_filing_requirement FATCA filing requirement + * @param bool|null $fatca_filing_requirement FATCA filing requirement * * @return self */ @@ -1137,7 +1142,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1147,17 +1152,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099DivListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1352,25 +1352,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1424,25 +1424,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1572,6 +1572,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099DivListItemResponse.php b/lib/Model/A1099/V2/Form1099DivListItemResponse.php new file mode 100644 index 0000000..83d0f73 --- /dev/null +++ b/lib/Model/A1099/V2/Form1099DivListItemResponse.php @@ -0,0 +1,2058 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1099DivListItemResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1099DivListItemResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1099DivListItemResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'total_ordinary_dividends' => 'string', + 'qualified_dividends' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', + 'section1202_gain' => 'string', + 'collectibles_gain' => 'string', + 'section897_ordinary_dividends' => 'string', + 'section897_capital_gain' => 'string', + 'nondividend_distributions' => 'string', + 'federal_income_tax_withheld' => 'string', + 'section199_a_dividends' => 'string', + 'investment_expenses' => 'string', + 'foreign_tax_paid' => 'string', + 'foreign_country_or_us_possession' => 'string', + 'cash_liquidation_distributions' => 'string', + 'noncash_liquidation_distributions' => 'string', + 'exempt_interest_dividends' => 'string', + 'specified_private_activity_bond_interest_dividends' => 'string', + 'fatca_filing_requirement' => 'bool', + 'id' => 'string', + 'type' => 'string', + 'issuer_id' => 'int', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'federal_efile' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile' => 'bool', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', + 'postal_mail' => 'bool', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match' => 'bool', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification' => 'bool', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'reference_id' => 'string', + 'email' => 'string', + 'tin_type' => 'string', + 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', + 'recipient_name' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'non_us_province' => 'string', + 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'total_ordinary_dividends' => null, + 'qualified_dividends' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, + 'section1202_gain' => null, + 'collectibles_gain' => null, + 'section897_ordinary_dividends' => null, + 'section897_capital_gain' => null, + 'nondividend_distributions' => null, + 'federal_income_tax_withheld' => null, + 'section199_a_dividends' => null, + 'investment_expenses' => null, + 'foreign_tax_paid' => null, + 'foreign_country_or_us_possession' => null, + 'cash_liquidation_distributions' => null, + 'noncash_liquidation_distributions' => null, + 'exempt_interest_dividends' => null, + 'specified_private_activity_bond_interest_dividends' => null, + 'fatca_filing_requirement' => null, + 'id' => null, + 'type' => null, + 'issuer_id' => 'int32', + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'federal_efile' => null, + 'federal_efile_status' => null, + 'state_efile' => null, + 'state_efile_status' => null, + 'postal_mail' => null, + 'postal_mail_status' => null, + 'tin_match' => null, + 'tin_match_status' => null, + 'address_verification' => null, + 'address_verification_status' => null, + 'e_delivery_status' => null, + 'reference_id' => null, + 'email' => null, + 'tin_type' => null, + 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, + 'recipient_name' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'non_us_province' => null, + 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'validation_errors' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'state_and_local_withholding' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'total_ordinary_dividends' => 'totalOrdinaryDividends', + 'qualified_dividends' => 'qualifiedDividends', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', + 'section1202_gain' => 'section1202Gain', + 'collectibles_gain' => 'collectiblesGain', + 'section897_ordinary_dividends' => 'section897OrdinaryDividends', + 'section897_capital_gain' => 'section897CapitalGain', + 'nondividend_distributions' => 'nondividendDistributions', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'section199_a_dividends' => 'section199ADividends', + 'investment_expenses' => 'investmentExpenses', + 'foreign_tax_paid' => 'foreignTaxPaid', + 'foreign_country_or_us_possession' => 'foreignCountryOrUSPossession', + 'cash_liquidation_distributions' => 'cashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'noncashLiquidationDistributions', + 'exempt_interest_dividends' => 'exemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', + 'id' => 'id', + 'type' => 'type', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'federal_efile' => 'federalEfile', + 'federal_efile_status' => 'federalEfileStatus', + 'state_efile' => 'stateEfile', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail' => 'postalMail', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match' => 'tinMatch', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification' => 'addressVerification', + 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', + 'reference_id' => 'referenceId', + 'email' => 'email', + 'tin_type' => 'tinType', + 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', + 'recipient_name' => 'recipientName', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'non_us_province' => 'nonUsProvince', + 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'validation_errors' => 'validationErrors', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'state_and_local_withholding' => 'stateAndLocalWithholding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', + 'qualified_dividends' => 'setQualifiedDividends', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', + 'section1202_gain' => 'setSection1202Gain', + 'collectibles_gain' => 'setCollectiblesGain', + 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', + 'section897_capital_gain' => 'setSection897CapitalGain', + 'nondividend_distributions' => 'setNondividendDistributions', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'setSection199ADividends', + 'investment_expenses' => 'setInvestmentExpenses', + 'foreign_tax_paid' => 'setForeignTaxPaid', + 'foreign_country_or_us_possession' => 'setForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'setCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'setNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'setExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', + 'id' => 'setId', + 'type' => 'setType', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'federal_efile' => 'setFederalEfile', + 'federal_efile_status' => 'setFederalEfileStatus', + 'state_efile' => 'setStateEfile', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail' => 'setPostalMail', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match' => 'setTinMatch', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification' => 'setAddressVerification', + 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', + 'reference_id' => 'setReferenceId', + 'email' => 'setEmail', + 'tin_type' => 'setTinType', + 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', + 'recipient_name' => 'setRecipientName', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'non_us_province' => 'setNonUsProvince', + 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'validation_errors' => 'setValidationErrors', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'state_and_local_withholding' => 'setStateAndLocalWithholding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', + 'qualified_dividends' => 'getQualifiedDividends', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', + 'section1202_gain' => 'getSection1202Gain', + 'collectibles_gain' => 'getCollectiblesGain', + 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', + 'section897_capital_gain' => 'getSection897CapitalGain', + 'nondividend_distributions' => 'getNondividendDistributions', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'getSection199ADividends', + 'investment_expenses' => 'getInvestmentExpenses', + 'foreign_tax_paid' => 'getForeignTaxPaid', + 'foreign_country_or_us_possession' => 'getForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'getCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'getNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'getExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', + 'id' => 'getId', + 'type' => 'getType', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'federal_efile' => 'getFederalEfile', + 'federal_efile_status' => 'getFederalEfileStatus', + 'state_efile' => 'getStateEfile', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail' => 'getPostalMail', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match' => 'getTinMatch', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification' => 'getAddressVerification', + 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', + 'reference_id' => 'getReferenceId', + 'email' => 'getEmail', + 'tin_type' => 'getTinType', + 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', + 'recipient_name' => 'getRecipientName', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'non_us_province' => 'getNonUsProvince', + 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'validation_errors' => 'getValidationErrors', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'state_and_local_withholding' => 'getStateAndLocalWithholding' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; + $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; + $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; + $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; + $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; + $this->container['section897_capital_gain'] = $data['section897_capital_gain'] ?? null; + $this->container['nondividend_distributions'] = $data['nondividend_distributions'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['section199_a_dividends'] = $data['section199_a_dividends'] ?? null; + $this->container['investment_expenses'] = $data['investment_expenses'] ?? null; + $this->container['foreign_tax_paid'] = $data['foreign_tax_paid'] ?? null; + $this->container['foreign_country_or_us_possession'] = $data['foreign_country_or_us_possession'] ?? null; + $this->container['cash_liquidation_distributions'] = $data['cash_liquidation_distributions'] ?? null; + $this->container['noncash_liquidation_distributions'] = $data['noncash_liquidation_distributions'] ?? null; + $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; + $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['federal_efile'] = $data['federal_efile'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['state_efile'] = $data['state_efile'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ((mb_strlen($this->container['id']) < 1)) { + $invalidProperties[] = "invalid value for 'id', the character length must be bigger than or equal to 1."; + } + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + if ((mb_strlen($this->container['type']) < 1)) { + $invalidProperties[] = "invalid value for 'type', the character length must be bigger than or equal to 1."; + } + + if ($this->container['issuer_id'] === null) { + $invalidProperties[] = "'issuer_id' can't be null"; + } + if ($this->container['federal_efile'] === null) { + $invalidProperties[] = "'federal_efile' can't be null"; + } + if ($this->container['state_efile'] === null) { + $invalidProperties[] = "'state_efile' can't be null"; + } + if ($this->container['postal_mail'] === null) { + $invalidProperties[] = "'postal_mail' can't be null"; + } + if ($this->container['tin_match'] === null) { + $invalidProperties[] = "'tin_match' can't be null"; + } + if ($this->container['address_verification'] === null) { + $invalidProperties[] = "'address_verification' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets total_ordinary_dividends + * + * @return string|null + */ + public function getTotalOrdinaryDividends() + { + return $this->container['total_ordinary_dividends']; + } + + /** + * Sets total_ordinary_dividends + * + * @param string|null $total_ordinary_dividends Total ordinary dividends + * + * @return self + */ + public function setTotalOrdinaryDividends($total_ordinary_dividends) + { + $this->container['total_ordinary_dividends'] = $total_ordinary_dividends; + + return $this; + } + + /** + * Gets qualified_dividends + * + * @return string|null + */ + public function getQualifiedDividends() + { + return $this->container['qualified_dividends']; + } + + /** + * Sets qualified_dividends + * + * @param string|null $qualified_dividends Qualified dividends + * + * @return self + */ + public function setQualifiedDividends($qualified_dividends) + { + $this->container['qualified_dividends'] = $qualified_dividends; + + return $this; + } + + /** + * Gets total_capital_gain_distributions + * + * @return string|null + */ + public function getTotalCapitalGainDistributions() + { + return $this->container['total_capital_gain_distributions']; + } + + /** + * Sets total_capital_gain_distributions + * + * @param string|null $total_capital_gain_distributions Total capital gain distributions + * + * @return self + */ + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) + { + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; + + return $this; + } + + /** + * Gets unrecaptured_section1250_gain + * + * @return string|null + */ + public function getUnrecapturedSection1250Gain() + { + return $this->container['unrecaptured_section1250_gain']; + } + + /** + * Sets unrecaptured_section1250_gain + * + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain + * + * @return self + */ + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) + { + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; + + return $this; + } + + /** + * Gets section1202_gain + * + * @return string|null + */ + public function getSection1202Gain() + { + return $this->container['section1202_gain']; + } + + /** + * Sets section1202_gain + * + * @param string|null $section1202_gain Section 1202 gain + * + * @return self + */ + public function setSection1202Gain($section1202_gain) + { + $this->container['section1202_gain'] = $section1202_gain; + + return $this; + } + + /** + * Gets collectibles_gain + * + * @return string|null + */ + public function getCollectiblesGain() + { + return $this->container['collectibles_gain']; + } + + /** + * Sets collectibles_gain + * + * @param string|null $collectibles_gain Collectibles (28%) gain + * + * @return self + */ + public function setCollectiblesGain($collectibles_gain) + { + $this->container['collectibles_gain'] = $collectibles_gain; + + return $this; + } + + /** + * Gets section897_ordinary_dividends + * + * @return string|null + */ + public function getSection897OrdinaryDividends() + { + return $this->container['section897_ordinary_dividends']; + } + + /** + * Sets section897_ordinary_dividends + * + * @param string|null $section897_ordinary_dividends Section 897 ordinary dividends + * + * @return self + */ + public function setSection897OrdinaryDividends($section897_ordinary_dividends) + { + $this->container['section897_ordinary_dividends'] = $section897_ordinary_dividends; + + return $this; + } + + /** + * Gets section897_capital_gain + * + * @return string|null + */ + public function getSection897CapitalGain() + { + return $this->container['section897_capital_gain']; + } + + /** + * Sets section897_capital_gain + * + * @param string|null $section897_capital_gain Section 897 capital gain + * + * @return self + */ + public function setSection897CapitalGain($section897_capital_gain) + { + $this->container['section897_capital_gain'] = $section897_capital_gain; + + return $this; + } + + /** + * Gets nondividend_distributions + * + * @return string|null + */ + public function getNondividendDistributions() + { + return $this->container['nondividend_distributions']; + } + + /** + * Sets nondividend_distributions + * + * @param string|null $nondividend_distributions Nondividend distributions + * + * @return self + */ + public function setNondividendDistributions($nondividend_distributions) + { + $this->container['nondividend_distributions'] = $nondividend_distributions; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return string|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param string|null $federal_income_tax_withheld Federal income tax withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets section199_a_dividends + * + * @return string|null + */ + public function getSection199ADividends() + { + return $this->container['section199_a_dividends']; + } + + /** + * Sets section199_a_dividends + * + * @param string|null $section199_a_dividends Section 199A dividends + * + * @return self + */ + public function setSection199ADividends($section199_a_dividends) + { + $this->container['section199_a_dividends'] = $section199_a_dividends; + + return $this; + } + + /** + * Gets investment_expenses + * + * @return string|null + */ + public function getInvestmentExpenses() + { + return $this->container['investment_expenses']; + } + + /** + * Sets investment_expenses + * + * @param string|null $investment_expenses Investment expenses + * + * @return self + */ + public function setInvestmentExpenses($investment_expenses) + { + $this->container['investment_expenses'] = $investment_expenses; + + return $this; + } + + /** + * Gets foreign_tax_paid + * + * @return string|null + */ + public function getForeignTaxPaid() + { + return $this->container['foreign_tax_paid']; + } + + /** + * Sets foreign_tax_paid + * + * @param string|null $foreign_tax_paid Foreign tax paid + * + * @return self + */ + public function setForeignTaxPaid($foreign_tax_paid) + { + $this->container['foreign_tax_paid'] = $foreign_tax_paid; + + return $this; + } + + /** + * Gets foreign_country_or_us_possession + * + * @return string|null + */ + public function getForeignCountryOrUsPossession() + { + return $this->container['foreign_country_or_us_possession']; + } + + /** + * Sets foreign_country_or_us_possession + * + * @param string|null $foreign_country_or_us_possession Foreign country or U.S. possession + * + * @return self + */ + public function setForeignCountryOrUsPossession($foreign_country_or_us_possession) + { + $this->container['foreign_country_or_us_possession'] = $foreign_country_or_us_possession; + + return $this; + } + + /** + * Gets cash_liquidation_distributions + * + * @return string|null + */ + public function getCashLiquidationDistributions() + { + return $this->container['cash_liquidation_distributions']; + } + + /** + * Sets cash_liquidation_distributions + * + * @param string|null $cash_liquidation_distributions Cash liquidation distributions + * + * @return self + */ + public function setCashLiquidationDistributions($cash_liquidation_distributions) + { + $this->container['cash_liquidation_distributions'] = $cash_liquidation_distributions; + + return $this; + } + + /** + * Gets noncash_liquidation_distributions + * + * @return string|null + */ + public function getNoncashLiquidationDistributions() + { + return $this->container['noncash_liquidation_distributions']; + } + + /** + * Sets noncash_liquidation_distributions + * + * @param string|null $noncash_liquidation_distributions Noncash liquidation distributions + * + * @return self + */ + public function setNoncashLiquidationDistributions($noncash_liquidation_distributions) + { + $this->container['noncash_liquidation_distributions'] = $noncash_liquidation_distributions; + + return $this; + } + + /** + * Gets exempt_interest_dividends + * + * @return string|null + */ + public function getExemptInterestDividends() + { + return $this->container['exempt_interest_dividends']; + } + + /** + * Sets exempt_interest_dividends + * + * @param string|null $exempt_interest_dividends Exempt-interest dividends + * + * @return self + */ + public function setExemptInterestDividends($exempt_interest_dividends) + { + $this->container['exempt_interest_dividends'] = $exempt_interest_dividends; + + return $this; + } + + /** + * Gets specified_private_activity_bond_interest_dividends + * + * @return string|null + */ + public function getSpecifiedPrivateActivityBondInterestDividends() + { + return $this->container['specified_private_activity_bond_interest_dividends']; + } + + /** + * Sets specified_private_activity_bond_interest_dividends + * + * @param string|null $specified_private_activity_bond_interest_dividends Specified private activity bond interest dividends + * + * @return self + */ + public function setSpecifiedPrivateActivityBondInterestDividends($specified_private_activity_bond_interest_dividends) + { + $this->container['specified_private_activity_bond_interest_dividends'] = $specified_private_activity_bond_interest_dividends; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id ID of the form + * + * @return self + */ + public function setId($id) + { + + if ((mb_strlen($id) < 1)) { + throw new \InvalidArgumentException('invalid length for $id when calling Form1099DivListItemResponse., must be bigger than or equal to 1.'); + } + + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type Type of the form. Will be one of: * 940 * 941 * 943 * 944 * 945 * 1042 * 1042-S * 1095-B * 1095-C * 1097-BTC * 1098 * 1098-C * 1098-E * 1098-Q * 1098-T * 3921 * 3922 * 5498 * 5498-ESA * 5498-SA * 1099-MISC * 1099-A * 1099-B * 1099-C * 1099-CAP * 1099-DIV * 1099-G * 1099-INT * 1099-K * 1099-LS * 1099-LTC * 1099-NEC * 1099-OID * 1099-PATR * 1099-Q * 1099-R * 1099-S * 1099-SA * T4A * W-2 * W-2G * 1099-HC + * + * @return self + */ + public function setType($type) + { + + if ((mb_strlen($type) < 1)) { + throw new \InvalidArgumentException('invalid length for $type when calling Form1099DivListItemResponse., must be bigger than or equal to 1.'); + } + + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets issuer_id + * + * @return int + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param int $issuer_id Issuer ID + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id Issuer Reference ID + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin Issuer TIN + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year Tax year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets federal_efile + * + * @return bool + */ + public function getFederalEfile() + { + return $this->container['federal_efile']; + } + + /** + * Sets federal_efile + * + * @param bool $federal_efile Boolean indicating that federal e-filing has been scheduled for this form + * + * @return self + */ + public function setFederalEfile($federal_efile) + { + $this->container['federal_efile'] = $federal_efile; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets state_efile + * + * @return bool + */ + public function getStateEfile() + { + return $this->container['state_efile']; + } + + /** + * Sets state_efile + * + * @param bool $state_efile Boolean indicating that state e-filing has been scheduled for this form + * + * @return self + */ + public function setStateEfile($state_efile) + { + $this->container['state_efile'] = $state_efile; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]|null $state_efile_status State e-file status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool $postal_mail Boolean indicating that postal mailing to the recipient has been scheduled for this form + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool $tin_match Boolean indicating that TIN Matching has been scheduled for this form + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool $address_verification Boolean indicating that address verification has been scheduled for this form + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id Reference ID + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email Recipient email address + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type Type of TIN (Tax ID Number). Will be one of: * SSN * EIN * ITIN * ATIN + * + * @return self + */ + public function setTinType($tin_type) + { + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets tin + * + * @return string|null + */ + public function getTin() + { + return $this->container['tin']; + } + + /** + * Sets tin + * + * @param string|null $tin Recipient Tax ID Number + * + * @return self + */ + public function setTin($tin) + { + $this->container['tin'] = $tin; + + return $this; + } + + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name Recipient name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name Recipient second name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address Address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 Address line 2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city City + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state US state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip Zip/postal code + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets non_us_province + * + * @return string|null + */ + public function getNonUsProvince() + { + return $this->container['non_us_province']; + } + + /** + * Sets non_us_province + * + * @param string|null $non_us_province Foreign province + * + * @return self + */ + public function setNonUsProvince($non_us_province) + { + $this->container['non_us_province'] = $non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code Country code, as defined at https://www.irs.gov/e-file-providers/country-codes + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]|null $validation_errors Validation errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at Creation time + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at Update time + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099DivRequest.php b/lib/Model/A1099/V2/Form1099DivRequest.php index 5d0edbd..ad05970 100644 --- a/lib/Model/A1099/V2/Form1099DivRequest.php +++ b/lib/Model/A1099/V2/Form1099DivRequest.php @@ -73,8 +73,8 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPITypes = [ 'total_ordinary_dividends' => 'string', 'qualified_dividends' => 'string', - 'total_capital_gain_distr' => 'string', - 'unrecap_sec1250_gain' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', 'section1202_gain' => 'string', 'collectibles_gain' => 'string', 'section897_ordinary_dividends' => 'string', @@ -89,7 +89,7 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'noncash_liquidation_distributions' => 'string', 'exempt_interest_dividends' => 'string', 'specified_private_activity_bond_interest_dividends' => 'string', - 'fatca_filing_requirement' => 'string', + 'fatca_filing_requirement' => 'bool', 'type' => 'string', 'issuer_id' => 'string', 'reference_id' => 'string', @@ -102,15 +102,17 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -125,8 +127,8 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPIFormats = [ 'total_ordinary_dividends' => null, 'qualified_dividends' => null, - 'total_capital_gain_distr' => null, - 'unrecap_sec1250_gain' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, 'section1202_gain' => null, 'collectibles_gain' => null, 'section897_ordinary_dividends' => null, @@ -154,15 +156,17 @@ class Form1099DivRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -196,8 +200,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'total_ordinary_dividends' => 'totalOrdinaryDividends', 'qualified_dividends' => 'qualifiedDividends', - 'total_capital_gain_distr' => 'totalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'unrecapSec1250Gain', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', 'section1202_gain' => 'section1202Gain', 'collectibles_gain' => 'collectiblesGain', 'section897_ordinary_dividends' => 'section897OrdinaryDividends', @@ -225,15 +229,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -246,8 +252,8 @@ public static function openAPIFormats() protected static $setters = [ 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', 'qualified_dividends' => 'setQualifiedDividends', - 'total_capital_gain_distr' => 'setTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'setUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', 'section1202_gain' => 'setSection1202Gain', 'collectibles_gain' => 'setCollectiblesGain', 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', @@ -275,15 +281,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -296,8 +304,8 @@ public static function openAPIFormats() protected static $getters = [ 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', 'qualified_dividends' => 'getQualifiedDividends', - 'total_capital_gain_distr' => 'getTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'getUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', 'section1202_gain' => 'getSection1202Gain', 'collectibles_gain' => 'getCollectiblesGain', 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', @@ -325,15 +333,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -386,6 +396,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -406,6 +417,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -441,8 +453,8 @@ public function __construct(array $data = null) { $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; - $this->container['total_capital_gain_distr'] = $data['total_capital_gain_distr'] ?? null; - $this->container['unrecap_sec1250_gain'] = $data['unrecap_sec1250_gain'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; @@ -470,15 +482,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -501,13 +515,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -602,49 +609,49 @@ public function setQualifiedDividends($qualified_dividends) } /** - * Gets total_capital_gain_distr + * Gets total_capital_gain_distributions * * @return string|null */ - public function getTotalCapitalGainDistr() + public function getTotalCapitalGainDistributions() { - return $this->container['total_capital_gain_distr']; + return $this->container['total_capital_gain_distributions']; } /** - * Sets total_capital_gain_distr + * Sets total_capital_gain_distributions * - * @param string|null $total_capital_gain_distr Total capital gain distributions + * @param string|null $total_capital_gain_distributions Total capital gain distributions * * @return self */ - public function setTotalCapitalGainDistr($total_capital_gain_distr) + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) { - $this->container['total_capital_gain_distr'] = $total_capital_gain_distr; + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; return $this; } /** - * Gets unrecap_sec1250_gain + * Gets unrecaptured_section1250_gain * * @return string|null */ - public function getUnrecapSec1250Gain() + public function getUnrecapturedSection1250Gain() { - return $this->container['unrecap_sec1250_gain']; + return $this->container['unrecaptured_section1250_gain']; } /** - * Sets unrecap_sec1250_gain + * Sets unrecaptured_section1250_gain * - * @param string|null $unrecap_sec1250_gain Unrecaptured Section 1250 gain + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain * * @return self */ - public function setUnrecapSec1250Gain($unrecap_sec1250_gain) + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) { - $this->container['unrecap_sec1250_gain'] = $unrecap_sec1250_gain; + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; return $this; } @@ -988,7 +995,7 @@ public function setSpecifiedPrivateActivityBondInterestDividends($specified_priv /** * Gets fatca_filing_requirement * - * @return string|null + * @return bool|null */ public function getFatcaFilingRequirement() { @@ -998,7 +1005,7 @@ public function getFatcaFilingRequirement() /** * Sets fatca_filing_requirement * - * @param string|null $fatca_filing_requirement FATCA filing requirement + * @param bool|null $fatca_filing_requirement FATCA filing requirement * * @return self */ @@ -1118,7 +1125,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1128,17 +1135,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099DivRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1333,25 +1335,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1405,25 +1407,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1553,6 +1555,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099DivResponse.php b/lib/Model/A1099/V2/Form1099DivResponse.php index e00b86c..51587d0 100644 --- a/lib/Model/A1099/V2/Form1099DivResponse.php +++ b/lib/Model/A1099/V2/Form1099DivResponse.php @@ -74,7 +74,6 @@ class Form1099DivResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -91,17 +90,20 @@ class Form1099DivResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', @@ -120,7 +122,6 @@ class Form1099DivResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -137,17 +138,20 @@ class Form1099DivResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, @@ -185,7 +189,6 @@ public static function openAPIFormats() 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -202,17 +205,20 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', @@ -229,7 +235,6 @@ public static function openAPIFormats() 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -246,17 +251,20 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', @@ -273,7 +281,6 @@ public static function openAPIFormats() 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -290,17 +297,20 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', @@ -356,6 +366,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -376,6 +387,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -412,7 +424,6 @@ public function __construct(array $data = null) $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -429,17 +440,20 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; @@ -571,30 +585,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -990,25 +980,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1062,25 +1052,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1205,6 +1195,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1253,6 +1291,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * diff --git a/lib/Model/A1099/V2/Form1099KListItem.php b/lib/Model/A1099/V2/Form1099KListItem.php index badfd7f..91eeebe 100644 --- a/lib/Model/A1099/V2/Form1099KListItem.php +++ b/lib/Model/A1099/V2/Form1099KListItem.php @@ -105,15 +105,17 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -160,15 +162,17 @@ class Form1099KListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -234,15 +238,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -287,15 +293,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -340,15 +348,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -495,15 +505,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -538,13 +550,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1237,7 +1242,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1247,17 +1252,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099KListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1452,25 +1452,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1524,25 +1524,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1672,6 +1672,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099KListItemResponse.php b/lib/Model/A1099/V2/Form1099KListItemResponse.php index afdadb0..53884be 100644 --- a/lib/Model/A1099/V2/Form1099KListItemResponse.php +++ b/lib/Model/A1099/V2/Form1099KListItemResponse.php @@ -98,19 +98,22 @@ class Form1099KListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -118,8 +121,11 @@ class Form1099KListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -170,10 +176,13 @@ class Form1099KListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -181,8 +190,11 @@ class Form1099KListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -252,10 +264,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -263,8 +278,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -313,10 +331,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -324,8 +345,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -374,10 +398,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -385,8 +412,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -518,10 +548,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -529,8 +562,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -1292,7 +1328,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1302,7 +1338,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1390,7 +1426,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1400,7 +1436,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1438,7 +1474,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1448,7 +1484,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1486,7 +1522,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1496,7 +1532,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1507,6 +1543,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1603,6 +1663,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1772,25 +1880,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1819,6 +1927,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1099KRequest.php b/lib/Model/A1099/V2/Form1099KRequest.php index 99a9d37..a413729 100644 --- a/lib/Model/A1099/V2/Form1099KRequest.php +++ b/lib/Model/A1099/V2/Form1099KRequest.php @@ -71,8 +71,8 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'filer_type' => 'int', - 'payment_type' => 'int', + 'filer_type' => 'string', + 'payment_type' => 'string', 'payment_settlement_entity_name_phone_number' => 'string', 'gross_amount_payment_card' => 'float', 'card_not_present_transactions' => 'float', @@ -103,15 +103,17 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -124,8 +126,8 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'filer_type' => 'int32', - 'payment_type' => 'int32', + 'filer_type' => null, + 'payment_type' => null, 'payment_settlement_entity_name_phone_number' => null, 'gross_amount_payment_card' => 'double', 'card_not_present_transactions' => 'double', @@ -156,15 +158,17 @@ class Form1099KRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -228,15 +232,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -279,15 +285,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -330,15 +338,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -384,6 +394,11 @@ public function getModelName() return self::$openAPIModelName; } + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; const TYPE__1099_NEC = '1099-NEC'; const TYPE__1099_MISC = '1099-MISC'; const TYPE__1099_DIV = '1099-DIV'; @@ -391,11 +406,39 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; const TIN_TYPE_ATIN = 'ATIN'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + /** * Gets allowable values of the enum * @@ -411,6 +454,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -476,15 +520,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -498,6 +544,24 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -507,13 +571,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -562,7 +619,7 @@ public function valid() /** * Gets filer_type * - * @return int|null + * @return string|null */ public function getFilerType() { @@ -572,12 +629,22 @@ public function getFilerType() /** * Sets filer_type * - * @param int|null $filer_type Filer type (PSE or EPF) + * @param string|null $filer_type Filer type (PSE or EPF) * * @return self */ public function setFilerType($filer_type) { + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['filer_type'] = $filer_type; return $this; @@ -586,7 +653,7 @@ public function setFilerType($filer_type) /** * Gets payment_type * - * @return int|null + * @return string|null */ public function getPaymentType() { @@ -596,12 +663,22 @@ public function getPaymentType() /** * Sets payment_type * - * @param int|null $payment_type Payment type (payment card or third party network) + * @param string|null $payment_type Payment type (payment card or third party network) * * @return self */ public function setPaymentType($payment_type) { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } $this->container['payment_type'] = $payment_type; return $this; @@ -1148,7 +1225,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1158,17 +1235,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099KRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1363,25 +1435,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1435,25 +1507,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1583,6 +1655,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099KResponse.php b/lib/Model/A1099/V2/Form1099KResponse.php new file mode 100644 index 0000000..a5b87cb --- /dev/null +++ b/lib/Model/A1099/V2/Form1099KResponse.php @@ -0,0 +1,2200 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * Form1099KResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class Form1099KResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Form1099KResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'filer_type' => 'string', + 'payment_type' => 'string', + 'payment_settlement_entity_name_phone_number' => 'string', + 'gross_amount_payment_card' => 'float', + 'card_not_present_transactions' => 'float', + 'merchant_category_code' => 'string', + 'payment_transaction_number' => 'float', + 'federal_income_tax_withheld' => 'float', + 'january' => 'float', + 'february' => 'float', + 'march' => 'float', + 'april' => 'float', + 'may' => 'float', + 'june' => 'float', + 'july' => 'float', + 'august' => 'float', + 'sept' => 'float', + 'october' => 'float', + 'november' => 'float', + 'december' => 'float', + 'type' => 'string', + 'created_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', + 'tin_type' => 'string', + 'id' => 'string', + 'issuer_id' => 'string', + 'issuer_reference_id' => 'string', + 'issuer_tin' => 'string', + 'tax_year' => 'int', + 'reference_id' => 'string', + 'recipient_name' => 'string', + 'recipient_tin' => 'string', + 'recipient_second_name' => 'string', + 'address' => 'string', + 'address2' => 'string', + 'city' => 'string', + 'state' => 'string', + 'zip' => 'string', + 'email' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'non_us_province' => 'string', + 'country_code' => 'string', + 'federal_e_file' => 'bool', + 'postal_mail' => 'bool', + 'state_e_file' => 'bool', + 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', + 'address_verification' => 'bool', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'filer_type' => null, + 'payment_type' => null, + 'payment_settlement_entity_name_phone_number' => null, + 'gross_amount_payment_card' => 'double', + 'card_not_present_transactions' => 'double', + 'merchant_category_code' => null, + 'payment_transaction_number' => 'double', + 'federal_income_tax_withheld' => 'double', + 'january' => 'double', + 'february' => 'double', + 'march' => 'double', + 'april' => 'double', + 'may' => 'double', + 'june' => 'double', + 'july' => 'double', + 'august' => 'double', + 'sept' => 'double', + 'october' => 'double', + 'november' => 'double', + 'december' => 'double', + 'type' => null, + 'created_at' => 'date-time', + 'updated_at' => 'date-time', + 'state_and_local_withholding' => null, + 'tin_type' => null, + 'id' => null, + 'issuer_id' => null, + 'issuer_reference_id' => null, + 'issuer_tin' => null, + 'tax_year' => 'int32', + 'reference_id' => null, + 'recipient_name' => null, + 'recipient_tin' => null, + 'recipient_second_name' => null, + 'address' => null, + 'address2' => null, + 'city' => null, + 'state' => null, + 'zip' => null, + 'email' => null, + 'account_number' => null, + 'office_code' => null, + 'non_us_province' => null, + 'country_code' => null, + 'federal_e_file' => null, + 'postal_mail' => null, + 'state_e_file' => null, + 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, + 'address_verification' => null, + 'federal_efile_status' => null, + 'e_delivery_status' => null, + 'state_efile_status' => null, + 'postal_mail_status' => null, + 'tin_match_status' => null, + 'address_verification_status' => null, + 'validation_errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'filer_type' => 'filerType', + 'payment_type' => 'paymentType', + 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'grossAmountPaymentCard', + 'card_not_present_transactions' => 'cardNotPresentTransactions', + 'merchant_category_code' => 'merchantCategoryCode', + 'payment_transaction_number' => 'paymentTransactionNumber', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'january' => 'january', + 'february' => 'february', + 'march' => 'march', + 'april' => 'april', + 'may' => 'may', + 'june' => 'june', + 'july' => 'july', + 'august' => 'august', + 'sept' => 'sept', + 'october' => 'october', + 'november' => 'november', + 'december' => 'december', + 'type' => 'type', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'state_and_local_withholding' => 'stateAndLocalWithholding', + 'tin_type' => 'tinType', + 'id' => 'id', + 'issuer_id' => 'issuerId', + 'issuer_reference_id' => 'issuerReferenceId', + 'issuer_tin' => 'issuerTin', + 'tax_year' => 'taxYear', + 'reference_id' => 'referenceId', + 'recipient_name' => 'recipientName', + 'recipient_tin' => 'recipientTin', + 'recipient_second_name' => 'recipientSecondName', + 'address' => 'address', + 'address2' => 'address2', + 'city' => 'city', + 'state' => 'state', + 'zip' => 'zip', + 'email' => 'email', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'non_us_province' => 'nonUsProvince', + 'country_code' => 'countryCode', + 'federal_e_file' => 'federalEFile', + 'postal_mail' => 'postalMail', + 'state_e_file' => 'stateEFile', + 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', + 'address_verification' => 'addressVerification', + 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', + 'state_efile_status' => 'stateEfileStatus', + 'postal_mail_status' => 'postalMailStatus', + 'tin_match_status' => 'tinMatchStatus', + 'address_verification_status' => 'addressVerificationStatus', + 'validation_errors' => 'validationErrors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'filer_type' => 'setFilerType', + 'payment_type' => 'setPaymentType', + 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'setGrossAmountPaymentCard', + 'card_not_present_transactions' => 'setCardNotPresentTransactions', + 'merchant_category_code' => 'setMerchantCategoryCode', + 'payment_transaction_number' => 'setPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'january' => 'setJanuary', + 'february' => 'setFebruary', + 'march' => 'setMarch', + 'april' => 'setApril', + 'may' => 'setMay', + 'june' => 'setJune', + 'july' => 'setJuly', + 'august' => 'setAugust', + 'sept' => 'setSept', + 'october' => 'setOctober', + 'november' => 'setNovember', + 'december' => 'setDecember', + 'type' => 'setType', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'state_and_local_withholding' => 'setStateAndLocalWithholding', + 'tin_type' => 'setTinType', + 'id' => 'setId', + 'issuer_id' => 'setIssuerId', + 'issuer_reference_id' => 'setIssuerReferenceId', + 'issuer_tin' => 'setIssuerTin', + 'tax_year' => 'setTaxYear', + 'reference_id' => 'setReferenceId', + 'recipient_name' => 'setRecipientName', + 'recipient_tin' => 'setRecipientTin', + 'recipient_second_name' => 'setRecipientSecondName', + 'address' => 'setAddress', + 'address2' => 'setAddress2', + 'city' => 'setCity', + 'state' => 'setState', + 'zip' => 'setZip', + 'email' => 'setEmail', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'non_us_province' => 'setNonUsProvince', + 'country_code' => 'setCountryCode', + 'federal_e_file' => 'setFederalEFile', + 'postal_mail' => 'setPostalMail', + 'state_e_file' => 'setStateEFile', + 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', + 'address_verification' => 'setAddressVerification', + 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', + 'state_efile_status' => 'setStateEfileStatus', + 'postal_mail_status' => 'setPostalMailStatus', + 'tin_match_status' => 'setTinMatchStatus', + 'address_verification_status' => 'setAddressVerificationStatus', + 'validation_errors' => 'setValidationErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'filer_type' => 'getFilerType', + 'payment_type' => 'getPaymentType', + 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'getGrossAmountPaymentCard', + 'card_not_present_transactions' => 'getCardNotPresentTransactions', + 'merchant_category_code' => 'getMerchantCategoryCode', + 'payment_transaction_number' => 'getPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'january' => 'getJanuary', + 'february' => 'getFebruary', + 'march' => 'getMarch', + 'april' => 'getApril', + 'may' => 'getMay', + 'june' => 'getJune', + 'july' => 'getJuly', + 'august' => 'getAugust', + 'sept' => 'getSept', + 'october' => 'getOctober', + 'november' => 'getNovember', + 'december' => 'getDecember', + 'type' => 'getType', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'state_and_local_withholding' => 'getStateAndLocalWithholding', + 'tin_type' => 'getTinType', + 'id' => 'getId', + 'issuer_id' => 'getIssuerId', + 'issuer_reference_id' => 'getIssuerReferenceId', + 'issuer_tin' => 'getIssuerTin', + 'tax_year' => 'getTaxYear', + 'reference_id' => 'getReferenceId', + 'recipient_name' => 'getRecipientName', + 'recipient_tin' => 'getRecipientTin', + 'recipient_second_name' => 'getRecipientSecondName', + 'address' => 'getAddress', + 'address2' => 'getAddress2', + 'city' => 'getCity', + 'state' => 'getState', + 'zip' => 'getZip', + 'email' => 'getEmail', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'non_us_province' => 'getNonUsProvince', + 'country_code' => 'getCountryCode', + 'federal_e_file' => 'getFederalEFile', + 'postal_mail' => 'getPostalMail', + 'state_e_file' => 'getStateEFile', + 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', + 'address_verification' => 'getAddressVerification', + 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', + 'state_efile_status' => 'getStateEfileStatus', + 'postal_mail_status' => 'getPostalMailStatus', + 'tin_match_status' => 'getTinMatchStatus', + 'address_verification_status' => 'getAddressVerificationStatus', + 'validation_errors' => 'getValidationErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; + const TYPE__1099_NEC = '1099-NEC'; + const TYPE__1099_MISC = '1099-MISC'; + const TYPE__1099_DIV = '1099-DIV'; + const TYPE__1099_R = '1099-R'; + const TYPE__1099_K = '1099-K'; + const TYPE__1095_B = '1095-B'; + const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; + const TIN_TYPE_EIN = 'EIN'; + const TIN_TYPE_SSN = 'SSN'; + const TIN_TYPE_ITIN = 'ITIN'; + const TIN_TYPE_ATIN = 'ATIN'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE__1099_NEC, + self::TYPE__1099_MISC, + self::TYPE__1099_DIV, + self::TYPE__1099_R, + self::TYPE__1099_K, + self::TYPE__1095_B, + self::TYPE__1042_S, + self::TYPE__1095_C, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTinTypeAllowableValues() + { + return [ + self::TIN_TYPE_EIN, + self::TIN_TYPE_SSN, + self::TIN_TYPE_ITIN, + self::TIN_TYPE_ATIN, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['filer_type'] = $data['filer_type'] ?? null; + $this->container['payment_type'] = $data['payment_type'] ?? null; + $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; + $this->container['gross_amount_payment_card'] = $data['gross_amount_payment_card'] ?? null; + $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; + $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; + $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['january'] = $data['january'] ?? null; + $this->container['february'] = $data['february'] ?? null; + $this->container['march'] = $data['march'] ?? null; + $this->container['april'] = $data['april'] ?? null; + $this->container['may'] = $data['may'] ?? null; + $this->container['june'] = $data['june'] ?? null; + $this->container['july'] = $data['july'] ?? null; + $this->container['august'] = $data['august'] ?? null; + $this->container['sept'] = $data['sept'] ?? null; + $this->container['october'] = $data['october'] ?? null; + $this->container['november'] = $data['november'] ?? null; + $this->container['december'] = $data['december'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; + $this->container['tin_type'] = $data['tin_type'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['issuer_id'] = $data['issuer_id'] ?? null; + $this->container['issuer_reference_id'] = $data['issuer_reference_id'] ?? null; + $this->container['issuer_tin'] = $data['issuer_tin'] ?? null; + $this->container['tax_year'] = $data['tax_year'] ?? null; + $this->container['reference_id'] = $data['reference_id'] ?? null; + $this->container['recipient_name'] = $data['recipient_name'] ?? null; + $this->container['recipient_tin'] = $data['recipient_tin'] ?? null; + $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['address2'] = $data['address2'] ?? null; + $this->container['city'] = $data['city'] ?? null; + $this->container['state'] = $data['state'] ?? null; + $this->container['zip'] = $data['zip'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; + $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; + $this->container['postal_mail'] = $data['postal_mail'] ?? null; + $this->container['state_e_file'] = $data['state_e_file'] ?? null; + $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['address_verification'] = $data['address_verification'] ?? null; + $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; + $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; + $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; + $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['validation_errors'] = $data['validation_errors'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'tin_type', must be one of '%s'", + $this->container['tin_type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets filer_type + * + * @return string|null + */ + public function getFilerType() + { + return $this->container['filer_type']; + } + + /** + * Sets filer_type + * + * @param string|null $filer_type filer_type + * + * @return self + */ + public function setFilerType($filer_type) + { + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['filer_type'] = $filer_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string|null + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string|null $payment_type payment_type + * + * @return self + */ + public function setPaymentType($payment_type) + { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets payment_settlement_entity_name_phone_number + * + * @return string|null + */ + public function getPaymentSettlementEntityNamePhoneNumber() + { + return $this->container['payment_settlement_entity_name_phone_number']; + } + + /** + * Sets payment_settlement_entity_name_phone_number + * + * @param string|null $payment_settlement_entity_name_phone_number payment_settlement_entity_name_phone_number + * + * @return self + */ + public function setPaymentSettlementEntityNamePhoneNumber($payment_settlement_entity_name_phone_number) + { + $this->container['payment_settlement_entity_name_phone_number'] = $payment_settlement_entity_name_phone_number; + + return $this; + } + + /** + * Gets gross_amount_payment_card + * + * @return float|null + */ + public function getGrossAmountPaymentCard() + { + return $this->container['gross_amount_payment_card']; + } + + /** + * Sets gross_amount_payment_card + * + * @param float|null $gross_amount_payment_card gross_amount_payment_card + * + * @return self + */ + public function setGrossAmountPaymentCard($gross_amount_payment_card) + { + $this->container['gross_amount_payment_card'] = $gross_amount_payment_card; + + return $this; + } + + /** + * Gets card_not_present_transactions + * + * @return float|null + */ + public function getCardNotPresentTransactions() + { + return $this->container['card_not_present_transactions']; + } + + /** + * Sets card_not_present_transactions + * + * @param float|null $card_not_present_transactions card_not_present_transactions + * + * @return self + */ + public function setCardNotPresentTransactions($card_not_present_transactions) + { + $this->container['card_not_present_transactions'] = $card_not_present_transactions; + + return $this; + } + + /** + * Gets merchant_category_code + * + * @return string|null + */ + public function getMerchantCategoryCode() + { + return $this->container['merchant_category_code']; + } + + /** + * Sets merchant_category_code + * + * @param string|null $merchant_category_code merchant_category_code + * + * @return self + */ + public function setMerchantCategoryCode($merchant_category_code) + { + $this->container['merchant_category_code'] = $merchant_category_code; + + return $this; + } + + /** + * Gets payment_transaction_number + * + * @return float|null + */ + public function getPaymentTransactionNumber() + { + return $this->container['payment_transaction_number']; + } + + /** + * Sets payment_transaction_number + * + * @param float|null $payment_transaction_number payment_transaction_number + * + * @return self + */ + public function setPaymentTransactionNumber($payment_transaction_number) + { + $this->container['payment_transaction_number'] = $payment_transaction_number; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld federal_income_tax_withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets january + * + * @return float|null + */ + public function getJanuary() + { + return $this->container['january']; + } + + /** + * Sets january + * + * @param float|null $january january + * + * @return self + */ + public function setJanuary($january) + { + $this->container['january'] = $january; + + return $this; + } + + /** + * Gets february + * + * @return float|null + */ + public function getFebruary() + { + return $this->container['february']; + } + + /** + * Sets february + * + * @param float|null $february february + * + * @return self + */ + public function setFebruary($february) + { + $this->container['february'] = $february; + + return $this; + } + + /** + * Gets march + * + * @return float|null + */ + public function getMarch() + { + return $this->container['march']; + } + + /** + * Sets march + * + * @param float|null $march march + * + * @return self + */ + public function setMarch($march) + { + $this->container['march'] = $march; + + return $this; + } + + /** + * Gets april + * + * @return float|null + */ + public function getApril() + { + return $this->container['april']; + } + + /** + * Sets april + * + * @param float|null $april april + * + * @return self + */ + public function setApril($april) + { + $this->container['april'] = $april; + + return $this; + } + + /** + * Gets may + * + * @return float|null + */ + public function getMay() + { + return $this->container['may']; + } + + /** + * Sets may + * + * @param float|null $may may + * + * @return self + */ + public function setMay($may) + { + $this->container['may'] = $may; + + return $this; + } + + /** + * Gets june + * + * @return float|null + */ + public function getJune() + { + return $this->container['june']; + } + + /** + * Sets june + * + * @param float|null $june june + * + * @return self + */ + public function setJune($june) + { + $this->container['june'] = $june; + + return $this; + } + + /** + * Gets july + * + * @return float|null + */ + public function getJuly() + { + return $this->container['july']; + } + + /** + * Sets july + * + * @param float|null $july july + * + * @return self + */ + public function setJuly($july) + { + $this->container['july'] = $july; + + return $this; + } + + /** + * Gets august + * + * @return float|null + */ + public function getAugust() + { + return $this->container['august']; + } + + /** + * Sets august + * + * @param float|null $august august + * + * @return self + */ + public function setAugust($august) + { + $this->container['august'] = $august; + + return $this; + } + + /** + * Gets sept + * + * @return float|null + */ + public function getSept() + { + return $this->container['sept']; + } + + /** + * Sets sept + * + * @param float|null $sept sept + * + * @return self + */ + public function setSept($sept) + { + $this->container['sept'] = $sept; + + return $this; + } + + /** + * Gets october + * + * @return float|null + */ + public function getOctober() + { + return $this->container['october']; + } + + /** + * Sets october + * + * @param float|null $october october + * + * @return self + */ + public function setOctober($october) + { + $this->container['october'] = $october; + + return $this; + } + + /** + * Gets november + * + * @return float|null + */ + public function getNovember() + { + return $this->container['november']; + } + + /** + * Sets november + * + * @param float|null $november november + * + * @return self + */ + public function setNovember($november) + { + $this->container['november'] = $november; + + return $this; + } + + /** + * Gets december + * + * @return float|null + */ + public function getDecember() + { + return $this->container['december']; + } + + /** + * Sets december + * + * @param float|null $december december + * + * @return self + */ + public function setDecember($december) + { + $this->container['december'] = $december; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse|null $state_and_local_withholding state_and_local_withholding + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; + + return $this; + } + + /** + * Gets tin_type + * + * @return string|null + */ + public function getTinType() + { + return $this->container['tin_type']; + } + + /** + * Sets tin_type + * + * @param string|null $tin_type tin_type + * + * @return self + */ + public function setTinType($tin_type) + { + $allowedValues = $this->getTinTypeAllowableValues(); + if (!is_null($tin_type) && !in_array($tin_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'tin_type', must be one of '%s'", + $tin_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['tin_type'] = $tin_type; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets issuer_id + * + * @return string|null + */ + public function getIssuerId() + { + return $this->container['issuer_id']; + } + + /** + * Sets issuer_id + * + * @param string|null $issuer_id issuer_id + * + * @return self + */ + public function setIssuerId($issuer_id) + { + $this->container['issuer_id'] = $issuer_id; + + return $this; + } + + /** + * Gets issuer_reference_id + * + * @return string|null + */ + public function getIssuerReferenceId() + { + return $this->container['issuer_reference_id']; + } + + /** + * Sets issuer_reference_id + * + * @param string|null $issuer_reference_id issuer_reference_id + * + * @return self + */ + public function setIssuerReferenceId($issuer_reference_id) + { + $this->container['issuer_reference_id'] = $issuer_reference_id; + + return $this; + } + + /** + * Gets issuer_tin + * + * @return string|null + */ + public function getIssuerTin() + { + return $this->container['issuer_tin']; + } + + /** + * Sets issuer_tin + * + * @param string|null $issuer_tin issuer_tin + * + * @return self + */ + public function setIssuerTin($issuer_tin) + { + $this->container['issuer_tin'] = $issuer_tin; + + return $this; + } + + /** + * Gets tax_year + * + * @return int|null + */ + public function getTaxYear() + { + return $this->container['tax_year']; + } + + /** + * Sets tax_year + * + * @param int|null $tax_year tax_year + * + * @return self + */ + public function setTaxYear($tax_year) + { + $this->container['tax_year'] = $tax_year; + + return $this; + } + + /** + * Gets reference_id + * + * @return string|null + */ + public function getReferenceId() + { + return $this->container['reference_id']; + } + + /** + * Sets reference_id + * + * @param string|null $reference_id reference_id + * + * @return self + */ + public function setReferenceId($reference_id) + { + $this->container['reference_id'] = $reference_id; + + return $this; + } + + /** + * Gets recipient_name + * + * @return string|null + */ + public function getRecipientName() + { + return $this->container['recipient_name']; + } + + /** + * Sets recipient_name + * + * @param string|null $recipient_name recipient_name + * + * @return self + */ + public function setRecipientName($recipient_name) + { + $this->container['recipient_name'] = $recipient_name; + + return $this; + } + + /** + * Gets recipient_tin + * + * @return string|null + */ + public function getRecipientTin() + { + return $this->container['recipient_tin']; + } + + /** + * Sets recipient_tin + * + * @param string|null $recipient_tin recipient_tin + * + * @return self + */ + public function setRecipientTin($recipient_tin) + { + $this->container['recipient_tin'] = $recipient_tin; + + return $this; + } + + /** + * Gets recipient_second_name + * + * @return string|null + */ + public function getRecipientSecondName() + { + return $this->container['recipient_second_name']; + } + + /** + * Sets recipient_second_name + * + * @param string|null $recipient_second_name recipient_second_name + * + * @return self + */ + public function setRecipientSecondName($recipient_second_name) + { + $this->container['recipient_second_name'] = $recipient_second_name; + + return $this; + } + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address address + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets address2 + * + * @return string|null + */ + public function getAddress2() + { + return $this->container['address2']; + } + + /** + * Sets address2 + * + * @param string|null $address2 address2 + * + * @return self + */ + public function setAddress2($address2) + { + $this->container['address2'] = $address2; + + return $this; + } + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city city + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets state + * + * @return string|null + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string|null $state state + * + * @return self + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets zip + * + * @return string|null + */ + public function getZip() + { + return $this->container['zip']; + } + + /** + * Sets zip + * + * @param string|null $zip zip + * + * @return self + */ + public function setZip($zip) + { + $this->container['zip'] = $zip; + + return $this; + } + + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email email + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number account_number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code office_code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets non_us_province + * + * @return string|null + */ + public function getNonUsProvince() + { + return $this->container['non_us_province']; + } + + /** + * Sets non_us_province + * + * @param string|null $non_us_province non_us_province + * + * @return self + */ + public function setNonUsProvince($non_us_province) + { + $this->container['non_us_province'] = $non_us_province; + + return $this; + } + + /** + * Gets country_code + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['country_code']; + } + + /** + * Sets country_code + * + * @param string|null $country_code country_code + * + * @return self + */ + public function setCountryCode($country_code) + { + $this->container['country_code'] = $country_code; + + return $this; + } + + /** + * Gets federal_e_file + * + * @return bool|null + */ + public function getFederalEFile() + { + return $this->container['federal_e_file']; + } + + /** + * Sets federal_e_file + * + * @param bool|null $federal_e_file federal_e_file + * + * @return self + */ + public function setFederalEFile($federal_e_file) + { + $this->container['federal_e_file'] = $federal_e_file; + + return $this; + } + + /** + * Gets postal_mail + * + * @return bool|null + */ + public function getPostalMail() + { + return $this->container['postal_mail']; + } + + /** + * Sets postal_mail + * + * @param bool|null $postal_mail postal_mail + * + * @return self + */ + public function setPostalMail($postal_mail) + { + $this->container['postal_mail'] = $postal_mail; + + return $this; + } + + /** + * Gets state_e_file + * + * @return bool|null + */ + public function getStateEFile() + { + return $this->container['state_e_file']; + } + + /** + * Sets state_e_file + * + * @param bool|null $state_e_file state_e_file + * + * @return self + */ + public function setStateEFile($state_e_file) + { + $this->container['state_e_file'] = $state_e_file; + + return $this; + } + + /** + * Gets tin_match + * + * @return bool|null + */ + public function getTinMatch() + { + return $this->container['tin_match']; + } + + /** + * Sets tin_match + * + * @param bool|null $tin_match tin_match + * + * @return self + */ + public function setTinMatch($tin_match) + { + $this->container['tin_match'] = $tin_match; + + return $this; + } + + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + + /** + * Gets address_verification + * + * @return bool|null + */ + public function getAddressVerification() + { + return $this->container['address_verification']; + } + + /** + * Sets address_verification + * + * @param bool|null $address_verification address_verification + * + * @return self + */ + public function setAddressVerification($address_verification) + { + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets federal_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getFederalEfileStatus() + { + return $this->container['federal_efile_status']; + } + + /** + * Sets federal_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status federal_efile_status + * + * @return self + */ + public function setFederalEfileStatus($federal_efile_status) + { + $this->container['federal_efile_status'] = $federal_efile_status; + + return $this; + } + + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + + /** + * Gets state_efile_status + * + * @return \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]|null + */ + public function getStateEfileStatus() + { + return $this->container['state_efile_status']; + } + + /** + * Sets state_efile_status + * + * @param \Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]|null $state_efile_status state_efile_status + * + * @return self + */ + public function setStateEfileStatus($state_efile_status) + { + + + $this->container['state_efile_status'] = $state_efile_status; + + return $this; + } + + /** + * Gets postal_mail_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getPostalMailStatus() + { + return $this->container['postal_mail_status']; + } + + /** + * Sets postal_mail_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status postal_mail_status + * + * @return self + */ + public function setPostalMailStatus($postal_mail_status) + { + $this->container['postal_mail_status'] = $postal_mail_status; + + return $this; + } + + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status tin_match_status + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + + /** + * Gets address_verification_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getAddressVerificationStatus() + { + return $this->container['address_verification_status']; + } + + /** + * Sets address_verification_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status address_verification_status + * + * @return self + */ + public function setAddressVerificationStatus($address_verification_status) + { + $this->container['address_verification_status'] = $address_verification_status; + + return $this; + } + + /** + * Gets validation_errors + * + * @return \Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]|null + */ + public function getValidationErrors() + { + return $this->container['validation_errors']; + } + + /** + * Sets validation_errors + * + * @param \Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]|null $validation_errors validation_errors + * + * @return self + */ + public function setValidationErrors($validation_errors) + { + + + $this->container['validation_errors'] = $validation_errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Form1099ListResponseValueInner.php b/lib/Model/A1099/V2/Form1099ListResponseValueInner.php index e3dc97c..d7d7580 100644 --- a/lib/Model/A1099/V2/Form1099ListResponseValueInner.php +++ b/lib/Model/A1099/V2/Form1099ListResponseValueInner.php @@ -78,19 +78,22 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -98,14 +101,16 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'unique_form_id' => 'string', - 'no_tin' => 'bool', 'recipient_date_of_birth' => '\DateTime', 'recipient_giin' => 'string', 'recipient_foreign_tin' => 'string', @@ -130,6 +135,24 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'intermediary_or_flow_through' => '\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse', 'origin_of_health_coverage_code' => 'string', 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]', + 'total_ordinary_dividends' => 'string', + 'qualified_dividends' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', + 'section1202_gain' => 'string', + 'collectibles_gain' => 'string', + 'section897_ordinary_dividends' => 'string', + 'section897_capital_gain' => 'string', + 'nondividend_distributions' => 'string', + 'federal_income_tax_withheld' => 'float', + 'section199_a_dividends' => 'string', + 'investment_expenses' => 'string', + 'foreign_tax_paid' => 'string', + 'foreign_country_or_us_possession' => 'string', + 'cash_liquidation_distributions' => 'string', + 'noncash_liquidation_distributions' => 'string', + 'exempt_interest_dividends' => 'string', + 'specified_private_activity_bond_interest_dividends' => 'string', 'filer_type' => 'string', 'payment_type' => 'string', 'payment_settlement_entity_name_phone_number' => 'string', @@ -137,7 +160,6 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'card_not_present_transactions' => 'float', 'merchant_category_code' => 'string', 'payment_transaction_number' => 'float', - 'federal_income_tax_withheld' => 'float', 'january' => 'float', 'february' => 'float', 'march' => 'float', @@ -155,14 +177,15 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_and_health_care' => 'float', + 'medical_and_health_care_payments' => 'float', 'substitute_payments' => 'float', 'direct_sales_indicator' => 'bool', 'crop_insurance_proceeds' => 'float', - 'excess_golden_parachute' => 'float', - 'gross_amount_paid_attorney' => 'float', + 'excess_golden_parachute_payments' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', 'section409_a_deferrals' => 'float', - 'section409_a_income' => 'float', + 'nonqualified_deferred_compensation' => 'float', 'nonemployee_compensation' => 'float', 'gross_distributions' => 'float', 'taxable_amount' => 'float', @@ -209,10 +232,13 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -220,14 +246,16 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', 'state_and_local_withholding' => null, 'unique_form_id' => null, - 'no_tin' => null, 'recipient_date_of_birth' => 'date-time', 'recipient_giin' => null, 'recipient_foreign_tin' => null, @@ -252,6 +280,24 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'intermediary_or_flow_through' => null, 'origin_of_health_coverage_code' => null, 'covered_individuals' => null, + 'total_ordinary_dividends' => null, + 'qualified_dividends' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, + 'section1202_gain' => null, + 'collectibles_gain' => null, + 'section897_ordinary_dividends' => null, + 'section897_capital_gain' => null, + 'nondividend_distributions' => null, + 'federal_income_tax_withheld' => 'double', + 'section199_a_dividends' => null, + 'investment_expenses' => null, + 'foreign_tax_paid' => null, + 'foreign_country_or_us_possession' => null, + 'cash_liquidation_distributions' => null, + 'noncash_liquidation_distributions' => null, + 'exempt_interest_dividends' => null, + 'specified_private_activity_bond_interest_dividends' => null, 'filer_type' => null, 'payment_type' => null, 'payment_settlement_entity_name_phone_number' => null, @@ -259,7 +305,6 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'card_not_present_transactions' => 'double', 'merchant_category_code' => null, 'payment_transaction_number' => 'double', - 'federal_income_tax_withheld' => 'double', 'january' => 'double', 'february' => 'double', 'march' => 'double', @@ -277,14 +322,15 @@ class Form1099ListResponseValueInner implements ModelInterface, ArrayAccess, \Js 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_and_health_care' => 'double', + 'medical_and_health_care_payments' => 'double', 'substitute_payments' => 'double', 'direct_sales_indicator' => null, 'crop_insurance_proceeds' => 'double', - 'excess_golden_parachute' => 'double', - 'gross_amount_paid_attorney' => 'double', + 'excess_golden_parachute_payments' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', 'section409_a_deferrals' => 'double', - 'section409_a_income' => 'double', + 'nonqualified_deferred_compensation' => 'double', 'nonemployee_compensation' => 'double', 'gross_distributions' => 'double', 'taxable_amount' => 'double', @@ -350,10 +396,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -361,14 +410,16 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'unique_form_id' => 'uniqueFormId', - 'no_tin' => 'noTin', 'recipient_date_of_birth' => 'recipientDateOfBirth', 'recipient_giin' => 'recipientGiin', 'recipient_foreign_tin' => 'recipientForeignTin', @@ -393,6 +444,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'intermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', 'covered_individuals' => 'coveredIndividuals', + 'total_ordinary_dividends' => 'totalOrdinaryDividends', + 'qualified_dividends' => 'qualifiedDividends', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', + 'section1202_gain' => 'section1202Gain', + 'collectibles_gain' => 'collectiblesGain', + 'section897_ordinary_dividends' => 'section897OrdinaryDividends', + 'section897_capital_gain' => 'section897CapitalGain', + 'nondividend_distributions' => 'nondividendDistributions', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'section199_a_dividends' => 'section199ADividends', + 'investment_expenses' => 'investmentExpenses', + 'foreign_tax_paid' => 'foreignTaxPaid', + 'foreign_country_or_us_possession' => 'foreignCountryOrUSPossession', + 'cash_liquidation_distributions' => 'cashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'noncashLiquidationDistributions', + 'exempt_interest_dividends' => 'exemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'filer_type' => 'filerType', 'payment_type' => 'paymentType', 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', @@ -400,7 +469,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'cardNotPresentTransactions', 'merchant_category_code' => 'merchantCategoryCode', 'payment_transaction_number' => 'paymentTransactionNumber', - 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', 'january' => 'january', 'february' => 'february', 'march' => 'march', @@ -418,14 +486,15 @@ public static function openAPIFormats() 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_and_health_care' => 'medicalAndHealthCare', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'substitute_payments' => 'substitutePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', - 'excess_golden_parachute' => 'excessGoldenParachute', - 'gross_amount_paid_attorney' => 'grossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', 'section409_a_deferrals' => 'section409ADeferrals', - 'section409_a_income' => 'section409AIncome', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'nonemployeeCompensation', 'gross_distributions' => 'grossDistributions', 'taxable_amount' => 'taxableAmount', @@ -470,10 +539,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -481,14 +553,16 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'unique_form_id' => 'setUniqueFormId', - 'no_tin' => 'setNoTin', 'recipient_date_of_birth' => 'setRecipientDateOfBirth', 'recipient_giin' => 'setRecipientGiin', 'recipient_foreign_tin' => 'setRecipientForeignTin', @@ -513,6 +587,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'setIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', 'covered_individuals' => 'setCoveredIndividuals', + 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', + 'qualified_dividends' => 'setQualifiedDividends', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', + 'section1202_gain' => 'setSection1202Gain', + 'collectibles_gain' => 'setCollectiblesGain', + 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', + 'section897_capital_gain' => 'setSection897CapitalGain', + 'nondividend_distributions' => 'setNondividendDistributions', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'setSection199ADividends', + 'investment_expenses' => 'setInvestmentExpenses', + 'foreign_tax_paid' => 'setForeignTaxPaid', + 'foreign_country_or_us_possession' => 'setForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'setCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'setNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'setExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'setFilerType', 'payment_type' => 'setPaymentType', 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', @@ -520,7 +612,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'setCardNotPresentTransactions', 'merchant_category_code' => 'setMerchantCategoryCode', 'payment_transaction_number' => 'setPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', 'january' => 'setJanuary', 'february' => 'setFebruary', 'march' => 'setMarch', @@ -538,14 +629,15 @@ public static function openAPIFormats() 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_and_health_care' => 'setMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'substitute_payments' => 'setSubstitutePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', - 'excess_golden_parachute' => 'setExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'setGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', 'section409_a_deferrals' => 'setSection409ADeferrals', - 'section409_a_income' => 'setSection409AIncome', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'gross_distributions' => 'setGrossDistributions', 'taxable_amount' => 'setTaxableAmount', @@ -590,10 +682,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -601,14 +696,16 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'unique_form_id' => 'getUniqueFormId', - 'no_tin' => 'getNoTin', 'recipient_date_of_birth' => 'getRecipientDateOfBirth', 'recipient_giin' => 'getRecipientGiin', 'recipient_foreign_tin' => 'getRecipientForeignTin', @@ -633,6 +730,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'getIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', 'covered_individuals' => 'getCoveredIndividuals', + 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', + 'qualified_dividends' => 'getQualifiedDividends', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', + 'section1202_gain' => 'getSection1202Gain', + 'collectibles_gain' => 'getCollectiblesGain', + 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', + 'section897_capital_gain' => 'getSection897CapitalGain', + 'nondividend_distributions' => 'getNondividendDistributions', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'getSection199ADividends', + 'investment_expenses' => 'getInvestmentExpenses', + 'foreign_tax_paid' => 'getForeignTaxPaid', + 'foreign_country_or_us_possession' => 'getForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'getCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'getNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'getExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'getFilerType', 'payment_type' => 'getPaymentType', 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', @@ -640,7 +755,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'getCardNotPresentTransactions', 'merchant_category_code' => 'getMerchantCategoryCode', 'payment_transaction_number' => 'getPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', 'january' => 'getJanuary', 'february' => 'getFebruary', 'march' => 'getMarch', @@ -658,14 +772,15 @@ public static function openAPIFormats() 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_and_health_care' => 'getMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'substitute_payments' => 'getSubstitutePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', - 'excess_golden_parachute' => 'getExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'getGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', 'section409_a_deferrals' => 'getSection409ADeferrals', - 'section409_a_income' => 'getSection409AIncome', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'gross_distributions' => 'getGrossDistributions', 'taxable_amount' => 'getTaxableAmount', @@ -793,10 +908,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -804,14 +922,16 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['unique_form_id'] = $data['unique_form_id'] ?? null; - $this->container['no_tin'] = $data['no_tin'] ?? null; $this->container['recipient_date_of_birth'] = $data['recipient_date_of_birth'] ?? null; $this->container['recipient_giin'] = $data['recipient_giin'] ?? null; $this->container['recipient_foreign_tin'] = $data['recipient_foreign_tin'] ?? null; @@ -836,6 +956,24 @@ public function __construct(array $data = null) $this->container['intermediary_or_flow_through'] = $data['intermediary_or_flow_through'] ?? null; $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; + $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; + $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; + $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; + $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; + $this->container['section897_capital_gain'] = $data['section897_capital_gain'] ?? null; + $this->container['nondividend_distributions'] = $data['nondividend_distributions'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['section199_a_dividends'] = $data['section199_a_dividends'] ?? null; + $this->container['investment_expenses'] = $data['investment_expenses'] ?? null; + $this->container['foreign_tax_paid'] = $data['foreign_tax_paid'] ?? null; + $this->container['foreign_country_or_us_possession'] = $data['foreign_country_or_us_possession'] ?? null; + $this->container['cash_liquidation_distributions'] = $data['cash_liquidation_distributions'] ?? null; + $this->container['noncash_liquidation_distributions'] = $data['noncash_liquidation_distributions'] ?? null; + $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; + $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['filer_type'] = $data['filer_type'] ?? null; $this->container['payment_type'] = $data['payment_type'] ?? null; $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; @@ -843,7 +981,6 @@ public function __construct(array $data = null) $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; - $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; $this->container['january'] = $data['january'] ?? null; $this->container['february'] = $data['february'] ?? null; $this->container['march'] = $data['march'] ?? null; @@ -861,14 +998,15 @@ public function __construct(array $data = null) $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_and_health_care'] = $data['medical_and_health_care'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; - $this->container['excess_golden_parachute'] = $data['excess_golden_parachute'] ?? null; - $this->container['gross_amount_paid_attorney'] = $data['gross_amount_paid_attorney'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; - $this->container['section409_a_income'] = $data['section409_a_income'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['gross_distributions'] = $data['gross_distributions'] ?? null; $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; @@ -1146,7 +1284,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1156,7 +1294,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1244,7 +1382,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1254,7 +1392,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1292,7 +1430,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1302,7 +1440,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1340,7 +1478,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1350,7 +1488,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1361,6 +1499,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1457,6 +1619,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1626,25 +1836,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1673,6 +1883,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * @@ -1795,30 +2077,6 @@ public function setUniqueFormId($unique_form_id) return $this; } - /** - * Gets no_tin - * - * @return bool|null - */ - public function getNoTin() - { - return $this->container['no_tin']; - } - - /** - * Sets no_tin - * - * @param bool|null $no_tin No TIN indicator - * - * @return self - */ - public function setNoTin($no_tin) - { - $this->container['no_tin'] = $no_tin; - - return $this; - } - /** * Gets recipient_date_of_birth * @@ -2397,6 +2655,438 @@ public function setCoveredIndividuals($covered_individuals) return $this; } + /** + * Gets total_ordinary_dividends + * + * @return string|null + */ + public function getTotalOrdinaryDividends() + { + return $this->container['total_ordinary_dividends']; + } + + /** + * Sets total_ordinary_dividends + * + * @param string|null $total_ordinary_dividends Total ordinary dividends + * + * @return self + */ + public function setTotalOrdinaryDividends($total_ordinary_dividends) + { + $this->container['total_ordinary_dividends'] = $total_ordinary_dividends; + + return $this; + } + + /** + * Gets qualified_dividends + * + * @return string|null + */ + public function getQualifiedDividends() + { + return $this->container['qualified_dividends']; + } + + /** + * Sets qualified_dividends + * + * @param string|null $qualified_dividends Qualified dividends + * + * @return self + */ + public function setQualifiedDividends($qualified_dividends) + { + $this->container['qualified_dividends'] = $qualified_dividends; + + return $this; + } + + /** + * Gets total_capital_gain_distributions + * + * @return string|null + */ + public function getTotalCapitalGainDistributions() + { + return $this->container['total_capital_gain_distributions']; + } + + /** + * Sets total_capital_gain_distributions + * + * @param string|null $total_capital_gain_distributions Total capital gain distributions + * + * @return self + */ + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) + { + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; + + return $this; + } + + /** + * Gets unrecaptured_section1250_gain + * + * @return string|null + */ + public function getUnrecapturedSection1250Gain() + { + return $this->container['unrecaptured_section1250_gain']; + } + + /** + * Sets unrecaptured_section1250_gain + * + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain + * + * @return self + */ + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) + { + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; + + return $this; + } + + /** + * Gets section1202_gain + * + * @return string|null + */ + public function getSection1202Gain() + { + return $this->container['section1202_gain']; + } + + /** + * Sets section1202_gain + * + * @param string|null $section1202_gain Section 1202 gain + * + * @return self + */ + public function setSection1202Gain($section1202_gain) + { + $this->container['section1202_gain'] = $section1202_gain; + + return $this; + } + + /** + * Gets collectibles_gain + * + * @return string|null + */ + public function getCollectiblesGain() + { + return $this->container['collectibles_gain']; + } + + /** + * Sets collectibles_gain + * + * @param string|null $collectibles_gain Collectibles (28%) gain + * + * @return self + */ + public function setCollectiblesGain($collectibles_gain) + { + $this->container['collectibles_gain'] = $collectibles_gain; + + return $this; + } + + /** + * Gets section897_ordinary_dividends + * + * @return string|null + */ + public function getSection897OrdinaryDividends() + { + return $this->container['section897_ordinary_dividends']; + } + + /** + * Sets section897_ordinary_dividends + * + * @param string|null $section897_ordinary_dividends Section 897 ordinary dividends + * + * @return self + */ + public function setSection897OrdinaryDividends($section897_ordinary_dividends) + { + $this->container['section897_ordinary_dividends'] = $section897_ordinary_dividends; + + return $this; + } + + /** + * Gets section897_capital_gain + * + * @return string|null + */ + public function getSection897CapitalGain() + { + return $this->container['section897_capital_gain']; + } + + /** + * Sets section897_capital_gain + * + * @param string|null $section897_capital_gain Section 897 capital gain + * + * @return self + */ + public function setSection897CapitalGain($section897_capital_gain) + { + $this->container['section897_capital_gain'] = $section897_capital_gain; + + return $this; + } + + /** + * Gets nondividend_distributions + * + * @return string|null + */ + public function getNondividendDistributions() + { + return $this->container['nondividend_distributions']; + } + + /** + * Sets nondividend_distributions + * + * @param string|null $nondividend_distributions Nondividend distributions + * + * @return self + */ + public function setNondividendDistributions($nondividend_distributions) + { + $this->container['nondividend_distributions'] = $nondividend_distributions; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld Federal income tax withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets section199_a_dividends + * + * @return string|null + */ + public function getSection199ADividends() + { + return $this->container['section199_a_dividends']; + } + + /** + * Sets section199_a_dividends + * + * @param string|null $section199_a_dividends Section 199A dividends + * + * @return self + */ + public function setSection199ADividends($section199_a_dividends) + { + $this->container['section199_a_dividends'] = $section199_a_dividends; + + return $this; + } + + /** + * Gets investment_expenses + * + * @return string|null + */ + public function getInvestmentExpenses() + { + return $this->container['investment_expenses']; + } + + /** + * Sets investment_expenses + * + * @param string|null $investment_expenses Investment expenses + * + * @return self + */ + public function setInvestmentExpenses($investment_expenses) + { + $this->container['investment_expenses'] = $investment_expenses; + + return $this; + } + + /** + * Gets foreign_tax_paid + * + * @return string|null + */ + public function getForeignTaxPaid() + { + return $this->container['foreign_tax_paid']; + } + + /** + * Sets foreign_tax_paid + * + * @param string|null $foreign_tax_paid Foreign tax paid + * + * @return self + */ + public function setForeignTaxPaid($foreign_tax_paid) + { + $this->container['foreign_tax_paid'] = $foreign_tax_paid; + + return $this; + } + + /** + * Gets foreign_country_or_us_possession + * + * @return string|null + */ + public function getForeignCountryOrUsPossession() + { + return $this->container['foreign_country_or_us_possession']; + } + + /** + * Sets foreign_country_or_us_possession + * + * @param string|null $foreign_country_or_us_possession Foreign country or U.S. possession + * + * @return self + */ + public function setForeignCountryOrUsPossession($foreign_country_or_us_possession) + { + $this->container['foreign_country_or_us_possession'] = $foreign_country_or_us_possession; + + return $this; + } + + /** + * Gets cash_liquidation_distributions + * + * @return string|null + */ + public function getCashLiquidationDistributions() + { + return $this->container['cash_liquidation_distributions']; + } + + /** + * Sets cash_liquidation_distributions + * + * @param string|null $cash_liquidation_distributions Cash liquidation distributions + * + * @return self + */ + public function setCashLiquidationDistributions($cash_liquidation_distributions) + { + $this->container['cash_liquidation_distributions'] = $cash_liquidation_distributions; + + return $this; + } + + /** + * Gets noncash_liquidation_distributions + * + * @return string|null + */ + public function getNoncashLiquidationDistributions() + { + return $this->container['noncash_liquidation_distributions']; + } + + /** + * Sets noncash_liquidation_distributions + * + * @param string|null $noncash_liquidation_distributions Noncash liquidation distributions + * + * @return self + */ + public function setNoncashLiquidationDistributions($noncash_liquidation_distributions) + { + $this->container['noncash_liquidation_distributions'] = $noncash_liquidation_distributions; + + return $this; + } + + /** + * Gets exempt_interest_dividends + * + * @return string|null + */ + public function getExemptInterestDividends() + { + return $this->container['exempt_interest_dividends']; + } + + /** + * Sets exempt_interest_dividends + * + * @param string|null $exempt_interest_dividends Exempt-interest dividends + * + * @return self + */ + public function setExemptInterestDividends($exempt_interest_dividends) + { + $this->container['exempt_interest_dividends'] = $exempt_interest_dividends; + + return $this; + } + + /** + * Gets specified_private_activity_bond_interest_dividends + * + * @return string|null + */ + public function getSpecifiedPrivateActivityBondInterestDividends() + { + return $this->container['specified_private_activity_bond_interest_dividends']; + } + + /** + * Sets specified_private_activity_bond_interest_dividends + * + * @param string|null $specified_private_activity_bond_interest_dividends Specified private activity bond interest dividends + * + * @return self + */ + public function setSpecifiedPrivateActivityBondInterestDividends($specified_private_activity_bond_interest_dividends) + { + $this->container['specified_private_activity_bond_interest_dividends'] = $specified_private_activity_bond_interest_dividends; + + return $this; + } + /** * Gets filer_type * @@ -2585,30 +3275,6 @@ public function setPaymentTransactionNumber($payment_transaction_number) return $this; } - /** - * Gets federal_income_tax_withheld - * - * @return float|null - */ - public function getFederalIncomeTaxWithheld() - { - return $this->container['federal_income_tax_withheld']; - } - - /** - * Sets federal_income_tax_withheld - * - * @param float|null $federal_income_tax_withheld Federal income tax withheld - * - * @return self - */ - public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) - { - $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; - - return $this; - } - /** * Gets january * @@ -3018,25 +3684,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_and_health_care + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalAndHealthCare() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_and_health_care']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_and_health_care + * Sets medical_and_health_care_payments * - * @param float|null $medical_and_health_care Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalAndHealthCare($medical_and_health_care) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_and_health_care'] = $medical_and_health_care; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -3114,49 +3780,73 @@ public function setCropInsuranceProceeds($crop_insurance_proceeds) } /** - * Gets excess_golden_parachute + * Gets excess_golden_parachute_payments + * + * @return float|null + */ + public function getExcessGoldenParachutePayments() + { + return $this->container['excess_golden_parachute_payments']; + } + + /** + * Sets excess_golden_parachute_payments + * + * @param float|null $excess_golden_parachute_payments (Legacy field) Excess golden parachute payments + * + * @return self + */ + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) + { + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; + + return $this; + } + + /** + * Gets gross_proceeds_paid_to_attorney * * @return float|null */ - public function getExcessGoldenParachute() + public function getGrossProceedsPaidToAttorney() { - return $this->container['excess_golden_parachute']; + return $this->container['gross_proceeds_paid_to_attorney']; } /** - * Sets excess_golden_parachute + * Sets gross_proceeds_paid_to_attorney * - * @param float|null $excess_golden_parachute (Legacy field) Excess golden parachute payments + * @param float|null $gross_proceeds_paid_to_attorney Gross proceeds paid to an attorney * * @return self */ - public function setExcessGoldenParachute($excess_golden_parachute) + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) { - $this->container['excess_golden_parachute'] = $excess_golden_parachute; + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; return $this; } /** - * Gets gross_amount_paid_attorney + * Gets fish_purchased_for_resale * * @return float|null */ - public function getGrossAmountPaidAttorney() + public function getFishPurchasedForResale() { - return $this->container['gross_amount_paid_attorney']; + return $this->container['fish_purchased_for_resale']; } /** - * Sets gross_amount_paid_attorney + * Sets fish_purchased_for_resale * - * @param float|null $gross_amount_paid_attorney Gross proceeds paid to an attorney + * @param float|null $fish_purchased_for_resale Fish purchased for resale * * @return self */ - public function setGrossAmountPaidAttorney($gross_amount_paid_attorney) + public function setFishPurchasedForResale($fish_purchased_for_resale) { - $this->container['gross_amount_paid_attorney'] = $gross_amount_paid_attorney; + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; return $this; } @@ -3186,25 +3876,25 @@ public function setSection409ADeferrals($section409_a_deferrals) } /** - * Gets section409_a_income + * Gets nonqualified_deferred_compensation * * @return float|null */ - public function getSection409AIncome() + public function getNonqualifiedDeferredCompensation() { - return $this->container['section409_a_income']; + return $this->container['nonqualified_deferred_compensation']; } /** - * Sets section409_a_income + * Sets nonqualified_deferred_compensation * - * @param float|null $section409_a_income Nonqualified deferred compensation + * @param float|null $nonqualified_deferred_compensation Nonqualified deferred compensation * * @return self */ - public function setSection409AIncome($section409_a_income) + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) { - $this->container['section409_a_income'] = $section409_a_income; + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; return $this; } diff --git a/lib/Model/A1099/V2/Form1099MiscListItem.php b/lib/Model/A1099/V2/Form1099MiscListItem.php index 5d06bcb..d538d46 100644 --- a/lib/Model/A1099/V2/Form1099MiscListItem.php +++ b/lib/Model/A1099/V2/Form1099MiscListItem.php @@ -71,13 +71,12 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -101,15 +100,17 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -122,13 +123,12 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -152,15 +152,17 @@ class Form1099MiscListItem implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -192,13 +194,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -222,15 +223,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -241,13 +244,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -271,15 +273,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -290,13 +294,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -320,15 +323,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -409,13 +414,12 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -439,15 +443,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -464,13 +470,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -516,30 +515,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice Second TIN notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets rents * @@ -661,25 +636,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -1047,7 +1022,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1057,17 +1032,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099MiscListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1262,25 +1232,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1334,25 +1304,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1482,6 +1452,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099MiscListItemResponse.php b/lib/Model/A1099/V2/Form1099MiscListItemResponse.php index 96dba59..c550037 100644 --- a/lib/Model/A1099/V2/Form1099MiscListItemResponse.php +++ b/lib/Model/A1099/V2/Form1099MiscListItemResponse.php @@ -76,14 +76,15 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_and_health_care' => 'float', + 'medical_and_health_care_payments' => 'float', 'substitute_payments' => 'float', 'direct_sales_indicator' => 'bool', 'crop_insurance_proceeds' => 'float', - 'excess_golden_parachute' => 'float', - 'gross_amount_paid_attorney' => 'float', + 'excess_golden_parachute_payments' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', 'section409_a_deferrals' => 'float', - 'section409_a_income' => 'float', + 'nonqualified_deferred_compensation' => 'float', 'id' => 'string', 'type' => 'string', 'issuer_id' => 'int', @@ -91,19 +92,22 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -111,8 +115,11 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -132,14 +139,15 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_and_health_care' => 'double', + 'medical_and_health_care_payments' => 'double', 'substitute_payments' => 'double', 'direct_sales_indicator' => null, 'crop_insurance_proceeds' => 'double', - 'excess_golden_parachute' => 'double', - 'gross_amount_paid_attorney' => 'double', + 'excess_golden_parachute_payments' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', 'section409_a_deferrals' => 'double', - 'section409_a_income' => 'double', + 'nonqualified_deferred_compensation' => 'double', 'id' => null, 'type' => null, 'issuer_id' => 'int32', @@ -156,10 +164,13 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -167,8 +178,11 @@ class Form1099MiscListItemResponse implements ModelInterface, ArrayAccess, \Json 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -207,14 +221,15 @@ public static function openAPIFormats() 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_and_health_care' => 'medicalAndHealthCare', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'substitute_payments' => 'substitutePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', - 'excess_golden_parachute' => 'excessGoldenParachute', - 'gross_amount_paid_attorney' => 'grossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', 'section409_a_deferrals' => 'section409ADeferrals', - 'section409_a_income' => 'section409AIncome', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', 'id' => 'id', 'type' => 'type', 'issuer_id' => 'issuerId', @@ -231,10 +246,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -242,8 +260,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -261,14 +282,15 @@ public static function openAPIFormats() 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_and_health_care' => 'setMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'substitute_payments' => 'setSubstitutePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', - 'excess_golden_parachute' => 'setExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'setGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', 'section409_a_deferrals' => 'setSection409ADeferrals', - 'section409_a_income' => 'setSection409AIncome', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', 'id' => 'setId', 'type' => 'setType', 'issuer_id' => 'setIssuerId', @@ -285,10 +307,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -296,8 +321,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -315,14 +343,15 @@ public static function openAPIFormats() 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_and_health_care' => 'getMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'substitute_payments' => 'getSubstitutePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', - 'excess_golden_parachute' => 'getExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'getGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', 'section409_a_deferrals' => 'getSection409ADeferrals', - 'section409_a_income' => 'getSection409AIncome', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', 'id' => 'getId', 'type' => 'getType', 'issuer_id' => 'getIssuerId', @@ -339,10 +368,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -350,8 +382,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -420,14 +455,15 @@ public function __construct(array $data = null) $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_and_health_care'] = $data['medical_and_health_care'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; - $this->container['excess_golden_parachute'] = $data['excess_golden_parachute'] ?? null; - $this->container['gross_amount_paid_attorney'] = $data['gross_amount_paid_attorney'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; - $this->container['section409_a_income'] = $data['section409_a_income'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['issuer_id'] = $data['issuer_id'] ?? null; @@ -444,10 +480,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -455,8 +494,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -640,25 +682,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_and_health_care + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalAndHealthCare() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_and_health_care']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_and_health_care + * Sets medical_and_health_care_payments * - * @param float|null $medical_and_health_care Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalAndHealthCare($medical_and_health_care) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_and_health_care'] = $medical_and_health_care; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -736,49 +778,73 @@ public function setCropInsuranceProceeds($crop_insurance_proceeds) } /** - * Gets excess_golden_parachute + * Gets excess_golden_parachute_payments * * @return float|null */ - public function getExcessGoldenParachute() + public function getExcessGoldenParachutePayments() { - return $this->container['excess_golden_parachute']; + return $this->container['excess_golden_parachute_payments']; } /** - * Sets excess_golden_parachute + * Sets excess_golden_parachute_payments * - * @param float|null $excess_golden_parachute (Legacy field) Excess golden parachute payments + * @param float|null $excess_golden_parachute_payments (Legacy field) Excess golden parachute payments * * @return self */ - public function setExcessGoldenParachute($excess_golden_parachute) + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) { - $this->container['excess_golden_parachute'] = $excess_golden_parachute; + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; return $this; } /** - * Gets gross_amount_paid_attorney + * Gets gross_proceeds_paid_to_attorney * * @return float|null */ - public function getGrossAmountPaidAttorney() + public function getGrossProceedsPaidToAttorney() { - return $this->container['gross_amount_paid_attorney']; + return $this->container['gross_proceeds_paid_to_attorney']; } /** - * Sets gross_amount_paid_attorney + * Sets gross_proceeds_paid_to_attorney * - * @param float|null $gross_amount_paid_attorney Gross proceeds paid to an attorney + * @param float|null $gross_proceeds_paid_to_attorney Gross proceeds paid to an attorney * * @return self */ - public function setGrossAmountPaidAttorney($gross_amount_paid_attorney) + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) { - $this->container['gross_amount_paid_attorney'] = $gross_amount_paid_attorney; + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; + + return $this; + } + + /** + * Gets fish_purchased_for_resale + * + * @return float|null + */ + public function getFishPurchasedForResale() + { + return $this->container['fish_purchased_for_resale']; + } + + /** + * Sets fish_purchased_for_resale + * + * @param float|null $fish_purchased_for_resale Fish purchased for resale + * + * @return self + */ + public function setFishPurchasedForResale($fish_purchased_for_resale) + { + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; return $this; } @@ -808,25 +874,25 @@ public function setSection409ADeferrals($section409_a_deferrals) } /** - * Gets section409_a_income + * Gets nonqualified_deferred_compensation * * @return float|null */ - public function getSection409AIncome() + public function getNonqualifiedDeferredCompensation() { - return $this->container['section409_a_income']; + return $this->container['nonqualified_deferred_compensation']; } /** - * Sets section409_a_income + * Sets nonqualified_deferred_compensation * - * @param float|null $section409_a_income Nonqualified deferred compensation + * @param float|null $nonqualified_deferred_compensation Nonqualified deferred compensation * * @return self */ - public function setSection409AIncome($section409_a_income) + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) { - $this->container['section409_a_income'] = $section409_a_income; + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; return $this; } @@ -1012,7 +1078,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1022,7 +1088,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1110,7 +1176,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1120,7 +1186,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1158,7 +1224,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1168,7 +1234,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1206,7 +1272,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1216,7 +1282,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1227,6 +1293,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1323,6 +1413,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1492,25 +1630,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1539,6 +1677,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1099MiscRequest.php b/lib/Model/A1099/V2/Form1099MiscRequest.php index 053e66c..e7b69b1 100644 --- a/lib/Model/A1099/V2/Form1099MiscRequest.php +++ b/lib/Model/A1099/V2/Form1099MiscRequest.php @@ -71,13 +71,12 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -99,15 +98,17 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -120,13 +121,12 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -148,15 +148,17 @@ class Form1099MiscRequest implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -188,13 +190,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -216,15 +217,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -235,13 +238,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -263,15 +265,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -282,13 +286,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -310,15 +313,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -371,6 +376,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -391,6 +397,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -424,13 +431,12 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -452,15 +458,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -483,13 +491,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -535,30 +536,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice Second TIN notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets rents * @@ -680,25 +657,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -1028,7 +1005,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1038,17 +1015,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099MiscRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1243,25 +1215,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1315,25 +1287,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1463,6 +1435,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099MiscResponse.php b/lib/Model/A1099/V2/Form1099MiscResponse.php index ccd8df4..3d6586f 100644 --- a/lib/Model/A1099/V2/Form1099MiscResponse.php +++ b/lib/Model/A1099/V2/Form1099MiscResponse.php @@ -71,13 +71,12 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -90,7 +89,6 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -107,17 +105,20 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', @@ -133,13 +134,12 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -152,7 +152,6 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -169,17 +168,20 @@ class Form1099MiscResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, @@ -214,13 +216,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -233,7 +234,6 @@ public static function openAPIFormats() 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -250,17 +250,20 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', @@ -274,13 +277,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -293,7 +295,6 @@ public static function openAPIFormats() 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -310,17 +311,20 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', @@ -334,13 +338,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -353,7 +356,6 @@ public static function openAPIFormats() 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -370,17 +372,20 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', @@ -436,6 +441,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -456,6 +462,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -489,13 +496,12 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -508,7 +514,6 @@ public function __construct(array $data = null) $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -525,17 +530,20 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; @@ -585,30 +593,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice second_tin_notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets rents * @@ -730,25 +714,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments medical_health_care_payments + * @param float|null $medical_and_health_care_payments medical_and_health_care_payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -1051,30 +1035,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -1470,25 +1430,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1542,25 +1502,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1685,6 +1645,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1733,6 +1741,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * diff --git a/lib/Model/A1099/V2/Form1099NecListItem.php b/lib/Model/A1099/V2/Form1099NecListItem.php index 418e915..a8dffa1 100644 --- a/lib/Model/A1099/V2/Form1099NecListItem.php +++ b/lib/Model/A1099/V2/Form1099NecListItem.php @@ -72,7 +72,6 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'nonemployee_compensation' => 'float', 'direct_sales_indicator' => 'bool', 'federal_income_tax_withheld' => 'float', @@ -90,15 +89,17 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -111,7 +112,6 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'nonemployee_compensation' => 'double', 'direct_sales_indicator' => null, 'federal_income_tax_withheld' => 'double', @@ -129,15 +129,17 @@ class Form1099NecListItem implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -169,7 +171,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'nonemployee_compensation' => 'nonemployeeCompensation', 'direct_sales_indicator' => 'directSalesIndicator', 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', @@ -187,15 +188,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -206,7 +209,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', @@ -224,15 +226,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -243,7 +247,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', @@ -261,15 +264,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -350,7 +355,6 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; @@ -368,15 +372,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -396,13 +402,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -448,30 +447,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice Second TIN notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets nonemployee_compensation * @@ -691,7 +666,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -701,17 +676,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099NecListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -906,25 +876,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -978,25 +948,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1126,6 +1096,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099NecListItemResponse.php b/lib/Model/A1099/V2/Form1099NecListItemResponse.php index 5b15ef3..b1a7d65 100644 --- a/lib/Model/A1099/V2/Form1099NecListItemResponse.php +++ b/lib/Model/A1099/V2/Form1099NecListItemResponse.php @@ -81,19 +81,22 @@ class Form1099NecListItemResponse implements ModelInterface, ArrayAccess, \JsonS 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -101,8 +104,11 @@ class Form1099NecListItemResponse implements ModelInterface, ArrayAccess, \JsonS 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -136,10 +142,13 @@ class Form1099NecListItemResponse implements ModelInterface, ArrayAccess, \JsonS 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -147,8 +156,11 @@ class Form1099NecListItemResponse implements ModelInterface, ArrayAccess, \JsonS 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -201,10 +213,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -212,8 +227,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -245,10 +263,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -256,8 +277,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -289,10 +313,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -300,8 +327,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -384,10 +414,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -395,8 +428,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -712,7 +748,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -722,7 +758,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -810,7 +846,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -820,7 +856,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -858,7 +894,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -868,7 +904,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -906,7 +942,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -916,7 +952,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -927,6 +963,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1023,6 +1083,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1192,25 +1300,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1239,6 +1347,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1099NecRequest.php b/lib/Model/A1099/V2/Form1099NecRequest.php index 0c910ad..4673e24 100644 --- a/lib/Model/A1099/V2/Form1099NecRequest.php +++ b/lib/Model/A1099/V2/Form1099NecRequest.php @@ -71,7 +71,6 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'nonemployee_compensation' => 'float', 'direct_sales_indicator' => 'bool', 'federal_income_tax_withheld' => 'float', @@ -87,15 +86,17 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -108,7 +109,6 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'nonemployee_compensation' => 'double', 'direct_sales_indicator' => null, 'federal_income_tax_withheld' => 'double', @@ -124,15 +124,17 @@ class Form1099NecRequest implements ModelInterface, ArrayAccess, \JsonSerializab 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -164,7 +166,6 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'nonemployee_compensation' => 'nonemployeeCompensation', 'direct_sales_indicator' => 'directSalesIndicator', 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', @@ -180,15 +181,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -199,7 +202,6 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', @@ -215,15 +217,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -234,7 +238,6 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', @@ -250,15 +253,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -311,6 +316,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -331,6 +337,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -364,7 +371,6 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; @@ -380,15 +386,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -414,13 +422,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -466,30 +467,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice Second TIN notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets nonemployee_compensation * @@ -671,7 +648,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -681,17 +658,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099NecRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -886,25 +858,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -958,25 +930,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1106,6 +1078,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099NecResponse.php b/lib/Model/A1099/V2/Form1099NecResponse.php index cd66daa..2bd7f30 100644 --- a/lib/Model/A1099/V2/Form1099NecResponse.php +++ b/lib/Model/A1099/V2/Form1099NecResponse.php @@ -71,14 +71,12 @@ class Form1099NecResponse implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'second_tin_notice' => 'bool', 'nonemployee_compensation' => 'float', 'direct_sales_indicator' => 'bool', 'federal_income_tax_withheld' => 'float', 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -95,17 +93,20 @@ class Form1099NecResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', @@ -121,14 +122,12 @@ class Form1099NecResponse implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'second_tin_notice' => null, 'nonemployee_compensation' => 'double', 'direct_sales_indicator' => null, 'federal_income_tax_withheld' => 'double', 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -145,17 +144,20 @@ class Form1099NecResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, @@ -190,14 +192,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'second_tin_notice' => 'secondTinNotice', 'nonemployee_compensation' => 'nonemployeeCompensation', 'direct_sales_indicator' => 'directSalesIndicator', 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -214,17 +214,20 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', @@ -238,14 +241,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'second_tin_notice' => 'setSecondTinNotice', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -262,17 +263,20 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', @@ -286,14 +290,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'second_tin_notice' => 'getSecondTinNotice', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -310,17 +312,20 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', @@ -376,6 +381,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -396,6 +402,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -429,14 +436,12 @@ public function getTinTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -453,17 +458,20 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; @@ -513,30 +521,6 @@ public function valid() } - /** - * Gets second_tin_notice - * - * @return bool|null - */ - public function getSecondTinNotice() - { - return $this->container['second_tin_notice']; - } - - /** - * Sets second_tin_notice - * - * @param bool|null $second_tin_notice second_tin_notice - * - * @return self - */ - public function setSecondTinNotice($second_tin_notice) - { - $this->container['second_tin_notice'] = $second_tin_notice; - - return $this; - } - /** * Gets nonemployee_compensation * @@ -691,30 +675,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -1110,25 +1070,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1182,25 +1142,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1325,6 +1285,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1373,6 +1381,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * diff --git a/lib/Model/A1099/V2/Form1099RListItem.php b/lib/Model/A1099/V2/Form1099RListItem.php index fe32a9c..b154263 100644 --- a/lib/Model/A1099/V2/Form1099RListItem.php +++ b/lib/Model/A1099/V2/Form1099RListItem.php @@ -105,15 +105,17 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -160,15 +162,17 @@ class Form1099RListItem implements ModelInterface, ArrayAccess, \JsonSerializabl 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -234,15 +238,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -287,15 +293,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -340,15 +348,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -601,15 +611,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -644,13 +656,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1343,7 +1348,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1353,17 +1358,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099RListItem., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1558,25 +1558,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1630,25 +1630,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1778,6 +1778,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Form1099RListItemResponse.php b/lib/Model/A1099/V2/Form1099RListItemResponse.php index 6bd0bb1..8955438 100644 --- a/lib/Model/A1099/V2/Form1099RListItemResponse.php +++ b/lib/Model/A1099/V2/Form1099RListItemResponse.php @@ -98,19 +98,22 @@ class Form1099RListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -118,8 +121,11 @@ class Form1099RListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', @@ -170,10 +176,13 @@ class Form1099RListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -181,8 +190,11 @@ class Form1099RListItemResponse implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', @@ -252,10 +264,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -263,8 +278,11 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', @@ -313,10 +331,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -324,8 +345,11 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', @@ -374,10 +398,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -385,8 +412,11 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', @@ -486,10 +516,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -497,8 +530,11 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -1222,7 +1258,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1232,7 +1268,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1320,7 +1356,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1330,7 +1366,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1368,7 +1404,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1378,7 +1414,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1416,7 +1452,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1426,7 +1462,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1437,6 +1473,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1533,6 +1593,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1702,25 +1810,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1749,6 +1857,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * diff --git a/lib/Model/A1099/V2/Form1099RRequest.php b/lib/Model/A1099/V2/Form1099RRequest.php index ad36104..c5869f9 100644 --- a/lib/Model/A1099/V2/Form1099RRequest.php +++ b/lib/Model/A1099/V2/Form1099RRequest.php @@ -103,15 +103,17 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -156,15 +158,17 @@ class Form1099RRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -228,15 +232,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -279,15 +285,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -330,15 +338,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -391,6 +401,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -411,6 +422,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -476,15 +488,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -507,13 +521,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -1148,7 +1155,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1158,17 +1165,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling Form1099RRequest., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1363,25 +1365,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1435,25 +1437,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1583,6 +1585,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/FormRequestBase.php b/lib/Model/A1099/V2/FormRequestBase.php index c1240e2..4a2955c 100644 --- a/lib/Model/A1099/V2/FormRequestBase.php +++ b/lib/Model/A1099/V2/FormRequestBase.php @@ -82,15 +82,17 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -114,15 +116,17 @@ class FormRequestBase implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -165,15 +169,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -195,15 +201,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -225,15 +233,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -325,15 +335,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -347,13 +359,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -474,7 +479,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -484,17 +489,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling FormRequestBase., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -689,25 +689,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -761,25 +761,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -909,6 +909,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/FormRequestListItemBase.php b/lib/Model/A1099/V2/FormRequestListItemBase.php index 3929cd7..90875e9 100644 --- a/lib/Model/A1099/V2/FormRequestListItemBase.php +++ b/lib/Model/A1099/V2/FormRequestListItemBase.php @@ -85,15 +85,17 @@ class FormRequestListItemBase implements ModelInterface, ArrayAccess, \JsonSeria 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -120,15 +122,17 @@ class FormRequestListItemBase implements ModelInterface, ArrayAccess, \JsonSeria 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -174,15 +178,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -207,15 +213,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -240,15 +248,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -343,15 +353,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -368,13 +380,6 @@ public function listInvalidProperties() if ($this->container['tax_year'] === null) { $invalidProperties[] = "'tax_year' can't be null"; } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -567,7 +572,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -577,17 +582,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling FormRequestListItemBase., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -782,25 +782,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -854,25 +854,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1002,6 +1002,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/FormResponseBase.php b/lib/Model/A1099/V2/FormResponseBase.php index ca54fff..a755691 100644 --- a/lib/Model/A1099/V2/FormResponseBase.php +++ b/lib/Model/A1099/V2/FormResponseBase.php @@ -74,7 +74,6 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -91,17 +90,20 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', @@ -120,7 +122,6 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -137,17 +138,20 @@ class FormResponseBase implements ModelInterface, ArrayAccess, \JsonSerializable 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, @@ -185,7 +189,6 @@ public static function openAPIFormats() 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -202,17 +205,20 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', @@ -229,7 +235,6 @@ public static function openAPIFormats() 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -246,17 +251,20 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', @@ -273,7 +281,6 @@ public static function openAPIFormats() 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -290,17 +297,20 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', @@ -356,6 +366,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -376,6 +387,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -412,7 +424,6 @@ public function __construct(array $data = null) $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -429,17 +440,20 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; @@ -571,30 +585,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -990,25 +980,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1062,25 +1052,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1205,6 +1195,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1253,6 +1291,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * diff --git a/lib/Model/A1099/V2/FormSingleRequestBase.php b/lib/Model/A1099/V2/FormSingleRequestBase.php index 81feef9..e11fda8 100644 --- a/lib/Model/A1099/V2/FormSingleRequestBase.php +++ b/lib/Model/A1099/V2/FormSingleRequestBase.php @@ -83,15 +83,17 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest' ]; @@ -116,15 +118,17 @@ class FormSingleRequestBase implements ModelInterface, ArrayAccess, \JsonSeriali 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null ]; @@ -168,15 +172,17 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding' ]; @@ -199,15 +205,17 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding' ]; @@ -230,15 +238,17 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding' ]; @@ -291,6 +301,7 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; @@ -311,6 +322,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -356,15 +368,17 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; } @@ -387,13 +401,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -548,7 +555,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -558,17 +565,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling FormSingleRequestBase., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -763,25 +765,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -835,25 +837,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -983,6 +985,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second TIN notice in three years + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * diff --git a/lib/Model/A1099/V2/Get1099Form200Response.php b/lib/Model/A1099/V2/Get1099Form200Response.php index 470c7b1..9b683b5 100644 --- a/lib/Model/A1099/V2/Get1099Form200Response.php +++ b/lib/Model/A1099/V2/Get1099Form200Response.php @@ -78,19 +78,22 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'issuer_tin' => 'string', 'tax_year' => 'int', 'federal_efile' => 'bool', - 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile' => 'bool', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail' => 'bool', - 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match' => 'bool', - 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification' => 'bool', - 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse', + 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'reference_id' => 'string', 'email' => 'string', 'tin_type' => 'string', 'tin' => 'string', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'recipient_name' => 'string', 'recipient_second_name' => 'string', 'address' => 'string', @@ -98,14 +101,16 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'foreign_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', + 'account_number' => 'string', + 'office_code' => 'string', + 'fatca_filing_requirement' => 'bool', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'unique_form_id' => 'string', - 'no_tin' => 'bool', 'recipient_date_of_birth' => '\DateTime', 'recipient_giin' => 'string', 'recipient_foreign_tin' => 'string', @@ -130,6 +135,24 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'intermediary_or_flow_through' => '\Avalara\SDK\Model\A1099\V2\IntermediaryOrFlowThroughResponse', 'origin_of_health_coverage_code' => 'string', 'covered_individuals' => '\Avalara\SDK\Model\A1099\V2\CoveredIndividualReferenceResponse[]', + 'total_ordinary_dividends' => 'string', + 'qualified_dividends' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', + 'section1202_gain' => 'string', + 'collectibles_gain' => 'string', + 'section897_ordinary_dividends' => 'string', + 'section897_capital_gain' => 'string', + 'nondividend_distributions' => 'string', + 'federal_income_tax_withheld' => 'float', + 'section199_a_dividends' => 'string', + 'investment_expenses' => 'string', + 'foreign_tax_paid' => 'string', + 'foreign_country_or_us_possession' => 'string', + 'cash_liquidation_distributions' => 'string', + 'noncash_liquidation_distributions' => 'string', + 'exempt_interest_dividends' => 'string', + 'specified_private_activity_bond_interest_dividends' => 'string', 'filer_type' => 'string', 'payment_type' => 'string', 'payment_settlement_entity_name_phone_number' => 'string', @@ -137,7 +160,6 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'card_not_present_transactions' => 'float', 'merchant_category_code' => 'string', 'payment_transaction_number' => 'float', - 'federal_income_tax_withheld' => 'float', 'january' => 'float', 'february' => 'float', 'march' => 'float', @@ -155,14 +177,15 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_and_health_care' => 'float', + 'medical_and_health_care_payments' => 'float', 'substitute_payments' => 'float', 'direct_sales_indicator' => 'bool', 'crop_insurance_proceeds' => 'float', - 'excess_golden_parachute' => 'float', - 'gross_amount_paid_attorney' => 'float', + 'excess_golden_parachute_payments' => 'float', + 'gross_proceeds_paid_to_attorney' => 'float', + 'fish_purchased_for_resale' => 'float', 'section409_a_deferrals' => 'float', - 'section409_a_income' => 'float', + 'nonqualified_deferred_compensation' => 'float', 'nonemployee_compensation' => 'float', 'gross_distributions' => 'float', 'taxable_amount' => 'float', @@ -209,10 +232,13 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'tin_match_status' => null, 'address_verification' => null, 'address_verification_status' => null, + 'e_delivery_status' => null, 'reference_id' => null, 'email' => null, 'tin_type' => null, 'tin' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'recipient_name' => null, 'recipient_second_name' => null, 'address' => null, @@ -220,14 +246,16 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'city' => null, 'state' => null, 'zip' => null, - 'foreign_province' => null, + 'non_us_province' => null, 'country_code' => null, + 'account_number' => null, + 'office_code' => null, + 'fatca_filing_requirement' => null, 'validation_errors' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', 'state_and_local_withholding' => null, 'unique_form_id' => null, - 'no_tin' => null, 'recipient_date_of_birth' => 'date-time', 'recipient_giin' => null, 'recipient_foreign_tin' => null, @@ -252,6 +280,24 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'intermediary_or_flow_through' => null, 'origin_of_health_coverage_code' => null, 'covered_individuals' => null, + 'total_ordinary_dividends' => null, + 'qualified_dividends' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, + 'section1202_gain' => null, + 'collectibles_gain' => null, + 'section897_ordinary_dividends' => null, + 'section897_capital_gain' => null, + 'nondividend_distributions' => null, + 'federal_income_tax_withheld' => 'double', + 'section199_a_dividends' => null, + 'investment_expenses' => null, + 'foreign_tax_paid' => null, + 'foreign_country_or_us_possession' => null, + 'cash_liquidation_distributions' => null, + 'noncash_liquidation_distributions' => null, + 'exempt_interest_dividends' => null, + 'specified_private_activity_bond_interest_dividends' => null, 'filer_type' => null, 'payment_type' => null, 'payment_settlement_entity_name_phone_number' => null, @@ -259,7 +305,6 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'card_not_present_transactions' => 'double', 'merchant_category_code' => null, 'payment_transaction_number' => 'double', - 'federal_income_tax_withheld' => 'double', 'january' => 'double', 'february' => 'double', 'march' => 'double', @@ -277,14 +322,15 @@ class Get1099Form200Response implements ModelInterface, ArrayAccess, \JsonSerial 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_and_health_care' => 'double', + 'medical_and_health_care_payments' => 'double', 'substitute_payments' => 'double', 'direct_sales_indicator' => null, 'crop_insurance_proceeds' => 'double', - 'excess_golden_parachute' => 'double', - 'gross_amount_paid_attorney' => 'double', + 'excess_golden_parachute_payments' => 'double', + 'gross_proceeds_paid_to_attorney' => 'double', + 'fish_purchased_for_resale' => 'double', 'section409_a_deferrals' => 'double', - 'section409_a_income' => 'double', + 'nonqualified_deferred_compensation' => 'double', 'nonemployee_compensation' => 'double', 'gross_distributions' => 'double', 'taxable_amount' => 'double', @@ -350,10 +396,13 @@ public static function openAPIFormats() 'tin_match_status' => 'tinMatchStatus', 'address_verification' => 'addressVerification', 'address_verification_status' => 'addressVerificationStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'reference_id' => 'referenceId', 'email' => 'email', 'tin_type' => 'tinType', 'tin' => 'tin', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'recipient_name' => 'recipientName', 'recipient_second_name' => 'recipientSecondName', 'address' => 'address', @@ -361,14 +410,16 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'foreign_province' => 'foreignProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', + 'account_number' => 'accountNumber', + 'office_code' => 'officeCode', + 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'validation_errors' => 'validationErrors', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'unique_form_id' => 'uniqueFormId', - 'no_tin' => 'noTin', 'recipient_date_of_birth' => 'recipientDateOfBirth', 'recipient_giin' => 'recipientGiin', 'recipient_foreign_tin' => 'recipientForeignTin', @@ -393,6 +444,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'intermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'originOfHealthCoverageCode', 'covered_individuals' => 'coveredIndividuals', + 'total_ordinary_dividends' => 'totalOrdinaryDividends', + 'qualified_dividends' => 'qualifiedDividends', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', + 'section1202_gain' => 'section1202Gain', + 'collectibles_gain' => 'collectiblesGain', + 'section897_ordinary_dividends' => 'section897OrdinaryDividends', + 'section897_capital_gain' => 'section897CapitalGain', + 'nondividend_distributions' => 'nondividendDistributions', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'section199_a_dividends' => 'section199ADividends', + 'investment_expenses' => 'investmentExpenses', + 'foreign_tax_paid' => 'foreignTaxPaid', + 'foreign_country_or_us_possession' => 'foreignCountryOrUSPossession', + 'cash_liquidation_distributions' => 'cashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'noncashLiquidationDistributions', + 'exempt_interest_dividends' => 'exemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'specifiedPrivateActivityBondInterestDividends', 'filer_type' => 'filerType', 'payment_type' => 'paymentType', 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', @@ -400,7 +469,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'cardNotPresentTransactions', 'merchant_category_code' => 'merchantCategoryCode', 'payment_transaction_number' => 'paymentTransactionNumber', - 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', 'january' => 'january', 'february' => 'february', 'march' => 'march', @@ -418,14 +486,15 @@ public static function openAPIFormats() 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_and_health_care' => 'medicalAndHealthCare', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'substitute_payments' => 'substitutePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', - 'excess_golden_parachute' => 'excessGoldenParachute', - 'gross_amount_paid_attorney' => 'grossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'grossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'fishPurchasedForResale', 'section409_a_deferrals' => 'section409ADeferrals', - 'section409_a_income' => 'section409AIncome', + 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'nonemployeeCompensation', 'gross_distributions' => 'grossDistributions', 'taxable_amount' => 'taxableAmount', @@ -470,10 +539,13 @@ public static function openAPIFormats() 'tin_match_status' => 'setTinMatchStatus', 'address_verification' => 'setAddressVerification', 'address_verification_status' => 'setAddressVerificationStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'reference_id' => 'setReferenceId', 'email' => 'setEmail', 'tin_type' => 'setTinType', 'tin' => 'setTin', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'recipient_name' => 'setRecipientName', 'recipient_second_name' => 'setRecipientSecondName', 'address' => 'setAddress', @@ -481,14 +553,16 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'foreign_province' => 'setForeignProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', + 'account_number' => 'setAccountNumber', + 'office_code' => 'setOfficeCode', + 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'validation_errors' => 'setValidationErrors', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'unique_form_id' => 'setUniqueFormId', - 'no_tin' => 'setNoTin', 'recipient_date_of_birth' => 'setRecipientDateOfBirth', 'recipient_giin' => 'setRecipientGiin', 'recipient_foreign_tin' => 'setRecipientForeignTin', @@ -513,6 +587,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'setIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'setOriginOfHealthCoverageCode', 'covered_individuals' => 'setCoveredIndividuals', + 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', + 'qualified_dividends' => 'setQualifiedDividends', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', + 'section1202_gain' => 'setSection1202Gain', + 'collectibles_gain' => 'setCollectiblesGain', + 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', + 'section897_capital_gain' => 'setSection897CapitalGain', + 'nondividend_distributions' => 'setNondividendDistributions', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'setSection199ADividends', + 'investment_expenses' => 'setInvestmentExpenses', + 'foreign_tax_paid' => 'setForeignTaxPaid', + 'foreign_country_or_us_possession' => 'setForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'setCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'setNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'setExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'setSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'setFilerType', 'payment_type' => 'setPaymentType', 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', @@ -520,7 +612,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'setCardNotPresentTransactions', 'merchant_category_code' => 'setMerchantCategoryCode', 'payment_transaction_number' => 'setPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', 'january' => 'setJanuary', 'february' => 'setFebruary', 'march' => 'setMarch', @@ -538,14 +629,15 @@ public static function openAPIFormats() 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_and_health_care' => 'setMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'substitute_payments' => 'setSubstitutePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', - 'excess_golden_parachute' => 'setExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'setGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'setGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'setFishPurchasedForResale', 'section409_a_deferrals' => 'setSection409ADeferrals', - 'section409_a_income' => 'setSection409AIncome', + 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'setNonemployeeCompensation', 'gross_distributions' => 'setGrossDistributions', 'taxable_amount' => 'setTaxableAmount', @@ -590,10 +682,13 @@ public static function openAPIFormats() 'tin_match_status' => 'getTinMatchStatus', 'address_verification' => 'getAddressVerification', 'address_verification_status' => 'getAddressVerificationStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'reference_id' => 'getReferenceId', 'email' => 'getEmail', 'tin_type' => 'getTinType', 'tin' => 'getTin', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'recipient_name' => 'getRecipientName', 'recipient_second_name' => 'getRecipientSecondName', 'address' => 'getAddress', @@ -601,14 +696,16 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'foreign_province' => 'getForeignProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', + 'account_number' => 'getAccountNumber', + 'office_code' => 'getOfficeCode', + 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'validation_errors' => 'getValidationErrors', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'unique_form_id' => 'getUniqueFormId', - 'no_tin' => 'getNoTin', 'recipient_date_of_birth' => 'getRecipientDateOfBirth', 'recipient_giin' => 'getRecipientGiin', 'recipient_foreign_tin' => 'getRecipientForeignTin', @@ -633,6 +730,24 @@ public static function openAPIFormats() 'intermediary_or_flow_through' => 'getIntermediaryOrFlowThrough', 'origin_of_health_coverage_code' => 'getOriginOfHealthCoverageCode', 'covered_individuals' => 'getCoveredIndividuals', + 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', + 'qualified_dividends' => 'getQualifiedDividends', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', + 'section1202_gain' => 'getSection1202Gain', + 'collectibles_gain' => 'getCollectiblesGain', + 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', + 'section897_capital_gain' => 'getSection897CapitalGain', + 'nondividend_distributions' => 'getNondividendDistributions', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'section199_a_dividends' => 'getSection199ADividends', + 'investment_expenses' => 'getInvestmentExpenses', + 'foreign_tax_paid' => 'getForeignTaxPaid', + 'foreign_country_or_us_possession' => 'getForeignCountryOrUsPossession', + 'cash_liquidation_distributions' => 'getCashLiquidationDistributions', + 'noncash_liquidation_distributions' => 'getNoncashLiquidationDistributions', + 'exempt_interest_dividends' => 'getExemptInterestDividends', + 'specified_private_activity_bond_interest_dividends' => 'getSpecifiedPrivateActivityBondInterestDividends', 'filer_type' => 'getFilerType', 'payment_type' => 'getPaymentType', 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', @@ -640,7 +755,6 @@ public static function openAPIFormats() 'card_not_present_transactions' => 'getCardNotPresentTransactions', 'merchant_category_code' => 'getMerchantCategoryCode', 'payment_transaction_number' => 'getPaymentTransactionNumber', - 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', 'january' => 'getJanuary', 'february' => 'getFebruary', 'march' => 'getMarch', @@ -658,14 +772,15 @@ public static function openAPIFormats() 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_and_health_care' => 'getMedicalAndHealthCare', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'substitute_payments' => 'getSubstitutePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', - 'excess_golden_parachute' => 'getExcessGoldenParachute', - 'gross_amount_paid_attorney' => 'getGrossAmountPaidAttorney', + 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', + 'gross_proceeds_paid_to_attorney' => 'getGrossProceedsPaidToAttorney', + 'fish_purchased_for_resale' => 'getFishPurchasedForResale', 'section409_a_deferrals' => 'getSection409ADeferrals', - 'section409_a_income' => 'getSection409AIncome', + 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', 'nonemployee_compensation' => 'getNonemployeeCompensation', 'gross_distributions' => 'getGrossDistributions', 'taxable_amount' => 'getTaxableAmount', @@ -793,10 +908,13 @@ public function __construct(array $data = null) $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['reference_id'] = $data['reference_id'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['tin'] = $data['tin'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['recipient_name'] = $data['recipient_name'] ?? null; $this->container['recipient_second_name'] = $data['recipient_second_name'] ?? null; $this->container['address'] = $data['address'] ?? null; @@ -804,14 +922,16 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['foreign_province'] = $data['foreign_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; + $this->container['account_number'] = $data['account_number'] ?? null; + $this->container['office_code'] = $data['office_code'] ?? null; + $this->container['fatca_filing_requirement'] = $data['fatca_filing_requirement'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['unique_form_id'] = $data['unique_form_id'] ?? null; - $this->container['no_tin'] = $data['no_tin'] ?? null; $this->container['recipient_date_of_birth'] = $data['recipient_date_of_birth'] ?? null; $this->container['recipient_giin'] = $data['recipient_giin'] ?? null; $this->container['recipient_foreign_tin'] = $data['recipient_foreign_tin'] ?? null; @@ -836,6 +956,24 @@ public function __construct(array $data = null) $this->container['intermediary_or_flow_through'] = $data['intermediary_or_flow_through'] ?? null; $this->container['origin_of_health_coverage_code'] = $data['origin_of_health_coverage_code'] ?? null; $this->container['covered_individuals'] = $data['covered_individuals'] ?? null; + $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; + $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; + $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; + $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; + $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; + $this->container['section897_capital_gain'] = $data['section897_capital_gain'] ?? null; + $this->container['nondividend_distributions'] = $data['nondividend_distributions'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['section199_a_dividends'] = $data['section199_a_dividends'] ?? null; + $this->container['investment_expenses'] = $data['investment_expenses'] ?? null; + $this->container['foreign_tax_paid'] = $data['foreign_tax_paid'] ?? null; + $this->container['foreign_country_or_us_possession'] = $data['foreign_country_or_us_possession'] ?? null; + $this->container['cash_liquidation_distributions'] = $data['cash_liquidation_distributions'] ?? null; + $this->container['noncash_liquidation_distributions'] = $data['noncash_liquidation_distributions'] ?? null; + $this->container['exempt_interest_dividends'] = $data['exempt_interest_dividends'] ?? null; + $this->container['specified_private_activity_bond_interest_dividends'] = $data['specified_private_activity_bond_interest_dividends'] ?? null; $this->container['filer_type'] = $data['filer_type'] ?? null; $this->container['payment_type'] = $data['payment_type'] ?? null; $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; @@ -843,7 +981,6 @@ public function __construct(array $data = null) $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; - $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; $this->container['january'] = $data['january'] ?? null; $this->container['february'] = $data['february'] ?? null; $this->container['march'] = $data['march'] ?? null; @@ -861,14 +998,15 @@ public function __construct(array $data = null) $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_and_health_care'] = $data['medical_and_health_care'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; - $this->container['excess_golden_parachute'] = $data['excess_golden_parachute'] ?? null; - $this->container['gross_amount_paid_attorney'] = $data['gross_amount_paid_attorney'] ?? null; + $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; + $this->container['gross_proceeds_paid_to_attorney'] = $data['gross_proceeds_paid_to_attorney'] ?? null; + $this->container['fish_purchased_for_resale'] = $data['fish_purchased_for_resale'] ?? null; $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; - $this->container['section409_a_income'] = $data['section409_a_income'] ?? null; + $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; $this->container['gross_distributions'] = $data['gross_distributions'] ?? null; $this->container['taxable_amount'] = $data['taxable_amount'] ?? null; @@ -1146,7 +1284,7 @@ public function setFederalEfile($federal_efile) /** * Gets federal_efile_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getFederalEfileStatus() { @@ -1156,7 +1294,7 @@ public function getFederalEfileStatus() /** * Sets federal_efile_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $federal_efile_status Federal e-file status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $federal_efile_status Federal e-file status * * @return self */ @@ -1244,7 +1382,7 @@ public function setPostalMail($postal_mail) /** * Gets postal_mail_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getPostalMailStatus() { @@ -1254,7 +1392,7 @@ public function getPostalMailStatus() /** * Sets postal_mail_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $postal_mail_status Postal mail to recipient status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $postal_mail_status Postal mail to recipient status * * @return self */ @@ -1292,7 +1430,7 @@ public function setTinMatch($tin_match) /** * Gets tin_match_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getTinMatchStatus() { @@ -1302,7 +1440,7 @@ public function getTinMatchStatus() /** * Sets tin_match_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $tin_match_status TIN Match status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $tin_match_status TIN Match status * * @return self */ @@ -1340,7 +1478,7 @@ public function setAddressVerification($address_verification) /** * Gets address_verification_status * - * @return \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null */ public function getAddressVerificationStatus() { @@ -1350,7 +1488,7 @@ public function getAddressVerificationStatus() /** * Sets address_verification_status * - * @param \Avalara\SDK\Model\A1099\V2\Form1099StatusDetailResponse|null $address_verification_status Address verification status + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $address_verification_status Address verification status * * @return self */ @@ -1361,6 +1499,30 @@ public function setAddressVerificationStatus($address_verification_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status EDelivery status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets reference_id * @@ -1457,6 +1619,54 @@ public function setTin($tin) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin Indicates whether the recipient has no TIN + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice Second Tin Notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets recipient_name * @@ -1626,25 +1836,25 @@ public function setZip($zip) } /** - * Gets foreign_province + * Gets non_us_province * * @return string|null */ - public function getForeignProvince() + public function getNonUsProvince() { - return $this->container['foreign_province']; + return $this->container['non_us_province']; } /** - * Sets foreign_province + * Sets non_us_province * - * @param string|null $foreign_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setForeignProvince($foreign_province) + public function setNonUsProvince($non_us_province) { - $this->container['foreign_province'] = $foreign_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1673,6 +1883,78 @@ public function setCountryCode($country_code) return $this; } + /** + * Gets account_number + * + * @return string|null + */ + public function getAccountNumber() + { + return $this->container['account_number']; + } + + /** + * Sets account_number + * + * @param string|null $account_number Account Number + * + * @return self + */ + public function setAccountNumber($account_number) + { + $this->container['account_number'] = $account_number; + + return $this; + } + + /** + * Gets office_code + * + * @return string|null + */ + public function getOfficeCode() + { + return $this->container['office_code']; + } + + /** + * Sets office_code + * + * @param string|null $office_code Office Code + * + * @return self + */ + public function setOfficeCode($office_code) + { + $this->container['office_code'] = $office_code; + + return $this; + } + + /** + * Gets fatca_filing_requirement + * + * @return bool|null + */ + public function getFatcaFilingRequirement() + { + return $this->container['fatca_filing_requirement']; + } + + /** + * Sets fatca_filing_requirement + * + * @param bool|null $fatca_filing_requirement FATCA filing requirement + * + * @return self + */ + public function setFatcaFilingRequirement($fatca_filing_requirement) + { + $this->container['fatca_filing_requirement'] = $fatca_filing_requirement; + + return $this; + } + /** * Gets validation_errors * @@ -1795,30 +2077,6 @@ public function setUniqueFormId($unique_form_id) return $this; } - /** - * Gets no_tin - * - * @return bool|null - */ - public function getNoTin() - { - return $this->container['no_tin']; - } - - /** - * Sets no_tin - * - * @param bool|null $no_tin No TIN indicator - * - * @return self - */ - public function setNoTin($no_tin) - { - $this->container['no_tin'] = $no_tin; - - return $this; - } - /** * Gets recipient_date_of_birth * @@ -2397,6 +2655,438 @@ public function setCoveredIndividuals($covered_individuals) return $this; } + /** + * Gets total_ordinary_dividends + * + * @return string|null + */ + public function getTotalOrdinaryDividends() + { + return $this->container['total_ordinary_dividends']; + } + + /** + * Sets total_ordinary_dividends + * + * @param string|null $total_ordinary_dividends Total ordinary dividends + * + * @return self + */ + public function setTotalOrdinaryDividends($total_ordinary_dividends) + { + $this->container['total_ordinary_dividends'] = $total_ordinary_dividends; + + return $this; + } + + /** + * Gets qualified_dividends + * + * @return string|null + */ + public function getQualifiedDividends() + { + return $this->container['qualified_dividends']; + } + + /** + * Sets qualified_dividends + * + * @param string|null $qualified_dividends Qualified dividends + * + * @return self + */ + public function setQualifiedDividends($qualified_dividends) + { + $this->container['qualified_dividends'] = $qualified_dividends; + + return $this; + } + + /** + * Gets total_capital_gain_distributions + * + * @return string|null + */ + public function getTotalCapitalGainDistributions() + { + return $this->container['total_capital_gain_distributions']; + } + + /** + * Sets total_capital_gain_distributions + * + * @param string|null $total_capital_gain_distributions Total capital gain distributions + * + * @return self + */ + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) + { + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; + + return $this; + } + + /** + * Gets unrecaptured_section1250_gain + * + * @return string|null + */ + public function getUnrecapturedSection1250Gain() + { + return $this->container['unrecaptured_section1250_gain']; + } + + /** + * Sets unrecaptured_section1250_gain + * + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain + * + * @return self + */ + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) + { + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; + + return $this; + } + + /** + * Gets section1202_gain + * + * @return string|null + */ + public function getSection1202Gain() + { + return $this->container['section1202_gain']; + } + + /** + * Sets section1202_gain + * + * @param string|null $section1202_gain Section 1202 gain + * + * @return self + */ + public function setSection1202Gain($section1202_gain) + { + $this->container['section1202_gain'] = $section1202_gain; + + return $this; + } + + /** + * Gets collectibles_gain + * + * @return string|null + */ + public function getCollectiblesGain() + { + return $this->container['collectibles_gain']; + } + + /** + * Sets collectibles_gain + * + * @param string|null $collectibles_gain Collectibles (28%) gain + * + * @return self + */ + public function setCollectiblesGain($collectibles_gain) + { + $this->container['collectibles_gain'] = $collectibles_gain; + + return $this; + } + + /** + * Gets section897_ordinary_dividends + * + * @return string|null + */ + public function getSection897OrdinaryDividends() + { + return $this->container['section897_ordinary_dividends']; + } + + /** + * Sets section897_ordinary_dividends + * + * @param string|null $section897_ordinary_dividends Section 897 ordinary dividends + * + * @return self + */ + public function setSection897OrdinaryDividends($section897_ordinary_dividends) + { + $this->container['section897_ordinary_dividends'] = $section897_ordinary_dividends; + + return $this; + } + + /** + * Gets section897_capital_gain + * + * @return string|null + */ + public function getSection897CapitalGain() + { + return $this->container['section897_capital_gain']; + } + + /** + * Sets section897_capital_gain + * + * @param string|null $section897_capital_gain Section 897 capital gain + * + * @return self + */ + public function setSection897CapitalGain($section897_capital_gain) + { + $this->container['section897_capital_gain'] = $section897_capital_gain; + + return $this; + } + + /** + * Gets nondividend_distributions + * + * @return string|null + */ + public function getNondividendDistributions() + { + return $this->container['nondividend_distributions']; + } + + /** + * Sets nondividend_distributions + * + * @param string|null $nondividend_distributions Nondividend distributions + * + * @return self + */ + public function setNondividendDistributions($nondividend_distributions) + { + $this->container['nondividend_distributions'] = $nondividend_distributions; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld Federal income tax withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets section199_a_dividends + * + * @return string|null + */ + public function getSection199ADividends() + { + return $this->container['section199_a_dividends']; + } + + /** + * Sets section199_a_dividends + * + * @param string|null $section199_a_dividends Section 199A dividends + * + * @return self + */ + public function setSection199ADividends($section199_a_dividends) + { + $this->container['section199_a_dividends'] = $section199_a_dividends; + + return $this; + } + + /** + * Gets investment_expenses + * + * @return string|null + */ + public function getInvestmentExpenses() + { + return $this->container['investment_expenses']; + } + + /** + * Sets investment_expenses + * + * @param string|null $investment_expenses Investment expenses + * + * @return self + */ + public function setInvestmentExpenses($investment_expenses) + { + $this->container['investment_expenses'] = $investment_expenses; + + return $this; + } + + /** + * Gets foreign_tax_paid + * + * @return string|null + */ + public function getForeignTaxPaid() + { + return $this->container['foreign_tax_paid']; + } + + /** + * Sets foreign_tax_paid + * + * @param string|null $foreign_tax_paid Foreign tax paid + * + * @return self + */ + public function setForeignTaxPaid($foreign_tax_paid) + { + $this->container['foreign_tax_paid'] = $foreign_tax_paid; + + return $this; + } + + /** + * Gets foreign_country_or_us_possession + * + * @return string|null + */ + public function getForeignCountryOrUsPossession() + { + return $this->container['foreign_country_or_us_possession']; + } + + /** + * Sets foreign_country_or_us_possession + * + * @param string|null $foreign_country_or_us_possession Foreign country or U.S. possession + * + * @return self + */ + public function setForeignCountryOrUsPossession($foreign_country_or_us_possession) + { + $this->container['foreign_country_or_us_possession'] = $foreign_country_or_us_possession; + + return $this; + } + + /** + * Gets cash_liquidation_distributions + * + * @return string|null + */ + public function getCashLiquidationDistributions() + { + return $this->container['cash_liquidation_distributions']; + } + + /** + * Sets cash_liquidation_distributions + * + * @param string|null $cash_liquidation_distributions Cash liquidation distributions + * + * @return self + */ + public function setCashLiquidationDistributions($cash_liquidation_distributions) + { + $this->container['cash_liquidation_distributions'] = $cash_liquidation_distributions; + + return $this; + } + + /** + * Gets noncash_liquidation_distributions + * + * @return string|null + */ + public function getNoncashLiquidationDistributions() + { + return $this->container['noncash_liquidation_distributions']; + } + + /** + * Sets noncash_liquidation_distributions + * + * @param string|null $noncash_liquidation_distributions Noncash liquidation distributions + * + * @return self + */ + public function setNoncashLiquidationDistributions($noncash_liquidation_distributions) + { + $this->container['noncash_liquidation_distributions'] = $noncash_liquidation_distributions; + + return $this; + } + + /** + * Gets exempt_interest_dividends + * + * @return string|null + */ + public function getExemptInterestDividends() + { + return $this->container['exempt_interest_dividends']; + } + + /** + * Sets exempt_interest_dividends + * + * @param string|null $exempt_interest_dividends Exempt-interest dividends + * + * @return self + */ + public function setExemptInterestDividends($exempt_interest_dividends) + { + $this->container['exempt_interest_dividends'] = $exempt_interest_dividends; + + return $this; + } + + /** + * Gets specified_private_activity_bond_interest_dividends + * + * @return string|null + */ + public function getSpecifiedPrivateActivityBondInterestDividends() + { + return $this->container['specified_private_activity_bond_interest_dividends']; + } + + /** + * Sets specified_private_activity_bond_interest_dividends + * + * @param string|null $specified_private_activity_bond_interest_dividends Specified private activity bond interest dividends + * + * @return self + */ + public function setSpecifiedPrivateActivityBondInterestDividends($specified_private_activity_bond_interest_dividends) + { + $this->container['specified_private_activity_bond_interest_dividends'] = $specified_private_activity_bond_interest_dividends; + + return $this; + } + /** * Gets filer_type * @@ -2585,30 +3275,6 @@ public function setPaymentTransactionNumber($payment_transaction_number) return $this; } - /** - * Gets federal_income_tax_withheld - * - * @return float|null - */ - public function getFederalIncomeTaxWithheld() - { - return $this->container['federal_income_tax_withheld']; - } - - /** - * Sets federal_income_tax_withheld - * - * @param float|null $federal_income_tax_withheld Federal income tax withheld - * - * @return self - */ - public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) - { - $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; - - return $this; - } - /** * Gets january * @@ -3018,25 +3684,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_and_health_care + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalAndHealthCare() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_and_health_care']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_and_health_care + * Sets medical_and_health_care_payments * - * @param float|null $medical_and_health_care Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalAndHealthCare($medical_and_health_care) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_and_health_care'] = $medical_and_health_care; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -3114,49 +3780,73 @@ public function setCropInsuranceProceeds($crop_insurance_proceeds) } /** - * Gets excess_golden_parachute + * Gets excess_golden_parachute_payments + * + * @return float|null + */ + public function getExcessGoldenParachutePayments() + { + return $this->container['excess_golden_parachute_payments']; + } + + /** + * Sets excess_golden_parachute_payments + * + * @param float|null $excess_golden_parachute_payments (Legacy field) Excess golden parachute payments + * + * @return self + */ + public function setExcessGoldenParachutePayments($excess_golden_parachute_payments) + { + $this->container['excess_golden_parachute_payments'] = $excess_golden_parachute_payments; + + return $this; + } + + /** + * Gets gross_proceeds_paid_to_attorney * * @return float|null */ - public function getExcessGoldenParachute() + public function getGrossProceedsPaidToAttorney() { - return $this->container['excess_golden_parachute']; + return $this->container['gross_proceeds_paid_to_attorney']; } /** - * Sets excess_golden_parachute + * Sets gross_proceeds_paid_to_attorney * - * @param float|null $excess_golden_parachute (Legacy field) Excess golden parachute payments + * @param float|null $gross_proceeds_paid_to_attorney Gross proceeds paid to an attorney * * @return self */ - public function setExcessGoldenParachute($excess_golden_parachute) + public function setGrossProceedsPaidToAttorney($gross_proceeds_paid_to_attorney) { - $this->container['excess_golden_parachute'] = $excess_golden_parachute; + $this->container['gross_proceeds_paid_to_attorney'] = $gross_proceeds_paid_to_attorney; return $this; } /** - * Gets gross_amount_paid_attorney + * Gets fish_purchased_for_resale * * @return float|null */ - public function getGrossAmountPaidAttorney() + public function getFishPurchasedForResale() { - return $this->container['gross_amount_paid_attorney']; + return $this->container['fish_purchased_for_resale']; } /** - * Sets gross_amount_paid_attorney + * Sets fish_purchased_for_resale * - * @param float|null $gross_amount_paid_attorney Gross proceeds paid to an attorney + * @param float|null $fish_purchased_for_resale Fish purchased for resale * * @return self */ - public function setGrossAmountPaidAttorney($gross_amount_paid_attorney) + public function setFishPurchasedForResale($fish_purchased_for_resale) { - $this->container['gross_amount_paid_attorney'] = $gross_amount_paid_attorney; + $this->container['fish_purchased_for_resale'] = $fish_purchased_for_resale; return $this; } @@ -3186,25 +3876,25 @@ public function setSection409ADeferrals($section409_a_deferrals) } /** - * Gets section409_a_income + * Gets nonqualified_deferred_compensation * * @return float|null */ - public function getSection409AIncome() + public function getNonqualifiedDeferredCompensation() { - return $this->container['section409_a_income']; + return $this->container['nonqualified_deferred_compensation']; } /** - * Sets section409_a_income + * Sets nonqualified_deferred_compensation * - * @param float|null $section409_a_income Nonqualified deferred compensation + * @param float|null $nonqualified_deferred_compensation Nonqualified deferred compensation * * @return self */ - public function setSection409AIncome($section409_a_income) + public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compensation) { - $this->container['section409_a_income'] = $section409_a_income; + $this->container['nonqualified_deferred_compensation'] = $nonqualified_deferred_compensation; return $this; } diff --git a/lib/Model/A1099/V2/ICreateForm1099Request.php b/lib/Model/A1099/V2/ICreateForm1099Request.php index 3e5aa52..85a4dc9 100644 --- a/lib/Model/A1099/V2/ICreateForm1099Request.php +++ b/lib/Model/A1099/V2/ICreateForm1099Request.php @@ -73,8 +73,8 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPITypes = [ 'total_ordinary_dividends' => 'string', 'qualified_dividends' => 'string', - 'total_capital_gain_distr' => 'string', - 'unrecap_sec1250_gain' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', 'section1202_gain' => 'string', 'collectibles_gain' => 'string', 'section897_ordinary_dividends' => 'string', @@ -102,24 +102,25 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', - 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -128,6 +129,25 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'section409_a_deferrals' => 'float', 'excess_golden_parachute_payments' => 'float', 'nonqualified_deferred_compensation' => 'float', + 'filer_type' => 'string', + 'payment_type' => 'string', + 'payment_settlement_entity_name_phone_number' => 'string', + 'gross_amount_payment_card' => 'float', + 'card_not_present_transactions' => 'float', + 'merchant_category_code' => 'string', + 'payment_transaction_number' => 'float', + 'january' => 'float', + 'february' => 'float', + 'march' => 'float', + 'april' => 'float', + 'may' => 'float', + 'june' => 'float', + 'july' => 'float', + 'august' => 'float', + 'sept' => 'float', + 'october' => 'float', + 'november' => 'float', + 'december' => 'float', 'nonemployee_compensation' => 'float' ]; @@ -141,8 +161,8 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPIFormats = [ 'total_ordinary_dividends' => null, 'qualified_dividends' => null, - 'total_capital_gain_distr' => null, - 'unrecap_sec1250_gain' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, 'section1202_gain' => null, 'collectibles_gain' => null, 'section897_ordinary_dividends' => null, @@ -170,24 +190,25 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null, - 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -196,6 +217,25 @@ class ICreateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'section409_a_deferrals' => 'double', 'excess_golden_parachute_payments' => 'double', 'nonqualified_deferred_compensation' => 'double', + 'filer_type' => null, + 'payment_type' => null, + 'payment_settlement_entity_name_phone_number' => null, + 'gross_amount_payment_card' => 'double', + 'card_not_present_transactions' => 'double', + 'merchant_category_code' => null, + 'payment_transaction_number' => 'double', + 'january' => 'double', + 'february' => 'double', + 'march' => 'double', + 'april' => 'double', + 'may' => 'double', + 'june' => 'double', + 'july' => 'double', + 'august' => 'double', + 'sept' => 'double', + 'october' => 'double', + 'november' => 'double', + 'december' => 'double', 'nonemployee_compensation' => 'double' ]; @@ -228,8 +268,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'total_ordinary_dividends' => 'totalOrdinaryDividends', 'qualified_dividends' => 'qualifiedDividends', - 'total_capital_gain_distr' => 'totalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'unrecapSec1250Gain', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', 'section1202_gain' => 'section1202Gain', 'collectibles_gain' => 'collectiblesGain', 'section897_ordinary_dividends' => 'section897OrdinaryDividends', @@ -257,24 +297,25 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding', - 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -283,6 +324,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'section409ADeferrals', 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', + 'filer_type' => 'filerType', + 'payment_type' => 'paymentType', + 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'grossAmountPaymentCard', + 'card_not_present_transactions' => 'cardNotPresentTransactions', + 'merchant_category_code' => 'merchantCategoryCode', + 'payment_transaction_number' => 'paymentTransactionNumber', + 'january' => 'january', + 'february' => 'february', + 'march' => 'march', + 'april' => 'april', + 'may' => 'may', + 'june' => 'june', + 'july' => 'july', + 'august' => 'august', + 'sept' => 'sept', + 'october' => 'october', + 'november' => 'november', + 'december' => 'december', 'nonemployee_compensation' => 'nonemployeeCompensation' ]; @@ -294,8 +354,8 @@ public static function openAPIFormats() protected static $setters = [ 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', 'qualified_dividends' => 'setQualifiedDividends', - 'total_capital_gain_distr' => 'setTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'setUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', 'section1202_gain' => 'setSection1202Gain', 'collectibles_gain' => 'setCollectiblesGain', 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', @@ -323,24 +383,25 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding', - 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -349,6 +410,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'setSection409ADeferrals', 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', + 'filer_type' => 'setFilerType', + 'payment_type' => 'setPaymentType', + 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'setGrossAmountPaymentCard', + 'card_not_present_transactions' => 'setCardNotPresentTransactions', + 'merchant_category_code' => 'setMerchantCategoryCode', + 'payment_transaction_number' => 'setPaymentTransactionNumber', + 'january' => 'setJanuary', + 'february' => 'setFebruary', + 'march' => 'setMarch', + 'april' => 'setApril', + 'may' => 'setMay', + 'june' => 'setJune', + 'july' => 'setJuly', + 'august' => 'setAugust', + 'sept' => 'setSept', + 'october' => 'setOctober', + 'november' => 'setNovember', + 'december' => 'setDecember', 'nonemployee_compensation' => 'setNonemployeeCompensation' ]; @@ -360,8 +440,8 @@ public static function openAPIFormats() protected static $getters = [ 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', 'qualified_dividends' => 'getQualifiedDividends', - 'total_capital_gain_distr' => 'getTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'getUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', 'section1202_gain' => 'getSection1202Gain', 'collectibles_gain' => 'getCollectiblesGain', 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', @@ -389,24 +469,25 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding', - 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -415,6 +496,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'getSection409ADeferrals', 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', + 'filer_type' => 'getFilerType', + 'payment_type' => 'getPaymentType', + 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'getGrossAmountPaymentCard', + 'card_not_present_transactions' => 'getCardNotPresentTransactions', + 'merchant_category_code' => 'getMerchantCategoryCode', + 'payment_transaction_number' => 'getPaymentTransactionNumber', + 'january' => 'getJanuary', + 'february' => 'getFebruary', + 'march' => 'getMarch', + 'april' => 'getApril', + 'may' => 'getMay', + 'june' => 'getJune', + 'july' => 'getJuly', + 'august' => 'getAugust', + 'sept' => 'getSept', + 'october' => 'getOctober', + 'november' => 'getNovember', + 'december' => 'getDecember', 'nonemployee_compensation' => 'getNonemployeeCompensation' ]; @@ -466,10 +566,16 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; const TIN_TYPE_ATIN = 'ATIN'; + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; /** * Gets allowable values of the enum @@ -486,6 +592,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -504,6 +611,33 @@ public function getTinTypeAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + /** * Associative array for storing property values * @@ -521,8 +655,8 @@ public function __construct(array $data = null) { $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; - $this->container['total_capital_gain_distr'] = $data['total_capital_gain_distr'] ?? null; - $this->container['unrecap_sec1250_gain'] = $data['unrecap_sec1250_gain'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; @@ -550,24 +684,25 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -576,6 +711,25 @@ public function __construct(array $data = null) $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; + $this->container['filer_type'] = $data['filer_type'] ?? null; + $this->container['payment_type'] = $data['payment_type'] ?? null; + $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; + $this->container['gross_amount_payment_card'] = $data['gross_amount_payment_card'] ?? null; + $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; + $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; + $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; + $this->container['january'] = $data['january'] ?? null; + $this->container['february'] = $data['february'] ?? null; + $this->container['march'] = $data['march'] ?? null; + $this->container['april'] = $data['april'] ?? null; + $this->container['may'] = $data['may'] ?? null; + $this->container['june'] = $data['june'] ?? null; + $this->container['july'] = $data['july'] ?? null; + $this->container['august'] = $data['august'] ?? null; + $this->container['sept'] = $data['sept'] ?? null; + $this->container['october'] = $data['october'] ?? null; + $this->container['november'] = $data['november'] ?? null; + $this->container['december'] = $data['december'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; } @@ -597,13 +751,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -634,6 +781,24 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'country_code', the character length must be bigger than or equal to 1."; } + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + if ($this->container['nonemployee_compensation'] === null) { $invalidProperties[] = "'nonemployee_compensation' can't be null"; } @@ -701,49 +866,49 @@ public function setQualifiedDividends($qualified_dividends) } /** - * Gets total_capital_gain_distr + * Gets total_capital_gain_distributions * * @return string|null */ - public function getTotalCapitalGainDistr() + public function getTotalCapitalGainDistributions() { - return $this->container['total_capital_gain_distr']; + return $this->container['total_capital_gain_distributions']; } /** - * Sets total_capital_gain_distr + * Sets total_capital_gain_distributions * - * @param string|null $total_capital_gain_distr Total capital gain distributions + * @param string|null $total_capital_gain_distributions Total capital gain distributions * * @return self */ - public function setTotalCapitalGainDistr($total_capital_gain_distr) + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) { - $this->container['total_capital_gain_distr'] = $total_capital_gain_distr; + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; return $this; } /** - * Gets unrecap_sec1250_gain + * Gets unrecaptured_section1250_gain * * @return string|null */ - public function getUnrecapSec1250Gain() + public function getUnrecapturedSection1250Gain() { - return $this->container['unrecap_sec1250_gain']; + return $this->container['unrecaptured_section1250_gain']; } /** - * Sets unrecap_sec1250_gain + * Sets unrecaptured_section1250_gain * - * @param string|null $unrecap_sec1250_gain Unrecaptured Section 1250 gain + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain * * @return self */ - public function setUnrecapSec1250Gain($unrecap_sec1250_gain) + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) { - $this->container['unrecap_sec1250_gain'] = $unrecap_sec1250_gain; + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; return $this; } @@ -1217,7 +1382,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1227,17 +1392,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling ICreateForm1099Request., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1432,25 +1592,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1504,25 +1664,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1653,73 +1813,97 @@ public function setTinMatch($tin_match) } /** - * Gets address_verification + * Gets no_tin * * @return bool|null */ - public function getAddressVerification() + public function getNoTin() { - return $this->container['address_verification']; + return $this->container['no_tin']; } /** - * Sets address_verification + * Sets no_tin * - * @param bool|null $address_verification Boolean indicating that address verification should be scheduled for this form + * @param bool|null $no_tin Indicates whether the recipient has no TIN * * @return self */ - public function setAddressVerification($address_verification) + public function setNoTin($no_tin) { - $this->container['address_verification'] = $address_verification; + $this->container['no_tin'] = $no_tin; return $this; } /** - * Gets state_and_local_withholding + * Gets second_tin_notice * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + * @return bool|null */ - public function getStateAndLocalWithholding() + public function getSecondTinNotice() { - return $this->container['state_and_local_withholding']; + return $this->container['second_tin_notice']; } /** - * Sets state_and_local_withholding + * Sets second_tin_notice * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding State and local withholding information + * @param bool|null $second_tin_notice Second TIN notice in three years * * @return self */ - public function setStateAndLocalWithholding($state_and_local_withholding) + public function setSecondTinNotice($second_tin_notice) { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; + $this->container['second_tin_notice'] = $second_tin_notice; return $this; } /** - * Gets second_tin_notice + * Gets address_verification * * @return bool|null */ - public function getSecondTinNotice() + public function getAddressVerification() { - return $this->container['second_tin_notice']; + return $this->container['address_verification']; } /** - * Sets second_tin_notice + * Sets address_verification * - * @param bool|null $second_tin_notice Second TIN notice + * @param bool|null $address_verification Boolean indicating that address verification should be scheduled for this form * * @return self */ - public function setSecondTinNotice($second_tin_notice) + public function setAddressVerification($address_verification) { - $this->container['second_tin_notice'] = $second_tin_notice; + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding State and local withholding information + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; return $this; } @@ -1845,25 +2029,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -2060,6 +2244,482 @@ public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compe return $this; } + /** + * Gets filer_type + * + * @return string|null + */ + public function getFilerType() + { + return $this->container['filer_type']; + } + + /** + * Sets filer_type + * + * @param string|null $filer_type Filer type (PSE or EPF) + * + * @return self + */ + public function setFilerType($filer_type) + { + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['filer_type'] = $filer_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string|null + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string|null $payment_type Payment type (payment card or third party network) + * + * @return self + */ + public function setPaymentType($payment_type) + { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets payment_settlement_entity_name_phone_number + * + * @return string|null + */ + public function getPaymentSettlementEntityNamePhoneNumber() + { + return $this->container['payment_settlement_entity_name_phone_number']; + } + + /** + * Sets payment_settlement_entity_name_phone_number + * + * @param string|null $payment_settlement_entity_name_phone_number Payment settlement entity name and phone number + * + * @return self + */ + public function setPaymentSettlementEntityNamePhoneNumber($payment_settlement_entity_name_phone_number) + { + $this->container['payment_settlement_entity_name_phone_number'] = $payment_settlement_entity_name_phone_number; + + return $this; + } + + /** + * Gets gross_amount_payment_card + * + * @return float|null + */ + public function getGrossAmountPaymentCard() + { + return $this->container['gross_amount_payment_card']; + } + + /** + * Sets gross_amount_payment_card + * + * @param float|null $gross_amount_payment_card Gross amount of payment card/third party network transactions + * + * @return self + */ + public function setGrossAmountPaymentCard($gross_amount_payment_card) + { + $this->container['gross_amount_payment_card'] = $gross_amount_payment_card; + + return $this; + } + + /** + * Gets card_not_present_transactions + * + * @return float|null + */ + public function getCardNotPresentTransactions() + { + return $this->container['card_not_present_transactions']; + } + + /** + * Sets card_not_present_transactions + * + * @param float|null $card_not_present_transactions Card not present transactions + * + * @return self + */ + public function setCardNotPresentTransactions($card_not_present_transactions) + { + $this->container['card_not_present_transactions'] = $card_not_present_transactions; + + return $this; + } + + /** + * Gets merchant_category_code + * + * @return string|null + */ + public function getMerchantCategoryCode() + { + return $this->container['merchant_category_code']; + } + + /** + * Sets merchant_category_code + * + * @param string|null $merchant_category_code Merchant category code + * + * @return self + */ + public function setMerchantCategoryCode($merchant_category_code) + { + $this->container['merchant_category_code'] = $merchant_category_code; + + return $this; + } + + /** + * Gets payment_transaction_number + * + * @return float|null + */ + public function getPaymentTransactionNumber() + { + return $this->container['payment_transaction_number']; + } + + /** + * Sets payment_transaction_number + * + * @param float|null $payment_transaction_number Number of payment transactions + * + * @return self + */ + public function setPaymentTransactionNumber($payment_transaction_number) + { + $this->container['payment_transaction_number'] = $payment_transaction_number; + + return $this; + } + + /** + * Gets january + * + * @return float|null + */ + public function getJanuary() + { + return $this->container['january']; + } + + /** + * Sets january + * + * @param float|null $january January gross payments + * + * @return self + */ + public function setJanuary($january) + { + $this->container['january'] = $january; + + return $this; + } + + /** + * Gets february + * + * @return float|null + */ + public function getFebruary() + { + return $this->container['february']; + } + + /** + * Sets february + * + * @param float|null $february February gross payments + * + * @return self + */ + public function setFebruary($february) + { + $this->container['february'] = $february; + + return $this; + } + + /** + * Gets march + * + * @return float|null + */ + public function getMarch() + { + return $this->container['march']; + } + + /** + * Sets march + * + * @param float|null $march March gross payments + * + * @return self + */ + public function setMarch($march) + { + $this->container['march'] = $march; + + return $this; + } + + /** + * Gets april + * + * @return float|null + */ + public function getApril() + { + return $this->container['april']; + } + + /** + * Sets april + * + * @param float|null $april April gross payments + * + * @return self + */ + public function setApril($april) + { + $this->container['april'] = $april; + + return $this; + } + + /** + * Gets may + * + * @return float|null + */ + public function getMay() + { + return $this->container['may']; + } + + /** + * Sets may + * + * @param float|null $may May gross payments + * + * @return self + */ + public function setMay($may) + { + $this->container['may'] = $may; + + return $this; + } + + /** + * Gets june + * + * @return float|null + */ + public function getJune() + { + return $this->container['june']; + } + + /** + * Sets june + * + * @param float|null $june June gross payments + * + * @return self + */ + public function setJune($june) + { + $this->container['june'] = $june; + + return $this; + } + + /** + * Gets july + * + * @return float|null + */ + public function getJuly() + { + return $this->container['july']; + } + + /** + * Sets july + * + * @param float|null $july July gross payments + * + * @return self + */ + public function setJuly($july) + { + $this->container['july'] = $july; + + return $this; + } + + /** + * Gets august + * + * @return float|null + */ + public function getAugust() + { + return $this->container['august']; + } + + /** + * Sets august + * + * @param float|null $august August gross payments + * + * @return self + */ + public function setAugust($august) + { + $this->container['august'] = $august; + + return $this; + } + + /** + * Gets sept + * + * @return float|null + */ + public function getSept() + { + return $this->container['sept']; + } + + /** + * Sets sept + * + * @param float|null $sept September gross payments + * + * @return self + */ + public function setSept($sept) + { + $this->container['sept'] = $sept; + + return $this; + } + + /** + * Gets october + * + * @return float|null + */ + public function getOctober() + { + return $this->container['october']; + } + + /** + * Sets october + * + * @param float|null $october October gross payments + * + * @return self + */ + public function setOctober($october) + { + $this->container['october'] = $october; + + return $this; + } + + /** + * Gets november + * + * @return float|null + */ + public function getNovember() + { + return $this->container['november']; + } + + /** + * Sets november + * + * @param float|null $november November gross payments + * + * @return self + */ + public function setNovember($november) + { + $this->container['november'] = $november; + + return $this; + } + + /** + * Gets december + * + * @return float|null + */ + public function getDecember() + { + return $this->container['december']; + } + + /** + * Sets december + * + * @param float|null $december December gross payments + * + * @return self + */ + public function setDecember($december) + { + $this->container['december'] = $december; + + return $this; + } + /** * Gets nonemployee_compensation * diff --git a/lib/Model/A1099/V2/IUpdateForm1099Request.php b/lib/Model/A1099/V2/IUpdateForm1099Request.php index 28c7a09..6710430 100644 --- a/lib/Model/A1099/V2/IUpdateForm1099Request.php +++ b/lib/Model/A1099/V2/IUpdateForm1099Request.php @@ -73,8 +73,8 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPITypes = [ 'total_ordinary_dividends' => 'string', 'qualified_dividends' => 'string', - 'total_capital_gain_distr' => 'string', - 'unrecap_sec1250_gain' => 'string', + 'total_capital_gain_distributions' => 'string', + 'unrecaptured_section1250_gain' => 'string', 'section1202_gain' => 'string', 'collectibles_gain' => 'string', 'section897_ordinary_dividends' => 'string', @@ -102,24 +102,25 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest', - 'second_tin_notice' => 'bool', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -128,6 +129,25 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'section409_a_deferrals' => 'float', 'excess_golden_parachute_payments' => 'float', 'nonqualified_deferred_compensation' => 'float', + 'filer_type' => 'string', + 'payment_type' => 'string', + 'payment_settlement_entity_name_phone_number' => 'string', + 'gross_amount_payment_card' => 'float', + 'card_not_present_transactions' => 'float', + 'merchant_category_code' => 'string', + 'payment_transaction_number' => 'float', + 'january' => 'float', + 'february' => 'float', + 'march' => 'float', + 'april' => 'float', + 'may' => 'float', + 'june' => 'float', + 'july' => 'float', + 'august' => 'float', + 'sept' => 'float', + 'october' => 'float', + 'november' => 'float', + 'december' => 'float', 'nonemployee_compensation' => 'float' ]; @@ -141,8 +161,8 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial protected static $openAPIFormats = [ 'total_ordinary_dividends' => null, 'qualified_dividends' => null, - 'total_capital_gain_distr' => null, - 'unrecap_sec1250_gain' => null, + 'total_capital_gain_distributions' => null, + 'unrecaptured_section1250_gain' => null, 'section1202_gain' => null, 'collectibles_gain' => null, 'section897_ordinary_dividends' => null, @@ -170,24 +190,25 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'state_and_local_withholding' => null, - 'second_tin_notice' => null, 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -196,6 +217,25 @@ class IUpdateForm1099Request implements ModelInterface, ArrayAccess, \JsonSerial 'section409_a_deferrals' => 'double', 'excess_golden_parachute_payments' => 'double', 'nonqualified_deferred_compensation' => 'double', + 'filer_type' => null, + 'payment_type' => null, + 'payment_settlement_entity_name_phone_number' => null, + 'gross_amount_payment_card' => 'double', + 'card_not_present_transactions' => 'double', + 'merchant_category_code' => null, + 'payment_transaction_number' => 'double', + 'january' => 'double', + 'february' => 'double', + 'march' => 'double', + 'april' => 'double', + 'may' => 'double', + 'june' => 'double', + 'july' => 'double', + 'august' => 'double', + 'sept' => 'double', + 'october' => 'double', + 'november' => 'double', + 'december' => 'double', 'nonemployee_compensation' => 'double' ]; @@ -228,8 +268,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'total_ordinary_dividends' => 'totalOrdinaryDividends', 'qualified_dividends' => 'qualifiedDividends', - 'total_capital_gain_distr' => 'totalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'unrecapSec1250Gain', + 'total_capital_gain_distributions' => 'totalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'unrecapturedSection1250Gain', 'section1202_gain' => 'section1202Gain', 'collectibles_gain' => 'collectiblesGain', 'section897_ordinary_dividends' => 'section897OrdinaryDividends', @@ -257,24 +297,25 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'state_and_local_withholding' => 'stateAndLocalWithholding', - 'second_tin_notice' => 'secondTinNotice', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -283,6 +324,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'section409ADeferrals', 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', + 'filer_type' => 'filerType', + 'payment_type' => 'paymentType', + 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'grossAmountPaymentCard', + 'card_not_present_transactions' => 'cardNotPresentTransactions', + 'merchant_category_code' => 'merchantCategoryCode', + 'payment_transaction_number' => 'paymentTransactionNumber', + 'january' => 'january', + 'february' => 'february', + 'march' => 'march', + 'april' => 'april', + 'may' => 'may', + 'june' => 'june', + 'july' => 'july', + 'august' => 'august', + 'sept' => 'sept', + 'october' => 'october', + 'november' => 'november', + 'december' => 'december', 'nonemployee_compensation' => 'nonemployeeCompensation' ]; @@ -294,8 +354,8 @@ public static function openAPIFormats() protected static $setters = [ 'total_ordinary_dividends' => 'setTotalOrdinaryDividends', 'qualified_dividends' => 'setQualifiedDividends', - 'total_capital_gain_distr' => 'setTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'setUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'setTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'setUnrecapturedSection1250Gain', 'section1202_gain' => 'setSection1202Gain', 'collectibles_gain' => 'setCollectiblesGain', 'section897_ordinary_dividends' => 'setSection897OrdinaryDividends', @@ -323,24 +383,25 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'state_and_local_withholding' => 'setStateAndLocalWithholding', - 'second_tin_notice' => 'setSecondTinNotice', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -349,6 +410,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'setSection409ADeferrals', 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', + 'filer_type' => 'setFilerType', + 'payment_type' => 'setPaymentType', + 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'setGrossAmountPaymentCard', + 'card_not_present_transactions' => 'setCardNotPresentTransactions', + 'merchant_category_code' => 'setMerchantCategoryCode', + 'payment_transaction_number' => 'setPaymentTransactionNumber', + 'january' => 'setJanuary', + 'february' => 'setFebruary', + 'march' => 'setMarch', + 'april' => 'setApril', + 'may' => 'setMay', + 'june' => 'setJune', + 'july' => 'setJuly', + 'august' => 'setAugust', + 'sept' => 'setSept', + 'october' => 'setOctober', + 'november' => 'setNovember', + 'december' => 'setDecember', 'nonemployee_compensation' => 'setNonemployeeCompensation' ]; @@ -360,8 +440,8 @@ public static function openAPIFormats() protected static $getters = [ 'total_ordinary_dividends' => 'getTotalOrdinaryDividends', 'qualified_dividends' => 'getQualifiedDividends', - 'total_capital_gain_distr' => 'getTotalCapitalGainDistr', - 'unrecap_sec1250_gain' => 'getUnrecapSec1250Gain', + 'total_capital_gain_distributions' => 'getTotalCapitalGainDistributions', + 'unrecaptured_section1250_gain' => 'getUnrecapturedSection1250Gain', 'section1202_gain' => 'getSection1202Gain', 'collectibles_gain' => 'getCollectiblesGain', 'section897_ordinary_dividends' => 'getSection897OrdinaryDividends', @@ -389,24 +469,25 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'state_and_local_withholding' => 'getStateAndLocalWithholding', - 'second_tin_notice' => 'getSecondTinNotice', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -415,6 +496,25 @@ public static function openAPIFormats() 'section409_a_deferrals' => 'getSection409ADeferrals', 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', + 'filer_type' => 'getFilerType', + 'payment_type' => 'getPaymentType', + 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'getGrossAmountPaymentCard', + 'card_not_present_transactions' => 'getCardNotPresentTransactions', + 'merchant_category_code' => 'getMerchantCategoryCode', + 'payment_transaction_number' => 'getPaymentTransactionNumber', + 'january' => 'getJanuary', + 'february' => 'getFebruary', + 'march' => 'getMarch', + 'april' => 'getApril', + 'may' => 'getMay', + 'june' => 'getJune', + 'july' => 'getJuly', + 'august' => 'getAugust', + 'sept' => 'getSept', + 'october' => 'getOctober', + 'november' => 'getNovember', + 'december' => 'getDecember', 'nonemployee_compensation' => 'getNonemployeeCompensation' ]; @@ -466,10 +566,16 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; const TIN_TYPE_ATIN = 'ATIN'; + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; /** * Gets allowable values of the enum @@ -486,6 +592,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -504,6 +611,33 @@ public function getTinTypeAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + /** * Associative array for storing property values * @@ -521,8 +655,8 @@ public function __construct(array $data = null) { $this->container['total_ordinary_dividends'] = $data['total_ordinary_dividends'] ?? null; $this->container['qualified_dividends'] = $data['qualified_dividends'] ?? null; - $this->container['total_capital_gain_distr'] = $data['total_capital_gain_distr'] ?? null; - $this->container['unrecap_sec1250_gain'] = $data['unrecap_sec1250_gain'] ?? null; + $this->container['total_capital_gain_distributions'] = $data['total_capital_gain_distributions'] ?? null; + $this->container['unrecaptured_section1250_gain'] = $data['unrecaptured_section1250_gain'] ?? null; $this->container['section1202_gain'] = $data['section1202_gain'] ?? null; $this->container['collectibles_gain'] = $data['collectibles_gain'] ?? null; $this->container['section897_ordinary_dividends'] = $data['section897_ordinary_dividends'] ?? null; @@ -550,24 +684,25 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -576,6 +711,25 @@ public function __construct(array $data = null) $this->container['section409_a_deferrals'] = $data['section409_a_deferrals'] ?? null; $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; + $this->container['filer_type'] = $data['filer_type'] ?? null; + $this->container['payment_type'] = $data['payment_type'] ?? null; + $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; + $this->container['gross_amount_payment_card'] = $data['gross_amount_payment_card'] ?? null; + $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; + $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; + $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; + $this->container['january'] = $data['january'] ?? null; + $this->container['february'] = $data['february'] ?? null; + $this->container['march'] = $data['march'] ?? null; + $this->container['april'] = $data['april'] ?? null; + $this->container['may'] = $data['may'] ?? null; + $this->container['june'] = $data['june'] ?? null; + $this->container['july'] = $data['july'] ?? null; + $this->container['august'] = $data['august'] ?? null; + $this->container['sept'] = $data['sept'] ?? null; + $this->container['october'] = $data['october'] ?? null; + $this->container['november'] = $data['november'] ?? null; + $this->container['december'] = $data['december'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; } @@ -597,13 +751,6 @@ public function listInvalidProperties() ); } - if ($this->container['recipient_name'] === null) { - $invalidProperties[] = "'recipient_name' can't be null"; - } - if ((mb_strlen($this->container['recipient_name']) < 1)) { - $invalidProperties[] = "invalid value for 'recipient_name', the character length must be bigger than or equal to 1."; - } - $allowedValues = $this->getTinTypeAllowableValues(); if (!is_null($this->container['tin_type']) && !in_array($this->container['tin_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -634,6 +781,24 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'country_code', the character length must be bigger than or equal to 1."; } + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + if ($this->container['nonemployee_compensation'] === null) { $invalidProperties[] = "'nonemployee_compensation' can't be null"; } @@ -701,49 +866,49 @@ public function setQualifiedDividends($qualified_dividends) } /** - * Gets total_capital_gain_distr + * Gets total_capital_gain_distributions * * @return string|null */ - public function getTotalCapitalGainDistr() + public function getTotalCapitalGainDistributions() { - return $this->container['total_capital_gain_distr']; + return $this->container['total_capital_gain_distributions']; } /** - * Sets total_capital_gain_distr + * Sets total_capital_gain_distributions * - * @param string|null $total_capital_gain_distr Total capital gain distributions + * @param string|null $total_capital_gain_distributions Total capital gain distributions * * @return self */ - public function setTotalCapitalGainDistr($total_capital_gain_distr) + public function setTotalCapitalGainDistributions($total_capital_gain_distributions) { - $this->container['total_capital_gain_distr'] = $total_capital_gain_distr; + $this->container['total_capital_gain_distributions'] = $total_capital_gain_distributions; return $this; } /** - * Gets unrecap_sec1250_gain + * Gets unrecaptured_section1250_gain * * @return string|null */ - public function getUnrecapSec1250Gain() + public function getUnrecapturedSection1250Gain() { - return $this->container['unrecap_sec1250_gain']; + return $this->container['unrecaptured_section1250_gain']; } /** - * Sets unrecap_sec1250_gain + * Sets unrecaptured_section1250_gain * - * @param string|null $unrecap_sec1250_gain Unrecaptured Section 1250 gain + * @param string|null $unrecaptured_section1250_gain Unrecaptured Section 1250 gain * * @return self */ - public function setUnrecapSec1250Gain($unrecap_sec1250_gain) + public function setUnrecapturedSection1250Gain($unrecaptured_section1250_gain) { - $this->container['unrecap_sec1250_gain'] = $unrecap_sec1250_gain; + $this->container['unrecaptured_section1250_gain'] = $unrecaptured_section1250_gain; return $this; } @@ -1217,7 +1382,7 @@ public function setRecipientTin($recipient_tin) /** * Gets recipient_name * - * @return string + * @return string|null */ public function getRecipientName() { @@ -1227,17 +1392,12 @@ public function getRecipientName() /** * Sets recipient_name * - * @param string $recipient_name Recipient name + * @param string|null $recipient_name Recipient name * * @return self */ public function setRecipientName($recipient_name) { - - if ((mb_strlen($recipient_name) < 1)) { - throw new \InvalidArgumentException('invalid length for $recipient_name when calling IUpdateForm1099Request., must be bigger than or equal to 1.'); - } - $this->container['recipient_name'] = $recipient_name; return $this; @@ -1432,25 +1592,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email Recipient email address + * @param string|null $email Recipient email address * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1504,25 +1664,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province Foreign province + * @param string|null $non_us_province Foreign province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1653,73 +1813,97 @@ public function setTinMatch($tin_match) } /** - * Gets address_verification + * Gets no_tin * * @return bool|null */ - public function getAddressVerification() + public function getNoTin() { - return $this->container['address_verification']; + return $this->container['no_tin']; } /** - * Sets address_verification + * Sets no_tin * - * @param bool|null $address_verification Boolean indicating that address verification should be scheduled for this form + * @param bool|null $no_tin Indicates whether the recipient has no TIN * * @return self */ - public function setAddressVerification($address_verification) + public function setNoTin($no_tin) { - $this->container['address_verification'] = $address_verification; + $this->container['no_tin'] = $no_tin; return $this; } /** - * Gets state_and_local_withholding + * Gets second_tin_notice * - * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + * @return bool|null */ - public function getStateAndLocalWithholding() + public function getSecondTinNotice() { - return $this->container['state_and_local_withholding']; + return $this->container['second_tin_notice']; } /** - * Sets state_and_local_withholding + * Sets second_tin_notice * - * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding State and local withholding information + * @param bool|null $second_tin_notice Second TIN notice in three years * * @return self */ - public function setStateAndLocalWithholding($state_and_local_withholding) + public function setSecondTinNotice($second_tin_notice) { - $this->container['state_and_local_withholding'] = $state_and_local_withholding; + $this->container['second_tin_notice'] = $second_tin_notice; return $this; } /** - * Gets second_tin_notice + * Gets address_verification * * @return bool|null */ - public function getSecondTinNotice() + public function getAddressVerification() { - return $this->container['second_tin_notice']; + return $this->container['address_verification']; } /** - * Sets second_tin_notice + * Sets address_verification * - * @param bool|null $second_tin_notice Second TIN notice + * @param bool|null $address_verification Boolean indicating that address verification should be scheduled for this form * * @return self */ - public function setSecondTinNotice($second_tin_notice) + public function setAddressVerification($address_verification) { - $this->container['second_tin_notice'] = $second_tin_notice; + $this->container['address_verification'] = $address_verification; + + return $this; + } + + /** + * Gets state_and_local_withholding + * + * @return \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null + */ + public function getStateAndLocalWithholding() + { + return $this->container['state_and_local_withholding']; + } + + /** + * Sets state_and_local_withholding + * + * @param \Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingRequest|null $state_and_local_withholding State and local withholding information + * + * @return self + */ + public function setStateAndLocalWithholding($state_and_local_withholding) + { + $this->container['state_and_local_withholding'] = $state_and_local_withholding; return $this; } @@ -1845,25 +2029,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments Medical and health care payments + * @param float|null $medical_and_health_care_payments Medical and health care payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -2060,6 +2244,482 @@ public function setNonqualifiedDeferredCompensation($nonqualified_deferred_compe return $this; } + /** + * Gets filer_type + * + * @return string|null + */ + public function getFilerType() + { + return $this->container['filer_type']; + } + + /** + * Sets filer_type + * + * @param string|null $filer_type Filer type (PSE or EPF) + * + * @return self + */ + public function setFilerType($filer_type) + { + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['filer_type'] = $filer_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string|null + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string|null $payment_type Payment type (payment card or third party network) + * + * @return self + */ + public function setPaymentType($payment_type) + { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets payment_settlement_entity_name_phone_number + * + * @return string|null + */ + public function getPaymentSettlementEntityNamePhoneNumber() + { + return $this->container['payment_settlement_entity_name_phone_number']; + } + + /** + * Sets payment_settlement_entity_name_phone_number + * + * @param string|null $payment_settlement_entity_name_phone_number Payment settlement entity name and phone number + * + * @return self + */ + public function setPaymentSettlementEntityNamePhoneNumber($payment_settlement_entity_name_phone_number) + { + $this->container['payment_settlement_entity_name_phone_number'] = $payment_settlement_entity_name_phone_number; + + return $this; + } + + /** + * Gets gross_amount_payment_card + * + * @return float|null + */ + public function getGrossAmountPaymentCard() + { + return $this->container['gross_amount_payment_card']; + } + + /** + * Sets gross_amount_payment_card + * + * @param float|null $gross_amount_payment_card Gross amount of payment card/third party network transactions + * + * @return self + */ + public function setGrossAmountPaymentCard($gross_amount_payment_card) + { + $this->container['gross_amount_payment_card'] = $gross_amount_payment_card; + + return $this; + } + + /** + * Gets card_not_present_transactions + * + * @return float|null + */ + public function getCardNotPresentTransactions() + { + return $this->container['card_not_present_transactions']; + } + + /** + * Sets card_not_present_transactions + * + * @param float|null $card_not_present_transactions Card not present transactions + * + * @return self + */ + public function setCardNotPresentTransactions($card_not_present_transactions) + { + $this->container['card_not_present_transactions'] = $card_not_present_transactions; + + return $this; + } + + /** + * Gets merchant_category_code + * + * @return string|null + */ + public function getMerchantCategoryCode() + { + return $this->container['merchant_category_code']; + } + + /** + * Sets merchant_category_code + * + * @param string|null $merchant_category_code Merchant category code + * + * @return self + */ + public function setMerchantCategoryCode($merchant_category_code) + { + $this->container['merchant_category_code'] = $merchant_category_code; + + return $this; + } + + /** + * Gets payment_transaction_number + * + * @return float|null + */ + public function getPaymentTransactionNumber() + { + return $this->container['payment_transaction_number']; + } + + /** + * Sets payment_transaction_number + * + * @param float|null $payment_transaction_number Number of payment transactions + * + * @return self + */ + public function setPaymentTransactionNumber($payment_transaction_number) + { + $this->container['payment_transaction_number'] = $payment_transaction_number; + + return $this; + } + + /** + * Gets january + * + * @return float|null + */ + public function getJanuary() + { + return $this->container['january']; + } + + /** + * Sets january + * + * @param float|null $january January gross payments + * + * @return self + */ + public function setJanuary($january) + { + $this->container['january'] = $january; + + return $this; + } + + /** + * Gets february + * + * @return float|null + */ + public function getFebruary() + { + return $this->container['february']; + } + + /** + * Sets february + * + * @param float|null $february February gross payments + * + * @return self + */ + public function setFebruary($february) + { + $this->container['february'] = $february; + + return $this; + } + + /** + * Gets march + * + * @return float|null + */ + public function getMarch() + { + return $this->container['march']; + } + + /** + * Sets march + * + * @param float|null $march March gross payments + * + * @return self + */ + public function setMarch($march) + { + $this->container['march'] = $march; + + return $this; + } + + /** + * Gets april + * + * @return float|null + */ + public function getApril() + { + return $this->container['april']; + } + + /** + * Sets april + * + * @param float|null $april April gross payments + * + * @return self + */ + public function setApril($april) + { + $this->container['april'] = $april; + + return $this; + } + + /** + * Gets may + * + * @return float|null + */ + public function getMay() + { + return $this->container['may']; + } + + /** + * Sets may + * + * @param float|null $may May gross payments + * + * @return self + */ + public function setMay($may) + { + $this->container['may'] = $may; + + return $this; + } + + /** + * Gets june + * + * @return float|null + */ + public function getJune() + { + return $this->container['june']; + } + + /** + * Sets june + * + * @param float|null $june June gross payments + * + * @return self + */ + public function setJune($june) + { + $this->container['june'] = $june; + + return $this; + } + + /** + * Gets july + * + * @return float|null + */ + public function getJuly() + { + return $this->container['july']; + } + + /** + * Sets july + * + * @param float|null $july July gross payments + * + * @return self + */ + public function setJuly($july) + { + $this->container['july'] = $july; + + return $this; + } + + /** + * Gets august + * + * @return float|null + */ + public function getAugust() + { + return $this->container['august']; + } + + /** + * Sets august + * + * @param float|null $august August gross payments + * + * @return self + */ + public function setAugust($august) + { + $this->container['august'] = $august; + + return $this; + } + + /** + * Gets sept + * + * @return float|null + */ + public function getSept() + { + return $this->container['sept']; + } + + /** + * Sets sept + * + * @param float|null $sept September gross payments + * + * @return self + */ + public function setSept($sept) + { + $this->container['sept'] = $sept; + + return $this; + } + + /** + * Gets october + * + * @return float|null + */ + public function getOctober() + { + return $this->container['october']; + } + + /** + * Sets october + * + * @param float|null $october October gross payments + * + * @return self + */ + public function setOctober($october) + { + $this->container['october'] = $october; + + return $this; + } + + /** + * Gets november + * + * @return float|null + */ + public function getNovember() + { + return $this->container['november']; + } + + /** + * Sets november + * + * @param float|null $november November gross payments + * + * @return self + */ + public function setNovember($november) + { + $this->container['november'] = $november; + + return $this; + } + + /** + * Gets december + * + * @return float|null + */ + public function getDecember() + { + return $this->container['december']; + } + + /** + * Sets december + * + * @param float|null $december December gross payments + * + * @return self + */ + public function setDecember($december) + { + $this->container['december'] = $december; + + return $this; + } + /** * Gets nonemployee_compensation * diff --git a/lib/Model/A1099/V2/IrsResponse.php b/lib/Model/A1099/V2/IrsResponse.php new file mode 100644 index 0000000..c163d03 --- /dev/null +++ b/lib/Model/A1099/V2/IrsResponse.php @@ -0,0 +1,362 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * IrsResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class IrsResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'IrsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'code' => 'string', + 'description' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'code' => null, + 'description' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', + 'description' => 'description' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'description' => 'setDescription' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'description' => 'getDescription' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = $data['code'] ?? null; + $this->container['description'] = $data['description'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets code + * + * @return string|null + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string|null $code The IRS response code. + * + * @return self + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description The description for the IRS response. + * + * @return self + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/OfferAndCoverageRequest.php b/lib/Model/A1099/V2/OfferAndCoverageRequest.php new file mode 100644 index 0000000..923e53e --- /dev/null +++ b/lib/Model/A1099/V2/OfferAndCoverageRequest.php @@ -0,0 +1,452 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * OfferAndCoverageRequest Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class OfferAndCoverageRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'OfferAndCoverageRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'month' => 'string', + 'offer_code' => 'string', + 'share' => 'float', + 'safe_harbor_code' => 'string', + 'zip_code' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'month' => null, + 'offer_code' => null, + 'share' => 'double', + 'safe_harbor_code' => null, + 'zip_code' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'month' => 'month', + 'offer_code' => 'offerCode', + 'share' => 'share', + 'safe_harbor_code' => 'safeHarborCode', + 'zip_code' => 'zipCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'month' => 'setMonth', + 'offer_code' => 'setOfferCode', + 'share' => 'setShare', + 'safe_harbor_code' => 'setSafeHarborCode', + 'zip_code' => 'setZipCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'month' => 'getMonth', + 'offer_code' => 'getOfferCode', + 'share' => 'getShare', + 'safe_harbor_code' => 'getSafeHarborCode', + 'zip_code' => 'getZipCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['month'] = $data['month'] ?? null; + $this->container['offer_code'] = $data['offer_code'] ?? null; + $this->container['share'] = $data['share'] ?? null; + $this->container['safe_harbor_code'] = $data['safe_harbor_code'] ?? null; + $this->container['zip_code'] = $data['zip_code'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets month + * + * @return string|null + */ + public function getMonth() + { + return $this->container['month']; + } + + /** + * Sets month + * + * @param string|null $month Month of coverage + * + * @return self + */ + public function setMonth($month) + { + $this->container['month'] = $month; + + return $this; + } + + /** + * Gets offer_code + * + * @return string|null + */ + public function getOfferCode() + { + return $this->container['offer_code']; + } + + /** + * Sets offer_code + * + * @param string|null $offer_code Offer of coverage code + * + * @return self + */ + public function setOfferCode($offer_code) + { + $this->container['offer_code'] = $offer_code; + + return $this; + } + + /** + * Gets share + * + * @return float|null + */ + public function getShare() + { + return $this->container['share']; + } + + /** + * Sets share + * + * @param float|null $share Employee required contribution share + * + * @return self + */ + public function setShare($share) + { + $this->container['share'] = $share; + + return $this; + } + + /** + * Gets safe_harbor_code + * + * @return string|null + */ + public function getSafeHarborCode() + { + return $this->container['safe_harbor_code']; + } + + /** + * Sets safe_harbor_code + * + * @param string|null $safe_harbor_code Safe harbor code + * + * @return self + */ + public function setSafeHarborCode($safe_harbor_code) + { + $this->container['safe_harbor_code'] = $safe_harbor_code; + + return $this; + } + + /** + * Gets zip_code + * + * @return string|null + */ + public function getZipCode() + { + return $this->container['zip_code']; + } + + /** + * Sets zip_code + * + * @param string|null $zip_code ZIP code for coverage area + * + * @return self + */ + public function setZipCode($zip_code) + { + $this->container['zip_code'] = $zip_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/TinMatchStatusResponse.php b/lib/Model/A1099/V2/TinMatchStatusResponse.php new file mode 100644 index 0000000..b4adf55 --- /dev/null +++ b/lib/Model/A1099/V2/TinMatchStatusResponse.php @@ -0,0 +1,430 @@ + + * @author Jonathan Wenger + * @copyright 2004-2025 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V3-PHP-SDK + + */ + +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace Avalara\SDK\Model\A1099\V2; + +use \ArrayAccess; +use \Avalara\SDK\ObjectSerializer; +use \Avalara\SDK\Model\ModelInterface; +/** + * TinMatchStatusResponse Class Doc Comment + * + * @category Class + * @package Avalara\SDK + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + * @implements \ArrayAccess + * @template TKey int|null + * @template TValue mixed|null + */ +class TinMatchStatusResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'TinMatchStatusResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'time' => '\DateTime', + 'status' => 'string', + 'irs_response' => '\Avalara\SDK\Model\A1099\V2\IrsResponse' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'time' => 'date-time', + 'status' => null, + 'irs_response' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'time' => 'time', + 'status' => 'status', + 'irs_response' => 'irsResponse' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'time' => 'setTime', + 'status' => 'setStatus', + 'irs_response' => 'setIrsResponse' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'time' => 'getTime', + 'status' => 'getStatus', + 'irs_response' => 'getIrsResponse' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const STATUS_NONE = 'None'; + const STATUS_PENDING = 'Pending'; + const STATUS_MATCHED = 'Matched'; + const STATUS_FAILED = 'Failed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_NONE, + self::STATUS_PENDING, + self::STATUS_MATCHED, + self::STATUS_FAILED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['time'] = $data['time'] ?? null; + $this->container['status'] = $data['status'] ?? null; + $this->container['irs_response'] = $data['irs_response'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets time + * + * @return \DateTime|null + */ + public function getTime() + { + return $this->container['time']; + } + + /** + * Sets time + * + * @param \DateTime|null $time The current timestamp for the TIN match request. + * + * @return self + */ + public function setTime($time) + { + $this->container['time'] = $time; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status The current status for the TIN match request. + * + * @return self + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($status) && !in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets irs_response + * + * @return \Avalara\SDK\Model\A1099\V2\IrsResponse|null + */ + public function getIrsResponse() + { + return $this->container['irs_response']; + } + + /** + * Sets irs_response + * + * @param \Avalara\SDK\Model\A1099\V2\IrsResponse|null $irs_response The IRS response. + * + * @return self + */ + public function setIrsResponse($irs_response) + { + $this->container['irs_response'] = $irs_response; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset):bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset):mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value):void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset):void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize():mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString():string + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue():string + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/A1099/V2/Update1099Form200Response.php b/lib/Model/A1099/V2/Update1099Form200Response.php index 4150a04..74d56d7 100644 --- a/lib/Model/A1099/V2/Update1099Form200Response.php +++ b/lib/Model/A1099/V2/Update1099Form200Response.php @@ -74,7 +74,6 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'type' => 'string', 'created_at' => '\DateTime', 'updated_at' => '\DateTime', - 'user_id' => 'string', 'state_and_local_withholding' => '\Avalara\SDK\Model\A1099\V2\StateAndLocalWithholdingResponse', 'tin_type' => 'string', 'id' => 'string', @@ -91,29 +90,51 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'city' => 'string', 'state' => 'string', 'zip' => 'string', - 'recipient_email' => 'string', + 'email' => 'string', 'account_number' => 'string', 'office_code' => 'string', - 'recipient_non_us_province' => 'string', + 'non_us_province' => 'string', 'country_code' => 'string', 'federal_e_file' => 'bool', 'postal_mail' => 'bool', 'state_e_file' => 'bool', 'tin_match' => 'bool', + 'no_tin' => 'bool', + 'second_tin_notice' => 'bool', 'address_verification' => 'bool', 'federal_efile_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', + 'e_delivery_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'state_efile_status' => '\Avalara\SDK\Model\A1099\V2\StateEfileStatusDetailResponse[]', 'postal_mail_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'address_verification_status' => '\Avalara\SDK\Model\A1099\V2\StatusDetail', 'validation_errors' => '\Avalara\SDK\Model\A1099\V2\ValidationErrorResponse[]', - 'second_tin_notice' => 'bool', + 'filer_type' => 'string', + 'payment_type' => 'string', + 'payment_settlement_entity_name_phone_number' => 'string', + 'gross_amount_payment_card' => 'float', + 'card_not_present_transactions' => 'float', + 'merchant_category_code' => 'string', + 'payment_transaction_number' => 'float', + 'federal_income_tax_withheld' => 'float', + 'january' => 'float', + 'february' => 'float', + 'march' => 'float', + 'april' => 'float', + 'may' => 'float', + 'june' => 'float', + 'july' => 'float', + 'august' => 'float', + 'sept' => 'float', + 'october' => 'float', + 'november' => 'float', + 'december' => 'float', 'rents' => 'float', 'royalties' => 'float', 'other_income' => 'float', 'fed_income_tax_withheld' => 'float', 'fishing_boat_proceeds' => 'float', - 'medical_health_care_payments' => 'float', + 'medical_and_health_care_payments' => 'float', 'direct_sales_indicator' => 'bool', 'substitute_payments' => 'float', 'crop_insurance_proceeds' => 'float', @@ -123,8 +144,7 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'fatca_filing_requirement' => 'bool', 'excess_golden_parachute_payments' => 'float', 'nonqualified_deferred_compensation' => 'float', - 'nonemployee_compensation' => 'float', - 'federal_income_tax_withheld' => 'float' + 'nonemployee_compensation' => 'float' ]; /** @@ -138,7 +158,6 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'type' => null, 'created_at' => 'date-time', 'updated_at' => 'date-time', - 'user_id' => null, 'state_and_local_withholding' => null, 'tin_type' => null, 'id' => null, @@ -155,29 +174,51 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'city' => null, 'state' => null, 'zip' => null, - 'recipient_email' => null, + 'email' => null, 'account_number' => null, 'office_code' => null, - 'recipient_non_us_province' => null, + 'non_us_province' => null, 'country_code' => null, 'federal_e_file' => null, 'postal_mail' => null, 'state_e_file' => null, 'tin_match' => null, + 'no_tin' => null, + 'second_tin_notice' => null, 'address_verification' => null, 'federal_efile_status' => null, + 'e_delivery_status' => null, 'state_efile_status' => null, 'postal_mail_status' => null, 'tin_match_status' => null, 'address_verification_status' => null, 'validation_errors' => null, - 'second_tin_notice' => null, + 'filer_type' => null, + 'payment_type' => null, + 'payment_settlement_entity_name_phone_number' => null, + 'gross_amount_payment_card' => 'double', + 'card_not_present_transactions' => 'double', + 'merchant_category_code' => null, + 'payment_transaction_number' => 'double', + 'federal_income_tax_withheld' => 'double', + 'january' => 'double', + 'february' => 'double', + 'march' => 'double', + 'april' => 'double', + 'may' => 'double', + 'june' => 'double', + 'july' => 'double', + 'august' => 'double', + 'sept' => 'double', + 'october' => 'double', + 'november' => 'double', + 'december' => 'double', 'rents' => 'double', 'royalties' => 'double', 'other_income' => 'double', 'fed_income_tax_withheld' => 'double', 'fishing_boat_proceeds' => 'double', - 'medical_health_care_payments' => 'double', + 'medical_and_health_care_payments' => 'double', 'direct_sales_indicator' => null, 'substitute_payments' => 'double', 'crop_insurance_proceeds' => 'double', @@ -187,8 +228,7 @@ class Update1099Form200Response implements ModelInterface, ArrayAccess, \JsonSer 'fatca_filing_requirement' => null, 'excess_golden_parachute_payments' => 'double', 'nonqualified_deferred_compensation' => 'double', - 'nonemployee_compensation' => 'double', - 'federal_income_tax_withheld' => 'double' + 'nonemployee_compensation' => 'double' ]; /** @@ -221,7 +261,6 @@ public static function openAPIFormats() 'type' => 'type', 'created_at' => 'createdAt', 'updated_at' => 'updatedAt', - 'user_id' => 'userId', 'state_and_local_withholding' => 'stateAndLocalWithholding', 'tin_type' => 'tinType', 'id' => 'id', @@ -238,29 +277,51 @@ public static function openAPIFormats() 'city' => 'city', 'state' => 'state', 'zip' => 'zip', - 'recipient_email' => 'recipientEmail', + 'email' => 'email', 'account_number' => 'accountNumber', 'office_code' => 'officeCode', - 'recipient_non_us_province' => 'recipientNonUsProvince', + 'non_us_province' => 'nonUsProvince', 'country_code' => 'countryCode', 'federal_e_file' => 'federalEFile', 'postal_mail' => 'postalMail', 'state_e_file' => 'stateEFile', 'tin_match' => 'tinMatch', + 'no_tin' => 'noTin', + 'second_tin_notice' => 'secondTinNotice', 'address_verification' => 'addressVerification', 'federal_efile_status' => 'federalEfileStatus', + 'e_delivery_status' => 'eDeliveryStatus', 'state_efile_status' => 'stateEfileStatus', 'postal_mail_status' => 'postalMailStatus', 'tin_match_status' => 'tinMatchStatus', 'address_verification_status' => 'addressVerificationStatus', 'validation_errors' => 'validationErrors', - 'second_tin_notice' => 'secondTinNotice', + 'filer_type' => 'filerType', + 'payment_type' => 'paymentType', + 'payment_settlement_entity_name_phone_number' => 'paymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'grossAmountPaymentCard', + 'card_not_present_transactions' => 'cardNotPresentTransactions', + 'merchant_category_code' => 'merchantCategoryCode', + 'payment_transaction_number' => 'paymentTransactionNumber', + 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld', + 'january' => 'january', + 'february' => 'february', + 'march' => 'march', + 'april' => 'april', + 'may' => 'may', + 'june' => 'june', + 'july' => 'july', + 'august' => 'august', + 'sept' => 'sept', + 'october' => 'october', + 'november' => 'november', + 'december' => 'december', 'rents' => 'rents', 'royalties' => 'royalties', 'other_income' => 'otherIncome', 'fed_income_tax_withheld' => 'fedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'fishingBoatProceeds', - 'medical_health_care_payments' => 'medicalHealthCarePayments', + 'medical_and_health_care_payments' => 'medicalAndHealthCarePayments', 'direct_sales_indicator' => 'directSalesIndicator', 'substitute_payments' => 'substitutePayments', 'crop_insurance_proceeds' => 'cropInsuranceProceeds', @@ -270,8 +331,7 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'fatcaFilingRequirement', 'excess_golden_parachute_payments' => 'excessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'nonqualifiedDeferredCompensation', - 'nonemployee_compensation' => 'nonemployeeCompensation', - 'federal_income_tax_withheld' => 'federalIncomeTaxWithheld' + 'nonemployee_compensation' => 'nonemployeeCompensation' ]; /** @@ -283,7 +343,6 @@ public static function openAPIFormats() 'type' => 'setType', 'created_at' => 'setCreatedAt', 'updated_at' => 'setUpdatedAt', - 'user_id' => 'setUserId', 'state_and_local_withholding' => 'setStateAndLocalWithholding', 'tin_type' => 'setTinType', 'id' => 'setId', @@ -300,29 +359,51 @@ public static function openAPIFormats() 'city' => 'setCity', 'state' => 'setState', 'zip' => 'setZip', - 'recipient_email' => 'setRecipientEmail', + 'email' => 'setEmail', 'account_number' => 'setAccountNumber', 'office_code' => 'setOfficeCode', - 'recipient_non_us_province' => 'setRecipientNonUsProvince', + 'non_us_province' => 'setNonUsProvince', 'country_code' => 'setCountryCode', 'federal_e_file' => 'setFederalEFile', 'postal_mail' => 'setPostalMail', 'state_e_file' => 'setStateEFile', 'tin_match' => 'setTinMatch', + 'no_tin' => 'setNoTin', + 'second_tin_notice' => 'setSecondTinNotice', 'address_verification' => 'setAddressVerification', 'federal_efile_status' => 'setFederalEfileStatus', + 'e_delivery_status' => 'setEDeliveryStatus', 'state_efile_status' => 'setStateEfileStatus', 'postal_mail_status' => 'setPostalMailStatus', 'tin_match_status' => 'setTinMatchStatus', 'address_verification_status' => 'setAddressVerificationStatus', 'validation_errors' => 'setValidationErrors', - 'second_tin_notice' => 'setSecondTinNotice', + 'filer_type' => 'setFilerType', + 'payment_type' => 'setPaymentType', + 'payment_settlement_entity_name_phone_number' => 'setPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'setGrossAmountPaymentCard', + 'card_not_present_transactions' => 'setCardNotPresentTransactions', + 'merchant_category_code' => 'setMerchantCategoryCode', + 'payment_transaction_number' => 'setPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld', + 'january' => 'setJanuary', + 'february' => 'setFebruary', + 'march' => 'setMarch', + 'april' => 'setApril', + 'may' => 'setMay', + 'june' => 'setJune', + 'july' => 'setJuly', + 'august' => 'setAugust', + 'sept' => 'setSept', + 'october' => 'setOctober', + 'november' => 'setNovember', + 'december' => 'setDecember', 'rents' => 'setRents', 'royalties' => 'setRoyalties', 'other_income' => 'setOtherIncome', 'fed_income_tax_withheld' => 'setFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'setFishingBoatProceeds', - 'medical_health_care_payments' => 'setMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'setMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'setDirectSalesIndicator', 'substitute_payments' => 'setSubstitutePayments', 'crop_insurance_proceeds' => 'setCropInsuranceProceeds', @@ -332,8 +413,7 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'setFatcaFilingRequirement', 'excess_golden_parachute_payments' => 'setExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'setNonqualifiedDeferredCompensation', - 'nonemployee_compensation' => 'setNonemployeeCompensation', - 'federal_income_tax_withheld' => 'setFederalIncomeTaxWithheld' + 'nonemployee_compensation' => 'setNonemployeeCompensation' ]; /** @@ -345,7 +425,6 @@ public static function openAPIFormats() 'type' => 'getType', 'created_at' => 'getCreatedAt', 'updated_at' => 'getUpdatedAt', - 'user_id' => 'getUserId', 'state_and_local_withholding' => 'getStateAndLocalWithholding', 'tin_type' => 'getTinType', 'id' => 'getId', @@ -362,29 +441,51 @@ public static function openAPIFormats() 'city' => 'getCity', 'state' => 'getState', 'zip' => 'getZip', - 'recipient_email' => 'getRecipientEmail', + 'email' => 'getEmail', 'account_number' => 'getAccountNumber', 'office_code' => 'getOfficeCode', - 'recipient_non_us_province' => 'getRecipientNonUsProvince', + 'non_us_province' => 'getNonUsProvince', 'country_code' => 'getCountryCode', 'federal_e_file' => 'getFederalEFile', 'postal_mail' => 'getPostalMail', 'state_e_file' => 'getStateEFile', 'tin_match' => 'getTinMatch', + 'no_tin' => 'getNoTin', + 'second_tin_notice' => 'getSecondTinNotice', 'address_verification' => 'getAddressVerification', 'federal_efile_status' => 'getFederalEfileStatus', + 'e_delivery_status' => 'getEDeliveryStatus', 'state_efile_status' => 'getStateEfileStatus', 'postal_mail_status' => 'getPostalMailStatus', 'tin_match_status' => 'getTinMatchStatus', 'address_verification_status' => 'getAddressVerificationStatus', 'validation_errors' => 'getValidationErrors', - 'second_tin_notice' => 'getSecondTinNotice', + 'filer_type' => 'getFilerType', + 'payment_type' => 'getPaymentType', + 'payment_settlement_entity_name_phone_number' => 'getPaymentSettlementEntityNamePhoneNumber', + 'gross_amount_payment_card' => 'getGrossAmountPaymentCard', + 'card_not_present_transactions' => 'getCardNotPresentTransactions', + 'merchant_category_code' => 'getMerchantCategoryCode', + 'payment_transaction_number' => 'getPaymentTransactionNumber', + 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld', + 'january' => 'getJanuary', + 'february' => 'getFebruary', + 'march' => 'getMarch', + 'april' => 'getApril', + 'may' => 'getMay', + 'june' => 'getJune', + 'july' => 'getJuly', + 'august' => 'getAugust', + 'sept' => 'getSept', + 'october' => 'getOctober', + 'november' => 'getNovember', + 'december' => 'getDecember', 'rents' => 'getRents', 'royalties' => 'getRoyalties', 'other_income' => 'getOtherIncome', 'fed_income_tax_withheld' => 'getFedIncomeTaxWithheld', 'fishing_boat_proceeds' => 'getFishingBoatProceeds', - 'medical_health_care_payments' => 'getMedicalHealthCarePayments', + 'medical_and_health_care_payments' => 'getMedicalAndHealthCarePayments', 'direct_sales_indicator' => 'getDirectSalesIndicator', 'substitute_payments' => 'getSubstitutePayments', 'crop_insurance_proceeds' => 'getCropInsuranceProceeds', @@ -394,8 +495,7 @@ public static function openAPIFormats() 'fatca_filing_requirement' => 'getFatcaFilingRequirement', 'excess_golden_parachute_payments' => 'getExcessGoldenParachutePayments', 'nonqualified_deferred_compensation' => 'getNonqualifiedDeferredCompensation', - 'nonemployee_compensation' => 'getNonemployeeCompensation', - 'federal_income_tax_withheld' => 'getFederalIncomeTaxWithheld' + 'nonemployee_compensation' => 'getNonemployeeCompensation' ]; /** @@ -446,10 +546,16 @@ public function getModelName() const TYPE__1099_K = '1099-K'; const TYPE__1095_B = '1095-B'; const TYPE__1042_S = '1042-S'; + const TYPE__1095_C = '1095-C'; const TIN_TYPE_EIN = 'EIN'; const TIN_TYPE_SSN = 'SSN'; const TIN_TYPE_ITIN = 'ITIN'; const TIN_TYPE_ATIN = 'ATIN'; + const FILER_TYPE_PSE = 'PSE'; + const FILER_TYPE_EPF = 'EPF'; + const FILER_TYPE_OTHER = 'Other'; + const PAYMENT_TYPE_MERCHANT_PAYMENT_CARD = 'MerchantPaymentCard'; + const PAYMENT_TYPE_THIRD_PARTY_NETWORK = 'ThirdPartyNetwork'; /** * Gets allowable values of the enum @@ -466,6 +572,7 @@ public function getTypeAllowableValues() self::TYPE__1099_K, self::TYPE__1095_B, self::TYPE__1042_S, + self::TYPE__1095_C, ]; } @@ -484,6 +591,33 @@ public function getTinTypeAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFilerTypeAllowableValues() + { + return [ + self::FILER_TYPE_PSE, + self::FILER_TYPE_EPF, + self::FILER_TYPE_OTHER, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getPaymentTypeAllowableValues() + { + return [ + self::PAYMENT_TYPE_MERCHANT_PAYMENT_CARD, + self::PAYMENT_TYPE_THIRD_PARTY_NETWORK, + ]; + } + /** * Associative array for storing property values * @@ -502,7 +636,6 @@ public function __construct(array $data = null) $this->container['type'] = $data['type'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; $this->container['state_and_local_withholding'] = $data['state_and_local_withholding'] ?? null; $this->container['tin_type'] = $data['tin_type'] ?? null; $this->container['id'] = $data['id'] ?? null; @@ -519,29 +652,51 @@ public function __construct(array $data = null) $this->container['city'] = $data['city'] ?? null; $this->container['state'] = $data['state'] ?? null; $this->container['zip'] = $data['zip'] ?? null; - $this->container['recipient_email'] = $data['recipient_email'] ?? null; + $this->container['email'] = $data['email'] ?? null; $this->container['account_number'] = $data['account_number'] ?? null; $this->container['office_code'] = $data['office_code'] ?? null; - $this->container['recipient_non_us_province'] = $data['recipient_non_us_province'] ?? null; + $this->container['non_us_province'] = $data['non_us_province'] ?? null; $this->container['country_code'] = $data['country_code'] ?? null; $this->container['federal_e_file'] = $data['federal_e_file'] ?? null; $this->container['postal_mail'] = $data['postal_mail'] ?? null; $this->container['state_e_file'] = $data['state_e_file'] ?? null; $this->container['tin_match'] = $data['tin_match'] ?? null; + $this->container['no_tin'] = $data['no_tin'] ?? null; + $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; $this->container['address_verification'] = $data['address_verification'] ?? null; $this->container['federal_efile_status'] = $data['federal_efile_status'] ?? null; + $this->container['e_delivery_status'] = $data['e_delivery_status'] ?? null; $this->container['state_efile_status'] = $data['state_efile_status'] ?? null; $this->container['postal_mail_status'] = $data['postal_mail_status'] ?? null; $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['address_verification_status'] = $data['address_verification_status'] ?? null; $this->container['validation_errors'] = $data['validation_errors'] ?? null; - $this->container['second_tin_notice'] = $data['second_tin_notice'] ?? null; + $this->container['filer_type'] = $data['filer_type'] ?? null; + $this->container['payment_type'] = $data['payment_type'] ?? null; + $this->container['payment_settlement_entity_name_phone_number'] = $data['payment_settlement_entity_name_phone_number'] ?? null; + $this->container['gross_amount_payment_card'] = $data['gross_amount_payment_card'] ?? null; + $this->container['card_not_present_transactions'] = $data['card_not_present_transactions'] ?? null; + $this->container['merchant_category_code'] = $data['merchant_category_code'] ?? null; + $this->container['payment_transaction_number'] = $data['payment_transaction_number'] ?? null; + $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; + $this->container['january'] = $data['january'] ?? null; + $this->container['february'] = $data['february'] ?? null; + $this->container['march'] = $data['march'] ?? null; + $this->container['april'] = $data['april'] ?? null; + $this->container['may'] = $data['may'] ?? null; + $this->container['june'] = $data['june'] ?? null; + $this->container['july'] = $data['july'] ?? null; + $this->container['august'] = $data['august'] ?? null; + $this->container['sept'] = $data['sept'] ?? null; + $this->container['october'] = $data['october'] ?? null; + $this->container['november'] = $data['november'] ?? null; + $this->container['december'] = $data['december'] ?? null; $this->container['rents'] = $data['rents'] ?? null; $this->container['royalties'] = $data['royalties'] ?? null; $this->container['other_income'] = $data['other_income'] ?? null; $this->container['fed_income_tax_withheld'] = $data['fed_income_tax_withheld'] ?? null; $this->container['fishing_boat_proceeds'] = $data['fishing_boat_proceeds'] ?? null; - $this->container['medical_health_care_payments'] = $data['medical_health_care_payments'] ?? null; + $this->container['medical_and_health_care_payments'] = $data['medical_and_health_care_payments'] ?? null; $this->container['direct_sales_indicator'] = $data['direct_sales_indicator'] ?? null; $this->container['substitute_payments'] = $data['substitute_payments'] ?? null; $this->container['crop_insurance_proceeds'] = $data['crop_insurance_proceeds'] ?? null; @@ -552,7 +707,6 @@ public function __construct(array $data = null) $this->container['excess_golden_parachute_payments'] = $data['excess_golden_parachute_payments'] ?? null; $this->container['nonqualified_deferred_compensation'] = $data['nonqualified_deferred_compensation'] ?? null; $this->container['nonemployee_compensation'] = $data['nonemployee_compensation'] ?? null; - $this->container['federal_income_tax_withheld'] = $data['federal_income_tax_withheld'] ?? null; } /** @@ -582,6 +736,24 @@ public function listInvalidProperties() ); } + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($this->container['filer_type']) && !in_array($this->container['filer_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'filer_type', must be one of '%s'", + $this->container['filer_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($this->container['payment_type']) && !in_array($this->container['payment_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'payment_type', must be one of '%s'", + $this->container['payment_type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -679,30 +851,6 @@ public function setUpdatedAt($updated_at) return $this; } - /** - * Gets user_id - * - * @return string|null - */ - public function getUserId() - { - return $this->container['user_id']; - } - - /** - * Sets user_id - * - * @param string|null $user_id user_id - * - * @return self - */ - public function setUserId($user_id) - { - $this->container['user_id'] = $user_id; - - return $this; - } - /** * Gets state_and_local_withholding * @@ -1098,25 +1246,25 @@ public function setZip($zip) } /** - * Gets recipient_email + * Gets email * * @return string|null */ - public function getRecipientEmail() + public function getEmail() { - return $this->container['recipient_email']; + return $this->container['email']; } /** - * Sets recipient_email + * Sets email * - * @param string|null $recipient_email recipient_email + * @param string|null $email email * * @return self */ - public function setRecipientEmail($recipient_email) + public function setEmail($email) { - $this->container['recipient_email'] = $recipient_email; + $this->container['email'] = $email; return $this; } @@ -1170,25 +1318,25 @@ public function setOfficeCode($office_code) } /** - * Gets recipient_non_us_province + * Gets non_us_province * * @return string|null */ - public function getRecipientNonUsProvince() + public function getNonUsProvince() { - return $this->container['recipient_non_us_province']; + return $this->container['non_us_province']; } /** - * Sets recipient_non_us_province + * Sets non_us_province * - * @param string|null $recipient_non_us_province recipient_non_us_province + * @param string|null $non_us_province non_us_province * * @return self */ - public function setRecipientNonUsProvince($recipient_non_us_province) + public function setNonUsProvince($non_us_province) { - $this->container['recipient_non_us_province'] = $recipient_non_us_province; + $this->container['non_us_province'] = $non_us_province; return $this; } @@ -1313,6 +1461,54 @@ public function setTinMatch($tin_match) return $this; } + /** + * Gets no_tin + * + * @return bool|null + */ + public function getNoTin() + { + return $this->container['no_tin']; + } + + /** + * Sets no_tin + * + * @param bool|null $no_tin no_tin + * + * @return self + */ + public function setNoTin($no_tin) + { + $this->container['no_tin'] = $no_tin; + + return $this; + } + + /** + * Gets second_tin_notice + * + * @return bool|null + */ + public function getSecondTinNotice() + { + return $this->container['second_tin_notice']; + } + + /** + * Sets second_tin_notice + * + * @param bool|null $second_tin_notice second_tin_notice + * + * @return self + */ + public function setSecondTinNotice($second_tin_notice) + { + $this->container['second_tin_notice'] = $second_tin_notice; + + return $this; + } + /** * Gets address_verification * @@ -1361,6 +1557,30 @@ public function setFederalEfileStatus($federal_efile_status) return $this; } + /** + * Gets e_delivery_status + * + * @return \Avalara\SDK\Model\A1099\V2\StatusDetail|null + */ + public function getEDeliveryStatus() + { + return $this->container['e_delivery_status']; + } + + /** + * Sets e_delivery_status + * + * @param \Avalara\SDK\Model\A1099\V2\StatusDetail|null $e_delivery_status e_delivery_status + * + * @return self + */ + public function setEDeliveryStatus($e_delivery_status) + { + $this->container['e_delivery_status'] = $e_delivery_status; + + return $this; + } + /** * Gets state_efile_status * @@ -1486,25 +1706,501 @@ public function setValidationErrors($validation_errors) } /** - * Gets second_tin_notice + * Gets filer_type * - * @return bool|null + * @return string|null */ - public function getSecondTinNotice() + public function getFilerType() { - return $this->container['second_tin_notice']; + return $this->container['filer_type']; } /** - * Sets second_tin_notice + * Sets filer_type * - * @param bool|null $second_tin_notice second_tin_notice + * @param string|null $filer_type filer_type * * @return self */ - public function setSecondTinNotice($second_tin_notice) + public function setFilerType($filer_type) { - $this->container['second_tin_notice'] = $second_tin_notice; + $allowedValues = $this->getFilerTypeAllowableValues(); + if (!is_null($filer_type) && !in_array($filer_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'filer_type', must be one of '%s'", + $filer_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['filer_type'] = $filer_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string|null + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string|null $payment_type payment_type + * + * @return self + */ + public function setPaymentType($payment_type) + { + $allowedValues = $this->getPaymentTypeAllowableValues(); + if (!is_null($payment_type) && !in_array($payment_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'payment_type', must be one of '%s'", + $payment_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets payment_settlement_entity_name_phone_number + * + * @return string|null + */ + public function getPaymentSettlementEntityNamePhoneNumber() + { + return $this->container['payment_settlement_entity_name_phone_number']; + } + + /** + * Sets payment_settlement_entity_name_phone_number + * + * @param string|null $payment_settlement_entity_name_phone_number payment_settlement_entity_name_phone_number + * + * @return self + */ + public function setPaymentSettlementEntityNamePhoneNumber($payment_settlement_entity_name_phone_number) + { + $this->container['payment_settlement_entity_name_phone_number'] = $payment_settlement_entity_name_phone_number; + + return $this; + } + + /** + * Gets gross_amount_payment_card + * + * @return float|null + */ + public function getGrossAmountPaymentCard() + { + return $this->container['gross_amount_payment_card']; + } + + /** + * Sets gross_amount_payment_card + * + * @param float|null $gross_amount_payment_card gross_amount_payment_card + * + * @return self + */ + public function setGrossAmountPaymentCard($gross_amount_payment_card) + { + $this->container['gross_amount_payment_card'] = $gross_amount_payment_card; + + return $this; + } + + /** + * Gets card_not_present_transactions + * + * @return float|null + */ + public function getCardNotPresentTransactions() + { + return $this->container['card_not_present_transactions']; + } + + /** + * Sets card_not_present_transactions + * + * @param float|null $card_not_present_transactions card_not_present_transactions + * + * @return self + */ + public function setCardNotPresentTransactions($card_not_present_transactions) + { + $this->container['card_not_present_transactions'] = $card_not_present_transactions; + + return $this; + } + + /** + * Gets merchant_category_code + * + * @return string|null + */ + public function getMerchantCategoryCode() + { + return $this->container['merchant_category_code']; + } + + /** + * Sets merchant_category_code + * + * @param string|null $merchant_category_code merchant_category_code + * + * @return self + */ + public function setMerchantCategoryCode($merchant_category_code) + { + $this->container['merchant_category_code'] = $merchant_category_code; + + return $this; + } + + /** + * Gets payment_transaction_number + * + * @return float|null + */ + public function getPaymentTransactionNumber() + { + return $this->container['payment_transaction_number']; + } + + /** + * Sets payment_transaction_number + * + * @param float|null $payment_transaction_number payment_transaction_number + * + * @return self + */ + public function setPaymentTransactionNumber($payment_transaction_number) + { + $this->container['payment_transaction_number'] = $payment_transaction_number; + + return $this; + } + + /** + * Gets federal_income_tax_withheld + * + * @return float|null + */ + public function getFederalIncomeTaxWithheld() + { + return $this->container['federal_income_tax_withheld']; + } + + /** + * Sets federal_income_tax_withheld + * + * @param float|null $federal_income_tax_withheld federal_income_tax_withheld + * + * @return self + */ + public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) + { + $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; + + return $this; + } + + /** + * Gets january + * + * @return float|null + */ + public function getJanuary() + { + return $this->container['january']; + } + + /** + * Sets january + * + * @param float|null $january january + * + * @return self + */ + public function setJanuary($january) + { + $this->container['january'] = $january; + + return $this; + } + + /** + * Gets february + * + * @return float|null + */ + public function getFebruary() + { + return $this->container['february']; + } + + /** + * Sets february + * + * @param float|null $february february + * + * @return self + */ + public function setFebruary($february) + { + $this->container['february'] = $february; + + return $this; + } + + /** + * Gets march + * + * @return float|null + */ + public function getMarch() + { + return $this->container['march']; + } + + /** + * Sets march + * + * @param float|null $march march + * + * @return self + */ + public function setMarch($march) + { + $this->container['march'] = $march; + + return $this; + } + + /** + * Gets april + * + * @return float|null + */ + public function getApril() + { + return $this->container['april']; + } + + /** + * Sets april + * + * @param float|null $april april + * + * @return self + */ + public function setApril($april) + { + $this->container['april'] = $april; + + return $this; + } + + /** + * Gets may + * + * @return float|null + */ + public function getMay() + { + return $this->container['may']; + } + + /** + * Sets may + * + * @param float|null $may may + * + * @return self + */ + public function setMay($may) + { + $this->container['may'] = $may; + + return $this; + } + + /** + * Gets june + * + * @return float|null + */ + public function getJune() + { + return $this->container['june']; + } + + /** + * Sets june + * + * @param float|null $june june + * + * @return self + */ + public function setJune($june) + { + $this->container['june'] = $june; + + return $this; + } + + /** + * Gets july + * + * @return float|null + */ + public function getJuly() + { + return $this->container['july']; + } + + /** + * Sets july + * + * @param float|null $july july + * + * @return self + */ + public function setJuly($july) + { + $this->container['july'] = $july; + + return $this; + } + + /** + * Gets august + * + * @return float|null + */ + public function getAugust() + { + return $this->container['august']; + } + + /** + * Sets august + * + * @param float|null $august august + * + * @return self + */ + public function setAugust($august) + { + $this->container['august'] = $august; + + return $this; + } + + /** + * Gets sept + * + * @return float|null + */ + public function getSept() + { + return $this->container['sept']; + } + + /** + * Sets sept + * + * @param float|null $sept sept + * + * @return self + */ + public function setSept($sept) + { + $this->container['sept'] = $sept; + + return $this; + } + + /** + * Gets october + * + * @return float|null + */ + public function getOctober() + { + return $this->container['october']; + } + + /** + * Sets october + * + * @param float|null $october october + * + * @return self + */ + public function setOctober($october) + { + $this->container['october'] = $october; + + return $this; + } + + /** + * Gets november + * + * @return float|null + */ + public function getNovember() + { + return $this->container['november']; + } + + /** + * Sets november + * + * @param float|null $november november + * + * @return self + */ + public function setNovember($november) + { + $this->container['november'] = $november; + + return $this; + } + + /** + * Gets december + * + * @return float|null + */ + public function getDecember() + { + return $this->container['december']; + } + + /** + * Sets december + * + * @param float|null $december december + * + * @return self + */ + public function setDecember($december) + { + $this->container['december'] = $december; return $this; } @@ -1630,25 +2326,25 @@ public function setFishingBoatProceeds($fishing_boat_proceeds) } /** - * Gets medical_health_care_payments + * Gets medical_and_health_care_payments * * @return float|null */ - public function getMedicalHealthCarePayments() + public function getMedicalAndHealthCarePayments() { - return $this->container['medical_health_care_payments']; + return $this->container['medical_and_health_care_payments']; } /** - * Sets medical_health_care_payments + * Sets medical_and_health_care_payments * - * @param float|null $medical_health_care_payments medical_health_care_payments + * @param float|null $medical_and_health_care_payments medical_and_health_care_payments * * @return self */ - public function setMedicalHealthCarePayments($medical_health_care_payments) + public function setMedicalAndHealthCarePayments($medical_and_health_care_payments) { - $this->container['medical_health_care_payments'] = $medical_health_care_payments; + $this->container['medical_and_health_care_payments'] = $medical_and_health_care_payments; return $this; } @@ -1892,30 +2588,6 @@ public function setNonemployeeCompensation($nonemployee_compensation) return $this; } - - /** - * Gets federal_income_tax_withheld - * - * @return float|null - */ - public function getFederalIncomeTaxWithheld() - { - return $this->container['federal_income_tax_withheld']; - } - - /** - * Sets federal_income_tax_withheld - * - * @param float|null $federal_income_tax_withheld federal_income_tax_withheld - * - * @return self - */ - public function setFederalIncomeTaxWithheld($federal_income_tax_withheld) - { - $this->container['federal_income_tax_withheld'] = $federal_income_tax_withheld; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/A1099/V2/W9FormResponse.php b/lib/Model/A1099/V2/W9FormResponse.php index f194035..773162b 100644 --- a/lib/Model/A1099/V2/W9FormResponse.php +++ b/lib/Model/A1099/V2/W9FormResponse.php @@ -89,6 +89,7 @@ class W9FormResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'tin' => 'string', 'backup_withholding' => 'bool', 'is1099able' => 'bool', + 'tin_match_status' => '\Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse', 'id' => 'string', 'type' => 'string', 'entry_status' => 'string', @@ -131,6 +132,7 @@ class W9FormResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'tin' => null, 'backup_withholding' => null, 'is1099able' => null, + 'tin_match_status' => null, 'id' => null, 'type' => null, 'entry_status' => null, @@ -192,6 +194,7 @@ public static function openAPIFormats() 'tin' => 'tin', 'backup_withholding' => 'backupWithholding', 'is1099able' => 'is1099able', + 'tin_match_status' => 'tinMatchStatus', 'id' => 'id', 'type' => 'type', 'entry_status' => 'entryStatus', @@ -232,6 +235,7 @@ public static function openAPIFormats() 'tin' => 'setTin', 'backup_withholding' => 'setBackupWithholding', 'is1099able' => 'setIs1099able', + 'tin_match_status' => 'setTinMatchStatus', 'id' => 'setId', 'type' => 'setType', 'entry_status' => 'setEntryStatus', @@ -272,6 +276,7 @@ public static function openAPIFormats() 'tin' => 'getTin', 'backup_withholding' => 'getBackupWithholding', 'is1099able' => 'getIs1099able', + 'tin_match_status' => 'getTinMatchStatus', 'id' => 'getId', 'type' => 'getType', 'entry_status' => 'getEntryStatus', @@ -363,6 +368,7 @@ public function __construct(array $data = null) $this->container['tin'] = $data['tin'] ?? null; $this->container['backup_withholding'] = $data['backup_withholding'] ?? null; $this->container['is1099able'] = $data['is1099able'] ?? null; + $this->container['tin_match_status'] = $data['tin_match_status'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['entry_status'] = $data['entry_status'] ?? null; @@ -835,6 +841,30 @@ public function setIs1099able($is1099able) return $this; } + /** + * Gets tin_match_status + * + * @return \Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse|null + */ + public function getTinMatchStatus() + { + return $this->container['tin_match_status']; + } + + /** + * Sets tin_match_status + * + * @param \Avalara\SDK\Model\A1099\V2\TinMatchStatusResponse|null $tin_match_status The TIN Match status from IRS. + * + * @return self + */ + public function setTinMatchStatus($tin_match_status) + { + $this->container['tin_match_status'] = $tin_match_status; + + return $this; + } + /** * Gets id *