From d53d203c67c2d479809aadb1f8c6ee8c1dc28bb0 Mon Sep 17 00:00:00 2001 From: Abd Domingos Date: Mon, 10 Jul 2023 23:50:49 +0200 Subject: [PATCH] Update TransactionResponseInterface.php --- .../TransactionResponseInterface.php | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/interfaces/TransactionResponseInterface.php b/src/interfaces/TransactionResponseInterface.php index f1c26f6..e9e744c 100644 --- a/src/interfaces/TransactionResponseInterface.php +++ b/src/interfaces/TransactionResponseInterface.php @@ -58,4 +58,32 @@ public function getTransactionStatus(): string; * @return string */ public function getResponse(): string; -} \ No newline at end of file + + /** + * Returns the transaction amount + * + * @return float + */ + public function getAmount(): float; + + /** + * Returns the transaction timestamp + * + * @return string + */ + public function getTimestamp(): string; + + /** + * Returns the error code, if applicable + * + * @return string|null + */ + public function getErrorCode(): ?string; + + /** + * Returns the error message, if applicable + * + * @return string|null + */ + public function getErrorMessage(): ?string; +}