-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from genecommerce/release/3.4.0
Release 3.4.0
- Loading branch information
Showing
24 changed files
with
1,289 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Braintree\Api; | ||
|
||
use Magento\Sales\Api\Data\OrderInterface; | ||
use SimpleXMLElement; | ||
|
||
/** | ||
* Interface EnsManagementInterface | ||
*/ | ||
interface EnsManagementInterface | ||
{ | ||
// Kount config keys | ||
const CONFIG_KOUNT_ID = 'payment/braintree/kount_id'; | ||
const CONFIG_ALLOWED_IPS = 'payment/braintree/kount_allowed_ips'; | ||
const CONFIG_ENVIRONMENT = 'payment/braintree/kount_environment'; | ||
|
||
// ENS type | ||
const ENS_WORKFLOW_EDIT = 'WORKFLOW_STATUS_EDIT'; | ||
|
||
// Kount ENS response values | ||
const RESPONSE_DECLINE = 'D'; | ||
const RESPONSE_APPROVE = 'A'; | ||
const RESPONSE_REVIEW = 'R'; | ||
const RESPONSE_ESCALATE = 'E'; | ||
|
||
/** | ||
* @param string $ip | ||
* @return bool | ||
*/ | ||
public function isAllowed(string $ip): bool; | ||
|
||
/** | ||
* @param SimpleXMLElement $event | ||
* @return bool | ||
*/ | ||
public function processEvent(SimpleXMLElement $event): bool; | ||
|
||
/** | ||
* @param OrderInterface $order | ||
* @return bool | ||
*/ | ||
public function approveOrder(OrderInterface $order): bool; | ||
|
||
/** | ||
* @param OrderInterface $order | ||
* @return bool | ||
*/ | ||
public function declineOrder(OrderInterface $order): bool; | ||
|
||
/** | ||
* @param OrderInterface $order | ||
* @return bool | ||
*/ | ||
public function voidOrder(OrderInterface $order): bool; | ||
|
||
/** | ||
* @param OrderInterface $order | ||
* @return bool | ||
*/ | ||
public function refundOrder(OrderInterface $order): bool; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.