id; } /** * Sets Id. * ApplePay transaction identifier, this will be the unique identifier for this transaction provided by * Apple. The pattern is defined by an external party and supports Unicode. * * @maps id */ public function setId(?string $id): void { $this->id = $id; } /** * Returns Name. * The full name representation like Mr J Smith. */ public function getName(): ?string { return $this->name; } /** * Sets Name. * The full name representation like Mr J Smith. * * @maps name */ public function setName(?string $name): void { $this->name = $name; } /** * Returns Email Address. * The internationalized email address.
Note: Up to 64 characters are * allowed before and 255 characters are allowed after the @ sign. However, the generally * accepted maximum length for an email address is 254 characters. The pattern verifies that an * unquoted @ sign exists.
*/ public function getEmailAddress(): ?string { return $this->emailAddress; } /** * Sets Email Address. * The internationalized email address.
Note: Up to 64 characters are * allowed before and 255 characters are allowed after the @ sign. However, the generally * accepted maximum length for an email address is 254 characters. The pattern verifies that an * unquoted @ sign exists.
* * @maps email_address */ public function setEmailAddress(?string $emailAddress): void { $this->emailAddress = $emailAddress; } /** * Returns Phone Number. * The phone number in its canonical international [E.164 numbering plan format](https://www.itu. * int/rec/T-REC-E.164/en). */ public function getPhoneNumber(): ?PhoneNumber { return $this->phoneNumber; } /** * Sets Phone Number. * The phone number in its canonical international [E.164 numbering plan format](https://www.itu. * int/rec/T-REC-E.164/en). * * @maps phone_number */ public function setPhoneNumber(?PhoneNumber $phoneNumber): void { $this->phoneNumber = $phoneNumber; } /** * Returns Decrypted Token. * Information about the Payment data obtained by decrypting Apple Pay token. */ public function getDecryptedToken(): ?ApplePayDecryptedTokenData { return $this->decryptedToken; } /** * Sets Decrypted Token. * Information about the Payment data obtained by decrypting Apple Pay token. * * @maps decrypted_token */ public function setDecryptedToken(?ApplePayDecryptedTokenData $decryptedToken): void { $this->decryptedToken = $decryptedToken; } /** * Returns Stored Credential. * Provides additional details to process a payment using a `card` that has been stored or is intended * to be stored (also referred to as stored_credential or card-on-file).
Parameter compatibility: *
*/ public function getStoredCredential(): ?CardStoredCredential { return $this->storedCredential; } /** * Sets Stored Credential. * Provides additional details to process a payment using a `card` that has been stored or is intended * to be stored (also referred to as stored_credential or card-on-file).
Parameter compatibility: *
* * @maps stored_credential */ public function setStoredCredential(?CardStoredCredential $storedCredential): void { $this->storedCredential = $storedCredential; } /** * Returns Vault Id. * The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's * server so the saved payment source can be used for future transactions. */ public function getVaultId(): ?string { return $this->vaultId; } /** * Sets Vault Id. * The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's * server so the saved payment source can be used for future transactions. * * @maps vault_id */ public function setVaultId(?string $vaultId): void { $this->vaultId = $vaultId; } /** * Returns Attributes. * Additional attributes associated with apple pay. */ public function getAttributes(): ?ApplePayAttributes { return $this->attributes; } /** * Sets Attributes. * Additional attributes associated with apple pay. * * @maps attributes */ public function setAttributes(?ApplePayAttributes $attributes): void { $this->attributes = $attributes; } /** * Encode this object to JSON * * @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields * are set. (default: false) * * @return array|stdClass */ #[\ReturnTypeWillChange] // @phan-suppress-current-line PhanUndeclaredClassAttribute for (php < 8.1) public function jsonSerialize(bool $asArrayWhenEmpty = false) { $json = []; if (isset($this->id)) { $json['id'] = $this->id; } if (isset($this->name)) { $json['name'] = $this->name; } if (isset($this->emailAddress)) { $json['email_address'] = $this->emailAddress; } if (isset($this->phoneNumber)) { $json['phone_number'] = $this->phoneNumber; } if (isset($this->decryptedToken)) { $json['decrypted_token'] = $this->decryptedToken; } if (isset($this->storedCredential)) { $json['stored_credential'] = $this->storedCredential; } if (isset($this->vaultId)) { $json['vault_id'] = $this->vaultId; } if (isset($this->attributes)) { $json['attributes'] = $this->attributes; } return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }