@param $value
@param $transactionId

@return IAmazonReferenceId
423528
public function createLocalRefundReferenceId($value, $transactionId)
    {
        return $this->idLists[IAmazonReferenceId::TYPE_REFUND]->getNew($value, $transactionId);
    }
1092411
public function post(
        ResponseInterface $response,
        string $transactionId,
        array $options = []
    ): CancellablePromiseInterface {
        if ($response->getBody() instanceof ReadableStreamInterface) {
            return resolve($response);
        }

        if (!isset($options[self::class]) &&
        strpos($response->getHeaderLine('Content-Type'), 'text/xml') !== 0) {
            return resolve($response);
        }

        if (isset($options[self::class][Options::CONTENT_TYPE]) &&
        $response->getHeaderLine('Content-Type') !== $options[self::class][Options::CONTENT_TYPE]) {
            return resolve($response);
        }

        $body = (string)$response->getBody();
        if ($body === '') {
            $stream = new BufferStream(0);
            $stream->write($body);

            return resolve($response->withBody($stream));
        }

        return $this->xmlDecodeService->decode($body)->then(function (array $xml) use ($response) {
            return resolve($response->withBody(new XmlStream($xml)));
        });
    }
751000
private function doCancelTransaction($transactionId)
    {
        $refund = [
            'TransactionID' => $transactionId,
        ];

        /** @var Refund $refund */
        $refund = ClassValidator::getInstance('Eway\Rapid\Model\Refund', $refund);

        return $this->getHttpService()->postCancelAuthorisation($refund->toArray());
    }
1358427
public function begin($transactionId = null)
    {
        return $this->client->sendFrame($this->getProtocol()->getBeginFrame($transactionId));
    }
397783
protected function loadOrderPayment($transactionId)
    {
        $orderPayment = oxNew(\OxidEsales\PayPalModule\Model\OrderPayment::class);
        $orderPayment->loadByTransactionId($transactionId);

        return $orderPayment;
    }
1204668
public WePayOrder queryByTransactionId(String transactionId){
        checkNotNullAndEmpty(transactionId, "transactionId");
        Map<String, String> queryParams = new TreeMap<>();
        put(queryParams, WepayField.TRANSACTION_ID, transactionId);
        return doQueryOrder(queryParams);
    }
586085
public function createLocalAuthorizationReferenceId($requestMode, $value)
    {
        /** @var $item IAmazonReferenceId */
        $item = $this->idLists[IAmazonReferenceId::TYPE_AUTHORIZE]->getNew($value, null);
        $item->setRequestMode($requestMode);

        return $item;
    }
1184103
public function getRefId($value)
    {
        $id = $this->getValueId($value);

        return $id ? new RefIdValueObject($id) : null;
    }
686473
protected function id2alias($value)
    {
        $functionary = $this->functionaryRepository->findByID($value);

        $alias = $functionary->getLastName() . self::SEPARATOR_OFFSET . $functionary->getFirstName() . self::SEPARATOR_OFFSET . dechex(intval($functionary->getID()));

        return $this->cleanUrl($alias);
    }
1301640
public BranchEvent setTransactionID(String transactionID) {
        return addStandardProperty(Defines.Jsonkey.TransactionID.getKey(), transactionID);
    }
1303310
public function fetchTransactionInfo(InfoInterface $payment, $transactionId)
    {
        try {

            $transaction = $this->transactionRepository->getByTransactionId(
                $transactionId,
                $payment->getId(),
                $payment->getOrder()->getId()
            );

            $transactionDetails = $transaction->getAdditionalInformation(Transaction::RAW_DETAILS);
            $transactionReference = $transactionDetails['Reference'];

            if (!empty($transactionReference)) {
                $order = $payment->getOrder();
                $this->orderHelper->updateOrderPayment($order, null, $transactionReference);
            }

        } catch (\Exception $e) {
            $this->bugsnag->notifyException($e);
        } finally {
            return [];
        }
    }
565633
public function createReference($value)
    {
        $ref = $this->generateNextReference();
        $this->references[$ref] = $value;

        return $ref;
    }
1192614
public function setIndividual($value)
    {
        if ($value && !$value instanceof MerchantIndividual) {
            $value = new MerchantIndividual($value);
        }

        return $this->setParameter('individual', $value);
    }
432860
protected function id2alias($value)
    {
        $event = $this->eventRepository->findByID($value);

        $alias = $event->getTitle() . self::SEPARATOR_OFFSET . dechex(intval($event->getID()));

        return $this->cleanUrl($alias);
    }
32158
public function setRecipientGatewayId($value)
    {
        if ($value === null || $value === '') {
            $this->_recipientGatewayId = null;
        } elseif (TypeCast::canCastToString($value)) {
            $this->_recipientGatewayId = (string)$value;
        } else {
            throw new InvalidPropertyValueTypeException(
                'Invalid recipientGatewayId value type in PaymentsRequest', 0, 'PaymentsRequest.recipientGatewayId',
                $value
            );
        }
    }
1296993
public static function convertToPhp($value)
    {
        if (is_array($value) && isset($value['$ref'], $value['$id'])) {
            return ExtReference::create($value['$ref'], $value['$id']);
        } elseif (is_object($value) && isset($value->{'$ref'}, $value->{'$id'})) {
            return ExtReference::create($value->{'$ref'}, $value->{'$id'});
        } else {
            return null;
        }
    }
1131035
protected function databaseValue($value)
    {
        if (!$value instanceof \DateTime) {
            throw ODMException::conversionFailedInvalidType($value, Type::DATE, ['null', 'DateTime']);
        }

        $this->setToMidnight($value);

        return (string)$value->getTimestamp();
    }