Adapter/ShopwareAdapter/ServiceBus/QueryHandler/Payment/FetchPaymentQueryHandler.php
public function handle(QueryInterface $query)
    {
        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $query->getObjectIdentifier(),
            'objectType' => Payment::TYPE,
            'adapterName' => ShopwareAdapter::NAME,
        ]);

        if (null === $identity) {
            return [];
        }

        $order = $this->dataProvider->getOrderDetails($identity->getAdapterIdentifier());
        $order = $this->responseParser->parse($order);

        return array_filter($order);
    }
public function handle(QueryInterface $query)
    {
        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $query->getObjectIdentifier(),
            'objectType' => Payment::TYPE,
            'adapterName' => ShopwareAdapter::NAME,
        ]);

        if (null === $identity) {
            return [];
        }

        $order = $this->dataProvider->getOrderDetails($identity->getAdapterIdentifier());
        $order = $this->responseParser->parse($order);

        return array_filter($order);
    }
public function handle ( QueryInterface $ query ) { $ identity = $ this -> identityService -> findOneBy ( [ 'objectIdentifier' => $ query -> getObjectIdentifier ( ) , 'objectType' => Payment :: TYPE , 'adapterName' => ShopwareAdapter :: NAME , ] ) ; if ( null === $ identity ) { return [ ] ; } $ order = $ this -> dataProvider -> getOrderDetails ( $ identity -> getAdapterIdentifier ( ) ) ; $ order = $ this -> responseParser -> parse ( $ order ) ; return array_filter ( $ order ) ; }
{@inheritdoc}

@param FetchTransferObjectQuery $query
{ @inheritdoc }