0% found this document useful (0 votes)
30 views12 pages

Assessment 5

Uploaded by

kngb145
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views12 pages

Assessment 5

Uploaded by

kngb145
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Assessment 5

-------------------------------------Assessment 5 |
02.08.2024--------------------------------------------------------
1. Validate using GatewayScript in IBM APIC
{
"root": {
"RequestUUID": "123213",
"ChannelId": "COR",
"Body": {
"requestID": "VKC210830616093",
"userID": "987654321",
"makerID": "2345678901",
"checkerID": "3456789012",
"salutation": "MR.",
"firstName": "AFGJFBGGCE",
"middleName": "GCJICJFHEJ",
"lastName": "BIJJABGACF",
"dateOfBirth": "01-21-1990",
"placeOfBirth": "RAJKO",
"countryOfBirth": "IN",
"gender": "M",
"fatherName": "GJBCGCGBCG",
"motherName": "IICEBFIAJH",
"maritalStatus": "001",
"spouseName": "IEFGECHAEF",
"residentStatus": "01",
"organizationCode": "41",
"occupationCode": "524",
"eduQualification": "Graduate",
"religionCode": "H",
"socialStatus": "006",
"customerType": "038",
"tdsSlabRate": "TDS10",
"staffFlg": "N", // If staffFlg=N then StaffId has no value
restriction, but if staffFlg=Y then StaffId should not be empty
"staffId": "rr",
"nreFlag": "N", // If nreFlag=N then nreDate has no value
restriction, but if nreFlag=Y then nreDate should not be empty
"nreDate": "44",
"purpose": "2",
"incomeSource": "SALRY",
"totalIncome": "60000",
"riskPerception": "RIP1",
"riskActivity": "1099",
"employmentStatus": "Employed",
"incomeNature": "Stable",
"countryCode": "IN",
"stateCode": "32",
"address1": "IEAIGEGECG",
"address2": "IHEBIHJEAG",
"address3": "",
"cityCode": "RAJKO",
"pinCode": "363001",
"mobile": "9444123456",
"emailId": "",
"form60": "",
"passportNo": "", // If passportNo is empty then
passportValidity has no value restriction, but if passportNo is not
empty then passportValidity should not be empty
"passportValidity": "",
"refNumber": "",
"addressProof": "VOTER",
"addressProofIssueBy": "gov",
"addressProofNo": "9319739ASD501",
"addressProofPlace": "RAJKO",
"idProof": "OTHER",
"idProofIssueBy": "gov",
"idProofNo": "UYRPC2191Y",
"idProofPlace": "RAJKO",
"guardianCif": "e", // If Age < 18 then guardianCif,
guardianName, guardianRelation has to be passed, but if Age >= 18
then Guardian details are optional
"guardianName": "",
"guardianRelation": "ee",
"brcode": "0109"
}
}
}
2. Requirement
• Mask the mobileNo and applReqNbr fields in the Below JSON
Request.
• Mask only applReqNbr field in the Below JSON Request.
JSON REQUEST:
{
"header": {
"channel": "BFSMOB"
},
"cardBoarding": {
"cardLast4Dig": "4191",
"mobileNo": "8591674286",
"recToAdd": {
"addCustNbr": "",
"addAcctNbr": "",
"addCardNbr": "",
"addRelNbr": "",
"sameCustAcct": "",
"sameCustCard": ""
},
"key": [{
"orgKey": "",
"applReqNbr": "M205401190000000075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
},{
"orgKey": "",
"applReqNbr": "M205401190000000075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
},{
"orgKey": "",
"applReqNbr": "M205401190000000075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
}]
}
}
RESPONSE:
{
"header": {
"channel": "BFSMOB"
},
"cardBoarding": {
"cardLast4Dig": "4191",
"mobileNo": "859XXXX286",
"recToAdd": {
"addCustNbr": "",
"addAcctNbr": "",
"addCardNbr": "",
"addRelNbr": "",
"sameCustAcct": "",
"sameCustCard": ""
},
"key": [
{
"orgKey": "",
"applReqNbr": "M205***********0075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
},
{
"orgKey": "",
"applReqNbr": "M205***********0075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
},
{
"orgKey": "",
"applReqNbr": "M205***********0075",
"applSeqNbr": "000",
"logoKey": "321",
"source": ""
}
]
}
}
3. Implement Schema Validation using JSV in APIC
Restrictions:
channel - should only contain capital alphabets | minLength : 1 |
maxLength : 10
cardLast4Dig - Only 4 Numbers
mobileNo - Only 10 Numbers
** No Other element/field should be allowed otherthan
mentioned.
{
"header": {
"channel": "BFSMOB"
},
"cardBoarding": {
"cardLast4Dig": "4191",
"mobileNo": "8591674286",
"recToAdd": {
"addCustNbr": "",
"addAcctNbr": "",
"addCardNbr": "",
"addRelNbr": "",
"sameCustAcct": "",
"sameCustCard": ""
}
}
}

4. Implement Schema Validation using XSD in DP and APIC.


Restrictions:
channel - should only contain capital alphabets | minLength : 1 |
maxLength : 10
cardLast4Dig - Only 4 Numbers
mobileNo - Only 10 Numbers
** No Other element/field should be allowed otherthan
mentioned.
<root>
<header>
<channel>BFSMOB</channel>
</header>
<cardBoarding>
<cardLast4Dig>4191</cardLast4Dig>
<mobileNo>8591674286</mobileNo>
<recToAdd>
<addCustNbr></addCustNbr>
<addAcctNbr></addAcctNbr>
<addCardNbr></addCardNbr>
<addRelNbr></addRelNbr>
<sameCustAcct></sameCustAcct>
<sameCustCard></sameCustCard>
</recToAdd>
</cardBoarding>
</root>

5. If cardLast4Dig comes in request: call one mock backend.


Restrictions:
channel - should only contain capital alphabets | minLength : 1 |
maxLength : 10
cardLast4Dig - Only 4 digits
mobileNo - Only 10 digits
** No Other element/field should be allowed otherthan
mentioned.
If cardNo comes in request: call other mock backend.
Restrictions:
channel - should only contain capital alphabets | minLength : 1 |
maxLength : 10
cardNo - Only 16 digits
mobileNo - Only 10 digits
** No Other element/field should be allowed otherthan
mentioned.

{
"header": {
"channel": "BFSMOB"
},
"cardBoarding": {
"cardLast4Dig": "4191",
"mobileNo": "8591674286",
"recToAdd": {
"addCustNbr": "",
"addAcctNbr": "",
"addCardNbr": "",
"addRelNbr": "",
"sameCustAcct": "",
"sameCustCard": ""
}
}
}
(or)
{
"header": {
"channel": "BFSMOB"
},
"cardBoarding": {
"cardNo": "1234567890123456",
"mobileNo": "8591674286",
"recToAdd": {
"addCustNbr": "",
"addAcctNbr": "",
"addCardNbr": "",
"addRelNbr": "",
"sameCustAcct": "",
"sameCustCard": ""
}
}
}
6. Open Amazon site using MPGW https:// handler.
-------------------------------------Assessment 5 ENDS |
02.08.2024--------------------------------------------------------

You might also like