rock_rms 4.14.0 → 4.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f97b015685784ed98c9cb84dcb8c02207e0df0f
4
- data.tar.gz: e444906f862c40d9ea0c70d86f2c150c1ddff4f0
3
+ metadata.gz: 41cc0f6ea6c7f644e2c873726cd21b454cb35a35
4
+ data.tar.gz: 9cd54ba92b23df44095a2a6f5d2cc0f6e7075083
5
5
  SHA512:
6
- metadata.gz: 22d6233ab8fa546289a78d73b617f2bdd53b64f4a51f80b7f2150b6835c3c3e354d833766bf988421548ee47530fb5fb8f41a83b217eda0185dae1966a2ce7f2
7
- data.tar.gz: 8a8a8583258f10f9778b30c0518e95fc84377bd91d0bafa95ce9dd80e97e59e2cf8988ec4cc36b4db43fbca0956ca6216e475fc11ad72af29056ba53fb0554d9
6
+ metadata.gz: 9bcc9f2d9c7c74dae5ed291b9e426674dd310d7cf8b16c53e891bcca04d13a92e675b2e84510c0614b6dd7a2b4c4b050e1958909ff724ef028155cef19cd7929
7
+ data.tar.gz: 686a624238a10934efec2a9f557146bea99843f987e497a5b9c550402d1e4044ed511d04a366263976de17dba1e4ca7129ceadbd63c478012dd481662a28444d
@@ -32,6 +32,7 @@ module RockRMS
32
32
  include RockRMS::Client::SavedPaymentMethod
33
33
  include RockRMS::Client::Transaction
34
34
  include RockRMS::Client::TransactionDetail
35
+ include RockRMS::Client::UserLogin
35
36
  include RockRMS::Client::Utility
36
37
  include RockRMS::Client::WorkflowActionType
37
38
  include RockRMS::Client::WorkflowActivityType
@@ -0,0 +1,34 @@
1
+ module RockRMS
2
+ class Client
3
+ module UserLogin
4
+ def list_user_logins(options = {})
5
+ res = get('UserLogins', options)
6
+ Response::UserLogin.format(res)
7
+ end
8
+
9
+ def create_user_login(
10
+ username:,
11
+ password:,
12
+ person_id:,
13
+ is_confirmed: false
14
+ )
15
+ options = {
16
+ 'UserName' => username,
17
+ 'PersonId' => person_id,
18
+ 'EntityTypeId' => 27,
19
+ 'IsConfirmed' => false,
20
+ 'IsLockedOut' => false,
21
+ 'IsPasswordChangeRequired' => true,
22
+ 'LastPasswordChangedDateTime' => Time.now,
23
+ 'PlainTextPassword' => password,
24
+ }
25
+
26
+ post('UserLogins', options)
27
+ end
28
+
29
+ def update_user_login(id, options)
30
+ patch("UserLogins/#{id}", options)
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,16 @@
1
+ module RockRMS
2
+ module Response
3
+ class UserLogin < Base
4
+ MAP = {
5
+ entity_type_id: 'EntityTypeId',
6
+ is_confirmed: 'IsConfirmed',
7
+ person_id: 'PersonId',
8
+ username: 'UserName',
9
+ }.freeze
10
+
11
+ def format_single(data)
12
+ to_h(MAP, data)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '4.14.0'.freeze
2
+ VERSION = '4.15.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.14.0
4
+ version: 4.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -207,6 +207,7 @@ files:
207
207
  - lib/rock_rms/resources/saved_payment_method.rb
208
208
  - lib/rock_rms/resources/transaction.rb
209
209
  - lib/rock_rms/resources/transaction_detail.rb
210
+ - lib/rock_rms/resources/user_login.rb
210
211
  - lib/rock_rms/resources/version.rb
211
212
  - lib/rock_rms/resources/workflow_action_type.rb
212
213
  - lib/rock_rms/resources/workflow_activity_type.rb
@@ -234,6 +235,7 @@ files:
234
235
  - lib/rock_rms/response/saved_payment_method.rb
235
236
  - lib/rock_rms/response/transaction.rb
236
237
  - lib/rock_rms/response/transaction_detail.rb
238
+ - lib/rock_rms/response/user_login.rb
237
239
  - lib/rock_rms/response/workflow_action_type.rb
238
240
  - lib/rock_rms/response/workflow_activity_type.rb
239
241
  - lib/rock_rms/response/workflow_type.rb