<?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\UpdatePricingScheme;
use PaypalServerSdkLib\Models\UpdatePricingSchemesRequest;

/**
 * Builder for model UpdatePricingSchemesRequest
 *
 * @see UpdatePricingSchemesRequest
 */
class UpdatePricingSchemesRequestBuilder
{
    /**
     * @var UpdatePricingSchemesRequest
     */
    private $instance;

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

    /**
     * Initializes a new Update Pricing Schemes Request Builder object.
     *
     * @param UpdatePricingScheme[] $pricingSchemes
     */
    public static function init(array $pricingSchemes): self
    {
        return new self(new UpdatePricingSchemesRequest($pricingSchemes));
    }

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