Adapter/ShopwareAdapter/ResponseParser/PaymentStatus/PaymentStatusResponseParser.php
public function parse(array $entry)
    {
        $identity = $this->identityService->findOneOrCreate(
            (string) $entry['id'],
            ShopwareAdapter::NAME,
            PaymentStatus::TYPE
        );

        if (!empty($entry['name'])) {
            $name = $entry['name'];
        } else {
            $name = $entry['id'];
        }

        return PaymentStatus::fromArray([
            'identifier' => $identity->getObjectIdentifier(),
            'name' => (string) $name,
        ]);
    }
public function parse(array $entry)
    {
        $identity = $this->identityService->findOneOrCreate(
            (string) $entry['id'],
            ShopwareAdapter::NAME,
            PaymentStatus::TYPE
        );

        if (!empty($entry['name'])) {
            $name = $entry['name'];
        } else {
            $name = $entry['id'];
        }

        return PaymentStatus::fromArray([
            'identifier' => $identity->getObjectIdentifier(),
            'name' => (string) $name,
        ]);
    }
{@inheritdoc}