-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implementation - Accumulated bill id for consumer code and payment by… (#111) * Vendor Creation integration for challan create (#115) * Rahu vendor env (#116) * Adding role details to vendor's owner. * PSPCL name in env variable * removed unnecessary constant * Update CODEOWNERS * [DPG-698] Adding ifix-es-pipeline service (#117) * Revert "[DPG-698] Adding ifix-es-pipeline service (#117)" (#129) This reverts commit e5a2945. Co-authored-by: rahu-eGov <[email protected]> Co-authored-by: nikesh-eGov <[email protected]> Co-authored-by: Shashwat Mishra <[email protected]>
- Loading branch information
1 parent
6428068
commit c0d4ad8
Showing
87 changed files
with
4,076 additions
and
195 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
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
106 changes: 106 additions & 0 deletions
106
...er/mgramseva-ifix-adapter/src/main/java/org/egov/ifix/models/fiscalEvent/FiscalEvent.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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
package org.egov.ifix.models.fiscalEvent; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.egov.common.contract.AuditDetails; | ||
|
||
import javax.validation.Valid; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class FiscalEvent { | ||
|
||
@JsonProperty("version") | ||
private String version = null; | ||
|
||
@JsonProperty("id") | ||
private String id = null; | ||
|
||
@JsonProperty("tenantId") | ||
private String tenantId = null; | ||
|
||
@JsonProperty("sender") | ||
private String sender = null; | ||
|
||
@JsonProperty("receivers") | ||
@Valid | ||
private List<String> receivers = new ArrayList<>(); | ||
|
||
@JsonProperty("eventType") | ||
private EventTypeEnum eventType = null; | ||
|
||
@JsonProperty("ingestionTime") | ||
private Long ingestionTime = null; | ||
|
||
@JsonProperty("eventTime") | ||
private Long eventTime = null; | ||
|
||
@JsonProperty("referenceId") | ||
private String referenceId = null; | ||
|
||
@JsonProperty("linkedEventId") | ||
private String linkedEventId = null; | ||
|
||
@JsonProperty("linkedReferenceId") | ||
private String linkedReferenceId = null; | ||
|
||
@JsonProperty("amountDetails") | ||
@Valid | ||
private List<FiscalEventAmountDTO> amountDetails = new ArrayList<>(); | ||
|
||
@JsonProperty("auditDetails") | ||
private AuditDetails auditDetails = null; | ||
|
||
@JsonProperty("attributes") | ||
private Object attributes = null; | ||
|
||
public FiscalEvent addAmountDetailsItem(FiscalEventAmountDTO amountDetailsItem) { | ||
this.amountDetails.add(amountDetailsItem); | ||
return this; | ||
} | ||
|
||
public enum EventTypeEnum { | ||
Sanction("SANCTION"), | ||
Appropriation("APPROPRIATION"), | ||
Allocation("ALLOCATION"), | ||
Intra_Transfer("INTRA_TRANSFER"), | ||
Inter_Transfer("INTER_TRANSFER"), | ||
Demand("DEMAND"), | ||
Receipt("RECEIPT"), | ||
Bill("BILL"), | ||
Payment("PAYMENT"); | ||
|
||
private String value; | ||
|
||
EventTypeEnum(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonCreator | ||
public static EventTypeEnum fromValue(String text) { | ||
for (EventTypeEnum eventTypeEnum : EventTypeEnum.values()) { | ||
if (String.valueOf(eventTypeEnum.value).equals(text)) { | ||
return eventTypeEnum; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
@Override | ||
@JsonValue | ||
public String toString() { | ||
return name(); | ||
} | ||
} | ||
|
||
} | ||
|
39 changes: 39 additions & 0 deletions
39
...eva-ifix-adapter/src/main/java/org/egov/ifix/models/fiscalEvent/FiscalEventAmountDTO.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.egov.ifix.models.fiscalEvent; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class FiscalEventAmountDTO { | ||
@JsonProperty("id") | ||
private String id = null; | ||
|
||
@JsonProperty("amount") | ||
private BigDecimal amount = null; | ||
|
||
@JsonProperty("coaCode") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private String coaCode = null; | ||
|
||
@JsonProperty("coaId") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private String coaId = null; | ||
|
||
@JsonProperty("fromBillingPeriod") | ||
private Long fromBillingPeriod = null; | ||
|
||
@JsonProperty("toBillingPeriod") | ||
private Long toBillingPeriod = null; | ||
|
||
|
||
} | ||
|
26 changes: 26 additions & 0 deletions
26
...a-ifix-adapter/src/main/java/org/egov/ifix/models/fiscalEvent/FiscalEventResponseDTO.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.egov.ifix.models.fiscalEvent; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.egov.common.contract.response.ResponseHeader; | ||
|
||
import javax.validation.Valid; | ||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class FiscalEventResponseDTO { | ||
@JsonProperty("responseHeader") | ||
private ResponseHeader responseHeader = null; | ||
|
||
@JsonProperty("fiscalEvent") | ||
@Valid | ||
private List<FiscalEvent> fiscalEvent = null; | ||
|
||
} | ||
|
21 changes: 21 additions & 0 deletions
21
...x-adapter/src/main/java/org/egov/ifix/models/fiscalEvent/FiscalEventSearchRequestDTO.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.egov.ifix.models.fiscalEvent; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.egov.common.contract.request.RequestHeader; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class FiscalEventSearchRequestDTO { | ||
@JsonProperty("requestHeader") | ||
private RequestHeader requestHeader = null; | ||
|
||
@JsonProperty("criteria") | ||
private FiscalSearchCriteriaDTO criteria = null; | ||
} | ||
|
Oops, something went wrong.