PHP Class XeroPHP\Models\Accounting\Organisation

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

Public Methods

Method Description
addAddress ( Address $value ) : Organisation
addExternalLink ( ExternalLink $value ) : Organisation
addPaymentTerm ( PaymentTerm $value ) : Organisation
addPhone ( Phone $value ) : Organisation
getAPIKey ( ) : string
getAPIStem ( ) : string | null Get the stem of the API (core.xro) etc
getAddresses ( ) : Address[] | Collection
getBaseCurrency ( ) : string
getCountryCode ( ) : string
getCreatedDateUTC ( ) : DateTimeInterface
getDefaultPurchasesTax ( ) : string
getDefaultSalesTax ( ) : string
getEndOfYearLockDate ( ) : string
getExternalLinks ( ) : ExternalLink[] | Collection
getFinancialYearEndDay ( ) : string
getFinancialYearEndMonth ( ) : string
getGUIDProperty ( ) : string Get the guid property
getIsDemoCompany ( ) : boolean
getLegalName ( ) : string
getLineOfBusiness ( ) : string
getName ( ) : string
getOrganisationEntityType ( ) : string
getOrganisationStatus ( ) : string
getOrganisationType ( ) : string
getPaymentTerms ( ) : PaymentTerm[] | Collection
getPaysTax ( ) : boolean
getPeriodLockDate ( ) : string
getPhones ( ) : Phone[] | Collection
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
getRegistrationNumber ( ) : string
getResourceURI ( ) : string Get the resource uri of the class (Contacts) etc
getRootNodeName ( ) : string Get the root node name. Just the unqualified classname
getSalesTaxBasis ( ) : string
getSalesTaxPeriod ( ) : string
getShortCode ( ) : string
getSupportedMethods ( ) Get the supported methods
getTaxNumber ( ) : string
getTimezone ( ) : string
getVersion ( ) : string
isPageable ( )
setAPIKey ( string $value ) : Organisation
setBaseCurrency ( string $value ) : Organisation
setCountryCode ( string $value ) : Organisation
setCreatedDateUTC ( DateTimeInterface $value ) : Organisation
setDefaultPurchasesTax ( string $value ) : Organisation
setDefaultSalesTax ( string $value ) : Organisation
setEndOfYearLockDate ( string $value ) : Organisation
setFinancialYearEndDay ( string $value ) : Organisation
setFinancialYearEndMonth ( string $value ) : Organisation
setIsDemoCompany ( boolean $value ) : Organisation
setLegalName ( string $value ) : Organisation
setLineOfBusiness ( string $value ) : Organisation
setName ( string $value ) : Organisation
setOrganisationEntityType ( string $value ) : Organisation
setOrganisationStatus ( string $value ) : Organisation
setOrganisationType ( string $value ) : Organisation
setPaysTax ( boolean $value ) : Organisation
setPeriodLockDate ( string $value ) : Organisation
setRegistrationNumber ( string $value ) : Organisation
setSalesTaxBasis ( string $value ) : Organisation
setSalesTaxPeriod ( string $value ) : Organisation
setShortCode ( string $value ) : Organisation
setTaxNumber ( string $value ) : Organisation
setTimezone ( string $value ) : Organisation
setVersion ( string $value ) : Organisation

Method Details

addAddress() public method

public addAddress ( Address $value ) : Organisation
$value Address
return Organisation

addPaymentTerm() public method

public addPaymentTerm ( PaymentTerm $value ) : Organisation
$value XeroPHP\Models\Accounting\Organisation\PaymentTerm
return Organisation

addPhone() public method

public addPhone ( Phone $value ) : Organisation
$value Phone
return Organisation

getAPIKey() public method

public getAPIKey ( ) : string
return string

getAPIStem() public static method

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

getAddresses() public method

public getAddresses ( ) : Address[] | Collection
return Address[] | Collection Always returns a collection, switch is for type hinting

getBaseCurrency() public method

public getBaseCurrency ( ) : string
return string

getCountryCode() public method

public getCountryCode ( ) : string
return string

getCreatedDateUTC() public method

public getCreatedDateUTC ( ) : DateTimeInterface
return DateTimeInterface

getDefaultPurchasesTax() public method

public getDefaultPurchasesTax ( ) : string
return string

getDefaultSalesTax() public method

public getDefaultSalesTax ( ) : string
return string

getEndOfYearLockDate() public method

public getEndOfYearLockDate ( ) : string
return string

getFinancialYearEndDay() public method

public getFinancialYearEndDay ( ) : string
return string

getFinancialYearEndMonth() public method

public getFinancialYearEndMonth ( ) : string
return string

getGUIDProperty() public static method

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

getIsDemoCompany() public method

public getIsDemoCompany ( ) : boolean
return boolean

getLegalName() public method

public getLegalName ( ) : string
return string

getLineOfBusiness() public method

public getLineOfBusiness ( ) : string
return string

getName() public method

public getName ( ) : string
return string

getOrganisationEntityType() public method

getOrganisationStatus() public method

public getOrganisationStatus ( ) : string
return string

getOrganisationType() public method

public getOrganisationType ( ) : string
return string

getPaymentTerms() public method

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

getPaysTax() public method

public getPaysTax ( ) : boolean
return boolean

getPeriodLockDate() public method

public getPeriodLockDate ( ) : string
return string

getPhones() public method

public getPhones ( ) : Phone[] | Collection
return Phone[] | Collection Always returns a collection, switch is for type hinting

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

getRegistrationNumber() public method

public getRegistrationNumber ( ) : 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

getSalesTaxBasis() public method

public getSalesTaxBasis ( ) : string
return string

getSalesTaxPeriod() public method

public getSalesTaxPeriod ( ) : string
return string

getShortCode() public method

public getShortCode ( ) : string
return string

getSupportedMethods() public static method

Get the supported methods
public static getSupportedMethods ( )

getTaxNumber() public method

public getTaxNumber ( ) : string
return string

getTimezone() public method

public getTimezone ( ) : string
return string

getVersion() public method

public getVersion ( ) : string
return string

isPageable() public static method

public static isPageable ( )

setAPIKey() public method

public setAPIKey ( string $value ) : Organisation
$value string
return Organisation

setBaseCurrency() public method

public setBaseCurrency ( string $value ) : Organisation
$value string
return Organisation

setCountryCode() public method

public setCountryCode ( string $value ) : Organisation
$value string
return Organisation

setCreatedDateUTC() public method

public setCreatedDateUTC ( DateTimeInterface $value ) : Organisation
$value DateTimeInterface
return Organisation

setDefaultPurchasesTax() public method

public setDefaultPurchasesTax ( string $value ) : Organisation
$value string
return Organisation

setDefaultSalesTax() public method

public setDefaultSalesTax ( string $value ) : Organisation
$value string
return Organisation

setEndOfYearLockDate() public method

public setEndOfYearLockDate ( string $value ) : Organisation
$value string
return Organisation

setFinancialYearEndDay() public method

public setFinancialYearEndDay ( string $value ) : Organisation
$value string
return Organisation

setFinancialYearEndMonth() public method

public setFinancialYearEndMonth ( string $value ) : Organisation
$value string
return Organisation

setIsDemoCompany() public method

public setIsDemoCompany ( boolean $value ) : Organisation
$value boolean
return Organisation

setLegalName() public method

public setLegalName ( string $value ) : Organisation
$value string
return Organisation

setLineOfBusiness() public method

public setLineOfBusiness ( string $value ) : Organisation
$value string
return Organisation

setName() public method

public setName ( string $value ) : Organisation
$value string
return Organisation

setOrganisationEntityType() public method

public setOrganisationEntityType ( string $value ) : Organisation
$value string
return Organisation

setOrganisationStatus() public method

public setOrganisationStatus ( string $value ) : Organisation
$value string
return Organisation

setOrganisationType() public method

public setOrganisationType ( string $value ) : Organisation
$value string
return Organisation

setPaysTax() public method

public setPaysTax ( boolean $value ) : Organisation
$value boolean
return Organisation

setPeriodLockDate() public method

public setPeriodLockDate ( string $value ) : Organisation
$value string
return Organisation

setRegistrationNumber() public method

public setRegistrationNumber ( string $value ) : Organisation
$value string
return Organisation

setSalesTaxBasis() public method

public setSalesTaxBasis ( string $value ) : Organisation
$value string
return Organisation

setSalesTaxPeriod() public method

public setSalesTaxPeriod ( string $value ) : Organisation
$value string
return Organisation

setShortCode() public method

public setShortCode ( string $value ) : Organisation
$value string
return Organisation

setTaxNumber() public method

public setTaxNumber ( string $value ) : Organisation
$value string
return Organisation

setTimezone() public method

public setTimezone ( string $value ) : Organisation
$value string
return Organisation

setVersion() public method

public setVersion ( string $value ) : Organisation
$value string
return Organisation