Callback
extends DataTransferObject
in package
implements
DataModel
Webhook callback subscription model.
Tags
Table of Contents
Interfaces
Constants
- RESPONSE_FIELD = 'callback'
Properties
- $callbackId : int
- $event : string
- $updatedAt : DateTimeImmutable
- $uri : string
- $verified : bool
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
= 'callback'
Properties
$callbackId
public
int
$callbackId
Get the unique identifier of this callback within this business.
$event
public
string
$event
The event to register the webhook callback for (eg. invoice.create
).
$updatedAt
public
DateTimeImmutable
$updatedAt
The time of last modification.
$uri
public
string
$uri
The URI to send the webhook callback to.
$verified
public
bool
$verified
Whether the callback has been verified against the URI.
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>