CalculationResult
CalculationResult class for calculation of delivery cost results.
Class constants (types of delivery periods)
Constant | Description |
---|---|
PERIOD_TYPE_MIN | Minutes. |
PERIOD_TYPE_HOUR | Hours. |
PERIOD_TYPE_DAY | Days. |
PERIOD_TYPE_MONTH | Months. |
Class methods
Method | Description | Available from version | |
---|---|---|---|
getDeliveryPrice | Returns delivery cost. | ||
getDescription | Returns clarifications for calculations, specifics, additional information. | ||
getExtraServicesPrice | Returns prices for additional delivery services. | ||
getPacksCount | Returns number of boxes/packages, necessary for cargo delivery. | ||
getPeriodDescription | Returns description for delivery period. | ||
getPeriodFrom | Returns minimally possible delivery period. | ||
getPeriodTo | Returns maximally possible delivery period. | ||
getPeriodType | Returns type of delivery period. | ||
getPrice | Returns delivery price with additional services included. | ||
getTmpData | Returns temporary information. | ||
isNextStep | Returns attribute for calculation performed in several steps. | ||
setAsNextStep | Sets attribute for delivery calculation performed in several steps. | ||
setDeliveryPrice | Sets delivery price. | ||
setDescription | Sets calculations clarification, specifics, additional information. | ||
setExtraServicesPrice | Sets price for additional delivery services. | ||
setPacksCount | Sets number of boxes/packages, required for cargo delivery. | ||
setPeriodDescription | Sets description for delivery period. | ||
setPeriodFrom | Sets minimally possible delivery period. | ||
setPeriodTo | Sets maximally possible delivery period. | ||
setPeriodType | Sets type of delivery period. | ||
setTmpData | Sets temporary information. |
© «Bitrix24», 2001-2024