Skip to content

Commit

Permalink
Merge branch 'master' into feature/BE-1120-experience-reality---imple…
Browse files Browse the repository at this point in the history
…ment-filter-session-date
  • Loading branch information
tomrutherford-livestyled committed Jul 28, 2021
2 parents 92b86fe + 3e9c71b commit e7a52c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 8 additions & 8 deletions livestyled/models/ticket_auth.py
Expand Up @@ -8,11 +8,11 @@ def __init__(
id,
client_email,
client_id,
access_token,
refresh_token,
expire_at,
user_email,
ticket_integration
ticket_integration,
access_token=None,
refresh_token=None,
expire_at=None
):
self.id = id
self.client_email = client_email
Expand Down Expand Up @@ -60,11 +60,11 @@ def create_new(
cls,
client_id,
client_email,
access_token,
refresh_token,
expire_at,
user_email,
ticket_integration
ticket_integration,
access_token=None,
refresh_token=None,
expire_at=None
):
return TicketAuth(
id=None,
Expand Down
6 changes: 6 additions & 0 deletions livestyled/resource_client.py
Expand Up @@ -1022,6 +1022,12 @@ def update_ticket_auth(
) -> TicketAuth:
return self._update_resource(TicketAuthSchema, ticket_auth.id, attributes)

def create_ticket_auth(
self,
ticket_auth: TicketAuth
) -> TicketAuth:
return self._create_resource(TicketAuthSchema, ticket_auth)

# ---- VENUES

def get_venues(
Expand Down

0 comments on commit e7a52c9

Please sign in to comment.