Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#676)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
  • Loading branch information
rebilly-machine-user and rebilly-machine-user authored Mar 15, 2024
1 parent 5023da8 commit eafe237
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 31 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-paws-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

Extract multiple times duplicated data export recurring value object Rebilly/api-definitions#1828
8 changes: 4 additions & 4 deletions src/Model/AmlChecksDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/CustomersDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
4 changes: 2 additions & 2 deletions src/Model/DataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public function getFields(): ?array;
*/
public function setFields(null|array $fields): static;

public function getRecurring(): ?CustomersDataExportRecurring;
public function getRecurring(): ?DataExportRecurring;

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static;
public function setRecurring(null|DataExportRecurring|array $recurring): static;

public function getUserId(): ?string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use DateTimeInterface;
use JsonSerializable;

class CustomersDataExportRecurring implements JsonSerializable
class DataExportRecurring implements JsonSerializable
{
private array $fields = [];

Expand Down
8 changes: 4 additions & 4 deletions src/Model/InvoiceItemsDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/InvoicesDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/RevenueAuditDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/SubscriptionsDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/TransactionsDataExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ public function setFields(null|array $fields): static
return $this;
}

public function getRecurring(): ?CustomersDataExportRecurring
public function getRecurring(): ?DataExportRecurring
{
return $this->fields['recurring'] ?? null;
}

public function setRecurring(null|CustomersDataExportRecurring|array $recurring): static
public function setRecurring(null|DataExportRecurring|array $recurring): static
{
if ($recurring !== null && !($recurring instanceof CustomersDataExportRecurring)) {
$recurring = CustomersDataExportRecurring::from($recurring);
if ($recurring !== null && !($recurring instanceof DataExportRecurring)) {
$recurring = DataExportRecurring::from($recurring);
}

$this->fields['recurring'] = $recurring;
Expand Down

0 comments on commit eafe237

Please sign in to comment.