mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
* 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:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user