ccrz.ccLogicProductPricing.processAttributes
Queries attributes data processed by the ccrz.ccLogicProductPricing.processSelectedPLIs method.
Compatibility
This reference applies to:
Release | Managed Package Version | API Version |
---|---|---|
B2B Commerce for Visualforce Winter ’21 | 4.13 | 12 |
B2B Commerce for Visualforce Spring ’20 | 4.12 | 11 |
B2B Commerce for Visualforce Summer ’19 | 4.11 | 10 |
B2B Commerce for Visualforce Spring ’19 | 4.10 | 9 |
B2B Commerce for Visualforce Summer ’18 | 4.9 | 8 |
Signature
global virtual Map<String, Object> processAttributes(Map<String, Object>)
Inputs (Required)
This method accepts the working Map<String, Object> after the ccrz.ccLogicProductPricing.processSelectedPLIs method completes.
This method requires the following keys in the working map:
- attributesToQuery
- Map<String, List<Object>> that describes the parent and child attribute IDs to query. The ccrz.ccLogicProductPricing.gatherAttributesToQuery utility method, called from ccrz.ccLogicProductPricing.processSelectedPLIs, builds this map.
- ccrz.ccApiProduct.PARSE_ATTRIBUTE_PRICING
- Boolean
Value Usage true (default) Parse the attribute pricing JSON. This method executes only when this value is true. false Skip attribute pricing. - ccrz.ccApiProduct.PRODUCTPRICINGDATA
- Map<String, Object> of product pricing data.
Logic Performed
This method completes the following actions:
- Passes attributesToQuery as input for ccrz.ccApiAttribute.fetch.
- Parses the ccrz.ccApiPriceList.ATTRIBUTES output from ccrz.ccApiAttribute.fetch and applies the attribute pricing to ccrz.ccApiProduct.PRODUCTPRICINGDATA.
Outputs
This method returns the working Map<String, Object>, and sets the following key:
- ccrz.ccApiAttribute.IDS
- List<String> of Salesforce IDs of attributes that were evaluated.