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>
76 lines
1.6 KiB
PHP
76 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\BLIKOneClickPaymentRequest;
|
|
|
|
/**
|
|
* Builder for model BLIKOneClickPaymentRequest
|
|
*
|
|
* @see BLIKOneClickPaymentRequest
|
|
*/
|
|
class BLIKOneClickPaymentRequestBuilder
|
|
{
|
|
/**
|
|
* @var BLIKOneClickPaymentRequest
|
|
*/
|
|
private $instance;
|
|
|
|
private function __construct(BLIKOneClickPaymentRequest $instance)
|
|
{
|
|
$this->instance = $instance;
|
|
}
|
|
|
|
/**
|
|
* Initializes a new blikone click payment request Builder object.
|
|
*/
|
|
public static function init(string $consumerReference): self
|
|
{
|
|
return new self(new BLIKOneClickPaymentRequest($consumerReference));
|
|
}
|
|
|
|
/**
|
|
* Sets auth code field.
|
|
*/
|
|
public function authCode(?string $value): self
|
|
{
|
|
$this->instance->setAuthCode($value);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Sets alias label field.
|
|
*/
|
|
public function aliasLabel(?string $value): self
|
|
{
|
|
$this->instance->setAliasLabel($value);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Sets alias key field.
|
|
*/
|
|
public function aliasKey(?string $value): self
|
|
{
|
|
$this->instance->setAliasKey($value);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Initializes a new blikone click payment request object.
|
|
*/
|
|
public function build(): BLIKOneClickPaymentRequest
|
|
{
|
|
return CoreHelper::clone($this->instance);
|
|
}
|
|
}
|