forked from rvvup/magento-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79be693
commit 72a3d05
Showing
105 changed files
with
5,474 additions
and
460 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,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface CartExpressPaymentRemoveInterface | ||
{ | ||
/** | ||
* Remove the payment data of express payment for the specified cart. | ||
* | ||
* @param string $cartId | ||
* @return bool | ||
*/ | ||
public function execute(string $cartId): 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface CartPaymentActionsGetInterface | ||
{ | ||
/** | ||
* Get the payment actions for the cart ID. | ||
* | ||
* @param string $cartId | ||
* @param bool $expressActions | ||
* @return \Rvvup\Payments\Api\Data\PaymentActionInterface[] | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
*/ | ||
public function execute(string $cartId, bool $expressActions = false): array; | ||
} |
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,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface CartResetInterface | ||
{ | ||
/** | ||
* Reset the data of the specified cart, empties items & addresses. | ||
* | ||
* @param string $cartId | ||
* @return string | ||
* @throws \Magento\Framework\Exception\CouldNotSaveException | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function execute(string $cartId): string; | ||
} |
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,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface ExpressPaymentCreateInterface | ||
{ | ||
/** | ||
* Create an Express order for the specified cart & rvvup payment method. | ||
* | ||
* Set checkout session flag & return Payment Method Actions. | ||
* | ||
* @param string $cartId | ||
* @param string $methodCode | ||
* @return \Rvvup\Payments\Api\Data\PaymentActionInterface[] | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
* @throws \Rvvup\Payments\Exception\PaymentValidationException | ||
*/ | ||
public function execute(string $cartId, string $methodCode): array; | ||
} |
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,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface GuestCartExpressPaymentRemoveInterface | ||
{ | ||
/** | ||
* Remove the payment data of express payment for the specified cart & rvvup payment method for a guest user. | ||
* | ||
* @param string $cartId | ||
* @return bool | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function execute(string $cartId): 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface GuestCartPaymentActionsGetInterface | ||
{ | ||
/** | ||
* Get the payment actions for the cart ID. | ||
* | ||
* @param string $cartId | ||
* @param bool $expressActions | ||
* @return \Rvvup\Payments\Api\Data\PaymentActionInterface[] | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function execute(string $cartId, bool $expressActions = false): array; | ||
} |
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,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface GuestCartResetInterface | ||
{ | ||
/** | ||
* Reset the data of the specified guest cart, empties items & addresses. | ||
* | ||
* @param string $cartId | ||
* @return string | ||
* @throws \Magento\Framework\Exception\CouldNotSaveException | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function execute(string $cartId): string; | ||
} |
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface GuestExpressPaymentCreateInterface | ||
{ | ||
/** | ||
* Create an Express order for the specified cart & rvvup payment method for a guest user. | ||
* | ||
* @param string $cartId | ||
* @param string $methodCode | ||
* @return \Rvvup\Payments\Api\Data\PaymentActionInterface[] | ||
* @throws \Magento\Framework\Exception\LocalizedException | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
* @throws \Rvvup\Payments\Exception\PaymentValidationException | ||
*/ | ||
public function execute(string $cartId, string $methodCode): array; | ||
} |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rvvup\Payments\Api; | ||
|
||
interface PaymentMethodsSettingsGetInterface | ||
{ | ||
/** | ||
* Get the settings for all/selected payment methods available for the value & currency. | ||
* | ||
* @param string $value | ||
* @param string $currency | ||
* @param array|string[] $methodCodes // Leave empty for all. | ||
* @return array | ||
*/ | ||
public function execute(string $value, string $currency, array $methodCodes = []): array; | ||
} |
Oops, something went wrong.