@govuk-pay/pay-js-commons 7.0.73 → 7.0.75
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.
- package/README.md +2 -2
- package/lib/constants/index.js +2 -2
- package/lib/logging/keys.js +5 -5
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Reusable js scripts for GOV.UK Pay Node.js projects
|
|
|
11
11
|
This is a collection of client side scripts we use throughout GOV.UK
|
|
12
12
|
Pay in the browser. We call it `browsered` because they are written in
|
|
13
13
|
Node.js and _browsered_ by Browserify to make them safe for all our
|
|
14
|
-
browsers. We browserify [within the microservice when it’s compiled](https://github.com/
|
|
14
|
+
browsers. We browserify [within the microservice when it’s compiled](https://github.com/govuk-pay/pay-selfservice/blob/master/Gruntfile.js#L128).
|
|
15
15
|
|
|
16
16
|
#### List of scripts
|
|
17
17
|
- [Field validation](#field-validation)
|
|
@@ -200,7 +200,7 @@ __IMPORTANT__: Other pull requests will be blocked from merging until the releas
|
|
|
200
200
|
|
|
201
201
|
## Licence
|
|
202
202
|
|
|
203
|
-
[MIT License](https://github.com/
|
|
203
|
+
[MIT License](https://github.com/govuk-pay/pay-js-commons/blob/master/LICENSE)
|
|
204
204
|
|
|
205
205
|
## Vulnerability Disclosure
|
|
206
206
|
|
package/lib/constants/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Metadata Column constants match up those defined:
|
|
5
|
-
https://github.com/
|
|
5
|
+
https://github.com/govuk-pay/pay-java-commons/blob/master/model/src/main/java/uk/gov/pay/commons/model/charge/ExternalMetadata.java
|
|
6
6
|
*/
|
|
7
7
|
module.exports = {
|
|
8
8
|
externalMetadata: {
|
|
@@ -15,7 +15,7 @@ module.exports = {
|
|
|
15
15
|
humanReadableSubscriptions: {
|
|
16
16
|
/*
|
|
17
17
|
Keys match those defined here:
|
|
18
|
-
https://github.com/
|
|
18
|
+
https://github.com/govuk-pay/pay-webhooks/blob/main/src/main/java/uk/gov/pay/webhooks/eventtype/EventTypeName.java
|
|
19
19
|
*/
|
|
20
20
|
CARD_PAYMENT_SUCCEEDED: 'Payment succeeded',
|
|
21
21
|
CARD_PAYMENT_FAILED: 'Payment failed',
|
package/lib/logging/keys.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// This file needs to be kept in sync with its Java consociate
|
|
4
|
-
// https://github.com/
|
|
4
|
+
// https://github.com/govuk-pay/pay-java-commons/blob/master/logging/src/main/java/uk/gov/pay/logging/LoggingKeys.java
|
|
5
5
|
|
|
6
6
|
// "card", "Direct Debit"
|
|
7
7
|
exports.PAYMENT_TYPE = 'payment_type';
|
|
@@ -14,17 +14,17 @@ exports.PROVIDER = 'provider';
|
|
|
14
14
|
|
|
15
15
|
// The digital wallet used for a payment
|
|
16
16
|
// Value must be a value of the WalletType enum
|
|
17
|
-
// https://github.com/
|
|
17
|
+
// https://github.com/govuk-pay/pay-connector/blob/master/src/main/java/uk/gov/pay/connector/wallets/WalletType.java
|
|
18
18
|
exports.WALLET = 'wallet';
|
|
19
19
|
|
|
20
20
|
// The type of a gateway account
|
|
21
21
|
// Value must be a value of the GatewayAccountEntity.Type enum
|
|
22
|
-
// https://github.com/
|
|
22
|
+
// https://github.com/govuk-pay/pay-connector/blob/master/src/main/java/uk/gov/pay/connector/gatewayaccount/model/GatewayAccountEntity.java
|
|
23
23
|
exports.GATEWAY_ACCOUNT_TYPE = 'gateway_account_type';
|
|
24
24
|
|
|
25
25
|
// The type of operation being performed with a gateway for a card payment
|
|
26
26
|
// Value must be a value of the OperationType enum
|
|
27
|
-
// https://github.com/
|
|
27
|
+
// https://github.com/govuk-pay/pay-connector/blob/master/src/main/java/uk/gov/pay/connector/paymentprocessor/model/OperationType.java
|
|
28
28
|
exports.GATEWAY_CARD_OPERATION = 'gateway_card_operation';
|
|
29
29
|
|
|
30
30
|
// The amount of a payment in pence
|
|
@@ -53,7 +53,7 @@ exports.LEDGER_EVENT_TYPE = 'ledger_event_type';
|
|
|
53
53
|
|
|
54
54
|
// The type of an internal event recorded by Direct Debit
|
|
55
55
|
// Value must be a value from the GovUkPayEventType enum
|
|
56
|
-
// https://github.com/
|
|
56
|
+
// https://github.com/govuk-pay/pay-direct-debit-connector/blob/master/src/main/java/uk/gov/pay/directdebit/events/model/GovUkPayEventType.java
|
|
57
57
|
exports.DIRECT_DEBIT_INTERNAL_EVENT_TYPE = 'direct_debit_internal_event_type';
|
|
58
58
|
|
|
59
59
|
// The current (or new if transitioning) internal state of a payment, mandate etc.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-pay/pay-js-commons",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.75",
|
|
4
4
|
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^22.22.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/
|
|
27
|
+
"url": "git+https://github.com/govuk-pay/pay-js-commons.git"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"registry": "https://registry.npmjs.org"
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
],
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"bugs": {
|
|
43
|
-
"url": "https://github.com/
|
|
43
|
+
"url": "https://github.com/govuk-pay/pay-js-commons/issues"
|
|
44
44
|
},
|
|
45
|
-
"homepage": "https://github.com/
|
|
45
|
+
"homepage": "https://github.com/govuk-pay/pay-js-commons#readme",
|
|
46
46
|
"xo": {
|
|
47
47
|
"space": true,
|
|
48
48
|
"semicolon": false,
|