Skip to content

Commit

Permalink
ON-37087 # Added emailAttachmentsWebhook to Submission Event Config
Browse files Browse the repository at this point in the history
  • Loading branch information
jdawg093 committed Dec 15, 2023
1 parent 74173e7 commit ee21475
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Added

- `emailAttachmentsWebhook` to `FormSubmissionEventConfiguration` class

## 5.2.0 (2023-11-21)

### Added
Expand Down
16 changes: 12 additions & 4 deletions OneBlink.SDK/models/FormSubmissionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ public static FormSubmissionEvent CreatePDFSubmissionEvent(
List<string> toEmail = default(List<string>),
List<string> ccEmail = default(List<string>),
List<string> bccEmail = default(List<string>),
bool? includeExternalIdInPdf = null
bool? includeExternalIdInPdf = null,
EndpointConfiguration emailAttachmentsWebhook = null
)
{
FormSubmissionEventConfiguration fseconfig = new FormSubmissionEventConfiguration();
Expand All @@ -237,6 +238,7 @@ public static FormSubmissionEvent CreatePDFSubmissionEvent(
fseconfig.excludedElementIds = excludedElementIds;
fseconfig.usePagesAsBreaks = usePagesAsBreaks;
fseconfig.emailTemplate = emailTemplate;
fseconfig.emailAttachmentsWebhook = emailAttachmentsWebhook;
if (toEmail != default(List<string>))
{
fseconfig.toEmail = toEmail;
Expand Down Expand Up @@ -280,7 +282,8 @@ public static FormSubmissionEvent CreatePDFSubmissionEvent(
List<string> ccEmail = default(List<string>),
List<string> bccEmail = default(List<string>),
List<string> excludedCSSClasses = default(List<string>),
bool? includeExternalIdInPdf = null
bool? includeExternalIdInPdf = null,
EndpointConfiguration emailAttachmentsWebhook = null
)
{
FormSubmissionEventConfiguration fseconfig = new FormSubmissionEventConfiguration();
Expand Down Expand Up @@ -311,6 +314,7 @@ public static FormSubmissionEvent CreatePDFSubmissionEvent(
fseconfig.bccEmail = bccEmail;
}
fseconfig.includeExternalIdInPdf = includeExternalIdInPdf;
fseconfig.emailAttachmentsWebhook = emailAttachmentsWebhook;
FormSubmissionEvent pdfEvent = new FormSubmissionEvent();
pdfEvent.type = "PDF";
pdfEvent.configuration = fseconfig;
Expand All @@ -336,7 +340,8 @@ public static FormSubmissionEvent CreateEmailSubmissionEvent(
string label = null,
List<string> toEmail = default(List<string>),
List<string> ccEmail = default(List<string>),
List<string> bccEmail = default(List<string>)
List<string> bccEmail = default(List<string>),
EndpointConfiguration emailAttachmentsWebhook = null
)
{
FormSubmissionEventConfiguration fseconfig = new FormSubmissionEventConfiguration();
Expand All @@ -355,6 +360,7 @@ public static FormSubmissionEvent CreateEmailSubmissionEvent(
{
fseconfig.bccEmail = bccEmail;
}
fseconfig.emailAttachmentsWebhook = emailAttachmentsWebhook;
FormSubmissionEvent emailEvent = new FormSubmissionEvent();
emailEvent.type = "EMAIL";
emailEvent.configuration = fseconfig;
Expand All @@ -378,7 +384,8 @@ public static FormSubmissionEvent CreateEmailSubmissionEvent(
string label = null,
List<string> toEmail = default(List<string>),
List<string> ccEmail = default(List<string>),
List<string> bccEmail = default(List<string>)
List<string> bccEmail = default(List<string>),
EndpointConfiguration emailAttachmentsWebhook = null
)
{
FormSubmissionEventConfiguration fseconfig = new FormSubmissionEventConfiguration();
Expand All @@ -396,6 +403,7 @@ public static FormSubmissionEvent CreateEmailSubmissionEvent(
{
fseconfig.bccEmail = bccEmail;
}
fseconfig.emailAttachmentsWebhook = emailAttachmentsWebhook;
FormSubmissionEvent emailEvent = new FormSubmissionEvent();
emailEvent.type = "EMAIL";
emailEvent.configuration = fseconfig;
Expand Down
4 changes: 4 additions & 0 deletions OneBlink.SDK/models/FormSubmissionEventConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,9 @@ public string subAgencyCode
{
get; set;
}
public EndpointConfiguration emailAttachmentsWebhook
{
get; set;
}
}
}

0 comments on commit ee21475

Please sign in to comment.