Skip to content

Commit e1d86ac

Browse files
committed
Remove ideal issuer selection
1 parent 97e4a0d commit e1d86ac

31 files changed

+19
-747
lines changed

Api/Config/ConfigInterface.php

-7
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ interface ConfigInterface
4545
public const XML_PATH_PAYMENT_GIFTCARD_PROFILE = 'payment/cm_payments_giftcard/profile';
4646
public const XML_PATH_PAYMENT_KLARNA_MANUAL_CAPTURE = 'payment/cm_payments_klarna/manual_capture';
4747
public const XML_PATH_PAYMENT_CM_PAYMENTS_PROFILE = 'payment/cm_payments/profile';
48-
public const XML_PATH_PAYMENT_IDEAL_ENABLE_ISSUER_SELECTION = 'payment/cm_payments_ideal/enable_issuer_selection';
49-
5048
/**
5149
* Checks that extension is enabled
5250
*
@@ -281,9 +279,4 @@ public function getAdjustmentFeeName(): ?string;
281279
* @return bool
282280
*/
283281
public function isLogAllRestApiCalls(): bool;
284-
285-
/**
286-
* @return bool
287-
*/
288-
public function isIdealIssuerSelectionEnabled(): bool;
289282
}

Api/Data/IssuerInterface.php

-72
This file was deleted.

Api/Data/PaymentMethodAdditionalDataInterface.php

-20
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,6 @@
1717
*/
1818
interface PaymentMethodAdditionalDataInterface extends ExtensibleDataInterface
1919
{
20-
/**
21-
* Properties
22-
*/
23-
public const ISSUERS = 'issuers';
24-
25-
/**
26-
* Get issuers
27-
*
28-
* @return \CM\Payments\Api\Data\IssuerInterface[]
29-
*/
30-
public function getIssuers(): array;
31-
32-
/**
33-
* Set code
34-
*
35-
* @param \CM\Payments\Api\Data\IssuerInterface[] $issuers
36-
* @return PaymentMethodAdditionalDataInterface
37-
*/
38-
public function setIssuers(array $issuers): PaymentMethodAdditionalDataInterface;
39-
4020
/**
4121
* Retrieve existing extension attributes object or create a new one.
4222
*

Api/GuestPaymentMethodManagementInterface.php

-10
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,4 @@ interface GuestPaymentMethodManagementInterface
3232
* @throws NoSuchEntityException
3333
*/
3434
public function getPaymentMethods(string $cartId, ?AddressInterface $shippingAddress): PaymentDetailsInterface;
35-
36-
/**
37-
* @param string $cartId
38-
* @return \CM\Payments\Client\Api\IdealIssuerInterface[]|bool
39-
*
40-
* @throws InputException
41-
* @throws StateException
42-
* @throws NoSuchEntityException
43-
*/
44-
public function getIbanIssuers(string $cartId);
4535
}

Api/PaymentMethodManagementInterface.php

-10
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,4 @@ interface PaymentMethodManagementInterface
3232
* @throws NoSuchEntityException
3333
*/
3434
public function getPaymentMethods(int $cartId, ?AddressInterface $shippingAddress): PaymentDetailsInterface;
35-
36-
/**
37-
* @param int $cartId
38-
* @return \CM\Payments\Client\Api\IdealIssuerInterface[]|bool
39-
*
40-
* @throws InputException
41-
* @throws StateException
42-
* @throws NoSuchEntityException
43-
*/
44-
public function getIbanIssuers(int $cartId);
4535
}

Api/Service/MethodServiceInterface.php

-62
Original file line numberDiff line numberDiff line change
@@ -81,68 +81,6 @@ interface MethodServiceInterface
8181
ConfigProvider::CODE_KLARNA => 'KLARNA'
8282
];
8383

84-
/**
85-
* Mapping of magento ideal issuers
86-
*/
87-
public const IDEAL_ISSUERS = [
88-
[
89-
'id' => 'BUNQNL2A',
90-
'name' => 'bunq',
91-
],
92-
[
93-
'id' => 'ASNBNL21',
94-
'name' => 'ASN Bank',
95-
],
96-
[
97-
'id' => 'RBRBNL21',
98-
'name' => 'RegioBank',
99-
],
100-
[
101-
'id' => 'TRIONL2U',
102-
'name' => 'Triodos Bank',
103-
],
104-
[
105-
'id' => 'FVLBNL22',
106-
'name' => 'Van Lanschot',
107-
],
108-
[
109-
'id' => 'SNSBNL2A',
110-
'name' => 'SNS Bank',
111-
],
112-
[
113-
'id' => 'KNABNL2H',
114-
'name' => 'Knab',
115-
],
116-
[
117-
'id' => 'INGBNL2A',
118-
'name' => 'ING',
119-
],
120-
[
121-
'id' => 'ABNANL2A',
122-
'name' => 'ABN Amro',
123-
],
124-
[
125-
'id' => 'RABONL2U',
126-
'name' => 'Rabobank'
127-
],
128-
[
129-
'id' => 'BITSNL2A',
130-
'name' => 'Yoursafe'
131-
],
132-
[
133-
'id' => 'NNBANL2G',
134-
'name' => 'Nationale-Nederlanden'
135-
],
136-
[
137-
'id' => 'NTSBDEB1',
138-
'name' => 'N26'
139-
],
140-
[
141-
'id' => 'REVOLT21',
142-
'name' => 'Revolut'
143-
]
144-
];
145-
14684
/**
14785
* Get methods from CM and compare it with Magento methods
14886
* @param PaymentMethodInterface[] $magentoMethods

Client/Api/IdealIssuerInterface.php

-22
This file was deleted.

Client/Model/Request/PaymentCreate.php

-28
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ class PaymentCreate
1616
*/
1717
private $method;
1818

19-
/**
20-
* @var array
21-
*/
22-
private $idealDetails;
23-
2419
/**
2520
* @var array
2621
*/
@@ -35,18 +30,15 @@ class PaymentCreate
3530
* Order constructor
3631
*
3732
* @param string $method
38-
* @param array $idealDetails
3933
* @param array $elvDetails
4034
* @param CardDetails|null $cardDetails
4135
*/
4236
public function __construct(
4337
string $method = '',
44-
array $idealDetails = [],
4538
array $elvDetails = [],
4639
CardDetails $cardDetails = null
4740
) {
4841
$this->method = $method;
49-
$this->idealDetails = $idealDetails;
5042
$this->elvDetails = $elvDetails;
5143
$this->cardDetails = $cardDetails;
5244
}
@@ -62,10 +54,6 @@ public function toArray(): array
6254
'method' => $this->method
6355
];
6456

65-
if ($this->idealDetails) {
66-
$data['ideal_details'] = $this->idealDetails;
67-
}
68-
6957
if ($this->elvDetails) {
7058
$data['elv_payment_input'] = $this->elvDetails;
7159
}
@@ -93,22 +81,6 @@ public function setMethod(string $method): void
9381
$this->method = $method;
9482
}
9583

96-
/**
97-
* @return array
98-
*/
99-
public function getIdealDetails(): array
100-
{
101-
return $this->idealDetails;
102-
}
103-
104-
/**
105-
* @param array $idealDetails
106-
*/
107-
public function setIdealDetails(array $idealDetails): void
108-
{
109-
$this->idealDetails = $idealDetails;
110-
}
111-
11284
/**
11385
* @return array
11486
*/

Client/Model/Request/RefundCreate.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ class RefundCreate
5151
/**
5252
* Order constructor
5353
*
54-
* @param string $method
55-
* @param array $idealDetails
54+
* @param string $orderKey
55+
* @param string $paymentId
56+
* @param string $orderId
57+
* @param string $description
58+
* @param int $amount
59+
* @param string $currency
60+
* @param string $refundReference
61+
* @param string $refundRequiredDate
5662
*/
5763
public function __construct(
5864
string $orderKey,

Client/Model/Response/Method/IdealIssuer.php

-51
This file was deleted.

0 commit comments

Comments
 (0)