@govuk-pay/cli 0.0.123 → 0.0.126

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.123",
3
+ "version": "0.0.126",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
package/readme.md CHANGED
@@ -58,14 +58,14 @@ Config files needed by the pay cli will go in `$HOME/.pay-cli"
58
58
 
59
59
  #### Pay Local Config Files
60
60
 
61
- You can override environment variables set in the .env files in [the pay local services local config directory](https://github.com/alphagov/pay-cli/tree/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services) for
61
+ You can override environment variables set in the .env files in [the pay local services local config directory](https://github.com/govuk-pay/pay-cli/tree/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services) for
62
62
  specific containers by placing files in `$HOME/.pay-cli/local/environment-overrides/<app_name>.env`.
63
63
 
64
- For example to override an environment variable for connector which was set in [connector.env](https://github.com/alphagov/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/connector.env)
64
+ For example to override an environment variable for connector which was set in [connector.env](https://github.com/govuk-pay/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/connector.env)
65
65
  you could create the file `$HOME/.pay-cli/local/environment-overrides/connector.env`
66
66
 
67
67
  Note: This will only override variables set in the .env files, it will not override any variables which get declared in an `environment` configuration option in the generated docker-compose files. These are generated from the
68
- [docker-compose.erb](https://github.com/alphagov/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb#L5) template.
68
+ [docker-compose.erb](https://github.com/govuk-pay/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb#L5) template.
69
69
 
70
70
  You can configure custom clusters by creating a file at `$HOME/.pay-cli/local/custom-clusters.yaml` following the schema:
71
71
  ```yaml
@@ -1,6 +1,6 @@
1
1
  # **DEPRECATED** pay-cli
2
2
 
3
- ***NOTE:*** This is deprecated. Please use the [Node.js version of pay-cli](https://www.github.com/alphagov/pay-cli)
3
+ ***NOTE:*** This is deprecated. Please use the [Node.js version of pay-cli](https://www.github.com/govuk-pay/pay-cli)
4
4
 
5
5
  To execute this cli you should now use the Node.js version legacy subcommand `pay legacy -- --help`
6
6
 
@@ -25,12 +25,12 @@ class PayCLI::Commands::Doctor
25
25
  def check_workspace!
26
26
  # Normally in doctor we continue to more tests, but if WORKSPACE isn't set lots of the tests will result in a crash
27
27
  if ! ENV.has_key?('WORKSPACE')
28
- STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out alphagov repos"
28
+ STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out govuk-pay repos"
29
29
  exit 1
30
30
  end
31
31
 
32
32
  if !File.directory?(ENV['WORKSPACE'])
33
- STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out alphagov repos"
33
+ STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out govuk-pay repos"
34
34
  exit 1
35
35
  end
36
36
 
@@ -48,7 +48,7 @@ module PayCLI::Commands::Tf
48
48
  def self.item!(command, environment, deployment_type, args)
49
49
  account = environment.split('-').first
50
50
  if ! ENV.has_key?('WORKSPACE')
51
- STDERR.puts 'Error: You must set your WORKSPACE env var to the directory where you checkout alphagov github projects'
51
+ STDERR.puts 'Error: You must set your WORKSPACE env var to the directory where you checkout govuk-pay github projects'
52
52
  exit 1
53
53
  end
54
54
 
@@ -42,7 +42,7 @@ class PayCLI::YkmanOathCredentialConfig
42
42
  yk_name
43
43
  end
44
44
 
45
- private
45
+ private
46
46
  def default_config_file_path
47
47
  Pathname.new(Dir.home) + ".govuk_pay_cli_config.yml"
48
48
  end
@@ -61,9 +61,9 @@ private
61
61
  <<-YAML_PREAMBLE
62
62
  # This file is automatically generated by the GOV.UK Pay CLI
63
63
  # You can edit settings here if you want
64
- #
65
- # For more info see https://github.com/alphagov/pay-infra/tree/master/cli
66
- #
64
+ #
65
+ # For more info see https://github.com/govuk-pay/pay-infra/tree/master/cli
66
+ #
67
67
  YAML_PREAMBLE
68
68
  end
69
69
 
@@ -18,7 +18,8 @@ exports.PRODUCTION_2_CONFIG = {
18
18
  DB_SUPPORT_PASSWORD_READWRITE: 'aws/rds/support_readwrite_users/production/connector_support_readwrite', // pragma: allowlist secret
19
19
  NOTIFY_API_KEY: 'notify/api_key/deploy/production.connector.notify_api_key', // pragma: allowlist secret
20
20
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_TEST: 'adyen/production/test/company-account-api-key', // pragma: allowlist secret
21
- GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE: '', // pragma: allowlist secret
21
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_TEST: 'adyen/production/test/balance-platform-api-key', // pragma: allowlist secret
22
+ GDS_CONNECTOR_ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY_TEST: 'adyen/production/test/legal-entity-management-api-key', // pragma: allowlist secret
22
23
  GDS_CONNECTOR_STRIPE_AUTH_TOKEN: 'stripe/production/test/account-api-key',
23
24
  GDS_CONNECTOR_STRIPE_AUTH_LIVE_TOKEN: 'stripe/production/live/account-api-key',
24
25
  GDS_CONNECTOR_STRIPE_WEBHOOK_SIGN_SECRET: 'stripe/production/test/webhook-secret', // pragma: allowlist secret
@@ -19,6 +19,9 @@ exports.STAGING_2_CONFIG = {
19
19
  NOTIFY_API_KEY: 'notify/api_key/deploy/staging.connector.notify_api_key', // pragma: allowlist secret
20
20
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_TEST: 'adyen/staging/test/company-account-api-key', // pragma: allowlist secret
21
21
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE: 'adyen/staging/test/company-account-api-key', // pragma: allowlist secret
22
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_TEST: 'adyen/staging/test/balance-platform-api-key', // pragma: allowlist secret
23
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_LIVE: 'adyen/staging/test/balance-platform-api-key', // pragma: allowlist secret
24
+ GDS_CONNECTOR_ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY_TEST: 'adyen/staging/test/legal-entity-management-api-key', // pragma: allowlist secret
22
25
  GDS_CONNECTOR_STRIPE_AUTH_TOKEN: 'stripe/staging/test/account-api-key',
23
26
  GDS_CONNECTOR_STRIPE_AUTH_LIVE_TOKEN: 'stripe/staging/test/account-api-key',
24
27
  GDS_CONNECTOR_STRIPE_WEBHOOK_SIGN_SECRET: 'stripe/staging/test/webhook-secret', // pragma: allowlist secret
@@ -33,6 +36,9 @@ exports.STAGING_2_CONFIG = {
33
36
  SANDBOX_AUTH_TOKEN: 'smoke-test-api-token/notifications/staging_sandbox_auth_token'
34
37
  },
35
38
  frontend: {
39
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
40
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
36
42
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
37
43
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
38
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -19,6 +19,9 @@ exports.TEST_12_CONFIG = {
19
19
  NOTIFY_API_KEY: 'notify/api_key/ci/test.connector.notify_api_key', // pragma: allowlist secret
20
20
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_TEST: 'adyen/test/test/company-account-api-key', // pragma: allowlist secret
21
21
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE: 'adyen/test/test/company-account-api-key', // pragma: allowlist secret
22
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_TEST: 'adyen/test/test/balance-platform-api-key', // pragma: allowlist secret
23
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_LIVE: 'adyen/test/test/balance-platform-api-key', // pragma: allowlist secret
24
+ GDS_CONNECTOR_ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY_TEST: 'adyen/test/test/legal-entity-management-api-key', // pragma: allowlist secret
22
25
  GDS_CONNECTOR_STRIPE_AUTH_TOKEN: 'stripe/test/test/account-api-key',
23
26
  GDS_CONNECTOR_STRIPE_AUTH_LIVE_TOKEN: 'stripe/test/test/account-api-key',
24
27
  GDS_CONNECTOR_STRIPE_WEBHOOK_SIGN_SECRET: 'stripe/test/test/webhook-secret', // pragma: allowlist secret
@@ -35,6 +38,9 @@ exports.TEST_12_CONFIG = {
35
38
  frontend: {
36
39
  SESSION_ENCRYPTION_KEY: '',
37
40
  SESSION_ENCRYPTION_KEY_2: '',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
42
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
43
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
38
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
39
45
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
40
46
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -19,6 +19,9 @@ exports.TEST_PERF_1_CONFIG = {
19
19
  NOTIFY_API_KEY: 'notify/api_key/ci/test_perf.connector.notify_api_key', // pragma: allowlist secret
20
20
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_TEST: 'adyen/test/test/company-account-api-key', // pragma: allowlist secret
21
21
  GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE: 'adyen/test/test/company-account-api-key', // pragma: allowlist secret
22
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_TEST: 'adyen/test/test/balance-platform-api-key', // pragma: allowlist secret
23
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_LIVE: 'adyen/test/test/balance-platform-api-key', // pragma: allowlist secret
24
+ GDS_CONNECTOR_ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY_TEST: 'adyen/test/test/legal-entity-management-api-key', // pragma: allowlist secret
22
25
  GDS_CONNECTOR_STRIPE_AUTH_TOKEN: 'stripe/test/test/account-api-key',
23
26
  GDS_CONNECTOR_STRIPE_AUTH_LIVE_TOKEN: 'stripe/test/test/account-api-key',
24
27
  GDS_CONNECTOR_STRIPE_WEBHOOK_SIGN_SECRET: 'stripe/test/test/webhook-secret', // pragma: allowlist secret
@@ -35,6 +38,9 @@ exports.TEST_PERF_1_CONFIG = {
35
38
  frontend: {
36
39
  SESSION_ENCRYPTION_KEY: '',
37
40
  SESSION_ENCRYPTION_KEY_2: '',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
42
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
43
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
38
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
39
45
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
40
46
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -12,7 +12,9 @@ exports.PRODUCTION_2_CONFIG = {
12
12
  DB_SUPPORT_USER_READONLY: 'connector_support_readonly',
13
13
  DB_SUPPORT_USER_READWRITE: 'connector_support_readwrite',
14
14
  DB_USER: 'connector2',
15
- NOTIFY_SECRET: ''
15
+ NOTIFY_SECRET: '',
16
+ GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_LIVE: '',
17
+ GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE: ''
16
18
  },
17
19
  frontend: {
18
20
  AB_TEST_THRESHOLD: '50'
@@ -101,6 +101,9 @@ exports.SERVICE_SECRETS = {
101
101
  'DB_USER',
102
102
  'GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_TEST',
103
103
  'GDS_CONNECTOR_ADYEN_COMPANY_ACCOUNT_API_KEY_LIVE',
104
+ 'GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_TEST',
105
+ 'GDS_CONNECTOR_ADYEN_BALANCE_PLATFORM_API_KEY_LIVE',
106
+ 'GDS_CONNECTOR_ADYEN_LEGAL_ENTITY_MANAGEMENT_API_KEY_TEST',
104
107
  'GDS_CONNECTOR_STRIPE_AUTH_LIVE_TOKEN',
105
108
  'GDS_CONNECTOR_STRIPE_AUTH_TOKEN',
106
109
  'GDS_CONNECTOR_STRIPE_CONNECT_APPLICATION_WEBHOOK_LIVE_SIGN_SECRET',
@@ -122,6 +125,9 @@ exports.SERVICE_SECRETS = {
122
125
  ],
123
126
  frontend: [
124
127
  'AB_TEST_THRESHOLD',
128
+ 'ADYEN_APPLE_PAY_MERCHANT_ID',
129
+ 'ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE',
130
+ 'ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY',
125
131
  'GOOGLE_PAY_MERCHANT_ID',
126
132
  'GOOGLE_PAY_MERCHANT_ID_2',
127
133
  'SENTRY_CSP_REPORT_URI',