access 2.0.44 → 2.0.46
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/Gemfile.lock +11 -11
- data/lib/access/member.rb +2 -1
- data/lib/access/response.rb +2 -0
- data/lib/access/version.rb +1 -1
- data/test/access/user_test.rb +2 -2
- data/test/vcr/cassettes/favorite_one_of_everything.yml +809 -898
- data/test/vcr/cassettes/member_authenticate_cvt_failure.yml +3 -3
- data/test/vcr/cassettes/member_authenticate_cvt_success.yml +7 -5
- data/test/vcr/cassettes/member_authenticate_failure.yml +3 -3
- data/test/vcr/cassettes/member_authenticate_success.yml +7 -5
- data/test/vcr/cassettes/member_update_success.yml +45 -0
- data/test/vcr/cassettes/user_register_failure.yml +2 -2
- data/test/vcr/cassettes/user_update_success.yml +6 -6
- metadata +2 -2
@@ -39,10 +39,10 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:05 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"message":"No active user with specified CVT found.","status":401}'
|
45
|
+
string: '{"message":"No active user with specified CVT found.","status":401,"error_code":"AUTHENTICATION_FAILURE_USER_NOT_FOUND"}'
|
46
46
|
http_version:
|
47
|
-
recorded_at:
|
47
|
+
recorded_at: Mon, 01 Feb 2016 23:05:24 GMT
|
48
48
|
recorded_with: VCR 3.0.0
|
@@ -39,12 +39,14 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:07 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"
|
46
|
-
|
47
|
-
|
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":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}}]}'
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 01 Feb 2016 23:05:26 GMT
|
50
52
|
recorded_with: VCR 3.0.0
|
@@ -39,10 +39,10 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:06 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"message":"No active user with specified credentials found.","status":401}'
|
45
|
+
string: '{"message":"No active user with specified credentials found.","status":401,"error_code":"AUTHENTICATION_FAILURE_PASSWORD_MISMATCH"}'
|
46
46
|
http_version:
|
47
|
-
recorded_at:
|
47
|
+
recorded_at: Mon, 01 Feb 2016 23:05:25 GMT
|
48
48
|
recorded_with: VCR 3.0.0
|
@@ -39,12 +39,14 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:05 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"
|
46
|
-
|
47
|
-
|
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":89665693,"member_key":"226865","email":"ben@test.com","first_name":"Ben","last_name":"Eggett","reg_id":1077263,"cvt":"5d7c9927d4cc1720e1fff4681a3dc6e51c9145dd","postal_code":"84010","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":89665693,"member_key":"226865","email":"ben@test.com","first_name":"Ben","last_name":"Eggett","cvt":"5d7c9927d4cc1720e1fff4681a3dc6e51c9145dd","postal_code":"84010"},"user":{"email":"ben@test.com","first_name":"Ben","last_name":"Eggett","reg_id":1077263,"roles":[],"has_password":true}}]}'
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 01 Feb 2016 23:05:24 GMT
|
50
52
|
recorded_with: VCR 3.0.0
|
@@ -90,4 +90,49 @@ http_interactions:
|
|
90
90
|
string: '{"username":"cs@test.com","birth_date":"2016-01-25","gender":null,"home_address":null,"default_location":null,"mobile_phone_number":null,"created_dts":"2015-12-15T00:33:37.372+0000","modified_dts":"2016-01-21T17:51:54.765+0000","last_registered_dts":"2015-10-07T19:57:56.456+0000","active":false,"messaging":null,"first_name":"Tep","last_name":"No","member_id":89738626,"program_id":2412,"member_key":"226872","program_key":"TYP123","cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","lat_lon_address":null,"address":null}'
|
91
91
|
http_version:
|
92
92
|
recorded_at: Tue, 26 Jan 2016 04:57:13 GMT
|
93
|
+
- request:
|
94
|
+
method: put
|
95
|
+
uri: https://mms-stage.adcrws.com/v1/members/226872?program_id=2412
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"birth_date":"2016-02-01"}'
|
99
|
+
headers:
|
100
|
+
Access-Token:
|
101
|
+
- ACCESS_TOKEN
|
102
|
+
Content-Type:
|
103
|
+
- application/json
|
104
|
+
Accept:
|
105
|
+
- application/json
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: OK
|
110
|
+
headers:
|
111
|
+
Server:
|
112
|
+
- Apache-Coyote/1.1
|
113
|
+
X-Content-Type-Options:
|
114
|
+
- nosniff
|
115
|
+
X-Xss-Protection:
|
116
|
+
- 1; mode=block
|
117
|
+
Cache-Control:
|
118
|
+
- no-cache, no-store, max-age=0, must-revalidate
|
119
|
+
Pragma:
|
120
|
+
- no-cache
|
121
|
+
Expires:
|
122
|
+
- '0'
|
123
|
+
X-Frame-Options:
|
124
|
+
- DENY
|
125
|
+
X-Application-Context:
|
126
|
+
- application:main,stage:10120
|
127
|
+
Content-Type:
|
128
|
+
- application/json;charset=UTF-8
|
129
|
+
Transfer-Encoding:
|
130
|
+
- chunked
|
131
|
+
Date:
|
132
|
+
- Mon, 01 Feb 2016 23:01:30 GMT
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: '{"username":"cs@test.com","birth_date":"2016-02-01","gender":null,"home_address":null,"default_location":null,"mobile_phone_number":null,"created_dts":"2015-12-15T00:33:37.372+0000","modified_dts":"2016-01-08T18:36:58.667+0000","last_registered_dts":"2015-10-07T19:57:56.456+0000","active":true,"messaging":null,"first_name":"Cody","last_name":"Stringham","member_id":89738626,"program_id":2412,"member_key":"226872","program_key":"TYP123","cvt":"6fa6c66c4edc07b767f147a6e5fc614c20797ef0","lat_lon_address":null,"address":null}'
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 01 Feb 2016 22:59:49 GMT
|
93
138
|
recorded_with: VCR 3.0.0
|
@@ -39,10 +39,10 @@ http_interactions:
|
|
39
39
|
Transfer-Encoding:
|
40
40
|
- chunked
|
41
41
|
Date:
|
42
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:03 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:
|
47
|
+
recorded_at: Mon, 01 Feb 2016 23:05:23 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:
|
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
|
-
-
|
42
|
+
- Mon, 01 Feb 2016 23:07:02 GMT
|
43
43
|
body:
|
44
44
|
encoding: UTF-8
|
45
|
-
string: '{"users":[{"program_id":2412,"program_key":"TYP123","program_name":"
|
46
|
-
|
47
|
-
|
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":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}]}'
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Mon, 01 Feb 2016 23:05:22 GMT
|
50
50
|
recorded_with: VCR 3.0.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-02-
|
13
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|