Fix #3984 -- API: Add phone to customer resource (#3992)

* Fix #3984 -- API: Add phone to customer resource

* add "phone": None to test

---------

Co-authored-by: Mira Weller <weller@rami.io>
This commit is contained in:
Raphael Michel
2024-03-19 10:17:44 +01:00
committed by GitHub
parent 35800e21c7
commit 7e60d13910
4 changed files with 16 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ def customer(organizer, event):
return organizer.customers.create(
identifier="8WSAJCJ",
email="foo@example.org",
phone="+493012345678",
name_parts={"_legacy": "Foo"},
name_cached="Foo",
is_verified=False,
@@ -39,6 +40,7 @@ TEST_CUSTOMER_RES = {
"identifier": "8WSAJCJ",
"external_identifier": None,
"email": "foo@example.org",
"phone": "+493012345678",
"name": "Foo",
"name_parts": {
"_legacy": "Foo",

View File

@@ -155,6 +155,7 @@ def test_medium_detail(token_client, organizer, event, medium, giftcard, custome
"identifier": customer.identifier,
"external_identifier": None,
"email": "foo@example.org",
"phone": None,
"name": "Foo",
"name_parts": {"_legacy": "Foo"},
"is_active": True,