-
Notifications
You must be signed in to change notification settings - Fork 36
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
d2aeb64
commit 494b835
Showing
168 changed files
with
8,224 additions
and
1,252 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 | ||
/** | ||
* @copyright 2017 Sapient | ||
*/ | ||
namespace Sapient\Worldpay\Api; | ||
|
||
interface CustomerPaymentTokenInterface | ||
{ | ||
/** | ||
* Get All Payment tokens | ||
* | ||
* @api | ||
* @return mixed | ||
*/ | ||
public function getAllPaymentTokens(); | ||
} |
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,110 @@ | ||
<?php | ||
/** | ||
* @copyright 2023 Sapient | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Sapient\Worldpay\Api\Data; | ||
|
||
/** | ||
* Api Data Interface EditSubscriptionHistoryInterface | ||
*/ | ||
interface EditSubscriptionHistoryInterface | ||
{ | ||
public const ENTITY_ID = 'entity_id'; | ||
public const SUBSCRIPTION_ID = 'subscription_id'; | ||
public const CUSTOMER_ID = 'customer_id'; | ||
public const OLD_DATA = 'old_data'; | ||
public const CREATED_AT = 'created_at'; | ||
public const MODIFIED_DATE = 'modified_date'; | ||
|
||
/** | ||
* Get Model entity_id property value | ||
* | ||
* @return string | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Set Model id property value | ||
* | ||
* @param int $id | ||
* @return int | ||
*/ | ||
public function setId(int $id); | ||
|
||
/** | ||
* Get SubscriptionId property value | ||
* | ||
* @return int|null | ||
*/ | ||
public function getSubscriptionId(); | ||
|
||
/** | ||
* Set subscriptionId property value | ||
* | ||
* @param string $subscriptionId | ||
* @return mixed | ||
*/ | ||
public function setSubscriptionId(int $subscriptionId); | ||
|
||
/** | ||
* Get customerId property value | ||
* | ||
* @return string | ||
*/ | ||
public function getCustomerId(); | ||
|
||
/** | ||
* Set Model customerId property value | ||
* | ||
* @param int $customerId | ||
* @return int | ||
*/ | ||
public function setCustomerId(int $customerId); | ||
|
||
/** | ||
* Get oldData property value | ||
* | ||
* @return mixed | ||
*/ | ||
public function getOldData(); | ||
|
||
/** | ||
* Set oldData property value | ||
* | ||
* @param mixed $oldData | ||
* @return mixed | ||
*/ | ||
public function setOldData(array $oldData); | ||
|
||
/** | ||
* Get CreatedAt property value | ||
* | ||
* @return bool|null | ||
*/ | ||
public function getCreatedAt(); | ||
|
||
/** | ||
* Set CreatedAt property value | ||
* | ||
* @param string $createdAt | ||
* @return mixed | ||
*/ | ||
public function setCreatedAt(string $createdAt); | ||
|
||
/** | ||
* Get Modified At property value | ||
* | ||
* @return string|null | ||
*/ | ||
public function getModifiedAt(); | ||
|
||
/** | ||
* Set Model modifiedAt property value | ||
* | ||
* @param string $modifiedAt | ||
* @return mixed | ||
*/ | ||
public function setModifiedAt(string $modifiedAt); | ||
} |
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,144 @@ | ||
<?php | ||
/** | ||
* @copyright 2023 Sapient | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Sapient\Worldpay\Api\Data; | ||
|
||
/** | ||
* Interface EditSubscriptionHistoryInterface | ||
* | ||
*/ | ||
|
||
interface SkipSubscriptionOrderInterface | ||
{ | ||
public const ENTITY_ID = 'entity_id'; | ||
public const SUBSCRIPTION_ID = 'subscription_id'; | ||
public const CUSTOMER_ID = 'customer_id'; | ||
public const IS_SKIPPED = 'is_skipped'; | ||
public const OLD_RECURRING_DATE = 'old_recurring_date'; | ||
public const NEW_RECURRING_DATE = 'new_recurring_date'; | ||
public const CREATED_AT = 'created_at'; | ||
public const UPDATED_AT = 'updated_at'; | ||
|
||
/** | ||
* Get Model'entity_id' property value | ||
* | ||
* @return string | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Set Model id property value | ||
* | ||
* @param int $id | ||
* @return int | ||
*/ | ||
public function setId(int $id); | ||
|
||
/** | ||
* Get SubscriptionId property value | ||
* | ||
* @return int|null | ||
*/ | ||
public function getSubscriptionId(); | ||
|
||
/** | ||
* Set subscriptionId property value | ||
* | ||
* @param string $subscriptionId | ||
* @return mixed | ||
*/ | ||
public function setSubscriptionId(int $subscriptionId); | ||
|
||
/** | ||
* Get CustomerId property value | ||
* | ||
* @return string | ||
*/ | ||
public function getCustomerId(); | ||
|
||
/** | ||
* Set Model CustomerId property value | ||
* | ||
* @param int $customerId | ||
* @return mixed | ||
*/ | ||
public function setCustomerId(int $customerId); | ||
|
||
/** | ||
* Get IsSkipped property value | ||
* | ||
* @return bool|null | ||
*/ | ||
public function getIsSkipped(); | ||
|
||
/** | ||
* Set IsSkipped property value | ||
* | ||
* @param bool $isSkipped | ||
* @return true|false | ||
*/ | ||
public function setIsSkipped($isSkipped); | ||
|
||
/** | ||
* Get NewRecurringDate property value | ||
* | ||
* @return string | ||
*/ | ||
public function getNewRecurringDate(); | ||
|
||
/** | ||
* Set NewRecurringDate property value | ||
* | ||
* @param string $newRecurringDate | ||
* @return mixed|null | ||
*/ | ||
public function setNewRecurringDate($newRecurringDate); | ||
|
||
/** | ||
* Get OldRecurringDate property value | ||
* | ||
* @return string|null | ||
*/ | ||
public function getOldRecurringDate(); | ||
|
||
/** | ||
* Set Model OldRecurringDate property value | ||
* | ||
* @param string $oldRecurringDate | ||
* @return mixed|null | ||
*/ | ||
public function setOldRecurringDate($oldRecurringDate); | ||
|
||
/** | ||
* Get OldRecurringDate property value | ||
* | ||
* @return string|null | ||
*/ | ||
public function getCreatedAt(); | ||
|
||
/** | ||
* Set Model createdAt property value | ||
* | ||
* @param string $createdAt | ||
* @return mixed|null | ||
*/ | ||
public function setCreatedAt($createdAt); | ||
|
||
/** | ||
* Get OldRecurringDate property value | ||
* | ||
* @return string|null | ||
*/ | ||
public function getUpdatedAt(); | ||
|
||
/** | ||
* Set Model updatedAt property value | ||
* | ||
* @param string $updatedAt | ||
* @return string|null | ||
*/ | ||
public function setUpdatedAt($updatedAt); | ||
} |
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,26 @@ | ||
<?php | ||
|
||
namespace Sapient\Worldpay\Api; | ||
|
||
/** | ||
* Interface EditSubscriptionHistoryRepositoryInterface | ||
*/ | ||
interface EditSubscriptionHistoryRepositoryInterface | ||
{ | ||
/** | ||
* Get getById | ||
* | ||
* @param int $id | ||
* @return \Sapient\Worldpay\Api\Data\EditSubscriptionHistoryInterface | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function getById($id); | ||
|
||
/** | ||
* Save Subscription History | ||
* | ||
* @param \Sapient\Worldpay\Api\Data\EditSubscriptionHistoryInterface $editSubscriptionHistory | ||
* @return mixed | ||
*/ | ||
public function save(\Sapient\Worldpay\Api\Data\EditSubscriptionHistoryInterface $editSubscriptionHistory): mixed; | ||
} |
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 | ||
/** | ||
* @copyright 2017 Sapient | ||
*/ | ||
namespace Sapient\Worldpay\Api; | ||
|
||
interface RecurringShippingMethodInterface | ||
{ | ||
/** | ||
* Retrive Shipping Method | ||
* | ||
* @api | ||
* @param string $orderIncrementId | ||
* @param string $addressId | ||
* @return null|string | ||
*/ | ||
public function getShippingMethod($orderIncrementId, $addressId); | ||
} |
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,26 @@ | ||
<?php | ||
|
||
namespace Sapient\Worldpay\Api; | ||
|
||
/** | ||
* Interface SkipSubscriptionOrderRepositoryInterface | ||
*/ | ||
interface SkipSubscriptionOrderRepositoryInterface | ||
{ | ||
/** | ||
* Get getById | ||
* | ||
* @param int $id | ||
* @return \Sapient\Worldpay\Api\Data\SkipSubscriptionOrderInterface | ||
* @throws \Magento\Framework\Exception\NoSuchEntityException | ||
*/ | ||
public function getById($id); | ||
|
||
/** | ||
* Save Skip Subscription Order data | ||
* | ||
* @param \Sapient\Worldpay\Api\Data\SkipSubscriptionOrderInterface $skipSubscriptionOrder | ||
* @return mixed | ||
*/ | ||
public function save(\Sapient\Worldpay\Api\Data\SkipSubscriptionOrderInterface $skipSubscriptionOrder): mixed; | ||
} |
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 | ||
/** | ||
* @copyright 2017 Sapient | ||
*/ | ||
namespace Sapient\Worldpay\Api; | ||
|
||
interface UpdateRecurringShipmentInterface | ||
{ | ||
/** | ||
* Update Recurring Shipment | ||
* | ||
* @api | ||
* @param mixed $shipmentData | ||
* @return string | ||
*/ | ||
public function updateRecurringShipment($shipmentData) : 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,19 @@ | ||
<?php | ||
/** | ||
* @copyright 2017 Sapient | ||
*/ | ||
namespace Sapient\Worldpay\Api; | ||
|
||
interface UpdateRecurringTokenInterface | ||
{ | ||
/** | ||
* Update Recurring Token | ||
* | ||
* @api | ||
* @param string $tokenId | ||
* @param string $subscriptionId | ||
* | ||
* @return string | ||
*/ | ||
public function updateRecurringPaymentToken(string $tokenId, string $subscriptionId): string; | ||
} |
Oops, something went wrong.