access 2.0.41 → 2.0.42

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/access/campaign.rb +2 -0
  4. data/lib/access/filter.rb +0 -7
  5. data/lib/access/response.rb +4 -4
  6. data/lib/access/version.rb +1 -1
  7. data/test/access/campaign_test.rb +11 -9
  8. data/test/access/channel_test.rb +1 -0
  9. data/test/access/filter_test.rb +0 -4
  10. data/test/access/spot_test.rb +4 -7
  11. data/test/vcr/cassettes/all_usage.yml +36 -44
  12. data/test/vcr/cassettes/autocomplete_search.yml +49 -48
  13. data/test/vcr/cassettes/autocomplete_search_categories.yml +26 -26
  14. data/test/vcr/cassettes/autocomplete_search_locations.yml +26 -26
  15. data/test/vcr/cassettes/autocomplete_search_offers.yml +29 -29
  16. data/test/vcr/cassettes/autocomplete_search_stores.yml +27 -27
  17. data/test/vcr/cassettes/campaign_find.yml +182 -5526
  18. data/test/vcr/cassettes/campaign_search.yml +1206 -5525
  19. data/test/vcr/cassettes/category_find.yml +32 -26
  20. data/test/vcr/cassettes/category_search.yml +51 -51
  21. data/test/vcr/cassettes/category_search_fail_member_key.yml +24 -24
  22. data/test/vcr/cassettes/channel_find.yml +7 -4
  23. data/test/vcr/cassettes/channel_search.yml +17 -15
  24. data/test/vcr/cassettes/filter_find.yml +131 -25
  25. data/test/vcr/cassettes/filter_search.yml +29 -31
  26. data/test/vcr/cassettes/find_redemption_by_member_key.yml +34 -34
  27. data/test/vcr/cassettes/location_find.yml +459 -438
  28. data/test/vcr/cassettes/location_search.yml +93 -84
  29. data/test/vcr/cassettes/location_search_fail_member_key.yml +24 -24
  30. data/test/vcr/cassettes/member_location_recent.yml +4 -8
  31. data/test/vcr/cassettes/member_query_frequent.yml +4 -8
  32. data/test/vcr/cassettes/member_query_recent.yml +4 -8
  33. data/test/vcr/cassettes/member_show_failure.yml +3 -3
  34. data/test/vcr/cassettes/member_show_success.yml +4 -4
  35. data/test/vcr/cassettes/member_update_success.yml +4 -139
  36. data/test/vcr/cassettes/national_stores.yml +1775 -1827
  37. data/test/vcr/cassettes/oauth_application_find.yml +34 -35
  38. data/test/vcr/cassettes/oauth_application_search.yml +36 -37
  39. data/test/vcr/cassettes/oauth_application_token_find.yml +46 -47
  40. data/test/vcr/cassettes/oauth_application_token_search.yml +47 -48
  41. data/test/vcr/cassettes/offer_find.yml +117 -108
  42. data/test/vcr/cassettes/offer_find_uses_remaining.yml +8 -8
  43. data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +97 -95
  44. data/test/vcr/cassettes/offer_search.yml +113 -113
  45. data/test/vcr/cassettes/offer_search_fail_member_key.yml +24 -24
  46. data/test/vcr/cassettes/offer_with_aggregations.yml +843 -844
  47. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +4 -4
  48. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +6 -6
  49. data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +5 -5
  50. data/test/vcr/cassettes/search_redemption_by_member_key.yml +101 -101
  51. data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +27 -27
  52. data/test/vcr/cassettes/spot_find.yml +9 -7
  53. data/test/vcr/cassettes/spot_search_by_campaign.yml +2901 -235
  54. data/test/vcr/cassettes/spot_search_by_channel.yml +1142 -238
  55. data/test/vcr/cassettes/store_find.yml +32 -26
  56. data/test/vcr/cassettes/store_search.yml +28 -28
  57. data/test/vcr/cassettes/store_search_fail_member_key.yml +24 -24
  58. data/test/vcr/cassettes/subcategory_find.yml +32 -26
  59. data/test/vcr/cassettes/token_find.yml +54 -48
  60. data/test/vcr/cassettes/token_get_first_token.yml +56 -50
  61. data/test/vcr/cassettes/token_search.yml +56 -50
  62. data/test/vcr/cassettes/usage.yml +36 -44
  63. data/test/vcr/cassettes/usage_other.yml +36 -44
  64. data/test/vcr/cassettes/user_register_failure.yml +3 -3
  65. data/test/vcr/cassettes/user_update_success.yml +4 -4
  66. data/test/vcr/cassettes/verify_filter.yml +37 -37
  67. data/test/vcr/cassettes/verify_token.yml +31 -27
  68. metadata +2 -4
  69. data/test/vcr/cassettes/offer_uses_remaining.yml +0 -307
@@ -18,38 +18,38 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
21
+ Server:
22
+ - nginx/1.8.0
23
+ Date:
24
+ - Thu, 21 Jan 2016 18:34:31 GMT
25
+ Content-Type:
26
+ - application/json
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ X-Frame-Options:
32
+ - SAMEORIGIN
33
+ X-Xss-Protection:
34
+ - 1; mode=block
35
+ X-Content-Type-Options:
36
+ - nosniff
23
37
  Access-Control-Allow-Methods:
24
38
  - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
39
  Access-Control-Request-Method:
28
40
  - GET
41
+ Access-Control-Allow-Headers:
42
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
+ Access-Control-Max-Age:
44
+ - '1728000'
45
+ Etag:
46
+ - '"db227f39f17622376ef01312a51d4b38"'
29
47
  Cache-Control:
30
48
  - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Tue, 06 Oct 2015 20:04:58 GMT
35
- Etag:
36
- - '"2fc05acea937ac2f91f371775a92a64f"'
37
- Server:
38
- - nginx/1.6.2
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
49
  X-Request-Id:
44
- - 1211a14c-f954-48ed-b814-fffab1925bce
50
+ - 7406dced-ba81-4b08-abdd-a35d1ef6634a
45
51
  X-Runtime:
46
- - '0.009676'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '569'
51
- Connection:
52
- - keep-alive
52
+ - '0.008891'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
@@ -68,9 +68,13 @@ http_interactions:
68
68
  "program_name": "RWS API - No Filters No Limit",
69
69
  "program_customer_identifier": "200156",
70
70
  "program_end_dts": "2018-08-25T13:21:27.622-06:00",
71
- "program_start_dts": "2015-08-25T13:21:27.622-06:00"
71
+ "program_start_dts": "2015-08-25T13:21:27.622-06:00",
72
+ "color_theme": "default",
73
+ "default_distance": 25,
74
+ "email_opt_out": false,
75
+ "help_phone_number": "1-800-331-8867"
72
76
  }
73
77
  }
74
78
  http_version:
75
- recorded_at: Tue, 06 Oct 2015 20:04:58 GMT
76
- recorded_with: VCR 2.9.3
79
+ recorded_at: Thu, 21 Jan 2016 18:34:36 GMT
80
+ recorded_with: VCR 3.0.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.41
4
+ version: 2.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-15 00:00:00.000000000 Z
13
+ date: 2016-01-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -332,7 +332,6 @@ files:
332
332
  - test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml
333
333
  - test/vcr/cassettes/offer_search.yml
334
334
  - test/vcr/cassettes/offer_search_fail_member_key.yml
335
- - test/vcr/cassettes/offer_uses_remaining.yml
336
335
  - test/vcr/cassettes/offer_with_aggregations.yml
337
336
  - test/vcr/cassettes/redeem_offer_no_redeem_type.yml
338
337
  - test/vcr/cassettes/redeem_offer_with_redeem_type.yml
@@ -464,7 +463,6 @@ test_files:
464
463
  - test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml
465
464
  - test/vcr/cassettes/offer_search.yml
466
465
  - test/vcr/cassettes/offer_search_fail_member_key.yml
467
- - test/vcr/cassettes/offer_uses_remaining.yml
468
466
  - test/vcr/cassettes/offer_with_aggregations.yml
469
467
  - test/vcr/cassettes/redeem_offer_no_redeem_type.yml
470
468
  - test/vcr/cassettes/redeem_offer_with_redeem_type.yml
@@ -1,307 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://offer-demo.adcrws.com/v1/offers/14742589/uses-remaining?member_key=API_RUBY_GEM_TEST
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Access-Token:
11
- - ACCESS_TOKEN
12
- Content-Type:
13
- - application/json
14
- Accept:
15
- - application/json
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Server:
22
- - nginx/1.8.0
23
- Date:
24
- - Tue, 03 Nov 2015 22:48:35 GMT
25
- Content-Type:
26
- - application/json
27
- Transfer-Encoding:
28
- - chunked
29
- Connection:
30
- - keep-alive
31
- X-Frame-Options:
32
- - SAMEORIGIN
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- X-Content-Type-Options:
36
- - nosniff
37
- Access-Control-Allow-Methods:
38
- - POST, GET, PUT, DELETE, OPTIONS
39
- Access-Control-Request-Method:
40
- - GET
41
- Access-Control-Allow-Headers:
42
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
- Access-Control-Max-Age:
44
- - '1728000'
45
- Etag:
46
- - '"3b83a22c2709ca270cea6d0270e50959"'
47
- Cache-Control:
48
- - max-age=0, private, must-revalidate
49
- X-Request-Id:
50
- - 251d1f85-4769-4e39-a72c-d87ef0316aaa
51
- X-Runtime:
52
- - '0.025652'
53
- body:
54
- encoding: UTF-8
55
- string: |-
56
- {
57
- "message": "No redemptions found.",
58
- "status": 200
59
- }
60
- http_version:
61
- recorded_at: Tue, 03 Nov 2015 22:48:36 GMT
62
- - request:
63
- method: get
64
- uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
65
- body:
66
- encoding: US-ASCII
67
- string: ''
68
- headers:
69
- Access-Token:
70
- - ACCESS_TOKEN
71
- Content-Type:
72
- - application/json
73
- Accept:
74
- - application/json
75
- response:
76
- status:
77
- code: 200
78
- message: OK
79
- headers:
80
- Content-Type:
81
- - application/json;charset=UTF-8
82
- Date:
83
- - Tue, 03 Nov 2015 22:59:41 GMT
84
- Etag:
85
- - '"0768ac770eecee2b5623281250b459063"'
86
- Server:
87
- - nginx/1.8.0
88
- Content-Length:
89
- - '204'
90
- Connection:
91
- - keep-alive
92
- body:
93
- encoding: UTF-8
94
- string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/1d4e7ed912ad9f19fefa2f0e51da06990379a398/original.html"},"links":[]}'
95
- http_version:
96
- recorded_at: Tue, 03 Nov 2015 22:59:42 GMT
97
- - request:
98
- method: get
99
- uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
100
- body:
101
- encoding: US-ASCII
102
- string: ''
103
- headers:
104
- Access-Token:
105
- - ACCESS_TOKEN
106
- Content-Type:
107
- - application/json
108
- Accept:
109
- - application/json
110
- response:
111
- status:
112
- code: 200
113
- message: OK
114
- headers:
115
- Content-Type:
116
- - application/json;charset=UTF-8
117
- Date:
118
- - Tue, 03 Nov 2015 22:59:44 GMT
119
- Etag:
120
- - '"030e33510f4e8419ff454b3f1df4e3b70"'
121
- Server:
122
- - nginx/1.8.0
123
- Content-Length:
124
- - '204'
125
- Connection:
126
- - keep-alive
127
- body:
128
- encoding: UTF-8
129
- string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/265502d2b8b950cb76db4a86e0af71dd98fddb7a/original.html"},"links":[]}'
130
- http_version:
131
- recorded_at: Tue, 03 Nov 2015 22:59:45 GMT
132
- - request:
133
- method: get
134
- uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
135
- body:
136
- encoding: US-ASCII
137
- string: ''
138
- headers:
139
- Access-Token:
140
- - ACCESS_TOKEN
141
- Content-Type:
142
- - application/json
143
- Accept:
144
- - application/json
145
- response:
146
- status:
147
- code: 200
148
- message: OK
149
- headers:
150
- Content-Type:
151
- - application/json;charset=UTF-8
152
- Date:
153
- - Tue, 03 Nov 2015 22:59:45 GMT
154
- Etag:
155
- - '"016a7d152e0197298a4c35b133ef014f6"'
156
- Server:
157
- - nginx/1.8.0
158
- Content-Length:
159
- - '204'
160
- Connection:
161
- - keep-alive
162
- body:
163
- encoding: UTF-8
164
- string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/271c6d5ab6d5c3b5f771e8556ddba65c37fc11cf/original.html"},"links":[]}'
165
- http_version:
166
- recorded_at: Tue, 03 Nov 2015 22:59:46 GMT
167
- - request:
168
- method: get
169
- uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
170
- body:
171
- encoding: US-ASCII
172
- string: ''
173
- headers:
174
- Access-Token:
175
- - ACCESS_TOKEN
176
- Content-Type:
177
- - application/json
178
- Accept:
179
- - application/json
180
- response:
181
- status:
182
- code: 200
183
- message: OK
184
- headers:
185
- Content-Type:
186
- - application/json;charset=UTF-8
187
- Date:
188
- - Tue, 03 Nov 2015 22:59:45 GMT
189
- Etag:
190
- - '"016a7d152e0197298a4c35b133ef014f6"'
191
- Server:
192
- - nginx/1.8.0
193
- Content-Length:
194
- - '204'
195
- Connection:
196
- - keep-alive
197
- body:
198
- encoding: UTF-8
199
- string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/271c6d5ab6d5c3b5f771e8556ddba65c37fc11cf/original.html"},"links":[]}'
200
- http_version:
201
- recorded_at: Tue, 03 Nov 2015 22:59:46 GMT
202
- - request:
203
- method: get
204
- uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
205
- body:
206
- encoding: US-ASCII
207
- string: ''
208
- headers:
209
- Access-Token:
210
- - ACCESS_TOKEN
211
- Content-Type:
212
- - application/json
213
- Accept:
214
- - application/json
215
- response:
216
- status:
217
- code: 200
218
- message: OK
219
- headers:
220
- Content-Type:
221
- - application/json;charset=UTF-8
222
- Date:
223
- - Tue, 03 Nov 2015 22:59:46 GMT
224
- Etag:
225
- - '"0d3ca3f8ad27943f740af0b2ae50e4ec4"'
226
- Server:
227
- - nginx/1.8.0
228
- Content-Length:
229
- - '204'
230
- Connection:
231
- - keep-alive
232
- body:
233
- encoding: UTF-8
234
- string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/7ece4b5a91417a5458e398401b14e4e1a0be6d79/original.html"},"links":[]}'
235
- http_version:
236
- recorded_at: Tue, 03 Nov 2015 22:59:47 GMT
237
- - request:
238
- method: get
239
- uri: https://offer-demo.adcrws.com/v1/offers/7365285/uses-remaining?member_key=API_RUBY_GEM_TEST
240
- body:
241
- encoding: US-ASCII
242
- string: ''
243
- headers:
244
- Access-Token:
245
- - ACCESS_TOKEN
246
- Content-Type:
247
- - application/json
248
- Accept:
249
- - application/json
250
- response:
251
- status:
252
- code: 200
253
- message: OK
254
- headers:
255
- Server:
256
- - nginx/1.8.0
257
- Date:
258
- - Tue, 03 Nov 2015 23:00:05 GMT
259
- Content-Type:
260
- - application/json
261
- Transfer-Encoding:
262
- - chunked
263
- Connection:
264
- - keep-alive
265
- X-Frame-Options:
266
- - SAMEORIGIN
267
- X-Xss-Protection:
268
- - 1; mode=block
269
- X-Content-Type-Options:
270
- - nosniff
271
- Access-Control-Allow-Methods:
272
- - POST, GET, PUT, DELETE, OPTIONS
273
- Access-Control-Request-Method:
274
- - GET
275
- Access-Control-Allow-Headers:
276
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
277
- Access-Control-Max-Age:
278
- - '1728000'
279
- Etag:
280
- - '"5f4badf9ae0332fc32b112a4b500a597"'
281
- Cache-Control:
282
- - max-age=0, private, must-revalidate
283
- X-Request-Id:
284
- - 5aa1c451-4dfe-44fd-aace-7bda78e7fdba
285
- X-Runtime:
286
- - '0.058243'
287
- body:
288
- encoding: UTF-8
289
- string: |-
290
- {
291
- "offers": [
292
- {
293
- "offer_uses_remaining": {
294
- "offer_key": 7365285,
295
- "uses_this_period": 100,
296
- "uses_remaining": "unlimited",
297
- "number_of_uses_remaining": null,
298
- "last_used_on_date": "2015-11-03T22:59:46.000Z",
299
- "next_available_use_date": null,
300
- "usable": true
301
- }
302
- }
303
- ]
304
- }
305
- http_version:
306
- recorded_at: Tue, 03 Nov 2015 23:00:06 GMT
307
- recorded_with: VCR 2.9.3