Skip to content

Commit

Permalink
kickstart gateway (#36)
Browse files Browse the repository at this point in the history
* kickstart gateway

* add \ for fileMask separation on filetype
  • Loading branch information
GodsonLeigh authored Dec 13, 2024
1 parent 1d2d18d commit 6f7e626
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ This service is part of the [Payment Hub](https://github.com/DEFRA/ffc-pay-core)

## Validation

There are four files that make up a payment batch. All four are required before the batch can be validated.
There are four files that make up a payment batch. All four are required before the batch can be validated.

### Required files

| File | Description | Mask |
| --- | --- | --- |
| File | Description | Mask |
| ------------------ | ----------------------------------------- | -------------------- |
| Payment batch file | Contains a collection of payment requests | `PENDING_{name}.dat` |

- payment batch file, `{name}.dat`
- control file, `CTL_{name}.dat`
- checksum file, `{name}.txt`
- checksum control file, `CTL_{name}.txt`


On successful validation, `PENDING_` is added to all filenames and all but the payment batch file are moved to the `inbound` virtual directory.

## Prerequisites
Expand All @@ -28,6 +27,7 @@ On successful validation, `PENDING_` is added to all filenames and all but the p
- Docker Compose

Optional:

- Kubernetes
- Helm

Expand Down
4 changes: 2 additions & 2 deletions app/config/scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const schema = Joi.object({
imps: Joi.object({
name: Joi.string().default(IMPS),
fileMasks: Joi.object({
inbound: Joi.array().items(Joi.string()).default([/^CTL_FIN_IMPS_A[P|R]_\d*.INT$/]),
outbound: Joi.array().items(Joi.string()).default([/^CTL_RET_IMPS_A[P|R]_\d*.INT$/])
inbound: Joi.array().items(Joi.string()).default([/^CTL_FIN_IMPS_A[P|R]_\d*\.INT$/]),
outbound: Joi.array().items(Joi.string()).default([/^CTL_RET_IMPS_A[P|R]_\d*\.INT$/])
}),
server: Joi.string().default(CALLISTO),
directories: Joi.object({
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffc-pay-gateway",
"version": "1.4.16",
"version": "1.4.17",
"description": "Managed Gateway integration",
"homepage": "https://github.com/DEFRA/ffc-pay-gateway",
"main": "app/index.js",
Expand Down

0 comments on commit 6f7e626

Please sign in to comment.