generated from bisco/codex-bootstrap
feat(frontend): add reservation confirmation page
This commit is contained in:
@@ -44,6 +44,14 @@ export type ReservationCreateResponse = {
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type ReservationConfirmResponse = {
|
||||
reservation_id: number;
|
||||
status: string;
|
||||
party_size: number;
|
||||
qr_code_url?: string;
|
||||
qr_code_image?: string;
|
||||
};
|
||||
|
||||
type ShowListResponse = {
|
||||
results: ShowListItem[];
|
||||
};
|
||||
@@ -79,4 +87,10 @@ export class ShowsApiService {
|
||||
payload,
|
||||
);
|
||||
}
|
||||
|
||||
confirmReservation(token: string): Observable<ReservationConfirmResponse> {
|
||||
return this.http.get<ReservationConfirmResponse>(`${this.apiBaseUrl}/reservations/confirm/`, {
|
||||
params: { token },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user