Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 63 additions & 63 deletions src/Contacts/Traits/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
/**
* Contacts represent your leads and users in Intercom.
*
* @property ?'contact' $type
* @property ?string $id
* @property 'contact' $type
* @property string $id
* @property ?string $externalId
* @property ?string $workspaceId
* @property ?string $role
* @property string $workspaceId
* @property string $role
* @property ?string $email
* @property ?string $emailDomain
* @property ?string $phone
* @property ?string $name
* @property ?int $ownerId
* @property ?bool $hasHardBounced
* @property ?bool $markedEmailAsSpam
* @property ?bool $unsubscribedFromEmails
* @property ?int $createdAt
* @property ?int $updatedAt
* @property bool $hasHardBounced
* @property bool $markedEmailAsSpam
* @property bool $unsubscribedFromEmails
* @property int $createdAt
* @property int $updatedAt
* @property ?int $signedUpAt
* @property ?int $lastSeenAt
* @property ?int $lastRepliedAt
Expand Down Expand Up @@ -62,16 +62,16 @@
trait Contact
{
/**
* @var ?'contact' $type The type of object.
* @var 'contact' $type The type of object.
*/
#[JsonProperty('type')]
private ?string $type;
private string $type;

/**
* @var ?string $id The unique identifier for the contact which is given by Intercom.
* @var string $id The unique identifier for the contact which is given by Intercom.
*/
#[JsonProperty('id')]
private ?string $id;
private string $id;

/**
* @var ?string $externalId The unique identifier for the contact which is provided by the Client.
Expand All @@ -80,16 +80,16 @@ trait Contact
private ?string $externalId;

/**
* @var ?string $workspaceId The id of the workspace which the contact belongs to.
* @var string $workspaceId The id of the workspace which the contact belongs to.
*/
#[JsonProperty('workspace_id')]
private ?string $workspaceId;
private string $workspaceId;

/**
* @var ?string $role The role of the contact.
* @var string $role The role of the contact.
*/
#[JsonProperty('role')]
private ?string $role;
private string $role;

/**
* @var ?string $email The contact's email.
Expand Down Expand Up @@ -122,34 +122,34 @@ trait Contact
private ?int $ownerId;

/**
* @var ?bool $hasHardBounced Whether the contact has had an email sent to them hard bounce.
* @var bool $hasHardBounced Whether the contact has had an email sent to them hard bounce.
*/
#[JsonProperty('has_hard_bounced')]
private ?bool $hasHardBounced;
private bool $hasHardBounced;

/**
* @var ?bool $markedEmailAsSpam Whether the contact has marked an email sent to them as spam.
* @var bool $markedEmailAsSpam Whether the contact has marked an email sent to them as spam.
*/
#[JsonProperty('marked_email_as_spam')]
private ?bool $markedEmailAsSpam;
private bool $markedEmailAsSpam;

/**
* @var ?bool $unsubscribedFromEmails Whether the contact is unsubscribed from emails.
* @var bool $unsubscribedFromEmails Whether the contact is unsubscribed from emails.
*/
#[JsonProperty('unsubscribed_from_emails')]
private ?bool $unsubscribedFromEmails;
private bool $unsubscribedFromEmails;

/**
* @var ?int $createdAt (UNIX timestamp) The time when the contact was created.
* @var int $createdAt (UNIX timestamp) The time when the contact was created.
*/
#[JsonProperty('created_at')]
private ?int $createdAt;
private int $createdAt;

/**
* @var ?int $updatedAt (UNIX timestamp) The time when the contact was last updated.
* @var int $updatedAt (UNIX timestamp) The time when the contact was last updated.
*/
#[JsonProperty('updated_at')]
private ?int $updatedAt;
private int $updatedAt;

/**
* @var ?int $signedUpAt (UNIX timestamp) The time specified for when a contact signed up.
Expand Down Expand Up @@ -332,34 +332,34 @@ trait Contact
private ?ContactSocialProfiles $socialProfiles;

/**
* @return ?'contact'
* @return 'contact'
*/
public function getType(): ?string
public function getType(): string
{
return $this->type;
}

/**
* @param ?'contact' $value
* @param 'contact' $value
*/
public function setType(?string $value = null): self
public function setType(string $value): self
{
$this->type = $value;
return $this;
}

/**
* @return ?string
* @return string
*/
public function getId(): ?string
public function getId(): string
{
return $this->id;
}

/**
* @param ?string $value
* @param string $value
*/
public function setId(?string $value = null): self
public function setId(string $value): self
{
$this->id = $value;
return $this;
Expand All @@ -383,34 +383,34 @@ public function setExternalId(?string $value = null): self
}

/**
* @return ?string
* @return string
*/
public function getWorkspaceId(): ?string
public function getWorkspaceId(): string
{
return $this->workspaceId;
}

/**
* @param ?string $value
* @param string $value
*/
public function setWorkspaceId(?string $value = null): self
public function setWorkspaceId(string $value): self
{
$this->workspaceId = $value;
return $this;
}

/**
* @return ?string
* @return string
*/
public function getRole(): ?string
public function getRole(): string
{
return $this->role;
}

/**
* @param ?string $value
* @param string $value
*/
public function setRole(?string $value = null): self
public function setRole(string $value): self
{
$this->role = $value;
return $this;
Expand Down Expand Up @@ -502,85 +502,85 @@ public function setOwnerId(?int $value = null): self
}

/**
* @return ?bool
* @return bool
*/
public function getHasHardBounced(): ?bool
public function getHasHardBounced(): bool
{
return $this->hasHardBounced;
}

/**
* @param ?bool $value
* @param bool $value
*/
public function setHasHardBounced(?bool $value = null): self
public function setHasHardBounced(bool $value): self
{
$this->hasHardBounced = $value;
return $this;
}

/**
* @return ?bool
* @return bool
*/
public function getMarkedEmailAsSpam(): ?bool
public function getMarkedEmailAsSpam(): bool
{
return $this->markedEmailAsSpam;
}

/**
* @param ?bool $value
* @param bool $value
*/
public function setMarkedEmailAsSpam(?bool $value = null): self
public function setMarkedEmailAsSpam(bool $value): self
{
$this->markedEmailAsSpam = $value;
return $this;
}

/**
* @return ?bool
* @return bool
*/
public function getUnsubscribedFromEmails(): ?bool
public function getUnsubscribedFromEmails(): bool
{
return $this->unsubscribedFromEmails;
}

/**
* @param ?bool $value
* @param bool $value
*/
public function setUnsubscribedFromEmails(?bool $value = null): self
public function setUnsubscribedFromEmails(bool $value): self
{
$this->unsubscribedFromEmails = $value;
return $this;
}

/**
* @return ?int
* @return int
*/
public function getCreatedAt(): ?int
public function getCreatedAt(): int
{
return $this->createdAt;
}

/**
* @param ?int $value
* @param int $value
*/
public function setCreatedAt(?int $value = null): self
public function setCreatedAt(int $value): self
{
$this->createdAt = $value;
return $this;
}

/**
* @return ?int
* @return int
*/
public function getUpdatedAt(): ?int
public function getUpdatedAt(): int
{
return $this->updatedAt;
}

/**
* @param ?int $value
* @param int $value
*/
public function setUpdatedAt(?int $value = null): self
public function setUpdatedAt(int $value): self
{
$this->updatedAt = $value;
return $this;
Expand Down
Loading
Loading