freshbooks-php-sdk

Tax extends DataTransferObject implements DataModel

System-wide taxes for invoices.

Tags
link
https://www.freshbooks.com/api/taxes

Table of Contents

Interfaces

DataModel

Constants

RESPONSE_FIELD  = 'tax'

Properties

$accountingSystemId  : string
$amount  : string
$id  : int
$name  : string
$number  : string
$taxId  : int
$updated  : DateTimeImmutable

Methods

getContent()  : array<string|int, mixed>
Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

Constants

RESPONSE_FIELD

public mixed RESPONSE_FIELD = 'tax'

Properties

$accountingSystemId

public string $accountingSystemId

Unique identifier of account the tax exists on.

$amount

public string $amount

Percentage value of tax.

$id

public int $id

Get the unique identifier of this tax within this business.

$name

public string $name

Identifiable name for the tax.

Eg. "GST"

$number

public string $number

An external number that identifies your tax submission.

$taxId

public int $taxId

Duplicate of id.

$updated

public DateTimeImmutable $updated

The time of last modification.

Methods

getContent()

Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

public getContent() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results