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:
85
src/Models/Builders/CardVaultResponseBuilder.php
Normal file
85
src/Models/Builders/CardVaultResponseBuilder.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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\CardCustomerInformation;
|
||||
use PaypalServerSDKLib\Models\CardVaultResponse;
|
||||
|
||||
/**
|
||||
* Builder for model CardVaultResponse
|
||||
*
|
||||
* @see CardVaultResponse
|
||||
*/
|
||||
class CardVaultResponseBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVaultResponse
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVaultResponse $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card vault response Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVaultResponse());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id field.
|
||||
*/
|
||||
public function id(?string $value): self
|
||||
{
|
||||
$this->instance->setId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status field.
|
||||
*/
|
||||
public function status(?string $value): self
|
||||
{
|
||||
$this->instance->setStatus($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets links field.
|
||||
*/
|
||||
public function links(?array $value): self
|
||||
{
|
||||
$this->instance->setLinks($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer field.
|
||||
*/
|
||||
public function customer(?CardCustomerInformation $value): self
|
||||
{
|
||||
$this->instance->setCustomer($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card vault response object.
|
||||
*/
|
||||
public function build(): CardVaultResponse
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user