From bea830a9cb33acb78e87672fd4d9bed52c24aa95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= <p.mueller@pcsg.de> Date: Thu, 15 Mar 2018 09:37:12 +0100 Subject: [PATCH] docs: PHPDoc and @todo's --- src/QUI/ERP/Payments/Amazon/Payment.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/QUI/ERP/Payments/Amazon/Payment.php b/src/QUI/ERP/Payments/Amazon/Payment.php index eb0293b..ccd0fc2 100644 --- a/src/QUI/ERP/Payments/Amazon/Payment.php +++ b/src/QUI/ERP/Payments/Amazon/Payment.php @@ -235,6 +235,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment * * @throws AmazonPayException * @throws QUI\ERP\Exception + * @throws QUI\Exception */ public function authorizePayment($orderReferenceId, AbstractOrder $Order) { @@ -413,6 +414,7 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment break; default: + // @todo Order ggf. pending $reason = $status['ReasonCode']; $Order->addHistory( @@ -429,8 +431,10 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment * * @param AbstractOrder $Order * @return void + * * @throws AmazonPayException * @throws QUI\ERP\Exception + * @throws QUI\Exception */ public function capturePayment(AbstractOrder $Order) { @@ -524,6 +528,8 @@ class Payment extends QUI\ERP\Accounting\Payments\Api\AbstractPayment $Order->update(QUI::getUsers()->getSystemUser()); break; + // @todo pending status + default: $reason = $status['ReasonCode']; -- GitLab