Interface WarehousingConsignmentFacade
-
- All Known Implementing Classes:
DefaultWarehousingConsignmentFacade
public interface WarehousingConsignmentFacadeWarehousing Facade for theConsignmentModel, which provides the basic CRUD features for theConsignmentModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfirmPickupConsignment(java.lang.String code)Confirm Consignment's pick upvoidconfirmShipConsignment(java.lang.String code)Confirm Consignment's shippingjava.lang.StringconsolidatedPickSlip(ConsignmentCodeDataList consignmentCodeDataList)API to print a consolidated pick list for the specifiedConsignmentCodeDataList.SearchPageData<ConsignmentEntryData>getConsignmentEntriesForConsignmentCode(java.lang.String code, PageableData pageableData)API to get consignmentEntries for the givenConsignmentModel.CODEConsignmentDatagetConsignmentForCode(java.lang.String code)API to return details of a single consignment according for the givenConsignmentModel.CODE.PackagingInfoDatagetConsignmentPackagingInformation(java.lang.String code)API to return the packaging information for the givenConsignmentModel.CODE.SearchPageData<ConsignmentData>getConsignments(PageableData pageableData)API to fetch all consignments in the systemSearchPageData<ConsignmentData>getConsignmentsByStatuses(PageableData pageableData, java.util.Set<ConsignmentStatus> consignmentStatusSet)API to fetch all consignments in the system that have certain status(es)java.util.List<ConsignmentStatus>getConsignmentStatuses()API to return all consignment statusesjava.util.List<DeclineReason>getDeclineReasons()API to return all decline reasons.java.lang.StringgetExportForm(java.lang.String code)API to get the export form of aConsignmentModeljava.lang.StringgetReturnForm(java.lang.String code)API to get the return form of aConsignmentModeljava.lang.StringgetReturnShippingLabel(java.lang.String code)API to get the return shipping label of aConsignmentModeljava.lang.StringgetShippingLabel(java.lang.String code)API to get the shipping label of aConsignmentModelSearchPageData<WarehouseData>getSourcingLocationsForConsignmentCode(java.lang.String code, PageableData pageableData)API to return all warehouses fit for souring for the givenConsignmentModel.CODE.booleanisConsignmentConfirmable(java.lang.String code)Checks if the confirm ship/pickup is possible for the givenConsignmentModel.CODEvoidmanuallyReleasePaymentCapture(java.lang.String code)API to manually release aConsignmentModelafter a payment capture failurevoidmanuallyReleaseTaxCommit(java.lang.String code)API to manually release aConsignmentModelafter a tax commit failurejava.lang.StringpackConsignment(java.lang.String code)API to pack aConsignmentModeland its pack labeljava.lang.StringpackConsignment(java.lang.String code, boolean printSlip)API to pack aConsignmentModeland optionally return its pack labeljava.lang.StringpickConsignment(java.lang.String code)API to pick aConsignmentModeland return its pick slipjava.lang.StringpickConsignment(java.lang.String code, boolean printSlip)API to pick aConsignmentModeland optionally return its pick slipvoidreallocateConsignment(java.lang.String consignmentCode, ConsignmentReallocationData consignmentReallocationData)Reallocate the given consignment based on the givenConsignmentReallocationDataPaymentTransactionEntryDatatakePayment(java.lang.String code)API to take payment for aConsignmentModelConsignmentDataupdateConsignmentPackagingInformation(java.lang.String code, PackagingInfoData packagingInfoData)API to update the packaging information for the givenConsignmentModel.CODE.
-
-
-
Method Detail
-
getConsignments
SearchPageData<ConsignmentData> getConsignments(PageableData pageableData)
API to fetch all consignments in the system- Parameters:
pageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting info- Returns:
- list of consignments
-
getConsignmentsByStatuses
SearchPageData<ConsignmentData> getConsignmentsByStatuses(PageableData pageableData, java.util.Set<ConsignmentStatus> consignmentStatusSet)
API to fetch all consignments in the system that have certain status(es)- Parameters:
pageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting infoconsignmentStatusSet- set ofConsignmentStatus, in which we want to get list of consignments for- Returns:
- list of consignments that complies with passed consignment status(es)
-
getConsignmentEntriesForConsignmentCode
SearchPageData<ConsignmentEntryData> getConsignmentEntriesForConsignmentCode(java.lang.String code, PageableData pageableData)
API to get consignmentEntries for the givenConsignmentModel.CODE- Parameters:
code- the consignment's codepageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting info- Returns:
- SearchPageData that contains a list of the consignmentEntries for the given consignment
-
getConsignmentForCode
ConsignmentData getConsignmentForCode(java.lang.String code)
API to return details of a single consignment according for the givenConsignmentModel.CODE.- Parameters:
code- the consignment's code.- Returns:
- Consignment details for the given consignment code
-
getConsignmentStatuses
java.util.List<ConsignmentStatus> getConsignmentStatuses()
API to return all consignment statuses- Returns:
- list of
ConsignmentStatus
-
getDeclineReasons
java.util.List<DeclineReason> getDeclineReasons()
API to return all decline reasons.- Returns:
- a list of
DeclineReason
-
getSourcingLocationsForConsignmentCode
SearchPageData<WarehouseData> getSourcingLocationsForConsignmentCode(java.lang.String code, PageableData pageableData)
API to return all warehouses fit for souring for the givenConsignmentModel.CODE.- Parameters:
code- the consignment codepageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting info- Returns:
- SearchPageData that contains a list of locations fit for sourcing
-
confirmShipConsignment
void confirmShipConsignment(java.lang.String code)
Confirm Consignment's shipping- Parameters:
code- theConsignmentModel.CODEfor theConsignmentModelto be shipped
-
confirmPickupConsignment
void confirmPickupConsignment(java.lang.String code)
Confirm Consignment's pick up- Parameters:
code- theConsignmentModel.CODEfor theConsignmentModelto be picked up
-
isConsignmentConfirmable
boolean isConsignmentConfirmable(java.lang.String code)
Checks if the confirm ship/pickup is possible for the givenConsignmentModel.CODE- Parameters:
code- the code for the consignment to be confirmed- Returns:
- boolean to indicate if confirmation of the given consignment is possible
-
getConsignmentPackagingInformation
PackagingInfoData getConsignmentPackagingInformation(java.lang.String code)
API to return the packaging information for the givenConsignmentModel.CODE.- Parameters:
code- the consignment code for which to retrieve the packaging information- Returns:
- the
PackagingInfoData
-
updateConsignmentPackagingInformation
ConsignmentData updateConsignmentPackagingInformation(java.lang.String code, PackagingInfoData packagingInfoData)
API to update the packaging information for the givenConsignmentModel.CODE.- Parameters:
code- the consignment code for which the packaging information will be updatedpackagingInfoData- the new packaging information with which to update the consignment- Returns:
- the updated
ConsignmentData
-
reallocateConsignment
void reallocateConsignment(java.lang.String consignmentCode, ConsignmentReallocationData consignmentReallocationData)Reallocate the given consignment based on the givenConsignmentReallocationData- Parameters:
consignmentCode- theConsignmentData.codewhich needs to be reallocatedconsignmentReallocationData- theConsignmentReallocationDatacontaining theDeclineEntryData
-
pickConsignment
java.lang.String pickConsignment(java.lang.String code)
API to pick aConsignmentModeland return its pick slip- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the pick slip
-
pickConsignment
java.lang.String pickConsignment(java.lang.String code, boolean printSlip)API to pick aConsignmentModeland optionally return its pick slip- Parameters:
code- theConsignmentModel.CODEprintSlip- flag used to check if the pick slip should be returned- Returns:
- the generated HTML template for the pick slip or null
-
consolidatedPickSlip
java.lang.String consolidatedPickSlip(ConsignmentCodeDataList consignmentCodeDataList)
API to print a consolidated pick list for the specifiedConsignmentCodeDataList. The API also performs the Pick operation on eachConsignmentModelin the list- Parameters:
consignmentCodeDataList- theConsignmentCodeDataListcontaining mulitpleConsignmentModel.CODE- Returns:
- the generated HTML template for the consolidated pick slip
-
packConsignment
java.lang.String packConsignment(java.lang.String code, boolean printSlip)API to pack aConsignmentModeland optionally return its pack label- Parameters:
code- theConsignmentModel.CODEprintSlip- flag used to check if the pack label should be returned- Returns:
- the optionally generated HTML template for the pack label
-
packConsignment
java.lang.String packConsignment(java.lang.String code)
API to pack aConsignmentModeland its pack label- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the pack label
-
getExportForm
java.lang.String getExportForm(java.lang.String code)
API to get the export form of aConsignmentModel- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the export form
-
getShippingLabel
java.lang.String getShippingLabel(java.lang.String code)
API to get the shipping label of aConsignmentModel- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the shipping label
-
getReturnShippingLabel
java.lang.String getReturnShippingLabel(java.lang.String code)
API to get the return shipping label of aConsignmentModel- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the return shipping label
-
getReturnForm
java.lang.String getReturnForm(java.lang.String code)
API to get the return form of aConsignmentModel- Parameters:
code- theConsignmentModel.CODE- Returns:
- the generated HTML template for the return form
-
takePayment
PaymentTransactionEntryData takePayment(java.lang.String code)
API to take payment for aConsignmentModel- Parameters:
code- theConsignmentModel.CODE- Returns:
- the
PaymentTransactionEntryDatawith the recorded transaction
-
manuallyReleasePaymentCapture
void manuallyReleasePaymentCapture(java.lang.String code)
API to manually release aConsignmentModelafter a payment capture failure- Parameters:
code- theConsignmentModel.CODE
-
manuallyReleaseTaxCommit
void manuallyReleaseTaxCommit(java.lang.String code)
API to manually release aConsignmentModelafter a tax commit failure- Parameters:
code- theConsignmentModel.CODE
-
-