PHP Класс XeroPHP\Models\Accounting\Item

Наследование: extends XeroPHP\Remote\Object
Показать файл Открыть проект

Открытые методы

Метод Описание
addPurchaseDetail ( Purchase $value ) : Item
addSalesDetail ( Sale $value ) : Item
getAPIStem ( ) : string | null Get the stem of the API (core.xro) etc
getCode ( ) : string
getDescription ( ) : string
getGUIDProperty ( ) : string Get the guid property
getInventoryAssetAccountCode ( ) : string
getIsPurchased ( ) : boolean
getIsSold ( ) : boolean
getIsTrackedAsInventory ( ) : boolean
getItemID ( ) : string
getName ( ) : string
getProperties ( ) : array Get the properties of the object. Indexed by constants [0] - Mandatory [1] - Type [2] - PHP type [3] - Is an Array [4] - Saves directly
getPurchaseDescription ( ) : string
getPurchaseDetails ( ) : Purchase[] | Collection
getQuantityOnHand ( ) : string
getResourceURI ( ) : string Get the resource uri of the class (Contacts) etc
getRootNodeName ( ) : string Get the root node name. Just the unqualified classname
getSalesDetails ( ) : Sale[] | Collection
getSupportedMethods ( ) Get the supported methods
getTotalCostPool ( ) : string
getUpdatedDateUTC ( ) : DateTimeInterface
isPageable ( )
setCode ( string $value ) : Item
setDescription ( string $value ) : Item
setInventoryAssetAccountCode ( string $value ) : Item
setIsPurchased ( boolean $value ) : Item
setIsSold ( boolean $value ) : Item
setIsTrackedAsInventory ( boolean $value ) : Item
setItemID ( string $value ) : Item
setName ( string $value ) : Item
setPurchaseDescription ( string $value ) : Item
setQuantityOnHand ( string $value ) : Item
setTotalCostPool ( string $value ) : Item
setUpdatedDateUTC ( DateTimeInterface $value ) : Item

Описание методов

addPurchaseDetail() публичный Метод

public addPurchaseDetail ( Purchase $value ) : Item
$value XeroPHP\Models\Accounting\Item\Purchase
Результат Item

addSalesDetail() публичный Метод

public addSalesDetail ( Sale $value ) : Item
$value XeroPHP\Models\Accounting\Item\Sale
Результат Item

getAPIStem() публичный статический Метод

Get the stem of the API (core.xro) etc
public static getAPIStem ( ) : string | null
Результат string | null

getCode() публичный Метод

public getCode ( ) : string
Результат string

getDescription() публичный Метод

public getDescription ( ) : string
Результат string

getGUIDProperty() публичный статический Метод

Get the guid property
public static getGUIDProperty ( ) : string
Результат string

getInventoryAssetAccountCode() публичный Метод

public getInventoryAssetAccountCode ( ) : string
Результат string

getIsPurchased() публичный Метод

public getIsPurchased ( ) : boolean
Результат boolean

getIsSold() публичный Метод

public getIsSold ( ) : boolean
Результат boolean

getIsTrackedAsInventory() публичный Метод

public getIsTrackedAsInventory ( ) : boolean
Результат boolean

getItemID() публичный Метод

public getItemID ( ) : string
Результат string

getName() публичный Метод

public getName ( ) : string
Результат string

getProperties() публичный статический Метод

Get the properties of the object. Indexed by constants [0] - Mandatory [1] - Type [2] - PHP type [3] - Is an Array [4] - Saves directly
public static getProperties ( ) : array
Результат array

getPurchaseDescription() публичный Метод

public getPurchaseDescription ( ) : string
Результат string

getPurchaseDetails() публичный Метод

public getPurchaseDetails ( ) : Purchase[] | Collection
Результат XeroPHP\Models\Accounting\Item\Purchase[] | XeroPHP\Remote\Collection Always returns a collection, switch is for type hinting

getQuantityOnHand() публичный Метод

public getQuantityOnHand ( ) : string
Результат string

getResourceURI() публичный статический Метод

Get the resource uri of the class (Contacts) etc
public static getResourceURI ( ) : string
Результат string

getRootNodeName() публичный статический Метод

Get the root node name. Just the unqualified classname
public static getRootNodeName ( ) : string
Результат string

getSalesDetails() публичный Метод

public getSalesDetails ( ) : Sale[] | Collection
Результат XeroPHP\Models\Accounting\Item\Sale[] | XeroPHP\Remote\Collection Always returns a collection, switch is for type hinting

getSupportedMethods() публичный статический Метод

Get the supported methods
public static getSupportedMethods ( )

getTotalCostPool() публичный Метод

public getTotalCostPool ( ) : string
Результат string

getUpdatedDateUTC() публичный Метод

public getUpdatedDateUTC ( ) : DateTimeInterface
Результат DateTimeInterface

isPageable() публичный статический Метод

public static isPageable ( )

setCode() публичный Метод

public setCode ( string $value ) : Item
$value string
Результат Item

setDescription() публичный Метод

public setDescription ( string $value ) : Item
$value string
Результат Item

setInventoryAssetAccountCode() публичный Метод

public setInventoryAssetAccountCode ( string $value ) : Item
$value string
Результат Item

setIsPurchased() публичный Метод

public setIsPurchased ( boolean $value ) : Item
$value boolean
Результат Item

setIsSold() публичный Метод

public setIsSold ( boolean $value ) : Item
$value boolean
Результат Item

setIsTrackedAsInventory() публичный Метод

public setIsTrackedAsInventory ( boolean $value ) : Item
$value boolean
Результат Item

setItemID() публичный Метод

public setItemID ( string $value ) : Item
$value string
Результат Item

setName() публичный Метод

public setName ( string $value ) : Item
$value string
Результат Item

setPurchaseDescription() публичный Метод

public setPurchaseDescription ( string $value ) : Item
$value string
Результат Item

setQuantityOnHand() публичный Метод

public setQuantityOnHand ( string $value ) : Item
$value string
Результат Item

setTotalCostPool() публичный Метод

public setTotalCostPool ( string $value ) : Item
$value string
Результат Item

setUpdatedDateUTC() публичный Метод

public setUpdatedDateUTC ( DateTimeInterface $value ) : Item
$value DateTimeInterface
Результат Item