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,152 @@
<?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\AddressDetails;
use PaypalServerSDKLib\Models\BinDetails;
use PaypalServerSDKLib\Models\CardAuthenticationResponse;
use PaypalServerSDKLib\Models\CardVerificationDetails;
use PaypalServerSDKLib\Models\NetworkTransactionReferenceEntity;
use PaypalServerSDKLib\Models\SetupTokenResponseCard;
/**
* Builder for model SetupTokenResponseCard
*
* @see SetupTokenResponseCard
*/
class SetupTokenResponseCardBuilder
{
/**
* @var SetupTokenResponseCard
*/
private $instance;
private function __construct(SetupTokenResponseCard $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new setup token response card Builder object.
*/
public static function init(): self
{
return new self(new SetupTokenResponseCard());
}
/**
* 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 brand field.
*/
public function brand(?string $value): self
{
$this->instance->setBrand($value);
return $this;
}
/**
* Sets expiry field.
*/
public function expiry(?string $value): self
{
$this->instance->setExpiry($value);
return $this;
}
/**
* Sets billing address field.
*/
public function billingAddress(?AddressDetails $value): self
{
$this->instance->setBillingAddress($value);
return $this;
}
/**
* Sets verification status field.
*/
public function verificationStatus(?string $value): self
{
$this->instance->setVerificationStatus($value);
return $this;
}
/**
* Sets verification field.
*/
public function verification(?CardVerificationDetails $value): self
{
$this->instance->setVerification($value);
return $this;
}
/**
* Sets network transaction reference field.
*/
public function networkTransactionReference(?NetworkTransactionReferenceEntity $value): self
{
$this->instance->setNetworkTransactionReference($value);
return $this;
}
/**
* Sets authentication result field.
*/
public function authenticationResult(?CardAuthenticationResponse $value): self
{
$this->instance->setAuthenticationResult($value);
return $this;
}
/**
* Sets bin details field.
*/
public function binDetails(?BinDetails $value): self
{
$this->instance->setBinDetails($value);
return $this;
}
/**
* Sets type field.
*/
public function type(?string $value): self
{
$this->instance->setType($value);
return $this;
}
/**
* Initializes a new setup token response card object.
*/
public function build(): SetupTokenResponseCard
{
return CoreHelper::clone($this->instance);
}
}