Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update SDK from api-definitions #662

Merged
merged 2 commits into from
Nov 28, 2023
Merged
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
2 changes: 2 additions & 0 deletions .changeset/lemon-dogs-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
25 changes: 15 additions & 10 deletions src/Model/AML.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand Down Expand Up @@ -446,4 +436,19 @@ private function setComments(null|string $comments): static

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/AlternativePaymentToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,16 +465,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function getPaymentInstrument(): KlarnaTokenPaymentInstrument
{
return $this->fields['paymentInstrument'];
Expand Down Expand Up @@ -584,4 +574,19 @@ private function setExpirationTime(null|DateTimeImmutable|string $expirationTime

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
30 changes: 15 additions & 15 deletions src/Model/AmlCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,21 +265,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand Down Expand Up @@ -375,4 +360,19 @@ private function setTags(null|array $tags): static

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/ApiKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand Down Expand Up @@ -256,4 +246,19 @@ private function setUpdatedTime(null|DateTimeImmutable|string $updatedTime): sta

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/ApiTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function getEmbedded(): ?ApiTrackingEmbedded
{
return $this->fields['_embedded'] ?? null;
Expand Down Expand Up @@ -405,4 +395,19 @@ private function setUpdatedTime(null|DateTimeImmutable|string $updatedTime): sta

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/ApplicationInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand Down Expand Up @@ -172,4 +162,19 @@ private function setUpdatedTime(null|DateTimeImmutable|string $updatedTime): sta

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/ArrayCustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [
Expand Down Expand Up @@ -123,4 +113,19 @@ private function setName(null|string $name): static

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/AuthenticationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
Expand All @@ -148,4 +138,19 @@ public function jsonSerialize(): array

return $data;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
5 changes: 0 additions & 5 deletions src/Model/AuthenticationToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@ public function setExpiredTime(null|DateTimeImmutable|string $expiredTime): stat
* @return null|ResourceLink[]
*/
public function getLinks(): ?array;

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static;
}
25 changes: 15 additions & 10 deletions src/Model/AuthenticationTokenPasswordMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function jsonSerialize(): array
{
$data = [
Expand Down Expand Up @@ -197,4 +187,19 @@ private function setToken(null|string $token): static

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
25 changes: 15 additions & 10 deletions src/Model/AuthenticationTokenPasswordlessMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ public function getLinks(): ?array
return $this->fields['_links'] ?? null;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
public function setLinks(null|array $links): static
{
$this->fields['_links'] = $links;

return $this;
}

public function getPassword(): string
{
return $this->fields['password'];
Expand Down Expand Up @@ -197,4 +187,19 @@ private function setToken(null|string $token): static

return $this;
}

/**
* @param null|array[]|ResourceLink[] $links
*/
private function setLinks(null|array $links): static
{
$links = $links !== null ? array_map(
fn ($value) => $value instanceof ResourceLink ? $value : ResourceLink::from($value),
$links,
) : null;

$this->fields['_links'] = $links;

return $this;
}
}
Loading