forked from LiveCarta/PayPal-PHP-Server-SDK
Automated commit message
This commit is contained in:
93
src/Models/Builders/PayPalWalletVaultInstructionBuilder.php
Normal file
93
src/Models/Builders/PayPalWalletVaultInstructionBuilder.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* PayPalRESTAPIsLib
|
||||
*
|
||||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
|
||||
*/
|
||||
|
||||
namespace PayPalRESTAPIsLib\Models\Builders;
|
||||
|
||||
use Core\Utils\CoreHelper;
|
||||
use PayPalRESTAPIsLib\Models\PayPalWalletVaultInstruction;
|
||||
|
||||
/**
|
||||
* Builder for model PayPalWalletVaultInstruction
|
||||
*
|
||||
* @see PayPalWalletVaultInstruction
|
||||
*/
|
||||
class PayPalWalletVaultInstructionBuilder
|
||||
{
|
||||
/**
|
||||
* @var PayPalWalletVaultInstruction
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
private function __construct(PayPalWalletVaultInstruction $instance)
|
||||
{
|
||||
$this->instance = $instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new pay pal wallet vault instruction Builder object.
|
||||
*/
|
||||
public static function init(string $usageType): self
|
||||
{
|
||||
return new self(new PayPalWalletVaultInstruction($usageType));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets store in vault field.
|
||||
*/
|
||||
public function storeInVault(?string $value): self
|
||||
{
|
||||
$this->instance->setStoreInVault($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets description field.
|
||||
*/
|
||||
public function description(?string $value): self
|
||||
{
|
||||
$this->instance->setDescription($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets usage pattern field.
|
||||
*/
|
||||
public function usagePattern(?string $value): self
|
||||
{
|
||||
$this->instance->setUsagePattern($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets customer type field.
|
||||
*/
|
||||
public function customerType(?string $value): self
|
||||
{
|
||||
$this->instance->setCustomerType($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets permit multiple payment tokens field.
|
||||
*/
|
||||
public function permitMultiplePaymentTokens(?bool $value): self
|
||||
{
|
||||
$this->instance->setPermitMultiplePaymentTokens($value);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new pay pal wallet vault instruction object.
|
||||
*/
|
||||
public function build(): PayPalWalletVaultInstruction
|
||||
{
|
||||
return CoreHelper::clone($this->instance);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user