application/docRetrieve.js
/**
 * Checks the completeness of the parameters passed to the logic.
 * @param {string} organizationName Organization name.
 * @param {string} walletName Wallet user name.
 */
Checks the completeness of the parameters passed to the logic.
@param {string} organizationName Organization name.
@param {string} walletName Wallet user name.
Checks the completeness of the parameters passed to the logic . @param { string } organizationName Organization name . @param { string } walletName Wallet user name .
async function assertParams(organizationName, walletName) {
    let errorMessage = `\n All parameters must be set. `;
    let erroFlag = false;
    if (organizationName == undefined || organizationName == null) {
        errorMessage = errorMessage + ` Organization Issuer Name is undefined. `;
        erroFlag = true;
    }
    if (walletName == undefined || walletName == null) {
        errorMessage = errorMessage + ` Wallet Issuer Name is undefined. `;
        erroFlag = true;
    }
    if (erroFlag) {
        throw errorMessage;
    }
}
async function assertParams ( organizationName , walletName ) { let errorMessage = ` \n ` ; let erroFlag = false ; if ( organizationName == undefined || organizationName == null ) { errorMessage = errorMessage + ` ` ; erroFlag = true ; } if ( walletName == undefined || walletName == null ) { errorMessage = errorMessage + ` ` ; erroFlag = true ; } if ( erroFlag ) { throw errorMessage ; } }
Checks the completeness of the parameters passed to the logic.
Checks the completeness of the parameters passed to the logic .