- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
prepareAdjustmentsFromPromotionActionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the prepareAdjustmentsFromPromotionActionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step prepares the line item or shipping method adjustments using actions computed by the Promotion Module.
Example#
Input#
PrepareAdjustmentsFromPromotionActionsStepInput
PrepareAdjustmentsFromPromotionActionsStepInputThe details of the actions computed by the Promotion Module.
PrepareAdjustmentsFromPromotionActionsStepInput
PrepareAdjustmentsFromPromotionActionsStepInputactions
ComputeActions[]The actions computed by the Promotion Module.
actions
ComputeActions[]Output#
PrepareAdjustmentsFromPromotionActionsStepOutput
PrepareAdjustmentsFromPromotionActionsStepOutputThe details of the adjustments to create and remove.
PrepareAdjustmentsFromPromotionActionsStepOutput
PrepareAdjustmentsFromPromotionActionsStepOutputlineItemAdjustmentsToCreate
object[]The line item adjustments to create.
lineItemAdjustmentsToCreate
object[]lineItemAdjustmentIdsToRemove
string[]The line item adjustment IDs to remove.
lineItemAdjustmentIdsToRemove
string[]shippingMethodAdjustmentsToCreate
object[]The shipping method adjustments to create.
shippingMethodAdjustmentsToCreate
object[]shippingMethodAdjustmentIdsToRemove
string[]The shipping method adjustment IDs to remove.
shippingMethodAdjustmentIdsToRemove
string[]computedPromotionCodes
string[]The promotion codes that were computed.
computedPromotionCodes
string[]Was this page helpful?