com.elasticpath.service.order
Interface OrderPaymentStatusFactory

All Superinterfaces:
EpEnumFactoryService, EpService
All Known Implementing Classes:
OrderPaymentStatusFactoryImpl

public interface OrderPaymentStatusFactory
extends EpEnumFactoryService

The factory for enum type OrderPaymentStatus object handling.


Field Summary
static OrderPaymentStatus APPROVED
          The OrderPaymentStatus instance for "Approved".
static OrderPaymentStatus FAILED
          The OrderPaymentStatus instance for "Failed".
static OrderPaymentStatus PENDING
          The OrderPaymentStatus instance for "Pending".
 
Method Summary
 OrderPaymentStatus getOrderPaymentStatus(int statusCode)
          Return the OrderPaymentStatus instance based on the given status code.
 java.util.Map getOrderPaymentStatusMap()
          Returns a map of orderPayment status.
 
Methods inherited from interface com.elasticpath.service.EpEnumFactoryService
getObject
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Field Detail

APPROVED

static final OrderPaymentStatus APPROVED
The OrderPaymentStatus instance for "Approved".


FAILED

static final OrderPaymentStatus FAILED
The OrderPaymentStatus instance for "Failed".


PENDING

static final OrderPaymentStatus PENDING
The OrderPaymentStatus instance for "Pending".

Method Detail

getOrderPaymentStatus

OrderPaymentStatus getOrderPaymentStatus(int statusCode)
Return the OrderPaymentStatus instance based on the given status code.

Parameters:
statusCode - the status code.
Returns:
the OrderPaymentStatus instance based on the given status code.

getOrderPaymentStatusMap

java.util.Map getOrderPaymentStatusMap()
Returns a map of orderPayment status. If a new orderShipmentStatus is added, make sure the add it to the map returned.

Returns:
a map of orderPayment status