Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Create Appointment request #35

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

elliehastings
Copy link
Contributor

@elliehastings elliehastings commented Jun 20, 2024

Adds Description, Duration, and ServiceLocation to the Create Appointment request per the Elation API docs

Elation documents Duration as an optional field but it does appear to be required based on API errors returned when left missing/null - {"duration":["This field may not be null."]}

@elliehastings elliehastings self-assigned this Jun 20, 2024
@elliehastings elliehastings marked this pull request as draft June 20, 2024 16:17
@elliehastings elliehastings force-pushed the extend-create-appt-request branch from 0443105 to be3f7a5 Compare June 20, 2024 16:22
@elliehastings elliehastings marked this pull request as ready for review June 20, 2024 16:27
@elliehastings elliehastings requested review from fterrag and gffking June 20, 2024 16:27
@@ -40,11 +40,14 @@ type AppointmentService struct {
}

type AppointmentCreate struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, the API works as expected when sending an explicit null value for description and service_location?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that creates an appointment with an empty string description and a nil service_location in the response back 👍

@elliehastings elliehastings merged commit a715a28 into main Jun 20, 2024
2 checks passed
@elliehastings elliehastings deleted the extend-create-appt-request branch June 20, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants