PHP Class XeroPHP\Models\Accounting\RepeatingInvoice\LineItem

Inheritance: extends XeroPHP\Remote\Object
Show file Open project: calcinai/xero-php

Public Methods

Method Description
addTracking ( TrackingCategory $value ) : LineItem
getAPIStem ( ) : string | null Get the stem of the API (core.xro) etc
getAccountCode ( ) : string
getDescription ( ) : string
getDiscountRate ( ) : string
getGUIDProperty ( ) : string Get the guid property
getItemCode ( ) : string
getLineAmount ( ) : float
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
getQuantity ( ) : string
getResourceURI ( ) : string Get the resource uri of the class (Contacts) etc
getRootNodeName ( ) : string Get the root node name. Just the unqualified classname
getSupportedMethods ( ) Get the supported methods
getTaxAmount ( ) : float
getTaxType ( ) : string
getTracking ( ) : TrackingCategory[] | Collection
getUnitAmount ( ) : float
isPageable ( )
setAccountCode ( string $value ) : LineItem
setDescription ( string $value ) : LineItem
setDiscountRate ( string $value ) : LineItem
setItemCode ( string $value ) : LineItem
setLineAmount ( float $value ) : LineItem
setQuantity ( string $value ) : LineItem
setTaxAmount ( float $value ) : LineItem
setTaxType ( string $value ) : LineItem
setUnitAmount ( float $value ) : LineItem

Method Details

addTracking() public method

public addTracking ( TrackingCategory $value ) : LineItem
$value XeroPHP\Models\Accounting\TrackingCategory
return LineItem

getAPIStem() public static method

Get the stem of the API (core.xro) etc
public static getAPIStem ( ) : string | null
return string | null

getAccountCode() public method

public getAccountCode ( ) : string
return string

getDescription() public method

public getDescription ( ) : string
return string

getDiscountRate() public method

public getDiscountRate ( ) : string
return string

getGUIDProperty() public static method

Get the guid property
public static getGUIDProperty ( ) : string
return string

getItemCode() public method

public getItemCode ( ) : string
return string

getLineAmount() public method

public getLineAmount ( ) : float
return float

getProperties() public static method

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
return array

getQuantity() public method

public getQuantity ( ) : string
return string

getResourceURI() public static method

Get the resource uri of the class (Contacts) etc
public static getResourceURI ( ) : string
return string

getRootNodeName() public static method

Get the root node name. Just the unqualified classname
public static getRootNodeName ( ) : string
return string

getSupportedMethods() public static method

Get the supported methods
public static getSupportedMethods ( )

getTaxAmount() public method

public getTaxAmount ( ) : float
return float

getTaxType() public method

public getTaxType ( ) : string
return string

getTracking() public method

public getTracking ( ) : TrackingCategory[] | Collection
return XeroPHP\Models\Accounting\TrackingCategory[] | XeroPHP\Remote\Collection Always returns a collection, switch is for type hinting

getUnitAmount() public method

public getUnitAmount ( ) : float
return float

isPageable() public static method

public static isPageable ( )

setAccountCode() public method

public setAccountCode ( string $value ) : LineItem
$value string
return LineItem

setDescription() public method

public setDescription ( string $value ) : LineItem
$value string
return LineItem

setDiscountRate() public method

public setDiscountRate ( string $value ) : LineItem
$value string
return LineItem

setItemCode() public method

public setItemCode ( string $value ) : LineItem
$value string
return LineItem

setLineAmount() public method

public setLineAmount ( float $value ) : LineItem
$value float
return LineItem

setQuantity() public method

public setQuantity ( string $value ) : LineItem
$value string
return LineItem

setTaxAmount() public method

public setTaxAmount ( float $value ) : LineItem
$value float
return LineItem

setTaxType() public method

public setTaxType ( string $value ) : LineItem
$value string
return LineItem

setUnitAmount() public method

public setUnitAmount ( float $value ) : LineItem
$value float
return LineItem