mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-16 01:47:49 +00:00
Use getId instead of getHas()?->toBinary()
This commit is contained in:
parent
8c0eb250e4
commit
c15b1f7737
6 changed files with 6 additions and 6 deletions
|
|
@ -26,6 +26,6 @@ final class NotifyPaymentRequestCommandProvider implements PaymentRequestCommand
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new NotifyPaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new NotifyPaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ final class CapturePaymentRequestCommandProvider implements PaymentRequestComman
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new CapturePaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new CapturePaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ final class AuthorizeCommandProvider implements PaymentRequestCommandProviderInt
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new AuthorizePaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new AuthorizePaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ final class CaptureCommandProvider implements PaymentRequestCommandProviderInter
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new CapturePaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new CapturePaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ final class NotifyCommandProvider implements PaymentRequestCommandProviderInterf
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new NotifyPaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new NotifyPaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ final class StatusCommandProvider implements PaymentRequestCommandProviderInterf
|
||||||
|
|
||||||
public function provide(PaymentRequestInterface $paymentRequest): object
|
public function provide(PaymentRequestInterface $paymentRequest): object
|
||||||
{
|
{
|
||||||
return new StatusPaymentRequest($paymentRequest->getHash()?->toBinary());
|
return new StatusPaymentRequest($paymentRequest->getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue