shelby_arena 0.0.4 → 0.0.6

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
  SHA256:
3
- metadata.gz: 80f385f29d41b48eed1bd43b20e43519d58bf987a8d96417c5ac2607c4ebefe4
4
- data.tar.gz: 3f74b22582450a8ea680637037594a9727d5d8f2089c34409bbf20d506918eda
3
+ metadata.gz: 730cf23bfb3b1c40b817079183fadb94ff7059566802e33cd1dab2fcba994b28
4
+ data.tar.gz: 3638a5751cd52e0e81f799cdbcb0f39759f550be7773c31f6f270e063ffb8396
5
5
  SHA512:
6
- metadata.gz: 77c191c322fa1801af116a9022055d4b698bded267e1b1639353fd08f0918b1e2eb38482a75434ce03e458da078692bb0177beb19128db70029893ad8b35d8b0
7
- data.tar.gz: f3fd57c7d900a8f8f7e2c94281b1ac9dd7e25396b1d34c5348004dbd700c6715abd73fb8aca1f208e54050cc7b58851d327fed18ea4788a86c1ed2c5fd826f9e
6
+ metadata.gz: 5926f66ac739c7680691379b80efa2db1f430a33e8be82617ebcbec043bf50b3cb6c69546946209270f2a5019a255d910ecd3935d4060ce99fb9e552afe7b25e
7
+ data.tar.gz: 66ac77a23bba3dfd87cf716f9c29ec20f87f48746e47ffa28363ba7b497ae6997323b6158c5493abb0067b9dc923fe21a795e0485451b8f9e17c20b1a2f31526
@@ -25,16 +25,21 @@ module ShelbyArena
25
25
  def create_person(
26
26
  first_name:,
27
27
  last_name:,
28
- email:
28
+ email:,
29
+ record_status_id: 2,
30
+ campus_id: nil
29
31
  )
30
32
  path = 'person/add'
31
33
 
32
34
  body = {
33
35
  'FirstName' => first_name,
34
36
  'LastName' => last_name,
35
- 'Emails' => ['Address' => email]
37
+ 'Emails' => ['Address' => email],
38
+ 'RecordStatusID' => record_status_id
36
39
  }
37
40
 
41
+ body['CampusID'] = campus_id if campus_id
42
+
38
43
  options = {}
39
44
  options[:api_sig] = generate_api_sig(path, options)
40
45
  res = json_post("#{path}?api_session=#{options[:api_session]}&api_sig=#{options[:api_sig]}", body.to_json)
@@ -45,7 +50,8 @@ module ShelbyArena
45
50
  id,
46
51
  first_name: nil,
47
52
  last_name: nil,
48
- email: nil
53
+ email: nil,
54
+ record_status_id: nil
49
55
  )
50
56
  path = "#{people_path(id)}/update"
51
57
 
@@ -54,6 +60,7 @@ module ShelbyArena
54
60
  body['FirstName'] = first_name if first_name
55
61
  body['LastName'] = last_name if last_name
56
62
  body['Emails'] = ['Address' => email] if email
63
+ body['RecordStatusID'] = record_status_id if record_status_id
57
64
 
58
65
  options = {}
59
66
  options[:api_sig] = generate_api_sig(path, options)
@@ -7,7 +7,9 @@ module ShelbyArena
7
7
  last_name: 'LastName',
8
8
  person_id: 'PersonID',
9
9
  person_link: 'PersonLink',
10
- gender: 'Gender'
10
+ gender: 'Gender',
11
+ campus_id: 'CampusID',
12
+ campus: 'CampusName'
11
13
  }.freeze
12
14
 
13
15
  def format_single(data)
@@ -1,3 +1,3 @@
1
1
  module ShelbyArena
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelby_arena
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-14 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday