Item
extends DataTransferObject
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 = 'item'
Properties
- $accountingSystemId : string
- $description : string
- $id : int
- $inventory : string
- $itemId : int
- $name : string
- $quantity : int
- $sku : string
- $tax1 : int
- $tax2 : int
- $unitCost : Money
- $updated : DateTimeImmutable
- $visState : int
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
= 'item'
Properties
$accountingSystemId
public
string
$accountingSystemId
Unique identifier of account the client exists on.
$description
public
string
$description
Descriptive text for item.
$id
public
int
$id
The unique identifier of this item within this business.
$inventory
public
string
$inventory
Decimal-string count of inventory.
$itemId
public
int
$itemId
Duplicate of id.
$name
public
string
$name
Descriptive name of item.
$quantity
public
int
$quantity
Decimal-string quantity to multiply unit cost by.
$sku
public
string
$sku
Id for a specific item or product, used in inventory management.
$tax1
public
int
$tax1
Id of the first tax to apply to this item.
$tax2
public
int
$tax2
Id of the second tax to apply to this item.
$unitCost
public
Money
$unitCost
Unit cost of the line item.
Money object containing amount and currency code.
$updated
public
DateTimeImmutable
$updated
The time of last modification.
$visState
public
int
$visState
The visibility state: active, deleted, or archived
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>