Client
extends DataTransferObject
in package
implements
DataModel
A client in the new FreshBooks is a resource representing an entity you send invoices to.
Tags
Table of Contents
Interfaces
Constants
- RESPONSE_FIELD = 'client'
Properties
- $accountingSystemId : string
- $billingCity : string
- $billingCode : string
- $billingCountry : string
- $billingProvince : string
- $billingStreet : string
- $billingStreet2 : string
- $businessPhone : string
- $companyIndustry : string
- $companySize : string
- $currencyCode : string
- $email : string
- $fax : string
- $firstName : string
- $homePhone : string
- $id : int
- $language : string
- $lastActivity : string
- $lastName : string
- $mobilePhone : string
- $note : string
- $organization : string
- $shippingCity : string
- $shippingCode : string
- $shippingCountry : string
- $shippingProvince : string
- $shippingStreet : string
- $shippingStreet2 : string
- $signupDate : DateTimeImmutable
- $updated : DateTimeImmutable
- $userId : int
- $vatName : string
- $vatNumber : string
- $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
= 'client'
Properties
$accountingSystemId
public
string
$accountingSystemId
Unique identifier of account the client exists on.
$billingCity
public
string
$billingCity
Billing address city.
$billingCode
public
string
$billingCode
Billing address postal code.
$billingCountry
public
string
$billingCountry
Billing address country.
$billingProvince
public
string
$billingProvince
Short form of province/state for billing address.
$billingStreet
public
string
$billingStreet
Billing address street.
$billingStreet2
public
string
$billingStreet2
Billing address, additional street info.
$businessPhone
public
string
$businessPhone
Business phone number.
$companyIndustry
public
string
$companyIndustry
Description of industry client is in.
$companySize
public
string
$companySize
Size of client's company.
$currencyCode
public
string
$currencyCode
3-letter shortcode for client's preferred currency. Eg. USD, CAD, EUR
public
string
$email
Client's email.
$fax
public
string
$fax
Client's fax number.
$firstName
public
string
$firstName
Client's first name.
$homePhone
public
string
$homePhone
Client's home phone number.
$id
public
int
$id
The unique identifier of this client within this business.
$language
public
string
$language
Shortcode indicating user language e.g. "en"
$lastActivity
public
string
$lastActivity
The last client activity action.
Note: This returns as "null" in all calls unless a "last_activity" include parameter is provided.
$lastName
public
string
$lastName
Client's last name.
$mobilePhone
public
string
$mobilePhone
Client's mobile phone number.
Eg. "416-444-4444"
$note
public
string
$note
Notes kept by admin about client.
$organization
public
string
$organization
Name for client's business.
$shippingCity
public
string
$shippingCity
Shipping address city.
$shippingCode
public
string
$shippingCode
Shipping address postal code.
$shippingCountry
public
string
$shippingCountry
Shipping address country.
$shippingProvince
public
string
$shippingProvince
Short form of province/state for shipping address.
$shippingStreet
public
string
$shippingStreet
Shipping address street.
$shippingStreet2
public
string
$shippingStreet2
Shipping address, second street info.
$signupDate
public
DateTimeImmutable
$signupDate
The signup time of the client.
$updated
public
DateTimeImmutable
$updated
The time of last modification.
$userId
public
int
$userId
Duplicate of id
$vatName
public
string
$vatName
The "Value Added Tax" name
$vatNumber
public
string
$vatNumber
The "Value Added Tax" number
$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>