Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse
CommonInternalServiceSynchronizedOAuth2AuthorizedClientManagerinsteadThis event is now sent from Cart Services in response to the update to the cart's status. There is no need to have an additional HTTP request for this event.UseCommonInternalServiceSSLVerificationPropertiesinsteadsince 1.8.0, in favor ofCartOperationService.retrieveCartByStatus(String, String, String, ContextInfo)since 1.8.0, in favor ofDefaultCheckoutService.finalizeCart(CheckoutProcessDto, ContextInfo)since 1.7.7, in favor ofDefaultCheckoutService.lockAndRetrievePayments(CheckoutProcessDto, ContextInfo)since 1.8.0, in favor ofDefaultCheckoutService.validateCheckoutRequest(CheckoutProcessDto, ContextInfo)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)due to previous use of @Accessors(fluent = true). Use isShouldRejectLowerPrice() instead.due to previous use of @Accessors(fluent = true). Use setShouldRejectLowerPrice() instead.due to previous use of @Accessors(fluent = true). Use isUseRealTimeCartPricing() instead.due to previous use of @Accessors(fluent = true). Use setUseRealTimeCartPricing() instead.Rollback events are now emitted and handled asynchronously instead of synchronously through this method.since 1.8.0, in favor ofDefaultCartTransferService.makeCurrentDefaultCartNamed(String, String, ContextInfo)UseCartItemOfferUtils#calculateIgnoredOffersAfterRemoval(Cart, List). This implementation prevents the gift offer from ever being added again unless a new cart is created. The new implementation allows the offer to be considered again if all qualifying items are removed from the cart.in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)since Cart Operation Service 2.2.1, Release Train 2.2.1. Use#createFulfillmentGroupForItems(Collection, String, Optional, Cart, CartItem)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)This event is now sent from Cart Services in response to the update to the cart's status. There is no need to have an additional HTTP request for this event.since 2.1.0, in favor ofCartItemPricingUtils.determineMatchingPriceInfo(PriceContext, CartItem, Collection, String).since 2.1.0, in favor ofCartItemPricingUtils.determineMatchingPriceInfo(PriceContext, CartItem, Collection, String).since 1.7.2, adjustment prorations are now done in OfferServicessince 2.1.3 in favor ofCartPricingService.calculateTotals(Cart, boolean, ContextInfo)Use full constructor instead.DefaultCartPricingService.cartItemConfigurationServiceis now used.in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)since 1.7.2, adjustment prorations are now done in OfferServicessince 1.7.2, adjustment prorations are now done in OfferServicessince 1.7.2, adjustment prorations are now done in OfferServicesInstead of calculating the total taxes for fee items separately, calculate inDefaultTaxService.calculateFeeItemsTaxes(Cart, TaxProvider, ContextInfo)and process all thetax responsestogether.since 1.8.0, in favor ofCommonFulfillmentPricingService.applyFulfillmentPricing(Cart, ContextInfo)since 1.8.0, in favor ofFulfillmentPricingService.getOptions(Cart, String, ContextInfo)since 1.7.2, adjustment prorations are now done in OfferServicessince 1.8.0, in favor ofCartProvider.retrieveCsrOwnedCart(String, String, ContextInfo)since 1.8.0, in favor ofCartProvider.retrieveCartByStatus(String, String, String, ContextInfo)since 1.8.0, in favor ofCartProvider.retrieveInProcessCart(String, String, ContextInfo)This event will be sent directly from Cart Operation Services.Deprecated as of 1.8, if using OfferService 2.0, this method is not usedsince 1.8.0, in favor ofExternalShippingProvider.getRates(String, FulfillmentPricingRequest, ContextInfo)since 1.7.6, in favor ofPaymentProvider.claimTransactionsForRequest(ClaimCheckoutTransactionsRequest, ContextInfo)since 1.8.0, in favor ofShippingProvider.getFulfillmentRate(FulfillmentPricingRequest, ContextInfo)since 1.8.0, in favor ofShippingProvider.getFulfillmentRates(FulfillmentPricingRequest, ContextInfo)UseSecureRandomGuestTokenGeneratorinstead as it provides a cryptographically random alternative.since 1.7.2, in favor ofUpdatePaymentRequest.shouldSavePaymentForFutureUse()to support owning user types other than a customer (i.e. account).Deprecated in favor of central logging managed byExceptionHandlerUtils.Deprecated in favor of central logging managed byExceptionHandlerUtils.
-
Deprecated InterfacesInterfaceDescriptionin favor of
DefaultUserTypesThis producer is deprecated because it doesn't send durable messages. The new method was introducedCartProvider.sendRollbackEvent(com.broadleafcommerce.cartoperation.service.messaging.rollback.CheckoutRollbackEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo)to send the durable messages.Deprecated as of 1.8, if using OfferService 2.0, this class is not used
-
Deprecated ClassesClassDescriptionin favor of new APIs driven by explicit Cart IDs and not request stateUse
CommonOAuth2ClientCredentialsAccessTokenResponseClientinsteadPlease useSynchronizedDelegatingOAuth2AuthorizedClientManagerorInMemoryOAuth2AuthorizedClientService, which is used internally bySynchronizedDelegatingOAuth2AuthorizedClientManager.UseCommonInternalServiceSynchronizedOAuth2AuthorizedClientManagerinsteadUseCommonInternalServiceSSLVerificationPropertiesinsteadThis event is now sent from Cart Services in response to the update to the cart's status. There is no need to have an additional HTTP request for this event.Deprecated as of 1.8, if using OfferService 2.0, this class is not usedDeprecated as of 1.8, if using OfferService 2.0, this class is not usedUseSecureRandomGuestTokenGeneratorinstead as it provides a cryptographically random alternative.as we are moving away from using request state for cart resolutionseeManageCartEndpointfor the new operation endpointin favor ofCheckoutCartEndpointin favor ofCSRCartEndpoint
-
Deprecated Enum ClassesEnum ClassDescriptionin favor of
DefaultUserTypes
-
Deprecated Exceptions
-
Deprecated FieldsFieldDescriptionThis is stored as a list, and doesn't allow us to know when ignored offers should be removed. For instance, if a customer empties their cart and re-adds a qualifying item, the offer should be re-considered. This is now stored as a map using
CartAttributeConstants.Internal.OFFER_IDS_TO_IGNORE_MAP.
-
Deprecated MethodsMethodDescriptionsince 1.7.2, no longer usedThis event is now sent from Cart Services in response to the update to the cart's status. There is no need to have an additional HTTP request for this event.since 1.6, in favor of
CartOperationService.priceCart(Cart, PriceCartRequest, boolean, ContextInfo)since 1.6, in favor ofCartOperationService.priceCart(Cart, boolean, ContextInfo)since 1.8.0, in favor ofCartOperationService.retrieveCartByStatus(String, String, String, ContextInfo)since 1.7.3, in favor ofCartItemProductServiceProperties.isMatchCartItemAssetToVariant()since 1.7.3, in favor ofCartItemProductServiceProperties.isMatchCartItemAssetToVariant()in favor ofCartResolverService.resolveImplicitCart(CustomerRef, ContextInfo, boolean)insteaddue to poor naming and in favor ofDefaultCheckoutService.buildCartActionAuditForCheckout(Cart, String, String)since 1.8.0, in favor ofDefaultCheckoutService.finalizeCart(CheckoutProcessDto, ContextInfo)since 1.7.7, in favor ofDefaultCheckoutService.lockAndRetrievePayments(CheckoutProcessDto, ContextInfo)since 1.8.0, in favor ofDefaultCheckoutService.validateCheckoutRequest(CheckoutProcessDto, ContextInfo)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)Deprecated as of 1.8, if using OfferService 2.0, this method is not usedsince 1.6, useCartStalePricingValidationActivity.getCartOperationService()instead.due to previous use of @Accessors(fluent = true). Use isShouldRejectLowerPrice() instead.due to previous use of @Accessors(fluent = true). Use setShouldRejectLowerPrice() instead.due to previous use of @Accessors(fluent = true). Use isUseRealTimeCartPricing() instead.due to previous use of @Accessors(fluent = true). Use setUseRealTimeCartPricing() instead.Rollback events are now emitted and handled asynchronously instead of synchronously through this method.This implementation does not useDefaultCartItemConfigurationService.catalogProvidersince 1.8.0, in favor ofDefaultCartTransferService.makeCurrentDefaultCartNamed(String, String, ContextInfo)Deprecated as of 1.8, if using OfferService 2.0, this method is not usedDeprecated as of 1.8, if using OfferService 2.0, this method is not usedUseCartItemOfferUtils#calculateIgnoredOffersAfterRemoval(Cart, List). This implementation prevents the gift offer from ever being added again unless a new cart is created. The new implementation allows the offer to be considered again if all qualifying items are removed from the cart.Deprecated as of 1.8, if using OfferService 2.0, this method is not usedin favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)since Cart Operation Service 2.2.1, Release Train 2.2.1. Use#createFulfillmentGroupForItems(Collection, String, Optional, Cart, CartItem)the Cart version validation was moved intoCartOperationServicethe Cart version validation was moved intoCartOperationServicein favor ofDefaultGuestCartProtectionService.clearCustomerInformation(Cart, ContextInfo). This method should become protected, rather than public in the future.since 1.6, useDefaultItemListAddToCartService.getCartOpService()insteadin favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)In favor of the version that takes the onlySelectedOptions parameter: buildFulfillmentOptionRequest(Cart, FulfillmentPricingConfig, boolean onlySelectedOptions, ContextInfo)In favor of the version that takes the onlySelectedOptions parameter: createRequest(Cart, Collection, boolean onlySelectedOptions, FulfillmentPricingConfig, ContextInfo) In favor of the refreshOptionsAndSyncGroups that takes the onlySelectedOptions parameter: refreshOptionsAndSyncGroups(Cart, boolean onlySelectedOptions, FulfillmentPricingConfig, ContextInfo)in favor orGuestCartProtectionService.clearCustomerInformation(Cart, ContextInfo)which also archives/sanitizes the cart's related entities like payments to avoid PII exposure.UseDefaultInventoryAvailabilityService.getInventoryLocationReference(Cart, CartItem, String, ContextInfo), which includes additional parameters to support more complex behavior.since 1.8.1, no longer used as store credit balance validation is moved toCartPaymentMethodValidationActivitysince 1.7.6, in favor of existingDefaultPaymentTransactionExecutionService.transactionExecutionProvidersince 1.8.1, no longer used as store credit balance validation is moved toCartPaymentMethodValidationActivitysince 1.7.6, in favor of existingDefaultPaymentTransactionExecutionService.transactionExecutionProvidersince 1.7.2, in favor ofDefaultPaymentTransactionExecutionService.sortPayments(List, ContextInfo)since 2.1.0, in favor ofCartItemPricingUtils.determineMatchingPriceInfo(PriceContext, CartItem, Collection, String).since 2.1.0, in favor ofCartItemPricingUtils.determineMatchingPriceInfo(PriceContext, CartItem, Collection, String).This attribute has been marked for deprecation and will be removed in a future release. Clients needing this value for an application should store a more specific structure rather than this generic, internal pricing objectThis attribute has been marked for deprecation and will be removed in a future release. Clients needing this value for an application should store a more specific structure rather than this generic, internal pricing objectsince 1.7.2, adjustment prorations are now done in OfferServicessince 2.1.3 in favor ofCartPricingService.calculateTotals(Cart, boolean, ContextInfo)in favor ofCartItemConfigurationService#catalogItemRequestAlreadyExists(Set, String, String)since 1.7.2, adjustment prorations are now done in OfferServicessince 1.7.2, adjustment prorations are now done in OfferServicessince 1.7.2, adjustment prorations are now done in OfferServicesInstead of calculating the total taxes for fee items separately, calculate inDefaultTaxService.calculateFeeItemsTaxes(Cart, TaxProvider, ContextInfo)and process all thetax responsestogether.since 1.8.0, in favor ofCommonFulfillmentPricingService.applyFulfillmentPricing(Cart, ContextInfo)since 1.8.0, in favor ofFulfillmentPricingService.getOptions(Cart, String, ContextInfo)since 1.7.2, adjustment prorations are now done in OfferServicesThere is no reason to haveestimated andactual.Deprecated as of 1.8, if using OfferService 2.0, this method is not usedin favor of updating the entire cart withCartProvider.updateCart(Cart, ContextInfo)since 1.8.0, in favor ofCartProvider.retrieveCsrOwnedCart(String, String, ContextInfo)since 1.8.0, in favor ofCartProvider.retrieveCartByStatus(String, String, String, ContextInfo)since 1.8.0, in favor ofCartProvider.retrieveInProcessCart(String, String, ContextInfo)This event will be sent directly from Cart Operation Services.in favor of updating the entire cart withCartProvider.updateCart(Cart, ContextInfo)in favor ofTransactionExecutionDetail.nextActionin favor ofExternalInventoryProvider.getInventorySummaries(List, boolean, ContextInfo), which allows re-throwing exceptions. This implementation always returns an empty list in case of exceptions.Deprecated as of 1.8, if using OfferService 2.0, this method is not useduseExternalOfferProvider.populateOfferCodes(Cart)insteadin favor ofExternalOfferProvider.populateLineItemDto(CartItem)for simpler client extensionsince 1.8.0, in favor ofExternalShippingProvider.getRates(String, FulfillmentPricingRequest, ContextInfo)in favor ofExternalPaymentProperties.blockCustomerMutabilityForPaymentsUrifor more accurate namingin favor ofExternalPaymentProperties.blockCustomerMutabilityForPaymentsUrifor more accurate namingsince 1.7.6, in favor ofPaymentProvider.claimTransactionsForRequest(ClaimCheckoutTransactionsRequest, ContextInfo)since 1.8.0, in favor ofShippingProvider.getFulfillmentRate(FulfillmentPricingRequest, ContextInfo)since 1.8.0, in favor ofShippingProvider.getFulfillmentRates(FulfillmentPricingRequest, ContextInfo)In favor ofCartCookieProperties.discriminatedIdIncludedInCookieName. The new property is named generically and uses either application or customer context ID based on cart data. If discriminatorIdIncludedInCookieName is not set, the system will fall back to this deprecated property for backward compatibility. This may be removed in a future release.In favor ofCartCookieProperties.discriminatedIdIncludedInCookieName. The new property is named generically and uses either application or customer context ID based on cart data. If discriminatorIdIncludedInCookieName is not set, the system will fall back to this deprecated property for backward compatibility. This may be removed in a future release.com.broadleafcommerce.cartoperation.web.endpoint.CheckoutCartEndpoint.getFulfillmentPricingService()in favor of usingPriceCartRequestfor creating or pricing a cart.in favor of usingPriceCartRequestfor creating or pricing a cart.in favor of providing security codes viaCheckoutProcessRequest.sensitivePaymentMethodDatain favor of providing security codes viaCheckoutProcessRequest.sensitivePaymentMethodDatain favor ofPaymentTransactionFailureDetail.nextActionsince 1.7.2, in favor ofUpdatePaymentRequest.shouldSavePaymentForFutureUseto support owning user types other than a customer (i.e. account).since 1.7.2, in favor ofUpdatePaymentRequest.shouldSavePaymentForFutureUse()to support owning user types other than a customer (i.e. account).Deprecated in favor of central logging managed byExceptionHandlerUtils.Deprecated in favor of central logging managed byExceptionHandlerUtils.UseItemListItemOperationEndpoint.deleteItemListItemsInBulk(ContextInfo, CustomerRef, String, Set). This will allow much longer lists of IDs without worrying about whether the URL is too long and corrects the HTTP method semantics by using POST since we're not actually deleting a resource at the URL.UseItemListOperationEndpoint.deleteItemListsInBulk(ContextInfo, CustomerRef, Set). This will allow much longer lists of IDs without worrying about whether the URL is too long and corrects the HTTP method semantics by using POST since we're not actually deleting a resource at the URL.Deprecated as of 1.7.0-GA. UseManageCartEndpoint.getCart(String, String, CustomerRef, ContextInfo). ThecartVersionshould not be included as it is irrelevant for reads. It's only relevant for cart-modification requests.Since 1.6.1, in favor ofManageCartEndpoint.protectCartOperationForGuest(Function, Cart, String, ContextInfo)Since 1.6.1, in favor ofManageCartEndpoint.protectCartOperationForGuest(Function, Cart, String, ContextInfo)UseManageCartEndpoint.removeFromCartInBulk(String, boolean, Integer, String, CustomerRef, ContextInfo, Set). This will allow much longer lists of IDs without worrying about whether the URL is too long and corrects the HTTP method semantics by using POST since we're not actually deleting a resource at the URL.since 1.6, useCartCookieIssuer.buildCartResponseCookie(Cart, ContextInfo)useDefaultCartCookieIssuer.getDiscriminatedId(Cart)instead, which returns either the application ID or customer context ID depending on which value is present on the cart.
-
Deprecated ConstructorsConstructorDescriptionUse full constructor instead.
DefaultCartPricingService.cartItemConfigurationServiceis now used.
-
Deprecated Enum Constants
CommonOAuth2ClientCredentialsAccessTokenResponseClientinstead