EflClient
setProcessTypeForCompany
Sets the process type for a company for the given transaction.
setProcessTypeForCompany() configures the process type for a company in the context of a given transaction.
It wraps ProcessApiClient::setProcessTypeForCompany().
All methods on EflClient may throw:
ApiException– when the EFL API returns an error response.HttpException– when the HTTP transport fails.
Method signature
public function setProcessTypeForCompany(
string $transactionId,
string $bearerToken,
?string $nip = null,
?bool $basketCalculation = null
): void
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the transaction. |
bearerToken | string | Yes | Bearer token. |
nip | string|null | No | Optional tax identifier (NIP) for the company. |
basketCalculation | bool|null | No | Whether basket calculation is used. |
Return value
- Type:
void– use exceptions and logging to detect errors.