@govuk-pay/pay-js-commons 3.6.1 → 3.8.0

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.
@@ -0,0 +1,27 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <JSCodeStyleSettings version="0">
4
+ <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
5
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
6
+ <option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />
7
+ <option name="USE_DOUBLE_QUOTES" value="false" />
8
+ <option name="FORCE_QUOTE_STYlE" value="true" />
9
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
10
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
11
+ </JSCodeStyleSettings>
12
+ <codeStyleSettings language="JavaScript">
13
+ <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
14
+ <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
15
+ <option name="ALIGN_MULTILINE_FOR" value="false" />
16
+ <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
17
+ <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
18
+ <option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
19
+ <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
20
+ <indentOptions>
21
+ <option name="INDENT_SIZE" value="2" />
22
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
23
+ <option name="TAB_SIZE" value="2" />
24
+ </indentOptions>
25
+ </codeStyleSettings>
26
+ </code_scheme>
27
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="StandardJS" enabled="true" level="ERROR" enabled_by_default="true" />
5
+ </profile>
6
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/pay-js-commons.iml" filepath="$PROJECT_DIR$/.idea/pay-js-commons.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
@@ -0,0 +1,11 @@
1
+
2
+ 9
3
+ README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d
4
+ _
5
+ /sass/custom/north-yorkshire-county-council.scss,a/1/a16ffce9c4014536b0d5997f1ff408f19a8510f7
6
+ <
7
+ package.json,7/0/7030d0b2f71b999ff89a343de08c414af32fc93a
8
+ ^
9
+ .images/custom/scottish-government-planning.svg,b/9/b990dd75f097078d3650d1f96db34389de3006f0
10
+ ]
11
+ -sass/custom/scottish-government-planning.scss,f/7/f7a87ae0426cafc2323c6c7ea540fb129c638c87
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
Binary file
@@ -17,8 +17,9 @@ module.exports = {
17
17
  Keys match those defined here:
18
18
  https://github.com/alphagov/pay-webhooks/blob/main/src/main/java/uk/gov/pay/webhooks/eventtype/EventTypeName.java
19
19
  */
20
- CARD_PAYMENT_STARTED: 'Payment started',
21
20
  CARD_PAYMENT_SUCCEEDED: 'Payment succeeded',
21
+ CARD_PAYMENT_FAILED: 'Payment failed',
22
+ CARD_PAYMENT_EXPIRED: 'Payment expired',
22
23
  CARD_PAYMENT_CAPTURED: 'Payment captured',
23
24
  CARD_PAYMENT_REFUNDED: 'Payment refunded'
24
25
  }
@@ -70,4 +70,6 @@ exports.SECURE_TOKEN = 'secure_token'; // User external id
70
70
 
71
71
  exports.USER_EXTERNAL_ID = 'user_external_id'; // A service's external id
72
72
 
73
- exports.SERVICE_EXTERNAL_ID = 'service_external_id';
73
+ exports.SERVICE_EXTERNAL_ID = 'service_external_id'; // product external id
74
+
75
+ exports.PRODUCT_EXTERNAL_ID = 'product_external_id';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/pay-js-commons",
3
- "version": "3.6.1",
3
+ "version": "3.8.0",
4
4
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
5
5
  "engines": {
6
6
  "node": "^16.14.0"
@@ -128,14 +128,14 @@
128
128
  "standard": "^16.0.3",
129
129
  "uglify-js": "^3.6.0",
130
130
  "watchify": "^4.0.0",
131
- "xo": "^0.51.0"
131
+ "xo": "^0.52.1"
132
132
  },
133
133
  "directories": {
134
134
  "lib": "lib"
135
135
  },
136
136
  "dependencies": {
137
137
  "lodash": "4.17.21",
138
- "moment-timezone": "0.5.34",
138
+ "moment-timezone": "0.5.37",
139
139
  "rfc822-validate": "1.0.0",
140
140
  "slugify": "1.6.5",
141
141
  "winston": "3.8.1"