rock_rms 5.15.0 → 5.16.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 +7 -2
- data/lib/rock_rms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0a0e39eb6d9110441554494776848001292e154c9d8292fc9d9630735320b7
|
4
|
+
data.tar.gz: f35d764bd6269201cfeb03959483dc0c6394c95fd5f0bb3f2390869d5db731dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdbb6ec3dcfcba4d57c9f5dc517fb82d65f3f8e7b7e5d95e8c0d41814b916cc079a1796737c0295ecd26f97fcfdb8adbb839642de5fbf1ff88997cb62701f2d3
|
7
|
+
data.tar.gz: bbb22c3d624928f5b157bcce8a0e5207b1f36e14b52bc9d1b897dd471cadaa45eba98f4acc57e3af1946e9c826fb938d62161d886a085c43dc8cd4f05a79f8af
|
@@ -35,7 +35,7 @@ module RockRMS
|
|
35
35
|
)
|
36
36
|
end
|
37
37
|
|
38
|
-
def create_person(first_name:, last_name:, email:, connection_status_value_id: nil, record_status_value_id: nil)
|
38
|
+
def create_person(first_name:, last_name:, email:, connection_status_value_id: nil, record_status_value_id: nil, record_type_value_id: 1)
|
39
39
|
options = {
|
40
40
|
'IsSystem' => false,
|
41
41
|
'FirstName' => first_name,
|
@@ -43,8 +43,13 @@ module RockRMS
|
|
43
43
|
'Email' => email,
|
44
44
|
'Gender' => 1,
|
45
45
|
'ConnectionStatusValueId' => connection_status_value_id,
|
46
|
-
'RecordStatusValueId' => record_status_value_id
|
46
|
+
'RecordStatusValueId' => record_status_value_id,
|
47
|
+
'RecordTypeValueId' => record_type_value_id,
|
47
48
|
}
|
49
|
+
|
50
|
+
# RecordTypeValueId 1 = Person
|
51
|
+
# RecordTypeValueId 2 = Business
|
52
|
+
|
48
53
|
post(people_path, options)
|
49
54
|
end
|
50
55
|
|
data/lib/rock_rms/version.rb
CHANGED