public interface ZoneDeliveryModeService extends DeliveryModeService
ZoneDeliveryModeModel. You may find more info about delivery modes here. The service
allows finding ZoneDeliveryModeModel by code. Service returns also specific delivery costs for specified
zone, currency and delivery mode.| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ZoneModel> |
getAllZones()
Gets all
ZoneModels. |
java.util.Collection<CurrencyModel> |
getCurrencies(ZoneModel zone,
ZoneDeliveryModeModel zoneDeliveryMode)
Gets all currencies for which values are defined in the zone and in the delivery mode.
|
ZoneDeliveryModeValueModel |
getDeliveryValue(ZoneModel zone,
CurrencyModel currency,
java.lang.Double min,
ZoneDeliveryModeModel zoneDeliveryMode)
Gets specific
ZoneDeliveryModeValueModel for the given zone, currency, minimum value, and zone delivery
mode. |
java.util.Map<java.lang.Double,java.lang.Double> |
getDeliveryValues(CurrencyModel currency,
ZoneModel zone,
ZoneDeliveryModeModel zoneDeliveryMode)
Gets all delivery cost values for the currency in the zone and with the specific delivery mode.
|
ZoneModel |
getZoneForCode(java.lang.String code)
Gets the
ZoneModel with the specified code. |
java.util.Collection<ZoneModel> |
getZonesForZoneDeliveryMode(ZoneDeliveryModeModel zoneDeliveryMode)
Gets all zones for which price values are defined in the delivery mode.
|
boolean |
isUsingPrice(ZoneDeliveryModeModel zoneDeliveryMode)
Checks whether the
ZoneDeliveryModeModel uses the order subtotal as calculation base. |
boolean |
isZoneAllowed(ZoneModel zone,
ZoneDeliveryModeModel zoneDeliveryMode)
Checks whether the zone is allowed to be used for adding new values to the delivery mode.
|
ZoneDeliveryModeValueModel |
setDeliveryCost(CurrencyModel currency,
java.lang.Double min,
java.lang.Double value,
ZoneModel zone,
ZoneDeliveryModeModel zoneDeliveryMode)
Sets the delivery cost for the given zone, currency, minimum value, and zone delivery mode.
|
void |
setUsingPrice(ZoneDeliveryModeModel zoneDeliveryMode)
Sets the special price property name for the
ZoneDeliveryModeModel conveniently. |
getAllDeliveryModes, getDeliveryModeForCode, getSupportedDeliveryModesZoneModel getZoneForCode(java.lang.String code)
ZoneModel with the specified code.code - the zone codeZoneModel with the specified codejava.util.Collection<ZoneModel> getAllZones()
ZoneModels.Collection of all ZoneModelsjava.util.Collection<ZoneModel> getZonesForZoneDeliveryMode(ZoneDeliveryModeModel zoneDeliveryMode)
zoneDeliveryMode - the zone delivery modeZoneModels for the delivery modejava.util.Collection<CurrencyModel> getCurrencies(ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode)
zone - the zonezoneDeliveryMode - the zone delivery modeCurrencyModelsboolean isZoneAllowed(ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode)
zone - the zone to be checkedzoneDeliveryMode - the zone delivery modejava.util.Map<java.lang.Double,java.lang.Double> getDeliveryValues(CurrencyModel currency, ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode)
currency - the currencyzone - the zonezoneDeliveryMode - the zone delivery modeZoneDeliveryModeValueModel getDeliveryValue(ZoneModel zone, CurrencyModel currency, java.lang.Double min, ZoneDeliveryModeModel zoneDeliveryMode)
ZoneDeliveryModeValueModel for the given zone, currency, minimum value, and zone delivery
mode.zone - the zonecurrency - the currencymin - the minimum valuezoneDeliveryMode - the zone delivery modeZoneDeliveryModeValueModelZoneDeliveryModeValueModel setDeliveryCost(CurrencyModel currency, java.lang.Double min, java.lang.Double value, ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode) throws DeliveryModeInterceptorException
ZoneDeliveryModeValueModel if no ZoneDeliveryModeValueModel can be found.currency - the currencymin - the minimum valuevalue - the delivery cost valuezone - the zonezoneDeliveryMode - the zone delivery modeZoneDeliveryModeValueModel with new delivery cost value or the created
ZoneDeliveryModeValueModelDeliveryModeInterceptorException - if there is ambiguous zone for the ZoneDeliveryModeModelvoid setUsingPrice(ZoneDeliveryModeModel zoneDeliveryMode)
ZoneDeliveryModeModel conveniently. If the property is set,
the ZoneDeliveryModeModel would use order's subtotal as calculation base.zoneDeliveryMode - the zone delivery modeboolean isUsingPrice(ZoneDeliveryModeModel zoneDeliveryMode)
ZoneDeliveryModeModel uses the order subtotal as calculation base.zoneDeliveryMode - the zone delivery modeCopyright © 2018 SAP SE. All Rights Reserved.