public class ServiceProviderProcessRecurringOrderCmdImpl extends TaskCommandImpl implements ProcessRecurringOrderCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
ServiceProviderProcessRecurringOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | activateDirectly()
Checks whether to activate recurring order directly.
|
protected void | callSubscriptionManager()
This method calls Subscription Manager to create the recurring order in it.
|
protected java.util.Map | generateSubscriptionManagerParameter()
This method generate subscription manager parameter for recurring order.
The following sample code demonstrates how to extend the API: |
void | performExecute()
This method performs the main business logic of the command.
|
protected void | reverseInventory(java.lang.String orderId)
This method reserver inventory for recurring order
|
protected void | updateOrder(java.lang.String orderId)
Update order as recurring order
|
protected void | validateRecurring(java.lang.String orderId)
validate each order item in recurring order.
|
public static final java.lang.String COPYRIGHT
public ServiceProviderProcessRecurringOrderCmdImpl()
public void performExecute() throws ECException
protected void reverseInventory(java.lang.String orderId) throws ECException
protected void validateRecurring(java.lang.String orderId) throws ECException
protected void updateOrder(java.lang.String orderId) throws ECSystemException
protected java.util.Map generateSubscriptionManagerParameter() throws ECException
Map parameter = super.generateSubscriptionManagerParameter(); parameter.put("key", "value"); return parameter;Subscription manager parameter is a Map and it contains below element.
orderId: The order ID to be submitted. totalCost: total cost of the order item. currency: The order item's currency. If order item's currency can't be retrieved, use order's currency. fulfillmentSchedule: Map of recurring order fulfillment schedule The map contains the following keys: ffmFrequency, fulfillmentFrequencyUOM, timePeriod, timePeriodUOM, startDate, endDate, numOfFulfillments,
ffmFrequency: fulfillment frequency of recurring order fulfillmentFrequencyUOM: fulfillment frequency unit of measure timePeriod: time period of recurring order timePeriofUOM: time period unit of measure startDate: start date of recurring order endDate: end date of recurring order numOfFulfillments: number of fulfillments
paymentSchedule: Map of recurring order payment schedule The map contains the following keys: paymentFrequency, paymentFrequencyUOM,
paymentFrequency: payment frequency of recurring order paymentFrequencyUOM: payment frequency unit of measure
state: the state of recurring order
protected void callSubscriptionManager() throws ECException
protected boolean activateDirectly()