mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
make patch method of OrderProcessor public
This commit is contained in:
parent
bcc0fc495e
commit
3ddfec6a26
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class OrderProcessor
|
||||||
return $this->lastError;
|
return $this->lastError;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function patchOrder(\WC_Order $wcOrder, Order $order): Order
|
public function patchOrder(\WC_Order $wcOrder, Order $order): Order
|
||||||
{
|
{
|
||||||
$updatedOrder = $this->orderFactory->fromWcOrder($wcOrder, $order);
|
$updatedOrder = $this->orderFactory->fromWcOrder($wcOrder, $order);
|
||||||
$order = $this->orderEndpoint->patchOrderWith($order, $updatedOrder);
|
$order = $this->orderEndpoint->patchOrderWith($order, $updatedOrder);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue