private async Task <(string SignedUrl, string FileName, string DirectUrl)> PdfInfo(ChargeBeeWebhookPayload payload)
        {
            string signedUrl;
            string fileName;
            string directUrl;

            var githubUserName = await GitHubUserNameFromWebhookPayload(payload);

            if (payload.Content.CreditNote?.Id != null)
            {
                var creditNoteId = payload.Content.CreditNote.Id;
                var signature    = BillingController.CreateLegacySignature(creditNoteId);
                fileName  = $"ship-credit-{githubUserName}-{DateTimeOffset.FromUnixTimeSeconds(payload.Content.CreditNote.Date).ToString("yyyy-MM-dd")}.pdf";
                signedUrl = $"https://{_configuration.ApiHostName}/billing/credit/{creditNoteId}/{signature}/{fileName}";
                directUrl = (await _chargeBee.CreditNote.Pdf(creditNoteId).Request()).Download.DownloadUrl;
            }
            else if (payload.Content.Invoice?.Id != null)
            {
                var invoiceId = payload.Content.Invoice.Id;
                var signature = BillingController.CreateLegacySignature(invoiceId);
                fileName  = $"ship-invoice-{githubUserName}-{DateTimeOffset.FromUnixTimeSeconds(payload.Content.Invoice.Date).ToString("yyyy-MM-dd")}.pdf";
                signedUrl = $"https://{_configuration.ApiHostName}/billing/invoice/{invoiceId}/{signature}/{fileName}";
                directUrl = (await _chargeBee.Invoice.Pdf(invoiceId).Request()).Download.DownloadUrl;
            }
            else
            {
                throw new Exception($"Cannot determine PDF for {payload.EventType}");
            }

            return(SignedUrl : signedUrl, FileName : fileName, DirectUrl : directUrl);
        }
        private static string GetPaymentMethodUpdateUrl(IShipHubConfiguration configuration, string customerId)
        {
            var accountId = ChargeBeeUtilities.AccountIdFromCustomerId(customerId);

            var apiHostName = configuration.ApiHostName;

            var signature = BillingController.CreateSignature(accountId, accountId);
            var updateUrl = $"https://{apiHostName}/billing/update/{accountId}/{signature}";

            return(updateUrl);
        }