dominos/api.py
def set_delivery_system(self, store, postcode, fulfilment_method=FULFILMENT_METHOD.DELIVERY):
        '''
        Set local cookies by initialising the delivery system on the remote.
        Requires a store ID and a delivery postcode.

        :param Store store: Store id.
        :param string postcode: A postcode.
        :return: A response having initialised the delivery system.
        :rtype: requests.Response
        '''
        method = 'delivery' if fulfilment_method == FULFILMENT_METHOD.DELIVERY else 'collection'

        params = {
            'fulfilmentMethod': method,
            'postcode': postcode,
            'storeid': store.store_id
        }

        return self.__post('/Journey/Initialize', json=params)
def set_delivery_system(self, store, postcode, fulfilment_method=FULFILMENT_METHOD.DELIVERY):
        '''
        Set local cookies by initialising the delivery system on the remote.
        Requires a store ID and a delivery postcode.

        :param Store store: Store id.
        :param string postcode: A postcode.
        :return: A response having initialised the delivery system.
        :rtype: requests.Response
        '''
        method = 'delivery' if fulfilment_method == FULFILMENT_METHOD.DELIVERY else 'collection'

        params = {
            'fulfilmentMethod': method,
            'postcode': postcode,
            'storeid': store.store_id
        }

        return self.__post('/Journey/Initialize', json=params)
Set local cookies by initialising the delivery system on the remote.
        Requires a store ID and a delivery postcode.

        :param Store store: Store id.
        :param string postcode: A postcode.
        :return: A response having initialised the delivery system.
        :rtype: requests.Response