forked from omnisend/magento2-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
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
706cda9
commit b237720
Showing
239 changed files
with
18,990 additions
and
0 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,62 @@ | ||
<?php | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
interface OmnisendContactInterface | ||
{ | ||
const TABLE_NAME = 'customer_omnisend'; | ||
|
||
const ID = 'id'; | ||
const CUSTOMER_ID = 'customer_id'; | ||
const OMNISEND_ID = 'omnisend_id'; | ||
const STORE_ID = 'store_id'; | ||
|
||
const LABEL_ID = 'Id'; | ||
const LABEL_CUSTOMER_ID = 'Customer Id'; | ||
const LABEL_OMNISEND_ID = 'Omnisend Id'; | ||
const LABEL_STORE_ID = 'Store Id'; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getCustomerId(); | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getOmnisendId(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getStoreId(); | ||
|
||
/** | ||
* @param $id | ||
* @return void | ||
*/ | ||
public function setId($id); | ||
|
||
/** | ||
* @param $customerId | ||
* @return void | ||
*/ | ||
public function setCustomerId($customerId); | ||
|
||
/** | ||
* @param $omnisendId | ||
* @return void | ||
*/ | ||
public function setOmnisendId($omnisendId); | ||
|
||
/** | ||
* @param $storeId | ||
* @return int | ||
*/ | ||
public function setStoreId($storeId); | ||
} |
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,62 @@ | ||
<?php | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
interface OmnisendGuestSubscriberInterface | ||
{ | ||
const TABLE_NAME = 'guest_subscriber_omnisend'; | ||
|
||
const ID = 'id'; | ||
const SUBSCRIBER_ID = 'subscriber_id'; | ||
const OMNISEND_ID = 'omnisend_id'; | ||
const STORE_ID = 'store_id'; | ||
|
||
const LABEL_ID = 'Id'; | ||
const LABEL_SUBSCRIBER_ID = 'Subscriber Id'; | ||
const LABEL_OMNISEND_ID = 'Omnisend Id'; | ||
const LABEL_STORE_ID = 'Store Id'; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getSubscriberId(); | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getOmnisendId(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getStoreId(); | ||
|
||
/** | ||
* @param $id | ||
* @return void | ||
*/ | ||
public function setId($id); | ||
|
||
/** | ||
* @param $subscriberId | ||
* @return void | ||
*/ | ||
public function setSubscriberId($subscriberId); | ||
|
||
/** | ||
* @param $omnisendId | ||
* @return void | ||
*/ | ||
public function setOmnisendId($omnisendId); | ||
|
||
/** | ||
* @param $storeId | ||
* @return int | ||
*/ | ||
public function setStoreId($storeId); | ||
} |
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,49 @@ | ||
<?php | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
interface OmnisendOrderStatusInterface | ||
{ | ||
const TABLE_NAME = 'sales_order_status_omnisend'; | ||
|
||
const STATUS = 'status'; | ||
const PAYMENT_STATUS = 'payment_status'; | ||
const FULFILLMENT_STATUS = 'fulfillment_status'; | ||
|
||
const LABEL_STATUS = 'Status'; | ||
const LABEL_PAYMENT_STATUS = 'Payment Status'; | ||
const LABEL_FULFILLMENT_STATUS = 'Fulfillment Status'; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPaymentStatus(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFulfillmentStatus(); | ||
|
||
/** | ||
* @param $status | ||
* @return void | ||
*/ | ||
public function setStatus($status); | ||
|
||
/** | ||
* @param $paymentStatus | ||
* @return void | ||
*/ | ||
public function setPaymentStatus($paymentStatus); | ||
|
||
/** | ||
* @param $fulfillmentStatus | ||
* @return void | ||
*/ | ||
public function setFulfillmentStatus($fulfillmentStatus); | ||
} |
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,77 @@ | ||
<?php | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
use DateTime; | ||
|
||
interface OmnisendRateLimitInterface | ||
{ | ||
const TABLE_NAME = 'omnisend_rate_limit'; | ||
|
||
const ID = 'id'; | ||
const LIMIT_TOTAL = 'limit_total'; | ||
const LIMIT_REMAINING = 'limit_remaining'; | ||
const RESETS_IN = 'resets_in'; | ||
const UPDATED_AT = 'updated_at'; | ||
|
||
const LABEL_ID = 'Id'; | ||
const LABEL_LIMIT_TOTAL = 'Limit Total'; | ||
const LABEL_LIMIT_REMAINING = 'Limit Remaining'; | ||
const LABEL_RESETS_IN = 'Resets In'; | ||
const LABEL_UPDATED_AT = 'Updated At'; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getLimitTotal(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getLimitRemaining(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getResetsIn(); | ||
|
||
/** | ||
* @return DateTime | ||
*/ | ||
public function getUpdatedAt(); | ||
|
||
/** | ||
* @param $id | ||
* @return int | ||
*/ | ||
public function setId($id); | ||
|
||
/** | ||
* @param $limitTotal | ||
* @return int | ||
*/ | ||
public function setLimitTotal($limitTotal); | ||
|
||
/** | ||
* @param $limitRemaining | ||
* @return int | ||
*/ | ||
public function setLimitRemaining($limitRemaining); | ||
|
||
/** | ||
* @param $resetsIn | ||
* @return int | ||
*/ | ||
public function setResetsIn($resetsIn); | ||
|
||
/** | ||
* @param $updatedAt | ||
* @return DateTime | ||
*/ | ||
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,106 @@ | ||
<?php | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
interface OmnisendRequestInterface | ||
{ | ||
|
||
const RECORD_ID = 'record_id'; | ||
const REQUEST_URL = 'request_url'; | ||
const REQUEST_METHOD = 'request_method'; | ||
const REQUEST_BODY = 'request_body'; | ||
const STORE_ID = 'store_id'; | ||
const RESPONSE_CODE = 'response_code'; | ||
const RESPONSE_BODY = 'response_body'; | ||
|
||
/** | ||
* Get entity_id | ||
* @return string|null | ||
*/ | ||
public function getId(); | ||
|
||
/** | ||
* Set entity_id | ||
* @param string $entityId | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setId($entityId); | ||
|
||
/** | ||
* Get | ||
* @return string|null | ||
*/ | ||
public function getRequestUrl(); | ||
|
||
/** | ||
* Set | ||
* @param string $url | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setRequestUrl($url); | ||
|
||
/** | ||
* Get | ||
* @return string|null | ||
*/ | ||
public function getRequestMethod(); | ||
|
||
/** | ||
* Set | ||
* @param string $method | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setRequestMethod($method); | ||
|
||
/** | ||
* Get | ||
* @return string|null | ||
*/ | ||
public function getRequestBody(); | ||
|
||
/** | ||
* Set | ||
* @param string $body | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setRequestBody($body); | ||
|
||
/** | ||
* Get | ||
* @return int|null | ||
*/ | ||
public function getStoreId(); | ||
|
||
/** | ||
* Set | ||
* @param int $id | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setStoreId($id); | ||
|
||
/** | ||
* Get | ||
* @return string|null | ||
*/ | ||
public function getResponseCode(); | ||
|
||
/** | ||
* Set | ||
* @param string $code | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setResponseCode($code); | ||
|
||
/** | ||
* Get | ||
* @return string|null | ||
*/ | ||
public function getResponseBody(); | ||
|
||
/** | ||
* Set | ||
* @param string $body | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface | ||
*/ | ||
public function setResponseBody($body); | ||
} |
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,21 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Omnisend\Omnisend\Api\Data; | ||
|
||
interface OmnisendRequestSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface | ||
{ | ||
|
||
/** | ||
* Get OmnisendRequestRecord list. | ||
* @return \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set title list. | ||
* @param \Omnisend\Omnisend\Api\Data\OmnisendRequestInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} |
Oops, something went wrong.