Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hamzafarooqX
Copy link
Collaborator

Description

Describe the changes made and why they were made.

Ignore if these details are present on the associated Apache Fineract JIRA ticket.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests

  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

  • Create/update unit or integration tests for verifying the changes made.

  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

Copilot AI review requested due to automatic review settings December 22, 2025 21:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds webhook support for line of credit facility lifecycle events by implementing business event notifications and Avro serialization. The changes enable external systems to receive real-time notifications when line of credit facilities are created, approved, activated, closed, or modified.

Key changes include:

  • Added 9 business event classes for different LOC state transitions (created, approved, activated, deactivated, closed, reactivated, increased, decreased, updated)
  • Implemented Avro schema and serialization infrastructure for LOC data
  • Integrated event notifications into LOC write service operations
  • Added database migrations to configure external event handling

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ExternalEventSourceProviderConfig.java Extended external event source configuration to include custom Crediblex event classes
LineOfCreditDataV1.avsc Added Avro schema definition for line of credit data serialization
LineOfCreditWritePlatformServiceImpl.java Integrated business event notifications into LOC lifecycle operations
LineOfCreditBusinessEventSerializer.java Implemented serializer to convert LOC business events to Avro format
LineOfCreditV1Mapper.java Created mapper to transform LOC domain objects to Avro DTOs
LineOfCreditBusinessEvent.java (and 8 event subclasses) Defined business event hierarchy for LOC operations
dependencies.gradle Added dependencies for Avro schemas and serialization
0044-add-loc-events-in-external-event-configuration-table.xml Database migration to register LOC events in external event configuration
0045-add-missing-event-in-event-configuration-table.xml Database migration to add SavingsToLoanAccountTransferBusinessEvent configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hamzafarooqX hamzafarooqX merged commit 4717f38 into develop Jan 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants