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
@@ -1,38 +0,0 @@
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
- - Thu, 21 Jan 2016 18:34:42 GMT
25
- Etag:
26
- - '"0ff5ab06abc27ae6bc33adccffb86e1ff"'
27
- Server:
28
- - nginx/1.8.0
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: Thu, 21 Jan 2016 18:34:47 GMT
38
- recorded_with: VCR 3.0.0
@@ -1,38 +0,0 @@
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
- - Thu, 21 Jan 2016 18:34:43 GMT
25
- Etag:
26
- - '"0882cb7268a9bd018f5b688eb289137fe"'
27
- Server:
28
- - nginx/1.8.0
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/7510656c7c6b89122181c9b978070b265814027a/original.html"},"links":[]}'
36
- http_version:
37
- recorded_at: Thu, 21 Jan 2016 18:34:48 GMT
38
- recorded_with: VCR 3.0.0
@@ -1,38 +0,0 @@
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
- - Thu, 21 Jan 2016 18:34:37 GMT
25
- Etag:
26
- - '"02c570fa50d93c493f94408c72640d290"'
27
- Server:
28
- - nginx/1.8.0
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/cef7ec978b3f0b627c5b98b5894f4af3396aedca/original.html"},"links":[]}'
36
- http_version:
37
- recorded_at: Thu, 21 Jan 2016 18:34:42 GMT
38
- recorded_with: VCR 3.0.0
@@ -1,762 +0,0 @@
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
- Server:
22
- - nginx/1.8.0
23
- Date:
24
- - Thu, 21 Jan 2016 18:34:29 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
- - '"09c8fce14f51000a9fea6ab4b5bb71d8"'
47
- Cache-Control:
48
- - max-age=0, private, must-revalidate
49
- X-Request-Id:
50
- - 12c27b24-30c8-446a-827b-3a8ace8a578f
51
- X-Runtime:
52
- - '0.042583'
53
- body:
54
- encoding: UTF-8
55
- string: |-
56
- {
57
- "info": {
58
- "total_results": 190,
59
- "current_page": 1,
60
- "total_pages": 19,
61
- "results_per_page": 10,
62
- "total_savings": 1339
63
- },
64
- "offer_redemptions": [
65
- {
66
- "usage_redeem_key": 1610877,
67
- "redeem_key": 1001,
68
- "redeem_type": "instore_print_coupon",
69
- "usage_date": "2016-01-21T18:14:56.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-09-23T00:00:00.000Z",
75
- "expires_on": "2016-02-20T23: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": 1610876,
136
- "redeem_key": 1001,
137
- "redeem_type": "instore_print_coupon",
138
- "usage_date": "2016-01-21T18:14:41.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-09-23T00:00:00.000Z",
144
- "expires_on": "2016-02-20T23: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": 1610875,
205
- "redeem_key": 1001,
206
- "redeem_type": "instore_print_coupon",
207
- "usage_date": "2016-01-21T18:01:10.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-09-23T00:00:00.000Z",
213
- "expires_on": "2016-02-20T23: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": 1610874,
274
- "redeem_key": 1001,
275
- "redeem_type": "instore_print_coupon",
276
- "usage_date": "2016-01-21T18:00:44.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-09-23T00:00:00.000Z",
282
- "expires_on": "2016-02-20T23: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": 1608548,
343
- "redeem_key": 1001,
344
- "redeem_type": "instore_print_coupon",
345
- "usage_date": "2015-11-03T22:59:46.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-09-23T00:00:00.000Z",
351
- "expires_on": "2016-02-20T23: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": 1608546,
412
- "redeem_key": 1001,
413
- "redeem_type": "instore_print_coupon",
414
- "usage_date": "2015-11-03T22:59:45.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-09-23T00:00:00.000Z",
420
- "expires_on": "2016-02-20T23: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": 1608547,
481
- "redeem_key": 1001,
482
- "redeem_type": "instore_print_coupon",
483
- "usage_date": "2015-11-03T22:59:45.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-09-23T00:00:00.000Z",
489
- "expires_on": "2016-02-20T23: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": 1608545,
550
- "redeem_key": 1001,
551
- "redeem_type": "instore_print_coupon",
552
- "usage_date": "2015-11-03T22:59:44.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-09-23T00:00:00.000Z",
558
- "expires_on": "2016-02-20T23: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": 1608544,
619
- "redeem_key": 1001,
620
- "redeem_type": "instore_print_coupon",
621
- "usage_date": "2015-11-03T22:59:41.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-09-23T00:00:00.000Z",
627
- "expires_on": "2016-02-20T23: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": 1608543,
688
- "redeem_key": 1001,
689
- "redeem_type": "instore_print_coupon",
690
- "usage_date": "2015-11-03T22:54:30.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-09-23T00:00:00.000Z",
696
- "expires_on": "2016-02-20T23: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: Thu, 21 Jan 2016 18:34:34 GMT
762
- recorded_with: VCR 3.0.0