Skip to content

Commit 0bfb92f

Browse files
authored
Merge pull request #4997 from magento-tsg/2.3-develop-pr86
[TSG] Fixes for 2.3 (pr86) (2.3-develop)
2 parents 7324325 + 56ce2ba commit 0bfb92f

File tree

78 files changed

+403
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+403
-38
lines changed

app/code/Magento/Analytics/Model/ExportDataHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(
8989
public function prepareExportData()
9090
{
9191
try {
92-
$tmpDirectory = $this->filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
92+
$tmpDirectory = $this->filesystem->getDirectoryWrite(DirectoryList::SYS_TMP);
9393

9494
$this->prepareDirectory($tmpDirectory, $this->getTmpFilesDirRelativePath());
9595
$this->reportWriter->write($tmpDirectory, $this->getTmpFilesDirRelativePath());

app/code/Magento/Analytics/Test/Unit/Model/ExportDataHandlerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\Archive;
1414
use Magento\Framework\Filesystem;
1515
use Magento\Framework\Filesystem\Directory\WriteInterface;
16-
use Magento\Framework\App\Filesystem\DirectoryList;
16+
use Magento\Framework\Filesystem\DirectoryList;
1717
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
1818

1919
class ExportDataHandlerTest extends \PHPUnit\Framework\TestCase
@@ -137,7 +137,7 @@ public function testPrepareExportData($isArchiveSourceDirectory)
137137
$this->filesystemMock
138138
->expects($this->once())
139139
->method('getDirectoryWrite')
140-
->with(DirectoryList::VAR_DIR)
140+
->with(DirectoryList::SYS_TMP)
141141
->willReturn($this->directoryMock);
142142
$this->directoryMock
143143
->expects($this->exactly(4))
@@ -238,7 +238,7 @@ public function testPrepareExportDataWithLocalizedException()
238238
$this->filesystemMock
239239
->expects($this->once())
240240
->method('getDirectoryWrite')
241-
->with(DirectoryList::VAR_DIR)
241+
->with(DirectoryList::SYS_TMP)
242242
->willReturn($this->directoryMock);
243243
$this->reportWriterMock
244244
->expects($this->once())

app/code/Magento/AuthorizenetAcceptjs/Block/Form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Block for representing the payment form
1919
*
2020
* @api
21+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
22+
* official payment integration available on the marketplace
2123
*/
2224
class Form extends Cc
2325
{

app/code/Magento/AuthorizenetAcceptjs/Block/Info.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Translates the labels for the info block
1616
*
1717
* @api
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1820
*/
1921
class Info extends ConfigurableInfo
2022
{

app/code/Magento/AuthorizenetAcceptjs/Block/Payment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Represents the payment block for the admin checkout form
1919
*
2020
* @api
21+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
22+
* official payment integration available on the marketplace
2123
*/
2224
class Payment extends Template
2325
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/AcceptPaymentStrategyCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Chooses the best method of accepting the payment based on the status of the transaction
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class AcceptPaymentStrategyCommand implements CommandInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/CaptureStrategyCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
/**
2222
* Chooses the best method of capture based on the context of the payment
23+
*
24+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
25+
* official payment integration available on the marketplace
2326
*/
2427
class CaptureStrategyCommand implements CommandInterface
2528
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/FetchTransactionInfoCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
/**
1919
* Syncs the transaction status with authorize.net
20+
*
21+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
22+
* official payment integration available on the marketplace
2023
*/
2124
class FetchTransactionInfoCommand implements CommandInterface
2225
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/GatewayQueryCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
/**
2222
* Makes a request to the gateway and returns results
23+
*
24+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
25+
* official payment integration available on the marketplace
2326
*/
2427
class GatewayQueryCommand implements CommandInterface
2528
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Command/RefundTransactionStrategyCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Chooses the best method of returning the payment based on the status of the transaction
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class RefundTransactionStrategyCommand implements CommandInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Config.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
/**
1515
* Houses configuration for this gateway
16+
*
17+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
18+
* official payment integration available on the marketplace
1619
*/
1720
class Config extends \Magento\Payment\Gateway\Config\Config
1821
{
@@ -33,19 +36,6 @@ class Config extends \Magento\Payment\Gateway\Config\Config
3336
private const SOLUTION_ID_SANDBOX = 'AAA102993';
3437
private const SOLUTION_ID_PRODUCTION = 'AAA175350';
3538

36-
/**
37-
* @param ScopeConfigInterface $scopeConfig
38-
* @param null|string $methodCode
39-
* @param string $pathPattern
40-
*/
41-
public function __construct(
42-
ScopeConfigInterface $scopeConfig,
43-
$methodCode = null,
44-
$pathPattern = self::DEFAULT_PATH_PATTERN
45-
) {
46-
parent::__construct($scopeConfig, $methodCode, $pathPattern);
47-
}
48-
4939
/**
5040
* Gets the login id
5141
*

app/code/Magento/AuthorizenetAcceptjs/Gateway/Http/Client.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
/**
2323
* A client that can communicate with the Authorize.net API
24+
*
25+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
26+
* official payment integration available on the marketplace
2427
*/
2528
class Client implements ClientInterface
2629
{
@@ -109,10 +112,12 @@ public function placeRequest(TransferInterface $transferObject)
109112
try {
110113
$data = $this->json->unserialize($responseBody);
111114
} catch (InvalidArgumentException $e) {
115+
// phpcs:ignore Magento2.Exceptions.DirectThrow
112116
throw new \Exception('Invalid JSON was returned by the gateway');
113117
}
114118

115119
return $data;
120+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
116121
} catch (\Exception $e) {
117122
$this->logger->critical($e);
118123

app/code/Magento/AuthorizenetAcceptjs/Gateway/Http/Payload/Filter/RemoveFieldsFilter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/**
1414
* Removes a set of fields from the payload
15+
*
16+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
17+
* official payment integration available on the marketplace
1518
*/
1619
class RemoveFieldsFilter implements FilterInterface
1720
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Http/Payload/FilterInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
/**
1212
* Describes a filter for filtering content after all the builders have finished
13+
*
14+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
15+
* official payment integration available on the marketplace
1316
*/
1417
interface FilterInterface
1518
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Http/TransferFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Can create a transfer object
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class TransferFactory implements TransferFactoryInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/AcceptFdsDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the meta transaction information to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class AcceptFdsDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/AddressDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
/**
1515
* Adds the basic payment information to the request
16+
*
17+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
18+
* official payment integration available on the marketplace
1619
*/
1720
class AddressDataBuilder implements BuilderInterface
1821
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/AmountDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the amount of the transaction to the Request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class AmountDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/AuthenticationDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the stored credentials to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class AuthenticationDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/AuthorizeDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
/**
1717
* Adds the meta transaction information to the request
18+
*
19+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
20+
* official payment integration available on the marketplace
1821
*/
1922
class AuthorizeDataBuilder implements BuilderInterface
2023
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/CaptureDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
/**
1717
* Adds the meta transaction information to the request
18+
*
19+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
20+
* official payment integration available on the marketplace
1821
*/
1922
class CaptureDataBuilder implements BuilderInterface
2023
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/CustomSettingsBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the custom settings to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class CustomSettingsBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/CustomerDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the basic payment information to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class CustomerDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/OrderDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
/**
1515
* Adds the basic payment information to the request
16+
*
17+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
18+
* official payment integration available on the marketplace
1619
*/
1720
class OrderDataBuilder implements BuilderInterface
1821
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/PassthroughDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
/**
1515
* Adds data to the request that can be used in the response
16+
*
17+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
18+
* official payment integration available on the marketplace
1619
*/
1720
class PassthroughDataBuilder implements BuilderInterface
1821
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/PaymentDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the basic payment information to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class PaymentDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/PoDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the basic payment information to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class PoDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/RefundPaymentDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the basic refund information to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class RefundPaymentDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/RefundReferenceTransactionDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the reference transaction to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class RefundReferenceTransactionDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/RefundTransactionTypeDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/**
1414
* Adds the meta transaction information to the request
15+
*
16+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
17+
* official payment integration available on the marketplace
1518
*/
1619
class RefundTransactionTypeDataBuilder implements BuilderInterface
1720
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/RequestTypeBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/**
1414
* Adds the type of the request to the build subject
15+
*
16+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
17+
* official payment integration available on the marketplace
1518
*/
1619
class RequestTypeBuilder implements BuilderInterface
1720
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/SaleDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
/**
1717
* Adds the meta transaction information to the request
18+
*
19+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
20+
* official payment integration available on the marketplace
1821
*/
1922
class SaleDataBuilder implements BuilderInterface
2023
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/ShippingDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
/**
1717
* Adds the shipping information to the request
18+
*
19+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
20+
* official payment integration available on the marketplace
1821
*/
1922
class ShippingDataBuilder implements BuilderInterface
2023
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/SolutionDataBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
/**
1616
* Adds the appropriate solution ID to the request
17+
*
18+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
19+
* official payment integration available on the marketplace
1720
*/
1821
class SolutionDataBuilder implements BuilderInterface
1922
{

app/code/Magento/AuthorizenetAcceptjs/Gateway/Request/StoreConfigBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/**
1414
* This builder is used for correct store resolving and used only to retrieve correct store ID.
15+
*
16+
* @deprecated Starting from Magento 2.3.4 Authorize.net payment method core integration is deprecated in favor of
17+
* official payment integration available on the marketplace
1518
*/
1619
class StoreConfigBuilder implements BuilderInterface
1720
{

0 commit comments

Comments
 (0)