* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PrestashopCheckout\Order\Query; use PrestaShop\Module\PrestashopCheckout\PayPal\Order\Exception\PayPalOrderException; use PrestaShop\Module\PrestashopCheckout\PayPal\Order\ValueObject\PayPalOrderId; use PrestaShop\Module\PrestashopCheckout\PayPal\Payment\Capture\Exception\PayPalCaptureException; use PrestaShop\Module\PrestashopCheckout\PayPal\Payment\Capture\ValueObject\PayPalCaptureId; class GetOrderForPaymentCompletedQuery { /** * @var PayPalOrderId */ private $orderPayPalId; /** * @var PayPalCaptureId */ private $capturePayPalId; /** * @param string $orderPayPalId * @param string $capturePayPalId * * @throws PayPalOrderException * @throws PayPalCaptureException */ public function __construct($orderPayPalId, $capturePayPalId) { $this->orderPayPalId = new PayPalOrderId($orderPayPalId); $this->capturePayPalId = new PayPalCaptureId($capturePayPalId); } /** * @return PayPalOrderId */ public function getOrderPayPalId() { return $this->orderPayPalId; } public function getCapturePayPalId() { return $this->capturePayPalId; } }