access 2.0.11 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/access.rb +1 -0
  4. data/lib/access/api.rb +15 -1
  5. data/lib/access/redemption.rb +26 -0
  6. data/lib/access/response.rb +8 -9
  7. data/lib/access/version.rb +1 -1
  8. data/test/access/filter_test.rb +2 -0
  9. data/test/access/offer_test.rb +20 -2
  10. data/test/access/redeem_test.rb +1 -1
  11. data/test/access/redemption_test.rb +43 -0
  12. data/test/access/report_test.rb +77 -30
  13. data/test/test_helper.rb +5 -3
  14. data/test/vcr/cassettes/all_usage.yml +92 -0
  15. data/test/vcr/cassettes/autocomplete_search.yml +83 -0
  16. data/test/{fixtures → vcr/cassettes}/autocomplete_search_categories.yml +10 -10
  17. data/test/{fixtures → vcr/cassettes}/autocomplete_search_locations.yml +5 -5
  18. data/test/{fixtures → vcr/cassettes}/autocomplete_search_offers.yml +10 -10
  19. data/test/{fixtures → vcr/cassettes}/autocomplete_search_stores.yml +12 -12
  20. data/test/{fixtures → vcr/cassettes}/category_find.yml +7 -7
  21. data/test/{fixtures → vcr/cassettes}/category_search.yml +12 -12
  22. data/test/{fixtures → vcr/cassettes}/category_search_fail_member_key.yml +5 -5
  23. data/test/{fixtures → vcr/cassettes}/filter_find.yml +5 -5
  24. data/test/{fixtures → vcr/cassettes}/filter_search.yml +8 -8
  25. data/test/vcr/cassettes/find_redemption_by_member_key.yml +131 -0
  26. data/test/{fixtures → vcr/cassettes}/location_find.yml +8 -8
  27. data/test/{fixtures → vcr/cassettes}/location_search.yml +9 -9
  28. data/test/{fixtures → vcr/cassettes}/location_search_fail_member_key.yml +5 -5
  29. data/test/vcr/cassettes/member_location_frequent.yml +70 -0
  30. data/test/vcr/cassettes/member_location_recent.yml +70 -0
  31. data/test/vcr/cassettes/member_query_frequent.yml +73 -0
  32. data/test/vcr/cassettes/member_query_recent.yml +73 -0
  33. data/test/vcr/cassettes/national_stores.yml +1966 -0
  34. data/test/{fixtures → vcr/cassettes}/oauth_application_find.yml +5 -5
  35. data/test/{fixtures → vcr/cassettes}/oauth_application_search.yml +8 -8
  36. data/test/{fixtures → vcr/cassettes}/oauth_application_token_find.yml +5 -5
  37. data/test/{fixtures → vcr/cassettes}/oauth_application_token_search.yml +5 -5
  38. data/test/{fixtures → vcr/cassettes}/offer_find.yml +8 -8
  39. data/test/{fixtures → vcr/cassettes}/offer_search.yml +9 -9
  40. data/test/{fixtures → vcr/cassettes}/offer_search_fail_member_key.yml +5 -5
  41. data/test/vcr/cassettes/offer_with_aggregations.yml +935 -0
  42. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +38 -0
  43. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +38 -0
  44. data/test/vcr/cassettes/search_redemption_by_member_key.yml +762 -0
  45. data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +62 -0
  46. data/test/{fixtures → vcr/cassettes}/store_find.yml +5 -5
  47. data/test/{fixtures → vcr/cassettes}/store_search.yml +8 -8
  48. data/test/{fixtures → vcr/cassettes}/store_search_fail_member_key.yml +7 -7
  49. data/test/{fixtures → vcr/cassettes}/subcategory_find.yml +7 -7
  50. data/test/vcr/cassettes/token_find.yml +93 -0
  51. data/test/vcr/cassettes/token_get_first_token.yml +107 -0
  52. data/test/vcr/cassettes/token_search.yml +107 -0
  53. data/test/vcr/cassettes/usage.yml +92 -0
  54. data/test/vcr/cassettes/usage_other.yml +92 -0
  55. data/test/{fixtures → vcr/cassettes}/verify_filter.yml +17 -24
  56. data/test/{fixtures → vcr/cassettes}/verify_token.yml +6 -6
  57. metadata +91 -64
  58. data/test/fixtures/autocomplete_search.yml +0 -82
  59. data/test/fixtures/national_stores.yml +0 -1992
  60. data/test/fixtures/redeem_offer_no_redeem_type.yml +0 -73
  61. data/test/fixtures/token_find.yml +0 -92
  62. data/test/fixtures/token_get_first_token.yml +0 -106
  63. data/test/fixtures/token_search.yml +0 -106
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/?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
+ Content-Type:
22
+ - application/json;charset=UTF-8
23
+ Date:
24
+ - Tue, 06 Oct 2015 20:05:02 GMT
25
+ Etag:
26
+ - '"0ff5ab06abc27ae6bc33adccffb86e1ff"'
27
+ Server:
28
+ - nginx/1.6.2
29
+ Content-Length:
30
+ - '136'
31
+ Connection:
32
+ - keep-alive
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
36
+ http_version:
37
+ recorded_at: Tue, 06 Oct 2015 20:05:02 GMT
38
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?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
+ Content-Type:
22
+ - application/json;charset=UTF-8
23
+ Date:
24
+ - Tue, 06 Oct 2015 20:20:46 GMT
25
+ Etag:
26
+ - '"05588d6558ff0f6af5fa3c7fdbebecc1c"'
27
+ Server:
28
+ - nginx/1.6.2
29
+ Content-Length:
30
+ - '204'
31
+ Connection:
32
+ - keep-alive
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/b7a7d10cfb71d571cbc6a53409892c35900f49a5/original.html"},"links":[]}'
36
+ http_version:
37
+ recorded_at: Tue, 06 Oct 2015 20:20:46 GMT
38
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,762 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/offer-redemptions
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
+ Access-Control-Allow-Headers:
22
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
23
+ Access-Control-Allow-Methods:
24
+ - POST, GET, PUT, DELETE, OPTIONS
25
+ Access-Control-Max-Age:
26
+ - '1728000'
27
+ Access-Control-Request-Method:
28
+ - GET
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ Content-Type:
32
+ - application/json
33
+ Date:
34
+ - Tue, 06 Oct 2015 20:04:53 GMT
35
+ Etag:
36
+ - '"822bae2a5471f1d602f8d54bb853fe34"'
37
+ Server:
38
+ - nginx/1.6.2
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ X-Frame-Options:
42
+ - SAMEORIGIN
43
+ X-Request-Id:
44
+ - 1fe6c16a-f063-439b-91be-9d77dbc778a6
45
+ X-Runtime:
46
+ - '0.037943'
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "info": {
58
+ "total_results": 157,
59
+ "current_page": 1,
60
+ "total_pages": 16,
61
+ "results_per_page": 10,
62
+ "total_savings": 1099
63
+ },
64
+ "offer_redemptions": [
65
+ {
66
+ "usage_redeem_key": 1602664,
67
+ "redeem_key": 1001,
68
+ "redeem_type": "instore_print_coupon",
69
+ "usage_date": "2015-09-16T20:16:28.000Z",
70
+ "offer": {
71
+ "offer_key": 7365285,
72
+ "offer_group_key": 139697,
73
+ "title": "Any extra large pizza for the price of large pizza.",
74
+ "started_on": "2015-06-08T00:00:00.000Z",
75
+ "expires_on": "2015-11-05T23:59:59.999Z",
76
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
77
+ "national_offer": true,
78
+ "uses_per_period": "unlimited",
79
+ "offer_set": "DISCOUNT",
80
+ "savings_amount": "20%",
81
+ "minimum_purchase": 0.0,
82
+ "maximum_award": 0.0,
83
+ "offer_value": 7,
84
+ "discount_type": "percent",
85
+ "discount_value": 20.0,
86
+ "promotion_code": false,
87
+ "redemption_methods": [
88
+ "instore_print"
89
+ ],
90
+ "categories": [
91
+ {
92
+ "category_name": "Casual & Fine Dining",
93
+ "category_key": 1009,
94
+ "category_parent_key": 39,
95
+ "category_parent_name": "Dining & Food",
96
+ "category_type": "subcategory"
97
+ }
98
+ ],
99
+ "offer_store": {
100
+ "name": "Figaro's Italian Pizza",
101
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
102
+ "store_key": 18938498,
103
+ "physical_location": {
104
+ "location_name": "Figaro's Italian Pizza",
105
+ "web_address": "http://www.figaros.com",
106
+ "description": null,
107
+ "location_key": 244820,
108
+ "postal_code": "98632",
109
+ "country": "US",
110
+ "street_address": "3208 Ocean Beach Hwy",
111
+ "extended_street_address": null,
112
+ "city_locality": "Longview",
113
+ "state_region": "WA",
114
+ "geolocation_array": [
115
+ -122.97105,
116
+ 46.14831
117
+ ],
118
+ "geolocation": {
119
+ "lat": 46.14831,
120
+ "lon": -122.97105
121
+ },
122
+ "phone_number": "360-353-3333"
123
+ }
124
+ }
125
+ },
126
+ "member": {
127
+ "member_key": "API_RUBY_GEM_TEST",
128
+ "program_key": "200156",
129
+ "program_name": "RWS API - No Filters No Limit",
130
+ "organization_key": "160",
131
+ "organization_name": "Access Development"
132
+ }
133
+ },
134
+ {
135
+ "usage_redeem_key": 1602662,
136
+ "redeem_key": 1001,
137
+ "redeem_type": "instore_print_coupon",
138
+ "usage_date": "2015-09-16T20:15:57.000Z",
139
+ "offer": {
140
+ "offer_key": 7365285,
141
+ "offer_group_key": 139697,
142
+ "title": "Any extra large pizza for the price of large pizza.",
143
+ "started_on": "2015-06-08T00:00:00.000Z",
144
+ "expires_on": "2015-11-05T23:59:59.999Z",
145
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
146
+ "national_offer": true,
147
+ "uses_per_period": "unlimited",
148
+ "offer_set": "DISCOUNT",
149
+ "savings_amount": "20%",
150
+ "minimum_purchase": 0.0,
151
+ "maximum_award": 0.0,
152
+ "offer_value": 7,
153
+ "discount_type": "percent",
154
+ "discount_value": 20.0,
155
+ "promotion_code": false,
156
+ "redemption_methods": [
157
+ "instore_print"
158
+ ],
159
+ "categories": [
160
+ {
161
+ "category_name": "Casual & Fine Dining",
162
+ "category_key": 1009,
163
+ "category_parent_key": 39,
164
+ "category_parent_name": "Dining & Food",
165
+ "category_type": "subcategory"
166
+ }
167
+ ],
168
+ "offer_store": {
169
+ "name": "Figaro's Italian Pizza",
170
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
171
+ "store_key": 18938498,
172
+ "physical_location": {
173
+ "location_name": "Figaro's Italian Pizza",
174
+ "web_address": "http://www.figaros.com",
175
+ "description": null,
176
+ "location_key": 244820,
177
+ "postal_code": "98632",
178
+ "country": "US",
179
+ "street_address": "3208 Ocean Beach Hwy",
180
+ "extended_street_address": null,
181
+ "city_locality": "Longview",
182
+ "state_region": "WA",
183
+ "geolocation_array": [
184
+ -122.97105,
185
+ 46.14831
186
+ ],
187
+ "geolocation": {
188
+ "lat": 46.14831,
189
+ "lon": -122.97105
190
+ },
191
+ "phone_number": "360-353-3333"
192
+ }
193
+ }
194
+ },
195
+ "member": {
196
+ "member_key": "API_RUBY_GEM_TEST",
197
+ "program_key": "200156",
198
+ "program_name": "RWS API - No Filters No Limit",
199
+ "organization_key": "160",
200
+ "organization_name": "Access Development"
201
+ }
202
+ },
203
+ {
204
+ "usage_redeem_key": 1602661,
205
+ "redeem_key": 1001,
206
+ "redeem_type": "instore_print_coupon",
207
+ "usage_date": "2015-09-16T20:15:14.000Z",
208
+ "offer": {
209
+ "offer_key": 7365285,
210
+ "offer_group_key": 139697,
211
+ "title": "Any extra large pizza for the price of large pizza.",
212
+ "started_on": "2015-06-08T00:00:00.000Z",
213
+ "expires_on": "2015-11-05T23:59:59.999Z",
214
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
215
+ "national_offer": true,
216
+ "uses_per_period": "unlimited",
217
+ "offer_set": "DISCOUNT",
218
+ "savings_amount": "20%",
219
+ "minimum_purchase": 0.0,
220
+ "maximum_award": 0.0,
221
+ "offer_value": 7,
222
+ "discount_type": "percent",
223
+ "discount_value": 20.0,
224
+ "promotion_code": false,
225
+ "redemption_methods": [
226
+ "instore_print"
227
+ ],
228
+ "categories": [
229
+ {
230
+ "category_name": "Casual & Fine Dining",
231
+ "category_key": 1009,
232
+ "category_parent_key": 39,
233
+ "category_parent_name": "Dining & Food",
234
+ "category_type": "subcategory"
235
+ }
236
+ ],
237
+ "offer_store": {
238
+ "name": "Figaro's Italian Pizza",
239
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
240
+ "store_key": 18938498,
241
+ "physical_location": {
242
+ "location_name": "Figaro's Italian Pizza",
243
+ "web_address": "http://www.figaros.com",
244
+ "description": null,
245
+ "location_key": 244820,
246
+ "postal_code": "98632",
247
+ "country": "US",
248
+ "street_address": "3208 Ocean Beach Hwy",
249
+ "extended_street_address": null,
250
+ "city_locality": "Longview",
251
+ "state_region": "WA",
252
+ "geolocation_array": [
253
+ -122.97105,
254
+ 46.14831
255
+ ],
256
+ "geolocation": {
257
+ "lat": 46.14831,
258
+ "lon": -122.97105
259
+ },
260
+ "phone_number": "360-353-3333"
261
+ }
262
+ }
263
+ },
264
+ "member": {
265
+ "member_key": "API_RUBY_GEM_TEST",
266
+ "program_key": "200156",
267
+ "program_name": "RWS API - No Filters No Limit",
268
+ "organization_key": "160",
269
+ "organization_name": "Access Development"
270
+ }
271
+ },
272
+ {
273
+ "usage_redeem_key": 1602660,
274
+ "redeem_key": 1001,
275
+ "redeem_type": "instore_print_coupon",
276
+ "usage_date": "2015-09-16T20:15:10.000Z",
277
+ "offer": {
278
+ "offer_key": 7365285,
279
+ "offer_group_key": 139697,
280
+ "title": "Any extra large pizza for the price of large pizza.",
281
+ "started_on": "2015-06-08T00:00:00.000Z",
282
+ "expires_on": "2015-11-05T23:59:59.999Z",
283
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
284
+ "national_offer": true,
285
+ "uses_per_period": "unlimited",
286
+ "offer_set": "DISCOUNT",
287
+ "savings_amount": "20%",
288
+ "minimum_purchase": 0.0,
289
+ "maximum_award": 0.0,
290
+ "offer_value": 7,
291
+ "discount_type": "percent",
292
+ "discount_value": 20.0,
293
+ "promotion_code": false,
294
+ "redemption_methods": [
295
+ "instore_print"
296
+ ],
297
+ "categories": [
298
+ {
299
+ "category_name": "Casual & Fine Dining",
300
+ "category_key": 1009,
301
+ "category_parent_key": 39,
302
+ "category_parent_name": "Dining & Food",
303
+ "category_type": "subcategory"
304
+ }
305
+ ],
306
+ "offer_store": {
307
+ "name": "Figaro's Italian Pizza",
308
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
309
+ "store_key": 18938498,
310
+ "physical_location": {
311
+ "location_name": "Figaro's Italian Pizza",
312
+ "web_address": "http://www.figaros.com",
313
+ "description": null,
314
+ "location_key": 244820,
315
+ "postal_code": "98632",
316
+ "country": "US",
317
+ "street_address": "3208 Ocean Beach Hwy",
318
+ "extended_street_address": null,
319
+ "city_locality": "Longview",
320
+ "state_region": "WA",
321
+ "geolocation_array": [
322
+ -122.97105,
323
+ 46.14831
324
+ ],
325
+ "geolocation": {
326
+ "lat": 46.14831,
327
+ "lon": -122.97105
328
+ },
329
+ "phone_number": "360-353-3333"
330
+ }
331
+ }
332
+ },
333
+ "member": {
334
+ "member_key": "API_RUBY_GEM_TEST",
335
+ "program_key": "200156",
336
+ "program_name": "RWS API - No Filters No Limit",
337
+ "organization_key": "160",
338
+ "organization_name": "Access Development"
339
+ }
340
+ },
341
+ {
342
+ "usage_redeem_key": 1602659,
343
+ "redeem_key": 1001,
344
+ "redeem_type": "instore_print_coupon",
345
+ "usage_date": "2015-09-16T20:14:00.000Z",
346
+ "offer": {
347
+ "offer_key": 7365285,
348
+ "offer_group_key": 139697,
349
+ "title": "Any extra large pizza for the price of large pizza.",
350
+ "started_on": "2015-06-08T00:00:00.000Z",
351
+ "expires_on": "2015-11-05T23:59:59.999Z",
352
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
353
+ "national_offer": true,
354
+ "uses_per_period": "unlimited",
355
+ "offer_set": "DISCOUNT",
356
+ "savings_amount": "20%",
357
+ "minimum_purchase": 0.0,
358
+ "maximum_award": 0.0,
359
+ "offer_value": 7,
360
+ "discount_type": "percent",
361
+ "discount_value": 20.0,
362
+ "promotion_code": false,
363
+ "redemption_methods": [
364
+ "instore_print"
365
+ ],
366
+ "categories": [
367
+ {
368
+ "category_name": "Casual & Fine Dining",
369
+ "category_key": 1009,
370
+ "category_parent_key": 39,
371
+ "category_parent_name": "Dining & Food",
372
+ "category_type": "subcategory"
373
+ }
374
+ ],
375
+ "offer_store": {
376
+ "name": "Figaro's Italian Pizza",
377
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
378
+ "store_key": 18938498,
379
+ "physical_location": {
380
+ "location_name": "Figaro's Italian Pizza",
381
+ "web_address": "http://www.figaros.com",
382
+ "description": null,
383
+ "location_key": 244820,
384
+ "postal_code": "98632",
385
+ "country": "US",
386
+ "street_address": "3208 Ocean Beach Hwy",
387
+ "extended_street_address": null,
388
+ "city_locality": "Longview",
389
+ "state_region": "WA",
390
+ "geolocation_array": [
391
+ -122.97105,
392
+ 46.14831
393
+ ],
394
+ "geolocation": {
395
+ "lat": 46.14831,
396
+ "lon": -122.97105
397
+ },
398
+ "phone_number": "360-353-3333"
399
+ }
400
+ }
401
+ },
402
+ "member": {
403
+ "member_key": "API_RUBY_GEM_TEST",
404
+ "program_key": "200156",
405
+ "program_name": "RWS API - No Filters No Limit",
406
+ "organization_key": "160",
407
+ "organization_name": "Access Development"
408
+ }
409
+ },
410
+ {
411
+ "usage_redeem_key": 1602658,
412
+ "redeem_key": 1001,
413
+ "redeem_type": "instore_print_coupon",
414
+ "usage_date": "2015-09-16T20:10:25.000Z",
415
+ "offer": {
416
+ "offer_key": 7365285,
417
+ "offer_group_key": 139697,
418
+ "title": "Any extra large pizza for the price of large pizza.",
419
+ "started_on": "2015-06-08T00:00:00.000Z",
420
+ "expires_on": "2015-11-05T23:59:59.999Z",
421
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
422
+ "national_offer": true,
423
+ "uses_per_period": "unlimited",
424
+ "offer_set": "DISCOUNT",
425
+ "savings_amount": "20%",
426
+ "minimum_purchase": 0.0,
427
+ "maximum_award": 0.0,
428
+ "offer_value": 7,
429
+ "discount_type": "percent",
430
+ "discount_value": 20.0,
431
+ "promotion_code": false,
432
+ "redemption_methods": [
433
+ "instore_print"
434
+ ],
435
+ "categories": [
436
+ {
437
+ "category_name": "Casual & Fine Dining",
438
+ "category_key": 1009,
439
+ "category_parent_key": 39,
440
+ "category_parent_name": "Dining & Food",
441
+ "category_type": "subcategory"
442
+ }
443
+ ],
444
+ "offer_store": {
445
+ "name": "Figaro's Italian Pizza",
446
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
447
+ "store_key": 18938498,
448
+ "physical_location": {
449
+ "location_name": "Figaro's Italian Pizza",
450
+ "web_address": "http://www.figaros.com",
451
+ "description": null,
452
+ "location_key": 244820,
453
+ "postal_code": "98632",
454
+ "country": "US",
455
+ "street_address": "3208 Ocean Beach Hwy",
456
+ "extended_street_address": null,
457
+ "city_locality": "Longview",
458
+ "state_region": "WA",
459
+ "geolocation_array": [
460
+ -122.97105,
461
+ 46.14831
462
+ ],
463
+ "geolocation": {
464
+ "lat": 46.14831,
465
+ "lon": -122.97105
466
+ },
467
+ "phone_number": "360-353-3333"
468
+ }
469
+ }
470
+ },
471
+ "member": {
472
+ "member_key": "API_RUBY_GEM_TEST",
473
+ "program_key": "200156",
474
+ "program_name": "RWS API - No Filters No Limit",
475
+ "organization_key": "160",
476
+ "organization_name": "Access Development"
477
+ }
478
+ },
479
+ {
480
+ "usage_redeem_key": 1602657,
481
+ "redeem_key": 1001,
482
+ "redeem_type": "instore_print_coupon",
483
+ "usage_date": "2015-09-16T20:09:34.000Z",
484
+ "offer": {
485
+ "offer_key": 7365285,
486
+ "offer_group_key": 139697,
487
+ "title": "Any extra large pizza for the price of large pizza.",
488
+ "started_on": "2015-06-08T00:00:00.000Z",
489
+ "expires_on": "2015-11-05T23:59:59.999Z",
490
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
491
+ "national_offer": true,
492
+ "uses_per_period": "unlimited",
493
+ "offer_set": "DISCOUNT",
494
+ "savings_amount": "20%",
495
+ "minimum_purchase": 0.0,
496
+ "maximum_award": 0.0,
497
+ "offer_value": 7,
498
+ "discount_type": "percent",
499
+ "discount_value": 20.0,
500
+ "promotion_code": false,
501
+ "redemption_methods": [
502
+ "instore_print"
503
+ ],
504
+ "categories": [
505
+ {
506
+ "category_name": "Casual & Fine Dining",
507
+ "category_key": 1009,
508
+ "category_parent_key": 39,
509
+ "category_parent_name": "Dining & Food",
510
+ "category_type": "subcategory"
511
+ }
512
+ ],
513
+ "offer_store": {
514
+ "name": "Figaro's Italian Pizza",
515
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
516
+ "store_key": 18938498,
517
+ "physical_location": {
518
+ "location_name": "Figaro's Italian Pizza",
519
+ "web_address": "http://www.figaros.com",
520
+ "description": null,
521
+ "location_key": 244820,
522
+ "postal_code": "98632",
523
+ "country": "US",
524
+ "street_address": "3208 Ocean Beach Hwy",
525
+ "extended_street_address": null,
526
+ "city_locality": "Longview",
527
+ "state_region": "WA",
528
+ "geolocation_array": [
529
+ -122.97105,
530
+ 46.14831
531
+ ],
532
+ "geolocation": {
533
+ "lat": 46.14831,
534
+ "lon": -122.97105
535
+ },
536
+ "phone_number": "360-353-3333"
537
+ }
538
+ }
539
+ },
540
+ "member": {
541
+ "member_key": "API_RUBY_GEM_TEST",
542
+ "program_key": "200156",
543
+ "program_name": "RWS API - No Filters No Limit",
544
+ "organization_key": "160",
545
+ "organization_name": "Access Development"
546
+ }
547
+ },
548
+ {
549
+ "usage_redeem_key": 1602656,
550
+ "redeem_key": 1001,
551
+ "redeem_type": "instore_print_coupon",
552
+ "usage_date": "2015-09-16T20:09:08.000Z",
553
+ "offer": {
554
+ "offer_key": 7365285,
555
+ "offer_group_key": 139697,
556
+ "title": "Any extra large pizza for the price of large pizza.",
557
+ "started_on": "2015-06-08T00:00:00.000Z",
558
+ "expires_on": "2015-11-05T23:59:59.999Z",
559
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
560
+ "national_offer": true,
561
+ "uses_per_period": "unlimited",
562
+ "offer_set": "DISCOUNT",
563
+ "savings_amount": "20%",
564
+ "minimum_purchase": 0.0,
565
+ "maximum_award": 0.0,
566
+ "offer_value": 7,
567
+ "discount_type": "percent",
568
+ "discount_value": 20.0,
569
+ "promotion_code": false,
570
+ "redemption_methods": [
571
+ "instore_print"
572
+ ],
573
+ "categories": [
574
+ {
575
+ "category_name": "Casual & Fine Dining",
576
+ "category_key": 1009,
577
+ "category_parent_key": 39,
578
+ "category_parent_name": "Dining & Food",
579
+ "category_type": "subcategory"
580
+ }
581
+ ],
582
+ "offer_store": {
583
+ "name": "Figaro's Italian Pizza",
584
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
585
+ "store_key": 18938498,
586
+ "physical_location": {
587
+ "location_name": "Figaro's Italian Pizza",
588
+ "web_address": "http://www.figaros.com",
589
+ "description": null,
590
+ "location_key": 244820,
591
+ "postal_code": "98632",
592
+ "country": "US",
593
+ "street_address": "3208 Ocean Beach Hwy",
594
+ "extended_street_address": null,
595
+ "city_locality": "Longview",
596
+ "state_region": "WA",
597
+ "geolocation_array": [
598
+ -122.97105,
599
+ 46.14831
600
+ ],
601
+ "geolocation": {
602
+ "lat": 46.14831,
603
+ "lon": -122.97105
604
+ },
605
+ "phone_number": "360-353-3333"
606
+ }
607
+ }
608
+ },
609
+ "member": {
610
+ "member_key": "API_RUBY_GEM_TEST",
611
+ "program_key": "200156",
612
+ "program_name": "RWS API - No Filters No Limit",
613
+ "organization_key": "160",
614
+ "organization_name": "Access Development"
615
+ }
616
+ },
617
+ {
618
+ "usage_redeem_key": 1602655,
619
+ "redeem_key": 1001,
620
+ "redeem_type": "instore_print_coupon",
621
+ "usage_date": "2015-09-16T20:08:20.000Z",
622
+ "offer": {
623
+ "offer_key": 7365285,
624
+ "offer_group_key": 139697,
625
+ "title": "Any extra large pizza for the price of large pizza.",
626
+ "started_on": "2015-06-08T00:00:00.000Z",
627
+ "expires_on": "2015-11-05T23:59:59.999Z",
628
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
629
+ "national_offer": true,
630
+ "uses_per_period": "unlimited",
631
+ "offer_set": "DISCOUNT",
632
+ "savings_amount": "20%",
633
+ "minimum_purchase": 0.0,
634
+ "maximum_award": 0.0,
635
+ "offer_value": 7,
636
+ "discount_type": "percent",
637
+ "discount_value": 20.0,
638
+ "promotion_code": false,
639
+ "redemption_methods": [
640
+ "instore_print"
641
+ ],
642
+ "categories": [
643
+ {
644
+ "category_name": "Casual & Fine Dining",
645
+ "category_key": 1009,
646
+ "category_parent_key": 39,
647
+ "category_parent_name": "Dining & Food",
648
+ "category_type": "subcategory"
649
+ }
650
+ ],
651
+ "offer_store": {
652
+ "name": "Figaro's Italian Pizza",
653
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
654
+ "store_key": 18938498,
655
+ "physical_location": {
656
+ "location_name": "Figaro's Italian Pizza",
657
+ "web_address": "http://www.figaros.com",
658
+ "description": null,
659
+ "location_key": 244820,
660
+ "postal_code": "98632",
661
+ "country": "US",
662
+ "street_address": "3208 Ocean Beach Hwy",
663
+ "extended_street_address": null,
664
+ "city_locality": "Longview",
665
+ "state_region": "WA",
666
+ "geolocation_array": [
667
+ -122.97105,
668
+ 46.14831
669
+ ],
670
+ "geolocation": {
671
+ "lat": 46.14831,
672
+ "lon": -122.97105
673
+ },
674
+ "phone_number": "360-353-3333"
675
+ }
676
+ }
677
+ },
678
+ "member": {
679
+ "member_key": "API_RUBY_GEM_TEST",
680
+ "program_key": "200156",
681
+ "program_name": "RWS API - No Filters No Limit",
682
+ "organization_key": "160",
683
+ "organization_name": "Access Development"
684
+ }
685
+ },
686
+ {
687
+ "usage_redeem_key": 1602654,
688
+ "redeem_key": 1001,
689
+ "redeem_type": "instore_print_coupon",
690
+ "usage_date": "2015-09-16T20:08:13.000Z",
691
+ "offer": {
692
+ "offer_key": 7365285,
693
+ "offer_group_key": 139697,
694
+ "title": "Any extra large pizza for the price of large pizza.",
695
+ "started_on": "2015-06-08T00:00:00.000Z",
696
+ "expires_on": "2015-11-05T23:59:59.999Z",
697
+ "logo_url": "https://static-demo.accessdevelopment.com/brand/ffabc5399b1b110ec6038a01dd80771a4f0eeb2e/original.png",
698
+ "national_offer": true,
699
+ "uses_per_period": "unlimited",
700
+ "offer_set": "DISCOUNT",
701
+ "savings_amount": "20%",
702
+ "minimum_purchase": 0.0,
703
+ "maximum_award": 0.0,
704
+ "offer_value": 7,
705
+ "discount_type": "percent",
706
+ "discount_value": 20.0,
707
+ "promotion_code": false,
708
+ "redemption_methods": [
709
+ "instore_print"
710
+ ],
711
+ "categories": [
712
+ {
713
+ "category_name": "Casual & Fine Dining",
714
+ "category_key": 1009,
715
+ "category_parent_key": 39,
716
+ "category_parent_name": "Dining & Food",
717
+ "category_type": "subcategory"
718
+ }
719
+ ],
720
+ "offer_store": {
721
+ "name": "Figaro's Italian Pizza",
722
+ "description": "Take your time and order what you'd like. Whether you enjoy classic pizzas like pepperoni or cheese or if you want to spice it up by ordering BBQ sauce or thin crust - We have what you want! Try Figaro's Pizza - Flavors That Sing.",
723
+ "store_key": 18938498,
724
+ "physical_location": {
725
+ "location_name": "Figaro's Italian Pizza",
726
+ "web_address": "http://www.figaros.com",
727
+ "description": null,
728
+ "location_key": 244820,
729
+ "postal_code": "98632",
730
+ "country": "US",
731
+ "street_address": "3208 Ocean Beach Hwy",
732
+ "extended_street_address": null,
733
+ "city_locality": "Longview",
734
+ "state_region": "WA",
735
+ "geolocation_array": [
736
+ -122.97105,
737
+ 46.14831
738
+ ],
739
+ "geolocation": {
740
+ "lat": 46.14831,
741
+ "lon": -122.97105
742
+ },
743
+ "phone_number": "360-353-3333"
744
+ }
745
+ }
746
+ },
747
+ "member": {
748
+ "member_key": "API_RUBY_GEM_TEST",
749
+ "program_key": "200156",
750
+ "program_name": "RWS API - No Filters No Limit",
751
+ "organization_key": "160",
752
+ "organization_name": "Access Development"
753
+ }
754
+ }
755
+ ],
756
+ "links": {
757
+ "next_page": "https://report-demo.adcrws.com/v1/members/API_RUBY_GEM_TEST/offer-redemptions?page=2"
758
+ }
759
+ }
760
+ http_version:
761
+ recorded_at: Tue, 06 Oct 2015 20:04:53 GMT
762
+ recorded_with: VCR 2.9.3