<?php

declare(strict_types=1);

/*
 * PaypalServerSdkLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

namespace PaypalServerSdkLib\Models\Builders;

use Core\Utils\CoreHelper;
use PaypalServerSdkLib\Models\Taxes;

/**
 * Builder for model Taxes
 *
 * @see Taxes
 */
class TaxesBuilder
{
    /**
     * @var Taxes
     */
    private $instance;

    private function __construct(Taxes $instance)
    {
        $this->instance = $instance;
    }

    /**
     * Initializes a new Taxes Builder object.
     *
     * @param string $percentage
     */
    public static function init(string $percentage): self
    {
        return new self(new Taxes($percentage));
    }

    /**
     * Sets inclusive field.
     *
     * @param bool|null $value
     */
    public function inclusive(?bool $value): self
    {
        $this->instance->setInclusive($value);
        return $this;
    }

    /**
     * Initializes a new Taxes object.
     */
    public function build(): Taxes
    {
        return CoreHelper::clone($this->instance);
    }
}
