<?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\SellerProtection;

/**
 * Builder for model SellerProtection
 *
 * @see SellerProtection
 */
class SellerProtectionBuilder
{
    /**
     * @var SellerProtection
     */
    private $instance;

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

    /**
     * Initializes a new seller protection Builder object.
     */
    public static function init(): self
    {
        return new self(new SellerProtection());
    }

    /**
     * Sets status field.
     */
    public function status(?string $value): self
    {
        $this->instance->setStatus($value);
        return $this;
    }

    /**
     * Sets dispute categories field.
     */
    public function disputeCategories(?array $value): self
    {
        $this->instance->setDisputeCategories($value);
        return $this;
    }

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