Skip to content

Commit 739e6e2

Browse files
authored
[ECP-9903] Deprecate unused method (#3242)
1 parent 4922e39 commit 739e6e2

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

Helper/Requests.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ public function buildCardRecurringData(int $storeId, $payment): array
385385
}
386386

387387
/**
388+
* @deprecated Recurring data is now built in RecurringVaultDataBuilder class. The method will be removed on V11.
389+
*
388390
* Build the recurring data to be sent in case of an Adyen Tokenized payment.
389391
* Model will be fetched according to the type (card/other pm) of the original payment
390392
*

Test/Unit/Helper/RequestsTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -253,26 +253,6 @@ public function buildCardRecurringDataWithConsent(): void
253253
$this->assertSame('card', $result['recurringProcessingModel']);
254254
}
255255

256-
#[Test]
257-
public function buildAdyenTokenizedRecurringDataForStoredCard(): void
258-
{
259-
$payment = $this->createMock(Payment::class);
260-
$payment->method('getAdditionalInformation')->willReturnMap([
261-
['recurringProcessingModel', 'card'],
262-
['cc_type', 'visa'],
263-
['method', 'scheme'],
264-
]);
265-
266-
$this->vaultHelper
267-
->method('getPaymentMethodRecurringProcessingModel')
268-
->with(AdyenCcConfigProvider::CODE, 1)
269-
->willReturn('card');
270-
271-
$result = $this->requests->buildAdyenTokenizedPaymentRecurringData(1, $payment);
272-
273-
$this->assertSame('card', $result['recurringProcessingModel']);
274-
}
275-
276256
public static function buildDonationDataReturnsCorrectStructureDataProvider(): array
277257
{
278258
return [

0 commit comments

Comments
 (0)