freshbooks-php-sdk

ExpenseCategory extends DataTransferObject

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

Constants

RESPONSE_FIELD  = 'category'

Properties

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

Constants

Properties

$category

public string $category

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

$categoryId

public int $categoryId

Duplicate of id

Attributes
#[MapFrom]
'categoryid'

$createdAt

public DateTimeImmutable $createdAt

The time of category creation.

Attributes
#[CastWith]
\amcintosh\FreshBooks\Model\Caster\AccountingDateTimeImmutableCaster::class
#[MapFrom]
'created_at'

$id

public int $id

The unique identifier of this expense category within this business.

$isCogs

public bool $isCogs

Represents cost of goods sold

Attributes
#[MapFrom]
'is_cogs'

$isEditable

public bool $isEditable

Can this category be edited

Attributes
#[MapFrom]
'is_editable'

$parentId

public int $parentId

Category id of parent category

Attributes
#[MapFrom]
'parentid'

$transactionPosted

public bool $transactionPosted
Attributes
#[MapFrom]
'transaction_posted'

$updatedAt

public DateTimeImmutable $updatedAt

The time of last modification.

Attributes
#[CastWith]
\amcintosh\FreshBooks\Model\Caster\AccountingDateTimeImmutableCaster::class
#[MapFrom]
'updated_at'

        
On this page

Search results