ccrz.ccLogicCartPriceAsync.enqueuePlace
Calls the System.enqueueJob method for adding
the queueable ccLogicCartPriceEnqueuePlace class to the
asynchronous Apex job queue. To call a custom queueable class, override this method with custom
subscriber code. This method executes only during the recursive, asynchronous ccrz.ccApiCart.priceAsync method calls, and only when pricing
occurs as part of the ccrz.ccApiCart.placeAsync logic
chain.
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
Signature
global virtual Map<String, Object> enqueuePlace(Map<String, Object>)
Inputs (Required)
This method accepts the working Map<String, Object> after the ccrz.ccLogicCartPriceAsync.applyCoupons method completes.
This method requires the following key in the working map:
- ccrz.ccApiCart.CONTINUE_ASYNC_PLACE_AFTER_PRICING
- Boolean that must be true for this method to
execute.
Value Usage true This method is executing as part of the ccrz.ccApiCart.placeAsync method. When this method completes, it calls ccrz.ccApiCart.placeAsync recursively to continue the order placement process. false This method is executing outside of the ccrz.ccApiCart.placeAsync method.
Outputs
This method returns the working Map<String, Object>, and sets the following key:
- ccrz.ccApiCart.PLACE_ASYNC_JOB_ID
- ID of the AsyncApexJob that represents the asynchronous Apex job that the System.enqueueJob method returned.