%dw 2.0
output application/json
---
{
	header: {
		customerName: in0.order.header.customer,
		customerNumber: in0.order.header.customer.@number
	},
	orderItems: in0.order."order-items".*"order-item" map {
		productId: $.@id,
		quantity: $.quantity,
		price: $.price
	}
}