Clean up UUID-handling to prepare for future

This commit is contained in:
Scott Nonnenberg 2020-12-09 14:26:37 -08:00 committed by GitHub
parent 5369950c1d
commit 3f58a9b762
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 55 additions and 31 deletions

View file

@ -1083,13 +1083,18 @@ export function initialize({
);
}
async function getSenderCertificate() {
async function getSenderCertificate(omitE164?: boolean) {
const baseParameters = '?includeUuid=true';
const urlParameters = `${baseParameters}${
omitE164 ? '&includeE164=false' : ''
}`;
return _ajax({
call: 'deliveryCert',
httpType: 'GET',
responseType: 'json',
validateResponse: { certificate: 'string' },
urlParameters: '?includeUuid=true',
urlParameters,
});
}