freshbooks-php-sdk

Callback implements DataModel

Webhook callback subscription model.

Tags
link
https://www.freshbooks.com/api/webhooks

Table of Contents

Interfaces

DataModel

Constants

RESPONSE_FIELD  : mixed = 'callback'

Properties

$callbackId  : int
$event  : string
$updatedAt  : DateTimeImmutable
$uri  : string
$verified  : bool

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 = '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

__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>
Return values
array<string|int, mixed>
On this page

Search results