forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
85 lines
1.6 KiB
PHP
85 lines
1.6 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\TrustlyPaymentObject;
|
|
|
|
/**
|
|
* Builder for model TrustlyPaymentObject
|
|
*
|
|
* @see TrustlyPaymentObject
|
|
*/
|
|
class TrustlyPaymentObjectBuilder
|
|
{
|
|
/**
|
|
* @var TrustlyPaymentObject
|
|
*/
|
|
private $instance;
|
|
|
|
private function __construct(TrustlyPaymentObject $instance)
|
|
{
|
|
$this->instance = $instance;
|
|
}
|
|
|
|
/**
|
|
* Initializes a new trustly payment object Builder object.
|
|
*/
|
|
public static function init(): self
|
|
{
|
|
return new self(new TrustlyPaymentObject());
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* Sets iban last chars field.
|
|
*/
|
|
public function ibanLastChars(?string $value): self
|
|
{
|
|
$this->instance->setIbanLastChars($value);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Initializes a new trustly payment object object.
|
|
*/
|
|
public function build(): TrustlyPaymentObject
|
|
{
|
|
return CoreHelper::clone($this->instance);
|
|
}
|
|
}
|