<?php
/**
 * GetTaxProfileResponseTest
 *
 * PHP version 7.4
 *
 * @category Class
 * @package  FattureInCloud
 * @author   Fatture In Cloud API team
 * @link     https://fattureincloud.it
 */

/**
 * Fatture in Cloud API v2 - API Reference
 *
 * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
 *
 * The version of the OpenAPI document: 2.1.2
 * Contact: info@fattureincloud.it
 * Generated by: https://openapi-generator.tech
 * Generator version: 7.9.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Please update the test case below to test the model.
 */

namespace FattureInCloud\Test\Model;

use FattureInCloud\ObjectSerializer;
use PHPUnit\Framework\TestCase;

/**
 * GetTaxProfileResponseTest Class Doc Comment
 *
 * @category    Class
 * @description GetTaxProfileResponse
 * @package     FattureInCloud
 * @author   Fatture In Cloud API team
 * @link     https://fattureincloud.it
 */
class GetTaxProfileResponseTest extends TestCase
{
    public $array = [];
    public $object;

    /**
     * Setup before running any test case
     */
    public static function setUpBeforeClass(): void
    {
    }

    /**
     * Setup before running each test case
     */
    public function setUp(): void
    {
        $json = '{ 
            "data": {
                "company_type": "individual",
                "company_subtype": "artigiani",
                "profession": "test",
                "regime": "forfettario_5",
                "rivalsa_name": "",
                "default_rivalsa": 0,
                "cassa_name": "",
                "default_cassa": 0,
                "default_cassa_taxable": 100,
                "cassa2_name": "",
                "default_cassa2": 0,
                "default_cassa2_taxable": 0,
                "default_withholding_tax": 0,
                "default_withholding_tax_taxable": 100,
                "default_other_withholding_tax": 0,
                "enasarco": false,
                "enasarco_type": "null",
                "contributions_percentage": 0,
                "med": false,
                "default_vat": {
                    "id": 66,
                    "value": 0,
                    "description": "Contribuenti forfettari",
                    "notes": "Operazione non soggetta a IVA ai sensi dell\'art. 1, commi 54-89, Legge n. 190\/2014 e succ. modifiche\/integrazioni",
                    "e_invoice": true,
                    "ei_type": "2.2",
                    "ei_description": "Non soggetta art. 1\/54-89 L. 190\/2014 e succ. modifiche\/integrazioni",
                    "editable": false,
                    "is_disabled": false,
                    "default": true
                }
            }
        }';

        $this->array = json_decode($json, true);

        $this->object = ObjectSerializer::deserialize($json, '\FattureInCloud\Model\GetTaxProfileResponse');
    }

    /**
     * Clean up after running each test case
     */
    public function tearDown(): void
    {
    }

    /**
     * Clean up after running all test cases
     */
    public static function tearDownAfterClass(): void
    {
    }

    /**
     * Test "GetTaxProfileResponse"
     */
    public function testGetTaxProfileResponse()
    {
        foreach ($this->array as $key => $value) {
            Testcase::assertArrayHasKey($key, $this->object);
        }
    }

    /**
     * Test attribute "data"
     */
    public function testPropertyData()
    {
        foreach ($this->array['data'] as $key => $value) {
            Testcase::assertArrayHasKey($key, $this->object['data']);
        }
    }
}
