whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
square
/
square
/
src
/
Models
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/square/square/src/Models/RetrieveGiftCardFromNonceRequest.php
<?php declare(strict_types=1); namespace Square\Models; use stdClass; /** * A request to retrieve a gift card by using a payment token. */ class RetrieveGiftCardFromNonceRequest implements \JsonSerializable { /** * @var string */ private $nonce; /** * @param string $nonce */ public function __construct(string $nonce) { $this->nonce = $nonce; } /** * Returns Nonce. * * The payment token of the gift card to retrieve. Payment tokens are generated by the * Web Payments SDK or In-App Payments SDK. */ public function getNonce(): string { return $this->nonce; } /** * Sets Nonce. * * The payment token of the gift card to retrieve. Payment tokens are generated by the * Web Payments SDK or In-App Payments SDK. * * @required * @maps nonce */ public function setNonce(string $nonce): void { $this->nonce = $nonce; } /** * Encode this object to JSON * * @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields * are set. (default: false) * * @return mixed */ public function jsonSerialize(bool $asArrayWhenEmpty = false) { $json = []; $json['nonce'] = $this->nonce; $json = array_filter($json, function ($val) { return $val !== null; }); return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }
Copyright ©2021 || Defacer Indonesia