text: module.exports = function (restClient) {
    let module = {};
    const urlPrefix = 'order/';
    let url = urlPrefix;
    function isResponseValid(data) {
      return data.code === 200;
    }
    function getResponse(data){
      if(isResponseValid(data)){
        return data.result;
      }
      return false;
    }
    module.create = (orderData) => {
      url += `create`;
      return restClient.post(url, orderData).then((data)=> {
        if (isResponseValid(data)) {
          data.result = {
            orderId: data.result,
            backendOrderId: data.result,
            transferedAt: new Date()
          };
        }
        return getResponse(data);
      });
    }
    return module;
  }
  