Interface B2BCheckoutFacade
- All Superinterfaces:
CheckoutFacade
- All Known Implementing Classes:
B2BMultiStepCheckoutFlowFacade,DefaultB2BAcceleratorCheckoutFacade,DefaultB2BCheckoutFacade,DefaultCheckoutFacade
Deprecated, for removal: This API element is subject to removal in a future version.
Since 5.5.
A B2B specific facade for check out process.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCartFromOrder(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.CreatesCartModelbased on an order removes the current session carts and sets the new cart into the session.Deprecated, for removal: This API element is subject to removal in a future version.Gets all visible active cost centers for the currently logged-inB2BCustomerModelbased on his parent B2UnitDeprecated, for removal: This API element is subject to removal in a future version.Call the Enum service to fetch the list of days in a week using DayOfWeek enumDeprecated, for removal: This API element is subject to removal in a future version.Gets the list of possible PaymentTypes for user selection in checkout summaryList<? extends B2BCostCenterData>Deprecated, for removal: This API element is subject to removal in a future version.Gets all visible cost centers for the currently logged-inB2BCustomerModelbased on his parent B2UnitscheduleOrder(TriggerData trigger) Deprecated, for removal: This API element is subject to removal in a future version.Places the cart that's in the session as a scheduled order scheduled by the Trigger parameter<T extends AbstractOrderData>
TsetCostCenterForCart(String costCenterCode, String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.Sets the cost center on all the entries of the ordervoidDeprecated, for removal: This API element is subject to removal in a future version.Sets the default payment type as Account for B2B accelerator store.booleansetPaymentTypeSelectedForCheckout(String paymentType) Deprecated, for removal: This API element is subject to removal in a future version.Update the cartModel with PaymentTypeSelected by the userbooleansetPurchaseOrderNumber(String purchaseOrderNumber) Deprecated, for removal: This API element is subject to removal in a future version.Sets the purchase order number to the cartModelbooleansetQuoteRequestDescription(String quoteRequestDescription) Deprecated, for removal: This API element is subject to removal in a future version.Adds a quote request text to theCartModelList<? extends CommerceCartModification>Deprecated, for removal: This API element is subject to removal in a future version.Checks the cart for stock availability Note: will remove entries which are no longer available or are completely out of stock, for partial stack availability quantity of the entry will be updated.Methods inherited from interface de.hybris.platform.commercefacades.order.CheckoutFacade
authorizePayment, containsTaxValues, createPaymentSubscription, getAddressDataForId, getBillingCountries, getCheckoutCart, getCountries, getDeliveryAddressForCode, getDeliveryCountries, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, hasCheckoutCart, hasPickUpItems, hasShippingItems, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setCheapestDeliveryModeForCheckout, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeIfAvailable, setPaymentDetails, setPaymentInfoIfAvailable
-
Method Details
-
getVisibleCostCenters
List<? extends B2BCostCenterData> getVisibleCostCenters()Deprecated, for removal: This API element is subject to removal in a future version.Gets all visible cost centers for the currently logged-inB2BCustomerModelbased on his parent B2Unit- Returns:
- A collection of
B2BCostCenterData
-
getActiveVisibleCostCenters
List<B2BCostCenterData> getActiveVisibleCostCenters()Deprecated, for removal: This API element is subject to removal in a future version.Gets all visible active cost centers for the currently logged-inB2BCustomerModelbased on his parent B2Unit- Returns:
- A collection of
B2BCostCenterData
-
setCostCenterForCart
Deprecated, for removal: This API element is subject to removal in a future version.Sets the cost center on all the entries of the order- Parameters:
costCenterCode- A unique identifier of a cost center, If null all entries of the order will be set with a null cost centerorderCode- A unique identifier of an Order or Cart.- Returns:
- Order data
-
getPaymentTypesForCheckoutSummary
List<B2BPaymentTypeData> getPaymentTypesForCheckoutSummary()Deprecated, for removal: This API element is subject to removal in a future version.Gets the list of possible PaymentTypes for user selection in checkout summary- Returns:
- B2BPaymentTypeEnum
-
setPaymentTypeSelectedForCheckout
Deprecated, for removal: This API element is subject to removal in a future version.Update the cartModel with PaymentTypeSelected by the user- Parameters:
paymentType-- Returns:
- boolean
-
setPurchaseOrderNumber
Deprecated, for removal: This API element is subject to removal in a future version.Sets the purchase order number to the cartModel- Parameters:
purchaseOrderNumber- The PO number of the order.- Returns:
- boolean
-
setQuoteRequestDescription
Deprecated, for removal: This API element is subject to removal in a future version.Adds a quote request text to theCartModel- Parameters:
quoteRequestDescription- The text describing reasons for requesting a quote on this order.- Returns:
- True if the data got added to the cart successfully else false.
-
getDaysOfWeekForReplenishmentCheckoutSummary
List<B2BDaysOfWeekData> getDaysOfWeekForReplenishmentCheckoutSummary()Deprecated, for removal: This API element is subject to removal in a future version.Call the Enum service to fetch the list of days in a week using DayOfWeek enum- Returns:
- List of days in a week
-
scheduleOrder
Deprecated, for removal: This API element is subject to removal in a future version.Places the cart that's in the session as a scheduled order scheduled by the Trigger parameter- Parameters:
trigger-- Returns:
- ScheduledCartData created
-
createCartFromOrder
Deprecated, for removal: This API element is subject to removal in a future version.CreatesCartModelbased on an order removes the current session carts and sets the new cart into the session.- Parameters:
orderCode- The unique identifier for an order
-
validateSessionCart
List<? extends CommerceCartModification> validateSessionCart() throws CommerceCartModificationExceptionDeprecated, for removal: This API element is subject to removal in a future version.Checks the cart for stock availability Note: will remove entries which are no longer available or are completely out of stock, for partial stack availability quantity of the entry will be updated.- Returns:
- A list of cart modifications
- Throws:
CommerceCartModificationException
-
setDefaultPaymentTypeForCheckout
void setDefaultPaymentTypeForCheckout()Deprecated, for removal: This API element is subject to removal in a future version.Sets the default payment type as Account for B2B accelerator store. Gets theCartModelobject and sets the payment type to ACCOUNT
-