DeliveryPreferencesUpdatedv1.0.0
This event is fired when the user's delivery preferences are updated.
It is listened to by delivery extender service to update the delivery days based on the user preferences.
This event can be fired by dashboard service or core service.
Dashboard service fires this event when CX updates the user's delivery preferences
Core service fires this event when the user updates their delivery preferences
Delivery extender will also be updating the delivery-management-service with the delivery preferences.
DeliveryPreferencesUpdated Schema (yml)
openapi: 3.0.0
info:
version: "1.0.0"
title: DeliveryPreferencesUpdated
paths: {}
components:
schemas:
DeliveryPreferencesUpdated:
type: object
required:
- metadata
- data
properties:
data:
"$ref": "#/components/schemas/Data"
metadata:
"$ref": "#/components/schemas/Metadata"
Data:
type: object
required:
- userId
- deliveryPreferences
properties:
userId:
type: string
deliveryPreferences:
type: array
items:
"$ref": "#/components/schemas/DeliveryPreference"
Metadata:
type: object
required:
- serviceFunction
- version
properties:
serviceFunction:
type: string
version:
type: string
DeliveryPreference:
type: object
required:
- deliveryDay
- deliveryTime
- deliveryAddressId
properties:
deliveryDay:
type: number
deliveryTime:
type: string
enum:
- morning
- evening
deliveryAddressId:
type: string
Edit this pageLast updated on 2024/4/2