gds-api-adapters 72.1.0 → 73.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51407d1cee42f0e1fbdf73f71f91f8e2b179adb56b81a9737ce26e334084644a
4
- data.tar.gz: e8d397558f602abf5989795c92a2ec62880f0919d72897fde2e8e0ce83af2cdc
3
+ metadata.gz: e27eb1087cbf7f61da350a3c09dc2d1c235ed5b6ee6b096ae9ca3c3f25edb2e9
4
+ data.tar.gz: 24af32669af502a68d4085e86be5705e8ff98f6899e50f6b01df1b3b884a2e56
5
5
  SHA512:
6
- metadata.gz: 64ea0ab0af3fd9e4f4fe99a8bd8eab5179dc8216a2c45f4e76691150eaf8421d89ba197f923e56246ed5ed1292c49c5697e0c6c56043702e0a0cf1defd0fa402
7
- data.tar.gz: 5a04715d1b8711171adb7d34cafc0f5f4ac499cf5157563c9f39c4fe949fef397ddbc1eab7a40eb9e5f355154cec76ff5b892d7f238515747390a3cb8ec82b3f
6
+ metadata.gz: b4b6328db22729d14c8f4f456d8886dd2de5de9d75efd1fbb5f00124f1f067fe520ea5556d67ac32ffd36653598ee9895d029abfcd2ecc3a1ef22c8d8b618574
7
+ data.tar.gz: 9c78e6148f87c00c682222bf1468a32b9e70aa05b7a1163f2aabc2b7d0c050d591a43a80ccf502e6f7c01b695859effc33879ca3ced8dd7f3912eed4a2f75c39
@@ -89,17 +89,6 @@ class GdsApi::AccountApi < GdsApi::Base
89
89
  patch_json("#{endpoint}/api/attributes", { attributes: attributes }, auth_headers(govuk_account_session))
90
90
  end
91
91
 
92
- # Look up the names of a user's attributes
93
- #
94
- # @param [String] attributes Names of the attributes to check
95
- # @param [String] govuk_account_session Value of the session header
96
- #
97
- # @return [Hash] The attribute names (if present), and a new session header
98
- def get_attributes_names(attributes:, govuk_account_session:)
99
- querystring = nested_query_string({ attributes: attributes }.compact)
100
- get_json("#{endpoint}/api/attributes/names?#{querystring}", auth_headers(govuk_account_session))
101
- end
102
-
103
92
  # Get the details of an account-linked email subscription.
104
93
  #
105
94
  # @param [String] name Name of the subscription
@@ -280,40 +280,6 @@ module GdsApi
280
280
  )
281
281
  end
282
282
 
283
- ###########################
284
- # GET /api/attributes/names
285
- ###########################
286
- def stub_account_api_get_attributes_names(attributes: [], **options)
287
- querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
288
- stub_account_api_request(
289
- :get,
290
- "/api/attributes/names?#{querystring}",
291
- response_body: { values: attributes },
292
- **options,
293
- )
294
- end
295
-
296
- def stub_account_api_unauthorized_get_attributes_names(attributes: [], **options)
297
- querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
298
- stub_account_api_request(
299
- :get,
300
- "/api/attributes/names?#{querystring}",
301
- response_status: 401,
302
- **options,
303
- )
304
- end
305
-
306
- def stub_account_api_forbidden_get_attributes_names(attributes: [], needed_level_of_authentication: "level1", **options)
307
- querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
308
- stub_account_api_request(
309
- :get,
310
- "/api/attributes/names?#{querystring}",
311
- response_status: 403,
312
- response_body: { needed_level_of_authentication: needed_level_of_authentication },
313
- **options,
314
- )
315
- end
316
-
317
283
  ######################
318
284
  # GET /api/saved-pages
319
285
  ######################
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "72.1.0".freeze
2
+ VERSION = "73.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 72.1.0
4
+ version: 73.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-27 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable