LoyaltySpinRewardClaimed
v1.0.0

Fired when the user assigns the spin the wheel reward to a certain delivery

Properties

id*:

Unique identifier of wheel spin.

userId*:

The ID of the user who has claimed the spin reward.

userEmail*:

The ID of the user who has claimed the spin reward.

kitchen*:

The kitchen of the spin reward.

rewwardId*:

The ID of the reward that is connected to the spin.

rewardType*:

The type of reward.

- ADDON

rewardName*:

Object that contains the reward name

- ar (arabic)
- en (english)

deliveryDate*:

The delivery date that the user assigned the reward to.

createdAt*:

The date of the spin

flowchart LR l-Loyalty_Service[Loyalty Service]:::producer-->LoyaltySpinRewardClaimed[LoyaltySpinRewardClaimed]:::event classDef event stroke:#046375,stroke-width: 4px; classDef producer stroke:#75d7b6,stroke-width: 2px; classDef consumer stroke:#818cf8,stroke-width: 2px; LoyaltySpinRewardClaimed[LoyaltySpinRewardClaimed]:::event-->r-Analytics_Service[Analytics Service]:::consumer click l-Loyalty_Service href "/services/Loyalty Service" "Go to Loyalty Service" _self click r-Analytics_Service href "/services/Analytics Service" "Go to Analytics Service" _self click LoyaltySpinRewardClaimed href "/events/LoyaltySpinRewardClaimed" "Go to LoyaltySpinRewardClaimed" _self
LoyaltySpinRewardClaimed Schema (yml)
openapi: 3.0.0
info:
  version: "1.0.0"
  title: LoyaltySpinRewardClaimed
paths: {}
components:
  schemas:
    LoyaltySpinRewardClaimed:
      type: object
      required:
        - metadata
        - data
      properties:
        data:
          "$ref": "#/components/schemas/Data"
        metadata:
          "$ref": "#/components/schemas/Metadata"
    Data:
      type: object
      required:
        - id
        - userId
        - userEmail
        - kitchen
        - rewardId
        - rewardType
        - rewardName
        - deliveryDate
        - createdAt

      properties:
        id:
          type: string
        userId:
          type: string
        userEmail:
          type: string
        kitchen:
          type: string
        rewardId:
          type: string
        rewardType:
          type: string
          enum:
            - ADDON
        rewardName:
          type: object
          properties:
            en:
              type: string
            ar:
              type: string
        deliveryDate:
          type: string
        createdAt:
          type: string

    Metadata:
      type: object
      required:
        - serviceFunction
        - version
      properties:
        serviceFunction:
          type: string
        version:
          type: string
Edit this pageLast updated on 2024/4/2