access 2.2.0 → 2.3.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +6 -4
  5. data/Gemfile.lock +40 -80
  6. data/README.md +2 -4
  7. data/Rakefile +1 -1
  8. data/access.gemspec +4 -6
  9. data/lib/access/response.rb +1 -1
  10. data/lib/access/version.rb +1 -1
  11. data/test/access/campaign_test.rb +3 -3
  12. data/test/access/category_test.rb +1 -0
  13. data/test/access/device_test.rb +1 -4
  14. data/test/access/member_test.rb +2 -5
  15. data/test/access/redeem_test.rb +1 -0
  16. data/test/access/report_test.rb +14 -7
  17. data/test/access/spot_test.rb +4 -4
  18. data/test/access/user_test.rb +9 -10
  19. data/test/access/verify_test.rb +1 -1
  20. data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
  21. data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
  22. data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
  23. data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
  24. data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
  25. data/test/vcr/cassettes/campaign/find.yml +139 -0
  26. data/test/vcr/cassettes/campaign/search.yml +89 -971
  27. data/test/vcr/cassettes/campaign/search_first.yml +139 -0
  28. data/test/vcr/cassettes/category/find.yml +11 -9
  29. data/test/vcr/cassettes/category/search.yml +14 -35
  30. data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
  31. data/test/vcr/cassettes/category/search_first.yml +27 -69
  32. data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
  33. data/test/vcr/cassettes/channel/search.yml +26 -18
  34. data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
  35. data/test/vcr/cassettes/favorite/create_location.yml +63 -17
  36. data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
  37. data/test/vcr/cassettes/favorite/create_store.yml +59 -59
  38. data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
  39. data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
  40. data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
  41. data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
  42. data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
  43. data/test/vcr/cassettes/favorite/find_location.yml +124 -78
  44. data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
  45. data/test/vcr/cassettes/favorite/find_store.yml +103 -129
  46. data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
  47. data/test/vcr/cassettes/favorite/search.yml +269 -281
  48. data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
  49. data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
  50. data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
  51. data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
  52. data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
  53. data/test/vcr/cassettes/filter/find.yml +11 -9
  54. data/test/vcr/cassettes/filter/search.yml +14 -12
  55. data/test/vcr/cassettes/filter/search_first.yml +14 -12
  56. data/test/vcr/cassettes/location/find.yml +562 -634
  57. data/test/vcr/cassettes/location/search.yml +82 -77
  58. data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
  59. data/test/vcr/cassettes/location/search_first.yml +82 -77
  60. data/test/vcr/cassettes/member/show_failure.yml +14 -14
  61. data/test/vcr/cassettes/member/show_success.yml +16 -16
  62. data/test/vcr/cassettes/member/update_success.yml +16 -16
  63. data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
  64. data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
  65. data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
  66. data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
  67. data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
  68. data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
  69. data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
  70. data/test/vcr/cassettes/member_device/search_success.yml +423 -31
  71. data/test/vcr/cassettes/oauth_application/find.yml +19 -21
  72. data/test/vcr/cassettes/oauth_application/search.yml +21 -23
  73. data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
  74. data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
  75. data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
  76. data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
  77. data/test/vcr/cassettes/offer/find.yml +97 -109
  78. data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
  79. data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
  80. data/test/vcr/cassettes/offer/search.yml +99 -111
  81. data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
  82. data/test/vcr/cassettes/offer/search_first.yml +99 -111
  83. data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
  84. data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
  85. data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
  86. data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
  87. data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
  88. data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
  89. data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
  90. data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
  91. data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
  92. data/test/vcr/cassettes/report/all_usage.yml +15 -100
  93. data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
  94. data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
  95. data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
  96. data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
  97. data/test/vcr/cassettes/report/usage.yml +15 -100
  98. data/test/vcr/cassettes/report/usage_other.yml +15 -100
  99. data/test/vcr/cassettes/spot/find.yml +9 -9
  100. data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
  101. data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
  102. data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
  103. data/test/vcr/cassettes/store/find.yml +48 -45
  104. data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
  105. data/test/vcr/cassettes/store/search.yml +52 -49
  106. data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
  107. data/test/vcr/cassettes/store/search_first.yml +52 -49
  108. data/test/vcr/cassettes/token/find.yml +53 -29
  109. data/test/vcr/cassettes/token/get_first_token.yml +55 -31
  110. data/test/vcr/cassettes/token/search.yml +55 -31
  111. data/test/vcr/cassettes/user_register/failure.yml +13 -13
  112. data/test/vcr/cassettes/user_register/success.yml +11 -109
  113. data/test/vcr/cassettes/user_update/success.yml +58 -12
  114. data/test/vcr/cassettes/verify/filter.yml +108 -94
  115. data/test/vcr/cassettes/verify/token.yml +15 -13
  116. metadata +22 -46
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Access-Token:
11
- - ACCESS_TOKEN
11
+ - "<ACCESS_TOKEN>"
12
12
  Content-Type:
13
13
  - application/json
14
14
  Accept:
@@ -19,15 +19,13 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Server:
22
- - nginx/1.8.0
22
+ - nginx/1.12.2
23
23
  Date:
24
- - Mon, 22 Feb 2016 20:31:24 GMT
24
+ - Sun, 01 Jul 2018 04:23:57 GMT
25
25
  Content-Type:
26
26
  - application/json
27
27
  Transfer-Encoding:
28
28
  - chunked
29
- Connection:
30
- - keep-alive
31
29
  X-Frame-Options:
32
30
  - SAMEORIGIN
33
31
  X-Xss-Protection:
@@ -42,52 +40,55 @@ http_interactions:
42
40
  - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
43
41
  Access-Control-Max-Age:
44
42
  - '1728000'
43
+ X-Ratelimit-Limit:
44
+ - '10000'
45
+ X-Ratelimit-Remaining:
46
+ - '9933'
45
47
  Etag:
46
- - '"793c8ff6b247dde0fd57b3f771ac2661"'
48
+ - '"bf60b8ac51dd623ac56d5ec88fac91dd"'
47
49
  Cache-Control:
48
50
  - max-age=0, private, must-revalidate
49
51
  X-Request-Id:
50
- - a1e013b9-abf8-4e8d-b8f0-156da124deec
52
+ - 44dd0c5e-2333-4fbd-90a1-74c00f46d5b9
51
53
  X-Runtime:
52
- - '0.027211'
54
+ - '0.026178'
53
55
  body:
54
56
  encoding: UTF-8
55
57
  string: |-
56
58
  {
57
59
  "info": {
58
- "total_results": 6,
60
+ "total_results": 57,
59
61
  "current_page": 1,
60
- "total_pages": 1,
61
- "results_per_page": 6,
62
- "total_savings": 30
62
+ "total_pages": 6,
63
+ "results_per_page": 10,
64
+ "total_savings": 113
63
65
  },
64
66
  "offer_redemptions": [
65
67
  {
66
- "usage_redeem_key": 2915840,
67
- "redeem_key": 1002,
68
- "redeem_type": "instore_digital_coupon",
69
- "usage_date": "2016-02-22T13:31:21.000Z",
68
+ "usage_redeem_key": 4768789,
69
+ "redeem_key": 1006,
70
+ "redeem_type": "online_link",
71
+ "usage_date": "2018-06-30T22:19:23.000Z",
70
72
  "offer": {
71
- "offer_key": 13775493,
72
- "offer_group_key": 4171584,
73
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
74
- "started_on": "2015-10-25T07:00:00.000Z",
75
- "expires_on": "2016-03-24T06:59:59.999Z",
76
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
73
+ "offer_key": 7354635,
74
+ "offer_group_key": 316539,
75
+ "title": "10% off regular menu items.",
76
+ "started_on": "2018-03-02T06:00:00.000Z",
77
+ "expires_on": "2018-07-31T05:59:59.999Z",
78
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
77
79
  "national_offer": false,
78
80
  "uses_per_period": "unlimited",
79
81
  "offer_set": "DISCOUNT",
80
- "savings_amount": "$5.00",
81
- "minimum_purchase": "19.0",
82
- "maximum_award": "0.0",
83
- "offer_value": 5,
84
- "discount_type": "amount",
85
- "discount_value": "5.0",
86
- "promotion_code": true,
82
+ "savings_amount": "10%",
83
+ "minimum_purchase": 0.0,
84
+ "maximum_award": 0.0,
85
+ "offer_value": 1,
86
+ "discount_type": "percent",
87
+ "discount_value": 10.0,
88
+ "promotion_code": false,
87
89
  "redemption_methods": [
88
- "instore",
89
- "instore_print",
90
- "link"
90
+ "link",
91
+ "instore_print"
91
92
  ],
92
93
  "categories": [
93
94
  {
@@ -99,29 +100,30 @@ http_interactions:
99
100
  }
100
101
  ],
101
102
  "offer_store": {
102
- "name": "Pizza Hut",
103
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
104
- "store_key": 18939060,
103
+ "name": "Anthony's Pizza",
104
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
105
+ "store_key": 65422699,
105
106
  "physical_location": {
106
- "location_name": "Pizza Hut",
107
- "web_address": "http://www.pizzahut.com/",
107
+ "location_name": "Anthony's Pizza XIII",
108
+ "web_address": "",
108
109
  "description": null,
109
- "location_key": 244932,
110
- "postal_code": "32817",
110
+ "online_exclusive": false,
111
+ "location_key": 899212,
112
+ "postal_code": "22601",
111
113
  "country": "US",
112
- "street_address": "10002 University Blvd",
113
- "extended_street_address": "",
114
- "city_locality": "Orlando",
115
- "state_region": "FL",
114
+ "street_address": "688 N Loudoun St",
115
+ "extended_street_address": null,
116
+ "city_locality": "Winchester",
117
+ "state_region": "VA",
116
118
  "geolocation_array": [
117
- -81.24415,
118
- 28.5962
119
+ -78.15981,
120
+ 39.19636
119
121
  ],
120
122
  "geolocation": {
121
- "lat": 28.5962,
122
- "lon": -81.24415
123
+ "lat": 39.19636,
124
+ "lon": -78.15981
123
125
  },
124
- "phone_number": "407-679-7575"
126
+ "phone_number": "540-678-0500"
125
127
  }
126
128
  }
127
129
  },
@@ -134,31 +136,30 @@ http_interactions:
134
136
  }
135
137
  },
136
138
  {
137
- "usage_redeem_key": 2915839,
138
- "redeem_key": 1002,
139
- "redeem_type": "instore_digital_coupon",
140
- "usage_date": "2016-02-22T13:16:53.000Z",
139
+ "usage_redeem_key": 4768788,
140
+ "redeem_key": 1006,
141
+ "redeem_type": "online_link",
142
+ "usage_date": "2018-06-30T22:18:48.000Z",
141
143
  "offer": {
142
- "offer_key": 13775493,
143
- "offer_group_key": 4171584,
144
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
145
- "started_on": "2015-10-25T07:00:00.000Z",
146
- "expires_on": "2016-03-24T06:59:59.999Z",
147
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
144
+ "offer_key": 7354635,
145
+ "offer_group_key": 316539,
146
+ "title": "10% off regular menu items.",
147
+ "started_on": "2018-03-02T06:00:00.000Z",
148
+ "expires_on": "2018-07-31T05:59:59.999Z",
149
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
148
150
  "national_offer": false,
149
151
  "uses_per_period": "unlimited",
150
152
  "offer_set": "DISCOUNT",
151
- "savings_amount": "$5.00",
152
- "minimum_purchase": "19.0",
153
- "maximum_award": "0.0",
154
- "offer_value": 5,
155
- "discount_type": "amount",
156
- "discount_value": "5.0",
157
- "promotion_code": true,
153
+ "savings_amount": "10%",
154
+ "minimum_purchase": 0.0,
155
+ "maximum_award": 0.0,
156
+ "offer_value": 1,
157
+ "discount_type": "percent",
158
+ "discount_value": 10.0,
159
+ "promotion_code": false,
158
160
  "redemption_methods": [
159
- "instore",
160
- "instore_print",
161
- "link"
161
+ "link",
162
+ "instore_print"
162
163
  ],
163
164
  "categories": [
164
165
  {
@@ -170,29 +171,30 @@ http_interactions:
170
171
  }
171
172
  ],
172
173
  "offer_store": {
173
- "name": "Pizza Hut",
174
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
175
- "store_key": 18939060,
174
+ "name": "Anthony's Pizza",
175
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
176
+ "store_key": 65422699,
176
177
  "physical_location": {
177
- "location_name": "Pizza Hut",
178
- "web_address": "http://www.pizzahut.com/",
178
+ "location_name": "Anthony's Pizza XIII",
179
+ "web_address": "",
179
180
  "description": null,
180
- "location_key": 244932,
181
- "postal_code": "32817",
181
+ "online_exclusive": false,
182
+ "location_key": 899212,
183
+ "postal_code": "22601",
182
184
  "country": "US",
183
- "street_address": "10002 University Blvd",
184
- "extended_street_address": "",
185
- "city_locality": "Orlando",
186
- "state_region": "FL",
185
+ "street_address": "688 N Loudoun St",
186
+ "extended_street_address": null,
187
+ "city_locality": "Winchester",
188
+ "state_region": "VA",
187
189
  "geolocation_array": [
188
- -81.24415,
189
- 28.5962
190
+ -78.15981,
191
+ 39.19636
190
192
  ],
191
193
  "geolocation": {
192
- "lat": 28.5962,
193
- "lon": -81.24415
194
+ "lat": 39.19636,
195
+ "lon": -78.15981
194
196
  },
195
- "phone_number": "407-679-7575"
197
+ "phone_number": "540-678-0500"
196
198
  }
197
199
  }
198
200
  },
@@ -205,31 +207,30 @@ http_interactions:
205
207
  }
206
208
  },
207
209
  {
208
- "usage_redeem_key": 2915838,
209
- "redeem_key": 1002,
210
- "redeem_type": "instore_digital_coupon",
211
- "usage_date": "2016-02-22T12:48:00.000Z",
210
+ "usage_redeem_key": 4768761,
211
+ "redeem_key": 1006,
212
+ "redeem_type": "online_link",
213
+ "usage_date": "2018-06-28T14:29:13.000Z",
212
214
  "offer": {
213
- "offer_key": 13775493,
214
- "offer_group_key": 4171584,
215
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
216
- "started_on": "2015-10-25T07:00:00.000Z",
217
- "expires_on": "2016-03-24T06:59:59.999Z",
218
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
215
+ "offer_key": 7354635,
216
+ "offer_group_key": 316539,
217
+ "title": "10% off regular menu items.",
218
+ "started_on": "2018-03-02T06:00:00.000Z",
219
+ "expires_on": "2018-07-31T05:59:59.999Z",
220
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
219
221
  "national_offer": false,
220
222
  "uses_per_period": "unlimited",
221
223
  "offer_set": "DISCOUNT",
222
- "savings_amount": "$5.00",
223
- "minimum_purchase": "19.0",
224
- "maximum_award": "0.0",
225
- "offer_value": 5,
226
- "discount_type": "amount",
227
- "discount_value": "5.0",
228
- "promotion_code": true,
224
+ "savings_amount": "10%",
225
+ "minimum_purchase": 0.0,
226
+ "maximum_award": 0.0,
227
+ "offer_value": 1,
228
+ "discount_type": "percent",
229
+ "discount_value": 10.0,
230
+ "promotion_code": false,
229
231
  "redemption_methods": [
230
- "instore",
231
- "instore_print",
232
- "link"
232
+ "link",
233
+ "instore_print"
233
234
  ],
234
235
  "categories": [
235
236
  {
@@ -241,29 +242,30 @@ http_interactions:
241
242
  }
242
243
  ],
243
244
  "offer_store": {
244
- "name": "Pizza Hut",
245
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
246
- "store_key": 18939060,
245
+ "name": "Anthony's Pizza",
246
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
247
+ "store_key": 65422699,
247
248
  "physical_location": {
248
- "location_name": "Pizza Hut",
249
- "web_address": "http://www.pizzahut.com/",
249
+ "location_name": "Anthony's Pizza XIII",
250
+ "web_address": "",
250
251
  "description": null,
251
- "location_key": 244932,
252
- "postal_code": "32817",
252
+ "online_exclusive": false,
253
+ "location_key": 899212,
254
+ "postal_code": "22601",
253
255
  "country": "US",
254
- "street_address": "10002 University Blvd",
255
- "extended_street_address": "",
256
- "city_locality": "Orlando",
257
- "state_region": "FL",
256
+ "street_address": "688 N Loudoun St",
257
+ "extended_street_address": null,
258
+ "city_locality": "Winchester",
259
+ "state_region": "VA",
258
260
  "geolocation_array": [
259
- -81.24415,
260
- 28.5962
261
+ -78.15981,
262
+ 39.19636
261
263
  ],
262
264
  "geolocation": {
263
- "lat": 28.5962,
264
- "lon": -81.24415
265
+ "lat": 39.19636,
266
+ "lon": -78.15981
265
267
  },
266
- "phone_number": "407-679-7575"
268
+ "phone_number": "540-678-0500"
267
269
  }
268
270
  }
269
271
  },
@@ -276,31 +278,30 @@ http_interactions:
276
278
  }
277
279
  },
278
280
  {
279
- "usage_redeem_key": 2915837,
280
- "redeem_key": 1002,
281
- "redeem_type": "instore_digital_coupon",
282
- "usage_date": "2016-02-22T12:33:43.000Z",
281
+ "usage_redeem_key": 4768758,
282
+ "redeem_key": 1006,
283
+ "redeem_type": "online_link",
284
+ "usage_date": "2018-06-28T14:27:57.000Z",
283
285
  "offer": {
284
- "offer_key": 13775493,
285
- "offer_group_key": 4171584,
286
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
287
- "started_on": "2015-10-25T07:00:00.000Z",
288
- "expires_on": "2016-03-24T06:59:59.999Z",
289
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
286
+ "offer_key": 7354635,
287
+ "offer_group_key": 316539,
288
+ "title": "10% off regular menu items.",
289
+ "started_on": "2018-03-02T06:00:00.000Z",
290
+ "expires_on": "2018-07-31T05:59:59.999Z",
291
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
290
292
  "national_offer": false,
291
293
  "uses_per_period": "unlimited",
292
294
  "offer_set": "DISCOUNT",
293
- "savings_amount": "$5.00",
294
- "minimum_purchase": "19.0",
295
- "maximum_award": "0.0",
296
- "offer_value": 5,
297
- "discount_type": "amount",
298
- "discount_value": "5.0",
299
- "promotion_code": true,
295
+ "savings_amount": "10%",
296
+ "minimum_purchase": 0.0,
297
+ "maximum_award": 0.0,
298
+ "offer_value": 1,
299
+ "discount_type": "percent",
300
+ "discount_value": 10.0,
301
+ "promotion_code": false,
300
302
  "redemption_methods": [
301
- "instore",
302
- "instore_print",
303
- "link"
303
+ "link",
304
+ "instore_print"
304
305
  ],
305
306
  "categories": [
306
307
  {
@@ -312,29 +313,30 @@ http_interactions:
312
313
  }
313
314
  ],
314
315
  "offer_store": {
315
- "name": "Pizza Hut",
316
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
317
- "store_key": 18939060,
316
+ "name": "Anthony's Pizza",
317
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
318
+ "store_key": 65422699,
318
319
  "physical_location": {
319
- "location_name": "Pizza Hut",
320
- "web_address": "http://www.pizzahut.com/",
320
+ "location_name": "Anthony's Pizza XIII",
321
+ "web_address": "",
321
322
  "description": null,
322
- "location_key": 244932,
323
- "postal_code": "32817",
323
+ "online_exclusive": false,
324
+ "location_key": 899212,
325
+ "postal_code": "22601",
324
326
  "country": "US",
325
- "street_address": "10002 University Blvd",
326
- "extended_street_address": "",
327
- "city_locality": "Orlando",
328
- "state_region": "FL",
327
+ "street_address": "688 N Loudoun St",
328
+ "extended_street_address": null,
329
+ "city_locality": "Winchester",
330
+ "state_region": "VA",
329
331
  "geolocation_array": [
330
- -81.24415,
331
- 28.5962
332
+ -78.15981,
333
+ 39.19636
332
334
  ],
333
335
  "geolocation": {
334
- "lat": 28.5962,
335
- "lon": -81.24415
336
+ "lat": 39.19636,
337
+ "lon": -78.15981
336
338
  },
337
- "phone_number": "407-679-7575"
339
+ "phone_number": "540-678-0500"
338
340
  }
339
341
  }
340
342
  },
@@ -347,31 +349,30 @@ http_interactions:
347
349
  }
348
350
  },
349
351
  {
350
- "usage_redeem_key": 2915621,
351
- "redeem_key": 1002,
352
- "redeem_type": "instore_digital_coupon",
353
- "usage_date": "2016-02-01T17:13:37.000Z",
352
+ "usage_redeem_key": 4768756,
353
+ "redeem_key": 1006,
354
+ "redeem_type": "online_link",
355
+ "usage_date": "2018-06-28T14:24:10.000Z",
354
356
  "offer": {
355
- "offer_key": 13775479,
356
- "offer_group_key": 4171584,
357
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
358
- "started_on": "2015-10-25T07:00:00.000Z",
359
- "expires_on": "2016-03-24T06:59:59.999Z",
360
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
357
+ "offer_key": 7354635,
358
+ "offer_group_key": 316539,
359
+ "title": "10% off regular menu items.",
360
+ "started_on": "2018-03-02T06:00:00.000Z",
361
+ "expires_on": "2018-07-31T05:59:59.999Z",
362
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
361
363
  "national_offer": false,
362
364
  "uses_per_period": "unlimited",
363
365
  "offer_set": "DISCOUNT",
364
- "savings_amount": "$5.00",
365
- "minimum_purchase": "19.0",
366
- "maximum_award": "0.0",
367
- "offer_value": 5,
368
- "discount_type": "amount",
369
- "discount_value": "5.0",
370
- "promotion_code": true,
366
+ "savings_amount": "10%",
367
+ "minimum_purchase": 0.0,
368
+ "maximum_award": 0.0,
369
+ "offer_value": 1,
370
+ "discount_type": "percent",
371
+ "discount_value": 10.0,
372
+ "promotion_code": false,
371
373
  "redemption_methods": [
372
- "instore",
373
- "instore_print",
374
- "link"
374
+ "link",
375
+ "instore_print"
375
376
  ],
376
377
  "categories": [
377
378
  {
@@ -383,29 +384,30 @@ http_interactions:
383
384
  }
384
385
  ],
385
386
  "offer_store": {
386
- "name": "Pizza Hut",
387
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
388
- "store_key": 18939060,
387
+ "name": "Anthony's Pizza",
388
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
389
+ "store_key": 65422699,
389
390
  "physical_location": {
390
- "location_name": "Pizza Hut",
391
- "web_address": "http://www.pizzahut.com/",
391
+ "location_name": "Anthony's Pizza XIII",
392
+ "web_address": "",
392
393
  "description": null,
393
- "location_key": 244970,
394
- "postal_code": "32819",
394
+ "online_exclusive": false,
395
+ "location_key": 899212,
396
+ "postal_code": "22601",
395
397
  "country": "US",
396
- "street_address": "8255 International Dr Ste 144-B",
398
+ "street_address": "688 N Loudoun St",
397
399
  "extended_street_address": null,
398
- "city_locality": "Orlando",
399
- "state_region": "FL",
400
+ "city_locality": "Winchester",
401
+ "state_region": "VA",
400
402
  "geolocation_array": [
401
- -81.4819,
402
- 28.46655
403
+ -78.15981,
404
+ 39.19636
403
405
  ],
404
406
  "geolocation": {
405
- "lat": 28.46655,
406
- "lon": -81.4819
407
+ "lat": 39.19636,
408
+ "lon": -78.15981
407
409
  },
408
- "phone_number": "407-354-1582"
410
+ "phone_number": "540-678-0500"
409
411
  }
410
412
  }
411
413
  },
@@ -418,31 +420,313 @@ http_interactions:
418
420
  }
419
421
  },
420
422
  {
421
- "usage_redeem_key": 2915620,
422
- "redeem_key": 1002,
423
- "redeem_type": "instore_digital_coupon",
424
- "usage_date": "2016-02-01T17:13:32.000Z",
423
+ "usage_redeem_key": 4768754,
424
+ "redeem_key": 1006,
425
+ "redeem_type": "online_link",
426
+ "usage_date": "2018-06-28T14:08:59.000Z",
425
427
  "offer": {
426
- "offer_key": 13775479,
427
- "offer_group_key": 4171584,
428
- "title": "Free breadsticks with purchase of any large pizza at regular menu price. ",
429
- "started_on": "2015-10-25T07:00:00.000Z",
430
- "expires_on": "2016-03-24T06:59:59.999Z",
431
- "logo_url": "https://static-stage.accessdevelopment.com/brand/02f732819c6ea7c4352dbcb19ccab83db134f63d/original.png",
428
+ "offer_key": 7354635,
429
+ "offer_group_key": 316539,
430
+ "title": "10% off regular menu items.",
431
+ "started_on": "2018-03-02T06:00:00.000Z",
432
+ "expires_on": "2018-07-31T05:59:59.999Z",
433
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
432
434
  "national_offer": false,
433
435
  "uses_per_period": "unlimited",
434
436
  "offer_set": "DISCOUNT",
435
- "savings_amount": "$5.00",
436
- "minimum_purchase": "19.0",
437
- "maximum_award": "0.0",
438
- "offer_value": 5,
439
- "discount_type": "amount",
440
- "discount_value": "5.0",
437
+ "savings_amount": "10%",
438
+ "minimum_purchase": 0.0,
439
+ "maximum_award": 0.0,
440
+ "offer_value": 1,
441
+ "discount_type": "percent",
442
+ "discount_value": 10.0,
443
+ "promotion_code": false,
444
+ "redemption_methods": [
445
+ "link",
446
+ "instore_print"
447
+ ],
448
+ "categories": [
449
+ {
450
+ "category_name": "Fast Food",
451
+ "category_key": 1008,
452
+ "category_parent_key": 39,
453
+ "category_parent_name": "Dining & Food",
454
+ "category_type": "subcategory"
455
+ }
456
+ ],
457
+ "offer_store": {
458
+ "name": "Anthony's Pizza",
459
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
460
+ "store_key": 65422699,
461
+ "physical_location": {
462
+ "location_name": "Anthony's Pizza XIII",
463
+ "web_address": "",
464
+ "description": null,
465
+ "online_exclusive": false,
466
+ "location_key": 899212,
467
+ "postal_code": "22601",
468
+ "country": "US",
469
+ "street_address": "688 N Loudoun St",
470
+ "extended_street_address": null,
471
+ "city_locality": "Winchester",
472
+ "state_region": "VA",
473
+ "geolocation_array": [
474
+ -78.15981,
475
+ 39.19636
476
+ ],
477
+ "geolocation": {
478
+ "lat": 39.19636,
479
+ "lon": -78.15981
480
+ },
481
+ "phone_number": "540-678-0500"
482
+ }
483
+ }
484
+ },
485
+ "member": {
486
+ "member_key": "API_RUBY_GEM_TEST",
487
+ "program_key": "200156",
488
+ "program_name": "RWS API - No Filters No Limit",
489
+ "organization_key": "160",
490
+ "organization_name": "Access Development"
491
+ }
492
+ },
493
+ {
494
+ "usage_redeem_key": 4768751,
495
+ "redeem_key": 1001,
496
+ "redeem_type": "instore_print_coupon",
497
+ "usage_date": "2018-06-28T13:56:58.000Z",
498
+ "offer": {
499
+ "offer_key": 282676832,
500
+ "offer_group_key": 282360549,
501
+ "title": "Cost plus 10% on Bridgestone and Firestone branded tires every time you visit.",
502
+ "started_on": "2018-03-02T06:00:00.000Z",
503
+ "expires_on": "2018-07-31T05:59:59.999Z",
504
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/db2ba79ef779cc2f27fdbc29c4540b9488ff6ee8/original.png",
505
+ "national_offer": true,
506
+ "uses_per_period": "unlimited",
507
+ "offer_set": "DISCOUNT",
508
+ "savings_amount": "10%",
509
+ "minimum_purchase": 0.0,
510
+ "maximum_award": 0.0,
511
+ "offer_value": 25,
512
+ "discount_type": "percent",
513
+ "discount_value": 10.0,
441
514
  "promotion_code": true,
442
515
  "redemption_methods": [
443
- "instore",
444
- "instore_print",
445
- "link"
516
+ "instore_print"
517
+ ],
518
+ "categories": [
519
+ {
520
+ "category_name": "Tires",
521
+ "category_key": 1005,
522
+ "category_parent_key": 51,
523
+ "category_parent_name": "Automotive",
524
+ "category_type": "subcategory"
525
+ }
526
+ ],
527
+ "offer_store": {
528
+ "name": "Firestone Complete Auto Care",
529
+ "description": "From exclusive savings and offers to free tips and maintenance reminders, the Partners Plus Auto Care Savings Plan helps you keep your vehicle running as it should.",
530
+ "store_key": 18938500,
531
+ "physical_location": {
532
+ "location_name": "Firestone Complete Auto Care",
533
+ "web_address": "https://www.partnersplussavings.com/empl/index.jsp",
534
+ "description": null,
535
+ "online_exclusive": false,
536
+ "location_key": 5282313,
537
+ "postal_code": "84111",
538
+ "country": "US",
539
+ "street_address": "204 Broadway",
540
+ "extended_street_address": "",
541
+ "city_locality": "Salt Lake City",
542
+ "state_region": "UT",
543
+ "geolocation_array": [
544
+ -111.88481,
545
+ 40.76245
546
+ ],
547
+ "geolocation": {
548
+ "lat": 40.76245,
549
+ "lon": -111.88481
550
+ },
551
+ "phone_number": "801-657-3987"
552
+ }
553
+ }
554
+ },
555
+ "member": {
556
+ "member_key": "API_RUBY_GEM_TEST",
557
+ "program_key": "200156",
558
+ "program_name": "RWS API - No Filters No Limit",
559
+ "organization_key": "160",
560
+ "organization_name": "Access Development"
561
+ }
562
+ },
563
+ {
564
+ "usage_redeem_key": 4768748,
565
+ "redeem_key": 1006,
566
+ "redeem_type": "online_link",
567
+ "usage_date": "2018-06-28T13:50:36.000Z",
568
+ "offer": {
569
+ "offer_key": 7354635,
570
+ "offer_group_key": 316539,
571
+ "title": "10% off regular menu items.",
572
+ "started_on": "2018-03-02T06:00:00.000Z",
573
+ "expires_on": "2018-07-31T05:59:59.999Z",
574
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
575
+ "national_offer": false,
576
+ "uses_per_period": "unlimited",
577
+ "offer_set": "DISCOUNT",
578
+ "savings_amount": "10%",
579
+ "minimum_purchase": 0.0,
580
+ "maximum_award": 0.0,
581
+ "offer_value": 1,
582
+ "discount_type": "percent",
583
+ "discount_value": 10.0,
584
+ "promotion_code": false,
585
+ "redemption_methods": [
586
+ "link",
587
+ "instore_print"
588
+ ],
589
+ "categories": [
590
+ {
591
+ "category_name": "Fast Food",
592
+ "category_key": 1008,
593
+ "category_parent_key": 39,
594
+ "category_parent_name": "Dining & Food",
595
+ "category_type": "subcategory"
596
+ }
597
+ ],
598
+ "offer_store": {
599
+ "name": "Anthony's Pizza",
600
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
601
+ "store_key": 65422699,
602
+ "physical_location": {
603
+ "location_name": "Anthony's Pizza XIII",
604
+ "web_address": "",
605
+ "description": null,
606
+ "online_exclusive": false,
607
+ "location_key": 899212,
608
+ "postal_code": "22601",
609
+ "country": "US",
610
+ "street_address": "688 N Loudoun St",
611
+ "extended_street_address": null,
612
+ "city_locality": "Winchester",
613
+ "state_region": "VA",
614
+ "geolocation_array": [
615
+ -78.15981,
616
+ 39.19636
617
+ ],
618
+ "geolocation": {
619
+ "lat": 39.19636,
620
+ "lon": -78.15981
621
+ },
622
+ "phone_number": "540-678-0500"
623
+ }
624
+ }
625
+ },
626
+ "member": {
627
+ "member_key": "API_RUBY_GEM_TEST",
628
+ "program_key": "200156",
629
+ "program_name": "RWS API - No Filters No Limit",
630
+ "organization_key": "160",
631
+ "organization_name": "Access Development"
632
+ }
633
+ },
634
+ {
635
+ "usage_redeem_key": 4768746,
636
+ "redeem_key": 1006,
637
+ "redeem_type": "online_link",
638
+ "usage_date": "2018-06-28T13:24:56.000Z",
639
+ "offer": {
640
+ "offer_key": 7354635,
641
+ "offer_group_key": 316539,
642
+ "title": "10% off regular menu items.",
643
+ "started_on": "2018-03-02T06:00:00.000Z",
644
+ "expires_on": "2018-07-31T05:59:59.999Z",
645
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
646
+ "national_offer": false,
647
+ "uses_per_period": "unlimited",
648
+ "offer_set": "DISCOUNT",
649
+ "savings_amount": "10%",
650
+ "minimum_purchase": 0.0,
651
+ "maximum_award": 0.0,
652
+ "offer_value": 1,
653
+ "discount_type": "percent",
654
+ "discount_value": 10.0,
655
+ "promotion_code": false,
656
+ "redemption_methods": [
657
+ "link",
658
+ "instore_print"
659
+ ],
660
+ "categories": [
661
+ {
662
+ "category_name": "Fast Food",
663
+ "category_key": 1008,
664
+ "category_parent_key": 39,
665
+ "category_parent_name": "Dining & Food",
666
+ "category_type": "subcategory"
667
+ }
668
+ ],
669
+ "offer_store": {
670
+ "name": "Anthony's Pizza",
671
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
672
+ "store_key": 65422699,
673
+ "physical_location": {
674
+ "location_name": "Anthony's Pizza XIII",
675
+ "web_address": "",
676
+ "description": null,
677
+ "online_exclusive": false,
678
+ "location_key": 899212,
679
+ "postal_code": "22601",
680
+ "country": "US",
681
+ "street_address": "688 N Loudoun St",
682
+ "extended_street_address": null,
683
+ "city_locality": "Winchester",
684
+ "state_region": "VA",
685
+ "geolocation_array": [
686
+ -78.15981,
687
+ 39.19636
688
+ ],
689
+ "geolocation": {
690
+ "lat": 39.19636,
691
+ "lon": -78.15981
692
+ },
693
+ "phone_number": "540-678-0500"
694
+ }
695
+ }
696
+ },
697
+ "member": {
698
+ "member_key": "API_RUBY_GEM_TEST",
699
+ "program_key": "200156",
700
+ "program_name": "RWS API - No Filters No Limit",
701
+ "organization_key": "160",
702
+ "organization_name": "Access Development"
703
+ }
704
+ },
705
+ {
706
+ "usage_redeem_key": 4768745,
707
+ "redeem_key": 1006,
708
+ "redeem_type": "online_link",
709
+ "usage_date": "2018-06-28T13:24:47.000Z",
710
+ "offer": {
711
+ "offer_key": 7354635,
712
+ "offer_group_key": 316539,
713
+ "title": "10% off regular menu items.",
714
+ "started_on": "2018-03-02T06:00:00.000Z",
715
+ "expires_on": "2018-07-31T05:59:59.999Z",
716
+ "logo_url": "https://static-stage.accessdevelopment.com/brand/9b75505c547e6b7c0bbd02f292eb9f298bd16e37/original.png",
717
+ "national_offer": false,
718
+ "uses_per_period": "unlimited",
719
+ "offer_set": "DISCOUNT",
720
+ "savings_amount": "10%",
721
+ "minimum_purchase": 0.0,
722
+ "maximum_award": 0.0,
723
+ "offer_value": 1,
724
+ "discount_type": "percent",
725
+ "discount_value": 10.0,
726
+ "promotion_code": false,
727
+ "redemption_methods": [
728
+ "link",
729
+ "instore_print"
446
730
  ],
447
731
  "categories": [
448
732
  {
@@ -454,29 +738,30 @@ http_interactions:
454
738
  }
455
739
  ],
456
740
  "offer_store": {
457
- "name": "Pizza Hut",
458
- "description": "Pizza Hut is the home of America's favorite pizza, delivering delicious hot pizza and WingStreet buffalo wings straight to your door. We offer a variety of pizza styles, including our flagship Pan Pizza, as well as Thin n' Crispy, Stuffed Crust, Hand Tossed, and Sicilian. Other menu items include pasta, salads, and sandwiches. Pizza Hut offers dine-in service at its characteristic red-roofed restaurants, as well as carry-out and delivery service",
459
- "store_key": 18939060,
741
+ "name": "Anthony's Pizza",
742
+ "description": "Anthony's Pizza offers classic Italian Pizza and is known for their giant pizza slices and great value.",
743
+ "store_key": 65422699,
460
744
  "physical_location": {
461
- "location_name": "Pizza Hut",
462
- "web_address": "http://www.pizzahut.com/",
745
+ "location_name": "Anthony's Pizza XIII",
746
+ "web_address": "",
463
747
  "description": null,
464
- "location_key": 244970,
465
- "postal_code": "32819",
748
+ "online_exclusive": false,
749
+ "location_key": 899212,
750
+ "postal_code": "22601",
466
751
  "country": "US",
467
- "street_address": "8255 International Dr Ste 144-B",
752
+ "street_address": "688 N Loudoun St",
468
753
  "extended_street_address": null,
469
- "city_locality": "Orlando",
470
- "state_region": "FL",
754
+ "city_locality": "Winchester",
755
+ "state_region": "VA",
471
756
  "geolocation_array": [
472
- -81.4819,
473
- 28.46655
757
+ -78.15981,
758
+ 39.19636
474
759
  ],
475
760
  "geolocation": {
476
- "lat": 28.46655,
477
- "lon": -81.4819
761
+ "lat": 39.19636,
762
+ "lon": -78.15981
478
763
  },
479
- "phone_number": "407-354-1582"
764
+ "phone_number": "540-678-0500"
480
765
  }
481
766
  }
482
767
  },
@@ -488,8 +773,11 @@ http_interactions:
488
773
  "organization_name": "Access Development"
489
774
  }
490
775
  }
491
- ]
776
+ ],
777
+ "links": {
778
+ "next_page": "https://report-stage.adcrws.com/v1/members/API_RUBY_GEM_TEST/offer_redemptions?page=2"
779
+ }
492
780
  }
493
781
  http_version:
494
- recorded_at: Mon, 22 Feb 2016 20:31:27 GMT
495
- recorded_with: VCR 3.0.1
782
+ recorded_at: Sun, 01 Jul 2018 04:23:57 GMT
783
+ recorded_with: VCR 4.0.0