1
0
Files
PayPal-PHP-Server-SDK/src/Models/Builders/GooglePayDecryptedTokenDataBuilder.php
2024-11-21 17:43:29 +00:00

86 lines
1.9 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\GooglePayCard;
use PaypalServerSdkLib\Models\GooglePayDecryptedTokenData;
/**
* Builder for model GooglePayDecryptedTokenData
*
* @see GooglePayDecryptedTokenData
*/
class GooglePayDecryptedTokenDataBuilder
{
/**
* @var GooglePayDecryptedTokenData
*/
private $instance;
private function __construct(GooglePayDecryptedTokenData $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new google pay decrypted token data Builder object.
*/
public static function init(string $paymentMethod, GooglePayCard $card, string $authenticationMethod): self
{
return new self(new GooglePayDecryptedTokenData($paymentMethod, $card, $authenticationMethod));
}
/**
* Sets message id field.
*/
public function messageId(?string $value): self
{
$this->instance->setMessageId($value);
return $this;
}
/**
* Sets message expiration field.
*/
public function messageExpiration(?string $value): self
{
$this->instance->setMessageExpiration($value);
return $this;
}
/**
* Sets cryptogram field.
*/
public function cryptogram(?string $value): self
{
$this->instance->setCryptogram($value);
return $this;
}
/**
* Sets eci indicator field.
*/
public function eciIndicator(?string $value): self
{
$this->instance->setEciIndicator($value);
return $this;
}
/**
* Initializes a new google pay decrypted token data object.
*/
public function build(): GooglePayDecryptedTokenData
{
return CoreHelper::clone($this->instance);
}
}