Skip to content

Commit febcbdb

Browse files
AC-10042::/V1/transactions REST API returns error when parent_txn_id = txn_id
1 parent 0a685d7 commit febcbdb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Sales/Model/ResourceModel/Order/Payment/Transaction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ protected function _construct()
3232
}
3333

3434
/**
35-
* Update transactions in database using provided transaction as parent for them
36-
* have to repeat the business logic to avoid accidental injection of wrong transactions
37-
*
35+
* Update transactions in database using provided transaction as parent for them have to repeat the business logic to avoid accidental injection of wrong transactions
3836
* @param \Magento\Sales\Model\Order\Payment\Transaction $transaction
3937
* @return void
4038
*/
@@ -125,6 +123,7 @@ public function getOrderWebsiteId($orderId)
125123

126124
/**
127125
* Lookup for parent_id in already saved transactions of this payment by the order_id
126+
*
128127
* Also serialize additional information, if any
129128
*
130129
* @param \Magento\Framework\Model\AbstractModel|\Magento\Sales\Model\Order\Payment\Transaction $transaction
@@ -173,7 +172,7 @@ protected function _beforeSave(\Magento\Framework\Model\AbstractModel $transacti
173172
* @param int $orderId
174173
* @param int $paymentId
175174
* @param string $txnId
176-
* @param mixed (array|string|object) $columns
175+
* @param mixed $columns (array|string|object) $columns
177176
* @param bool $isRow
178177
* @param string $txnType
179178
* @return array|string
@@ -217,6 +216,7 @@ private function _getLoadByUniqueKeySelect($orderId, $paymentId, $txnId, $column
217216
}
218217
/**
219218
* Retrieve transaction by the unique key of order_id
219+
*
220220
* @param int $orderId
221221
*/
222222
protected function getParentTxnId($orderId)

0 commit comments

Comments
 (0)