Class ByProjectKeyShippingMethodsMatchingCartLocationGet

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartLocationGet>, ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartLocationGet>, ExpandableTrait<ByProjectKeyShippingMethodsMatchingCartLocationGet>, ClientRequestCommand<ShippingMethodPagedQueryResponse>, CreateHttpRequestCommand, HttpRequestCommand<ShippingMethodPagedQueryResponse>, RequestCommand<ShippingMethodPagedQueryResponse>

Retrieves all the ShippingMethods that can ship to the given Location with a predicate that matches the given Cart. Each ShippingMethod contains exactly one ShippingRate with the flag isMatching set to true. This ShippingRate is used when the ShippingMethod is added to the Cart.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.shipping_method.ShippingMethodPagedQueryResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .shippingMethods()
            .matchingCartLocation()
            .get()
            .withCountry(country)
            .withCartId(cartId)
            .execute()