amount; } /** * Sets Amount. * The currency and amount for a financial transaction, such as a balance or payment due. * * @maps amount */ public function setAmount(?Money $amount): void { $this->amount = $amount; } /** * Converts the ReauthorizeRequest object to a human-readable string representation. * * @return string The string representation of the ReauthorizeRequest object. */ public function __toString(): string { return ApiHelper::stringify('ReauthorizeRequest', ['amount' => $this->amount]); } /** * 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->amount)) { $json['amount'] = $this->amount; } return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }