Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pepsimidamerica/ezoff
Browse files Browse the repository at this point in the history
  • Loading branch information
lambertjonchris committed Dec 19, 2024
2 parents 92d0067 + e8505f8 commit 66ea5fd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ezoff/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down Expand Up @@ -176,6 +185,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
"""

Expand All @@ -200,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",
]

Expand Down

0 comments on commit 66ea5fd

Please sign in to comment.