Class TmaBillingAddressResourceStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaBillingAddressResourceStrategy
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaBillingAddressResourceStrategy
extends Object
implements TmaAbstractOrderResourceStrategy
Billing address resource strategy responsible for updating billing address for cart.
- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionTmaBillingAddressResourceStrategy(TmaPlaceValidator placeValidator, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaPlaceValidatorvoidupdateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) Updates the resource from the @CommerceCartParameteron the given order entry.validateResource(CommerceCartParameter parameter) Validates that the resources from theCommerceCartParameterare valid to be stored on cart.
-
Constructor Details
-
TmaBillingAddressResourceStrategy
public TmaBillingAddressResourceStrategy(TmaPlaceValidator placeValidator, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
validateResource
Description copied from interface:TmaAbstractOrderResourceStrategyValidates that the resources from theCommerceCartParameterare valid to be stored on cart.- Specified by:
validateResourcein interfaceTmaAbstractOrderResourceStrategy- Parameters:
parameter- the commerce cart parameter storing information to be stored on cart- Returns:
TmaCartValidationResult
-
updateResource
public void updateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) Description copied from interface:TmaAbstractOrderResourceStrategyUpdates the resource from the @CommerceCartParameteron the given order entry.- Specified by:
updateResourcein interfaceTmaAbstractOrderResourceStrategy- Parameters:
commerceCartParameter- contains attributes used for cart entry updatescommerceCartModification- contains the updates made on the cart
-
getPlaceValidator
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-