<?php

namespace KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response;

use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Resource\Response as ResponseResource;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response\Data\TransactionCaptureInterface;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response\Data\CaptureInterface;
/**
 * Transaction data object
 */
class TransactionCapture extends ResponseResource implements TransactionCaptureInterface
{
    /**
     * @return string
     */
    public function getPayment()
    {
        return $this->offsetGet(self::PAYMENT);
    }
    /**
     * @param string $payment
     * @return $this
     */
    public function setPayment($payment)
    {
        return $this->offsetSet(self::PAYMENT, $payment);
    }
    /**
     * @return CaptureInterface
     */
    public function getCapture()
    {
        return $this->offsetGet(self::CAPTURE);
    }
    /**
     * @param CaptureInterface $capture
     * @return $this
     */
    public function setCapture($capture)
    {
        return $this->offsetSet(self::CAPTURE, $capture);
    }
}
