New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/companieshouse/penalty-payment-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/companieshouse/penalty-payment-api

  • v0.0.0-20250124145637-453c5936b1be
  • Source
  • Go
  • Socket score

Version published
Created
Source

PENALTY PAYMENT API

Penalty Payment Service (PPS) API which provides an interface for Creating, Getting, and Patching Penalties.

Requirements

In order to run this API locally you will need to install the following:

  • Go
  • Git

Getting Started

  1. Clone this repository: go get github.com/companieshouse/penalty-payment-api
  2. Build the executable: make build

Configuration

VariableDefaultDescription
E5_API_URL-E5 API Address
E5_USERNAME-E5 API Username
BIND_ADDR-The host:port to bind to
MONGODB_URL-The mongo db connection string
PPS_MONGODB_DATABASE-The database name to connect to e.g. late_filing_penalties
PPS_MONGODB_COLLECTION-The collection name e.g. payable_resources
KAFKA_BROKER_ADDR_Kafka Broker Address
SCHEMA_REGISTRY_URL_Schema Registry URL
API_URL_The application endpoint for the API, for go-sdk-manager integration
PAYMENTS_API_URL_The base path for the payments API, for go-sdk-manager integration
CHS_URL_CHS URL
WEEKLY_MAINTENANCE_START_TIME_Start time of weekly maintenance e.g. 0700
WEEKLY_MAINTENANCE_END_TIME_End time of weekly maintenance e.g. 0730
WEEKLY_MAINTENANCE_DAY_Day of weekly maintenance e.g. 0 (zero for Sunday)
PLANNED_MAINTENANCE_START_TIME_Start time and date of planned maintenance e.g. 01 Jan 19 15:04 BST
PLANNED_MAINTENANCE_END_TIME_End time and date of planned maintenance e.g. 31 Jan 19 16:59 BST

Endpoints

MethodPathDescription
GET/healthcheckStandard healthcheck endpoint
GET/healthcheck/finance-systemHealthcheck endpoint to check whether the finance system is available
GET/company/{company_number}/penalties/late-filingList the Late Filing Penalties for a company
POST/company/{company_number}/penalties/late-filing/payableCreate a payable penalty resource
GET/company/{company_number}/penalties/late-filing/payable/{id}Get a payable resource
GET/company/{company_number}/penalties/late-filing/payable/{id}/paymentList the cost items related to the penalty resource
PATCH/company/{company_number}/penalties/late-filing/payable/{id}/paymentMark the resource as paid

External Finance Systems

The only external finance system currently supported is E5.

Docker support

Pull image from private CH registry by running docker pull 169942020521.dkr.ecr.eu-west-2.amazonaws.com/local/penalty-payment-api:latest command or run the following steps to build image locally:

  1. export SSH_PRIVATE_KEY_PASSPHRASE='[your SSH key passhprase goes here]' (optional, set only if SSH key is passphrase protected)
  2. DOCKER_BUILDKIT=0 docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" --build-arg SSH_PRIVATE_KEY_PASSPHRASE -t 169942020521.dkr.ecr.eu-west-2.amazonaws.com/local/penalty-payment-api:latest .

FAQs

Package last updated on 24 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc