Interface CartAddCustomShippingMethodAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>
All Known Implementing Classes:
CartAddCustomShippingMethodActionImpl

To add a custom Shipping Method (independent of the ShippingMethods managed through the Shipping Methods API) to the Cart, it must have the Multiple ShippingMode.


Example to create an instance using the builder pattern

     CartAddCustomShippingMethodAction cartAddCustomShippingMethodAction = CartAddCustomShippingMethodAction.builder()
             .shippingKey("{shippingKey}")
             .shippingMethodName("{shippingMethodName}")
             .shippingAddress(shippingAddressBuilder -> shippingAddressBuilder)
             .shippingRate(shippingRateBuilder -> shippingRateBuilder)
             .build()