Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

๐Ÿ› ๏ธ Potential Solutions

Update the exist search input to accept and search by loyalty ID, and communicate with loyalty service to get the consumer information.

โœ… Proposed Solution

Updated the exist search bar inside the home screen on to accept the loyalty id.

image-20240521-182151.png

Add a new line in this message to indicate the new kind of data (loyalty id)

image-20240521-182342.png

Update the admin app to consume this from loyalty API

Add new graphQl call FE to BE in Admin App.

Add new resolver (getUserByLoyaltyId) in BE to consume the Intl Loyalty Middleware service. This resolver will receive the loyaltyId and will return the this response

{
  "createdAt": "string",
  "id": "string",
  "name": "string",
  "updatedAt": "string",
  "clientUserId": "string",
  "dateOfBirth": "string",
  "email": "string",
  "emailVerified": true,
  "expirationBuckets": [
    {
      "expirationDate": "string",
      "pointsToExpire": 0
    }
  ],
  "loyaltyTier": {
    "loyaltyTierExpiryDate": "string",
    "loyaltyTierKey": "Tier_1",
    "pointsEarnedInTimeConstraint": 0,
    "startAt": "string"
  },
  "metadata": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "offerRedemptionAvailability": {
    "availableAfter": "string",
    "transactionId": "string"
  },
  "phoneNumber": "string",
  "phoneVerified": true,
  "points": 0,
  "pointsEarningDisabled": true,
  "pointsExpiryDateKey": "string"
}

ย Detailed solution

Schemas/Customer

  • Update the Query with the new method customerByLoyaltyId and update graphQl queries

    image-20240521-201830.png

  • Create a new method customerByLoyaltyId inside the Query resolvers section (with the same signature and name of query above)

    image-20240521-200957.png
    • To get the User from Loyalty serivce, can be used this provider

    image-20240522-191903.png

queries/customers

Create a new query inside the customers queries

image-20240522-195309.png

Create a use query for consume the customerByLoyaltyId

image-20240522-194947.png

Add on the map section the new query

image-20240522-195002.png

universal-search/searchInstructions

Add new descriptions to this list for loyalty id

image-20240522-204049.png

The text for loyaltyId already exist in Lokalize, avoiding the necessity of create a new string text.

โš ๏ธPotential Challenges

Was made a POC to map all the challenges and no one appear.

๐Ÿ’ฐ Cost

No additional cost will be necessary.

๐ŸŽ›๏ธ Configuration

No configuration will be necessary.

๐Ÿ“ˆ Metrics

To be defined by Design/Data Team.

๐Ÿ—“๏ธ Delivery Plan

Link to the task or list of all the tasks required to deliver the solution, along with its progress.

๐Ÿง‘โ€๐Ÿš’ QA Plan

To be defined by QA Team.

โš ๏ธ Call-outs

No call-outs

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.