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:
104
src/Models/Builders/CardVerificationDetailsBuilder.php
Normal file
104
src/Models/Builders/CardVerificationDetailsBuilder.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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\CardVerificationDetails;
|
||||
use PaypalServerSDKLib\Models\CardVerificationProcessorResponse;
|
||||
use PaypalServerSDKLib\Models\Money;
|
||||
|
||||
/**
|
||||
* Builder for model CardVerificationDetails
|
||||
*
|
||||
* @see CardVerificationDetails
|
||||
*/
|
||||
class CardVerificationDetailsBuilder
|
||||
{
|
||||
/**
|
||||
* @var CardVerificationDetails
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(CardVerificationDetails $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification details Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new CardVerificationDetails());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network transaction id field.
|
||||
*/
|
||||
public function networkTransactionId(?string $value): self
|
||||
{
|
||||
$this->instance->setNetworkTransactionId($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets date field.
|
||||
*/
|
||||
public function date(?string $value): self
|
||||
{
|
||||
$this->instance->setDate($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets network field.
|
||||
*/
|
||||
public function network(?string $value): self
|
||||
{
|
||||
$this->instance->setNetwork($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets time field.
|
||||
*/
|
||||
public function time(?string $value): self
|
||||
{
|
||||
$this->instance->setTime($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount field.
|
||||
*/
|
||||
public function amount(?Money $value): self
|
||||
{
|
||||
$this->instance->setAmount($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets processor response field.
|
||||
*/
|
||||
public function processorResponse(?CardVerificationProcessorResponse $value): self
|
||||
{
|
||||
$this->instance->setProcessorResponse($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new card verification details object.
|
||||
*/
|
||||
public function build(): CardVerificationDetails
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user