1
0
Files
PayPal-PHP-Server-SDK/src/Models/Builders/ApplePayTokenizedCardBuilder.php
Patrick Powers 504c367386 Release 0.7.0
Beta Release 0.7.0 including:

- Bug fixes
- Updated model/function names
- Updated models to reflect changes in APIs
2025-03-20 13:18:55 -05:00

127 lines
2.4 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\Address;
use PaypalServerSdkLib\Models\ApplePayTokenizedCard;
/**
* Builder for model ApplePayTokenizedCard
*
* @see ApplePayTokenizedCard
*/
class ApplePayTokenizedCardBuilder
{
/**
* @var ApplePayTokenizedCard
*/
private $instance;
private function __construct(ApplePayTokenizedCard $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new Apple Pay Tokenized Card Builder object.
*/
public static function init(): self
{
return new self(new ApplePayTokenizedCard());
}
/**
* Sets name field.
*
* @param string|null $value
*/
public function name(?string $value): self
{
$this->instance->setName($value);
return $this;
}
/**
* Sets number field.
*
* @param string|null $value
*/
public function number(?string $value): self
{
$this->instance->setNumber($value);
return $this;
}
/**
* Sets expiry field.
*
* @param string|null $value
*/
public function expiry(?string $value): self
{
$this->instance->setExpiry($value);
return $this;
}
/**
* Sets card type field.
*
* @param string|null $value
*/
public function cardType(?string $value): self
{
$this->instance->setCardType($value);
return $this;
}
/**
* Sets type field.
*
* @param string|null $value
*/
public function type(?string $value): self
{
$this->instance->setType($value);
return $this;
}
/**
* Sets brand field.
*
* @param string|null $value
*/
public function brand(?string $value): self
{
$this->instance->setBrand($value);
return $this;
}
/**
* Sets billing address field.
*
* @param Address|null $value
*/
public function billingAddress(?Address $value): self
{
$this->instance->setBillingAddress($value);
return $this;
}
/**
* Initializes a new Apple Pay Tokenized Card object.
*/
public function build(): ApplePayTokenizedCard
{
return CoreHelper::clone($this->instance);
}
}