Skip to content

Commit

Permalink
2.4.5-p5 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chandan-PS committed Feb 6, 2024
1 parent d2aeb64 commit 494b835
Show file tree
Hide file tree
Showing 168 changed files with 8,224 additions and 1,252 deletions.
16 changes: 16 additions & 0 deletions Api/CustomerPaymentTokenInterface.php
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();
}
110 changes: 110 additions & 0 deletions Api/Data/EditSubscriptionHistoryInterface.php
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);
}
144 changes: 144 additions & 0 deletions Api/Data/SkipSubscriptionOrderInterface.php
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);
}
26 changes: 26 additions & 0 deletions Api/EditSubscriptionHistoryRepositoryInterface.php
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;
}
18 changes: 18 additions & 0 deletions Api/RecurringShippingMethodInterface.php
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);
}
26 changes: 26 additions & 0 deletions Api/SkipSubscriptionOrderRepositoryInterface.php
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;
}
17 changes: 17 additions & 0 deletions Api/UpdateRecurringShipmentInterface.php
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;
}
19 changes: 19 additions & 0 deletions Api/UpdateRecurringTokenInterface.php
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;
}
Loading

0 comments on commit 494b835

Please sign in to comment.