access 2.0.48 → 2.0.49

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 (172) hide show
  1. checksums.yaml +4 -4
  2. data/.env.sample +8 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile.lock +3 -1
  5. data/README.md +4 -0
  6. data/access.gemspec +1 -0
  7. data/bin/console +2 -1
  8. data/lib/access/api.rb +4 -4
  9. data/lib/access/favorite.rb +2 -2
  10. data/lib/access/version.rb +1 -1
  11. data/test/access/autocomplete_test.rb +5 -5
  12. data/test/access/campaign_test.rb +3 -3
  13. data/test/access/category_test.rb +5 -5
  14. data/test/access/channel_test.rb +6 -6
  15. data/test/access/device_test.rb +4 -4
  16. data/test/access/favorite_test.rb +61 -54
  17. data/test/access/filter_test.rb +3 -3
  18. data/test/access/location_test.rb +4 -4
  19. data/test/access/member_test.rb +3 -3
  20. data/test/access/oauth_application_test.rb +6 -7
  21. data/test/access/offer_test.rb +9 -9
  22. data/test/access/redeem_test.rb +3 -3
  23. data/test/access/redemption_test.rb +4 -5
  24. data/test/access/report_test.rb +14 -14
  25. data/test/access/spot_test.rb +4 -4
  26. data/test/access/store_test.rb +5 -5
  27. data/test/access/token_test.rb +3 -3
  28. data/test/access/user_test.rb +19 -15
  29. data/test/access/verify_test.rb +2 -2
  30. data/test/test_helper.rb +6 -3
  31. data/test/vcr/cassettes/{autocomplete_search_categories.yml → autocomplete/search_categories.yml} +8 -8
  32. data/test/vcr/cassettes/autocomplete/search_first.yml +94 -0
  33. data/test/vcr/cassettes/autocomplete/search_locations.yml +71 -0
  34. data/test/vcr/cassettes/{autocomplete_search_offers.yml → autocomplete/search_offers.yml} +10 -10
  35. data/test/vcr/cassettes/{autocomplete_search_stores.yml → autocomplete/search_stores.yml} +11 -11
  36. data/test/vcr/cassettes/campaign/search.yml +1021 -0
  37. data/test/vcr/cassettes/{category_find.yml → category/find.yml} +29 -29
  38. data/test/vcr/cassettes/category/search.yml +1588 -0
  39. data/test/vcr/cassettes/{location_search_fail_member_key.yml → category/search_fail_member_key.yml} +6 -6
  40. data/test/vcr/cassettes/{category_search.yml → category/search_first.yml} +739 -787
  41. data/test/vcr/cassettes/{subcategory_find.yml → category/subcategory_find.yml} +28 -28
  42. data/test/vcr/cassettes/{channel_search.yml → channel/search.yml} +3 -3
  43. data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +126 -0
  44. data/test/vcr/cassettes/{favorite_create_offer.yml → favorite/create_location.yml} +7 -7
  45. data/test/vcr/cassettes/favorite/create_offer.yml +126 -0
  46. data/test/vcr/cassettes/favorite/create_store.yml +94 -0
  47. data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +171 -0
  48. data/test/vcr/cassettes/favorite/delete_location.yml +203 -0
  49. data/test/vcr/cassettes/favorite/delete_offer.yml +294 -0
  50. data/test/vcr/cassettes/favorite/delete_store.yml +258 -0
  51. data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +323 -0
  52. data/test/vcr/cassettes/favorite/find_location.yml +158 -0
  53. data/test/vcr/cassettes/favorite/find_offer.yml +323 -0
  54. data/test/vcr/cassettes/favorite/find_store.yml +213 -0
  55. data/test/vcr/cassettes/{favorite_one_of_everything.yml → favorite/one_of_everything.yml} +181 -58
  56. data/test/vcr/cassettes/favorite/search.yml +346 -0
  57. data/test/vcr/cassettes/favorite/search_bad_member.yml +66 -0
  58. data/test/vcr/cassettes/favorite/search_locations.yml +113 -0
  59. data/test/vcr/cassettes/favorite/search_no_favorites.yml +66 -0
  60. data/test/vcr/cassettes/favorite/search_offers.yml +200 -0
  61. data/test/vcr/cassettes/favorite/search_stores.yml +178 -0
  62. data/test/vcr/cassettes/filter/find.yml +66 -0
  63. data/test/vcr/cassettes/{filter_search.yml → filter/search.yml} +12 -12
  64. data/test/vcr/cassettes/filter/search_first.yml +75 -0
  65. data/test/vcr/cassettes/location/find.yml +680 -0
  66. data/test/vcr/cassettes/location/search.yml +123 -0
  67. data/test/vcr/cassettes/{category_search_fail_member_key.yml → location/search_fail_member_key.yml} +6 -6
  68. data/test/vcr/cassettes/location/search_first.yml +123 -0
  69. data/test/vcr/cassettes/{member_show_failure.yml → member/show_failure.yml} +3 -3
  70. data/test/vcr/cassettes/{member_show_success.yml → member/show_success.yml} +5 -5
  71. data/test/vcr/cassettes/{favorite_delete_generic_with_offer.yml → member/update_success.yml} +7 -7
  72. data/test/vcr/cassettes/{member_authenticate_cvt_failure.yml → member_authenticate/cvt_failure.yml} +4 -4
  73. data/test/vcr/cassettes/{member_authenticate_cvt_success.yml → member_authenticate/cvt_success.yml} +6 -6
  74. data/test/vcr/cassettes/{member_authenticate_failure.yml → member_authenticate/failure.yml} +4 -4
  75. data/test/vcr/cassettes/{member_authenticate_member_key_failure.yml → member_authenticate/member_key_failure.yml} +3 -3
  76. data/test/vcr/cassettes/{member_authenticate_member_key_success.yml → member_authenticate/member_key_success.yml} +3 -3
  77. data/test/vcr/cassettes/{member_authenticate_success.yml → member_authenticate/success.yml} +5 -5
  78. data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml} +3 -3
  79. data/test/vcr/cassettes/member_device/search_success.yml +63 -0
  80. data/test/vcr/cassettes/{oauth_application_find.yml → oauth_application/find.yml} +19 -15
  81. data/test/vcr/cassettes/{oauth_application_search.yml → oauth_application/search.yml} +23 -19
  82. data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +95 -0
  83. data/test/vcr/cassettes/oauth_application/token_find.yml +95 -0
  84. data/test/vcr/cassettes/oauth_application/token_search.yml +720 -0
  85. data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +242 -0
  86. data/test/vcr/cassettes/offer/find.yml +158 -0
  87. data/test/vcr/cassettes/{offer_find_uses_remaining.yml → offer/find_uses_remaining.yml} +10 -10
  88. data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +158 -0
  89. data/test/vcr/cassettes/offer/search.yml +159 -0
  90. data/test/vcr/cassettes/{offer_search_fail_member_key.yml → offer/search_fail_member_key.yml} +6 -6
  91. data/test/vcr/cassettes/offer/search_first.yml +159 -0
  92. data/test/vcr/cassettes/offer/search_for_redeem.yml +159 -0
  93. data/test/vcr/cassettes/offer/with_aggregations.yml +1046 -0
  94. data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +36 -0
  95. data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +36 -0
  96. data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +36 -0
  97. data/test/vcr/cassettes/redemption/find_by_member_key.yml +133 -0
  98. data/test/vcr/cassettes/redemption/search_by_member_key.yml +495 -0
  99. data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +495 -0
  100. data/test/vcr/cassettes/{search_redemption_by_member_key_without_redemptions.yml → redemption/search_by_member_key_without_redemptions.yml} +6 -6
  101. data/test/vcr/cassettes/report/all_usage.yml +156 -0
  102. data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml} +6 -10
  103. data/test/vcr/cassettes/{member_location_recent.yml → report/member_location_recent.yml} +6 -6
  104. data/test/vcr/cassettes/{member_query_frequent.yml → report/member_query_frequent.yml} +6 -6
  105. data/test/vcr/cassettes/{member_query_recent.yml → report/member_query_recent.yml} +6 -6
  106. data/test/vcr/cassettes/report/usage.yml +156 -0
  107. data/test/vcr/cassettes/report/usage_other.yml +156 -0
  108. data/test/vcr/cassettes/{spot_find.yml → spot/find.yml} +3 -3
  109. data/test/vcr/cassettes/spot/search_by_campaign.yml +2727 -0
  110. data/test/vcr/cassettes/spot/search_by_channel.yml +956 -0
  111. data/test/vcr/cassettes/spot/search_by_channel_first.yml +956 -0
  112. data/test/vcr/cassettes/{store_find.yml → store/find.yml} +17 -17
  113. data/test/vcr/cassettes/store/national_stores.yml +3057 -0
  114. data/test/vcr/cassettes/{store_search.yml → store/search.yml} +21 -21
  115. data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml} +6 -6
  116. data/test/vcr/cassettes/store/search_first.yml +95 -0
  117. data/test/vcr/cassettes/token/find.yml +107 -0
  118. data/test/vcr/cassettes/token/get_first_token.yml +121 -0
  119. data/test/vcr/cassettes/token/search.yml +121 -0
  120. data/test/vcr/cassettes/{user_register_failure.yml → user_register/failure.yml} +4 -4
  121. data/test/vcr/cassettes/user_register/success.yml +101 -0
  122. data/test/vcr/cassettes/{user_update_success.yml → user_update/success.yml} +8 -6
  123. data/test/vcr/cassettes/{verify_filter.yml → verify/filter.yml} +41 -124
  124. data/test/vcr/cassettes/{verify_token.yml → verify/token.yml} +14 -11
  125. metadata +205 -174
  126. data/test/vcr/cassettes/all_usage.yml +0 -84
  127. data/test/vcr/cassettes/autocomplete_search.yml +0 -84
  128. data/test/vcr/cassettes/autocomplete_search_locations.yml +0 -66
  129. data/test/vcr/cassettes/campaign_find.yml +0 -232
  130. data/test/vcr/cassettes/campaign_search.yml +0 -1258
  131. data/test/vcr/cassettes/channel_find.yml +0 -57
  132. data/test/vcr/cassettes/favorite_create_generic_with_offer.yml +0 -93
  133. data/test/vcr/cassettes/favorite_create_location.yml +0 -91
  134. data/test/vcr/cassettes/favorite_create_store.yml +0 -92
  135. data/test/vcr/cassettes/favorite_delete_location.yml +0 -94
  136. data/test/vcr/cassettes/favorite_delete_offer.yml +0 -93
  137. data/test/vcr/cassettes/favorite_delete_store.yml +0 -94
  138. data/test/vcr/cassettes/favorite_find_generic_with_offer.yml +0 -93
  139. data/test/vcr/cassettes/favorite_find_location.yml +0 -179
  140. data/test/vcr/cassettes/favorite_find_offer.yml +0 -93
  141. data/test/vcr/cassettes/favorite_find_store.yml +0 -181
  142. data/test/vcr/cassettes/favorite_search.yml +0 -131
  143. data/test/vcr/cassettes/favorite_search_bad_member.yml +0 -49
  144. data/test/vcr/cassettes/favorite_search_locations.yml +0 -99
  145. data/test/vcr/cassettes/favorite_search_no_favorites.yml +0 -49
  146. data/test/vcr/cassettes/favorite_search_offers.yml +0 -169
  147. data/test/vcr/cassettes/favorite_search_stores.yml +0 -92
  148. data/test/vcr/cassettes/filter_find.yml +0 -174
  149. data/test/vcr/cassettes/find_redemption_by_member_key.yml +0 -131
  150. data/test/vcr/cassettes/location_find.yml +0 -505
  151. data/test/vcr/cassettes/location_search.yml +0 -123
  152. data/test/vcr/cassettes/member_device_search_success.yml +0 -48
  153. data/test/vcr/cassettes/member_update_success.yml +0 -183
  154. data/test/vcr/cassettes/national_stores.yml +0 -1914
  155. data/test/vcr/cassettes/oauth_application_token_find.yml +0 -92
  156. data/test/vcr/cassettes/oauth_application_token_search.yml +0 -95
  157. data/test/vcr/cassettes/offer_find.yml +0 -149
  158. data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +0 -149
  159. data/test/vcr/cassettes/offer_search.yml +0 -148
  160. data/test/vcr/cassettes/offer_with_aggregations.yml +0 -934
  161. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +0 -38
  162. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +0 -38
  163. data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +0 -38
  164. data/test/vcr/cassettes/search_redemption_by_member_key.yml +0 -762
  165. data/test/vcr/cassettes/spot_search_by_campaign.yml +0 -2954
  166. data/test/vcr/cassettes/spot_search_by_channel.yml +0 -1192
  167. data/test/vcr/cassettes/token_find.yml +0 -99
  168. data/test/vcr/cassettes/token_get_first_token.yml +0 -113
  169. data/test/vcr/cassettes/token_search.yml +0 -113
  170. data/test/vcr/cassettes/usage.yml +0 -84
  171. data/test/vcr/cassettes/usage_other.yml +0 -84
  172. data/test/vcr/cassettes/user_register_success.yml +0 -50
@@ -0,0 +1,495 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://report-stage.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
+ Server:
22
+ - nginx/1.8.0
23
+ Date:
24
+ - Mon, 22 Feb 2016 20:31:24 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
+ - '"793c8ff6b247dde0fd57b3f771ac2661"'
47
+ Cache-Control:
48
+ - max-age=0, private, must-revalidate
49
+ X-Request-Id:
50
+ - a1e013b9-abf8-4e8d-b8f0-156da124deec
51
+ X-Runtime:
52
+ - '0.027211'
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "info": {
58
+ "total_results": 6,
59
+ "current_page": 1,
60
+ "total_pages": 1,
61
+ "results_per_page": 6,
62
+ "total_savings": 30
63
+ },
64
+ "offer_redemptions": [
65
+ {
66
+ "usage_redeem_key": 2915840,
67
+ "redeem_key": 1002,
68
+ "redeem_type": "instore_digital_coupon",
69
+ "usage_date": "2016-02-22T13:31:21.000Z",
70
+ "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",
77
+ "national_offer": false,
78
+ "uses_per_period": "unlimited",
79
+ "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,
87
+ "redemption_methods": [
88
+ "instore",
89
+ "instore_print",
90
+ "link"
91
+ ],
92
+ "categories": [
93
+ {
94
+ "category_name": "Fast Food",
95
+ "category_key": 1008,
96
+ "category_parent_key": 39,
97
+ "category_parent_name": "Dining & Food",
98
+ "category_type": "subcategory"
99
+ }
100
+ ],
101
+ "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,
105
+ "physical_location": {
106
+ "location_name": "Pizza Hut",
107
+ "web_address": "http://www.pizzahut.com/",
108
+ "description": null,
109
+ "location_key": 244932,
110
+ "postal_code": "32817",
111
+ "country": "US",
112
+ "street_address": "10002 University Blvd",
113
+ "extended_street_address": "",
114
+ "city_locality": "Orlando",
115
+ "state_region": "FL",
116
+ "geolocation_array": [
117
+ -81.24415,
118
+ 28.5962
119
+ ],
120
+ "geolocation": {
121
+ "lat": 28.5962,
122
+ "lon": -81.24415
123
+ },
124
+ "phone_number": "407-679-7575"
125
+ }
126
+ }
127
+ },
128
+ "member": {
129
+ "member_key": "API_RUBY_GEM_TEST",
130
+ "program_key": "200156",
131
+ "program_name": "RWS API - No Filters No Limit",
132
+ "organization_key": "160",
133
+ "organization_name": "Access Development"
134
+ }
135
+ },
136
+ {
137
+ "usage_redeem_key": 2915839,
138
+ "redeem_key": 1002,
139
+ "redeem_type": "instore_digital_coupon",
140
+ "usage_date": "2016-02-22T13:16:53.000Z",
141
+ "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",
148
+ "national_offer": false,
149
+ "uses_per_period": "unlimited",
150
+ "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,
158
+ "redemption_methods": [
159
+ "instore",
160
+ "instore_print",
161
+ "link"
162
+ ],
163
+ "categories": [
164
+ {
165
+ "category_name": "Fast Food",
166
+ "category_key": 1008,
167
+ "category_parent_key": 39,
168
+ "category_parent_name": "Dining & Food",
169
+ "category_type": "subcategory"
170
+ }
171
+ ],
172
+ "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,
176
+ "physical_location": {
177
+ "location_name": "Pizza Hut",
178
+ "web_address": "http://www.pizzahut.com/",
179
+ "description": null,
180
+ "location_key": 244932,
181
+ "postal_code": "32817",
182
+ "country": "US",
183
+ "street_address": "10002 University Blvd",
184
+ "extended_street_address": "",
185
+ "city_locality": "Orlando",
186
+ "state_region": "FL",
187
+ "geolocation_array": [
188
+ -81.24415,
189
+ 28.5962
190
+ ],
191
+ "geolocation": {
192
+ "lat": 28.5962,
193
+ "lon": -81.24415
194
+ },
195
+ "phone_number": "407-679-7575"
196
+ }
197
+ }
198
+ },
199
+ "member": {
200
+ "member_key": "API_RUBY_GEM_TEST",
201
+ "program_key": "200156",
202
+ "program_name": "RWS API - No Filters No Limit",
203
+ "organization_key": "160",
204
+ "organization_name": "Access Development"
205
+ }
206
+ },
207
+ {
208
+ "usage_redeem_key": 2915838,
209
+ "redeem_key": 1002,
210
+ "redeem_type": "instore_digital_coupon",
211
+ "usage_date": "2016-02-22T12:48:00.000Z",
212
+ "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",
219
+ "national_offer": false,
220
+ "uses_per_period": "unlimited",
221
+ "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,
229
+ "redemption_methods": [
230
+ "instore",
231
+ "instore_print",
232
+ "link"
233
+ ],
234
+ "categories": [
235
+ {
236
+ "category_name": "Fast Food",
237
+ "category_key": 1008,
238
+ "category_parent_key": 39,
239
+ "category_parent_name": "Dining & Food",
240
+ "category_type": "subcategory"
241
+ }
242
+ ],
243
+ "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,
247
+ "physical_location": {
248
+ "location_name": "Pizza Hut",
249
+ "web_address": "http://www.pizzahut.com/",
250
+ "description": null,
251
+ "location_key": 244932,
252
+ "postal_code": "32817",
253
+ "country": "US",
254
+ "street_address": "10002 University Blvd",
255
+ "extended_street_address": "",
256
+ "city_locality": "Orlando",
257
+ "state_region": "FL",
258
+ "geolocation_array": [
259
+ -81.24415,
260
+ 28.5962
261
+ ],
262
+ "geolocation": {
263
+ "lat": 28.5962,
264
+ "lon": -81.24415
265
+ },
266
+ "phone_number": "407-679-7575"
267
+ }
268
+ }
269
+ },
270
+ "member": {
271
+ "member_key": "API_RUBY_GEM_TEST",
272
+ "program_key": "200156",
273
+ "program_name": "RWS API - No Filters No Limit",
274
+ "organization_key": "160",
275
+ "organization_name": "Access Development"
276
+ }
277
+ },
278
+ {
279
+ "usage_redeem_key": 2915837,
280
+ "redeem_key": 1002,
281
+ "redeem_type": "instore_digital_coupon",
282
+ "usage_date": "2016-02-22T12:33:43.000Z",
283
+ "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",
290
+ "national_offer": false,
291
+ "uses_per_period": "unlimited",
292
+ "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,
300
+ "redemption_methods": [
301
+ "instore",
302
+ "instore_print",
303
+ "link"
304
+ ],
305
+ "categories": [
306
+ {
307
+ "category_name": "Fast Food",
308
+ "category_key": 1008,
309
+ "category_parent_key": 39,
310
+ "category_parent_name": "Dining & Food",
311
+ "category_type": "subcategory"
312
+ }
313
+ ],
314
+ "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,
318
+ "physical_location": {
319
+ "location_name": "Pizza Hut",
320
+ "web_address": "http://www.pizzahut.com/",
321
+ "description": null,
322
+ "location_key": 244932,
323
+ "postal_code": "32817",
324
+ "country": "US",
325
+ "street_address": "10002 University Blvd",
326
+ "extended_street_address": "",
327
+ "city_locality": "Orlando",
328
+ "state_region": "FL",
329
+ "geolocation_array": [
330
+ -81.24415,
331
+ 28.5962
332
+ ],
333
+ "geolocation": {
334
+ "lat": 28.5962,
335
+ "lon": -81.24415
336
+ },
337
+ "phone_number": "407-679-7575"
338
+ }
339
+ }
340
+ },
341
+ "member": {
342
+ "member_key": "API_RUBY_GEM_TEST",
343
+ "program_key": "200156",
344
+ "program_name": "RWS API - No Filters No Limit",
345
+ "organization_key": "160",
346
+ "organization_name": "Access Development"
347
+ }
348
+ },
349
+ {
350
+ "usage_redeem_key": 2915621,
351
+ "redeem_key": 1002,
352
+ "redeem_type": "instore_digital_coupon",
353
+ "usage_date": "2016-02-01T17:13:37.000Z",
354
+ "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",
361
+ "national_offer": false,
362
+ "uses_per_period": "unlimited",
363
+ "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,
371
+ "redemption_methods": [
372
+ "instore",
373
+ "instore_print",
374
+ "link"
375
+ ],
376
+ "categories": [
377
+ {
378
+ "category_name": "Fast Food",
379
+ "category_key": 1008,
380
+ "category_parent_key": 39,
381
+ "category_parent_name": "Dining & Food",
382
+ "category_type": "subcategory"
383
+ }
384
+ ],
385
+ "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,
389
+ "physical_location": {
390
+ "location_name": "Pizza Hut",
391
+ "web_address": "http://www.pizzahut.com/",
392
+ "description": null,
393
+ "location_key": 244970,
394
+ "postal_code": "32819",
395
+ "country": "US",
396
+ "street_address": "8255 International Dr Ste 144-B",
397
+ "extended_street_address": null,
398
+ "city_locality": "Orlando",
399
+ "state_region": "FL",
400
+ "geolocation_array": [
401
+ -81.4819,
402
+ 28.46655
403
+ ],
404
+ "geolocation": {
405
+ "lat": 28.46655,
406
+ "lon": -81.4819
407
+ },
408
+ "phone_number": "407-354-1582"
409
+ }
410
+ }
411
+ },
412
+ "member": {
413
+ "member_key": "API_RUBY_GEM_TEST",
414
+ "program_key": "200156",
415
+ "program_name": "RWS API - No Filters No Limit",
416
+ "organization_key": "160",
417
+ "organization_name": "Access Development"
418
+ }
419
+ },
420
+ {
421
+ "usage_redeem_key": 2915620,
422
+ "redeem_key": 1002,
423
+ "redeem_type": "instore_digital_coupon",
424
+ "usage_date": "2016-02-01T17:13:32.000Z",
425
+ "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",
432
+ "national_offer": false,
433
+ "uses_per_period": "unlimited",
434
+ "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",
441
+ "promotion_code": true,
442
+ "redemption_methods": [
443
+ "instore",
444
+ "instore_print",
445
+ "link"
446
+ ],
447
+ "categories": [
448
+ {
449
+ "category_name": "Fast Food",
450
+ "category_key": 1008,
451
+ "category_parent_key": 39,
452
+ "category_parent_name": "Dining & Food",
453
+ "category_type": "subcategory"
454
+ }
455
+ ],
456
+ "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,
460
+ "physical_location": {
461
+ "location_name": "Pizza Hut",
462
+ "web_address": "http://www.pizzahut.com/",
463
+ "description": null,
464
+ "location_key": 244970,
465
+ "postal_code": "32819",
466
+ "country": "US",
467
+ "street_address": "8255 International Dr Ste 144-B",
468
+ "extended_street_address": null,
469
+ "city_locality": "Orlando",
470
+ "state_region": "FL",
471
+ "geolocation_array": [
472
+ -81.4819,
473
+ 28.46655
474
+ ],
475
+ "geolocation": {
476
+ "lat": 28.46655,
477
+ "lon": -81.4819
478
+ },
479
+ "phone_number": "407-354-1582"
480
+ }
481
+ }
482
+ },
483
+ "member": {
484
+ "member_key": "API_RUBY_GEM_TEST",
485
+ "program_key": "200156",
486
+ "program_name": "RWS API - No Filters No Limit",
487
+ "organization_key": "160",
488
+ "organization_name": "Access Development"
489
+ }
490
+ }
491
+ ]
492
+ }
493
+ http_version:
494
+ recorded_at: Mon, 22 Feb 2016 20:31:27 GMT
495
+ recorded_with: VCR 3.0.1