From 6543944c5a80227613ec314781b5a0987902e2b1 Mon Sep 17 00:00:00 2001 From: Jordan Maynor Date: Tue, 17 Dec 2024 08:42:04 -0600 Subject: [PATCH 1/2] Added note, moved test file to tests folder --- ezoff/members.py | 4 ++++ test_projects.py => tests/test_projects.py | 0 2 files changed, 4 insertions(+) rename test_projects.py => tests/test_projects.py (100%) diff --git a/ezoff/members.py b/ezoff/members.py index 53ff360..76292be 100644 --- a/ezoff/members.py +++ b/ezoff/members.py @@ -176,6 +176,10 @@ def create_member(member: dict) -> dict: def update_member(member_id: int, member: dict) -> dict: """ Update a member + Note: If updating a customer that has an email, you should include the email + in the member dict. If you don't, it will get removed for some reason. Not sure + why as I'm using patch. So presumably should only be touching the keys that + are specified. https://ezo.io/ezofficeinventory/developers/#api-update-member """ diff --git a/test_projects.py b/tests/test_projects.py similarity index 100% rename from test_projects.py rename to tests/test_projects.py From e8505f81fd4b6ce82a0f0ef257df8ab62aa495a2 Mon Sep 17 00:00:00 2001 From: Jordan Maynor Date: Tue, 17 Dec 2024 09:49:11 -0600 Subject: [PATCH 2/2] Additional columns for member actions --- ezoff/members.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ezoff/members.py b/ezoff/members.py index 76292be..75e5d5e 100644 --- a/ezoff/members.py +++ b/ezoff/members.py @@ -142,6 +142,15 @@ def create_member(member: dict) -> dict: "user[login_enabled]", "user[subscribed_to_emails]", "user[display_picture]", + "user[unsubscribed_by_id]", + "user[authorization_amount]", + "user[vendor_id]", + "user[time_zone]", + "user[hourly_rate]", + "user[offboarding_date]", + "user[location_id]", + "user[default_address_id]", + "user[description]", "skip_confirmation_email", ] @@ -204,6 +213,15 @@ def update_member(member_id: int, member: dict) -> dict: "user[login_enabled]", "user[subscribed_to_emails]", "user[display_picture]", + "user[unsubscribed_by_id]", + "user[authorization_amount]", + "user[vendor_id]", + "user[time_zone]", + "user[hourly_rate]", + "user[offboarding_date]", + "user[location_id]", + "user[default_address_id]", + "user[description]", "skip_confirmation_email", ]