-
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.
- Loading branch information
1 parent
459dbc3
commit 190b4fc
Showing
10 changed files
with
45 additions
and
61 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
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
25 changes: 8 additions & 17 deletions
25
...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,32 +1,23 @@ | ||
package com.levio.awsdemo.formrequestpreprocessor.service; | ||
|
||
public class FormFillRequestDTO { | ||
/** | ||
* The ID of the email which initiated the request | ||
*/ | ||
String emailId; | ||
private final String emailId; | ||
|
||
/** | ||
* The key to the form to be filled | ||
*/ | ||
String formKey; | ||
private final String emailS3URI; | ||
|
||
/** | ||
* The key to the attachment to parse | ||
*/ | ||
String formS3URI; | ||
private final String emailAttachmentS3URI; | ||
|
||
public FormFillRequestDTO(String emailId, String formKey, String formS3ObjectKey) { | ||
public FormFillRequestDTO(String emailId, String emailS3URI, String emailAttachmentS3URI) { | ||
this.emailId = emailId; | ||
this.formKey = formKey; | ||
this.formS3URI = formS3ObjectKey; | ||
this.emailS3URI = emailS3URI; | ||
this.emailAttachmentS3URI = emailAttachmentS3URI; | ||
} | ||
|
||
public String toJson() { | ||
return "{" + | ||
"\"emailId\":\"" + emailId + "\"," + | ||
"\"formKey\":\"" + formKey + "\"," + | ||
"\"formS3URI\":\"" + formS3URI + "\"" + | ||
"\"emailS3URI\":\"" + emailS3URI + "\"," + | ||
"\"emailAttachmentS3URI\":\"" + emailAttachmentS3URI + "\"" + | ||
"}"; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
{ | ||
"messageId": "19dd0b57-b21e-4ac1-bd88-01bbb068cb78", | ||
"receiptHandle": "MessageReceiptHandle", | ||
"body": "u3a14tlds9k86f7374fuflhjgpjta1leq7a4cu01", | ||
"body": "{\"emailId\":\"dmrhmr4s00t2s90jebn3djke8eh0tmon1u318ag1\",\"emailS3URI\":\"s3://levio-demo-fev-esta-ses-bucket-dev/formulaire/email/dmrhmr4s00t2s90jebn3djke8eh0tmon1u318ag1\",\"emailAttachmentS3URI\":\"s3://levio-demo-fev-esta-ses-bucket-dev/formulaire/attachment/dmrhmr4s00t2s90jebn3djke8eh0tmon1u318ag1.txt\"}", | ||
"attributes": { | ||
"sender": "[email protected]", | ||
"subject": "Levio HR" | ||
|
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
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
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