ccrz.ccLogicCouponApply.performDML
Executes the DML upsert operation on cart items
and update operation on the cart after the coupon's
discount is applied.
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 |
Signature
global virtual Map<String, Object> performDML(Map<String, Object>)
Inputs (Required)
This method accepts the working Map<String, Object> from the ccrz.ccLogicCouponApply.applyCoupons method.
This method requires the following keys in the working map:
- ccrz.ccApiCoupon.CART_HEADER
- ccrz__E_Cart__c record to update.
- ccrz.ccApiCoupon.CART_ITEMS
- List<ccrz__E_CartItem__c> of the cart items to upsert.
Outputs
This method returns the working Map<String, Object>, and doesn't add or remove any keys.