...
Code Block | ||
---|---|---|
| ||
{ "data": { "deliveryRestaurant": { "deliverySurchargeFeeCents": 0, "nextEarliestOpen": null, "quote": "QUOTE_UNAVAILABLE", "quoteId": null, "restaurant": { "drinkStationType": null, "id": null, "_id": null, "storeId": null, "isAvailable": false, "posVendor": null, "chaseMerchantId": null, "curbsideHours": null, "deliveryHours": null, "diningRoomHours": null, "distanceInMiles": null, "driveThruHours": null, "driveThruLaneType": null, "email": null, "environment": null, "franchiseGroupId": null, "franchiseGroupName": null, "frontCounterClosed": null, "hasBreakfast": null, "hasBurgersForBreakfast": null, "hasCatering": null, "hasCurbside": null, "hasDelivery": null, "hasDineIn": null, "hasDriveThru": null, "hasTableService": null, "hasLateNightMenu": null, "hasMobileOrdering": null, "hasParking": null, "hasPlayground": null, "hasTakeOut": null, "hasWifi": null, "hasLoyalty": null, "isDarkKitchen": null, "isFavorite": false, "isHalal": null, "isRecent": false, "latitude": null, "longitude": null, "mobileOrderingStatus": "temporary_unavailable", "name": null, "number": null, "parkingType": null, "phoneNumber": null, "physicalAddress": null, "playgroundType": null, "pos": null, "posRestaurantId": null, "restaurantImage": null, "status": null, "restaurantPosData": null, "vatNumber": null }, "storeStatus": "NO_DELIVERY" } } } |
In this function deliveryRestaurant
it checks if the feature flag is active, because we use different way.
The flag is enable-dropoff-only-quote-from-delivery-service
and use some information for active:
...
PLK ES DEV has this flag active, so use the first way:
...
It uses the function createQuoteWhitelabelDeliveryService
of delivery providers:
file: src/functions/graphql/providers/delivery.ts
...
And in this file use the service.retrieveFirstQuote