Added an TME data provider

This commit is contained in:
Jan Böhmer 2023-07-15 01:01:20 +02:00
parent 0cb46039dd
commit f9fdae9de9
7 changed files with 397 additions and 1 deletions

View file

@ -33,6 +33,7 @@ class PartDetailDTO extends SearchResultDTO
string $provider_id,
string $name,
string $description,
?string $category = null,
?string $manufacturer = null,
?string $mpn = null,
?string $preview_image_url = null,
@ -46,12 +47,15 @@ class PartDetailDTO extends SearchResultDTO
public readonly ?array $parameters = null,
/** @var PurchaseInfoDTO[]|null */
public readonly ?array $vendor_infos = null,
/** The mass of the product in grams */
public readonly ?float $mass = null,
) {
parent::__construct(
provider_key: $provider_key,
provider_id: $provider_id,
name: $name,
description: $description,
category: $category,
manufacturer: $manufacturer,
mpn: $mpn,
preview_image_url: $preview_image_url,