Low-level clients
ProductsApiClient
Low-level client for /Products endpoints used to fetch sector, class, type, brand and model information.
ProductsApiClient provides raw access to /Products endpoints.
All methods return HttpResponse and require a Bearer token.
Class definition
- Namespace:
Imoli\EflLeasingSdk\Api - Constructor: accepts
EflHttpClient $http.
It is used by EflClient to expose product-related operations in a typed way.
Methods
getSectorClassAndType
Low-level wrapper over GET /lon/api/v1/Products/GetSectorClassAndType.
public function getSectorClassAndType(
string $transactionId,
string $bearerToken
): HttpResponse
Auth: Bearer token.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the transaction. |
bearerToken | string | Yes | Bearer token. |
Return value
- Type:
HttpResponse– when used viaEflClient, the body is mapped toSectorProductInfoTree.
getBrandModelByProductTypeIdAndPartnerGuid
Low-level wrapper over GET /lon/api/v1/Products/GetBrandModelByProductTypeIdAndPartnerGuid.
public function getBrandModelByProductTypeIdAndPartnerGuid(
string $transactionId,
int $productTypeId,
string $bearerToken
): HttpResponse
Auth: Bearer token.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the transaction. |
productTypeId | int | Yes | Product type identifier (sent to the API as string). |
bearerToken | string | Yes | Bearer token. |
Return value
- Type:
HttpResponse– when used viaEflClient, the body is mapped toBrandProductInfoTree.