Modifier and Type | Class and Description |
---|---|
class |
DeliveryDetailsPanel<O extends Order>
Panel to display
DeliveryDetails |
class |
OrderDetailsPanel<O extends Order<I>,I extends OrderItem>
Panel to display
Order Details
The Panel relies on the following predefined bean services: ecomOrderService as OrderService
productService as ProductService
mailerService as MailerService
(Optional) invoiceService as InvoiceService
(Optional) invoiceEmailSettings as EmailMessage
The Panel relies on the following defined beans for various parts:
orderDetailsTemplate - defines core order fields as EntityTemplate
orderItemReporter - Report for List of OrderItem s in this Order as Reporter . |
class |
OrderDetailsTemplatePanel<O extends Order>
The dynamic parts of the Order Details template Panel are delegated to this
|
Modifier and Type | Method and Description |
---|---|
protected void |
OrderDetailsPanel.populateExtraButtonItem(org.apache.wicket.markup.html.WebMarkupContainer container,
org.apache.wicket.model.IModel<Order> model,
org.apache.wicket.markup.html.list.ListItem<FacetMeta> item)
Define Extra Buttons if needed by defining List of
FacetMeta is Spring bean orderExtraActions |
Constructor and Description |
---|
OrderDetailsPanel(String id,
org.apache.wicket.model.IModel<Order> model) |
Modifier and Type | Class and Description |
---|---|
class |
OrderURLGeneratorTransformer<O extends Order>
A
Transformer that accepts Order and produces a Payment Link for it.This class does not validate if the link will result in a success if the user clicks it, that depends on App logic like the State of the Order etc thats usually present in an OrderChangeListener or ChangeListener hooked to ChangeGenerator.setListeners(java.util.List)
Note: A more secure version using a SALT can override this Class. |
Modifier and Type | Interface and Description |
---|---|
interface |
OrderDao<O extends Order> |
class |
OrderDaoImpl<O extends Order>
Order related DAO
Order queries can be complex; for most practical purposes the DAO will never fully suffice and hence not interface is provided. Just a basic service provider with access to the EntityManager |
Modifier and Type | Class and Description |
---|---|
class |
RelatedOrder<O extends Order<I>,I extends OrderItem>
Multi Order flow, with related
Order s. |
class |
SubOrder<O extends Order<I>,I extends OrderItem>
Special case of a
RelatedOrder that tracks its own SubOrder.partialAmount and SubOrder.previous and SubOrder.next .A SubOrder shares the same OrderItem of its RelatedOrder.getRoot() by overriding SubOrder.getItems() . |
class |
Transaction<O extends Order>
Represents an Online Transaction done via a Gateway or mediator; with a possible Issuer source.
|
Modifier and Type | Class and Description |
---|---|
class |
ConvertedCurrencyOrder<I extends OrderItem>
|
class |
RelatedOrder<O extends Order<I>,I extends OrderItem>
Multi Order flow, with related
Order s. |
class |
SubOrder<O extends Order<I>,I extends OrderItem>
Special case of a
RelatedOrder that tracks its own SubOrder.partialAmount and SubOrder.previous and SubOrder.next .A SubOrder shares the same OrderItem of its RelatedOrder.getRoot() by overriding SubOrder.getItems() . |
Modifier and Type | Field and Description |
---|---|
protected O |
RelatedOrder.root
|
Modifier and Type | Method and Description |
---|---|
Order |
OrderItem.getOrder() |
Order |
DeliveryDetails.getOrder() |
Modifier and Type | Method and Description |
---|---|
void |
OrderItem.setOrder(Order order) |
void |
DeliveryDetails.setOrder(Order order) |
Constructor and Description |
---|
DeliveryDetails(Order order) |
Order(Order order) |
OrderItem(Order order,
P product,
Amount amount,
Double quantity) |
OrderItem(Order order,
P product,
Double amount,
Double quantity) |
Modifier and Type | Class and Description |
---|---|
class |
InvoiceChangeListener<O extends Order,INVOICE>
Listen to events related to Invoice generation.
|
Modifier and Type | Method and Description |
---|---|
Order |
OrderPlacementException.getOrder()
|
Constructor and Description |
---|
OrderPlacementException(Order order) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractOnlineTransactionRequestHandler<T extends Transaction,O extends Order>
Implements some basic common
TransactionService aspects |
class |
DefaultOrderService<O extends Order<I>,I extends OrderItem>
Default
Order service
SENSITIVE SERVICE. |
class |
DefaultTransactionService<T extends Transaction<O>,O extends Order>
Default implementation for
TransactionService
Since this implements ChangeGenerator ; it will also generate Events of Typesave - Transaction
|
interface |
InvoiceService<O extends Order<I>,I extends OrderItem,INVOICE>
Generate Invoices from
Order s |
interface |
OrderService<O extends Order<? extends I>,I extends OrderItem>
Handle all requests related or
Order management
This class will also generate Events (See implementation for specifics) |
interface |
RelatedOrderService<O extends Order<I>,I extends OrderItem>
Additional Services for
RelatedOrder |
class |
SpringTemplateInvoiceService<O extends Order<I>,I extends OrderItem,INVOICE>
A
TemplateInvoiceService for Spring Beans
The stateful Publisher is derived from the Spring Context. |
class |
TemplateInvoiceService<O extends Order<I>,I extends OrderItem,INVOICE>
Using a
Publisher publish an Invoice Format (Default @ HTML); where the Order is provided to the context with order + TemplateInvoiceService.processContext(Order, Map) :
The order passed is expected to contain all the necessary details ready for Publishing/Printing to the invoice. |
interface |
TransactionRequestHandler<T extends Transaction,O extends Order>
A Service that will realize a
Transaction from an Order and also persist the Transaction
The service to implement this often will have to rely on Third party API depending on the Gateway needs and requirements. |
interface |
TransactionService<T extends Transaction<O>,O extends Order>
|
Modifier and Type | Method and Description |
---|---|
List<O> |
DefaultSubOrderService.deriveSequence(Order o)
Get the sequence of Orders; with Root always as first element.
|
List<O> |
SubOrderService.deriveSequence(Order o)
Get the sequence of Orders; with Root always as first element.
|
protected String |
AbstractOnlineTransactionRequestHandler.getTransactionId(Order order)
Used to derive Transaction Id
TODO: Add unit test case
|
boolean |
DefaultSubOrderService.hasAnyDirectRelatedOrders(Order order)
By default check if its
SubOrder type and either has a root or has a SubOrder.getPartialAmount() specified (0 included). |
boolean |
SubOrderService.hasAnyDirectRelatedOrders(Order order)
A light methods to check if the Order related to any SubOrder(s).
Basically check if the Order exits by itself or has SubOrder relations with it. |
Modifier and Type | Class and Description |
---|---|
class |
OrderQueryService<T extends Order<I>,I extends OrderItem>
Web Service Layer to Query
Order Database |
Modifier and Type | Method and Description |
---|---|
Order |
OrderQueryService.load(Long id) |
Modifier and Type | Method and Description |
---|---|
List<Order> |
OrderQueryService.query(Query<Order> query) |
Modifier and Type | Method and Description |
---|---|
Long |
OrderQueryService.count(Query<Order> query) |
List<Order> |
OrderQueryService.query(Query<Order> query) |
Modifier and Type | Class and Description |
---|---|
class |
OrderListWriter<T extends Order<I>,I extends OrderItem>
Deprecated.
User
EntityJSONCollectionWriter directly |
class |
OrderToJson<T extends Order<I>,I extends OrderItem>
Handle special parts of Product that need to be marshalled to String + remove/filter any unwanted attributes
Convert Product to JSON & also specially handle the size attribute and marshal it to
|
class |
OrderWriter<T extends Order<I>,I extends OrderItem>
Deprecated.
User
EntityJSONWriter directly |
Modifier and Type | Class and Description |
---|---|
class |
ExceptionalOrderConversation<T extends Order<I>,I extends OrderItem>
An exceptional proxy/proposed/potential order that is based on an orignial order (the instance itself as it extends
Order ) that initiates the conversation. |
interface |
OrderProcessStrategy<O extends Order<I>,I extends OrderItem>
A hook to process and Order before, the actual process, post-order.
|
interface |
PostOrderProcessStrategy<T extends Order<I>,I extends OrderItem>
A hook thats executed after saving/updating the
Order
Could be a new or existing Order. |
interface |
PreOrderProcessStrategy<T extends Order<I>,I extends OrderItem>
A hook thats executed before saving/updating the
Order . |
Modifier and Type | Class and Description |
---|---|
class |
ExceptionalOrderConversation<T extends Order<I>,I extends OrderItem>
An exceptional proxy/proposed/potential order that is based on an orignial order (the instance itself as it extends
Order ) that initiates the conversation. |
Modifier and Type | Class and Description |
---|---|
class |
OrderProcessHelper<O extends Order<?>>
Some common Oreder processing activities and methods that are provided as Helpers
in the context of Wicket Components / View Layer
Also ensure to check if the helper being called has any message resource needs from the container calling it. |
Modifier and Type | Interface and Description |
---|---|
interface |
COD<O extends Order<I>,I extends OrderItem>
Service for Cash On Delivery -
PaymentMethod.COD |
class |
DefaultCODImpl<O extends Order<I>,I extends OrderItem>
A service point to execute COD transactions
|
interface |
OnlinePayment<T extends Transaction,O extends Order>
Online payments
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultOrderStrategy<P extends Product,U extends IGenericEcomUser,O extends Order<I>,I extends OrderItem>
Allow amalgamation of other strategies to a List of Products that constitute an Order
and produce a Persistent Order
|
class |
DefaultPaymentOptionsStrategy<O extends Order>
Default impl for
PaymentOptionsStrategy ; by default only online payment is available |
interface |
OrderStrategy<P extends Product,U extends IGenericEcomUser,O extends Order<? extends I>,I extends OrderItem>
Strategy for Order |
interface |
PaymentOptionsStrategy<O extends Order>
What are the possible payment options for an
Order |
Modifier and Type | Method and Description |
---|---|
<O extends Order> |
CurrencyStrategy.convert(O order,
String toCurrency)
Convert an
Order from one currency to another. |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPromotionStrategy.commitPromotionsForOrder(Order order)
Update Promotions persisted state; to track count, usage of promotion etc.
|
void |
PromotionStrategy.commitPromotionsForOrder(Order order)
Update Promotions persisted state; to track count, usage of promotion etc.
|
Modifier and Type | Method and Description |
---|---|
static String |
Utils.deriveUserContacts(Order order,
String defaultFieldToReturn,
Map dataMap)
Utility to derive contact details from an
Order |
static Address |
Utils.getAddress(Order order,
String type)
Convenience helper to extract the Address from an Order.
|
static Map<String,Address> |
Utils.getAddresses(Order order)
Convenience helper to extract the Address from an Order.
|
Copyright © 2018. All rights reserved.