class Updox::Models::AppointmentStatus

Constants

LIST_ENDPOINT
LIST_NAME
LIST_TYPE

Public Class Methods

find(appointment_id, account_id: , cached_query: nil) click to toggle source
# File lib/updox/models/appointment_status.rb, line 20
def self.find(appointment_id, account_id: , cached_query: nil)
  obj = cached_query || self.query([appointment_id], account_id: account_id)

  obj.statuses.find {|status| appointment_id.to_s == status.external_appointment_id.to_s }
end
query(appointment_ids, account_id: , active_only: false) click to toggle source
# File lib/updox/models/appointment_status.rb, line 26
def self.query(appointment_ids, account_id: , active_only: false)
  request(endpoint: LIST_ENDPOINT, body: { appointmentIds: appointment_ids }, auth: {accountId: account_id}, required_auths: Updox::Models::Auth::AUTH_ACCT)
end