-
Notifications
You must be signed in to change notification settings - Fork 11
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
d0fe05a
commit 566e59f
Showing
98 changed files
with
1,315 additions
and
737 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ php: | |
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
before_script: composer install | ||
|
||
|
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,5 @@ | ||
Upgrade v1 to v2 | ||
================ | ||
- PHP-INK-Router v2 classes used namespaces. | ||
- Deprecated method Order.setTsCreated was removed, use Order.setTsCreatedAsDate | ||
- Deprecated method Order.setDeliveryDate was removed, use Order.setDeliveryDateAsDate |
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,59 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of InkRouter-PHP-SDK. | ||
* | ||
* Copyright (c) Opensoft (http://opensoftdev.com) | ||
* | ||
* The unauthorized use of this code outside the boundaries of | ||
* Opensoft is prohibited. | ||
*/ | ||
|
||
namespace InkRouter\Client; | ||
|
||
use InkRouter\Exceptions\Exception; | ||
use InkRouter\Models\OrderInfo; | ||
|
||
interface ClientInterface | ||
{ | ||
/** | ||
* @param int $timestamp | ||
* @param OrderInfo $orderInfo | ||
* @return mixed | ||
* @throws Exception | ||
*/ | ||
public function createOrder($timestamp, OrderInfo $orderInfo); | ||
|
||
/** | ||
* @param int $orderId | ||
* @param int $timestamp | ||
* @param OrderInfo $orderInfo | ||
* @return mixed | ||
* @throws Exception | ||
*/ | ||
public function updateOrder($orderId, $timestamp, OrderInfo $orderInfo); | ||
|
||
/** | ||
* @param int $orderId | ||
* @param int $timestamp | ||
* @return mixed | ||
* @throws Exception | ||
*/ | ||
public function placeOnHold($orderId, $timestamp); | ||
|
||
/** | ||
* @param int $orderId | ||
* @param int $timestamp | ||
* @return mixed | ||
* @throws Exception | ||
*/ | ||
public function removeHold($orderId, $timestamp); | ||
|
||
/** | ||
* @param int $orderId | ||
* @param int $timestamp | ||
* @return mixed | ||
* @throws Exception | ||
*/ | ||
public function cancelOrder($orderId, $timestamp); | ||
} |
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.