...
Add new resolver (getUserByLoyaltyId) in BE to consume the Intl Loyalty Middleware service. This resolver will receive the loyaltyId and will return the user attributes.
Expand |
---|
|
Schemas/Customer Update the Query with the new method customerByLoyaltyId and update graphQl queries Image AddedCreate a new method customerByLoyaltyId inside the Query resolvers section (with the same signature and name of query above) Image Addedand this is the loyalty response Code Block |
---|
{
"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"
} |
|
...
Expand |
---|
|
Schemas/Customer queries/customersCreate a new query inside the customers queries hooks/use-universal-searchCreate a use query for consume the customerByLoyaltyId Add on the map section the new query universal-search/searchInstructionsAdd new descriptions to this list for loyalty id The text for loyaltyId already exist in Lokalize, avoiding the necessity of create a new string text. |
...