-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new Class "SalesItemPrice" which is linked to the RestAPI Endpo…
…int "LogisticsSalesItemPrices".
- Loading branch information
markhorsman
committed
Feb 16, 2017
1 parent
744212a
commit 4f5699c
Showing
1 changed file
with
69 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,69 @@ | ||
<?php namespace Picqer\Financials\Exact; | ||
|
||
/** | ||
* Class SalesItemPrice | ||
* | ||
* @package Picqer\Financials\Exact | ||
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=LogisticsSalesItemPrices | ||
* | ||
* @property Guid $ID Primary key | ||
* @property Guid $Account ID of the customer | ||
* @property String $AccountName Name of the customer account | ||
* @property DateTime $Created Creation date | ||
* @property Guid $Creator User ID of creator | ||
* @property String $CreatorFullName Name of creator | ||
* @property String $Currency The currency of the price | ||
* @property String $DefaultItemUnit The default unit of the item | ||
* @property String $DefaultItemUnitDescription The description of the default item unit | ||
* @property Int32 $Division Division code | ||
* @property DateTime $EndDate Together with StartDate this determines if the item is active | ||
* @property Guid $Item Item ID | ||
* @property String $ItemCode Code of Item | ||
* @property String $ItemDescription Description of Item | ||
* @property DateTime $Modified Last modified date | ||
* @property Guid $Modifier User ID of modifier | ||
* @property String $ModifierFullName Name of modifier | ||
* @property Double $NumberOfItemsPerUnit This is the multiplication factor when going from default item unit to the unit of this price.For example if the default item unit is 'gram' and the price unit is 'kilogram' then the value of this property is 1000. | ||
* @property Double $Price The actual price of this sales item | ||
* @property Double $Quantity Minimum quantity to which the price is applicable | ||
* @property DateTime $StartDate Together with EndDate this determines whether the price is active | ||
* @property String $Unit The unit code of the price | ||
* @property String $UnitDescription Description of the price unit | ||
*/ | ||
class SalesItemPrice extends Model | ||
{ | ||
|
||
use Query\Findable; | ||
use Persistance\Storable; | ||
|
||
protected $fillable = [ | ||
'ID', | ||
'Account', | ||
'AccountName', | ||
'Created', | ||
'Creator', | ||
'CreatorFullName', | ||
'Currency', | ||
'DefaultItemUnit', | ||
'DefaultItemUnitDescription', | ||
'Division', | ||
'EndDate', | ||
'Item', | ||
'ItemCode', | ||
'ItemDescription', | ||
'Modified', | ||
'Modifier', | ||
'ModifierFullName', | ||
'NumberOfItemsPerUnit', | ||
'Price', | ||
'Quantity', | ||
'StartDate', | ||
'Unit', | ||
'UnitDescription', | ||
]; | ||
|
||
protected $url = 'logistics/SalesItemPrices'; | ||
|
||
} |