From eafe2376347526b574af6cecb287a2a815629f32 Mon Sep 17 00:00:00 2001 From: Rebilly Machine User Date: Fri, 15 Mar 2024 19:22:55 +0200 Subject: [PATCH] chore: update SDK from api-definitions (#676) Co-authored-by: rebilly-machine-user --- .changeset/lazy-paws-rhyme.md | 5 +++++ src/Model/AmlChecksDataExport.php | 8 ++++---- src/Model/CustomersDataExport.php | 8 ++++---- src/Model/DataExport.php | 4 ++-- ...ersDataExportRecurring.php => DataExportRecurring.php} | 2 +- src/Model/InvoiceItemsDataExport.php | 8 ++++---- src/Model/InvoicesDataExport.php | 8 ++++---- src/Model/RevenueAuditDataExport.php | 8 ++++---- src/Model/SubscriptionsDataExport.php | 8 ++++---- src/Model/TransactionsDataExport.php | 8 ++++---- 10 files changed, 36 insertions(+), 31 deletions(-) create mode 100644 .changeset/lazy-paws-rhyme.md rename src/Model/{CustomersDataExportRecurring.php => DataExportRecurring.php} (96%) diff --git a/.changeset/lazy-paws-rhyme.md b/.changeset/lazy-paws-rhyme.md new file mode 100644 index 000000000..73cec4d92 --- /dev/null +++ b/.changeset/lazy-paws-rhyme.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +Extract multiple times duplicated data export recurring value object Rebilly/api-definitions#1828 diff --git a/src/Model/AmlChecksDataExport.php b/src/Model/AmlChecksDataExport.php index e331d2d3d..abc4e9ad8 100644 --- a/src/Model/AmlChecksDataExport.php +++ b/src/Model/AmlChecksDataExport.php @@ -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; diff --git a/src/Model/CustomersDataExport.php b/src/Model/CustomersDataExport.php index 6e1221639..576ea6a8d 100644 --- a/src/Model/CustomersDataExport.php +++ b/src/Model/CustomersDataExport.php @@ -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; diff --git a/src/Model/DataExport.php b/src/Model/DataExport.php index b719db731..6ca0f4990 100644 --- a/src/Model/DataExport.php +++ b/src/Model/DataExport.php @@ -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; diff --git a/src/Model/CustomersDataExportRecurring.php b/src/Model/DataExportRecurring.php similarity index 96% rename from src/Model/CustomersDataExportRecurring.php rename to src/Model/DataExportRecurring.php index 26ba88de9..7b1cbbf7a 100644 --- a/src/Model/CustomersDataExportRecurring.php +++ b/src/Model/DataExportRecurring.php @@ -17,7 +17,7 @@ use DateTimeInterface; use JsonSerializable; -class CustomersDataExportRecurring implements JsonSerializable +class DataExportRecurring implements JsonSerializable { private array $fields = []; diff --git a/src/Model/InvoiceItemsDataExport.php b/src/Model/InvoiceItemsDataExport.php index c9f490b09..4ddff197b 100644 --- a/src/Model/InvoiceItemsDataExport.php +++ b/src/Model/InvoiceItemsDataExport.php @@ -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; diff --git a/src/Model/InvoicesDataExport.php b/src/Model/InvoicesDataExport.php index 7850a09a2..3e252d3c7 100644 --- a/src/Model/InvoicesDataExport.php +++ b/src/Model/InvoicesDataExport.php @@ -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; diff --git a/src/Model/RevenueAuditDataExport.php b/src/Model/RevenueAuditDataExport.php index e66c834dd..c4dc81466 100644 --- a/src/Model/RevenueAuditDataExport.php +++ b/src/Model/RevenueAuditDataExport.php @@ -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; diff --git a/src/Model/SubscriptionsDataExport.php b/src/Model/SubscriptionsDataExport.php index 05776dbe3..052d656bf 100644 --- a/src/Model/SubscriptionsDataExport.php +++ b/src/Model/SubscriptionsDataExport.php @@ -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; diff --git a/src/Model/TransactionsDataExport.php b/src/Model/TransactionsDataExport.php index eb052a5fd..885b8ffbb 100644 --- a/src/Model/TransactionsDataExport.php +++ b/src/Model/TransactionsDataExport.php @@ -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;