-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add attachmentKey to the form fill request DTO
- Loading branch information
Joel Balcaen
committed
Apr 2, 2024
1 parent
ef4983d
commit af70b2d
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
...n/src/main/java/com/levio/awsdemo/formrequestpreprocessor/service/FormFillRequestDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
package com.levio.awsdemo.formrequestpreprocessor.service; | ||
|
||
public class FormFillRequestDTO { | ||
/** | ||
* The ID of the email which initiated the request | ||
*/ | ||
String emailId; | ||
|
||
/** | ||
* The key to the form to be filled | ||
*/ | ||
String formKey; | ||
|
||
/** | ||
* The key to the attachment to parse | ||
*/ | ||
String attachmentKey; | ||
|
||
public FormFillRequestDTO(String emailId, String formKey) { | ||
public FormFillRequestDTO(String emailId, String formKey, String attachmentKey) { | ||
this.emailId = emailId; | ||
this.formKey = formKey; | ||
this.attachmentKey = attachmentKey; | ||
} | ||
|
||
public String toJson() { | ||
return "{" + | ||
"\"emailId\":\"" + emailId + "\"," + | ||
"\"formKey\":\"" + formKey + "\"" + | ||
"\"attachmentKey\":\"" + attachmentKey + "\"" + | ||
"}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters