1
0
Files
PayPal-PHP-Server-SDK/src/Models/Builders/VaultPayPalWalletRequestBuilder.php
2024-09-09 15:45:00 +00:00

105 lines
2.3 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\VaultedDigitalWalletShippingDetails;
use PaypalServerSdkLib\Models\VaultExperienceContext;
use PaypalServerSdkLib\Models\VaultPayPalWalletRequest;
/**
* Builder for model VaultPayPalWalletRequest
*
* @see VaultPayPalWalletRequest
*/
class VaultPayPalWalletRequestBuilder
{
/**
* @var VaultPayPalWalletRequest
*/
private $instance;
private function __construct(VaultPayPalWalletRequest $instance)
{
$this->instance = $instance;
}
/**
* Initializes a new vault pay pal wallet request Builder object.
*/
public static function init(): self
{
return new self(new VaultPayPalWalletRequest());
}
/**
* Sets description field.
*/
public function description(?string $value): self
{
$this->instance->setDescription($value);
return $this;
}
/**
* Sets shipping field.
*/
public function shipping(?VaultedDigitalWalletShippingDetails $value): self
{
$this->instance->setShipping($value);
return $this;
}
/**
* Sets permit multiple payment tokens field.
*/
public function permitMultiplePaymentTokens(?bool $value): self
{
$this->instance->setPermitMultiplePaymentTokens($value);
return $this;
}
/**
* Sets usage type field.
*/
public function usageType(?string $value): self
{
$this->instance->setUsageType($value);
return $this;
}
/**
* Sets customer type field.
*/
public function customerType(?string $value): self
{
$this->instance->setCustomerType($value);
return $this;
}
/**
* Sets experience context field.
*/
public function experienceContext(?VaultExperienceContext $value): self
{
$this->instance->setExperienceContext($value);
return $this;
}
/**
* Initializes a new vault pay pal wallet request object.
*/
public function build(): VaultPayPalWalletRequest
{
return CoreHelper::clone($this->instance);
}
}