1
0

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:
Dani Kirby
2024-09-09 12:10:34 -05:00
committed by GitHub
parent c9cb1ad04a
commit 6b43a4225b
732 changed files with 73569 additions and 1 deletions

View 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);
}
}