forked from LiveCarta/PayPal-PHP-Server-SDK
Beta Release 0.5.0 (#3)
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
This commit is contained in:
93
src/Models/Builders/BancontactPaymentObjectBuilder.php
Normal file
93
src/Models/Builders/BancontactPaymentObjectBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?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\BancontactPaymentObject;
|
||||
|
||||
/**
|
||||
* Builder for model BancontactPaymentObject
|
||||
*
|
||||
* @see BancontactPaymentObject
|
||||
*/
|
||||
class BancontactPaymentObjectBuilder
|
||||
{
|
||||
/**
|
||||
* @var BancontactPaymentObject
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BancontactPaymentObject $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment object Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BancontactPaymentObject());
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets card last digits field.
|
||||
*/
|
||||
public function cardLastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setCardLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bancontact payment object object.
|
||||
*/
|
||||
public function build(): BancontactPaymentObject
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user