Skip to content

Commit

Permalink
Merge branch 'main' into issue_681
Browse files Browse the repository at this point in the history
  • Loading branch information
esune committed Sep 18, 2023
2 parents aa58331 + c34c6ee commit 1bd478e
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def __init__(
reservation_id: str = None,
state: str = None,
tenant_name: str = None,
tenant_reason: str = None,
contact_name: str = None,
contact_email: str = None,
contact_phone: str = None,
context_data: dict = {},
tenant_id: str = None,
wallet_id: str = None,
Expand All @@ -63,7 +66,11 @@ def __init__(
"""Construct record."""
super().__init__(reservation_id, state or self.STATE_REQUESTED, **kwargs)
self.tenant_name = tenant_name
self.tenant_reason = tenant_reason

self.contact_name = contact_name
self.contact_email = contact_email
self.contact_phone = contact_phone
self.context_data = context_data

self.tenant_id = tenant_id
Expand Down Expand Up @@ -132,7 +139,10 @@ def record_value(self) -> dict:
prop: getattr(self, prop)
for prop in (
"tenant_name",
"tenant_reason",
"contact_name",
"contact_email",
"contact_phone",
"context_data",
"tenant_id",
"wallet_id",
Expand Down Expand Up @@ -167,11 +177,27 @@ class Meta:
example="line of business short name",
)

tenant_reason = fields.Str(
required=True,
description="Reason(s) for requesting a tenant",
example="Issue permits to clients",
)

contact_name = fields.Str(
required=True,
description="Contact name for this tenant request",
)

contact_email = fields.Str(
required=True,
description="Contact email for this tenant request",
)

contact_phone = fields.Str(
required=True,
description="Contact phone number for this tenant request",
)

context_data = fields.Dict(
required=False,
description="Context data for this tenant request",
Expand Down

0 comments on commit 1bd478e

Please sign in to comment.