Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions buildSrc/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.application.backend.implementation;

import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.application.backend.implementation;

import static org.springframework.modulith.core.DependencyDepth.IMMEDIATE;
Expand All @@ -23,12 +28,11 @@ void verify() {
@Test
@SuppressWarnings("java:S2699")
void document() {
new Documenter(modules).writeModulesAsPlantUml(
Documenter.DiagramOptions.defaults()
.withStyle(C4)
.withDependencyDepth(IMMEDIATE)
.withColorSelector(_ -> Optional.of("#E8F4F8"))
)
new Documenter(modules)
.writeModulesAsPlantUml(Documenter.DiagramOptions.defaults()
.withStyle(C4)
.withDependencyDepth(IMMEDIATE)
.withColorSelector(_ -> Optional.of("#E8F4F8")))
.writeIndividualModulesAsPlantUml()
.writeModuleCanvases()
.writeAggregatingDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ spring:
moments:
zone-id: UTC # timezone for event timing (default: UTC)
granularity: hours # finest granularity to emit (default: hours)
enable-time-machine: true
enable-time-machine: true
1 change: 1 addition & 0 deletions modules/fineract/core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.core;

import lombok.experimental.UtilityClass;

@UtilityClass
public final class FineractCoreConstants {
}
public final class FineractCoreConstants {}
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core;

import lombok.experimental.UtilityClass;

import static org.mifos.commons.boot.core.MifosConstants.MIFOS_PACKAGE_BASE;
import static org.mifos.commons.boot.core.MifosConstants.MIFOS_PROPERTIES_PREFIX;

import lombok.experimental.UtilityClass;

@UtilityClass
public class FineractClientConstants {
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE = MIFOS_PACKAGE_BASE + ".workflow.fineract.usecase.client";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_CORE_PACKAGE = MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE + ".core";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_IMPLEMENTATION_PACKAGE = MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE + ".implementation";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_PREFIX = MIFOS_PROPERTIES_PREFIX + ".workflow.fineract.usecase.client";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE =
MIFOS_PACKAGE_BASE + ".workflow.fineract.usecase.client";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_CORE_PACKAGE =
MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE + ".core";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_IMPLEMENTATION_PACKAGE =
MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PACKAGE_BASE + ".implementation";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_PREFIX =
MIFOS_PROPERTIES_PREFIX + ".workflow.fineract.usecase.client";
public static final String MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_ENABLED =
MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_PREFIX + ".enabled";
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core;

import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_PREFIX;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_PROPERTIES_PREFIX;


@Builder
@Data
@NoArgsConstructor
Expand All @@ -21,6 +21,7 @@
public class FineractClientProperties {
@Builder.Default
private Boolean enabled = true;

private String username;
private String password;
private String token;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.model;

import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.model;

import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.model;

import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;
import org.mifos.commons.boot.core.model.MifosRequest;

import java.io.Serial;
import java.time.LocalDate;

@Builder
@Data
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.model;

import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldNameConstants;
import org.mifos.commons.boot.core.model.MifosResponse;

import java.io.Serial;

@Builder
@Data
@NoArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.usecase;

import org.mifos.commons.boot.core.usecase.MifosUsecase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.core.usecase;

import org.mifos.commons.boot.core.usecase.MifosUsecase;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.implementation;

import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.implementation;

import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.mapping;

import org.mapstruct.Mapper;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.fineract.usecase.client.starter;

import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_CORE_PACKAGE;
import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_IMPLEMENTATION_PACKAGE;

import lombok.extern.slf4j.Slf4j;
import org.mifos.workflow.fineract.usecase.client.core.FineractClientProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_CORE_PACKAGE;
import static org.mifos.workflow.fineract.usecase.client.core.FineractClientConstants.MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_IMPLEMENTATION_PACKAGE;

@Slf4j
@EnableConfigurationProperties({FineractClientProperties.class})
@ComponentScan(MIFOS_WORKFLOW_FINERACT_USECASE_CLIENT_CORE_PACKAGE)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.infrastructure.starter;

import static org.mifos.workflow.infrastructure.core.MifosFlowInfrastructureConstants.MIFOS_WORKFLOW_INFRASTRUCTURE_CORE_PACKAGE;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
* distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
///
/// This Source Code Form is subject to the terms of the Mozilla Public
/// License, v. 2.0. If a copy of the MPL was not distributed with this
/// file, You can obtain one at http://mozilla.org/MPL/2.0/.
///
package org.mifos.workflow.infrastructure.support.cadence.core;

import static org.mifos.workflow.infrastructure.core.MifosFlowInfrastructureConstants.MIFOS_WORKFLOW_INFRASTRUCTURE_PACKAGE_BASE;
Expand Down
Loading
Loading