src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/CreditCardPseudo.php 1 location
|
@@ 149-158 (lines=10) @@
|
| 146 |
|
* |
| 147 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\RefundContainer |
| 148 |
|
*/ |
| 149 |
|
public function mapPaymentToRefund(SpyPaymentPayone $paymentEntity) |
| 150 |
|
{ |
| 151 |
|
$refundContainer = new RefundContainer(); |
| 152 |
|
|
| 153 |
|
$refundContainer->setTxid($paymentEntity->getTransactionId()); |
| 154 |
|
$refundContainer->setSequenceNumber($this->getNextSequenceNumber($paymentEntity->getTransactionId())); |
| 155 |
|
$refundContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 156 |
|
|
| 157 |
|
return $refundContainer; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
/** |
| 161 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity |
src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/DirectDebit.php 1 location
|
@@ 57-66 (lines=10) @@
|
| 54 |
|
* |
| 55 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\RefundContainer |
| 56 |
|
*/ |
| 57 |
|
public function mapPaymentToRefund(SpyPaymentPayone $paymentEntity) |
| 58 |
|
{ |
| 59 |
|
$refundContainer = new RefundContainer(); |
| 60 |
|
|
| 61 |
|
$refundContainer->setTxid($paymentEntity->getTransactionId()); |
| 62 |
|
$refundContainer->setSequenceNumber($this->getNextSequenceNumber($paymentEntity->getTransactionId())); |
| 63 |
|
$refundContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 64 |
|
|
| 65 |
|
return $refundContainer; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
/** |
| 69 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity |
src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/EWallet.php 1 location
|
@@ 130-139 (lines=10) @@
|
| 127 |
|
* |
| 128 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\RefundContainer |
| 129 |
|
*/ |
| 130 |
|
public function mapPaymentToRefund(SpyPaymentPayone $paymentEntity) |
| 131 |
|
{ |
| 132 |
|
$refundContainer = new RefundContainer(); |
| 133 |
|
|
| 134 |
|
$refundContainer->setTxid($paymentEntity->getTransactionId()); |
| 135 |
|
$refundContainer->setSequenceNumber($this->getNextSequenceNumber($paymentEntity->getTransactionId())); |
| 136 |
|
$refundContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 137 |
|
|
| 138 |
|
return $refundContainer; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
/** |
| 142 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity |
src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/GenericPayment.php 1 location
|
@@ 208-217 (lines=10) @@
|
| 205 |
|
* |
| 206 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\RefundContainer |
| 207 |
|
*/ |
| 208 |
|
public function mapPaymentToRefund(SpyPaymentPayone $paymentEntity) |
| 209 |
|
{ |
| 210 |
|
$refundContainer = new RefundContainer(); |
| 211 |
|
|
| 212 |
|
$refundContainer->setTxid($paymentEntity->getTransactionId()); |
| 213 |
|
$refundContainer->setSequenceNumber($this->getNextSequenceNumber($paymentEntity->getTransactionId())); |
| 214 |
|
$refundContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 215 |
|
|
| 216 |
|
return $refundContainer; |
| 217 |
|
} |
| 218 |
|
} |
| 219 |
|
|
src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/Invoice.php 1 location
|
@@ 95-105 (lines=11) @@
|
| 92 |
|
* |
| 93 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\CaptureContainer |
| 94 |
|
*/ |
| 95 |
|
public function mapPaymentToCapture(SpyPaymentPayone $paymentEntity) |
| 96 |
|
{ |
| 97 |
|
$paymentDetailEntity = $paymentEntity->getSpyPaymentPayoneDetail(); |
| 98 |
|
|
| 99 |
|
$captureContainer = new CaptureContainer(); |
| 100 |
|
$captureContainer->setAmount($paymentDetailEntity->getAmount()); |
| 101 |
|
$captureContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 102 |
|
$captureContainer->setTxid($paymentEntity->getTransactionId()); |
| 103 |
|
|
| 104 |
|
return $captureContainer; |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
/** |
| 108 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity |
src/SprykerEco/Zed/Payone/Business/Payment/MethodMapper/SecurityInvoice.php 1 location
|
@@ 93-103 (lines=11) @@
|
| 90 |
|
* |
| 91 |
|
* @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\CaptureContainer |
| 92 |
|
*/ |
| 93 |
|
public function mapPaymentToCapture(SpyPaymentPayone $paymentEntity) |
| 94 |
|
{ |
| 95 |
|
$paymentDetailEntity = $paymentEntity->getSpyPaymentPayoneDetail(); |
| 96 |
|
|
| 97 |
|
$captureContainer = new CaptureContainer(); |
| 98 |
|
$captureContainer->setAmount($paymentDetailEntity->getAmount()); |
| 99 |
|
$captureContainer->setCurrency($this->getStandardParameter()->getCurrency()); |
| 100 |
|
$captureContainer->setTxid($paymentEntity->getTransactionId()); |
| 101 |
|
|
| 102 |
|
return $captureContainer; |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayone $paymentEntity |