access 2.2.0 → 2.3.0.pre.rc1
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 +5 -5
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +6 -4
- data/Gemfile.lock +40 -80
- data/README.md +2 -4
- data/Rakefile +1 -1
- data/access.gemspec +4 -6
- data/lib/access/response.rb +1 -1
- data/lib/access/version.rb +1 -1
- data/test/access/campaign_test.rb +3 -3
- data/test/access/category_test.rb +1 -0
- data/test/access/device_test.rb +1 -4
- data/test/access/member_test.rb +2 -5
- data/test/access/redeem_test.rb +1 -0
- data/test/access/report_test.rb +14 -7
- data/test/access/spot_test.rb +4 -4
- data/test/access/user_test.rb +9 -10
- data/test/access/verify_test.rb +1 -1
- data/test/vcr/cassettes/autocomplete/search_categories.yml +11 -9
- data/test/vcr/cassettes/autocomplete/search_first.yml +21 -19
- data/test/vcr/cassettes/autocomplete/search_locations.yml +13 -11
- data/test/vcr/cassettes/autocomplete/search_offers.yml +15 -13
- data/test/vcr/cassettes/autocomplete/search_stores.yml +17 -15
- data/test/vcr/cassettes/campaign/find.yml +139 -0
- data/test/vcr/cassettes/campaign/search.yml +89 -971
- data/test/vcr/cassettes/campaign/search_first.yml +139 -0
- data/test/vcr/cassettes/category/find.yml +11 -9
- data/test/vcr/cassettes/category/search.yml +14 -35
- data/test/vcr/cassettes/category/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/category/search_first.yml +27 -69
- data/test/vcr/cassettes/category/subcategory_find.yml +12 -118
- data/test/vcr/cassettes/channel/search.yml +26 -18
- data/test/vcr/cassettes/favorite/create_generic_with_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_location.yml +63 -17
- data/test/vcr/cassettes/favorite/create_offer.yml +95 -93
- data/test/vcr/cassettes/favorite/create_store.yml +59 -59
- data/test/vcr/cassettes/favorite/delete_generic_with_offer.yml +110 -108
- data/test/vcr/cassettes/favorite/delete_location.yml +139 -93
- data/test/vcr/cassettes/favorite/delete_offer.yml +204 -200
- data/test/vcr/cassettes/favorite/delete_store.yml +117 -143
- data/test/vcr/cassettes/favorite/find_generic_with_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_location.yml +124 -78
- data/test/vcr/cassettes/favorite/find_offer.yml +180 -242
- data/test/vcr/cassettes/favorite/find_store.yml +103 -129
- data/test/vcr/cassettes/favorite/one_of_everything.yml +323 -1031
- data/test/vcr/cassettes/favorite/search.yml +269 -281
- data/test/vcr/cassettes/favorite/search_bad_member.yml +9 -11
- data/test/vcr/cassettes/favorite/search_locations.yml +103 -62
- data/test/vcr/cassettes/favorite/search_no_favorites.yml +9 -11
- data/test/vcr/cassettes/favorite/search_offers.yml +148 -148
- data/test/vcr/cassettes/favorite/search_stores.yml +70 -127
- data/test/vcr/cassettes/filter/find.yml +11 -9
- data/test/vcr/cassettes/filter/search.yml +14 -12
- data/test/vcr/cassettes/filter/search_first.yml +14 -12
- data/test/vcr/cassettes/location/find.yml +562 -634
- data/test/vcr/cassettes/location/search.yml +82 -77
- data/test/vcr/cassettes/location/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/location/search_first.yml +82 -77
- data/test/vcr/cassettes/member/show_failure.yml +14 -14
- data/test/vcr/cassettes/member/show_success.yml +16 -16
- data/test/vcr/cassettes/member/update_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/cvt_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/cvt_success.yml +16 -16
- data/test/vcr/cassettes/member_authenticate/failure.yml +54 -9
- data/test/vcr/cassettes/member_authenticate/member_key_failure.yml +13 -13
- data/test/vcr/cassettes/member_authenticate/member_key_success.yml +21 -20
- data/test/vcr/cassettes/member_authenticate/success.yml +70 -13
- data/test/vcr/cassettes/member_device/search_failure.yml +16 -16
- data/test/vcr/cassettes/member_device/search_success.yml +423 -31
- data/test/vcr/cassettes/oauth_application/find.yml +19 -21
- data/test/vcr/cassettes/oauth_application/search.yml +21 -23
- data/test/vcr/cassettes/oauth_application/search_oauth_first.yml +21 -23
- data/test/vcr/cassettes/oauth_application/token_find.yml +33 -34
- data/test/vcr/cassettes/oauth_application/token_search.yml +97 -532
- data/test/vcr/cassettes/oauth_application/token_search_tokens_first.yml +33 -178
- data/test/vcr/cassettes/offer/find.yml +97 -109
- data/test/vcr/cassettes/offer/find_uses_remaining.yml +16 -14
- data/test/vcr/cassettes/offer/find_with_offer_uses_remaining.yml +97 -109
- data/test/vcr/cassettes/offer/search.yml +99 -111
- data/test/vcr/cassettes/offer/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/offer/search_first.yml +99 -111
- data/test/vcr/cassettes/offer/search_for_redeem.yml +99 -111
- data/test/vcr/cassettes/offer/with_aggregations.yml +920 -959
- data/test/vcr/cassettes/redeem/offer_no_redeem_type.yml +8 -8
- data/test/vcr/cassettes/redeem/offer_with_redeem_type.yml +14 -7
- data/test/vcr/cassettes/redeem/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +15 -8
- data/test/vcr/cassettes/redemption/find_by_member_key.yml +49 -47
- data/test/vcr/cassettes/redemption/search_by_member_key.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_first.yml +516 -228
- data/test/vcr/cassettes/redemption/search_by_member_key_without_redemptions.yml +11 -9
- data/test/vcr/cassettes/report/all_usage.yml +15 -100
- data/test/vcr/cassettes/report/member_location_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_location_recent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_frequent.yml +15 -19
- data/test/vcr/cassettes/report/member_query_recent.yml +15 -19
- data/test/vcr/cassettes/report/usage.yml +15 -100
- data/test/vcr/cassettes/report/usage_other.yml +15 -100
- data/test/vcr/cassettes/spot/find.yml +9 -9
- data/test/vcr/cassettes/spot/search_by_campaign.yml +93 -2667
- data/test/vcr/cassettes/spot/search_by_channel.yml +73 -906
- data/test/vcr/cassettes/spot/search_by_channel_first.yml +73 -906
- data/test/vcr/cassettes/store/find.yml +48 -45
- data/test/vcr/cassettes/store/national_stores.yml +1764 -2884
- data/test/vcr/cassettes/store/search.yml +52 -49
- data/test/vcr/cassettes/store/search_fail_member_key.yml +11 -9
- data/test/vcr/cassettes/store/search_first.yml +52 -49
- data/test/vcr/cassettes/token/find.yml +53 -29
- data/test/vcr/cassettes/token/get_first_token.yml +55 -31
- data/test/vcr/cassettes/token/search.yml +55 -31
- data/test/vcr/cassettes/user_register/failure.yml +13 -13
- data/test/vcr/cassettes/user_register/success.yml +11 -109
- data/test/vcr/cassettes/user_update/success.yml +58 -12
- data/test/vcr/cassettes/verify/filter.yml +108 -94
- data/test/vcr/cassettes/verify/token.yml +15 -13
- metadata +22 -46
|
@@ -15,11 +15,19 @@ http_interactions:
|
|
|
15
15
|
- application/json
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
|
-
code:
|
|
19
|
-
message:
|
|
18
|
+
code: 400
|
|
19
|
+
message: ''
|
|
20
20
|
headers:
|
|
21
|
-
|
|
22
|
-
-
|
|
21
|
+
Date:
|
|
22
|
+
- Thu, 28 Jun 2018 16:27:40 GMT
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json;charset=UTF-8
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
|
+
Connection:
|
|
28
|
+
- keep-alive
|
|
29
|
+
X-Application-Context:
|
|
30
|
+
- application:stage
|
|
23
31
|
X-Content-Type-Options:
|
|
24
32
|
- nosniff
|
|
25
33
|
X-Xss-Protection:
|
|
@@ -32,21 +40,59 @@ http_interactions:
|
|
|
32
40
|
- '0'
|
|
33
41
|
X-Frame-Options:
|
|
34
42
|
- DENY
|
|
35
|
-
|
|
36
|
-
-
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: '{"message":"Specified Member (MCID: 226872, program_id: 2412) does
|
|
46
|
+
not have an user account.","status":400,"error_code":"USER_NOT_FOUND"}'
|
|
47
|
+
http_version:
|
|
48
|
+
recorded_at: Thu, 28 Jun 2018 16:27:40 GMT
|
|
49
|
+
- request:
|
|
50
|
+
method: put
|
|
51
|
+
uri: https://mms-stage.adcrws.com/v1/users
|
|
52
|
+
body:
|
|
53
|
+
encoding: UTF-8
|
|
54
|
+
string: '{"email":"cs@test.com","password":"password","program_id":"2412","postal_code":"84101","member_key":"227889"}'
|
|
55
|
+
headers:
|
|
56
|
+
Access-Token:
|
|
57
|
+
- "<ACCESS_TOKEN>"
|
|
58
|
+
Content-Type:
|
|
59
|
+
- application/json
|
|
60
|
+
Accept:
|
|
61
|
+
- application/json
|
|
62
|
+
response:
|
|
63
|
+
status:
|
|
64
|
+
code: 200
|
|
65
|
+
message: ''
|
|
66
|
+
headers:
|
|
67
|
+
Date:
|
|
68
|
+
- Sun, 01 Jul 2018 04:23:25 GMT
|
|
37
69
|
Content-Type:
|
|
38
70
|
- application/json;charset=UTF-8
|
|
39
71
|
Transfer-Encoding:
|
|
40
72
|
- chunked
|
|
41
|
-
|
|
42
|
-
-
|
|
73
|
+
Connection:
|
|
74
|
+
- keep-alive
|
|
75
|
+
X-Application-Context:
|
|
76
|
+
- application:stage
|
|
77
|
+
X-Content-Type-Options:
|
|
78
|
+
- nosniff
|
|
79
|
+
X-Xss-Protection:
|
|
80
|
+
- 1; mode=block
|
|
81
|
+
Cache-Control:
|
|
82
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
|
83
|
+
Pragma:
|
|
84
|
+
- no-cache
|
|
85
|
+
Expires:
|
|
86
|
+
- '0'
|
|
87
|
+
X-Frame-Options:
|
|
88
|
+
- DENY
|
|
43
89
|
body:
|
|
44
90
|
encoding: UTF-8
|
|
45
91
|
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Access
|
|
46
92
|
Perks Demo","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Access
|
|
47
|
-
Perks Demo","member_id":
|
|
93
|
+
Perks Demo","member_id":101382957,"member_key":"227889","email":"cs@test.com","first_name":"CS","last_name":"TEST","reg_id":2177943,"cvt":"e149dd86dee406a0075531ad558ec73b7c4f1d03","postal_code":"84101","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true,"points_balance":0}],"members":[{"organization":{"organization_id":2000896,"organization_key":"TYPDEMO","name":"Access
|
|
48
94
|
Perks Demo"},"program":{"program_id":2412,"program_key":"TYP123","name":"Access
|
|
49
|
-
Perks Demo","provisioning_method":"SHARED_SECRET"},"member":{"member_id":
|
|
95
|
+
Perks Demo","provisioning_method":"SHARED_SECRET","travel":{"enabled":true,"provider":{"name":"ACCESS_TRAVEL_PLATFORM","points_enabled":false}}},"member":{"member_id":101382957,"member_key":"227889","email":"cs@test.com","first_name":"CS","last_name":"TEST","cvt":"e149dd86dee406a0075531ad558ec73b7c4f1d03","postal_code":"84101","points_balance":0},"user":{"email":"cs@test.com","first_name":"CS","last_name":"TEST","reg_id":2177943,"roles":[],"has_password":true,"password_expired":false,"user_id":308718268,"account_enabled":true,"account_locked":false,"account_validated":true},"active_license":{"end_dts":"2022-06-29T05:59:59.000+0000"}}]}'
|
|
50
96
|
http_version:
|
|
51
|
-
recorded_at:
|
|
52
|
-
recorded_with: VCR
|
|
97
|
+
recorded_at: Sun, 01 Jul 2018 04:23:25 GMT
|
|
98
|
+
recorded_with: VCR 4.0.0
|
|
@@ -12,7 +12,7 @@ http_interactions:
|
|
|
12
12
|
] } }'
|
|
13
13
|
headers:
|
|
14
14
|
Access-Token:
|
|
15
|
-
- ACCESS_TOKEN
|
|
15
|
+
- "<ACCESS_TOKEN>"
|
|
16
16
|
Content-Type:
|
|
17
17
|
- application/json
|
|
18
18
|
Accept:
|
|
@@ -23,15 +23,13 @@ http_interactions:
|
|
|
23
23
|
message: OK
|
|
24
24
|
headers:
|
|
25
25
|
Server:
|
|
26
|
-
- nginx/1.
|
|
26
|
+
- nginx/1.12.2
|
|
27
27
|
Date:
|
|
28
|
-
-
|
|
28
|
+
- Thu, 28 Jun 2018 20:09:11 GMT
|
|
29
29
|
Content-Type:
|
|
30
30
|
- application/json
|
|
31
31
|
Transfer-Encoding:
|
|
32
32
|
- chunked
|
|
33
|
-
Connection:
|
|
34
|
-
- keep-alive
|
|
35
33
|
X-Frame-Options:
|
|
36
34
|
- SAMEORIGIN
|
|
37
35
|
X-Xss-Protection:
|
|
@@ -46,153 +44,169 @@ http_interactions:
|
|
|
46
44
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
|
47
45
|
Access-Control-Max-Age:
|
|
48
46
|
- '1728000'
|
|
47
|
+
X-Ratelimit-Limit:
|
|
48
|
+
- '10000'
|
|
49
|
+
X-Ratelimit-Remaining:
|
|
50
|
+
- '9843'
|
|
49
51
|
Etag:
|
|
50
|
-
- '"
|
|
52
|
+
- '"f355318010db3b09ebce68bd89a5a704"'
|
|
51
53
|
Cache-Control:
|
|
52
54
|
- max-age=0, private, must-revalidate
|
|
53
55
|
X-Request-Id:
|
|
54
|
-
-
|
|
56
|
+
- 202be56d-e7f6-418b-946f-27289eb07e79
|
|
55
57
|
X-Runtime:
|
|
56
|
-
- '0.
|
|
58
|
+
- '0.072874'
|
|
59
|
+
body:
|
|
60
|
+
encoding: ASCII-8BIT
|
|
61
|
+
string: !binary |-
|
|
62
|
+
ewogICJtZXNzYWdlIjogIkVsYXN0aWNzZWFyY2ggbm8gbGlrZXk6IG9mZmVy
|
|
63
|
+
cyDinajila/CsOKWocKw4p2p4pWv77i14pS74pSB4pS7IiwKICAic3RhdHVz
|
|
64
|
+
IjogNDIyCn0=
|
|
65
|
+
http_version:
|
|
66
|
+
recorded_at: Thu, 28 Jun 2018 20:09:11 GMT
|
|
67
|
+
- request:
|
|
68
|
+
method: post
|
|
69
|
+
uri: https://token-stage.adcrws.com/v1/filter
|
|
70
|
+
body:
|
|
71
|
+
encoding: UTF-8
|
|
72
|
+
string: '{"program_filter":{"offers":[{"bool":{"should":[{"terms":{"categories.category_key":[39,48]}},{"terms":{"categories.category_parent_key":[39,48]}}]}}]}}'
|
|
73
|
+
headers:
|
|
74
|
+
Access-Token:
|
|
75
|
+
- "<ACCESS_TOKEN>"
|
|
76
|
+
Content-Type:
|
|
77
|
+
- application/json
|
|
78
|
+
Accept:
|
|
79
|
+
- application/json
|
|
80
|
+
response:
|
|
81
|
+
status:
|
|
82
|
+
code: 200
|
|
83
|
+
message: OK
|
|
84
|
+
headers:
|
|
85
|
+
Server:
|
|
86
|
+
- nginx/1.12.2
|
|
87
|
+
Date:
|
|
88
|
+
- Sun, 01 Jul 2018 04:23:56 GMT
|
|
89
|
+
Content-Type:
|
|
90
|
+
- application/json
|
|
91
|
+
Transfer-Encoding:
|
|
92
|
+
- chunked
|
|
93
|
+
X-Frame-Options:
|
|
94
|
+
- SAMEORIGIN
|
|
95
|
+
X-Xss-Protection:
|
|
96
|
+
- 1; mode=block
|
|
97
|
+
X-Content-Type-Options:
|
|
98
|
+
- nosniff
|
|
99
|
+
Access-Control-Allow-Methods:
|
|
100
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
|
101
|
+
Access-Control-Request-Method:
|
|
102
|
+
- POST
|
|
103
|
+
Access-Control-Allow-Headers:
|
|
104
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
|
105
|
+
Access-Control-Max-Age:
|
|
106
|
+
- '1728000'
|
|
107
|
+
X-Ratelimit-Limit:
|
|
108
|
+
- '10000'
|
|
109
|
+
X-Ratelimit-Remaining:
|
|
110
|
+
- '9934'
|
|
111
|
+
Etag:
|
|
112
|
+
- '"ee1273608d5fd0209c939fc3dcb760b8"'
|
|
113
|
+
Cache-Control:
|
|
114
|
+
- max-age=0, private, must-revalidate
|
|
115
|
+
X-Request-Id:
|
|
116
|
+
- 3f5efa76-a78b-43c2-8208-76e158b9b8e1
|
|
117
|
+
X-Runtime:
|
|
118
|
+
- '0.086896'
|
|
57
119
|
body:
|
|
58
120
|
encoding: UTF-8
|
|
59
121
|
string: |-
|
|
60
122
|
{
|
|
61
123
|
"offers": {
|
|
62
|
-
"offer_count":
|
|
124
|
+
"offer_count": 63313,
|
|
63
125
|
"categories": [
|
|
64
126
|
{
|
|
65
127
|
"category_name": "Dining & Food",
|
|
66
128
|
"category_key": 39,
|
|
67
129
|
"category_type": "category",
|
|
68
|
-
"offer_count":
|
|
130
|
+
"offer_count": 60164,
|
|
69
131
|
"subcategories": [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"category_type": "subcategory",
|
|
81
|
-
"category_parent_key": 39,
|
|
82
|
-
"offer_count": 41935
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"category_name": "Specialty Foods & Gifts",
|
|
86
|
-
"category_key": 1010,
|
|
87
|
-
"category_type": "subcategory",
|
|
88
|
-
"category_parent_key": 39,
|
|
89
|
-
"offer_count": 2357
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"category_name": "Convenience Stores",
|
|
93
|
-
"category_key": 1012,
|
|
94
|
-
"category_type": "subcategory",
|
|
95
|
-
"category_parent_key": 39,
|
|
96
|
-
"offer_count": 2311
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"category_name": "Catering",
|
|
100
|
-
"category_key": 1011,
|
|
101
|
-
"category_type": "subcategory",
|
|
102
|
-
"category_parent_key": 39,
|
|
103
|
-
"offer_count": 95
|
|
104
|
-
}
|
|
132
|
+
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"category_name": "Golf",
|
|
137
|
+
"category_key": 48,
|
|
138
|
+
"category_type": "category",
|
|
139
|
+
"offer_count": 3149,
|
|
140
|
+
"subcategories": [
|
|
141
|
+
|
|
105
142
|
]
|
|
106
143
|
},
|
|
107
144
|
{
|
|
108
145
|
"category_name": "Entertainment & Recreation",
|
|
109
146
|
"category_key": 59,
|
|
110
147
|
"category_type": "category",
|
|
111
|
-
"offer_count":
|
|
148
|
+
"offer_count": 7,
|
|
112
149
|
"subcategories": [
|
|
113
|
-
|
|
114
|
-
"category_name": "Fun Centers",
|
|
115
|
-
"category_key": 1013,
|
|
116
|
-
"category_type": "subcategory",
|
|
117
|
-
"category_parent_key": 59,
|
|
118
|
-
"offer_count": 1112
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"category_name": "Concerts & Events",
|
|
122
|
-
"category_key": 1014,
|
|
123
|
-
"category_type": "subcategory",
|
|
124
|
-
"category_parent_key": 59,
|
|
125
|
-
"offer_count": 39
|
|
126
|
-
}
|
|
150
|
+
|
|
127
151
|
]
|
|
128
152
|
},
|
|
129
153
|
{
|
|
130
154
|
"category_name": "Automotive",
|
|
131
155
|
"category_key": 51,
|
|
132
156
|
"category_type": "category",
|
|
133
|
-
"offer_count":
|
|
157
|
+
"offer_count": 5,
|
|
134
158
|
"subcategories": [
|
|
135
|
-
|
|
136
|
-
"category_name": "Gas Station",
|
|
137
|
-
"category_key": 1004,
|
|
138
|
-
"category_type": "subcategory",
|
|
139
|
-
"category_parent_key": 51,
|
|
140
|
-
"offer_count": 4
|
|
141
|
-
}
|
|
159
|
+
|
|
142
160
|
]
|
|
143
161
|
},
|
|
144
162
|
{
|
|
145
163
|
"category_name": "Shopping",
|
|
146
164
|
"category_key": 45,
|
|
147
165
|
"category_type": "category",
|
|
148
|
-
"offer_count":
|
|
166
|
+
"offer_count": 2,
|
|
167
|
+
"subcategories": [
|
|
168
|
+
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"category_name": "Cruise",
|
|
173
|
+
"category_key": 60,
|
|
174
|
+
"category_type": "category",
|
|
175
|
+
"offer_count": 1,
|
|
149
176
|
"subcategories": [
|
|
150
|
-
|
|
151
|
-
"category_name": "Bath & Body",
|
|
152
|
-
"category_key": 1080,
|
|
153
|
-
"category_type": "subcategory",
|
|
154
|
-
"category_parent_key": 45,
|
|
155
|
-
"offer_count": 2
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"category_name": "Furniture",
|
|
159
|
-
"category_key": 1090,
|
|
160
|
-
"category_type": "subcategory",
|
|
161
|
-
"category_parent_key": 45,
|
|
162
|
-
"offer_count": 1
|
|
163
|
-
}
|
|
177
|
+
|
|
164
178
|
]
|
|
165
179
|
}
|
|
166
180
|
],
|
|
167
181
|
"redemption_methods": [
|
|
168
182
|
{
|
|
169
183
|
"redemption_method": "instore_print",
|
|
170
|
-
"offer_count":
|
|
184
|
+
"offer_count": 56719
|
|
171
185
|
},
|
|
172
186
|
{
|
|
173
|
-
"redemption_method": "
|
|
174
|
-
"offer_count":
|
|
187
|
+
"redemption_method": "instore",
|
|
188
|
+
"offer_count": 37714
|
|
175
189
|
},
|
|
176
190
|
{
|
|
177
|
-
"redemption_method": "
|
|
178
|
-
"offer_count":
|
|
191
|
+
"redemption_method": "link",
|
|
192
|
+
"offer_count": 6255
|
|
179
193
|
},
|
|
180
194
|
{
|
|
181
195
|
"redemption_method": "call",
|
|
182
|
-
"offer_count":
|
|
196
|
+
"offer_count": 204
|
|
183
197
|
}
|
|
184
198
|
]
|
|
185
199
|
},
|
|
186
200
|
"categories": {
|
|
187
|
-
"category_count":
|
|
201
|
+
"category_count": 123
|
|
188
202
|
},
|
|
189
203
|
"stores": {
|
|
190
|
-
"store_count":
|
|
204
|
+
"store_count": 28202
|
|
191
205
|
},
|
|
192
206
|
"locations": {
|
|
193
|
-
"location_count":
|
|
207
|
+
"location_count": 203815
|
|
194
208
|
}
|
|
195
209
|
}
|
|
196
210
|
http_version:
|
|
197
|
-
recorded_at:
|
|
198
|
-
recorded_with: VCR
|
|
211
|
+
recorded_at: Sun, 01 Jul 2018 04:23:57 GMT
|
|
212
|
+
recorded_with: VCR 4.0.0
|
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
Access-Token:
|
|
11
|
-
- ACCESS_TOKEN
|
|
11
|
+
- "<ACCESS_TOKEN>"
|
|
12
12
|
Content-Type:
|
|
13
13
|
- application/json
|
|
14
14
|
Accept:
|
|
@@ -19,15 +19,13 @@ http_interactions:
|
|
|
19
19
|
message: OK
|
|
20
20
|
headers:
|
|
21
21
|
Server:
|
|
22
|
-
- nginx/1.
|
|
22
|
+
- nginx/1.12.2
|
|
23
23
|
Date:
|
|
24
|
-
-
|
|
24
|
+
- Sun, 01 Jul 2018 04:23:56 GMT
|
|
25
25
|
Content-Type:
|
|
26
26
|
- application/json
|
|
27
27
|
Transfer-Encoding:
|
|
28
28
|
- chunked
|
|
29
|
-
Connection:
|
|
30
|
-
- keep-alive
|
|
31
29
|
X-Frame-Options:
|
|
32
30
|
- SAMEORIGIN
|
|
33
31
|
X-Xss-Protection:
|
|
@@ -42,24 +40,28 @@ http_interactions:
|
|
|
42
40
|
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
|
43
41
|
Access-Control-Max-Age:
|
|
44
42
|
- '1728000'
|
|
43
|
+
X-Ratelimit-Limit:
|
|
44
|
+
- '10000'
|
|
45
|
+
X-Ratelimit-Remaining:
|
|
46
|
+
- '9935'
|
|
45
47
|
Etag:
|
|
46
|
-
- '"
|
|
48
|
+
- '"97d49e2e1b07d310443d4307592ef25b"'
|
|
47
49
|
Cache-Control:
|
|
48
50
|
- max-age=0, private, must-revalidate
|
|
49
51
|
X-Request-Id:
|
|
50
|
-
-
|
|
52
|
+
- 5ccb9cd8-5755-4184-bcc4-7ad7e2459129
|
|
51
53
|
X-Runtime:
|
|
52
|
-
- '0.
|
|
54
|
+
- '0.003904'
|
|
53
55
|
body:
|
|
54
56
|
encoding: UTF-8
|
|
55
57
|
string: |-
|
|
56
58
|
{
|
|
57
59
|
"oauth_access_token": {
|
|
58
|
-
"token": "ACCESS_TOKEN",
|
|
60
|
+
"token": "<ACCESS_TOKEN>",
|
|
59
61
|
"domains": [
|
|
60
62
|
|
|
61
63
|
],
|
|
62
|
-
"created_at": "2015-08-
|
|
64
|
+
"created_at": "2015-08-25T13:27:48.449-06:00",
|
|
63
65
|
"revoked_at": null,
|
|
64
66
|
"expires_in": null,
|
|
65
67
|
"application_name": "RWS API - No Filters No Limit (pcid:200156)",
|
|
@@ -67,7 +69,7 @@ http_interactions:
|
|
|
67
69
|
"organization_customer_identifier": "160",
|
|
68
70
|
"program_name": "RWS API - No Filters No Limit",
|
|
69
71
|
"program_customer_identifier": "200156",
|
|
70
|
-
"program_end_dts": "
|
|
72
|
+
"program_end_dts": "2025-12-30T17:00:00.000-07:00",
|
|
71
73
|
"program_start_dts": "2015-08-25T06:56:17.665-06:00",
|
|
72
74
|
"color_theme": "default",
|
|
73
75
|
"default_distance": 25,
|
|
@@ -79,5 +81,5 @@ http_interactions:
|
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
http_version:
|
|
82
|
-
recorded_at:
|
|
83
|
-
recorded_with: VCR
|
|
84
|
+
recorded_at: Sun, 01 Jul 2018 04:23:56 GMT
|
|
85
|
+
recorded_with: VCR 4.0.0
|