Backend/Microservices/PaymentService/server/src/Services/queryGenerator.js
/**
 * Internal method to join the data for the SP parameters.
 * @param {String} data : The Data to be joined.
 */
Internal method to join the data for the SP parameters.
@param {String} data : The Data to be joined.
Internal method to join the data for the SP parameters . @param { String } data : The Data to be joined .
function _joinData(data) {
   if (validators.validateString(data)) {
      return "'" + data + "'";
   } else if (validators.validateNumber(data)) {
      return data;
   } else if (validators.validateArray(data)) {
      return data;
   } else if (!data)
      return "''";
   return "''";
}
function _joinData ( data ) { if ( validators . validateString ( data ) ) { return "'" + data + "'" ; } else if ( validators . validateNumber ( data ) ) { return data ; } else if ( validators . validateArray ( data ) ) { return data ; } else if ( ! data ) return "''" ; return "''" ; }
Internal method to join the data for the SP parameters.
Internal method to join the data for the SP parameters .