1
0

Automated commit message

This commit is contained in:
PayPalServerSDKs
2024-11-21 17:43:29 +00:00
parent de24c9e488
commit 00fde18df4
48 changed files with 2092 additions and 858 deletions

View File

@@ -33,6 +33,11 @@ class GooglePayDecryptedTokenData implements \JsonSerializable
*/
private $paymentMethod;
/**
* @var GooglePayCard
*/
private $card;
/**
* @var string
*/
@@ -50,11 +55,13 @@ class GooglePayDecryptedTokenData implements \JsonSerializable
/**
* @param string $paymentMethod
* @param GooglePayCard $card
* @param string $authenticationMethod
*/
public function __construct(string $paymentMethod, string $authenticationMethod)
public function __construct(string $paymentMethod, GooglePayCard $card, string $authenticationMethod)
{
$this->paymentMethod = $paymentMethod;
$this->card = $card;
$this->authenticationMethod = $authenticationMethod;
}
@@ -121,6 +128,27 @@ class GooglePayDecryptedTokenData implements \JsonSerializable
$this->paymentMethod = $paymentMethod;
}
/**
* Returns Card.
* The payment card used to fund a Google Pay payment. Can be a credit or debit card.
*/
public function getCard(): GooglePayCard
{
return $this->card;
}
/**
* Sets Card.
* The payment card used to fund a Google Pay payment. Can be a credit or debit card.
*
* @required
* @maps card
*/
public function setCard(GooglePayCard $card): void
{
$this->card = $card;
}
/**
* Returns Authentication Method.
* Authentication Method which is used for the card transaction.
@@ -205,6 +233,7 @@ class GooglePayDecryptedTokenData implements \JsonSerializable
$json['message_expiration'] = $this->messageExpiration;
}
$json['payment_method'] = GooglePayPaymentMethod::checkValue($this->paymentMethod);
$json['card'] = $this->card;
$json['authentication_method'] = GooglePayAuthenticationMethod::checkValue($this->authenticationMethod);
if (isset($this->cryptogram)) {
$json['cryptogram'] = $this->cryptogram;