summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/Gender.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-03-27 08:02:14 -0700
committerJesse Morgan <jesse@jesterpm.net>2016-03-27 08:02:14 -0700
commit6d987e0dd18ef830484641166a816661f4b16074 (patch)
treeeffaccb0a85cebca64e39ea8aa4545d59306cfc6 /src/main/java/com/p4square/ccbapi/model/Gender.java
parentf4cb9e6a44c016c0200a9291f25003c72e2551cd (diff)
Adding the update_individual API
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Gender.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/Gender.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/Gender.java b/src/main/java/com/p4square/ccbapi/model/Gender.java
index eabaa42..cf6736a 100644
--- a/src/main/java/com/p4square/ccbapi/model/Gender.java
+++ b/src/main/java/com/p4square/ccbapi/model/Gender.java
@@ -6,8 +6,15 @@ import javax.xml.bind.annotation.XmlEnumValue;
* Enum representing the gender of an individual in CCB.
*/
public enum Gender {
- @XmlEnumValue("M") MALE("M"),
- @XmlEnumValue("F") FEMALE("F");
+ /**
+ * The documentation currently provides conflicting examples for the gender code.
+ * The documentation says it must be 'M' or 'F', but the example given uses 'm'.
+ * According to an API Village posting, it should actually be lower case.
+ *
+ * https://village.ccbchurch.com/message_comment_list.php?message_id=3308
+ */
+ @XmlEnumValue("M") MALE("m"),
+ @XmlEnumValue("F") FEMALE("f");
private final String code;