Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
userManagement
Commits
eac33ce2
Commit
eac33ce2
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
changes for updating fee
parent
255fc774
main
UAT_quick_fix_keycloak
UPHRH_8164_ErrorHandling
dev
dev_stable
devops-patch
feature_update_fee
rahu_error_message_fix
uat
1 merge request
!7
changes for updating fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java
+2
-0
...psmf/userManagement/services/impl/PaymentServiceImpl.java
with
2 additions
and
0 deletions
+2
-0
src/main/java/com/tarento/upsmf/userManagement/services/impl/PaymentServiceImpl.java
+
2
−
0
View file @
eac33ce2
...
@@ -110,10 +110,12 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -110,10 +110,12 @@ public class PaymentServiceImpl implements PaymentService {
}
}
private
void
updateStudentFeeStatus
(
String
referenceNo
)
{
private
void
updateStudentFeeStatus
(
String
referenceNo
)
{
logger
.
info
(
"updating student fee for ref - {}"
,
referenceNo
);
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
HttpHeaders
httpHeaders
=
new
HttpHeaders
();
httpHeaders
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
httpHeaders
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
httpHeaders
.
setBearerAuth
(
EXAMS_AUTH_TOKEN
);
httpHeaders
.
setBearerAuth
(
EXAMS_AUTH_TOKEN
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<
String
>(
referenceNo
,
httpHeaders
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<
String
>(
referenceNo
,
httpHeaders
);
logger
.
info
(
"exam url - {}"
,
FEE_STATUS_UPDATE_ENDPOINT
);
ResponseEntity
<
ResponseDto
>
responseEntity
=
restTemplate
.
postForObject
(
FEE_STATUS_UPDATE_ENDPOINT
,
entity
,
ResponseEntity
.
class
);
ResponseEntity
<
ResponseDto
>
responseEntity
=
restTemplate
.
postForObject
(
FEE_STATUS_UPDATE_ENDPOINT
,
entity
,
ResponseEntity
.
class
);
logger
.
info
(
"Update student fee status - {}"
,
responseEntity
);
logger
.
info
(
"Update student fee status - {}"
,
responseEntity
);
if
(
responseEntity
!=
null
&&
responseEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
if
(
responseEntity
!=
null
&&
responseEntity
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets