override public Task <ProcessingInformation> GetProcessingInformationFromSource(string principalIdentifier, string purpose) { // Normall this information would come from a data source injected into the cstor var principalInfo = new ProcessingInformation { EmailAddresses = new List <string> { "*****@*****.**" }, EmailParameters = new Dictionary <string, string> { { "Link1HREF", "https://www.google.com" }, { "Link1Title", "Just Google It." }, { "Subject", "Consider just googling it." } }, FormParameters = new Dictionary <string, string> { { "Start of Calendar Year", "2019-01-01" }, { "End of Calendar Year", "2019-12-31" } }, DocumentTemplate = "PaidSickLeave-MandatoryNotice-English.pdf", EmailTemplate = "EmailTemplate.html" }; return(Task.FromResult(principalInfo)); }
public abstract Task <DocumentRecord> CreateNotificationDocument(ProcessingInformation principalInfo);
virtual protected async Task <(bool wasSuccess, string archiveFile)> SendEmail(ProcessingInformation principalInformation) { var pathToEmail = await _emailService.SendNoticeEmail(principalInformation.EmailTemplate, principalInformation.EmailAddresses, principalInformation.EmailParameters); if (!string.IsNullOrEmpty(pathToEmail)) { return(true, pathToEmail); } return(false, null); }
public override Task <DocumentRecord> CreateNotificationDocument(ProcessingInformation principalInfo) { return(_documentService.CreateNoticeDocument(principalInfo, Mandate.TestNotifications)); }
public string SamplePaymentsData() { //Create the Sample Data using Model Classes of Payments API var clientReferenceInformation = new ClientReferenceInformation { code = "TC50171_3" }; var processingInformation = new ProcessingInformation { commerceIndicator = "internet" }; var subMerchant = new SubMerchant { cardAcceptorID = "1234567890", country = "US", phoneNumber = "650-432-0000", address1 = "900 Metro Center", postalCode = "94404-2775", locality = "Foster Cit", name = "Visa Inc", administrativeArea = "CA", region = "PEN", email = "*****@*****.**" }; var aggregatorInformation = new AggregatorInformation { subMerchant = subMerchant, name = "V-Internatio", aggregatorID = "123456789" }; var billTo = new BillTo { country = "US", lastName = "VDP", address2 = "Address 2", address1 = "201 S. Division St.", postalCode = "48104-2201", locality = "Ann Arbor", administrativeArea = "MI", firstName = "RTS", phoneNumber = "999999999", district = "MI", buildingNumber = "123", company = "Visa", email = "*****@*****.**" }; var amountDetails = new AmountDetails { totalAmount = "102.21", currency = "USD" }; var orderInformation = new OrderInformation { billTo = billTo, amountDetails = amountDetails }; var card = new Card { expirationYear = "2031", number = "5555555555554444", securityCode = "123", expirationMonth = "12", type = "002" }; var paymentInformation = new PaymentInformation { card = card }; var payments = new Payments { clientReferenceInformation = clientReferenceInformation, processingInformation = processingInformation, aggregatorInformation = aggregatorInformation, orderInformation = orderInformation, paymentInformation = paymentInformation }; return(JsonConvert.SerializeObject(payments, Formatting.Indented)); }