UpdateOrderCoordinates
Changed on:
27 Nov 2023
Overview
The rule updates the longitude and latitude of the order based on the incoming event information received from the ResolveOrderCoordinates rule.
This rule works only if the order comes without coordinates. The ResolveOrderCoordinates rule resolves the coordinates and sends the event with latitude and longitude. After that, the UpdateOrderCoordinates rule gets coordinates from the event and updates the delivery address with coordinates.
Plugin Name | Order Reference Module |
---|---|
Namespace | [[account.id]].order |
The Order Reference Module is the foundation for order-related implementations. It provides reference workflows for click & collect, home delivery and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.
UI Description
Updates the longitude and latitude of the order based on the incoming event information.
Accepts
- ORDER
Actions
- This rule performs an update mutation on customer address.
Rule parameters
This rule does not identify any input parameters.
Event attributes
Parameter | Description | Data Type | Required? |
longitude | New longitude coming from the event | Double | Required |
latitude | New latitude coming from the event | Double | Required |
Exceptions
This rule does not explicitly identify any exceptions.
Configuration example
1{
2 "name": "<ACCOUNTID>.order.UpdateOrderCoordinates",
3 "props": {}
4}
Language: json
Version History
v1.0.0
refers to plugin