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,42 +18,48 @@ 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:37:09 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
+ - '"f211d2da064007ef467d14d09dfece83"'
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:04:55 GMT
35
- Etag:
36
- - '"111a49e6ac3ee7f9c1b0ce782cd4a814"'
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
- - ec88f821-c3e5-4e2c-9acd-8d118d7a7d01
50
+ - b4887dad-de43-4633-ba4c-71430b148765
45
51
  X-Runtime:
46
- - '0.017582'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '1216'
51
- Connection:
52
- - keep-alive
52
+ - '0.020887'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
+ "info": {
58
+ "total_results": 1,
59
+ "current_page": 1,
60
+ "total_pages": 1,
61
+ "results_per_page": 1
62
+ },
57
63
  "stores": [
58
64
  {
59
65
  "store_key": 19016615,
@@ -80,5 +86,5 @@ http_interactions:
80
86
  ]
81
87
  }
82
88
  http_version:
83
- recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
84
- recorded_with: VCR 2.9.3
89
+ recorded_at: Thu, 21 Jan 2016 18:37:13 GMT
90
+ recorded_with: VCR 3.0.0
@@ -18,46 +18,46 @@ 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:37:08 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
+ - '"70bd2df0d1ea6b5320959f432dc43faf"'
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:04:55 GMT
35
- Etag:
36
- - '"b84137d9f2a8e67fcf48b1a534003b3f"'
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
- - 8d5338b4-dc67-41c3-9313-b2bbb4a78da5
50
+ - 021b52fc-6284-4afd-bd4e-f00e37146eed
45
51
  X-Runtime:
46
- - '0.019199'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '1565'
51
- Connection:
52
- - keep-alive
52
+ - '0.019459'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
57
  "info": {
58
- "total_results": 25907,
58
+ "total_results": 25894,
59
59
  "current_page": 1,
60
- "total_pages": 25907,
60
+ "total_pages": 25894,
61
61
  "results_per_page": 1
62
62
  },
63
63
  "stores": [
@@ -91,5 +91,5 @@ http_interactions:
91
91
  }
92
92
  }
93
93
  http_version:
94
- recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
95
- recorded_with: VCR 2.9.3
94
+ recorded_at: Thu, 21 Jan 2016 18:37:13 GMT
95
+ recorded_with: VCR 3.0.0
@@ -18,36 +18,36 @@ http_interactions:
18
18
  code: 401
19
19
  message: Unauthorized
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:37:09 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'
29
45
  Cache-Control:
30
46
  - no-cache
31
- Content-Type:
32
- - application/json
33
- Date:
34
- - Tue, 06 Oct 2015 20:04:55 GMT
35
- Server:
36
- - nginx/1.6.2
37
- X-Content-Type-Options:
38
- - nosniff
39
- X-Frame-Options:
40
- - SAMEORIGIN
41
47
  X-Request-Id:
42
- - cf0cf9e6-53c1-4ca4-85d6-e3b7028b28d5
48
+ - a5f56165-08c4-41c3-b69d-669a48e23299
43
49
  X-Runtime:
44
- - '0.010398'
45
- X-Xss-Protection:
46
- - 1; mode=block
47
- Content-Length:
48
- - '77'
49
- Connection:
50
- - keep-alive
50
+ - '0.008572'
51
51
  body:
52
52
  encoding: UTF-8
53
53
  string: |-
@@ -56,5 +56,5 @@ http_interactions:
56
56
  "status": 401
57
57
  }
58
58
  http_version:
59
- recorded_at: Tue, 06 Oct 2015 20:04:55 GMT
60
- recorded_with: VCR 2.9.3
59
+ recorded_at: Thu, 21 Jan 2016 18:37:14 GMT
60
+ recorded_with: VCR 3.0.0
@@ -18,42 +18,48 @@ 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:26 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
+ - '"2c975c338c71e345f8637966cca05325"'
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:04:57 GMT
35
- Etag:
36
- - '"3b24a9589e2b3a60e10a64353bf6118c"'
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
- - b10d9021-a467-420c-82d1-feccec92f1d9
50
+ - 33e3905f-65ff-4288-a2a6-ab8989183886
45
51
  X-Runtime:
46
- - '0.026932'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Transfer-Encoding:
50
- - chunked
51
- Connection:
52
- - keep-alive
52
+ - '0.028026'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
+ "info": {
58
+ "total_results": 1,
59
+ "current_page": 1,
60
+ "total_pages": 1,
61
+ "results_per_page": 1
62
+ },
57
63
  "categories": [
58
64
  {
59
65
  "category_name": "Auto Body & Paint",
@@ -144,5 +150,5 @@ http_interactions:
144
150
  ]
145
151
  }
146
152
  http_version:
147
- recorded_at: Tue, 06 Oct 2015 20:04:57 GMT
148
- recorded_with: VCR 2.9.3
153
+ recorded_at: Thu, 21 Jan 2016 18:34:31 GMT
154
+ recorded_with: VCR 3.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://token-demo.adcrws.com/v1/tokens/8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834
5
+ uri: https://token-demo.adcrws.com/v1/tokens/c149adfd4e61ca38301cb0ef4e5a28a653790fdc638e24917e61759ee267e793
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -18,76 +18,82 @@ 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
+ - '"196469218886809c88975deb6b28c785"'
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:00 GMT
35
- Etag:
36
- - '"004c710ab43109a642e53925eb679657"'
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
- - 32f226d3-e978-4e78-8c90-d9d4748db931
50
+ - 9f5cc9a7-b3d6-410b-9f86-86433df919e0
45
51
  X-Runtime:
46
- - '0.015083'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '2100'
51
- Connection:
52
- - keep-alive
52
+ - '0.016711'
53
53
  body:
54
54
  encoding: UTF-8
55
55
  string: |-
56
56
  {
57
57
  "oauth_token": {
58
- "application_id": 851,
59
- "token": "8e4a1810f9c5b63596f239b1d9ce23cbed89c720f36b3e3f6b364a4c6f655834",
58
+ "application_id": 892,
59
+ "token": "c149adfd4e61ca38301cb0ef4e5a28a653790fdc638e24917e61759ee267e793",
60
60
  "expires_in": null,
61
61
  "revoked_at": null,
62
- "created_at": "2015-10-05T16:16:29.788-06:00",
63
- "oauth_access_token_id": 977,
64
- "application_name": "World Discovery Club (pcid 4485)",
65
- "application_owner_id": 374,
62
+ "created_at": "2016-01-21T09:02:12.021-07:00",
63
+ "oauth_access_token_id": 1023,
64
+ "application_name": "American Saver (pcid:200214)",
65
+ "application_owner_id": 235590205,
66
66
  "application_owner_type": "Program",
67
- "program_id": 374,
68
- "program_name": "World Discovery Club",
69
- "program_customer_identifier": "4485",
70
- "program_start_dts": "2012-04-12T15:10:31.634-06:00",
71
- "program_end_dts": "2018-12-30T17:00:00.000-07:00",
72
- "organization_id": 2000140,
73
- "organization_name": "WORLD DISCOVERY, LLC",
74
- "organization_customer_identifier": "ps3gr",
75
- "filter_id": 88,
76
- "filter_name": "Auto, Car Rental, Cruise, Dining, Entertainment, Golf, Health/Beauty, Home/Garden, Hotel, Movies, Services, Shopping, Ski, Travel (No Condo, Education Only)",
77
- "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]}}]}]}",
78
- "program_filter_id": 184,
67
+ "program_id": 235590205,
68
+ "program_name": "American Saver",
69
+ "program_customer_identifier": "200214",
70
+ "program_start_dts": "2016-01-21T08:56:00.731-07:00",
71
+ "program_end_dts": "2019-01-21T08:56:00.731-07:00",
72
+ "organization_id": 2000703,
73
+ "organization_name": "TriQuest LLc",
74
+ "organization_customer_identifier": "1176",
75
+ "filter_id": 93,
76
+ "filter_name": " Demo API filter - SLC Shopping",
77
+ "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]}}]}]}",
78
+ "program_filter_id": 218,
79
79
  "domains": [
80
- "*.worlddiscoveryclub.com"
80
+
81
81
  ],
82
82
  "application_scopes": [
83
- "amt",
83
+ "api",
84
84
  "docs",
85
85
  "internal"
86
86
  ],
87
- "indexed_at": "2015-10-06T15:49:13.970Z",
87
+ "help_phone_number": "1-800-331-8867",
88
+ "program_info_id": 235590205,
89
+ "default_distance": 25,
90
+ "force_update": false,
91
+ "color_theme": "default",
92
+ "email_opt_out": false,
93
+ "indexed_at": "2016-01-21T17:27:34.106Z",
88
94
  "token_status": "valid"
89
95
  }
90
96
  }
91
97
  http_version:
92
- recorded_at: Tue, 06 Oct 2015 20:05:00 GMT
93
- recorded_with: VCR 2.9.3
98
+ recorded_at: Thu, 21 Jan 2016 18:34:32 GMT
99
+ recorded_with: VCR 3.0.0
@@ -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:27 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:00 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
- - 9c571a90-a158-4beb-a268-274a1cfb8a8b
50
+ - ab184473-f27f-4ec4-92b5-1fceadb2321f
45
51
  X-Runtime:
46
- - '0.017681'
47
- X-Xss-Protection:
48
- - 1; mode=block
49
- Content-Length:
50
- - '2546'
51
- Connection:
52
- - keep-alive
52
+ - '0.018435'
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:00 GMT
107
- recorded_with: VCR 2.9.3
112
+ recorded_at: Thu, 21 Jan 2016 18:34:32 GMT
113
+ recorded_with: VCR 3.0.0