mindbody-api-v6 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +357 -0
- data/Rakefile +8 -0
- data/docs/AddAppointmentRequest.md +23 -0
- data/docs/AddAppointmentResponse.md +8 -0
- data/docs/AddArrivalRequest.md +9 -0
- data/docs/AddArrivalResponse.md +9 -0
- data/docs/AddClientRequest.md +61 -0
- data/docs/AddClientResponse.md +8 -0
- data/docs/AddClientToClassRequest.md +17 -0
- data/docs/AddClientToClassResponse.md +8 -0
- data/docs/AddClientToClassVisit.md +28 -0
- data/docs/AddClientToEnrollmentRequest.md +15 -0
- data/docs/AddContactLogRequest.md +16 -0
- data/docs/AddContactLogType.md +9 -0
- data/docs/Amenity.md +9 -0
- data/docs/Appointment.md +24 -0
- data/docs/AppointmentApi.md +460 -0
- data/docs/AppointmentOption.md +11 -0
- data/docs/AssignedClientIndex.md +9 -0
- data/docs/AutopaySchedule.md +10 -0
- data/docs/Availability.md +15 -0
- data/docs/BookingWindow.md +11 -0
- data/docs/CheckoutAppointmentBookingRequest.md +14 -0
- data/docs/CheckoutItem.md +9 -0
- data/docs/CheckoutItemWrapper.md +17 -0
- data/docs/CheckoutPaymentInfo.md +9 -0
- data/docs/CheckoutShoppingCartRequest.md +18 -0
- data/docs/ClassApi.md +589 -0
- data/docs/ClassDescription.md +22 -0
- data/docs/ClassPayrollEvent.md +10 -0
- data/docs/ClassSchedule.md +29 -0
- data/docs/Client.md +61 -0
- data/docs/ClientApi.md +1473 -0
- data/docs/ClientContract.md +16 -0
- data/docs/ClientCreditCard.md +17 -0
- data/docs/ClientDocument.md +10 -0
- data/docs/ClientIndex.md +13 -0
- data/docs/ClientIndexValue.md +10 -0
- data/docs/ClientMembership.md +20 -0
- data/docs/ClientPurchaseRecord.md +16 -0
- data/docs/ClientRelationship.md +10 -0
- data/docs/ClientService.md +18 -0
- data/docs/Color.md +9 -0
- data/docs/ContactLog.md +18 -0
- data/docs/ContactLogComment.md +11 -0
- data/docs/ContactLogSubType.md +8 -0
- data/docs/ContactLogType.md +9 -0
- data/docs/Contract.md +41 -0
- data/docs/ContractItem.md +14 -0
- data/docs/Course.md +17 -0
- data/docs/CreditCardInfo.md +16 -0
- data/docs/CrossRegionalClientAssociation.md +10 -0
- data/docs/CustomClientField.md +10 -0
- data/docs/CustomClientFieldValue.md +11 -0
- data/docs/CustomPaymentMethod.md +9 -0
- data/docs/EnrollmentApi.md +137 -0
- data/docs/FormulaNote.md +12 -0
- data/docs/GetActivationCodeResponse.md +9 -0
- data/docs/GetActiveClientMembershipsRequest.md +11 -0
- data/docs/GetActiveClientMembershipsResponse.md +9 -0
- data/docs/GetActiveSessionTimesRequest.md +13 -0
- data/docs/GetActiveSessionTimesResponse.md +9 -0
- data/docs/GetAppointmentOptionsResponse.md +8 -0
- data/docs/GetBookableItemsRequest.md +16 -0
- data/docs/GetBookableItemsResponse.md +9 -0
- data/docs/GetClassDescriptionsRequest.md +15 -0
- data/docs/GetClassDescriptionsResponse.md +9 -0
- data/docs/GetClassPayrollRequest.md +13 -0
- data/docs/GetClassPayrollResponse.md +9 -0
- data/docs/GetClassSchedulesRequest.md +16 -0
- data/docs/GetClassSchedulesResponse.md +9 -0
- data/docs/GetClassVisitsRequest.md +9 -0
- data/docs/GetClassVisitsResponse.md +8 -0
- data/docs/GetClassesRequest.md +22 -0
- data/docs/GetClassesResponse.md +9 -0
- data/docs/GetClientAccountBalancesRequest.md +12 -0
- data/docs/GetClientAccountBalancesResponse.md +9 -0
- data/docs/GetClientContractsRequest.md +12 -0
- data/docs/GetClientContractsResponse.md +9 -0
- data/docs/GetClientFormulaNotesRequest.md +11 -0
- data/docs/GetClientFormulaNotesResponse.md +9 -0
- data/docs/GetClientIndexesRequest.md +8 -0
- data/docs/GetClientIndexesResponse.md +8 -0
- data/docs/GetClientPurchasesRequest.md +13 -0
- data/docs/GetClientPurchasesResponse.md +9 -0
- data/docs/GetClientReferralTypesRequest.md +8 -0
- data/docs/GetClientReferralTypesResponse.md +8 -0
- data/docs/GetClientServicesRequest.md +20 -0
- data/docs/GetClientServicesResponse.md +9 -0
- data/docs/GetClientVisitsRequest.md +15 -0
- data/docs/GetClientVisitsResponse.md +9 -0
- data/docs/GetClientsRequest.md +13 -0
- data/docs/GetClientsResponse.md +9 -0
- data/docs/GetContactLogsRequest.md +16 -0
- data/docs/GetContactLogsResponse.md +9 -0
- data/docs/GetContractsRequest.md +13 -0
- data/docs/GetContractsResponse.md +9 -0
- data/docs/GetCrossRegionalClientAssociationsRequest.md +11 -0
- data/docs/GetCrossRegionalClientAssociationsResponse.md +9 -0
- data/docs/GetCustomClientFieldsRequest.md +9 -0
- data/docs/GetCustomClientFieldsResponse.md +9 -0
- data/docs/GetCustomPaymentMethodsRequest.md +9 -0
- data/docs/GetCustomPaymentMethodsResponse.md +9 -0
- data/docs/GetEnrollmentsRequest.md +16 -0
- data/docs/GetEnrollmentsResponse.md +9 -0
- data/docs/GetGiftCardResponse.md +9 -0
- data/docs/GetGiftCardsRequest.md +12 -0
- data/docs/GetLocationsRequest.md +9 -0
- data/docs/GetLocationsResponse.md +9 -0
- data/docs/GetPackagesRequest.md +11 -0
- data/docs/GetPackagesResponse.md +9 -0
- data/docs/GetProductsRequest.md +15 -0
- data/docs/GetProductsResponse.md +9 -0
- data/docs/GetProgramsRequest.md +11 -0
- data/docs/GetProgramsResponse.md +9 -0
- data/docs/GetRequiredClientFieldsResponse.md +8 -0
- data/docs/GetResourcesRequest.md +13 -0
- data/docs/GetResourcesResponse.md +9 -0
- data/docs/GetSalesRequest.md +7 -0
- data/docs/GetSalesResponse.md +9 -0
- data/docs/GetScheduleItemsRequest.md +14 -0
- data/docs/GetScheduleItemsResponse.md +9 -0
- data/docs/GetServicesRequest.md +18 -0
- data/docs/GetServicesResponse.md +9 -0
- data/docs/GetSessionTypesRequest.md +11 -0
- data/docs/GetSessionTypesResponse.md +9 -0
- data/docs/GetSitesRequest.md +10 -0
- data/docs/GetSitesResponse.md +9 -0
- data/docs/GetStaffAppointmentsRequest.md +15 -0
- data/docs/GetStaffAppointmentsResponse.md +9 -0
- data/docs/GetStaffPermissionsRequest.md +8 -0
- data/docs/GetStaffPermissionsResponse.md +8 -0
- data/docs/GetStaffRequest.md +14 -0
- data/docs/GetStaffResponse.md +9 -0
- data/docs/GetTimeClockRequest.md +13 -0
- data/docs/GetTimeClockResponse.md +9 -0
- data/docs/GetWaitlistEntriesRequest.md +14 -0
- data/docs/GetWaitlistEntriesResponse.md +9 -0
- data/docs/GiftCard.md +19 -0
- data/docs/GiftCardLayout.md +9 -0
- data/docs/IssueRequest.md +9 -0
- data/docs/IssueResponse.md +10 -0
- data/docs/Level.md +10 -0
- data/docs/Liability.md +10 -0
- data/docs/Location.md +32 -0
- data/docs/MembershipTypeRestriction.md +9 -0
- data/docs/ModelClass.md +33 -0
- data/docs/Package.md +13 -0
- data/docs/PaginationResponse.md +11 -0
- data/docs/PayrollApi.md +140 -0
- data/docs/Product.md +18 -0
- data/docs/Program.md +11 -0
- data/docs/ProspectStage.md +10 -0
- data/docs/PurchaseContractRequest.md +18 -0
- data/docs/PurchaseContractResponse.md +11 -0
- data/docs/PurchaseGiftCardRequest.md +19 -0
- data/docs/PurchaseGiftCardResponse.md +17 -0
- data/docs/PurchasedItem.md +9 -0
- data/docs/Relationship.md +10 -0
- data/docs/RemoveClientFromClassRequest.md +12 -0
- data/docs/RemoveClientFromClassResponse.md +8 -0
- data/docs/RemoveFromWaitlistRequest.md +8 -0
- data/docs/RemoveFromWaitlistResponse.md +7 -0
- data/docs/Resource.md +9 -0
- data/docs/Sale.md +15 -0
- data/docs/SaleApi.md +683 -0
- data/docs/SalePayment.md +12 -0
- data/docs/SalesRep.md +12 -0
- data/docs/SendPasswordResetEmailRequest.md +10 -0
- data/docs/Service.md +16 -0
- data/docs/SessionType.md +17 -0
- data/docs/Site.md +27 -0
- data/docs/SiteApi.md +362 -0
- data/docs/Size.md +9 -0
- data/docs/Staff.md +31 -0
- data/docs/StaffApi.md +131 -0
- data/docs/StaffPermissionGroup.md +11 -0
- data/docs/StoredCardInfo.md +8 -0
- data/docs/SubstituteClassTeacherRequest.md +13 -0
- data/docs/SubstituteClassTeacherResponse.md +8 -0
- data/docs/SubstituteTeacherClass.md +27 -0
- data/docs/TimeCardEvent.md +10 -0
- data/docs/TimeClockReport.md +13 -0
- data/docs/Unavailability.md +11 -0
- data/docs/UpcomingAutopayEvent.md +11 -0
- data/docs/UpdateAppointmentRequest.md +19 -0
- data/docs/UpdateAppointmentResponse.md +8 -0
- data/docs/UpdateClientRequest.md +11 -0
- data/docs/UpdateClientResponse.md +8 -0
- data/docs/UpdateClientServiceRequest.md +11 -0
- data/docs/UpdateClientServiceResponse.md +8 -0
- data/docs/UpdateClientVisitRequest.md +13 -0
- data/docs/UpdateClientVisitResponse.md +8 -0
- data/docs/UpdateContactLogComment.md +9 -0
- data/docs/UpdateContactLogRequest.md +16 -0
- data/docs/UpdateContactLogType.md +9 -0
- data/docs/UploadClientDocumentRequest.md +9 -0
- data/docs/UploadClientDocumentResponse.md +9 -0
- data/docs/UploadClientPhotoRequest.md +9 -0
- data/docs/UploadClientPhotoResponse.md +9 -0
- data/docs/User.md +11 -0
- data/docs/UserTokenApi.md +115 -0
- data/docs/Visit.md +25 -0
- data/docs/WaitlistEntry.md +16 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client.rb +241 -0
- data/lib/swagger_client/api/appointment_api.rb +570 -0
- data/lib/swagger_client/api/class_api.rb +727 -0
- data/lib/swagger_client/api/client_api.rb +1795 -0
- data/lib/swagger_client/api/enrollment_api.rb +180 -0
- data/lib/swagger_client/api/payroll_api.rb +181 -0
- data/lib/swagger_client/api/sale_api.rb +829 -0
- data/lib/swagger_client/api/site_api.rb +433 -0
- data/lib/swagger_client/api/staff_api.rb +171 -0
- data/lib/swagger_client/api/user_token_api.rb +150 -0
- data/lib/swagger_client/api_client.rb +389 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +209 -0
- data/lib/swagger_client/models/add_appointment_request.rb +395 -0
- data/lib/swagger_client/models/add_appointment_response.rb +184 -0
- data/lib/swagger_client/models/add_arrival_request.rb +204 -0
- data/lib/swagger_client/models/add_arrival_response.rb +194 -0
- data/lib/swagger_client/models/add_client_request.rb +766 -0
- data/lib/swagger_client/models/add_client_response.rb +184 -0
- data/lib/swagger_client/models/add_client_to_class_request.rb +284 -0
- data/lib/swagger_client/models/add_client_to_class_response.rb +184 -0
- data/lib/swagger_client/models/add_client_to_class_visit.rb +442 -0
- data/lib/swagger_client/models/add_client_to_enrollment_request.rb +266 -0
- data/lib/swagger_client/models/add_contact_log_request.rb +278 -0
- data/lib/swagger_client/models/add_contact_log_type.rb +197 -0
- data/lib/swagger_client/models/amenity.rb +195 -0
- data/lib/swagger_client/models/appointment.rb +393 -0
- data/lib/swagger_client/models/appointment_option.rb +215 -0
- data/lib/swagger_client/models/assigned_client_index.rb +195 -0
- data/lib/swagger_client/models/autopay_schedule.rb +204 -0
- data/lib/swagger_client/models/availability.rb +257 -0
- data/lib/swagger_client/models/booking_window.rb +215 -0
- data/lib/swagger_client/models/checkout_appointment_booking_request.rb +246 -0
- data/lib/swagger_client/models/checkout_item.rb +196 -0
- data/lib/swagger_client/models/checkout_item_wrapper.rb +286 -0
- data/lib/swagger_client/models/checkout_payment_info.rb +196 -0
- data/lib/swagger_client/models/checkout_shopping_cart_request.rb +318 -0
- data/lib/swagger_client/models/class_description.rb +325 -0
- data/lib/swagger_client/models/class_payroll_event.rb +204 -0
- data/lib/swagger_client/models/class_schedule.rb +399 -0
- data/lib/swagger_client/models/client.rb +769 -0
- data/lib/swagger_client/models/client_contract.rb +301 -0
- data/lib/swagger_client/models/client_credit_card.rb +275 -0
- data/lib/swagger_client/models/client_document.rb +238 -0
- data/lib/swagger_client/models/client_index.rb +271 -0
- data/lib/swagger_client/models/client_index_value.rb +205 -0
- data/lib/swagger_client/models/client_membership.rb +340 -0
- data/lib/swagger_client/models/client_purchase_record.rb +265 -0
- data/lib/swagger_client/models/client_relationship.rb +205 -0
- data/lib/swagger_client/models/client_service.rb +319 -0
- data/lib/swagger_client/models/color.rb +195 -0
- data/lib/swagger_client/models/contact_log.rb +289 -0
- data/lib/swagger_client/models/contact_log_comment.rb +215 -0
- data/lib/swagger_client/models/contact_log_sub_type.rb +185 -0
- data/lib/swagger_client/models/contact_log_type.rb +197 -0
- data/lib/swagger_client/models/contract.rb +522 -0
- data/lib/swagger_client/models/contract_item.rb +244 -0
- data/lib/swagger_client/models/course.rb +275 -0
- data/lib/swagger_client/models/credit_card_info.rb +256 -0
- data/lib/swagger_client/models/cross_regional_client_association.rb +205 -0
- data/lib/swagger_client/models/custom_client_field.rb +205 -0
- data/lib/swagger_client/models/custom_client_field_value.rb +215 -0
- data/lib/swagger_client/models/custom_payment_method.rb +194 -0
- data/lib/swagger_client/models/formula_note.rb +225 -0
- data/lib/swagger_client/models/get_activation_code_response.rb +194 -0
- data/lib/swagger_client/models/get_active_client_memberships_request.rb +219 -0
- data/lib/swagger_client/models/get_active_client_memberships_response.rb +196 -0
- data/lib/swagger_client/models/get_active_session_times_request.rb +270 -0
- data/lib/swagger_client/models/get_active_session_times_response.rb +196 -0
- data/lib/swagger_client/models/get_appointment_options_response.rb +186 -0
- data/lib/swagger_client/models/get_bookable_items_request.rb +275 -0
- data/lib/swagger_client/models/get_bookable_items_response.rb +196 -0
- data/lib/swagger_client/models/get_class_descriptions_request.rb +256 -0
- data/lib/swagger_client/models/get_class_descriptions_response.rb +196 -0
- data/lib/swagger_client/models/get_class_payroll_request.rb +234 -0
- data/lib/swagger_client/models/get_class_payroll_response.rb +196 -0
- data/lib/swagger_client/models/get_class_schedules_request.rb +274 -0
- data/lib/swagger_client/models/get_class_schedules_response.rb +196 -0
- data/lib/swagger_client/models/get_class_visits_request.rb +194 -0
- data/lib/swagger_client/models/get_class_visits_response.rb +184 -0
- data/lib/swagger_client/models/get_classes_request.rb +338 -0
- data/lib/swagger_client/models/get_classes_response.rb +196 -0
- data/lib/swagger_client/models/get_client_account_balances_request.rb +231 -0
- data/lib/swagger_client/models/get_client_account_balances_response.rb +196 -0
- data/lib/swagger_client/models/get_client_contracts_request.rb +229 -0
- data/lib/swagger_client/models/get_client_contracts_response.rb +196 -0
- data/lib/swagger_client/models/get_client_formula_notes_request.rb +214 -0
- data/lib/swagger_client/models/get_client_formula_notes_response.rb +196 -0
- data/lib/swagger_client/models/get_client_indexes_request.rb +184 -0
- data/lib/swagger_client/models/get_client_indexes_response.rb +186 -0
- data/lib/swagger_client/models/get_client_purchases_request.rb +239 -0
- data/lib/swagger_client/models/get_client_purchases_response.rb +196 -0
- data/lib/swagger_client/models/get_client_referral_types_request.rb +184 -0
- data/lib/swagger_client/models/get_client_referral_types_response.rb +186 -0
- data/lib/swagger_client/models/get_client_services_request.rb +313 -0
- data/lib/swagger_client/models/get_client_services_response.rb +196 -0
- data/lib/swagger_client/models/get_client_visits_request.rb +259 -0
- data/lib/swagger_client/models/get_client_visits_response.rb +196 -0
- data/lib/swagger_client/models/get_clients_request.rb +236 -0
- data/lib/swagger_client/models/get_clients_response.rb +196 -0
- data/lib/swagger_client/models/get_contact_logs_request.rb +275 -0
- data/lib/swagger_client/models/get_contact_logs_response.rb +196 -0
- data/lib/swagger_client/models/get_contracts_request.rb +241 -0
- data/lib/swagger_client/models/get_contracts_response.rb +196 -0
- data/lib/swagger_client/models/get_cross_regional_client_associations_request.rb +214 -0
- data/lib/swagger_client/models/get_cross_regional_client_associations_response.rb +196 -0
- data/lib/swagger_client/models/get_custom_client_fields_request.rb +194 -0
- data/lib/swagger_client/models/get_custom_client_fields_response.rb +196 -0
- data/lib/swagger_client/models/get_custom_payment_methods_request.rb +194 -0
- data/lib/swagger_client/models/get_custom_payment_methods_response.rb +196 -0
- data/lib/swagger_client/models/get_enrollments_request.rb +274 -0
- data/lib/swagger_client/models/get_enrollments_response.rb +196 -0
- data/lib/swagger_client/models/get_gift_card_response.rb +196 -0
- data/lib/swagger_client/models/get_gift_cards_request.rb +226 -0
- data/lib/swagger_client/models/get_locations_request.rb +194 -0
- data/lib/swagger_client/models/get_locations_response.rb +196 -0
- data/lib/swagger_client/models/get_packages_request.rb +216 -0
- data/lib/swagger_client/models/get_packages_response.rb +196 -0
- data/lib/swagger_client/models/get_products_request.rb +260 -0
- data/lib/swagger_client/models/get_products_response.rb +196 -0
- data/lib/swagger_client/models/get_programs_request.rb +248 -0
- data/lib/swagger_client/models/get_programs_response.rb +196 -0
- data/lib/swagger_client/models/get_required_client_fields_response.rb +186 -0
- data/lib/swagger_client/models/get_resources_request.rb +236 -0
- data/lib/swagger_client/models/get_resources_response.rb +196 -0
- data/lib/swagger_client/models/get_sales_request.rb +174 -0
- data/lib/swagger_client/models/get_sales_response.rb +196 -0
- data/lib/swagger_client/models/get_schedule_items_request.rb +248 -0
- data/lib/swagger_client/models/get_schedule_items_response.rb +196 -0
- data/lib/swagger_client/models/get_services_request.rb +290 -0
- data/lib/swagger_client/models/get_services_response.rb +196 -0
- data/lib/swagger_client/models/get_session_types_request.rb +216 -0
- data/lib/swagger_client/models/get_session_types_response.rb +196 -0
- data/lib/swagger_client/models/get_sites_request.rb +206 -0
- data/lib/swagger_client/models/get_sites_response.rb +196 -0
- data/lib/swagger_client/models/get_staff_appointments_request.rb +262 -0
- data/lib/swagger_client/models/get_staff_appointments_response.rb +196 -0
- data/lib/swagger_client/models/get_staff_permissions_request.rb +189 -0
- data/lib/swagger_client/models/get_staff_permissions_response.rb +184 -0
- data/lib/swagger_client/models/get_staff_request.rb +248 -0
- data/lib/swagger_client/models/get_staff_response.rb +195 -0
- data/lib/swagger_client/models/get_time_clock_request.rb +234 -0
- data/lib/swagger_client/models/get_time_clock_response.rb +196 -0
- data/lib/swagger_client/models/get_waitlist_entries_request.rb +252 -0
- data/lib/swagger_client/models/get_waitlist_entries_response.rb +196 -0
- data/lib/swagger_client/models/gift_card.rb +300 -0
- data/lib/swagger_client/models/gift_card_layout.rb +195 -0
- data/lib/swagger_client/models/issue_request.rb +195 -0
- data/lib/swagger_client/models/issue_response.rb +204 -0
- data/lib/swagger_client/models/level.rb +205 -0
- data/lib/swagger_client/models/liability.rb +204 -0
- data/lib/swagger_client/models/location.rb +428 -0
- data/lib/swagger_client/models/membership_type_restriction.rb +194 -0
- data/lib/swagger_client/models/model_class.rb +473 -0
- data/lib/swagger_client/models/package.rb +238 -0
- data/lib/swagger_client/models/pagination_response.rb +214 -0
- data/lib/swagger_client/models/product.rb +284 -0
- data/lib/swagger_client/models/program.rb +248 -0
- data/lib/swagger_client/models/prospect_stage.rb +204 -0
- data/lib/swagger_client/models/purchase_contract_request.rb +309 -0
- data/lib/swagger_client/models/purchase_contract_response.rb +214 -0
- data/lib/swagger_client/models/purchase_gift_card_request.rb +309 -0
- data/lib/swagger_client/models/purchase_gift_card_response.rb +274 -0
- data/lib/swagger_client/models/purchased_item.rb +194 -0
- data/lib/swagger_client/models/relationship.rb +205 -0
- data/lib/swagger_client/models/remove_client_from_class_request.rb +234 -0
- data/lib/swagger_client/models/remove_client_from_class_response.rb +184 -0
- data/lib/swagger_client/models/remove_from_waitlist_request.rb +191 -0
- data/lib/swagger_client/models/remove_from_waitlist_response.rb +174 -0
- data/lib/swagger_client/models/resource.rb +195 -0
- data/lib/swagger_client/models/sale.rb +258 -0
- data/lib/swagger_client/models/sale_payment.rb +224 -0
- data/lib/swagger_client/models/sales_rep.rb +226 -0
- data/lib/swagger_client/models/send_password_reset_email_request.rb +220 -0
- data/lib/swagger_client/models/service.rb +264 -0
- data/lib/swagger_client/models/session_type.rb +308 -0
- data/lib/swagger_client/models/site.rb +374 -0
- data/lib/swagger_client/models/size.rb +194 -0
- data/lib/swagger_client/models/staff.rb +420 -0
- data/lib/swagger_client/models/staff_permission_group.rb +240 -0
- data/lib/swagger_client/models/stored_card_info.rb +183 -0
- data/lib/swagger_client/models/substitute_class_teacher_request.rb +244 -0
- data/lib/swagger_client/models/substitute_class_teacher_response.rb +184 -0
- data/lib/swagger_client/models/substitute_teacher_class.rb +375 -0
- data/lib/swagger_client/models/time_card_event.rb +204 -0
- data/lib/swagger_client/models/time_clock_report.rb +236 -0
- data/lib/swagger_client/models/unavailability.rb +214 -0
- data/lib/swagger_client/models/upcoming_autopay_event.rb +248 -0
- data/lib/swagger_client/models/update_appointment_request.rb +301 -0
- data/lib/swagger_client/models/update_appointment_response.rb +184 -0
- data/lib/swagger_client/models/update_client_request.rb +219 -0
- data/lib/swagger_client/models/update_client_response.rb +184 -0
- data/lib/swagger_client/models/update_client_service_request.rb +219 -0
- data/lib/swagger_client/models/update_client_service_response.rb +184 -0
- data/lib/swagger_client/models/update_client_visit_request.rb +239 -0
- data/lib/swagger_client/models/update_client_visit_response.rb +184 -0
- data/lib/swagger_client/models/update_contact_log_comment.rb +194 -0
- data/lib/swagger_client/models/update_contact_log_request.rb +268 -0
- data/lib/swagger_client/models/update_contact_log_type.rb +196 -0
- data/lib/swagger_client/models/upload_client_document_request.rb +204 -0
- data/lib/swagger_client/models/upload_client_document_response.rb +194 -0
- data/lib/swagger_client/models/upload_client_photo_request.rb +223 -0
- data/lib/swagger_client/models/upload_client_photo_response.rb +194 -0
- data/lib/swagger_client/models/user.rb +214 -0
- data/lib/swagger_client/models/visit.rb +413 -0
- data/lib/swagger_client/models/waitlist_entry.rb +264 -0
- data/lib/swagger_client/version.rb +15 -0
- data/mindbody-api-6.0.0.gem +0 -0
- data/mindbody-swagger.gem +0 -0
- data/spec/api/appointment_api_spec.rb +165 -0
- data/spec/api/class_api_spec.rb +202 -0
- data/spec/api/client_api_spec.rb +435 -0
- data/spec/api/enrollment_api_spec.rb +72 -0
- data/spec/api/payroll_api_spec.rb +74 -0
- data/spec/api/sale_api_spec.rb +222 -0
- data/spec/api/site_api_spec.rb +132 -0
- data/spec/api/staff_api_spec.rb +69 -0
- data/spec/api/user_token_api_spec.rb +62 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_appointment_request_spec.rb +135 -0
- data/spec/models/add_appointment_response_spec.rb +41 -0
- data/spec/models/add_arrival_request_spec.rb +47 -0
- data/spec/models/add_arrival_response_spec.rb +47 -0
- data/spec/models/add_client_request_spec.rb +363 -0
- data/spec/models/add_client_response_spec.rb +41 -0
- data/spec/models/add_client_to_class_request_spec.rb +95 -0
- data/spec/models/add_client_to_class_response_spec.rb +41 -0
- data/spec/models/add_client_to_class_visit_spec.rb +173 -0
- data/spec/models/add_client_to_enrollment_request_spec.rb +83 -0
- data/spec/models/add_contact_log_request_spec.rb +89 -0
- data/spec/models/add_contact_log_type_spec.rb +47 -0
- data/spec/models/amenity_spec.rb +47 -0
- data/spec/models/appointment_option_spec.rb +59 -0
- data/spec/models/appointment_spec.rb +145 -0
- data/spec/models/assigned_client_index_spec.rb +47 -0
- data/spec/models/autopay_schedule_spec.rb +53 -0
- data/spec/models/availability_spec.rb +83 -0
- data/spec/models/booking_window_spec.rb +59 -0
- data/spec/models/checkout_appointment_booking_request_spec.rb +77 -0
- data/spec/models/checkout_item_spec.rb +47 -0
- data/spec/models/checkout_item_wrapper_spec.rb +95 -0
- data/spec/models/checkout_payment_info_spec.rb +47 -0
- data/spec/models/checkout_shopping_cart_request_spec.rb +101 -0
- data/spec/models/class_description_spec.rb +125 -0
- data/spec/models/class_payroll_event_spec.rb +53 -0
- data/spec/models/class_schedule_spec.rb +167 -0
- data/spec/models/client_contract_spec.rb +93 -0
- data/spec/models/client_credit_card_spec.rb +95 -0
- data/spec/models/client_document_spec.rb +53 -0
- data/spec/models/client_index_spec.rb +75 -0
- data/spec/models/client_index_value_spec.rb +53 -0
- data/spec/models/client_membership_spec.rb +117 -0
- data/spec/models/client_purchase_record_spec.rb +89 -0
- data/spec/models/client_relationship_spec.rb +53 -0
- data/spec/models/client_service_spec.rb +105 -0
- data/spec/models/client_spec.rb +367 -0
- data/spec/models/color_spec.rb +47 -0
- data/spec/models/contact_log_comment_spec.rb +59 -0
- data/spec/models/contact_log_spec.rb +101 -0
- data/spec/models/contact_log_sub_type_spec.rb +41 -0
- data/spec/models/contact_log_type_spec.rb +47 -0
- data/spec/models/contract_item_spec.rb +77 -0
- data/spec/models/contract_spec.rb +239 -0
- data/spec/models/course_spec.rb +95 -0
- data/spec/models/credit_card_info_spec.rb +89 -0
- data/spec/models/cross_regional_client_association_spec.rb +53 -0
- data/spec/models/custom_client_field_spec.rb +53 -0
- data/spec/models/custom_client_field_value_spec.rb +59 -0
- data/spec/models/custom_payment_method_spec.rb +47 -0
- data/spec/models/formula_note_spec.rb +65 -0
- data/spec/models/get_activation_code_response_spec.rb +47 -0
- data/spec/models/get_active_client_memberships_request_spec.rb +59 -0
- data/spec/models/get_active_client_memberships_response_spec.rb +47 -0
- data/spec/models/get_active_session_times_request_spec.rb +75 -0
- data/spec/models/get_active_session_times_response_spec.rb +47 -0
- data/spec/models/get_appointment_options_response_spec.rb +41 -0
- data/spec/models/get_bookable_items_request_spec.rb +89 -0
- data/spec/models/get_bookable_items_response_spec.rb +47 -0
- data/spec/models/get_class_descriptions_request_spec.rb +83 -0
- data/spec/models/get_class_descriptions_response_spec.rb +47 -0
- data/spec/models/get_class_payroll_request_spec.rb +71 -0
- data/spec/models/get_class_payroll_response_spec.rb +47 -0
- data/spec/models/get_class_schedules_request_spec.rb +89 -0
- data/spec/models/get_class_schedules_response_spec.rb +47 -0
- data/spec/models/get_class_visits_request_spec.rb +47 -0
- data/spec/models/get_class_visits_response_spec.rb +41 -0
- data/spec/models/get_classes_request_spec.rb +125 -0
- data/spec/models/get_classes_response_spec.rb +47 -0
- data/spec/models/get_client_account_balances_request_spec.rb +65 -0
- data/spec/models/get_client_account_balances_response_spec.rb +47 -0
- data/spec/models/get_client_contracts_request_spec.rb +65 -0
- data/spec/models/get_client_contracts_response_spec.rb +47 -0
- data/spec/models/get_client_formula_notes_request_spec.rb +59 -0
- data/spec/models/get_client_formula_notes_response_spec.rb +47 -0
- data/spec/models/get_client_indexes_request_spec.rb +41 -0
- data/spec/models/get_client_indexes_response_spec.rb +41 -0
- data/spec/models/get_client_purchases_request_spec.rb +71 -0
- data/spec/models/get_client_purchases_response_spec.rb +47 -0
- data/spec/models/get_client_referral_types_request_spec.rb +41 -0
- data/spec/models/get_client_referral_types_response_spec.rb +41 -0
- data/spec/models/get_client_services_request_spec.rb +113 -0
- data/spec/models/get_client_services_response_spec.rb +47 -0
- data/spec/models/get_client_visits_request_spec.rb +83 -0
- data/spec/models/get_client_visits_response_spec.rb +47 -0
- data/spec/models/get_clients_request_spec.rb +71 -0
- data/spec/models/get_clients_response_spec.rb +47 -0
- data/spec/models/get_contact_logs_request_spec.rb +89 -0
- data/spec/models/get_contact_logs_response_spec.rb +47 -0
- data/spec/models/get_contracts_request_spec.rb +71 -0
- data/spec/models/get_contracts_response_spec.rb +47 -0
- data/spec/models/get_cross_regional_client_associations_request_spec.rb +59 -0
- data/spec/models/get_cross_regional_client_associations_response_spec.rb +47 -0
- data/spec/models/get_custom_client_fields_request_spec.rb +47 -0
- data/spec/models/get_custom_client_fields_response_spec.rb +47 -0
- data/spec/models/get_custom_payment_methods_request_spec.rb +47 -0
- data/spec/models/get_custom_payment_methods_response_spec.rb +47 -0
- data/spec/models/get_enrollments_request_spec.rb +89 -0
- data/spec/models/get_enrollments_response_spec.rb +47 -0
- data/spec/models/get_gift_card_response_spec.rb +47 -0
- data/spec/models/get_gift_cards_request_spec.rb +65 -0
- data/spec/models/get_locations_request_spec.rb +47 -0
- data/spec/models/get_locations_response_spec.rb +47 -0
- data/spec/models/get_packages_request_spec.rb +59 -0
- data/spec/models/get_packages_response_spec.rb +47 -0
- data/spec/models/get_products_request_spec.rb +83 -0
- data/spec/models/get_products_response_spec.rb +47 -0
- data/spec/models/get_programs_request_spec.rb +63 -0
- data/spec/models/get_programs_response_spec.rb +47 -0
- data/spec/models/get_required_client_fields_response_spec.rb +41 -0
- data/spec/models/get_resources_request_spec.rb +71 -0
- data/spec/models/get_resources_response_spec.rb +47 -0
- data/spec/models/get_sales_request_spec.rb +35 -0
- data/spec/models/get_sales_response_spec.rb +47 -0
- data/spec/models/get_schedule_items_request_spec.rb +77 -0
- data/spec/models/get_schedule_items_response_spec.rb +47 -0
- data/spec/models/get_services_request_spec.rb +101 -0
- data/spec/models/get_services_response_spec.rb +47 -0
- data/spec/models/get_session_types_request_spec.rb +59 -0
- data/spec/models/get_session_types_response_spec.rb +47 -0
- data/spec/models/get_sites_request_spec.rb +53 -0
- data/spec/models/get_sites_response_spec.rb +47 -0
- data/spec/models/get_staff_appointments_request_spec.rb +83 -0
- data/spec/models/get_staff_appointments_response_spec.rb +47 -0
- data/spec/models/get_staff_permissions_request_spec.rb +41 -0
- data/spec/models/get_staff_permissions_response_spec.rb +41 -0
- data/spec/models/get_staff_request_spec.rb +77 -0
- data/spec/models/get_staff_response_spec.rb +47 -0
- data/spec/models/get_time_clock_request_spec.rb +71 -0
- data/spec/models/get_time_clock_response_spec.rb +47 -0
- data/spec/models/get_waitlist_entries_request_spec.rb +77 -0
- data/spec/models/get_waitlist_entries_response_spec.rb +47 -0
- data/spec/models/gift_card_layout_spec.rb +47 -0
- data/spec/models/gift_card_spec.rb +107 -0
- data/spec/models/issue_request_spec.rb +47 -0
- data/spec/models/issue_response_spec.rb +53 -0
- data/spec/models/level_spec.rb +53 -0
- data/spec/models/liability_spec.rb +53 -0
- data/spec/models/location_spec.rb +185 -0
- data/spec/models/membership_type_restriction_spec.rb +47 -0
- data/spec/models/model_class_spec.rb +195 -0
- data/spec/models/package_spec.rb +71 -0
- data/spec/models/pagination_response_spec.rb +59 -0
- data/spec/models/product_spec.rb +101 -0
- data/spec/models/program_spec.rb +63 -0
- data/spec/models/prospect_stage_spec.rb +53 -0
- data/spec/models/purchase_contract_request_spec.rb +101 -0
- data/spec/models/purchase_contract_response_spec.rb +59 -0
- data/spec/models/purchase_gift_card_request_spec.rb +107 -0
- data/spec/models/purchase_gift_card_response_spec.rb +95 -0
- data/spec/models/purchased_item_spec.rb +47 -0
- data/spec/models/relationship_spec.rb +53 -0
- data/spec/models/remove_client_from_class_request_spec.rb +65 -0
- data/spec/models/remove_client_from_class_response_spec.rb +41 -0
- data/spec/models/remove_from_waitlist_request_spec.rb +41 -0
- data/spec/models/remove_from_waitlist_response_spec.rb +35 -0
- data/spec/models/resource_spec.rb +47 -0
- data/spec/models/sale_payment_spec.rb +65 -0
- data/spec/models/sale_spec.rb +83 -0
- data/spec/models/sales_rep_spec.rb +65 -0
- data/spec/models/send_password_reset_email_request_spec.rb +53 -0
- data/spec/models/service_spec.rb +89 -0
- data/spec/models/session_type_spec.rb +99 -0
- data/spec/models/site_spec.rb +155 -0
- data/spec/models/size_spec.rb +47 -0
- data/spec/models/staff_permission_group_spec.rb +67 -0
- data/spec/models/staff_spec.rb +179 -0
- data/spec/models/stored_card_info_spec.rb +41 -0
- data/spec/models/substitute_class_teacher_request_spec.rb +71 -0
- data/spec/models/substitute_class_teacher_response_spec.rb +41 -0
- data/spec/models/substitute_teacher_class_spec.rb +155 -0
- data/spec/models/time_card_event_spec.rb +53 -0
- data/spec/models/time_clock_report_spec.rb +71 -0
- data/spec/models/unavailability_spec.rb +59 -0
- data/spec/models/upcoming_autopay_event_spec.rb +63 -0
- data/spec/models/update_appointment_request_spec.rb +107 -0
- data/spec/models/update_appointment_response_spec.rb +41 -0
- data/spec/models/update_client_request_spec.rb +59 -0
- data/spec/models/update_client_response_spec.rb +41 -0
- data/spec/models/update_client_service_request_spec.rb +59 -0
- data/spec/models/update_client_service_response_spec.rb +41 -0
- data/spec/models/update_client_visit_request_spec.rb +71 -0
- data/spec/models/update_client_visit_response_spec.rb +41 -0
- data/spec/models/update_contact_log_comment_spec.rb +47 -0
- data/spec/models/update_contact_log_request_spec.rb +89 -0
- data/spec/models/update_contact_log_type_spec.rb +47 -0
- data/spec/models/upload_client_document_request_spec.rb +47 -0
- data/spec/models/upload_client_document_response_spec.rb +47 -0
- data/spec/models/upload_client_photo_request_spec.rb +47 -0
- data/spec/models/upload_client_photo_response_spec.rb +47 -0
- data/spec/models/user_spec.rb +59 -0
- data/spec/models/visit_spec.rb +155 -0
- data/spec/models/waitlist_entry_spec.rb +89 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger_client-1.0.0.gem +0 -0
- data/swagger_client.gemspec +45 -0
- metadata +1050 -0
@@ -0,0 +1,570 @@
|
|
1
|
+
=begin
|
2
|
+
#MINDBODY Public API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: v6
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.6
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module SwaggerClient
|
16
|
+
class AppointmentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Book a new appointment.
|
23
|
+
# To book an appointment, you must use a location ID, staff ID, client ID, session type ID, and the `StartDateTime` of the appointment. You can get most of this information using `GET BookableItems`.
|
24
|
+
# @param request
|
25
|
+
# @param site_id ID of the site from which to pull data.
|
26
|
+
# @param version
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
29
|
+
# @return [AddAppointmentResponse]
|
30
|
+
def appointment_add_apppointment(request, site_id, version, opts = {})
|
31
|
+
data, _status_code, _headers = appointment_add_apppointment_with_http_info(request, site_id, version, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Book a new appointment.
|
36
|
+
# To book an appointment, you must use a location ID, staff ID, client ID, session type ID, and the `StartDateTime` of the appointment. You can get most of this information using `GET BookableItems`.
|
37
|
+
# @param request
|
38
|
+
# @param site_id ID of the site from which to pull data.
|
39
|
+
# @param version
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :authorization A staff user authorization token.
|
42
|
+
# @return [Array<(AddAppointmentResponse, Fixnum, Hash)>] AddAppointmentResponse data, response status code and response headers
|
43
|
+
def appointment_add_apppointment_with_http_info(request, site_id, version, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_add_apppointment ...'
|
46
|
+
end
|
47
|
+
# verify the required parameter 'request' is set
|
48
|
+
if @api_client.config.client_side_validation && request.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling AppointmentApi.appointment_add_apppointment"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'site_id' is set
|
52
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_add_apppointment"
|
54
|
+
end
|
55
|
+
# verify the required parameter 'version' is set
|
56
|
+
if @api_client.config.client_side_validation && version.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_add_apppointment"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/public/v{version}/appointment/addappointment'.sub('{' + 'version' + '}', version.to_s)
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = {}
|
64
|
+
|
65
|
+
# header parameters
|
66
|
+
header_params = {}
|
67
|
+
# HTTP header 'Accept' (if needed)
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
71
|
+
header_params[:'siteId'] = site_id
|
72
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
73
|
+
|
74
|
+
# form parameters
|
75
|
+
form_params = {}
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
post_body = @api_client.object_to_http_body(request)
|
79
|
+
auth_names = []
|
80
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => 'AddAppointmentResponse')
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_add_apppointment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
# Get active session times.
|
93
|
+
# Returns a list of the times that can be booked for a given program schedule type. `ActiveSessionTimes` represent the scheduling increments that can be booked during the active business hours for services.
|
94
|
+
# @param site_id ID of the site from which to pull data.
|
95
|
+
# @param version
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
98
|
+
# @option opts [DateTime] :request_end_time Filters results to times that end on or before this time on the current date. Any date provided is ignored.. <br />Default: **23:59:59**
|
99
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
100
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
101
|
+
# @option opts [String] :request_schedule_type Filters on the provided the schedule type. Either `SessionTypeIds` or `ScheduleType` must be provided.
|
102
|
+
# @option opts [Array<Integer>] :request_session_type_ids Filters on the provided session type IDs. Either `SessionTypeIds` or `ScheduleType` must be provided.
|
103
|
+
# @option opts [DateTime] :request_start_time Filters results to times that start on or after this time on the current date. Any date provided is ignored. <br />Default: **00:00:00**
|
104
|
+
# @return [GetActiveSessionTimesResponse]
|
105
|
+
def appointment_get_active_session_times(site_id, version, opts = {})
|
106
|
+
data, _status_code, _headers = appointment_get_active_session_times_with_http_info(site_id, version, opts)
|
107
|
+
data
|
108
|
+
end
|
109
|
+
|
110
|
+
# Get active session times.
|
111
|
+
# Returns a list of the times that can be booked for a given program schedule type. `ActiveSessionTimes` represent the scheduling increments that can be booked during the active business hours for services.
|
112
|
+
# @param site_id ID of the site from which to pull data.
|
113
|
+
# @param version
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [String] :authorization A staff user authorization token.
|
116
|
+
# @option opts [DateTime] :request_end_time Filters results to times that end on or before this time on the current date. Any date provided is ignored.. <br />Default: **23:59:59**
|
117
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
118
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
119
|
+
# @option opts [String] :request_schedule_type Filters on the provided the schedule type. Either `SessionTypeIds` or `ScheduleType` must be provided.
|
120
|
+
# @option opts [Array<Integer>] :request_session_type_ids Filters on the provided session type IDs. Either `SessionTypeIds` or `ScheduleType` must be provided.
|
121
|
+
# @option opts [DateTime] :request_start_time Filters results to times that start on or after this time on the current date. Any date provided is ignored. <br />Default: **00:00:00**
|
122
|
+
# @return [Array<(GetActiveSessionTimesResponse, Fixnum, Hash)>] GetActiveSessionTimesResponse data, response status code and response headers
|
123
|
+
def appointment_get_active_session_times_with_http_info(site_id, version, opts = {})
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_get_active_session_times ...'
|
126
|
+
end
|
127
|
+
# verify the required parameter 'site_id' is set
|
128
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
129
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_get_active_session_times"
|
130
|
+
end
|
131
|
+
# verify the required parameter 'version' is set
|
132
|
+
if @api_client.config.client_side_validation && version.nil?
|
133
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_get_active_session_times"
|
134
|
+
end
|
135
|
+
if @api_client.config.client_side_validation && opts[:'request_schedule_type'] && !['All', 'Class', 'Enrollment', 'Appointment', 'Resource', 'Media', 'Arrival'].include?(opts[:'request_schedule_type'])
|
136
|
+
fail ArgumentError, 'invalid value for "request_schedule_type", must be one of All, Class, Enrollment, Appointment, Resource, Media, Arrival'
|
137
|
+
end
|
138
|
+
# resource path
|
139
|
+
local_var_path = '/public/v{version}/appointment/activesessiontimes'.sub('{' + 'version' + '}', version.to_s)
|
140
|
+
|
141
|
+
# query parameters
|
142
|
+
query_params = {}
|
143
|
+
query_params[:'request.endTime'] = opts[:'request_end_time'] if !opts[:'request_end_time'].nil?
|
144
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
145
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
146
|
+
query_params[:'request.scheduleType'] = opts[:'request_schedule_type'] if !opts[:'request_schedule_type'].nil?
|
147
|
+
query_params[:'request.sessionTypeIds'] = @api_client.build_collection_param(opts[:'request_session_type_ids'], :multi) if !opts[:'request_session_type_ids'].nil?
|
148
|
+
query_params[:'request.startTime'] = opts[:'request_start_time'] if !opts[:'request_start_time'].nil?
|
149
|
+
|
150
|
+
# header parameters
|
151
|
+
header_params = {}
|
152
|
+
# HTTP header 'Accept' (if needed)
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
154
|
+
header_params[:'siteId'] = site_id
|
155
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
156
|
+
|
157
|
+
# form parameters
|
158
|
+
form_params = {}
|
159
|
+
|
160
|
+
# http body (model)
|
161
|
+
post_body = nil
|
162
|
+
auth_names = []
|
163
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
164
|
+
:header_params => header_params,
|
165
|
+
:query_params => query_params,
|
166
|
+
:form_params => form_params,
|
167
|
+
:body => post_body,
|
168
|
+
:auth_names => auth_names,
|
169
|
+
:return_type => 'GetActiveSessionTimesResponse')
|
170
|
+
if @api_client.config.debugging
|
171
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_get_active_session_times\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
172
|
+
end
|
173
|
+
return data, status_code, headers
|
174
|
+
end
|
175
|
+
# Get appointment-related settings.
|
176
|
+
# This endpoint has no query parameters.
|
177
|
+
# @param site_id ID of the site from which to pull data.
|
178
|
+
# @param version
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
181
|
+
# @return [GetAppointmentOptionsResponse]
|
182
|
+
def appointment_get_appointment_options(site_id, version, opts = {})
|
183
|
+
data, _status_code, _headers = appointment_get_appointment_options_with_http_info(site_id, version, opts)
|
184
|
+
data
|
185
|
+
end
|
186
|
+
|
187
|
+
# Get appointment-related settings.
|
188
|
+
# This endpoint has no query parameters.
|
189
|
+
# @param site_id ID of the site from which to pull data.
|
190
|
+
# @param version
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @option opts [String] :authorization A staff user authorization token.
|
193
|
+
# @return [Array<(GetAppointmentOptionsResponse, Fixnum, Hash)>] GetAppointmentOptionsResponse data, response status code and response headers
|
194
|
+
def appointment_get_appointment_options_with_http_info(site_id, version, opts = {})
|
195
|
+
if @api_client.config.debugging
|
196
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_get_appointment_options ...'
|
197
|
+
end
|
198
|
+
# verify the required parameter 'site_id' is set
|
199
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
200
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_get_appointment_options"
|
201
|
+
end
|
202
|
+
# verify the required parameter 'version' is set
|
203
|
+
if @api_client.config.client_side_validation && version.nil?
|
204
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_get_appointment_options"
|
205
|
+
end
|
206
|
+
# resource path
|
207
|
+
local_var_path = '/public/v{version}/appointment/appointmentoptions'.sub('{' + 'version' + '}', version.to_s)
|
208
|
+
|
209
|
+
# query parameters
|
210
|
+
query_params = {}
|
211
|
+
|
212
|
+
# header parameters
|
213
|
+
header_params = {}
|
214
|
+
# HTTP header 'Accept' (if needed)
|
215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
216
|
+
header_params[:'siteId'] = site_id
|
217
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
218
|
+
|
219
|
+
# form parameters
|
220
|
+
form_params = {}
|
221
|
+
|
222
|
+
# http body (model)
|
223
|
+
post_body = nil
|
224
|
+
auth_names = []
|
225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
226
|
+
:header_params => header_params,
|
227
|
+
:query_params => query_params,
|
228
|
+
:form_params => form_params,
|
229
|
+
:body => post_body,
|
230
|
+
:auth_names => auth_names,
|
231
|
+
:return_type => 'GetAppointmentOptionsResponse')
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_get_appointment_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
|
+
end
|
235
|
+
return data, status_code, headers
|
236
|
+
end
|
237
|
+
# Get staff appointment availability.
|
238
|
+
# Returns a list of availabilities with the information needed to book appointments. Availabilities include information such as the location and its amenities, staff members, programs, and session types.
|
239
|
+
# @param request_session_type_ids A list of the requested session type IDs.
|
240
|
+
# @param site_id ID of the site from which to pull data.
|
241
|
+
# @param version
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
244
|
+
# @option opts [Integer] :request_appointment_id If provided, filters out the appointment with this ID.
|
245
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **StartDate**
|
246
|
+
# @option opts [BOOLEAN] :request_ignore_default_session_length When `true`, availabilities that are non-default return, for example, a 30-minute availability with a 60-minute default session length.<br /> When `false`, only availabilities that have the default session length return.
|
247
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
248
|
+
# @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
|
249
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
250
|
+
# @option opts [Array<Integer>] :request_staff_ids A list of the requested staff IDs.
|
251
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. <br />Default: **today’s date**
|
252
|
+
# @return [GetBookableItemsResponse]
|
253
|
+
def appointment_get_bookable_items(request_session_type_ids, site_id, version, opts = {})
|
254
|
+
data, _status_code, _headers = appointment_get_bookable_items_with_http_info(request_session_type_ids, site_id, version, opts)
|
255
|
+
data
|
256
|
+
end
|
257
|
+
|
258
|
+
# Get staff appointment availability.
|
259
|
+
# Returns a list of availabilities with the information needed to book appointments. Availabilities include information such as the location and its amenities, staff members, programs, and session types.
|
260
|
+
# @param request_session_type_ids A list of the requested session type IDs.
|
261
|
+
# @param site_id ID of the site from which to pull data.
|
262
|
+
# @param version
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @option opts [String] :authorization A staff user authorization token.
|
265
|
+
# @option opts [Integer] :request_appointment_id If provided, filters out the appointment with this ID.
|
266
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **StartDate**
|
267
|
+
# @option opts [BOOLEAN] :request_ignore_default_session_length When `true`, availabilities that are non-default return, for example, a 30-minute availability with a 60-minute default session length.<br /> When `false`, only availabilities that have the default session length return.
|
268
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
269
|
+
# @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
|
270
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
271
|
+
# @option opts [Array<Integer>] :request_staff_ids A list of the requested staff IDs.
|
272
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. <br />Default: **today’s date**
|
273
|
+
# @return [Array<(GetBookableItemsResponse, Fixnum, Hash)>] GetBookableItemsResponse data, response status code and response headers
|
274
|
+
def appointment_get_bookable_items_with_http_info(request_session_type_ids, site_id, version, opts = {})
|
275
|
+
if @api_client.config.debugging
|
276
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_get_bookable_items ...'
|
277
|
+
end
|
278
|
+
# verify the required parameter 'request_session_type_ids' is set
|
279
|
+
if @api_client.config.client_side_validation && request_session_type_ids.nil?
|
280
|
+
fail ArgumentError, "Missing the required parameter 'request_session_type_ids' when calling AppointmentApi.appointment_get_bookable_items"
|
281
|
+
end
|
282
|
+
# verify the required parameter 'site_id' is set
|
283
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
284
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_get_bookable_items"
|
285
|
+
end
|
286
|
+
# verify the required parameter 'version' is set
|
287
|
+
if @api_client.config.client_side_validation && version.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_get_bookable_items"
|
289
|
+
end
|
290
|
+
# resource path
|
291
|
+
local_var_path = '/public/v{version}/appointment/bookableitems'.sub('{' + 'version' + '}', version.to_s)
|
292
|
+
|
293
|
+
# query parameters
|
294
|
+
query_params = {}
|
295
|
+
query_params[:'request.sessionTypeIds'] = @api_client.build_collection_param(request_session_type_ids, :multi)
|
296
|
+
query_params[:'request.appointmentId'] = opts[:'request_appointment_id'] if !opts[:'request_appointment_id'].nil?
|
297
|
+
query_params[:'request.endDate'] = opts[:'request_end_date'] if !opts[:'request_end_date'].nil?
|
298
|
+
query_params[:'request.ignoreDefaultSessionLength'] = opts[:'request_ignore_default_session_length'] if !opts[:'request_ignore_default_session_length'].nil?
|
299
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
300
|
+
query_params[:'request.locationIds'] = @api_client.build_collection_param(opts[:'request_location_ids'], :multi) if !opts[:'request_location_ids'].nil?
|
301
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
302
|
+
query_params[:'request.staffIds'] = @api_client.build_collection_param(opts[:'request_staff_ids'], :multi) if !opts[:'request_staff_ids'].nil?
|
303
|
+
query_params[:'request.startDate'] = opts[:'request_start_date'] if !opts[:'request_start_date'].nil?
|
304
|
+
|
305
|
+
# header parameters
|
306
|
+
header_params = {}
|
307
|
+
# HTTP header 'Accept' (if needed)
|
308
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
309
|
+
header_params[:'siteId'] = site_id
|
310
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
311
|
+
|
312
|
+
# form parameters
|
313
|
+
form_params = {}
|
314
|
+
|
315
|
+
# http body (model)
|
316
|
+
post_body = nil
|
317
|
+
auth_names = []
|
318
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
319
|
+
:header_params => header_params,
|
320
|
+
:query_params => query_params,
|
321
|
+
:form_params => form_params,
|
322
|
+
:body => post_body,
|
323
|
+
:auth_names => auth_names,
|
324
|
+
:return_type => 'GetBookableItemsResponse')
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_get_bookable_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
|
+
end
|
328
|
+
return data, status_code, headers
|
329
|
+
end
|
330
|
+
# Get appointment schedule.
|
331
|
+
# Returns a list of schedule items, including appointments, availabilities, and unavailabilities. Unavailabilities are the times at which appointments cannot be booked, for example, on holidays or after hours when the business is closed.
|
332
|
+
# @param site_id ID of the site from which to pull data.
|
333
|
+
# @param version
|
334
|
+
# @param [Hash] opts the optional parameters
|
335
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
336
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **today’s date**
|
337
|
+
# @option opts [BOOLEAN] :request_ignore_prep_finish_times When `true`, appointment preparation and finish unavailabilities are not returned. <br />Default: **false**
|
338
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
339
|
+
# @option opts [Array<Integer>] :request_location_ids A list of requested location IDs.
|
340
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
341
|
+
# @option opts [Array<Integer>] :request_staff_ids A list of requested staff IDs.
|
342
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. <br />Default: **today’s date**
|
343
|
+
# @return [GetScheduleItemsResponse]
|
344
|
+
def appointment_get_schedule_items(site_id, version, opts = {})
|
345
|
+
data, _status_code, _headers = appointment_get_schedule_items_with_http_info(site_id, version, opts)
|
346
|
+
data
|
347
|
+
end
|
348
|
+
|
349
|
+
# Get appointment schedule.
|
350
|
+
# Returns a list of schedule items, including appointments, availabilities, and unavailabilities. Unavailabilities are the times at which appointments cannot be booked, for example, on holidays or after hours when the business is closed.
|
351
|
+
# @param site_id ID of the site from which to pull data.
|
352
|
+
# @param version
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @option opts [String] :authorization A staff user authorization token.
|
355
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **today’s date**
|
356
|
+
# @option opts [BOOLEAN] :request_ignore_prep_finish_times When `true`, appointment preparation and finish unavailabilities are not returned. <br />Default: **false**
|
357
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
358
|
+
# @option opts [Array<Integer>] :request_location_ids A list of requested location IDs.
|
359
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
360
|
+
# @option opts [Array<Integer>] :request_staff_ids A list of requested staff IDs.
|
361
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. <br />Default: **today’s date**
|
362
|
+
# @return [Array<(GetScheduleItemsResponse, Fixnum, Hash)>] GetScheduleItemsResponse data, response status code and response headers
|
363
|
+
def appointment_get_schedule_items_with_http_info(site_id, version, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_get_schedule_items ...'
|
366
|
+
end
|
367
|
+
# verify the required parameter 'site_id' is set
|
368
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_get_schedule_items"
|
370
|
+
end
|
371
|
+
# verify the required parameter 'version' is set
|
372
|
+
if @api_client.config.client_side_validation && version.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_get_schedule_items"
|
374
|
+
end
|
375
|
+
# resource path
|
376
|
+
local_var_path = '/public/v{version}/appointment/scheduleitems'.sub('{' + 'version' + '}', version.to_s)
|
377
|
+
|
378
|
+
# query parameters
|
379
|
+
query_params = {}
|
380
|
+
query_params[:'request.endDate'] = opts[:'request_end_date'] if !opts[:'request_end_date'].nil?
|
381
|
+
query_params[:'request.ignorePrepFinishTimes'] = opts[:'request_ignore_prep_finish_times'] if !opts[:'request_ignore_prep_finish_times'].nil?
|
382
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
383
|
+
query_params[:'request.locationIds'] = @api_client.build_collection_param(opts[:'request_location_ids'], :multi) if !opts[:'request_location_ids'].nil?
|
384
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
385
|
+
query_params[:'request.staffIds'] = @api_client.build_collection_param(opts[:'request_staff_ids'], :multi) if !opts[:'request_staff_ids'].nil?
|
386
|
+
query_params[:'request.startDate'] = opts[:'request_start_date'] if !opts[:'request_start_date'].nil?
|
387
|
+
|
388
|
+
# header parameters
|
389
|
+
header_params = {}
|
390
|
+
# HTTP header 'Accept' (if needed)
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
392
|
+
header_params[:'siteId'] = site_id
|
393
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
394
|
+
|
395
|
+
# form parameters
|
396
|
+
form_params = {}
|
397
|
+
|
398
|
+
# http body (model)
|
399
|
+
post_body = nil
|
400
|
+
auth_names = []
|
401
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
402
|
+
:header_params => header_params,
|
403
|
+
:query_params => query_params,
|
404
|
+
:form_params => form_params,
|
405
|
+
:body => post_body,
|
406
|
+
:auth_names => auth_names,
|
407
|
+
:return_type => 'GetScheduleItemsResponse')
|
408
|
+
if @api_client.config.debugging
|
409
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_get_schedule_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
410
|
+
end
|
411
|
+
return data, status_code, headers
|
412
|
+
end
|
413
|
+
# Get appointments grouped by staff member.
|
414
|
+
# Returns a list of appointments by staff member.
|
415
|
+
# @param site_id ID of the site from which to pull data.
|
416
|
+
# @param version
|
417
|
+
# @param [Hash] opts the optional parameters
|
418
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
419
|
+
# @option opts [Array<Integer>] :request_appointment_ids A list of the requested appointment IDs.
|
420
|
+
# @option opts [Array<String>] :request_client_ids List of client IDs to be returned.
|
421
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **StartDate**
|
422
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
423
|
+
# @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
|
424
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
425
|
+
# @option opts [Array<Integer>] :request_staff_ids List of staff IDs to be returned. Use a value of zero to return all staff appointments.
|
426
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. If omitted, the default is used. <br />Default: **today’s date**
|
427
|
+
# @return [GetStaffAppointmentsResponse]
|
428
|
+
def appointment_get_staff_appointments(site_id, version, opts = {})
|
429
|
+
data, _status_code, _headers = appointment_get_staff_appointments_with_http_info(site_id, version, opts)
|
430
|
+
data
|
431
|
+
end
|
432
|
+
|
433
|
+
# Get appointments grouped by staff member.
|
434
|
+
# Returns a list of appointments by staff member.
|
435
|
+
# @param site_id ID of the site from which to pull data.
|
436
|
+
# @param version
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @option opts [String] :authorization A staff user authorization token.
|
439
|
+
# @option opts [Array<Integer>] :request_appointment_ids A list of the requested appointment IDs.
|
440
|
+
# @option opts [Array<String>] :request_client_ids List of client IDs to be returned.
|
441
|
+
# @option opts [DateTime] :request_end_date The end date of the requested date range. <br />Default: **StartDate**
|
442
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
443
|
+
# @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
|
444
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
445
|
+
# @option opts [Array<Integer>] :request_staff_ids List of staff IDs to be returned. Use a value of zero to return all staff appointments.
|
446
|
+
# @option opts [DateTime] :request_start_date The start date of the requested date range. If omitted, the default is used. <br />Default: **today’s date**
|
447
|
+
# @return [Array<(GetStaffAppointmentsResponse, Fixnum, Hash)>] GetStaffAppointmentsResponse data, response status code and response headers
|
448
|
+
def appointment_get_staff_appointments_with_http_info(site_id, version, opts = {})
|
449
|
+
if @api_client.config.debugging
|
450
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_get_staff_appointments ...'
|
451
|
+
end
|
452
|
+
# verify the required parameter 'site_id' is set
|
453
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
454
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_get_staff_appointments"
|
455
|
+
end
|
456
|
+
# verify the required parameter 'version' is set
|
457
|
+
if @api_client.config.client_side_validation && version.nil?
|
458
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_get_staff_appointments"
|
459
|
+
end
|
460
|
+
# resource path
|
461
|
+
local_var_path = '/public/v{version}/appointment/staffappointments'.sub('{' + 'version' + '}', version.to_s)
|
462
|
+
|
463
|
+
# query parameters
|
464
|
+
query_params = {}
|
465
|
+
query_params[:'request.appointmentIds'] = @api_client.build_collection_param(opts[:'request_appointment_ids'], :multi) if !opts[:'request_appointment_ids'].nil?
|
466
|
+
query_params[:'request.clientIds'] = @api_client.build_collection_param(opts[:'request_client_ids'], :multi) if !opts[:'request_client_ids'].nil?
|
467
|
+
query_params[:'request.endDate'] = opts[:'request_end_date'] if !opts[:'request_end_date'].nil?
|
468
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
469
|
+
query_params[:'request.locationIds'] = @api_client.build_collection_param(opts[:'request_location_ids'], :multi) if !opts[:'request_location_ids'].nil?
|
470
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
471
|
+
query_params[:'request.staffIds'] = @api_client.build_collection_param(opts[:'request_staff_ids'], :multi) if !opts[:'request_staff_ids'].nil?
|
472
|
+
query_params[:'request.startDate'] = opts[:'request_start_date'] if !opts[:'request_start_date'].nil?
|
473
|
+
|
474
|
+
# header parameters
|
475
|
+
header_params = {}
|
476
|
+
# HTTP header 'Accept' (if needed)
|
477
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
478
|
+
header_params[:'siteId'] = site_id
|
479
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
480
|
+
|
481
|
+
# form parameters
|
482
|
+
form_params = {}
|
483
|
+
|
484
|
+
# http body (model)
|
485
|
+
post_body = nil
|
486
|
+
auth_names = []
|
487
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
488
|
+
:header_params => header_params,
|
489
|
+
:query_params => query_params,
|
490
|
+
:form_params => form_params,
|
491
|
+
:body => post_body,
|
492
|
+
:auth_names => auth_names,
|
493
|
+
:return_type => 'GetStaffAppointmentsResponse')
|
494
|
+
if @api_client.config.debugging
|
495
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_get_staff_appointments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
496
|
+
end
|
497
|
+
return data, status_code, headers
|
498
|
+
end
|
499
|
+
# Update an existing appointment.
|
500
|
+
# To update the information for a specific appointment, you must have a staff user token with the proper permissions. Note that you can only update the appointment’s `StartDateTime`, `EndDateTime`, `StaffId`, `Notes`, and `SessionTypeId`.
|
501
|
+
# @param request
|
502
|
+
# @param site_id ID of the site from which to pull data.
|
503
|
+
# @param version
|
504
|
+
# @param [Hash] opts the optional parameters
|
505
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
506
|
+
# @return [UpdateAppointmentResponse]
|
507
|
+
def appointment_update_apppointment(request, site_id, version, opts = {})
|
508
|
+
data, _status_code, _headers = appointment_update_apppointment_with_http_info(request, site_id, version, opts)
|
509
|
+
data
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update an existing appointment.
|
513
|
+
# To update the information for a specific appointment, you must have a staff user token with the proper permissions. Note that you can only update the appointment’s `StartDateTime`, `EndDateTime`, `StaffId`, `Notes`, and `SessionTypeId`.
|
514
|
+
# @param request
|
515
|
+
# @param site_id ID of the site from which to pull data.
|
516
|
+
# @param version
|
517
|
+
# @param [Hash] opts the optional parameters
|
518
|
+
# @option opts [String] :authorization A staff user authorization token.
|
519
|
+
# @return [Array<(UpdateAppointmentResponse, Fixnum, Hash)>] UpdateAppointmentResponse data, response status code and response headers
|
520
|
+
def appointment_update_apppointment_with_http_info(request, site_id, version, opts = {})
|
521
|
+
if @api_client.config.debugging
|
522
|
+
@api_client.config.logger.debug 'Calling API: AppointmentApi.appointment_update_apppointment ...'
|
523
|
+
end
|
524
|
+
# verify the required parameter 'request' is set
|
525
|
+
if @api_client.config.client_side_validation && request.nil?
|
526
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling AppointmentApi.appointment_update_apppointment"
|
527
|
+
end
|
528
|
+
# verify the required parameter 'site_id' is set
|
529
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
530
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling AppointmentApi.appointment_update_apppointment"
|
531
|
+
end
|
532
|
+
# verify the required parameter 'version' is set
|
533
|
+
if @api_client.config.client_side_validation && version.nil?
|
534
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling AppointmentApi.appointment_update_apppointment"
|
535
|
+
end
|
536
|
+
# resource path
|
537
|
+
local_var_path = '/public/v{version}/appointment/updateappointment'.sub('{' + 'version' + '}', version.to_s)
|
538
|
+
|
539
|
+
# query parameters
|
540
|
+
query_params = {}
|
541
|
+
|
542
|
+
# header parameters
|
543
|
+
header_params = {}
|
544
|
+
# HTTP header 'Accept' (if needed)
|
545
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
546
|
+
# HTTP header 'Content-Type'
|
547
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
548
|
+
header_params[:'siteId'] = site_id
|
549
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
550
|
+
|
551
|
+
# form parameters
|
552
|
+
form_params = {}
|
553
|
+
|
554
|
+
# http body (model)
|
555
|
+
post_body = @api_client.object_to_http_body(request)
|
556
|
+
auth_names = []
|
557
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
558
|
+
:header_params => header_params,
|
559
|
+
:query_params => query_params,
|
560
|
+
:form_params => form_params,
|
561
|
+
:body => post_body,
|
562
|
+
:auth_names => auth_names,
|
563
|
+
:return_type => 'UpdateAppointmentResponse')
|
564
|
+
if @api_client.config.debugging
|
565
|
+
@api_client.config.logger.debug "API called: AppointmentApi#appointment_update_apppointment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
566
|
+
end
|
567
|
+
return data, status_code, headers
|
568
|
+
end
|
569
|
+
end
|
570
|
+
end
|