* @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; class GetOrderForPaymentRefundedQuery { /** * @var PayPalOrderId */ private $orderPayPalId; /** * @param string $orderPayPalId * * @throws PayPalOrderException */ public function __construct($orderPayPalId) { $this->orderPayPalId = new PayPalOrderId($orderPayPalId); } /** * @return PayPalOrderId */ public function getOrderPayPalId() { return $this->orderPayPalId; } }