@defra-fish/business-rules-lib 1.62.0-rc.6 → 1.62.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/constants.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra-fish/business-rules-lib",
3
- "version": "1.62.0-rc.6",
3
+ "version": "1.62.0-rc.7",
4
4
  "description": "Shared business rules for the rod licensing digital services",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,5 +37,5 @@
37
37
  "moment": "^2.29.1",
38
38
  "uuid": "^8.3.2"
39
39
  },
40
- "gitHead": "99bf15ee471b05eb6f99d1051ddf955c1cbed9bf"
40
+ "gitHead": "769c73ef2423de6a672ce76dd831fe5927393373"
41
41
  }
package/src/constants.js CHANGED
@@ -21,6 +21,15 @@ export const PAYMENT_JOURNAL_STATUS_CODES = {
21
21
  Completed: 'Completed'
22
22
  }
23
23
 
24
+ /**
25
+ * Payment status returned by the GOV.UK pay API
26
+ */
27
+ export const PAYMENT_STATUS = {
28
+ Success: 'success',
29
+ Failure: 'failed',
30
+ Error: 'error'
31
+ }
32
+
24
33
  /**
25
34
  * Failure states returned by the GOV.UK pay API
26
35
  * https://docs.payments.service.gov.uk/api_reference/#errors-caused-by-payment-statuses