gds-api-adapters 71.7.0 → 71.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.
- checksums.yaml +4 -4
- data/lib/gds_api/email_alert_api.rb +2 -2
- data/lib/gds_api/test_helpers/email_alert_api.rb +5 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7748e3505408224466ce191efa83ee616ae6bd602f3cec8760fedb09aaaed859
|
|
4
|
+
data.tar.gz: c4e7b3e9f9af207d97e5a62e776f6de9dfbea8791e20636e64740e362a8a0457
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebd5592b71e1ccea18a2578e52307227689036b8bbd35daf20c7cd0bf7eb67bd85af32fbe8a016e010bdecd1b28e37a4bdeebc3513b9d4f17a0178078828c1db
|
|
7
|
+
data.tar.gz: dd41b35ed23b58a7049c5b3327225781a85fa4396f278d3ef064909e453be3b898272504d82beff32c0a06c71e620956d9fa9d0984b04e1be31bd5ed40c00bb5
|
|
@@ -156,10 +156,10 @@ class GdsApi::EmailAlertApi < GdsApi::Base
|
|
|
156
156
|
# @param [string] Subscriber new_address
|
|
157
157
|
#
|
|
158
158
|
# @return [Hash] subscriber
|
|
159
|
-
def change_subscriber(id:, new_address:)
|
|
159
|
+
def change_subscriber(id:, new_address:, on_conflict: nil)
|
|
160
160
|
patch_json(
|
|
161
161
|
"#{endpoint}/subscribers/#{uri_encode(id)}",
|
|
162
|
-
new_address: new_address,
|
|
162
|
+
{ new_address: new_address, on_conflict: on_conflict }.compact,
|
|
163
163
|
)
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -283,6 +283,11 @@ module GdsApi
|
|
|
283
283
|
.to_return(status: 404)
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
def stub_email_alert_api_subscriber_verification_email_linked_to_govuk_account
|
|
287
|
+
stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/subscribers/auth-token")
|
|
288
|
+
.to_return(status: 403)
|
|
289
|
+
end
|
|
290
|
+
|
|
286
291
|
def stub_email_alert_api_authenticate_subscriber_by_govuk_account(govuk_account_session, subscriber_id, address, govuk_account_id: "user-id", new_govuk_account_session: nil)
|
|
287
292
|
stub_request(:post, "#{EMAIL_ALERT_API_ENDPOINT}/subscribers/govuk-account")
|
|
288
293
|
.with(
|
data/lib/gds_api/version.rb
CHANGED
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: 71.
|
|
4
|
+
version: 71.8.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-
|
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|