rock_rms 6.0.8 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rock_rms/resources/person.rb +16 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50017d792afc7f4304715fe75cb68760b009877d27ea8331eaab91286b88095a
|
4
|
+
data.tar.gz: d1aa86a4092b9f6fa44bc2cf0ae85f8dda656432b4a901f7254f231b1b131995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a28cb036b889eff884c4c2f3fb777a2977929019098c9ebc344cf1505e3df2901771b49690a165336bcc2696d997e6891eb6d0aadb3f4132b0f204c4f229ff
|
7
|
+
data.tar.gz: bfd0035a62b2a89211f7d50f1a312b70423814da3c29d551b50e7b1e74117445a7e36e150c1680fae2946d451c0f45bc9d783a4b8d9f7085fe5376e4a95b5dca
|
@@ -53,6 +53,22 @@ module RockRMS
|
|
53
53
|
post(people_path, options)
|
54
54
|
end
|
55
55
|
|
56
|
+
def create_business(name:, email:, connection_status_value_id: nil, record_status_value_id: nil, record_type_value_id: 2)
|
57
|
+
options = {
|
58
|
+
'IsSystem' => false,
|
59
|
+
'LastName' => name,
|
60
|
+
'Email' => email,
|
61
|
+
'Gender' => 1,
|
62
|
+
'ConnectionStatusValueId' => connection_status_value_id,
|
63
|
+
'RecordStatusValueId' => record_status_value_id,
|
64
|
+
'RecordTypeValueId' => record_type_value_id,
|
65
|
+
}
|
66
|
+
|
67
|
+
# RecordTypeValueId 2 = Business
|
68
|
+
|
69
|
+
post(people_path, options)
|
70
|
+
end
|
71
|
+
|
56
72
|
def update_person(id, options = {})
|
57
73
|
put(people_path(id), options)
|
58
74
|
end
|
data/lib/rock_rms/version.rb
CHANGED
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: 6.0
|
4
|
+
version: 6.1.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: 2022-07-
|
11
|
+
date: 2022-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|