An API for Deliveroo
const Deliveroo = require('node-deliveroo');
const deliveroo = new Deliveroo();
deliveroo.signUp(login, password);
deliveroo.login(login, password);
deliveroo.updateProfile(userId, {mobile = '', lastName, marketingPreferences = {}, firstName});
deliveroo.addVoucherToUser(userId, voucher);
deliveroo.getHistory(userId);
deliveroo.getOrderDetails(orderId, userId);
deliveroo.getAvailableRestaurants(lat, lng);
deliveroo.getAvailableCategories(lat, lng);
deliveroo.getAvailableRestaurantsInCategory(lat, lng, categoryId);
deliveroo.getRestaurantDetails(restaurantId);
deliveroo.getSavedAddresses(userId);
deliveroo.addSavedAddress(userId, {name, phone, address, postCode, country, userConfirmedCoordinates =
false, lat, lng})
deliveroo.deleteSavedAddress(userId, savedAddressId);
deliveroo.getPaymentMethods(userId);
deliveroo.getStripeTokens();
delivero.addPaymentMethod(userId, tokenId);
deliveroo.deletePaymentMethod(userId, paymentMethodId);