Item
in package
implements
DataModel
Items are stored from invoice lines to make invoicing easier in the future.
Tags
Table of Contents
Interfaces
Constants
- RESPONSE_FIELD : mixed = 'item'
Properties
- $accountingSystemId : string|null
- $description : string|null
- $id : int|null
- $inventory : string|null
- $itemId : int|null
- $name : string|null
- $quantity : float|null
- $sku : string|null
- $tax1 : int|null
- $tax2 : int|null
- $unitCost : Money|null
- $updated : DateTimeImmutable|null
- $visState : int|null
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
RESPONSE_FIELD
public
mixed
RESPONSE_FIELD
= 'item'
Properties
$accountingSystemId
public
string|null
$accountingSystemId
Unique identifier of account the client exists on.
$description
public
string|null
$description
Descriptive text for item.
$id
public
int|null
$id
The unique identifier of this item within this business.
$inventory
public
string|null
$inventory
Decimal-string count of inventory.
$itemId
public
int|null
$itemId
Duplicate of id.
$name
public
string|null
$name
Descriptive name of item.
$quantity
public
float|null
$quantity
Decimal-string quantity to multiply unit cost by.
$sku
public
string|null
$sku
Id for a specific item or product, used in inventory management.
$tax1
public
int|null
$tax1
Id of the first tax to apply to this item.
$tax2
public
int|null
$tax2
Id of the second tax to apply to this item.
$unitCost
public
Money|null
$unitCost
= null
Unit cost of the line item.
Money object containing amount and currency code.
$updated
public
DateTimeImmutable|null
$updated
= null
The time of last modification.
$visState
public
int|null
$visState
The visibility state: active, deleted, or archived
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>