freshbooks-php-sdk

ExpenseCategory implements DataModel

Expense Categories are used to group expenses together to aid in expense tracking.

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

Table of Contents

Interfaces

DataModel

Constants

RESPONSE_FIELD  : mixed = 'category'

Properties

$category  : string
$categoryId  : int
$createdAt  : DateTimeImmutable
$id  : int
$isCogs  : bool
$isEditable  : bool
$parentId  : int
$transactionPosted  : bool
$updatedAt  : DateTimeImmutable
$visState  : int

Methods

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

Constants

Properties

$category

public string $category

Name for this category, e.g. “Advertising”

$createdAt

public DateTimeImmutable $createdAt = null

The time of category creation.

$id

public int $id

The unique identifier of this expense category within this business.

$updatedAt

public DateTimeImmutable $updatedAt = null

The time of last modification.

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

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