-
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.
Renamed sdk structure and added back ability to ship and receive enti…
…re purchase order
- Loading branch information
1 parent
fcae9f4
commit 60133cb
Showing
81 changed files
with
613 additions
and
511 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
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,35 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk; | ||
|
||
use Skuio\Sdk\Support\Arrayable; | ||
use Skuio\Sdk\Support\Jsonable; | ||
|
||
|
||
/** | ||
* Class DataType | ||
* @package Skuio\Sdk | ||
* | ||
* @property int|null id | ||
*/ | ||
abstract class DataType | ||
{ | ||
|
||
use Arrayable, Jsonable; | ||
|
||
/** | ||
* Operations | ||
*/ | ||
// for array of objects | ||
const OPERATION_ADD = 'updateOrCreate'; | ||
const OPERATION_REPLACE = 'updateOrCreate'; | ||
const OPERATION_DELETE = 'delete'; | ||
|
||
public function __construct( array $attributes = null ) | ||
{ | ||
foreach ( $attributes ?: [] as $key => $value ) | ||
{ | ||
$this->$key = $value; | ||
} | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
src/Model/AttributeGroup.php → src/DataType/AttributeGroup.php
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,19 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class Address | ||
* | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $value | ||
* @property int $sort_order | ||
*/ | ||
class AttributeValue extends DataType | ||
{ | ||
|
||
} |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk\Model; | ||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\Model; | ||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class Currency | ||
* | ||
* @package Skuio\Sdk\Model | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $code | ||
* @property string $name | ||
* @property float $conversion | ||
* @property bool $is_default | ||
*/ | ||
class Currency extends Model | ||
class Currency extends DataType | ||
{ | ||
} |
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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk\Model; | ||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\Model; | ||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class Incoterm | ||
* | ||
* @package Skuio\Sdk\Model | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $code | ||
* @property string $description | ||
*/ | ||
class Incoterm extends Model | ||
class Incoterm extends DataType | ||
{ | ||
} |
9 changes: 5 additions & 4 deletions
9
src/Model/InventoryAdjustment.php → src/DataType/InventoryAdjustment.php
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk\Model; | ||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\Model; | ||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class InventoryAdjustment | ||
* | ||
* @package Skuio\Sdk\Model | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $adjustment_date | ||
* @property int $product_id | ||
* @property int $warehouse_id | ||
* @property int $warehouse_location_id | ||
* @property float $quantity | ||
* @property string $notes | ||
*/ | ||
class InventoryAdjustment extends Model | ||
class InventoryAdjustment extends DataType | ||
{ | ||
} |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
namespace Skuio\Sdk\Model; | ||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\Model; | ||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class ProductPricingTier | ||
* | ||
* @package Skuio\Sdk\Model | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $name | ||
* @property string $currency_code | ||
*/ | ||
class PricingTier extends Model | ||
class PricingTier extends DataType | ||
{ | ||
|
||
} |
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 | ||
|
||
namespace Skuio\Sdk\DataType; | ||
|
||
use Skuio\Sdk\DataType; | ||
|
||
/** | ||
* Class Attribute | ||
* | ||
* @package Skuio\Sdk\DataType | ||
* | ||
* @property int $id | ||
* @property string $name | ||
* @property mixed $value | ||
*/ | ||
class ProductAttribute extends DataType | ||
{ | ||
} |
Oops, something went wrong.