* @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\PayPal\Order\Command; use PrestaShop\Module\PrestashopCheckout\PayPal\Order\Exception\PayPalOrderException; use PrestaShop\Module\PrestashopCheckout\PayPal\Order\ValueObject\PayPalOrderId; class CapturePayPalOrderCommand { /** * @var PayPalOrderId */ private $orderId; /** * @var string */ private $fundingSource; /** * @param string $orderId * @param string $fundingSource * * @throws PayPalOrderException */ public function __construct($orderId, $fundingSource) { $this->orderId = new PayPalOrderId($orderId); $this->fundingSource = $fundingSource; } /** * @return PayPalOrderId */ public function getOrderId() { return $this->orderId; } /** * @return string */ public function getFundingSource() { return $this->fundingSource; } }