1
0
Files
PayPal-PHP-Server-SDK/src/Models/Builders/BlikPaymentObjectBuilder.php
Patrick Powers 504c367386 Release 0.7.0
Beta Release 0.7.0 including:

- Bug fixes
- Updated model/function names
- Updated models to reflect changes in APIs
2025-03-20 13:18:55 -05:00

94 lines
1.8 KiB
PHP

<?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\BlikOneClickPaymentObject;
use PaypalServerSdkLib\Models\BlikPaymentObject;
/**
* Builder for model BlikPaymentObject
*
* @see BlikPaymentObject
*/
class BlikPaymentObjectBuilder
{
/**
* @var BlikPaymentObject
*/
private $instance;
private function __construct(BlikPaymentObject $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new Blik Payment Object Builder object.
*/
public static function init(): self
{
return new self(new BlikPaymentObject());
}
/**
* Sets name field.
*
* @param string|null $value
*/
public function name(?string $value): self
{
$this->instance->setName($value);
return $this;
}
/**
* Sets country code field.
*
* @param string|null $value
*/
public function countryCode(?string $value): self
{
$this->instance->setCountryCode($value);
return $this;
}
/**
* Sets email field.
*
* @param string|null $value
*/
public function email(?string $value): self
{
$this->instance->setEmail($value);
return $this;
}
/**
* Sets one click field.
*
* @param BlikOneClickPaymentObject|null $value
*/
public function oneClick(?BlikOneClickPaymentObject $value): self
{
$this->instance->setOneClick($value);
return $this;
}
/**
* Initializes a new Blik Payment Object object.
*/
public function build(): BlikPaymentObject
{
return CoreHelper::clone($this->instance);
}
}