public interface OrderIntegrationMgrInterface
Modifier and Type | Method and Description |
---|---|
OrderIf |
afterCreateOrder(OrderIf order)
Called just before returning the order from the CreateOrder method.
|
void |
afterInsertSubscription(SubscriptionIf subscription)
Called after a Subscription object has been saved in the database.
|
void |
afterUpdateSubscription(SubscriptionIf subscription)
Called after a Subscription object has been updated in the database.
|
SubscriptionIf |
beforeInsertSubscription(SubscriptionIf subscription)
Called just before a subscription is inserted.
|
OrderIf |
beforeSaveOrder(OrderIf order)
Called just before an order has been saved.
|
SubscriptionIf |
beforeUpdateSubscription(SubscriptionIf subscription)
Called just before a subscription is updated.
|
void |
changeOrderStatus(int orderId,
int currentStatus,
int newStatus)
Called just after an order status change
|
java.lang.String |
createOrderNumber(OrderIf order)
This method allows you to introduce a proprietary algorithm for creating the order number for
an order just before the order is saved.
|
java.lang.String |
createTrackingNumber(OrderIf order)
This method allows you to generate a tracking number for an order just before the order is
saved.
|
void |
saveOrder(OrderIf order)
Called just after an order has been saved.
|
OrderIf afterCreateOrder(OrderIf order)
order
- the ordervoid saveOrder(OrderIf order)
order
- the orderOrderIf beforeSaveOrder(OrderIf order)
order
- the ordervoid changeOrderStatus(int orderId, int currentStatus, int newStatus)
orderId
- the orderIdcurrentStatus
- the currentStatusnewStatus
- the newStatusjava.lang.String createOrderNumber(OrderIf order) throws java.lang.Exception
saveOrder()
method.
The value returned by this method populates the orderNumber
attribute of the
order when it is saved.order
- the orderjava.lang.Exception
- an unexpected exceptionjava.lang.String createTrackingNumber(OrderIf order) throws java.lang.Exception
saveOrder()
method. The value returned by this method
populates the trackingNumber
attribute of the order when it is saved.order
- the orderjava.lang.Exception
- an unexpected exceptionSubscriptionIf beforeInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionvoid afterInsertSubscription(SubscriptionIf subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionSubscriptionIf beforeUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionvoid afterUpdateSubscription(SubscriptionIf subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.