Small library to speed up development related to render bookings.
Install with yarn or npm
yarn add rendr-helpers
# OR
npm install rendr-helpers
then import getShippingRates function
import getShippingRates from './getShippingRates';
const rates = getShippingRates(rendrAccessToken, tenantId, payload, store, selectedDeliveryDate, state, addBuffer, bufferOnDeliveryTime)
Packages is developed in TypeScript all argument definition can be seen in IDE.
getStore : to fetch store details by store id requestDeliver: to create deliver
Supporting constants and functions are provided as well
getNextDate
isStoreClosed
TIMEZONE_MAPPING
DEFAULT_OPENING_HOURS
SERVICE_LIST
import getNextDate from './getShippingRates/utils';