protected function buildRefundPayload(OrderTransactionCaptureRefundEntity
$refund, OrderEntity
$order): RefundPayload
{ return new RefundPayload( $refund,
$order );
} protected function buildValidatePayload(Cart
$cart, RequestDataBag
$requestDataBag, SalesChannelContext
$context): ValidatePayload
{ return new ValidatePayload( $cart,
$requestDataBag->
all(),
$context,
);
} protected function buildCapturePayload(PreparedPaymentTransactionStruct
$transaction, Struct
$preOrderPaymentStruct): CapturePayload
{ return new CapturePayload( $transaction->
getOrderTransaction(),
$transaction->
getOrder(),