From 2db027319aaeb713f24abf41c460743335308254 Mon Sep 17 00:00:00 2001 From: Eshop Bot Date: Mon, 9 Sep 2024 14:43:13 +0000 Subject: [PATCH] Automated rebuild from definitions --- src/Entity/DocumentApiEntity.php | 4 ++++ src/FieldConfig/DocumentApiFieldConfig.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/Entity/DocumentApiEntity.php b/src/Entity/DocumentApiEntity.php index ea1d314..6280c26 100644 --- a/src/Entity/DocumentApiEntity.php +++ b/src/Entity/DocumentApiEntity.php @@ -64,6 +64,10 @@ public function getCustomerAddress(): ?ContactApiEntity { return $this->returnField('customer_address', ContactApiEntity::class); } + public function getIssuedBy(): ?AdminApiEntity { + return $this->returnField('issued_by', AdminApiEntity::class); + } + public function getSupplier(): ?SupplierApiEntity { return $this->returnField('supplier', SupplierApiEntity::class); } diff --git a/src/FieldConfig/DocumentApiFieldConfig.php b/src/FieldConfig/DocumentApiFieldConfig.php index 504d2fb..a9190d0 100644 --- a/src/FieldConfig/DocumentApiFieldConfig.php +++ b/src/FieldConfig/DocumentApiFieldConfig.php @@ -84,6 +84,12 @@ public function withCustomerAddress(ContactApiFieldConfig $config): self { return $this; } + public function withIssuedBy(AdminApiFieldConfig $config): self { + $this->fields['issued_by'] = $config; + + return $this; + } + public function withSupplier(SupplierApiFieldConfig $config): self { $this->fields['supplier'] = $config;