Documentation

CalculationResult

CalculationResult class for calculation of delivery cost results.

Class constants (types of delivery periods)

ConstantDescription
PERIOD_TYPE_MINMinutes.
PERIOD_TYPE_HOURHours.
PERIOD_TYPE_DAYDays.
PERIOD_TYPE_MONTHMonths.

Class methods

MethodDescription Available from version
getDeliveryPriceReturns delivery cost.
getDescriptionReturns clarifications for calculations, specifics, additional information.
getExtraServicesPriceReturns prices for additional delivery services.
getPacksCountReturns number of boxes/packages, necessary for cargo delivery.
getPeriodDescriptionReturns description for delivery period.
getPeriodFromReturns minimally possible delivery period.
getPeriodToReturns maximally possible delivery period.
getPeriodTypeReturns type of delivery period.
getPriceReturns delivery price with additional services included.
getTmpDataReturns temporary information.
isNextStepReturns attribute for calculation performed in several steps.
setAsNextStepSets attribute for delivery calculation performed in several steps.
setDeliveryPriceSets delivery price.
setDescriptionSets calculations clarification, specifics, additional information.
setExtraServicesPriceSets price for additional delivery services.
setPacksCountSets number of boxes/packages, required for cargo delivery.
setPeriodDescriptionSets description for delivery period.
setPeriodFromSets minimally possible delivery period.
setPeriodToSets maximally possible delivery period.
setPeriodTypeSets type of delivery period.
setTmpDataSets temporary information.


© «Bitrix24», 2001-2022
Up