forked from LiveCarta/PayPal-PHP-Server-SDK
Automated commit message (#9)
Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
This commit is contained in:
75
src/Models/Builders/EpsPaymentObjectBuilder.php
Normal file
75
src/Models/Builders/EpsPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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\EpsPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model EpsPaymentObject
|
||||
*
|
||||
* @see EpsPaymentObject
|
||||
*/
|
||||
class EpsPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var EpsPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(EpsPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new EpsPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets country code field.
|
||||
*/
|
||||
public function countryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bic field.
|
||||
*/
|
||||
public function bic(?string $value): self
|
||||
{
|
||||
$this->instance->setBic($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new eps payment object object.
|
||||
*/
|
||||
public function build(): EpsPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user