Accelerator B2B Orders Process API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
order-responseSuccess response
generate-shipments-from-order-shipped-eventCreate Shipments for each Fulfillment Orders
order-allocated-messageOrder Allocated Notification
order-created-messageOrder Created Notification
order-invoiced-messageOrder Invoiced Notification
order-payment-receivedOrder Payment Notification
order-shipped-messageOrder Shipped Notification
transform-allocated-event-to-purchase-orderCIM OrderAllocatedEvent to PurchaseOrder Mapping. The PurchaseOrder is used to invoke the 855 Po Ack Message flow in Anypoint Partner Manager.
transform-order-invoiced-event-to-order-invoice-notice
transform-order-shipped-event-to-order-shipment-notice

order-response

Success response

Source: ./src/main/resources/dwl/order-response.dwl

(back to top)

generate-shipments-from-order-shipped-event

Create Shipments for each Fulfillment Orders

Source: ./src/main/resources/dwl/generate-shipments-from-order-shipped-event.dwl

Functions

fun getFulfillmentProductsIdArr (fulfillmentOrderProducts)

This function returns the flattened array of fulfillmentOrderProduct identifiers.

fun getShipmentProducts (inputProductIdsArr)

This function returns shipmentProducts whose fulfillmentOrderProductId match any of the IDs provided in the inputProductIdsArr parameter.

fun getShipmentPackages (inputPackageIdsArr)

This function returns shipmentPackages whose ID match any of the IDs provided in the inputPackageIdsArr parameter.

fun getShipmentDocuments (inputPackageIdsArr)

This function returns shipmentDocuments whose shipmentPackageId match any of the IDs provided in the inputPackageIdsArr parameter.

(back to top)

order-allocated-message

Order Allocated Notification

Source: ./src/main/resources/dwl/order-allocated-message.dwl

(back to top)

order-created-message

Order Created Notification

Source: ./src/main/resources/dwl/order-created-message.dwl

(back to top)

order-invoiced-message

Order Invoiced Notification

Source: ./src/main/resources/dwl/order-invoiced-message.dwl

(back to top)

order-payment-received

Order Payment Notification

Source: ./src/main/resources/dwl/order-payment-received.dwl

(back to top)

order-shipped-message

Order Shipped Notification

Source: ./src/main/resources/dwl/order-shipped-message.dwl

(back to top)

transform-allocated-event-to-purchase-order

CIM OrderAllocatedEvent to PurchaseOrder Mapping.
The PurchaseOrder is used to invoke the 855 Po Ack Message flow in Anypoint Partner Manager.

Source: ./src/main/resources/dwl/transform-allocated-event-to-purchase-order.dwl

Mapping Tables

Maps CIM OrderAllocatedEvent to PurchaseOrder

PurchaseOrderOrderAllocatedEventDescription
ididIdentifier of the PurchaseOrder
purchaseOrderNumberpurchaseOrderNumberThe purchase order number
purchaseOrderPurpose"New"The Purchase order purpose. Set as "New"
purchaseOrderDatepurchaseOrderDateDate the purchase order was created
supplierId"MYTHICAL"The Identifier of the supplier in Anypoint Partner Manager
purchasingOrganizationCodepurchasingOrganizationCodeThe Name of the organization that submitted the purchase order
buyerEmailAddressbuyerEmailAddressEmail address of the individual responsible for the purchase order
purchaseOrderProductsfulfillmentOrdersThe array of all the fulfillmentOrderProducts of each fulfillment order

(back to top)

transform-order-invoiced-event-to-order-invoice-notice

Source: ./src/main/resources/dwl/transform-order-invoiced-event-to-order-invoice-notice.dwl

(back to top)

transform-order-shipped-event-to-order-shipment-notice

Source: ./src/main/resources/dwl/transform-order-shipped-event-to-order-shipment-notice.dwl

(back to top)


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onMay 24, 2024
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.8
1.0.7