Giter Club home page Giter Club logo

bulk-scan-payment-processor's Introduction

bulk-scan-payment-processor

Purpose

The Bulk Scan Payment Processor retrieves service bus queue messages from the payments queue and processes them by either:

  • Creating a new payment record for an exception record in CCD
  • Updating an existing CCD exception record reference in payments to use the service case reference.

Getting Started

Prerequisites

  • JDK 17
  • Project requires Spring Boot v3.x to be present

Quick Start

An alternative faster way getting started is by using the automated setup script. This script will help set up all bulk scan/print repos including bulk-scan-payment-processor and its dependencies. See common-dev-env-bsbp repository for more information.

Building and deploying the application

Building the application

The project uses Gradle as a build tool. It already contains ./gradlew wrapper script, so there's no need to install gradle.

To build the project execute the following command:

  ./gradlew build

Running the application

Create the image of the application by executing the following command:

  ./gradlew assemble

Create docker image:

  docker-compose build

Run the distribution (created in build/install/bulk-scan-payment-processor directory) by executing the following command:

  docker-compose up

This will start the API container exposing the application's port (set to 8583 in this template app).

In order to test if the application is up, you can call its health endpoint:

  curl http://localhost:8583/health

You should get a response similar to this:

  {"status":"UP","diskSpace":{"status":"UP","total":249644974080,"free":137188298752,"threshold":10485760}}

Alternative script to run application

To skip all the setting up and building, just execute the following command:

./bin/run-in-docker.sh

For more information:

./bin/run-in-docker.sh -h

Script includes bare minimum environment variables necessary to start api instance. Whenever any variable is changed or any other script regarding docker image/container build, the suggested way to ensure all is cleaned up properly is by this command:

docker-compose rm

It clears stopped containers correctly. Might consider removing clutter of images too, especially the ones fiddled with:

docker images

docker image rm <image-id>

There is no need to remove java or similar core images.

License

This project is licensed under the MIT License - see the LICENSE file for details

bulk-scan-payment-processor's People

Contributors

adusumillipraveen avatar aliveni avatar alivenichoppa avatar amstevenson avatar apereverzin avatar dependabot-preview[bot] avatar dependabot[bot] avatar doncem avatar jordanhoey96 avatar joshblackmoor avatar justiceia avatar lgonczar avatar mokainos avatar nitinprabhu avatar renovate[bot] avatar rishikrsharma avatar rkondratowicz avatar ruthkirby avatar someshra avatar thomast1906 avatar timja avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

uk-gov-mirror

bulk-scan-payment-processor's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency com.azure:azure-messaging-servicebus to v7.17.3
  • Update dependency checkstyle to v10.18.1
  • Update dependency com.google.guava:guava to v33.3.0-jre
  • Update dependency hashicorp/terraform to v1.9.5
  • Update dependency org.mockito:mockito-junit-jupiter to v5.13.0
  • Update plugin io.freefair.lombok to v8.10
  • Update plugin org.springframework.boot to v3.3.3
  • Update versions.reformLogging to v6.1.6 (com.github.hmcts.java-logging:logging-appinsights, com.github.hmcts.java-logging:logging)
  • Update Terraform azurerm to v4
  • Update dependency com.github.hmcts:ccd-client to v5
  • Update dependency pmd to v7
  • Update plugin org.owasp.dependencycheck to v10
  • Update plugin org.sonarqube to v5
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 17-distroless
github-actions
.github/workflows/publish-openapi.yaml
  • hmcts/workflow-publish-openapi-spec v1
gradle
settings.gradle
build.gradle
  • io.spring.dependency-management 1.1.6
  • org.springframework.boot 3.2.7
  • org.owasp.dependencycheck 9.1.0
  • com.github.ben-manes.versions 0.51.0
  • org.sonarqube 4.4.1.3373
  • io.freefair.lombok 8.6
  • checkstyle 10.15.0
  • pmd 6.55.0
  • org.apache.httpcomponents.client5:httpclient5 5.3.1
  • javax.jms:javax.jms-api 2.0.1
  • javax.xml.bind:jaxb-api 2.3.1
  • org.springdoc:springdoc-openapi-starter-webmvc-ui 2.6.0
  • com.github.hmcts.java-logging:logging 6.0.1
  • com.github.hmcts.java-logging:logging-appinsights 6.0.1
  • net.logstash.logback:logstash-logback-encoder 8.0
  • com.github.hmcts:service-auth-provider-java-client 4.1.2
  • com.github.hmcts:idam-java-client 3.0.3
  • com.github.hmcts:ccd-client 4.9.2
  • com.google.guava:guava 33.2.1-jre
  • com.launchdarkly:launchdarkly-java-server-sdk 6.3.0
  • org.springframework.cloud:spring-cloud-starter-bootstrap 4.1.1
  • com.azure:azure-messaging-servicebus 7.17.2
  • org.springframework.cloud:spring-cloud-starter-openfeign 4.1.3
  • io.github.openfeign:feign-httpclient 13.2.1
  • io.github.openfeign:feign-jackson 13.2.1
  • org.apache.qpid:qpid-jms-client 2.5.0
  • org.junit.jupiter:junit-jupiter-api 5.10.3
  • org.junit.jupiter:junit-jupiter-engine 5.10.3
  • org.junit.jupiter:junit-jupiter-params 5.10.3
  • org.junit.platform:junit-platform-commons 1.10.3
  • org.junit.platform:junit-platform-engine 1.10.3
  • org.mockito:mockito-junit-jupiter 5.12.0
  • org.mockito:mockito-inline 5.2.0
  • org.awaitility:awaitility 4.2.1
  • org.apiguardian:apiguardian-api 1.1.2
  • io.github.netmikey.logunit:logunit-core 2.0.0
  • com.github.hmcts:fortify-client 1.4.3
  • io.github.netmikey.logunit:logunit-logback 2.0.0
  • org.springframework.cloud:spring-cloud-contract-wiremock 4.1.4
  • com.typesafe:config 1.4.3
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.4
helm-values
charts/bulk-scan-payment-processor/values.yaml
helmv3
charts/bulk-scan-payment-processor/Chart.yaml
  • java 5.2.0
  • servicebus 1.0.6
terraform
infrastructure/main.tf
infrastructure/state.tf
  • azuread 2.47.0
  • azurerm ~> 3.99.0
infrastructure/versions.tf
  • hashicorp/terraform >= 0.13
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.6.6

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.