Skip to content

Commit

Permalink
Automated rebuild from definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshop Bot committed Sep 9, 2024
1 parent e97d704 commit 2db0273
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entity/DocumentApiEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 6 additions & 0 deletions src/FieldConfig/DocumentApiFieldConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2db0273

Please sign in to comment.