Repository: chartmogul/chartmogul-python (language: python)

Issue:
Support for Contacts
This should add support for Contacts (https://dev.chartmogul.com/reference/contacts). Also adds the related items in the Customers resource (https://dev.chartmogul.com/reference/customers).


Discussion / hints:
Code Climate has analyzed commit 26bf1f11 and detected **0 issues** on this pull request.

The test coverage on the diff in this pull request is **100.0%** (**50%** is the threshold).

This pull request will bring the total coverage in the repository to **98.3%** (**0.0%** change).

View more on [Code Climate](https://codeclimate.com/github/chartmogul/chartmogul-python/pull/72).


Fix patch:
diff --git a/chartmogul/api/contact.py b/chartmogul/api/contact.py
index c75f537..c381026 100644
--- a/chartmogul/api/contact.py
+++ b/chartmogul/api/contact.py
@@ -13,6 +13,7 @@ class Contact(Resource):
                        [_root_key, "has_more", "cursor"])
 
     class _Schema(Schema):
+        uuid = fields.String()
         customer_uuid = fields.String(allow_none=True)
         data_source_uuid = fields.String(allow_none=True)
         customer_external_id = fields.String(allow_none=True)


Test patch:
diff --git a/test/api/test_contact.py b/test/api/test_contact.py
index 3bc512a..b9e5e9b 100644
--- a/test/api/test_contact.py
+++ b/test/api/test_contact.py
@@ -25,6 +25,7 @@
 }
 
 createContact = {
+    "uuid": "con_00000000-0000-0000-0000-000000000000",
     "customer_uuid": "cus_00000000-0000-0000-0000-000000000000",
     "data_source_uuid": "ds_00000000-0000-0000-0000-000000000000",
     "first_name": "First name",
diff --git a/test/api/test_customer.py b/test/api/test_customer.py
index 3a1beb9..358d6f3 100644
--- a/test/api/test_customer.py
+++ b/test/api/test_customer.py
@@ -304,6 +304,7 @@
 }
 
 createContact = {
+    "uuid": "con_00000000-0000-0000-0000-000000000000",
     "data_source_uuid": "ds_00000000-0000-0000-0000-000000000000",
     "first_name": "First name",
     "last_name": "Last name",