Exam4Training

What are the two missing hooks in the middle?

Given the customer basket described below:

A customer has an existing basket that consists of multiple items.

One of the items is identified as a gift ítem by an attribute at the product line ítem.

The developer needs to write custom code to fetch the customer basket and then modify the basket based

upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETRespone and ending with validatebasket.

Dw.ocapi.shop.basket.modifyGETResponse

— missing hook C

— missing hook — dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?
A . dw.ocapi.shop.basket.shipment.afterDELETE
B. dw.ocapi.shop.basket.shipment.beforePATCH
C. dw.ocapi.shop.basket.shipment.beforeDELETE
D. dw.ocapi.shop.baskep.shopment.beforePOST Estos indican antes de actualizar y antes de introducir

Answer: B,D

Exit mobile version