ExpenseCategory
extends DataTransferObject
in package
Expense Categories are used to group expenses together to aid in expense tracking.
Tags
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
RESPONSE_FIELD
public
mixed
RESPONSE_FIELD
= 'category'
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'
$visState
public
int
$visState
The visibility state: active, deleted, or archived
Attributes
- #[MapFrom]
- 'vis_state'