access 2.0.41 → 2.0.42

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/access/campaign.rb +2 -0
  4. data/lib/access/filter.rb +0 -7
  5. data/lib/access/response.rb +4 -4
  6. data/lib/access/version.rb +1 -1
  7. data/test/access/campaign_test.rb +11 -9
  8. data/test/access/channel_test.rb +1 -0
  9. data/test/access/filter_test.rb +0 -4
  10. data/test/access/spot_test.rb +4 -7
  11. data/test/vcr/cassettes/all_usage.yml +36 -44
  12. data/test/vcr/cassettes/autocomplete_search.yml +49 -48
  13. data/test/vcr/cassettes/autocomplete_search_categories.yml +26 -26
  14. data/test/vcr/cassettes/autocomplete_search_locations.yml +26 -26
  15. data/test/vcr/cassettes/autocomplete_search_offers.yml +29 -29
  16. data/test/vcr/cassettes/autocomplete_search_stores.yml +27 -27
  17. data/test/vcr/cassettes/campaign_find.yml +182 -5526
  18. data/test/vcr/cassettes/campaign_search.yml +1206 -5525
  19. data/test/vcr/cassettes/category_find.yml +32 -26
  20. data/test/vcr/cassettes/category_search.yml +51 -51
  21. data/test/vcr/cassettes/category_search_fail_member_key.yml +24 -24
  22. data/test/vcr/cassettes/channel_find.yml +7 -4
  23. data/test/vcr/cassettes/channel_search.yml +17 -15
  24. data/test/vcr/cassettes/filter_find.yml +131 -25
  25. data/test/vcr/cassettes/filter_search.yml +29 -31
  26. data/test/vcr/cassettes/find_redemption_by_member_key.yml +34 -34
  27. data/test/vcr/cassettes/location_find.yml +459 -438
  28. data/test/vcr/cassettes/location_search.yml +93 -84
  29. data/test/vcr/cassettes/location_search_fail_member_key.yml +24 -24
  30. data/test/vcr/cassettes/member_location_recent.yml +4 -8
  31. data/test/vcr/cassettes/member_query_frequent.yml +4 -8
  32. data/test/vcr/cassettes/member_query_recent.yml +4 -8
  33. data/test/vcr/cassettes/member_show_failure.yml +3 -3
  34. data/test/vcr/cassettes/member_show_success.yml +4 -4
  35. data/test/vcr/cassettes/member_update_success.yml +4 -139
  36. data/test/vcr/cassettes/national_stores.yml +1775 -1827
  37. data/test/vcr/cassettes/oauth_application_find.yml +34 -35
  38. data/test/vcr/cassettes/oauth_application_search.yml +36 -37
  39. data/test/vcr/cassettes/oauth_application_token_find.yml +46 -47
  40. data/test/vcr/cassettes/oauth_application_token_search.yml +47 -48
  41. data/test/vcr/cassettes/offer_find.yml +117 -108
  42. data/test/vcr/cassettes/offer_find_uses_remaining.yml +8 -8
  43. data/test/vcr/cassettes/offer_find_with_offer_uses_remaining.yml +97 -95
  44. data/test/vcr/cassettes/offer_search.yml +113 -113
  45. data/test/vcr/cassettes/offer_search_fail_member_key.yml +24 -24
  46. data/test/vcr/cassettes/offer_with_aggregations.yml +843 -844
  47. data/test/vcr/cassettes/redeem_offer_no_redeem_type.yml +4 -4
  48. data/test/vcr/cassettes/redeem_offer_with_redeem_type.yml +6 -6
  49. data/test/vcr/cassettes/redeem_offer_with_redeem_type_for_uses_remaining_test.yml +5 -5
  50. data/test/vcr/cassettes/search_redemption_by_member_key.yml +101 -101
  51. data/test/vcr/cassettes/search_redemption_by_member_key_without_redemptions.yml +27 -27
  52. data/test/vcr/cassettes/spot_find.yml +9 -7
  53. data/test/vcr/cassettes/spot_search_by_campaign.yml +2901 -235
  54. data/test/vcr/cassettes/spot_search_by_channel.yml +1142 -238
  55. data/test/vcr/cassettes/store_find.yml +32 -26
  56. data/test/vcr/cassettes/store_search.yml +28 -28
  57. data/test/vcr/cassettes/store_search_fail_member_key.yml +24 -24
  58. data/test/vcr/cassettes/subcategory_find.yml +32 -26
  59. data/test/vcr/cassettes/token_find.yml +54 -48
  60. data/test/vcr/cassettes/token_get_first_token.yml +56 -50
  61. data/test/vcr/cassettes/token_search.yml +56 -50
  62. data/test/vcr/cassettes/usage.yml +36 -44
  63. data/test/vcr/cassettes/usage_other.yml +36 -44
  64. data/test/vcr/cassettes/user_register_failure.yml +3 -3
  65. data/test/vcr/cassettes/user_update_success.yml +4 -4
  66. data/test/vcr/cassettes/verify_filter.yml +37 -37
  67. data/test/vcr/cassettes/verify_token.yml +31 -27
  68. metadata +2 -4
  69. data/test/vcr/cassettes/offer_uses_remaining.yml +0 -307
@@ -18,83 +18,89 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
21
+ Server:
22
+ - nginx/1.8.0
23
+ Date:
24
+ - Thu, 21 Jan 2016 18:34:28 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
23
37
  Access-Control-Allow-Methods:
24
38
  - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
39
  Access-Control-Request-Method:
28
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
+ - '"38db106c4024306cf87b6749fe0db93e"'
29
47
  Cache-Control:
30
48
  - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Tue, 06 Oct 2015 20:05:01 GMT
35
- Etag:
36
- - '"d313fda6d70e8d6d13040f520277c201"'
37
- Server:
38
- - nginx/1.6.2
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
49
  X-Request-Id:
44
- - d44f7016-7c42-478c-ab1f-fd0119dc09c1
50
+ - ea4b18c1-2aac-4e25-94fc-7a368fc99803
45
51
  X-Runtime:
46
- - '0.016711'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '2546'
51
- Connection:
52
- - keep-alive
52
+ - '0.017168'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
57
  "info": {
58
- "total_results": 553,
58
+ "total_results": 500,
59
59
  "results_per_page": 1,
60
60
  "current_page": 1,
61
- "total_pages": 553
61
+ "total_pages": 500
62
62
  },
63
63
  "oauth_tokens": [
64
64
  {
65
- "application_id": 851,
66
- "token": "8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834",
65
+ "application_id": 892,
66
+ "token": "c149adfd4e61ca38301cb0ef4e5a28a653790fdc638e24917e61759ee267e793",
67
67
  "expires_in": null,
68
68
  "revoked_at": null,
69
- "created_at": "2015-10-05T16:16:29.788-06:00",
70
- "oauth_access_token_id": 977,
71
- "application_name": "World Discovery Club (pcid 4485)",
72
- "application_owner_id": 374,
69
+ "created_at": "2016-01-21T09:02:12.021-07:00",
70
+ "oauth_access_token_id": 1023,
71
+ "application_name": "American Saver (pcid:200214)",
72
+ "application_owner_id": 235590205,
73
73
  "application_owner_type": "Program",
74
- "program_id": 374,
75
- "program_name": "World Discovery Club",
76
- "program_customer_identifier": "4485",
77
- "program_start_dts": "2012-04-12T15:10:31.634-06:00",
78
- "program_end_dts": "2018-12-30T17:00:00.000-07:00",
79
- "organization_id": 2000140,
80
- "organization_name": "WORLD DISCOVERY, LLC",
81
- "organization_customer_identifier": "ps3gr",
82
- "filter_id": 88,
83
- "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Ski, Travel (No Condo, Education Only)",
84
- "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"or\":[{\"terms\":{\"categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"categories\":[{\"or\":[{\"terms\":{\"category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"store_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}],\"locations\":[{\"or\":[{\"terms\":{\"location_categories.category_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}},{\"terms\":{\"location_categories.category_parent_key\":[51,58,60,39,59,48,53,1039,44,56,50,45,55,38]}}]}]}",
85
- "program_filter_id": 184,
74
+ "program_id": 235590205,
75
+ "program_name": "American Saver",
76
+ "program_customer_identifier": "200214",
77
+ "program_start_dts": "2016-01-21T08:56:00.731-07:00",
78
+ "program_end_dts": "2019-01-21T08:56:00.731-07:00",
79
+ "organization_id": 2000703,
80
+ "organization_name": "TriQuest LLc",
81
+ "organization_customer_identifier": "1176",
82
+ "filter_id": 93,
83
+ "filter_name": " Demo API filter - SLC Shopping",
84
+ "filter": "{\"offers\":[{\"terms\":{\"offer_set\":[\"DISCOUNT\"]}},{\"terms\":{\"offer_store.physical_location.postal_code\":[84029,84096,84133,84141,84020,84105,84129,84152,84009,84071,84108,84119,84134,84148,84170,84090,84101,84111,84121,84124,84189,84069,84093,84115,84125,84095,84128,84143,84184,84047,84080,84083,84118,84126,84147,84165,84084,84094,84104,84112,84158,84120,84136,84199,84034,84114,84139,84145,84190,84006,84091,84102,84113,84130,84138,84151,84065,84092,84103,84117,84122,84180,84107,84116,84044,84070,84109,84127,84157,84106,84123,84131,84150,84171,84022,84074,84081,84088,84110,84132]}},{\"or\":[{\"terms\":{\"categories.category_parent_key\":[45]}}]}],\"categories\":[{\"not\":{\"or\":[{\"terms\":{\"category_parent_key\":[39,51,58,44,54,60,1113,59,48,53,1039,56,50,55,38]}}]}}],\"stores\":[{\"or\":[{\"terms\":{\"store_categories.category_parent_key\":[45]}}]}],\"locations\":[{\"terms\":{\"physical_location.postal_code\":[84029,84096,84133,84141,84020,84105,84129,84152,84009,84071,84108,84119,84134,84148,84170,84090,84101,84111,84121,84124,84189,84069,84093,84115,84125,84095,84128,84143,84184,84047,84080,84083,84118,84126,84147,84165,84084,84094,84104,84112,84158,84120,84136,84199,84034,84114,84139,84145,84190,84006,84091,84102,84113,84130,84138,84151,84065,84092,84103,84117,84122,84180,84107,84116,84044,84070,84109,84127,84157,84106,84123,84131,84150,84171,84022,84074,84081,84088,84110,84132]}},{\"or\":[{\"terms\":{\"location_categories.category_parent_key\":[45]}}]}]}",
85
+ "program_filter_id": 218,
86
86
  "domains": [
87
- "*.worlddiscoveryclub.com"
87
+
88
88
  ],
89
89
  "application_scopes": [
90
- "amt",
90
+ "api",
91
91
  "docs",
92
92
  "internal"
93
93
  ],
94
- "indexed_at": "2015-10-06T15:49:13.970Z",
94
+ "help_phone_number": "1-800-331-8867",
95
+ "program_info_id": 235590205,
96
+ "default_distance": 25,
97
+ "force_update": false,
98
+ "color_theme": "default",
99
+ "email_opt_out": false,
100
+ "indexed_at": "2016-01-21T17:27:34.106Z",
95
101
  "token_status": "valid",
96
102
  "links": {
97
- "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834"
103
+ "show_oauth_token": "http://token-demo.adcrws.com/v1/tokens/c149adfd4e61ca38301cb0ef4e5a28a653790fdc638e24917e61759ee267e793"
98
104
  }
99
105
  }
100
106
  ],
@@ -103,5 +109,5 @@ http_interactions:
103
109
  }
104
110
  }
105
111
  http_version:
106
- recorded_at: Tue, 06 Oct 2015 20:05:01 GMT
107
- recorded_with: VCR 2.9.3
112
+ recorded_at: Thu, 21 Jan 2016 18:34:33 GMT
113
+ recorded_with: VCR 3.0.0
@@ -18,75 +18,67 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
21
+ Server:
22
+ - nginx/1.8.0
23
+ Date:
24
+ - Thu, 21 Jan 2016 18:34:15 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
23
37
  Access-Control-Allow-Methods:
24
38
  - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
39
  Access-Control-Request-Method:
28
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
+ - '"d587130b5765358065204158b56faa0a"'
29
47
  Cache-Control:
30
48
  - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Tue, 06 Oct 2015 22:05:43 GMT
35
- Etag:
36
- - '"ffc99ea10c1ea34f8f1ccef09278ed1e"'
37
- Server:
38
- - nginx/1.6.2
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
49
  X-Request-Id:
44
- - 4364237d-ab42-4ebf-a1a1-cbbbfdc02a60
50
+ - 306427be-59c1-4f50-8b99-29e79b887d4e
45
51
  X-Runtime:
46
- - '0.203878'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Transfer-Encoding:
50
- - chunked
51
- Connection:
52
- - keep-alive
52
+ - '0.296694'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
57
  "info": {
58
- "total_api_calls": 72993,
59
- "time_period": "2015-10-01T00:00:00Z to now",
58
+ "total_api_calls": 2803,
59
+ "time_period": "2016-01-01T00:00:00Z to now",
60
60
  "interval": "1d",
61
61
  "report_env": "demo"
62
62
  },
63
63
  "api_calls_over_time": [
64
64
  {
65
- "timestamp": "2015-10-01T00:00:00.000",
66
- "api_call_count": 12719
67
- },
68
- {
69
- "timestamp": "2015-10-02T00:00:00.000",
70
- "api_call_count": 12283
71
- },
72
- {
73
- "timestamp": "2015-10-03T00:00:00.000",
74
- "api_call_count": 11832
65
+ "timestamp": "2016-01-18T00:00:00.000",
66
+ "api_call_count": 1015
75
67
  },
76
68
  {
77
- "timestamp": "2015-10-04T00:00:00.000",
78
- "api_call_count": 11867
69
+ "timestamp": "2016-01-19T00:00:00.000",
70
+ "api_call_count": 762
79
71
  },
80
72
  {
81
- "timestamp": "2015-10-05T00:00:00.000",
82
- "api_call_count": 12269
73
+ "timestamp": "2016-01-20T00:00:00.000",
74
+ "api_call_count": 831
83
75
  },
84
76
  {
85
- "timestamp": "2015-10-06T00:00:00.000",
86
- "api_call_count": 12023
77
+ "timestamp": "2016-01-21T00:00:00.000",
78
+ "api_call_count": 195
87
79
  }
88
80
  ]
89
81
  }
90
82
  http_version:
91
- recorded_at: Tue, 06 Oct 2015 22:05:43 GMT
92
- recorded_with: VCR 2.9.3
83
+ recorded_at: Thu, 21 Jan 2016 18:34:20 GMT
84
+ recorded_with: VCR 3.0.0
@@ -18,75 +18,67 @@ http_interactions:
18
18
  code: 200
19
19
  message: OK
20
20
  headers:
21
- Access-Control-Allow-Headers:
22
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
21
+ Server:
22
+ - nginx/1.8.0
23
+ Date:
24
+ - Thu, 21 Jan 2016 18:33:53 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
23
37
  Access-Control-Allow-Methods:
24
38
  - POST, GET, PUT, DELETE, OPTIONS
25
- Access-Control-Max-Age:
26
- - '1728000'
27
39
  Access-Control-Request-Method:
28
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
+ - '"d587130b5765358065204158b56faa0a"'
29
47
  Cache-Control:
30
48
  - max-age=0, private, must-revalidate
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Tue, 06 Oct 2015 22:05:42 GMT
35
- Etag:
36
- - '"abd6e559f2aa18deb9266c4f09bd9a88"'
37
- Server:
38
- - nginx/1.6.2
39
- X-Content-Type-Options:
40
- - nosniff
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
49
  X-Request-Id:
44
- - 3314c251-ab91-4109-a4a4-592cac9e406d
50
+ - dc3c012c-b680-4fe0-9be1-cd3beee94668
45
51
  X-Runtime:
46
- - '0.194631'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Transfer-Encoding:
50
- - chunked
51
- Connection:
52
- - keep-alive
52
+ - '9.225734'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
57
  "info": {
58
- "total_api_calls": 73005,
59
- "time_period": "2015-10-01T00:00:00Z to now",
58
+ "total_api_calls": 2803,
59
+ "time_period": "2016-01-01T00:00:00Z to now",
60
60
  "interval": "1d",
61
61
  "report_env": "demo"
62
62
  },
63
63
  "api_calls_over_time": [
64
64
  {
65
- "timestamp": "2015-10-01T00:00:00.000",
66
- "api_call_count": 12719
67
- },
68
- {
69
- "timestamp": "2015-10-02T00:00:00.000",
70
- "api_call_count": 12283
71
- },
72
- {
73
- "timestamp": "2015-10-03T00:00:00.000",
74
- "api_call_count": 11832
65
+ "timestamp": "2016-01-18T00:00:00.000",
66
+ "api_call_count": 1015
75
67
  },
76
68
  {
77
- "timestamp": "2015-10-04T00:00:00.000",
78
- "api_call_count": 11867
69
+ "timestamp": "2016-01-19T00:00:00.000",
70
+ "api_call_count": 762
79
71
  },
80
72
  {
81
- "timestamp": "2015-10-05T00:00:00.000",
82
- "api_call_count": 12269
73
+ "timestamp": "2016-01-20T00:00:00.000",
74
+ "api_call_count": 831
83
75
  },
84
76
  {
85
- "timestamp": "2015-10-06T00:00:00.000",
86
- "api_call_count": 12035
77
+ "timestamp": "2016-01-21T00:00:00.000",
78
+ "api_call_count": 195
87
79
  }
88
80
  ]
89
81
  }
90
82
  http_version:
91
- recorded_at: Tue, 06 Oct 2015 22:05:42 GMT
92
- recorded_with: VCR 2.9.3
83
+ recorded_at: Thu, 21 Jan 2016 18:33:58 GMT
84
+ recorded_with: VCR 3.0.0
@@ -33,16 +33,16 @@ http_interactions:
33
33
  X-Frame-Options:
34
34
  - DENY
35
35
  X-Application-Context:
36
- - application:main,stage:10110
36
+ - application:main,stage:10120
37
37
  Content-Type:
38
38
  - application/json;charset=UTF-8
39
39
  Transfer-Encoding:
40
40
  - chunked
41
41
  Date:
42
- - Tue, 15 Dec 2015 19:53:07 GMT
42
+ - Thu, 21 Jan 2016 18:38:38 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: Tue, 15 Dec 2015 19:51:55 GMT
47
+ recorded_at: Thu, 21 Jan 2016 18:37:09 GMT
48
48
  recorded_with: VCR 3.0.0
@@ -33,18 +33,18 @@ http_interactions:
33
33
  X-Frame-Options:
34
34
  - DENY
35
35
  X-Application-Context:
36
- - application:main,stage:10120
36
+ - application:main,stage:10110
37
37
  Content-Type:
38
38
  - application/json;charset=UTF-8
39
39
  Transfer-Encoding:
40
40
  - chunked
41
41
  Date:
42
- - Tue, 15 Dec 2015 19:53:10 GMT
42
+ - Thu, 21 Jan 2016 18:38:38 GMT
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"Thank
46
46
  You Perks","organization_id":2000896,"organization_key":"TYPDEMO","organization_name":"Thank
47
- You 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
+ You Perks Demo","member_id":89738626,"member_key":"226872","email":"cs@test.com","first_name":"Tep","last_name":"No","reg_id":1084059,"cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","postal_code":"84101","roles":[],"program_provisioning_method":"SHARED_SECRET","user_has_password":true}]}'
48
48
  http_version:
49
- recorded_at: Tue, 15 Dec 2015 19:51:58 GMT
49
+ recorded_at: Thu, 21 Jan 2016 18:37:08 GMT
50
50
  recorded_with: VCR 3.0.0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: get
4
+ method: post
5
5
  uri: https://token-demo.adcrws.com/v1/filter
6
6
  body:
7
7
  encoding: UTF-8
@@ -22,64 +22,64 @@ http_interactions:
22
22
  code: 200
23
23
  message: OK
24
24
  headers:
25
- Access-Control-Allow-Headers:
26
- - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
25
+ Server:
26
+ - nginx/1.8.0
27
+ Date:
28
+ - Thu, 21 Jan 2016 18:34:31 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ X-Content-Type-Options:
40
+ - nosniff
27
41
  Access-Control-Allow-Methods:
28
42
  - POST, GET, PUT, DELETE, OPTIONS
43
+ Access-Control-Request-Method:
44
+ - POST
45
+ Access-Control-Allow-Headers:
46
+ - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
29
47
  Access-Control-Max-Age:
30
48
  - '1728000'
31
- Access-Control-Request-Method:
32
- - GET
49
+ Etag:
50
+ - '"3cf0a96ffe3460f726731f8c8b34bce7"'
33
51
  Cache-Control:
34
52
  - max-age=0, private, must-revalidate
35
- Content-Type:
36
- - application/json
37
- Date:
38
- - Tue, 06 Oct 2015 20:04:58 GMT
39
- Etag:
40
- - '"7c02e562d706f9fd91b1256d1812d421"'
41
- Server:
42
- - nginx/1.6.2
43
- X-Content-Type-Options:
44
- - nosniff
45
- X-Frame-Options:
46
- - SAMEORIGIN
47
53
  X-Request-Id:
48
- - 86a53293-c038-4a74-aac5-61dba2a6fc0a
54
+ - 82a97256-98ec-4873-8fde-46dc1b0b8f91
49
55
  X-Runtime:
50
- - '0.086558'
51
- X-Xss-Protection:
52
- - 1; mode=block
53
- Content-Length:
54
- - '5776'
55
- Connection:
56
- - keep-alive
56
+ - '0.091839'
57
57
  body:
58
58
  encoding: UTF-8
59
59
  string: |-
60
60
  {
61
61
  "offers": {
62
- "offer_count": 74269,
62
+ "offer_count": 74262,
63
63
  "categories": [
64
64
  {
65
65
  "category_name": "Dining & Food",
66
66
  "category_key": 39,
67
67
  "category_type": "category",
68
- "offer_count": 74269,
68
+ "offer_count": 74262,
69
69
  "subcategories": [
70
70
  {
71
71
  "category_name": "Fast Food",
72
72
  "category_key": 1008,
73
73
  "category_type": "subcategory",
74
74
  "category_parent_key": 39,
75
- "offer_count": 39086
75
+ "offer_count": 39079
76
76
  },
77
77
  {
78
78
  "category_name": "Casual & Fine Dining",
79
79
  "category_key": 1009,
80
80
  "category_type": "subcategory",
81
81
  "category_parent_key": 39,
82
- "offer_count": 33184
82
+ "offer_count": 33185
83
83
  },
84
84
  {
85
85
  "category_name": "Convenience Stores",
@@ -93,7 +93,7 @@ http_interactions:
93
93
  "category_key": 1010,
94
94
  "category_type": "subcategory",
95
95
  "category_parent_key": 39,
96
- "offer_count": 337
96
+ "offer_count": 336
97
97
  },
98
98
  {
99
99
  "category_name": "Catering",
@@ -250,15 +250,15 @@ http_interactions:
250
250
  "redemption_methods": [
251
251
  {
252
252
  "redemption_method": "instore_print",
253
- "offer_count": 53656
253
+ "offer_count": 53650
254
254
  },
255
255
  {
256
256
  "redemption_method": "instore",
257
- "offer_count": 28672
257
+ "offer_count": 28673
258
258
  },
259
259
  {
260
260
  "redemption_method": "link",
261
- "offer_count": 20720
261
+ "offer_count": 20719
262
262
  },
263
263
  {
264
264
  "redemption_method": "call",
@@ -270,12 +270,12 @@ http_interactions:
270
270
  "category_count": 127
271
271
  },
272
272
  "stores": {
273
- "store_count": 25907
273
+ "store_count": 25894
274
274
  },
275
275
  "locations": {
276
- "location_count": 203975
276
+ "location_count": 197510
277
277
  }
278
278
  }
279
279
  http_version:
280
- recorded_at: Tue, 06 Oct 2015 20:04:58 GMT
281
- recorded_with: VCR 2.9.3
280
+ recorded_at: Thu, 21 Jan 2016 18:34:35 GMT
281
+ recorded_with: VCR 3.0.0