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:
94
src/Models/Builders/ApplePayCardBuilder.php
Normal file
94
src/Models/Builders/ApplePayCardBuilder.php
Normal file
@@ -0,0 +1,94 @@
|
||||
<?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\ApplePayCard;
|
||||
|
||||
/**
|
||||
* Builder for model ApplePayCard
|
||||
*
|
||||
* @see ApplePayCard
|
||||
*/
|
||||
class ApplePayCardBuilder
|
||||
{
|
||||
/**
|
||||
* @var ApplePayCard
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(ApplePayCard $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card Builder object.
|
||||
*/
|
||||
public static function init(): self
|
||||
{
|
||||
return new self(new ApplePayCard());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name field.
|
||||
*/
|
||||
public function name(?string $value): self
|
||||
{
|
||||
$this->instance->setName($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets last digits field.
|
||||
*/
|
||||
public function lastDigits(?string $value): self
|
||||
{
|
||||
$this->instance->setLastDigits($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets type field.
|
||||
*/
|
||||
public function type(?string $value): self
|
||||
{
|
||||
$this->instance->setType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets brand field.
|
||||
*/
|
||||
public function brand(?string $value): self
|
||||
{
|
||||
$this->instance->setBrand($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing address field.
|
||||
*/
|
||||
public function billingAddress(?Address $value): self
|
||||
{
|
||||
$this->instance->setBillingAddress($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new apple pay card object.
|
||||
*/
|
||||
public function build(): ApplePayCard
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user