Add vendor display name to vendor transformer

This commit is contained in:
David Bomba 2023-10-25 20:21:02 +11:00
parent 566c0695dc
commit 6313761003
3 changed files with 6502 additions and 6491 deletions

View File

@ -105,6 +105,7 @@ class VendorTransformer extends EntityTransformer
'number' => (string) $vendor->number ?: '',
'language_id' => (string) $vendor->language_id ?: '',
'classification' => (string) $vendor->classification ?: '',
'display_name' => (string) $vendor->present()->name(),
];
}
}

File diff suppressed because it is too large Load Diff

View File

@ -145,6 +145,11 @@
format: integer
example: '134341234234'
readOnly: true
display_name:
description: 'The display name of the vendor.'
type: string
example: 'Bob the vendor'
readOnly: true
settings:
$ref: '#/components/schemas/CompanySettings'
type: object