adj checkout

This commit is contained in:
vanilia
2025-11-25 19:54:33 +07:00
13 changed files with 142 additions and 152 deletions
@@ -43,9 +43,9 @@ func Checkout(input *e.Encounter) error {
return helper.DoJsonRequest(input, "PATCH", endpoint)
}
func Cancel(input *e.Encounter) error {
func UpdateStatus(input *e.Encounter) error {
prefixEndpoint := getPrefixEndpoint()
endpoint := fmt.Sprintf("%s/%v/cancel", prefixEndpoint, input.Id)
endpoint := fmt.Sprintf("%s/%v/update-status", prefixEndpoint, input.Id)
return helper.DoJsonRequest(input, "PATCH", endpoint)
}