gds-api-adapters 41.0.0 → 41.1.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
  SHA1:
3
- metadata.gz: 3854f3ca7dd0a217574d5fc29aacb3ffba51840e
4
- data.tar.gz: 2ed7f10f5906e6c1a565148c2706052e7b0e2cae
3
+ metadata.gz: 7992dadadafedd2f4a78b3f3aeccddcb1e15a6be
4
+ data.tar.gz: 4fcac2729f4e7fb28b84f0a5771315b36c097d1b
5
5
  SHA512:
6
- metadata.gz: b84e27d411e99f4c43035d7dd976c8ed832a96d7741680d370f164a19d1a17bb416809d2799724ff289c26bb1a4b8afe66d61bed549070c92217e1e349318b75
7
- data.tar.gz: 4006521c7e21eb99e479ba4e8b1b48871c5e3041c518313b5abe47fa389ccd209cae86f1080576634535aaecc1e8317a97cd362662e70de931274586b6a53f37
6
+ metadata.gz: 913d52a000766f5c91b25cf960947175627189dec6f4a9c54598cb7ce76b0027127d00457e09fc971a01fbaa51ad4dc762fefb613bf3c5250d1cf0b7064fb4cb
7
+ data.tar.gz: b74de893e395a9201f9611fbafcad6490574f7b69685788700485adf18075cf8496a43b57f7e77987c6bd5df94477c5f8e848d95b8da757fd9b12cb906a39c7c
@@ -13,6 +13,9 @@ class GdsApi::EmailAlertApi < GdsApi::Base
13
13
  tags = attributes["tags"]
14
14
  links = attributes["links"]
15
15
  document_type = attributes["document_type"]
16
+ email_document_supertype = attributes["email_document_supertype"]
17
+ government_document_supertype = attributes["government_document_supertype"]
18
+ gov_delivery_id = attributes["gov_delivery_id"]
16
19
 
17
20
  if tags && links
18
21
  message = "please provide either tags or links (or neither), but not both"
@@ -23,6 +26,9 @@ class GdsApi::EmailAlertApi < GdsApi::Base
23
26
  params[:tags] = tags if tags
24
27
  params[:links] = links if links
25
28
  params[:document_type] = document_type if document_type
29
+ params[:email_document_supertype] = email_document_supertype if email_document_supertype
30
+ params[:government_document_supertype] = government_document_supertype if government_document_supertype
31
+ params[:gov_delivery_id] = gov_delivery_id if gov_delivery_id
26
32
 
27
33
  search_subscriber_list(params)
28
34
  rescue GdsApi::HTTPNotFound
@@ -100,11 +100,17 @@ module GdsApi
100
100
  tags = attributes["tags"]
101
101
  links = attributes["links"]
102
102
  document_type = attributes["document_type"]
103
+ email_document_supertype = attributes["email_document_supertype"]
104
+ government_document_supertype = attributes["government_document_supertype"]
105
+ gov_delivery_id = attributes["gov_delivery_id"]
103
106
 
104
107
  params = {}
105
108
  params[:tags] = tags if tags
106
109
  params[:links] = links if links
107
110
  params[:document_type] = document_type if document_type
111
+ params[:email_document_supertype] = email_document_supertype if email_document_supertype
112
+ params[:government_document_supertype] = government_document_supertype if government_document_supertype
113
+ params[:gov_delivery_id] = gov_delivery_id if gov_delivery_id
108
114
 
109
115
  query = Rack::Utils.build_nested_query(params)
110
116
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '41.0.0'.freeze
2
+ VERSION = '41.1.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: 41.0.0
4
+ version: 41.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek