Skip to content

Commit b18b6a6

Browse files
author
Dmytro Yushkin
committed
MAGETWO-57426: [Github] Braintree Vault payments causing GET order API to throw error for 2.1.x
- Revert some BIC - Changed methods annotation
1 parent 3a880fc commit b18b6a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function _afterLoad()
8989
/**
9090
* Convert multidimensional additional information array to single
9191
*
92-
* @param $info
92+
* @param array $info
9393
* @return array
9494
*/
9595
private function convertAdditionalInfo($info)

app/code/Magento/Vault/Model/Method/Vault.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
*/
3232
final class Vault implements VaultPaymentInterface
3333
{
34+
/**
35+
* @deprecated
36+
*/
37+
const TOKEN_METADATA_KEY = 'token_metadata';
38+
3439
/**
3540
* @var string
3641
*/
@@ -446,6 +451,7 @@ public function capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
446451
/**
447452
* @param OrderPaymentInterface $orderPayment
448453
* @return void
454+
* @throws \LogicException
449455
*/
450456
private function attachTokenExtensionAttribute(OrderPaymentInterface $orderPayment)
451457
{

0 commit comments

Comments
 (0)