WorkOS PHP SDK

OrganizationDeletedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$domains  : array<string|int, OrganizationDeletedDataDomain>
List of Organization Domains.
$externalId  : string|null
The external ID of the Organization.
$id  : string
Unique identifier of the Organization.
$metadata  : array<string, string>
Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization.
$name  : string
A descriptive name for the Organization. This field does not need to be unique.
$object  : string
Distinguishes the Organization object.
$stripeCustomerId  : string|null
The Stripe customer ID of the Organization.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$metadata

Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization.

public array<string, string> $metadata

$name

A descriptive name for the Organization. This field does not need to be unique.

public string $name

$stripeCustomerId

The Stripe customer ID of the Organization.

public string|null $stripeCustomerId = null

Methods

__construct()

public __construct(string $object, string $id, string $name, array<string|int, mixed> $domains, array<string|int, mixed> $metadata, string|null $externalId, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt[, string|null $stripeCustomerId = null ]) : mixed
Parameters
$object : string
$id : string
$name : string
$domains : array<string|int, mixed>
$metadata : array<string|int, mixed>
$externalId : string|null
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable
$stripeCustomerId : string|null = null

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results