Skip to content

Commit

Permalink
RIA-7368
Browse files Browse the repository at this point in the history
* Addedn functionality to generate letter when HO application decided
* Refactored RIA-7365
* Added/updated unit/FTs
  • Loading branch information
hussain-faruk committed Sep 11, 2023
1 parent bcab0e7 commit 64c5132
Show file tree
Hide file tree
Showing 16 changed files with 805 additions and 78 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"description": "RIA-7368 internal ADA application decided letter (Adjourn - Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73681,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"isAcceleratedDetainedAppeal": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Adjourn",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"description": "RIA-7368 internal ADA application decided letter (Expedite - Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73682,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"isAcceleratedDetainedAppeal": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Expedite",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"description": "RIA-7368 internal ADA application decided letter (Judges review - Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73683,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"isAcceleratedDetainedAppeal": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Judge's review of Legal Officer decision",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"description": "RIA-7368 internal ADA application decided letter (Transfer out of ada- Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73684,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"isAcceleratedDetainedAppeal": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Transfer out of accelerated detained appeals process",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"description": "RIA-7368 internal detained (non-ada) application decided letter (Adjourn - Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73685,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Adjourn",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"description": "RIA-7368 internal detained (non-ada) application decided letter (Expedite - Refused)",
"request": {
"uri": "/asylum/ccdAboutToSubmit",
"credentials": "Judge",
"input": {
"id": 73686,
"eventId": "decideAnApplication",
"state": "appealSubmitted",
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"decideAnApplicationId": "1",
"makeAnApplications": [
{
"id": "1",
"value": {
"type":"Expedite",
"details":"",
"evidence":[],
"applicant":"Respondent",
"date":"{$TODAY}",
"decision":"Refused",
"state":"appealSubmitted",
"applicantRole":"caseworker-ia-admofficer",
"decisionReason":"No Reason given",
"decisionDate":"{$TODAY}",
"decisionMaker": "Admin Officer"
}
}
]
}
}
}
},
"expectation": {
"status": 200,
"errors": [],
"caseData": {
"template": "minimal-internal-appeal-submitted.json",
"replacements": {
"appellantInDetention": "Yes",
"notificationAttachmentDocuments": [
{
"id": "1",
"value": {
"document": {
"document_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/",
"document_binary_url": "$/http.+\/documents/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\/binary/",
"document_filename": "PA 12345 2019-Awan-respondent-letter-application-refused.PDF"
},
"description": "",
"dateUploaded": "{$TODAY}",
"tag": "internalDecideHomeOfficeApplicationLetter"
}
}
]
}
}
}
}
Loading

0 comments on commit 64c5132

Please sign in to comment.