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.
- checksums.yaml +4 -4
- data/.env.sample +8 -0
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -1
- data/README.md +4 -0
- data/access.gemspec +1 -0
- data/bin/console +2 -1
- data/lib/access/api.rb +4 -4
- data/lib/access/favorite.rb +2 -2
- data/lib/access/version.rb +1 -1
- data/test/access/autocomplete_test.rb +5 -5
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +5 -5
- data/test/access/channel_test.rb +6 -6
- data/test/access/device_test.rb +4 -4
- data/test/access/favorite_test.rb +61 -54
- data/test/access/filter_test.rb +3 -3
- data/test/access/location_test.rb +4 -4
- data/test/access/member_test.rb +3 -3
- data/test/access/oauth_application_test.rb +6 -7
- data/test/access/offer_test.rb +9 -9
- data/test/access/redeem_test.rb +3 -3
- data/test/access/redemption_test.rb +4 -5
- data/test/access/report_test.rb +14 -14
- data/test/access/spot_test.rb +4 -4
- data/test/access/store_test.rb +5 -5
- data/test/access/token_test.rb +3 -3
- data/test/access/user_test.rb +19 -15
- data/test/access/verify_test.rb +2 -2
- data/test/test_helper.rb +6 -3
- data/test/vcr/cassettes/{autocomplete_search_categories.yml → autocomplete/search_categories.yml} +8 -8
- data/test/vcr/cassettes/autocomplete/search_first.yml +94 -0
- data/test/vcr/cassettes/autocomplete/search_locations.yml +71 -0
- data/test/vcr/cassettes/{autocomplete_search_offers.yml → autocomplete/search_offers.yml} +10 -10
- data/test/vcr/cassettes/{autocomplete_search_stores.yml → autocomplete/search_stores.yml} +11 -11
- data/test/vcr/cassettes/campaign/search.yml +1021 -0
- data/test/vcr/cassettes/{category_find.yml → category/find.yml} +29 -29
- data/test/vcr/cassettes/category/search.yml +1588 -0
- data/test/vcr/cassettes/{location_search_fail_member_key.yml → category/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/{category_search.yml → category/search_first.yml} +739 -787
- data/test/vcr/cassettes/{subcategory_find.yml → category/subcategory_find.yml} +28 -28
- data/test/vcr/cassettes/{channel_search.yml → channel/search.yml} +3 -3
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +126 -0
- data/test/vcr/cassettes/{favorite_create_offer.yml → favorite/create_location.yml} +7 -7
- data/test/vcr/cassettes/favorite/create_offer.yml +126 -0
- data/test/vcr/cassettes/favorite/create_store.yml +94 -0
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +171 -0
- data/test/vcr/cassettes/favorite/delete_location.yml +203 -0
- data/test/vcr/cassettes/favorite/delete_offer.yml +294 -0
- data/test/vcr/cassettes/favorite/delete_store.yml +258 -0
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_location.yml +158 -0
- data/test/vcr/cassettes/favorite/find_offer.yml +323 -0
- data/test/vcr/cassettes/favorite/find_store.yml +213 -0
- data/test/vcr/cassettes/{favorite_one_of_everything.yml → favorite/one_of_everything.yml} +181 -58
- data/test/vcr/cassettes/favorite/search.yml +346 -0
- data/test/vcr/cassettes/favorite/search_bad_member.yml +66 -0
- data/test/vcr/cassettes/favorite/search_locations.yml +113 -0
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +66 -0
- data/test/vcr/cassettes/favorite/search_offers.yml +200 -0
- data/test/vcr/cassettes/favorite/search_stores.yml +178 -0
- data/test/vcr/cassettes/filter/find.yml +66 -0
- data/test/vcr/cassettes/{filter_search.yml → filter/search.yml} +12 -12
- data/test/vcr/cassettes/filter/search_first.yml +75 -0
- data/test/vcr/cassettes/location/find.yml +680 -0
- data/test/vcr/cassettes/location/search.yml +123 -0
- data/test/vcr/cassettes/{category_search_fail_member_key.yml → location/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/location/search_first.yml +123 -0
- data/test/vcr/cassettes/{member_show_failure.yml → member/show_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_show_success.yml → member/show_success.yml} +5 -5
- data/test/vcr/cassettes/{favorite_delete_generic_with_offer.yml → member/update_success.yml} +7 -7
- data/test/vcr/cassettes/{member_authenticate_cvt_failure.yml → member_authenticate/cvt_failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_cvt_success.yml → member_authenticate/cvt_success.yml} +6 -6
- data/test/vcr/cassettes/{member_authenticate_failure.yml → member_authenticate/failure.yml} +4 -4
- data/test/vcr/cassettes/{member_authenticate_member_key_failure.yml → member_authenticate/member_key_failure.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_member_key_success.yml → member_authenticate/member_key_success.yml} +3 -3
- data/test/vcr/cassettes/{member_authenticate_success.yml → member_authenticate/success.yml} +5 -5
- data/test/vcr/cassettes/{member_device_search_failure.yml → member_device/search_failure.yml} +3 -3
- data/test/vcr/cassettes/member_device/search_success.yml +63 -0
- data/test/vcr/cassettes/{oauth_application_find.yml → oauth_application/find.yml} +19 -15
- data/test/vcr/cassettes/{oauth_application_search.yml → oauth_application/search.yml} +23 -19
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_find.yml +95 -0
- data/test/vcr/cassettes/oauth_application/token_search.yml +720 -0
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +242 -0
- data/test/vcr/cassettes/offer/find.yml +158 -0
- data/test/vcr/cassettes/{offer_find_uses_remaining.yml → offer/find_uses_remaining.yml} +10 -10
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +158 -0
- data/test/vcr/cassettes/offer/search.yml +159 -0
- data/test/vcr/cassettes/{offer_search_fail_member_key.yml → offer/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/offer/search_first.yml +159 -0
- data/test/vcr/cassettes/offer/search_for_redeem.yml +159 -0
- data/test/vcr/cassettes/offer/with_aggregations.yml +1046 -0
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +36 -0
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +36 -0
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +133 -0
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +495 -0
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +495 -0
- data/test/vcr/cassettes/{search_redemption_by_member_key_without_redemptions.yml → redemption/search_by_member_key_without_redemptions.yml} +6 -6
- data/test/vcr/cassettes/report/all_usage.yml +156 -0
- data/test/vcr/cassettes/{member_location_frequent.yml → report/member_location_frequent.yml} +6 -10
- data/test/vcr/cassettes/{member_location_recent.yml → report/member_location_recent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_frequent.yml → report/member_query_frequent.yml} +6 -6
- data/test/vcr/cassettes/{member_query_recent.yml → report/member_query_recent.yml} +6 -6
- data/test/vcr/cassettes/report/usage.yml +156 -0
- data/test/vcr/cassettes/report/usage_other.yml +156 -0
- data/test/vcr/cassettes/{spot_find.yml → spot/find.yml} +3 -3
- data/test/vcr/cassettes/spot/search_by_campaign.yml +2727 -0
- data/test/vcr/cassettes/spot/search_by_channel.yml +956 -0
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +956 -0
- data/test/vcr/cassettes/{store_find.yml → store/find.yml} +17 -17
- data/test/vcr/cassettes/store/national_stores.yml +3057 -0
- data/test/vcr/cassettes/{store_search.yml → store/search.yml} +21 -21
- data/test/vcr/cassettes/{store_search_fail_member_key.yml → store/search_fail_member_key.yml} +6 -6
- data/test/vcr/cassettes/store/search_first.yml +95 -0
- data/test/vcr/cassettes/token/find.yml +107 -0
- data/test/vcr/cassettes/token/get_first_token.yml +121 -0
- data/test/vcr/cassettes/token/search.yml +121 -0
- data/test/vcr/cassettes/{user_register_failure.yml → user_register/failure.yml} +4 -4
- data/test/vcr/cassettes/user_register/success.yml +101 -0
- data/test/vcr/cassettes/{user_update_success.yml → user_update/success.yml} +8 -6
- data/test/vcr/cassettes/{verify_filter.yml → verify/filter.yml} +41 -124
- data/test/vcr/cassettes/{verify_token.yml → verify/token.yml} +14 -11
- metadata +205 -174
- data/test/vcr/cassettes/all_usage.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search.yml +0 -84
- data/test/vcr/cassettes/autocomplete_search_locations.yml +0 -66
- data/test/vcr/cassettes/campaign_find.yml +0 -232
- data/test/vcr/cassettes/campaign_search.yml +0 -1258
- data/test/vcr/cassettes/channel_find.yml +0 -57
- data/test/vcr/cassettes/favorite_create_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_create_location.yml +0 -91
- data/test/vcr/cassettes/favorite_create_store.yml +0 -92
- data/test/vcr/cassettes/favorite_delete_location.yml +0 -94
- data/test/vcr/cassettes/favorite_delete_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_delete_store.yml +0 -94
- data/test/vcr/cassettes/favorite_find_generic_with_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_location.yml +0 -179
- data/test/vcr/cassettes/favorite_find_offer.yml +0 -93
- data/test/vcr/cassettes/favorite_find_store.yml +0 -181
- data/test/vcr/cassettes/favorite_search.yml +0 -131
- data/test/vcr/cassettes/favorite_search_bad_member.yml +0 -49
- data/test/vcr/cassettes/favorite_search_locations.yml +0 -99
- data/test/vcr/cassettes/favorite_search_no_favorites.yml +0 -49
- data/test/vcr/cassettes/favorite_search_offers.yml +0 -169
- data/test/vcr/cassettes/favorite_search_stores.yml +0 -92
- data/test/vcr/cassettes/filter_find.yml +0 -174
- data/test/vcr/cassettes/find_redemption_by_member_key.yml +0 -131
- data/test/vcr/cassettes/location_find.yml +0 -505
- data/test/vcr/cassettes/location_search.yml +0 -123
- data/test/vcr/cassettes/member_device_search_success.yml +0 -48
- data/test/vcr/cassettes/member_update_success.yml +0 -183
- data/test/vcr/cassettes/national_stores.yml +0 -1914
- data/test/vcr/cassettes/oauth_application_token_find.yml +0 -92
- data/test/vcr/cassettes/oauth_application_token_search.yml +0 -95
- data/test/vcr/cassettes/offer_find.yml +0 -149
- data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +0 -149
- data/test/vcr/cassettes/offer_search.yml +0 -148
- data/test/vcr/cassettes/offer_with_aggregations.yml +0 -934
- data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +0 -38
- data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +0 -38
- data/test/vcr/cassettes/search_redemption_by_member_key.yml +0 -762
- data/test/vcr/cassettes/spot_search_by_campaign.yml +0 -2954
- data/test/vcr/cassettes/spot_search_by_channel.yml +0 -1192
- data/test/vcr/cassettes/token_find.yml +0 -99
- data/test/vcr/cassettes/token_get_first_token.yml +0 -113
- data/test/vcr/cassettes/token_search.yml +0 -113
- data/test/vcr/cassettes/usage.yml +0 -84
- data/test/vcr/cassettes/usage_other.yml +0 -84
- data/test/vcr/cassettes/user_register_success.yml +0 -50
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://token-stage.adcrws.com/v1/tokens?per_page=1
|
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:16:57 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
|
+
- '"8ad5faac2f01b1880e45c5ac956880f7"'
|
47
|
+
Cache-Control:
|
48
|
+
- max-age=0, private, must-revalidate
|
49
|
+
X-Request-Id:
|
50
|
+
- 538574ec-9f8b-422f-85e2-170cb5c32ede
|
51
|
+
X-Runtime:
|
52
|
+
- '0.014032'
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: |-
|
56
|
+
{
|
57
|
+
"info": {
|
58
|
+
"total_results": 1092,
|
59
|
+
"results_per_page": 1,
|
60
|
+
"current_page": 1,
|
61
|
+
"total_pages": 1092
|
62
|
+
},
|
63
|
+
"oauth_tokens": [
|
64
|
+
{
|
65
|
+
"application_id": 3960,
|
66
|
+
"token": "1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3",
|
67
|
+
"expires_in": null,
|
68
|
+
"revoked_at": null,
|
69
|
+
"created_at": "2016-02-16T13:34:42.793-07:00",
|
70
|
+
"oauth_access_token_id": 3995,
|
71
|
+
"application_name": "RWS API - RBI_MCID (pcid:200278)",
|
72
|
+
"application_owner_id": 279477590,
|
73
|
+
"application_owner_type": "Program",
|
74
|
+
"program_id": 279477590,
|
75
|
+
"program_name": "RWS API - RBI_MCID",
|
76
|
+
"program_customer_identifier": "200278",
|
77
|
+
"program_start_dts": "2016-02-16T06:30:18.392-07:00",
|
78
|
+
"program_end_dts": "2019-02-16T06:30:18.392-07:00",
|
79
|
+
"organization_id": 160,
|
80
|
+
"organization_name": "Access Development",
|
81
|
+
"organization_customer_identifier": "160",
|
82
|
+
"filter_id": null,
|
83
|
+
"filter_name": null,
|
84
|
+
"filter": null,
|
85
|
+
"program_filter_id": null,
|
86
|
+
"domains": [
|
87
|
+
|
88
|
+
],
|
89
|
+
"application_scopes": [
|
90
|
+
"internal"
|
91
|
+
],
|
92
|
+
"help_phone_number": "1-800-331-8867",
|
93
|
+
"program_info_id": 279477590,
|
94
|
+
"default_distance": 25,
|
95
|
+
"force_update": false,
|
96
|
+
"color_theme": {
|
97
|
+
"name": "default",
|
98
|
+
"primary": "#2c3e50",
|
99
|
+
"primary-light": "#3e5871",
|
100
|
+
"accent": "#3498db",
|
101
|
+
"accent-light": "#5faee3"
|
102
|
+
},
|
103
|
+
"email_opt_out": false,
|
104
|
+
"mobile_logo": null,
|
105
|
+
"mobile_teaser": null,
|
106
|
+
"member_key_label": "Member ID",
|
107
|
+
"member_key_hint_label": null,
|
108
|
+
"indexed_at": "2016-02-16T20:29:32.163Z",
|
109
|
+
"token_status": "valid",
|
110
|
+
"links": {
|
111
|
+
"show_oauth_token": "http://token-stage.adcrws.com/v1/tokens/1f4cfbfec58ce429ac089dea6502473d380e8a32b6960eac40b118b8a9964da3"
|
112
|
+
}
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"links": {
|
116
|
+
"next_page": "https://token-stage.adcrws.com/v1/tokens?page=2&per_page=1"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
http_version:
|
120
|
+
recorded_at: Mon, 22 Feb 2016 20:17:00 GMT
|
121
|
+
recorded_with: VCR 3.0.1
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"program_id":2412,"first_name":"RubyGem","last_name":"Test","postal_code":84047,"email":null,"password":"test1234","shared_secret":"thanks","program_url":"saversclub.accessdevelopment.com"}'
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -39,10 +39,10 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
- Mon,
|
42
|
+
- Mon, 22 Feb 2016 23:05:53 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"message":"email is null or empty string.","status":400}'
|
46
46
|
http_version:
|
47
|
-
recorded_at: Mon,
|
48
|
-
recorded_with: VCR 3.0.
|
47
|
+
recorded_at: Mon, 22 Feb 2016 23:05:56 GMT
|
48
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://mms-stage.adcrws.com/v1/register
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"program_id":2412,"first_name":"RubyGem","last_name":"Test","postal_code":84047,"email":"rubygemtest-fbc0142b@accessdevelopment.com","password":"test1234","shared_secret":"thanks","program_url":"saversclub.accessdevelopment.com"}'
|
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
|
+
- Apache-Coyote/1.1
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- '0'
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
X-Application-Context:
|
36
|
+
- application:main,stage:10120
|
37
|
+
Content-Type:
|
38
|
+
- application/json;charset=UTF-8
|
39
|
+
Transfer-Encoding:
|
40
|
+
- chunked
|
41
|
+
Date:
|
42
|
+
- Tue, 23 Feb 2016 17:54:26 GMT
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
46
|
+
Perks Demo","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Access
|
47
|
+
Perks Demo","member_id":93256794,"member_key":"227060","email":"rubygemtest-fbc0142b@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","reg_id":1298124,"cvt":"df1034cf4160844afc4999b3adb4d4daec9fcc95","postal_code":"84047","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}],"members":[{"organization":{"organization_id":2000896,"organization_key":"TYPDEMO","name":"Access
|
48
|
+
Perks Demo"},"program":{"program_id":2412,"program_key":"TYP123","name":"Access
|
49
|
+
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":93256794,"member_key":"227060","email":"rubygemtest-fbc0142b@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","cvt":"df1034cf4160844afc4999b3adb4d4daec9fcc95","postal_code":"84047"},"user":{"email":"rubygemtest-fbc0142b@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","reg_id":1298124,"roles":[],"has_password":true,"password_expired":false}}]}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Tue, 23 Feb 2016 17:54:27 GMT
|
52
|
+
- request:
|
53
|
+
method: post
|
54
|
+
uri: https://mms-stage.adcrws.com/v1/register
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"program_id":2412,"first_name":"RubyGem","last_name":"Test","postal_code":84047,"email":"rubygemtest-c8f922c4@accessdevelopment.com","password":"test1234","shared_secret":"thanks","program_url":"saversclub.accessdevelopment.com"}'
|
58
|
+
headers:
|
59
|
+
Access-Token:
|
60
|
+
- "<ACCESS_TOKEN>"
|
61
|
+
Content-Type:
|
62
|
+
- application/json
|
63
|
+
Accept:
|
64
|
+
- application/json
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: OK
|
69
|
+
headers:
|
70
|
+
Server:
|
71
|
+
- Apache-Coyote/1.1
|
72
|
+
X-Content-Type-Options:
|
73
|
+
- nosniff
|
74
|
+
X-Xss-Protection:
|
75
|
+
- 1; mode=block
|
76
|
+
Cache-Control:
|
77
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
78
|
+
Pragma:
|
79
|
+
- no-cache
|
80
|
+
Expires:
|
81
|
+
- '0'
|
82
|
+
X-Frame-Options:
|
83
|
+
- DENY
|
84
|
+
X-Application-Context:
|
85
|
+
- application:main,stage:10110
|
86
|
+
Content-Type:
|
87
|
+
- application/json;charset=UTF-8
|
88
|
+
Transfer-Encoding:
|
89
|
+
- chunked
|
90
|
+
Date:
|
91
|
+
- Tue, 23 Feb 2016 17:55:35 GMT
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
95
|
+
Perks Demo","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Access
|
96
|
+
Perks Demo","member_id":93256795,"member_key":"227061","email":"rubygemtest-c8f922c4@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","reg_id":1298125,"cvt":"25cb61a228db3db62a0cb6cd740accc5762d3e99","postal_code":"84047","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}],"members":[{"organization":{"organization_id":2000896,"organization_key":"TYPDEMO","name":"Access
|
97
|
+
Perks Demo"},"program":{"program_id":2412,"program_key":"TYP123","name":"Access
|
98
|
+
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":93256795,"member_key":"227061","email":"rubygemtest-c8f922c4@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","cvt":"25cb61a228db3db62a0cb6cd740accc5762d3e99","postal_code":"84047"},"user":{"email":"rubygemtest-c8f922c4@accessdevelopment.com","first_name":"RubyGem","last_name":"Test","reg_id":1298125,"roles":[],"has_password":true,"password_expired":false}}]}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Tue, 23 Feb 2016 17:55:36 GMT
|
101
|
+
recorded_with: VCR 3.0.1
|
@@ -5,10 +5,10 @@ http_interactions:
|
|
5
5
|
uri: https://mms-stage.adcrws.com/v1/users
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"email":"cs@test.com","password":"password","program_id":"2412","postal_code":"84101"}'
|
8
|
+
string: '{"email":"cs@test.com","password":"password","program_id":"2412","postal_code":"84101","member_key":"226872"}'
|
9
9
|
headers:
|
10
10
|
Access-Token:
|
11
|
-
- ACCESS_TOKEN
|
11
|
+
- "<ACCESS_TOKEN>"
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Accept:
|
@@ -39,12 +39,14 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Tue, 23 Feb 2016 17:30:06 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
45
|
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
46
46
|
Perks Demo","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Access
|
47
|
-
Perks Demo","member_id":89738626,"member_key":"226872","email":"cs@test.com","first_name":"Cody","last_name":"Stringham","reg_id":1084059,"cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","postal_code":"84101","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}]
|
47
|
+
Perks Demo","member_id":89738626,"member_key":"226872","email":"cs@test.com","first_name":"Cody","last_name":"Stringham","reg_id":1084059,"cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","postal_code":"84101","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}],"members":[{"organization":{"organization_id":2000896,"organization_key":"TYPDEMO","name":"Access
|
48
|
+
Perks Demo"},"program":{"program_id":2412,"program_key":"TYP123","name":"Access
|
49
|
+
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":89738626,"member_key":"226872","email":"cs@test.com","first_name":"Cody","last_name":"Stringham","cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","postal_code":"84101"},"user":{"email":"cs@test.com","first_name":"Cody","last_name":"Stringham","reg_id":1084059,"roles":[],"has_password":true,"password_expired":false}}]}'
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
50
|
-
recorded_with: VCR 3.0.
|
51
|
+
recorded_at: Tue, 23 Feb 2016 17:30:07 GMT
|
52
|
+
recorded_with: VCR 3.0.1
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://token-
|
5
|
+
uri: https://token-stage.adcrws.com/v1/filter
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"program_filter": {"offers": [{"or":[{"terms":{"categories.category_key":[
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
Server:
|
26
26
|
- nginx/1.8.0
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Mon, 22 Feb 2016 20:16:49 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Transfer-Encoding:
|
@@ -47,75 +47,60 @@ http_interactions:
|
|
47
47
|
Access-Control-Max-Age:
|
48
48
|
- '1728000'
|
49
49
|
Etag:
|
50
|
-
- '"
|
50
|
+
- '"f2c6870b6fa1f97136976607f16e1d44"'
|
51
51
|
Cache-Control:
|
52
52
|
- max-age=0, private, must-revalidate
|
53
53
|
X-Request-Id:
|
54
|
-
-
|
54
|
+
- 6d0cf822-ae41-4ae4-912b-76c13dac89e1
|
55
55
|
X-Runtime:
|
56
|
-
- '0.
|
56
|
+
- '0.169178'
|
57
57
|
body:
|
58
58
|
encoding: UTF-8
|
59
59
|
string: |-
|
60
60
|
{
|
61
61
|
"offers": {
|
62
|
-
"offer_count":
|
62
|
+
"offer_count": 111806,
|
63
63
|
"categories": [
|
64
64
|
{
|
65
65
|
"category_name": "Dining & Food",
|
66
66
|
"category_key": 39,
|
67
67
|
"category_type": "category",
|
68
|
-
"offer_count":
|
68
|
+
"offer_count": 111806,
|
69
69
|
"subcategories": [
|
70
|
-
{
|
71
|
-
"category_name": "Fast Food",
|
72
|
-
"category_key": 1008,
|
73
|
-
"category_type": "subcategory",
|
74
|
-
"category_parent_key": 39,
|
75
|
-
"offer_count": 39079
|
76
|
-
},
|
77
70
|
{
|
78
71
|
"category_name": "Casual & Fine Dining",
|
79
72
|
"category_key": 1009,
|
80
73
|
"category_type": "subcategory",
|
81
74
|
"category_parent_key": 39,
|
82
|
-
"offer_count":
|
75
|
+
"offer_count": 65246
|
83
76
|
},
|
84
77
|
{
|
85
|
-
"category_name": "
|
86
|
-
"category_key":
|
78
|
+
"category_name": "Fast Food",
|
79
|
+
"category_key": 1008,
|
87
80
|
"category_type": "subcategory",
|
88
81
|
"category_parent_key": 39,
|
89
|
-
"offer_count":
|
82
|
+
"offer_count": 41935
|
90
83
|
},
|
91
84
|
{
|
92
85
|
"category_name": "Specialty Foods & Gifts",
|
93
86
|
"category_key": 1010,
|
94
87
|
"category_type": "subcategory",
|
95
88
|
"category_parent_key": 39,
|
96
|
-
"offer_count":
|
89
|
+
"offer_count": 2357
|
97
90
|
},
|
98
91
|
{
|
99
|
-
"category_name": "
|
100
|
-
"category_key":
|
92
|
+
"category_name": "Convenience Stores",
|
93
|
+
"category_key": 1012,
|
101
94
|
"category_type": "subcategory",
|
102
95
|
"category_parent_key": 39,
|
103
|
-
"offer_count":
|
104
|
-
}
|
105
|
-
]
|
106
|
-
},
|
107
|
-
{
|
108
|
-
"category_name": "Health & Beauty",
|
109
|
-
"category_key": 53,
|
110
|
-
"category_type": "category",
|
111
|
-
"offer_count": 34,
|
112
|
-
"subcategories": [
|
96
|
+
"offer_count": 2311
|
97
|
+
},
|
113
98
|
{
|
114
|
-
"category_name": "
|
115
|
-
"category_key":
|
99
|
+
"category_name": "Catering",
|
100
|
+
"category_key": 1011,
|
116
101
|
"category_type": "subcategory",
|
117
|
-
"category_parent_key":
|
118
|
-
"offer_count":
|
102
|
+
"category_parent_key": 39,
|
103
|
+
"offer_count": 95
|
119
104
|
}
|
120
105
|
]
|
121
106
|
},
|
@@ -123,49 +108,21 @@ http_interactions:
|
|
123
108
|
"category_name": "Entertainment & Recreation",
|
124
109
|
"category_key": 59,
|
125
110
|
"category_type": "category",
|
126
|
-
"offer_count":
|
111
|
+
"offer_count": 1151,
|
127
112
|
"subcategories": [
|
128
113
|
{
|
129
114
|
"category_name": "Fun Centers",
|
130
115
|
"category_key": 1013,
|
131
116
|
"category_type": "subcategory",
|
132
117
|
"category_parent_key": 59,
|
133
|
-
"offer_count":
|
134
|
-
},
|
135
|
-
{
|
136
|
-
"category_name": "Outdoor Adventure",
|
137
|
-
"category_key": 1016,
|
138
|
-
"category_type": "subcategory",
|
139
|
-
"category_parent_key": 59,
|
140
|
-
"offer_count": 4
|
118
|
+
"offer_count": 1112
|
141
119
|
},
|
142
120
|
{
|
143
121
|
"category_name": "Concerts & Events",
|
144
122
|
"category_key": 1014,
|
145
123
|
"category_type": "subcategory",
|
146
124
|
"category_parent_key": 59,
|
147
|
-
"offer_count":
|
148
|
-
},
|
149
|
-
{
|
150
|
-
"category_name": "Sporting Events",
|
151
|
-
"category_key": 1017,
|
152
|
-
"category_type": "subcategory",
|
153
|
-
"category_parent_key": 59,
|
154
|
-
"offer_count": 1
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"category_name": "Amusement Parks",
|
158
|
-
"category_key": 1018,
|
159
|
-
"category_type": "subcategory",
|
160
|
-
"category_parent_key": 59,
|
161
|
-
"offer_count": 1
|
162
|
-
},
|
163
|
-
{
|
164
|
-
"category_name": "Classes",
|
165
|
-
"category_key": 1019,
|
166
|
-
"category_type": "subcategory",
|
167
|
-
"category_parent_key": 59,
|
168
|
-
"offer_count": 1
|
125
|
+
"offer_count": 39
|
169
126
|
}
|
170
127
|
]
|
171
128
|
},
|
@@ -173,29 +130,14 @@ http_interactions:
|
|
173
130
|
"category_name": "Automotive",
|
174
131
|
"category_key": 51,
|
175
132
|
"category_type": "category",
|
176
|
-
"offer_count":
|
133
|
+
"offer_count": 4,
|
177
134
|
"subcategories": [
|
178
135
|
{
|
179
136
|
"category_name": "Gas Station",
|
180
137
|
"category_key": 1004,
|
181
138
|
"category_type": "subcategory",
|
182
139
|
"category_parent_key": 51,
|
183
|
-
"offer_count":
|
184
|
-
}
|
185
|
-
]
|
186
|
-
},
|
187
|
-
{
|
188
|
-
"category_name": "Golf",
|
189
|
-
"category_key": 48,
|
190
|
-
"category_type": "category",
|
191
|
-
"offer_count": 8,
|
192
|
-
"subcategories": [
|
193
|
-
{
|
194
|
-
"category_name": "Golf Courses",
|
195
|
-
"category_key": 1020,
|
196
|
-
"category_type": "subcategory",
|
197
|
-
"category_parent_key": 48,
|
198
|
-
"offer_count": 8
|
140
|
+
"offer_count": 4
|
199
141
|
}
|
200
142
|
]
|
201
143
|
},
|
@@ -206,76 +148,51 @@ http_interactions:
|
|
206
148
|
"offer_count": 3,
|
207
149
|
"subcategories": [
|
208
150
|
{
|
209
|
-
"category_name": "
|
210
|
-
"category_key":
|
151
|
+
"category_name": "Bath & Body",
|
152
|
+
"category_key": 1080,
|
211
153
|
"category_type": "subcategory",
|
212
154
|
"category_parent_key": 45,
|
213
|
-
"offer_count":
|
214
|
-
},
|
215
|
-
{
|
216
|
-
"category_name": "Department Stores",
|
217
|
-
"category_key": 1085,
|
218
|
-
"category_type": "subcategory",
|
219
|
-
"category_parent_key": 45,
|
220
|
-
"offer_count": 1
|
155
|
+
"offer_count": 2
|
221
156
|
},
|
222
157
|
{
|
223
|
-
"category_name": "
|
224
|
-
"category_key":
|
158
|
+
"category_name": "Furniture",
|
159
|
+
"category_key": 1090,
|
225
160
|
"category_type": "subcategory",
|
226
161
|
"category_parent_key": 45,
|
227
162
|
"offer_count": 1
|
228
163
|
}
|
229
164
|
]
|
230
|
-
},
|
231
|
-
{
|
232
|
-
"category_name": "Services",
|
233
|
-
"category_key": 50,
|
234
|
-
"category_type": "category",
|
235
|
-
"offer_count": 1,
|
236
|
-
"subcategories": [
|
237
|
-
|
238
|
-
]
|
239
|
-
},
|
240
|
-
{
|
241
|
-
"category_name": "Cruise",
|
242
|
-
"category_key": 60,
|
243
|
-
"category_type": "category",
|
244
|
-
"offer_count": 1,
|
245
|
-
"subcategories": [
|
246
|
-
|
247
|
-
]
|
248
165
|
}
|
249
166
|
],
|
250
167
|
"redemption_methods": [
|
251
168
|
{
|
252
169
|
"redemption_method": "instore_print",
|
253
|
-
"offer_count":
|
170
|
+
"offer_count": 57561
|
254
171
|
},
|
255
172
|
{
|
256
|
-
"redemption_method": "
|
257
|
-
"offer_count":
|
173
|
+
"redemption_method": "link",
|
174
|
+
"offer_count": 55722
|
258
175
|
},
|
259
176
|
{
|
260
|
-
"redemption_method": "
|
261
|
-
"offer_count":
|
177
|
+
"redemption_method": "instore",
|
178
|
+
"offer_count": 35699
|
262
179
|
},
|
263
180
|
{
|
264
181
|
"redemption_method": "call",
|
265
|
-
"offer_count":
|
182
|
+
"offer_count": 1604
|
266
183
|
}
|
267
184
|
]
|
268
185
|
},
|
269
186
|
"categories": {
|
270
|
-
"category_count":
|
187
|
+
"category_count": 125
|
271
188
|
},
|
272
189
|
"stores": {
|
273
|
-
"store_count":
|
190
|
+
"store_count": 26312
|
274
191
|
},
|
275
192
|
"locations": {
|
276
|
-
"location_count":
|
193
|
+
"location_count": 268961
|
277
194
|
}
|
278
195
|
}
|
279
196
|
http_version:
|
280
|
-
recorded_at:
|
281
|
-
recorded_with: VCR 3.0.
|
197
|
+
recorded_at: Mon, 22 Feb 2016 20:16:52 GMT
|
198
|
+
recorded_with: VCR 3.0.1
|