forked from LiveCarta/PayPal-PHP-Server-SDK
Release 0.7.0
Beta Release 0.7.0 including: - Bug fixes - Updated model/function names - Updated models to reflect changes in APIs
This commit is contained in:
@@ -10,6 +10,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace PaypalServerSdkLib\Models;
|
||||
|
||||
use PaypalServerSdkLib\ApiHelper;
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,11 @@ class VaultedDigitalWallet implements \JsonSerializable
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
private $usagePattern;
|
||||
|
||||
/**
|
||||
* @var VaultedDigitalWalletShippingDetails|null
|
||||
*/
|
||||
@@ -64,6 +70,26 @@ class VaultedDigitalWallet implements \JsonSerializable
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Usage Pattern.
|
||||
* Expected business/charge model for the billing agreement.
|
||||
*/
|
||||
public function getUsagePattern(): ?string
|
||||
{
|
||||
return $this->usagePattern;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets Usage Pattern.
|
||||
* Expected business/charge model for the billing agreement.
|
||||
*
|
||||
* @maps usage_pattern
|
||||
*/
|
||||
public function setUsagePattern(?string $usagePattern): void
|
||||
{
|
||||
$this->usagePattern = $usagePattern;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns Shipping.
|
||||
* The shipping details.
|
||||
@@ -156,6 +182,26 @@ class VaultedDigitalWallet implements \JsonSerializable
|
||||
$this->customerType = $customerType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the VaultedDigitalWallet object to a human-readable string representation.
|
||||
*
|
||||
* @return string The string representation of the VaultedDigitalWallet object.
|
||||
*/
|
||||
public function __toString(): string
|
||||
{
|
||||
return ApiHelper::stringify(
|
||||
'VaultedDigitalWallet',
|
||||
[
|
||||
'description' => $this->description,
|
||||
'usagePattern' => $this->usagePattern,
|
||||
'shipping' => $this->shipping,
|
||||
'permitMultiplePaymentTokens' => $this->permitMultiplePaymentTokens,
|
||||
'usageType' => $this->usageType,
|
||||
'customerType' => $this->customerType
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode this object to JSON
|
||||
*
|
||||
@@ -171,6 +217,9 @@ class VaultedDigitalWallet implements \JsonSerializable
|
||||
if (isset($this->description)) {
|
||||
$json['description'] = $this->description;
|
||||
}
|
||||
if (isset($this->usagePattern)) {
|
||||
$json['usage_pattern'] = $this->usagePattern;
|
||||
}
|
||||
if (isset($this->shipping)) {
|
||||
$json['shipping'] = $this->shipping;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user