Skip to content

Commit

Permalink
[Appointment] Make gender preferance optional, fix addAppointment ret…
Browse files Browse the repository at this point in the history
…urn type
  • Loading branch information
kylesurowiec committed Oct 15, 2022
1 parent 078fdfc commit 369a9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mindbody/Appointment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export type AddAppointmentPayload = {
ApplyPayment?: boolean;
Duration?: number;
Execute?: string;
GenderPreference: 'None' | 'Female' | 'Male';
GenderPreference?: 'None' | 'Female' | 'Male';
Notes?: string;
ProviderId?: string;
ResourceIds?: number[];
Expand All @@ -192,7 +192,7 @@ export type AddAppointmentPayload = {
*/
async function addAppointment(
args: RequestArgsPost<AddAppointmentPayload>,
): Promise<Appointments> {
): Promise<{ Appointment: Appointment }> {
return await MINDBODY.post('/appointment/addappointment', args);
}

Expand Down

0 comments on commit 369a9fa

Please sign in to comment.