ccrz.ccLogicCartPlace.processSubscriptions

Creates ccrz__E_Subscription__c records for any ccrz__E_SubProdTerm__c records associated with the order.

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> processSubscriptions(Map<String, Object>)

Inputs (Required)

This method accepts the working Map<String, Object> after the ccrz.ccLogicCartPlace.createStoredPayments method completes.

This method requires the following keys in the working map:

ccrz.ccApiCart.TRANSPAYMENTDATA
JSON-formatted string that describes payment information returned in the ccrz.cc_hk_Payment.createStoredPayment extension point method's ccrz.cc_hk_Payment.PARAM_TRANSACTION_PROCESSED_DATA output.
ccrz.ccLogicCartPlace.ORDER_HEADER
ccrz__E_Order__c record that represents the order to create.
'hasSubProdTerm'
Boolean
Value Usage
true The source ccrz__E_Cart__c included a ccrz__E_CartItem__c with an associated ccrz__E_SubProdTerm__c record.
false The source ccrz__E_Cart__c didn't have subscription data. This method exits without evaluating subscriptions.

Logic Performed

This method completes the following actions:

  1. Evaluates the 'hasSubProdTerm' input.
  2. Calls the ccrz.cc_hk_Subscriptions.onOrder extension point method for creating the order's ccrz__E_Subscription__c records.

Outputs

This method returns the working Map<String, Object>, and sets the following keys:

ccrz.ccLogicCartPlace.SUB_RESULT
Map<String, Object> that the ccrz.cc_hk_Subscriptions.onOrder method returned.