EflClient
acceptCalculation
Accepts a previously calculated offer for the given transaction.
acceptCalculation() confirms a selected calculation and variant for a transaction.
It wraps CalculationApiClient::acceptCalculation().
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 acceptCalculation(
string $transactionId,
int $calculationId,
int $calculationVariantId,
?bool $basketCalculation,
string $bearerToken
): void
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
transactionId | string | Yes | Identifier of the transaction. |
calculationId | int | Yes | Identifier of the calculation to be accepted. |
calculationVariantId | int | Yes | Identifier of the calculation variant to be accepted. |
basketCalculation | bool|null | No | Whether basket calculation is used. |
bearerToken | string | Yes | Bearer token. |
Return value
- Type:
void– errors are reported via exceptions.