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:
84
src/Models/Builders/BinDetailsBuilder.php
Normal file
84
src/Models/Builders/BinDetailsBuilder.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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\BinDetails;
|
||||
|
||||
/**
|
||||
* Builder for model BinDetails
|
||||
*
|
||||
* @see BinDetails
|
||||
*/
|
||||
class BinDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var BinDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BinDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bin details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BinDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin field.
|
||||
*/
|
||||
public function bin(?string $value): self
|
||||
{
|
||||
$this->instance->setBin($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets issuing bank field.
|
||||
*/
|
||||
public function issuingBank(?string $value): self
|
||||
{
|
||||
$this->instance->setIssuingBank($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bin country code field.
|
||||
*/
|
||||
public function binCountryCode(?string $value): self
|
||||
{
|
||||
$this->instance->setBinCountryCode($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets products field.
|
||||
*/
|
||||
public function products(?array $value): self
|
||||
{
|
||||
$this->instance->setProducts($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new bin details object.
|
||||
*/
|
||||
public function build(): BinDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user