forked from LiveCarta/PayPal-PHP-Server-SDK
Automated commit message
This commit is contained in:
111
src/Models/Builders/BlikExperienceContextBuilder.php
Normal file
111
src/Models/Builders/BlikExperienceContextBuilder.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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\BlikExperienceContext;
|
||||
|
||||
/**
|
||||
* Builder for model BlikExperienceContext
|
||||
*
|
||||
* @see BlikExperienceContext
|
||||
*/
|
||||
class BlikExperienceContextBuilder
|
||||
{
|
||||
/**
|
||||
* @var BlikExperienceContext
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(BlikExperienceContext $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik experience context Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new BlikExperienceContext());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand name field.
|
||||
*/
|
||||
public function brandName(?string $value): self
|
||||
{
|
||||
$this->instance->setBrandName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets locale field.
|
||||
*/
|
||||
public function locale(?string $value): self
|
||||
{
|
||||
$this->instance->setLocale($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets shipping preference field.
|
||||
*/
|
||||
public function shippingPreference(?string $value): self
|
||||
{
|
||||
$this->instance->setShippingPreference($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets return url field.
|
||||
*/
|
||||
public function returnUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setReturnUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cancel url field.
|
||||
*/
|
||||
public function cancelUrl(?string $value): self
|
||||
{
|
||||
$this->instance->setCancelUrl($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets consumer ip field.
|
||||
*/
|
||||
public function consumerIp(?string $value): self
|
||||
{
|
||||
$this->instance->setConsumerIp($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets consumer user agent field.
|
||||
*/
|
||||
public function consumerUserAgent(?string $value): self
|
||||
{
|
||||
$this->instance->setConsumerUserAgent($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new blik experience context object.
|
||||
*/
|
||||
public function build(): BlikExperienceContext
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user