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,727 @@
|
|
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 ClassApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Book a client into a class.
|
23
|
+
# This endpoint adds a client to a class or to a class waiting list. It is helpful to use this endpoint in the following situations: * Use after calling `GET Clients` and `GET Classes` so that you are sure which client to book in which class. * If adding a client to a class from a waiting list, use this call after you call `GET WaitlistEntries` and determine the ID of the waiting list from which you are moving the client. * If adding a client to a class and using a pricing option that the client has already purchased, use this call after you call `GET ClientServices` to determine the ID of the pricing option that the client wants to use. If you add a client to a class and the client purchases a new pricing option, use `GET Services`, `GET Classes`, and then `POST CheckoutShoppingCart` in place of this call. This endpoint also supports cross-regional class bookings. If you want to perform a cross-regional class booking, set `CrossRegionalBooking` to `true`. This endpoint does not support adding a user to a waiting list using a cross-regional client pricing option(service). Cross-regional booking workflows do not support client service scheduling restrictions. When performing a cross-regional class booking, this endpoint loops through the first ten sites that the client is associated with, looks for client pricing options at each of those sites, and then uses the oldest client pricing option found.It is important to note that this endpoint only loops through a maximum of ten associated client sites. If a `ClientID` is associated with more than ten sites in an organization, this endpoint only loops through the first ten.If you know that a client has a client service at another site, you can specify that site using the `CrossRegionalBookingClientServiceSiteId` query parameter. If you perform a cross-regional booking, two additional fields are included in the `SessionType` object of the response: * `SiteID`, which specifies where the client service is coming from * `CrossRegionalBookingPerformed`, a Boolean field that is set to `true` As a prerequisite to using this endpoint, your `SourceName` must have been granted access to the organization to which the site belongs.
|
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 [AddClientToClassResponse]
|
30
|
+
def class_add_client_to_class(request, site_id, version, opts = {})
|
31
|
+
data, _status_code, _headers = class_add_client_to_class_with_http_info(request, site_id, version, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Book a client into a class.
|
36
|
+
# This endpoint adds a client to a class or to a class waiting list. It is helpful to use this endpoint in the following situations: * Use after calling `GET Clients` and `GET Classes` so that you are sure which client to book in which class. * If adding a client to a class from a waiting list, use this call after you call `GET WaitlistEntries` and determine the ID of the waiting list from which you are moving the client. * If adding a client to a class and using a pricing option that the client has already purchased, use this call after you call `GET ClientServices` to determine the ID of the pricing option that the client wants to use. If you add a client to a class and the client purchases a new pricing option, use `GET Services`, `GET Classes`, and then `POST CheckoutShoppingCart` in place of this call. This endpoint also supports cross-regional class bookings. If you want to perform a cross-regional class booking, set `CrossRegionalBooking` to `true`. This endpoint does not support adding a user to a waiting list using a cross-regional client pricing option(service). Cross-regional booking workflows do not support client service scheduling restrictions. When performing a cross-regional class booking, this endpoint loops through the first ten sites that the client is associated with, looks for client pricing options at each of those sites, and then uses the oldest client pricing option found.It is important to note that this endpoint only loops through a maximum of ten associated client sites. If a `ClientID` is associated with more than ten sites in an organization, this endpoint only loops through the first ten.If you know that a client has a client service at another site, you can specify that site using the `CrossRegionalBookingClientServiceSiteId` query parameter. If you perform a cross-regional booking, two additional fields are included in the `SessionType` object of the response: * `SiteID`, which specifies where the client service is coming from * `CrossRegionalBookingPerformed`, a Boolean field that is set to `true` As a prerequisite to using this endpoint, your `SourceName` must have been granted access to the organization to which the site belongs.
|
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<(AddClientToClassResponse, Fixnum, Hash)>] AddClientToClassResponse data, response status code and response headers
|
43
|
+
def class_add_client_to_class_with_http_info(request, site_id, version, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_add_client_to_class ...'
|
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 ClassApi.class_add_client_to_class"
|
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 ClassApi.class_add_client_to_class"
|
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 ClassApi.class_add_client_to_class"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/public/v{version}/class/addclienttoclass'.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 => 'AddClientToClassResponse')
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: ClassApi#class_add_client_to_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
# Get class descriptions.
|
93
|
+
# To find class descriptions associated with **scheduled classes**, pass `StaffId`, `StartClassDateTime`, `EndClassDateTime`, or `LocationId` in the request.
|
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 [Integer] :request_class_description_id Filters to the single result with the given ID.
|
99
|
+
# @option opts [DateTime] :request_end_class_date_time Filters the results to class descriptions for scheduled classes that happen before the given date and time.
|
100
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
101
|
+
# @option opts [Integer] :request_location_id Filters results to classes descriptions for schedule classes as the given location.
|
102
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
103
|
+
# @option opts [Array<Integer>] :request_program_ids Filters results to class descriptions belonging to the given programs.
|
104
|
+
# @option opts [Integer] :request_staff_id Filters results to class descriptions for scheduled classes taught by the given staff member.
|
105
|
+
# @option opts [DateTime] :request_start_class_date_time Filters the results to class descriptions for scheduled classes that happen on or after the given date and time.
|
106
|
+
# @return [GetClassDescriptionsResponse]
|
107
|
+
def class_get_class_descriptions(site_id, version, opts = {})
|
108
|
+
data, _status_code, _headers = class_get_class_descriptions_with_http_info(site_id, version, opts)
|
109
|
+
data
|
110
|
+
end
|
111
|
+
|
112
|
+
# Get class descriptions.
|
113
|
+
# To find class descriptions associated with **scheduled classes**, pass `StaffId`, `StartClassDateTime`, `EndClassDateTime`, or `LocationId` in the request.
|
114
|
+
# @param site_id ID of the site from which to pull data.
|
115
|
+
# @param version
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @option opts [String] :authorization A staff user authorization token.
|
118
|
+
# @option opts [Integer] :request_class_description_id Filters to the single result with the given ID.
|
119
|
+
# @option opts [DateTime] :request_end_class_date_time Filters the results to class descriptions for scheduled classes that happen before the given date and time.
|
120
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
121
|
+
# @option opts [Integer] :request_location_id Filters results to classes descriptions for schedule classes as the given location.
|
122
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
123
|
+
# @option opts [Array<Integer>] :request_program_ids Filters results to class descriptions belonging to the given programs.
|
124
|
+
# @option opts [Integer] :request_staff_id Filters results to class descriptions for scheduled classes taught by the given staff member.
|
125
|
+
# @option opts [DateTime] :request_start_class_date_time Filters the results to class descriptions for scheduled classes that happen on or after the given date and time.
|
126
|
+
# @return [Array<(GetClassDescriptionsResponse, Fixnum, Hash)>] GetClassDescriptionsResponse data, response status code and response headers
|
127
|
+
def class_get_class_descriptions_with_http_info(site_id, version, opts = {})
|
128
|
+
if @api_client.config.debugging
|
129
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_get_class_descriptions ...'
|
130
|
+
end
|
131
|
+
# verify the required parameter 'site_id' is set
|
132
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
133
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_get_class_descriptions"
|
134
|
+
end
|
135
|
+
# verify the required parameter 'version' is set
|
136
|
+
if @api_client.config.client_side_validation && version.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_get_class_descriptions"
|
138
|
+
end
|
139
|
+
# resource path
|
140
|
+
local_var_path = '/public/v{version}/class/classdescriptions'.sub('{' + 'version' + '}', version.to_s)
|
141
|
+
|
142
|
+
# query parameters
|
143
|
+
query_params = {}
|
144
|
+
query_params[:'request.classDescriptionId'] = opts[:'request_class_description_id'] if !opts[:'request_class_description_id'].nil?
|
145
|
+
query_params[:'request.endClassDateTime'] = opts[:'request_end_class_date_time'] if !opts[:'request_end_class_date_time'].nil?
|
146
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
147
|
+
query_params[:'request.locationId'] = opts[:'request_location_id'] if !opts[:'request_location_id'].nil?
|
148
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
149
|
+
query_params[:'request.programIds'] = @api_client.build_collection_param(opts[:'request_program_ids'], :multi) if !opts[:'request_program_ids'].nil?
|
150
|
+
query_params[:'request.staffId'] = opts[:'request_staff_id'] if !opts[:'request_staff_id'].nil?
|
151
|
+
query_params[:'request.startClassDateTime'] = opts[:'request_start_class_date_time'] if !opts[:'request_start_class_date_time'].nil?
|
152
|
+
|
153
|
+
# header parameters
|
154
|
+
header_params = {}
|
155
|
+
# HTTP header 'Accept' (if needed)
|
156
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
157
|
+
header_params[:'siteId'] = site_id
|
158
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
159
|
+
|
160
|
+
# form parameters
|
161
|
+
form_params = {}
|
162
|
+
|
163
|
+
# http body (model)
|
164
|
+
post_body = nil
|
165
|
+
auth_names = []
|
166
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
167
|
+
:header_params => header_params,
|
168
|
+
:query_params => query_params,
|
169
|
+
:form_params => form_params,
|
170
|
+
:body => post_body,
|
171
|
+
:auth_names => auth_names,
|
172
|
+
:return_type => 'GetClassDescriptionsResponse')
|
173
|
+
if @api_client.config.debugging
|
174
|
+
@api_client.config.logger.debug "API called: ClassApi#class_get_class_descriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
175
|
+
end
|
176
|
+
return data, status_code, headers
|
177
|
+
end
|
178
|
+
# Get class schedules.
|
179
|
+
# @param site_id ID of the site from which to pull data.
|
180
|
+
# @param version
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
183
|
+
# @option opts [Array<Integer>] :request_class_schedule_ids The class schedule IDs. <br />Default: **all**
|
184
|
+
# @option opts [DateTime] :request_end_date The end date of the range. Return any active enrollments that occur on or before this day. <br />Default: **StartDate**
|
185
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
186
|
+
# @option opts [Array<Integer>] :request_location_ids The location IDs. <br />Default: **all**
|
187
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
188
|
+
# @option opts [Array<Integer>] :request_program_ids The program IDs. <br />Default: **all**
|
189
|
+
# @option opts [Array<Integer>] :request_session_type_ids The session type IDs. <br />Default: **all**
|
190
|
+
# @option opts [Array<Integer>] :request_staff_ids The staff IDs. <br />Default: **all**
|
191
|
+
# @option opts [DateTime] :request_start_date The start date of the range. Return any active enrollments that occur on or after this day. <br />Default: **today’s date**
|
192
|
+
# @return [GetClassSchedulesResponse]
|
193
|
+
def class_get_class_schedules(site_id, version, opts = {})
|
194
|
+
data, _status_code, _headers = class_get_class_schedules_with_http_info(site_id, version, opts)
|
195
|
+
data
|
196
|
+
end
|
197
|
+
|
198
|
+
# Get class schedules.
|
199
|
+
# @param site_id ID of the site from which to pull data.
|
200
|
+
# @param version
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [String] :authorization A staff user authorization token.
|
203
|
+
# @option opts [Array<Integer>] :request_class_schedule_ids The class schedule IDs. <br />Default: **all**
|
204
|
+
# @option opts [DateTime] :request_end_date The end date of the range. Return any active enrollments that occur on or before this day. <br />Default: **StartDate**
|
205
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
206
|
+
# @option opts [Array<Integer>] :request_location_ids The location IDs. <br />Default: **all**
|
207
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
208
|
+
# @option opts [Array<Integer>] :request_program_ids The program IDs. <br />Default: **all**
|
209
|
+
# @option opts [Array<Integer>] :request_session_type_ids The session type IDs. <br />Default: **all**
|
210
|
+
# @option opts [Array<Integer>] :request_staff_ids The staff IDs. <br />Default: **all**
|
211
|
+
# @option opts [DateTime] :request_start_date The start date of the range. Return any active enrollments that occur on or after this day. <br />Default: **today’s date**
|
212
|
+
# @return [Array<(GetClassSchedulesResponse, Fixnum, Hash)>] GetClassSchedulesResponse data, response status code and response headers
|
213
|
+
def class_get_class_schedules_with_http_info(site_id, version, opts = {})
|
214
|
+
if @api_client.config.debugging
|
215
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_get_class_schedules ...'
|
216
|
+
end
|
217
|
+
# verify the required parameter 'site_id' is set
|
218
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
219
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_get_class_schedules"
|
220
|
+
end
|
221
|
+
# verify the required parameter 'version' is set
|
222
|
+
if @api_client.config.client_side_validation && version.nil?
|
223
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_get_class_schedules"
|
224
|
+
end
|
225
|
+
# resource path
|
226
|
+
local_var_path = '/public/v{version}/class/classschedules'.sub('{' + 'version' + '}', version.to_s)
|
227
|
+
|
228
|
+
# query parameters
|
229
|
+
query_params = {}
|
230
|
+
query_params[:'request.classScheduleIds'] = @api_client.build_collection_param(opts[:'request_class_schedule_ids'], :multi) if !opts[:'request_class_schedule_ids'].nil?
|
231
|
+
query_params[:'request.endDate'] = opts[:'request_end_date'] if !opts[:'request_end_date'].nil?
|
232
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
233
|
+
query_params[:'request.locationIds'] = @api_client.build_collection_param(opts[:'request_location_ids'], :multi) if !opts[:'request_location_ids'].nil?
|
234
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
235
|
+
query_params[:'request.programIds'] = @api_client.build_collection_param(opts[:'request_program_ids'], :multi) if !opts[:'request_program_ids'].nil?
|
236
|
+
query_params[:'request.sessionTypeIds'] = @api_client.build_collection_param(opts[:'request_session_type_ids'], :multi) if !opts[:'request_session_type_ids'].nil?
|
237
|
+
query_params[:'request.staffIds'] = @api_client.build_collection_param(opts[:'request_staff_ids'], :multi) if !opts[:'request_staff_ids'].nil?
|
238
|
+
query_params[:'request.startDate'] = opts[:'request_start_date'] if !opts[:'request_start_date'].nil?
|
239
|
+
|
240
|
+
# header parameters
|
241
|
+
header_params = {}
|
242
|
+
# HTTP header 'Accept' (if needed)
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
244
|
+
header_params[:'siteId'] = site_id
|
245
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = nil
|
252
|
+
auth_names = []
|
253
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
254
|
+
:header_params => header_params,
|
255
|
+
:query_params => query_params,
|
256
|
+
:form_params => form_params,
|
257
|
+
:body => post_body,
|
258
|
+
:auth_names => auth_names,
|
259
|
+
:return_type => 'GetClassSchedulesResponse')
|
260
|
+
if @api_client.config.debugging
|
261
|
+
@api_client.config.logger.debug "API called: ClassApi#class_get_class_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
262
|
+
end
|
263
|
+
return data, status_code, headers
|
264
|
+
end
|
265
|
+
# Get information about clients booked in a class.
|
266
|
+
# Returns a list of visits that contain information for a specified class. On success, this request returns the class object in the response with a list of visits.
|
267
|
+
# @param site_id ID of the site from which to pull data.
|
268
|
+
# @param version
|
269
|
+
# @param [Hash] opts the optional parameters
|
270
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
271
|
+
# @option opts [Integer] :request_class_id The class ID.
|
272
|
+
# @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the `LastModifiedDate` specified are included in the response.
|
273
|
+
# @return [GetClassVisitsResponse]
|
274
|
+
def class_get_class_visits(site_id, version, opts = {})
|
275
|
+
data, _status_code, _headers = class_get_class_visits_with_http_info(site_id, version, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Get information about clients booked in a class.
|
280
|
+
# Returns a list of visits that contain information for a specified class. On success, this request returns the class object in the response with a list of visits.
|
281
|
+
# @param site_id ID of the site from which to pull data.
|
282
|
+
# @param version
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @option opts [String] :authorization A staff user authorization token.
|
285
|
+
# @option opts [Integer] :request_class_id The class ID.
|
286
|
+
# @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the `LastModifiedDate` specified are included in the response.
|
287
|
+
# @return [Array<(GetClassVisitsResponse, Fixnum, Hash)>] GetClassVisitsResponse data, response status code and response headers
|
288
|
+
def class_get_class_visits_with_http_info(site_id, version, opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_get_class_visits ...'
|
291
|
+
end
|
292
|
+
# verify the required parameter 'site_id' is set
|
293
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_get_class_visits"
|
295
|
+
end
|
296
|
+
# verify the required parameter 'version' is set
|
297
|
+
if @api_client.config.client_side_validation && version.nil?
|
298
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_get_class_visits"
|
299
|
+
end
|
300
|
+
# resource path
|
301
|
+
local_var_path = '/public/v{version}/class/classvisits'.sub('{' + 'version' + '}', version.to_s)
|
302
|
+
|
303
|
+
# query parameters
|
304
|
+
query_params = {}
|
305
|
+
query_params[:'request.classID'] = opts[:'request_class_id'] if !opts[:'request_class_id'].nil?
|
306
|
+
query_params[:'request.lastModifiedDate'] = opts[:'request_last_modified_date'] if !opts[:'request_last_modified_date'].nil?
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
312
|
+
header_params[:'siteId'] = site_id
|
313
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
314
|
+
|
315
|
+
# form parameters
|
316
|
+
form_params = {}
|
317
|
+
|
318
|
+
# http body (model)
|
319
|
+
post_body = nil
|
320
|
+
auth_names = []
|
321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
322
|
+
:header_params => header_params,
|
323
|
+
:query_params => query_params,
|
324
|
+
:form_params => form_params,
|
325
|
+
:body => post_body,
|
326
|
+
:auth_names => auth_names,
|
327
|
+
:return_type => 'GetClassVisitsResponse')
|
328
|
+
if @api_client.config.debugging
|
329
|
+
@api_client.config.logger.debug "API called: ClassApi#class_get_class_visits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
330
|
+
end
|
331
|
+
return data, status_code, headers
|
332
|
+
end
|
333
|
+
# Get scheduled classes.
|
334
|
+
# @param site_id ID of the site from which to pull data.
|
335
|
+
# @param version
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
338
|
+
# @option opts [Array<Integer>] :request_class_description_ids The requested class description IDs.
|
339
|
+
# @option opts [Array<Integer>] :request_class_ids The requested class IDs.
|
340
|
+
# @option opts [String] :request_client_id The client ID of the client who is viewing this class list. Based on identity, the client may be able to see additional information, such as membership specials.
|
341
|
+
# @option opts [DateTime] :request_end_date_time The requested end date for filtering. <br />Default: **today’s date**
|
342
|
+
# @option opts [BOOLEAN] :request_hide_canceled_classes When `true`, canceled classes are removed from the response.<br /> When `false`, canceled classes are included in the response.<br /> Default: **false**
|
343
|
+
# @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the `LastModifiedDate` specified are included in the response.
|
344
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
345
|
+
# @option opts [Array<Integer>] :request_location_ids A list of location IDs on which to base the search.
|
346
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
347
|
+
# @option opts [Array<Integer>] :request_program_ids A list of program IDs on which to base the search.
|
348
|
+
# @option opts [BOOLEAN] :request_scheduling_window When `true`, classes outside scheduling window are removed from the response.<br /> When `false`, classes are included in the response, regardless of the scheduling window.<br /> Default: **false**
|
349
|
+
# @option opts [Array<Integer>] :request_semester_ids A list of semester IDs on which to base the search.
|
350
|
+
# @option opts [Array<Integer>] :request_session_type_ids A list of session type IDs on which to base the search.
|
351
|
+
# @option opts [Array<Integer>] :request_staff_ids The requested IDs of the teaching staff members.
|
352
|
+
# @option opts [DateTime] :request_start_date_time The requested start date for filtering. <br />Default: **today’s date**
|
353
|
+
# @return [GetClassesResponse]
|
354
|
+
def class_get_classes(site_id, version, opts = {})
|
355
|
+
data, _status_code, _headers = class_get_classes_with_http_info(site_id, version, opts)
|
356
|
+
data
|
357
|
+
end
|
358
|
+
|
359
|
+
# Get scheduled classes.
|
360
|
+
# @param site_id ID of the site from which to pull data.
|
361
|
+
# @param version
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @option opts [String] :authorization A staff user authorization token.
|
364
|
+
# @option opts [Array<Integer>] :request_class_description_ids The requested class description IDs.
|
365
|
+
# @option opts [Array<Integer>] :request_class_ids The requested class IDs.
|
366
|
+
# @option opts [String] :request_client_id The client ID of the client who is viewing this class list. Based on identity, the client may be able to see additional information, such as membership specials.
|
367
|
+
# @option opts [DateTime] :request_end_date_time The requested end date for filtering. <br />Default: **today’s date**
|
368
|
+
# @option opts [BOOLEAN] :request_hide_canceled_classes When `true`, canceled classes are removed from the response.<br /> When `false`, canceled classes are included in the response.<br /> Default: **false**
|
369
|
+
# @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the `LastModifiedDate` specified are included in the response.
|
370
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
371
|
+
# @option opts [Array<Integer>] :request_location_ids A list of location IDs on which to base the search.
|
372
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
373
|
+
# @option opts [Array<Integer>] :request_program_ids A list of program IDs on which to base the search.
|
374
|
+
# @option opts [BOOLEAN] :request_scheduling_window When `true`, classes outside scheduling window are removed from the response.<br /> When `false`, classes are included in the response, regardless of the scheduling window.<br /> Default: **false**
|
375
|
+
# @option opts [Array<Integer>] :request_semester_ids A list of semester IDs on which to base the search.
|
376
|
+
# @option opts [Array<Integer>] :request_session_type_ids A list of session type IDs on which to base the search.
|
377
|
+
# @option opts [Array<Integer>] :request_staff_ids The requested IDs of the teaching staff members.
|
378
|
+
# @option opts [DateTime] :request_start_date_time The requested start date for filtering. <br />Default: **today’s date**
|
379
|
+
# @return [Array<(GetClassesResponse, Fixnum, Hash)>] GetClassesResponse data, response status code and response headers
|
380
|
+
def class_get_classes_with_http_info(site_id, version, opts = {})
|
381
|
+
if @api_client.config.debugging
|
382
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_get_classes ...'
|
383
|
+
end
|
384
|
+
# verify the required parameter 'site_id' is set
|
385
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
386
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_get_classes"
|
387
|
+
end
|
388
|
+
# verify the required parameter 'version' is set
|
389
|
+
if @api_client.config.client_side_validation && version.nil?
|
390
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_get_classes"
|
391
|
+
end
|
392
|
+
# resource path
|
393
|
+
local_var_path = '/public/v{version}/class/classes'.sub('{' + 'version' + '}', version.to_s)
|
394
|
+
|
395
|
+
# query parameters
|
396
|
+
query_params = {}
|
397
|
+
query_params[:'request.classDescriptionIds'] = @api_client.build_collection_param(opts[:'request_class_description_ids'], :multi) if !opts[:'request_class_description_ids'].nil?
|
398
|
+
query_params[:'request.classIds'] = @api_client.build_collection_param(opts[:'request_class_ids'], :multi) if !opts[:'request_class_ids'].nil?
|
399
|
+
query_params[:'request.clientId'] = opts[:'request_client_id'] if !opts[:'request_client_id'].nil?
|
400
|
+
query_params[:'request.endDateTime'] = opts[:'request_end_date_time'] if !opts[:'request_end_date_time'].nil?
|
401
|
+
query_params[:'request.hideCanceledClasses'] = opts[:'request_hide_canceled_classes'] if !opts[:'request_hide_canceled_classes'].nil?
|
402
|
+
query_params[:'request.lastModifiedDate'] = opts[:'request_last_modified_date'] if !opts[:'request_last_modified_date'].nil?
|
403
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
404
|
+
query_params[:'request.locationIds'] = @api_client.build_collection_param(opts[:'request_location_ids'], :multi) if !opts[:'request_location_ids'].nil?
|
405
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
406
|
+
query_params[:'request.programIds'] = @api_client.build_collection_param(opts[:'request_program_ids'], :multi) if !opts[:'request_program_ids'].nil?
|
407
|
+
query_params[:'request.schedulingWindow'] = opts[:'request_scheduling_window'] if !opts[:'request_scheduling_window'].nil?
|
408
|
+
query_params[:'request.semesterIds'] = @api_client.build_collection_param(opts[:'request_semester_ids'], :multi) if !opts[:'request_semester_ids'].nil?
|
409
|
+
query_params[:'request.sessionTypeIds'] = @api_client.build_collection_param(opts[:'request_session_type_ids'], :multi) if !opts[:'request_session_type_ids'].nil?
|
410
|
+
query_params[:'request.staffIds'] = @api_client.build_collection_param(opts[:'request_staff_ids'], :multi) if !opts[:'request_staff_ids'].nil?
|
411
|
+
query_params[:'request.startDateTime'] = opts[:'request_start_date_time'] if !opts[:'request_start_date_time'].nil?
|
412
|
+
|
413
|
+
# header parameters
|
414
|
+
header_params = {}
|
415
|
+
# HTTP header 'Accept' (if needed)
|
416
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
417
|
+
header_params[:'siteId'] = site_id
|
418
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
419
|
+
|
420
|
+
# form parameters
|
421
|
+
form_params = {}
|
422
|
+
|
423
|
+
# http body (model)
|
424
|
+
post_body = nil
|
425
|
+
auth_names = []
|
426
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
427
|
+
:header_params => header_params,
|
428
|
+
:query_params => query_params,
|
429
|
+
:form_params => form_params,
|
430
|
+
:body => post_body,
|
431
|
+
:auth_names => auth_names,
|
432
|
+
:return_type => 'GetClassesResponse')
|
433
|
+
if @api_client.config.debugging
|
434
|
+
@api_client.config.logger.debug "API called: ClassApi#class_get_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
435
|
+
end
|
436
|
+
return data, status_code, headers
|
437
|
+
end
|
438
|
+
# Get waiting list entries.
|
439
|
+
# Returns a list of waiting list entries for a specified class schedule or class. The request requires staff credentials and either a class schedule ID or class ID.
|
440
|
+
# @param site_id ID of the site from which to pull data.
|
441
|
+
# @param version
|
442
|
+
# @param [Hash] opts the optional parameters
|
443
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
444
|
+
# @option opts [Array<Integer>] :request_class_ids The requested class IDs. If a class ID is present, the request automatically disregards any class schedule IDs in the request. <br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClassIds**
|
445
|
+
# @option opts [Array<Integer>] :request_class_schedule_ids The requested class schedule IDs. If a class ID is present, the request automatically disregards any class schedule IDs in the request.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClassScheduleIds**
|
446
|
+
# @option opts [Array<String>] :request_client_ids The requested client IDs.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClientIds**
|
447
|
+
# @option opts [BOOLEAN] :request_hide_past_entries When `true`, indicates that past waiting list entries are hidden from clients.<br /> When `false`, indicates that past entries are not hidden from clients.<br /> Default: **false**
|
448
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
449
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
450
|
+
# @option opts [Array<Integer>] :request_waitlist_entry_ids The requested waiting list entry IDs.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all WaitlistEntryIds**
|
451
|
+
# @return [GetWaitlistEntriesResponse]
|
452
|
+
def class_get_waitlist_entries(site_id, version, opts = {})
|
453
|
+
data, _status_code, _headers = class_get_waitlist_entries_with_http_info(site_id, version, opts)
|
454
|
+
data
|
455
|
+
end
|
456
|
+
|
457
|
+
# Get waiting list entries.
|
458
|
+
# Returns a list of waiting list entries for a specified class schedule or class. The request requires staff credentials and either a class schedule ID or class ID.
|
459
|
+
# @param site_id ID of the site from which to pull data.
|
460
|
+
# @param version
|
461
|
+
# @param [Hash] opts the optional parameters
|
462
|
+
# @option opts [String] :authorization A staff user authorization token.
|
463
|
+
# @option opts [Array<Integer>] :request_class_ids The requested class IDs. If a class ID is present, the request automatically disregards any class schedule IDs in the request. <br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClassIds**
|
464
|
+
# @option opts [Array<Integer>] :request_class_schedule_ids The requested class schedule IDs. If a class ID is present, the request automatically disregards any class schedule IDs in the request.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClassScheduleIds**
|
465
|
+
# @option opts [Array<String>] :request_client_ids The requested client IDs.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all ClientIds**
|
466
|
+
# @option opts [BOOLEAN] :request_hide_past_entries When `true`, indicates that past waiting list entries are hidden from clients.<br /> When `false`, indicates that past entries are not hidden from clients.<br /> Default: **false**
|
467
|
+
# @option opts [Integer] :request_limit Number of results to include, defaults to 100
|
468
|
+
# @option opts [Integer] :request_offset Page offset, defaults to 0.
|
469
|
+
# @option opts [Array<Integer>] :request_waitlist_entry_ids The requested waiting list entry IDs.<br /> Either `ClassScheduleIds`, `ClientIds`, `WaitlistEntryIds`, or `ClassIds` is required; the others become optional.<br /> Default: **all WaitlistEntryIds**
|
470
|
+
# @return [Array<(GetWaitlistEntriesResponse, Fixnum, Hash)>] GetWaitlistEntriesResponse data, response status code and response headers
|
471
|
+
def class_get_waitlist_entries_with_http_info(site_id, version, opts = {})
|
472
|
+
if @api_client.config.debugging
|
473
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_get_waitlist_entries ...'
|
474
|
+
end
|
475
|
+
# verify the required parameter 'site_id' is set
|
476
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
477
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_get_waitlist_entries"
|
478
|
+
end
|
479
|
+
# verify the required parameter 'version' is set
|
480
|
+
if @api_client.config.client_side_validation && version.nil?
|
481
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_get_waitlist_entries"
|
482
|
+
end
|
483
|
+
# resource path
|
484
|
+
local_var_path = '/public/v{version}/class/waitlistentries'.sub('{' + 'version' + '}', version.to_s)
|
485
|
+
|
486
|
+
# query parameters
|
487
|
+
query_params = {}
|
488
|
+
query_params[:'request.classIds'] = @api_client.build_collection_param(opts[:'request_class_ids'], :multi) if !opts[:'request_class_ids'].nil?
|
489
|
+
query_params[:'request.classScheduleIds'] = @api_client.build_collection_param(opts[:'request_class_schedule_ids'], :multi) if !opts[:'request_class_schedule_ids'].nil?
|
490
|
+
query_params[:'request.clientIds'] = @api_client.build_collection_param(opts[:'request_client_ids'], :multi) if !opts[:'request_client_ids'].nil?
|
491
|
+
query_params[:'request.hidePastEntries'] = opts[:'request_hide_past_entries'] if !opts[:'request_hide_past_entries'].nil?
|
492
|
+
query_params[:'request.limit'] = opts[:'request_limit'] if !opts[:'request_limit'].nil?
|
493
|
+
query_params[:'request.offset'] = opts[:'request_offset'] if !opts[:'request_offset'].nil?
|
494
|
+
query_params[:'request.waitlistEntryIds'] = @api_client.build_collection_param(opts[:'request_waitlist_entry_ids'], :multi) if !opts[:'request_waitlist_entry_ids'].nil?
|
495
|
+
|
496
|
+
# header parameters
|
497
|
+
header_params = {}
|
498
|
+
# HTTP header 'Accept' (if needed)
|
499
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
500
|
+
header_params[:'siteId'] = site_id
|
501
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
502
|
+
|
503
|
+
# form parameters
|
504
|
+
form_params = {}
|
505
|
+
|
506
|
+
# http body (model)
|
507
|
+
post_body = nil
|
508
|
+
auth_names = []
|
509
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
510
|
+
:header_params => header_params,
|
511
|
+
:query_params => query_params,
|
512
|
+
:form_params => form_params,
|
513
|
+
:body => post_body,
|
514
|
+
:auth_names => auth_names,
|
515
|
+
:return_type => 'GetWaitlistEntriesResponse')
|
516
|
+
if @api_client.config.debugging
|
517
|
+
@api_client.config.logger.debug "API called: ClassApi#class_get_waitlist_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
518
|
+
end
|
519
|
+
return data, status_code, headers
|
520
|
+
end
|
521
|
+
# Remove a client from a class.
|
522
|
+
# @param request
|
523
|
+
# @param site_id ID of the site from which to pull data.
|
524
|
+
# @param version
|
525
|
+
# @param [Hash] opts the optional parameters
|
526
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
527
|
+
# @return [RemoveClientFromClassResponse]
|
528
|
+
def class_remove_client_from_class(request, site_id, version, opts = {})
|
529
|
+
data, _status_code, _headers = class_remove_client_from_class_with_http_info(request, site_id, version, opts)
|
530
|
+
data
|
531
|
+
end
|
532
|
+
|
533
|
+
# Remove a client from a class.
|
534
|
+
# @param request
|
535
|
+
# @param site_id ID of the site from which to pull data.
|
536
|
+
# @param version
|
537
|
+
# @param [Hash] opts the optional parameters
|
538
|
+
# @option opts [String] :authorization A staff user authorization token.
|
539
|
+
# @return [Array<(RemoveClientFromClassResponse, Fixnum, Hash)>] RemoveClientFromClassResponse data, response status code and response headers
|
540
|
+
def class_remove_client_from_class_with_http_info(request, site_id, version, opts = {})
|
541
|
+
if @api_client.config.debugging
|
542
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_remove_client_from_class ...'
|
543
|
+
end
|
544
|
+
# verify the required parameter 'request' is set
|
545
|
+
if @api_client.config.client_side_validation && request.nil?
|
546
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ClassApi.class_remove_client_from_class"
|
547
|
+
end
|
548
|
+
# verify the required parameter 'site_id' is set
|
549
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
550
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_remove_client_from_class"
|
551
|
+
end
|
552
|
+
# verify the required parameter 'version' is set
|
553
|
+
if @api_client.config.client_side_validation && version.nil?
|
554
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_remove_client_from_class"
|
555
|
+
end
|
556
|
+
# resource path
|
557
|
+
local_var_path = '/public/v{version}/class/removeclientfromclass'.sub('{' + 'version' + '}', version.to_s)
|
558
|
+
|
559
|
+
# query parameters
|
560
|
+
query_params = {}
|
561
|
+
|
562
|
+
# header parameters
|
563
|
+
header_params = {}
|
564
|
+
# HTTP header 'Accept' (if needed)
|
565
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
566
|
+
# HTTP header 'Content-Type'
|
567
|
+
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'])
|
568
|
+
header_params[:'siteId'] = site_id
|
569
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
570
|
+
|
571
|
+
# form parameters
|
572
|
+
form_params = {}
|
573
|
+
|
574
|
+
# http body (model)
|
575
|
+
post_body = @api_client.object_to_http_body(request)
|
576
|
+
auth_names = []
|
577
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
578
|
+
:header_params => header_params,
|
579
|
+
:query_params => query_params,
|
580
|
+
:form_params => form_params,
|
581
|
+
:body => post_body,
|
582
|
+
:auth_names => auth_names,
|
583
|
+
:return_type => 'RemoveClientFromClassResponse')
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug "API called: ClassApi#class_remove_client_from_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
586
|
+
end
|
587
|
+
return data, status_code, headers
|
588
|
+
end
|
589
|
+
# Remove a client from a waiting list.
|
590
|
+
# This endpoint does not return a response. If a call to this endpoint results in a 200 OK HTTP status code, then the call was successful.
|
591
|
+
# @param request_waitlist_entry_ids A list of waiting list IDs to remove from waiting lists.
|
592
|
+
# @param site_id ID of the site from which to pull data.
|
593
|
+
# @param version
|
594
|
+
# @param [Hash] opts the optional parameters
|
595
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
596
|
+
# @return [RemoveFromWaitlistResponse]
|
597
|
+
def class_remove_from_waitlist(request_waitlist_entry_ids, site_id, version, opts = {})
|
598
|
+
data, _status_code, _headers = class_remove_from_waitlist_with_http_info(request_waitlist_entry_ids, site_id, version, opts)
|
599
|
+
data
|
600
|
+
end
|
601
|
+
|
602
|
+
# Remove a client from a waiting list.
|
603
|
+
# This endpoint does not return a response. If a call to this endpoint results in a 200 OK HTTP status code, then the call was successful.
|
604
|
+
# @param request_waitlist_entry_ids A list of waiting list IDs to remove from waiting lists.
|
605
|
+
# @param site_id ID of the site from which to pull data.
|
606
|
+
# @param version
|
607
|
+
# @param [Hash] opts the optional parameters
|
608
|
+
# @option opts [String] :authorization A staff user authorization token.
|
609
|
+
# @return [Array<(RemoveFromWaitlistResponse, Fixnum, Hash)>] RemoveFromWaitlistResponse data, response status code and response headers
|
610
|
+
def class_remove_from_waitlist_with_http_info(request_waitlist_entry_ids, site_id, version, opts = {})
|
611
|
+
if @api_client.config.debugging
|
612
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_remove_from_waitlist ...'
|
613
|
+
end
|
614
|
+
# verify the required parameter 'request_waitlist_entry_ids' is set
|
615
|
+
if @api_client.config.client_side_validation && request_waitlist_entry_ids.nil?
|
616
|
+
fail ArgumentError, "Missing the required parameter 'request_waitlist_entry_ids' when calling ClassApi.class_remove_from_waitlist"
|
617
|
+
end
|
618
|
+
# verify the required parameter 'site_id' is set
|
619
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
620
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_remove_from_waitlist"
|
621
|
+
end
|
622
|
+
# verify the required parameter 'version' is set
|
623
|
+
if @api_client.config.client_side_validation && version.nil?
|
624
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_remove_from_waitlist"
|
625
|
+
end
|
626
|
+
# resource path
|
627
|
+
local_var_path = '/public/v{version}/class/removefromwaitlist'.sub('{' + 'version' + '}', version.to_s)
|
628
|
+
|
629
|
+
# query parameters
|
630
|
+
query_params = {}
|
631
|
+
query_params[:'request.waitlistEntryIds'] = @api_client.build_collection_param(request_waitlist_entry_ids, :multi)
|
632
|
+
|
633
|
+
# header parameters
|
634
|
+
header_params = {}
|
635
|
+
# HTTP header 'Accept' (if needed)
|
636
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
637
|
+
header_params[:'siteId'] = site_id
|
638
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
639
|
+
|
640
|
+
# form parameters
|
641
|
+
form_params = {}
|
642
|
+
|
643
|
+
# http body (model)
|
644
|
+
post_body = nil
|
645
|
+
auth_names = []
|
646
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
647
|
+
:header_params => header_params,
|
648
|
+
:query_params => query_params,
|
649
|
+
:form_params => form_params,
|
650
|
+
:body => post_body,
|
651
|
+
:auth_names => auth_names,
|
652
|
+
:return_type => 'RemoveFromWaitlistResponse')
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug "API called: ClassApi#class_remove_from_waitlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
|
+
end
|
656
|
+
return data, status_code, headers
|
657
|
+
end
|
658
|
+
# Substitute a class teacher.
|
659
|
+
# @param request
|
660
|
+
# @param site_id ID of the site from which to pull data.
|
661
|
+
# @param version
|
662
|
+
# @param [Hash] opts the optional parameters
|
663
|
+
# @option opts [String] :authorization A staff user authorization token. (default to )
|
664
|
+
# @return [SubstituteClassTeacherResponse]
|
665
|
+
def class_substitute_class_teacher(request, site_id, version, opts = {})
|
666
|
+
data, _status_code, _headers = class_substitute_class_teacher_with_http_info(request, site_id, version, opts)
|
667
|
+
data
|
668
|
+
end
|
669
|
+
|
670
|
+
# Substitute a class teacher.
|
671
|
+
# @param request
|
672
|
+
# @param site_id ID of the site from which to pull data.
|
673
|
+
# @param version
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @option opts [String] :authorization A staff user authorization token.
|
676
|
+
# @return [Array<(SubstituteClassTeacherResponse, Fixnum, Hash)>] SubstituteClassTeacherResponse data, response status code and response headers
|
677
|
+
def class_substitute_class_teacher_with_http_info(request, site_id, version, opts = {})
|
678
|
+
if @api_client.config.debugging
|
679
|
+
@api_client.config.logger.debug 'Calling API: ClassApi.class_substitute_class_teacher ...'
|
680
|
+
end
|
681
|
+
# verify the required parameter 'request' is set
|
682
|
+
if @api_client.config.client_side_validation && request.nil?
|
683
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling ClassApi.class_substitute_class_teacher"
|
684
|
+
end
|
685
|
+
# verify the required parameter 'site_id' is set
|
686
|
+
if @api_client.config.client_side_validation && site_id.nil?
|
687
|
+
fail ArgumentError, "Missing the required parameter 'site_id' when calling ClassApi.class_substitute_class_teacher"
|
688
|
+
end
|
689
|
+
# verify the required parameter 'version' is set
|
690
|
+
if @api_client.config.client_side_validation && version.nil?
|
691
|
+
fail ArgumentError, "Missing the required parameter 'version' when calling ClassApi.class_substitute_class_teacher"
|
692
|
+
end
|
693
|
+
# resource path
|
694
|
+
local_var_path = '/public/v{version}/class/substituteclassteacher'.sub('{' + 'version' + '}', version.to_s)
|
695
|
+
|
696
|
+
# query parameters
|
697
|
+
query_params = {}
|
698
|
+
|
699
|
+
# header parameters
|
700
|
+
header_params = {}
|
701
|
+
# HTTP header 'Accept' (if needed)
|
702
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml', 'multipart/form-data'])
|
703
|
+
# HTTP header 'Content-Type'
|
704
|
+
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'])
|
705
|
+
header_params[:'siteId'] = site_id
|
706
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
707
|
+
|
708
|
+
# form parameters
|
709
|
+
form_params = {}
|
710
|
+
|
711
|
+
# http body (model)
|
712
|
+
post_body = @api_client.object_to_http_body(request)
|
713
|
+
auth_names = []
|
714
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
715
|
+
:header_params => header_params,
|
716
|
+
:query_params => query_params,
|
717
|
+
:form_params => form_params,
|
718
|
+
:body => post_body,
|
719
|
+
:auth_names => auth_names,
|
720
|
+
:return_type => 'SubstituteClassTeacherResponse')
|
721
|
+
if @api_client.config.debugging
|
722
|
+
@api_client.config.logger.debug "API called: ClassApi#class_substitute_class_teacher\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
723
|
+
end
|
724
|
+
return data, status_code, headers
|
725
|
+
end
|
726
|
+
end
|
727
|
+
end
|