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
data/docs/Product.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# SwaggerClient::Product
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**price** | **Float** | The price of the product. | [optional]
|
7
|
+
**tax_included** | **Float** | If tax inclusive-pricing is enabled, this field shows how much tax was added to the price. | [optional]
|
8
|
+
**tax_rate** | **Float** | The tax rate that was applied to this purchase. | [optional]
|
9
|
+
**id** | **String** | The unique ID of the product variant, for example, a particular size and color combination. | [optional]
|
10
|
+
**group_id** | **Integer** | The unique ID of the product group. | [optional]
|
11
|
+
**name** | **String** | The name of the product. | [optional]
|
12
|
+
**online_price** | **Float** | The online price of the product. | [optional]
|
13
|
+
**short_description** | **String** | A short description of the product. | [optional]
|
14
|
+
**long_description** | **String** | A longer description of the product. | [optional]
|
15
|
+
**color** | [**Color**](Color.md) | The color of the product. | [optional]
|
16
|
+
**size** | [**Size**](Size.md) | Contains information about the size of the product. | [optional]
|
17
|
+
|
18
|
+
|
data/docs/Program.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# SwaggerClient::Program
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The service category’s ID. | [optional]
|
7
|
+
**name** | **String** | The name of this service category. | [optional]
|
8
|
+
**schedule_type** | **String** | The service category’s schedule type. | [optional]
|
9
|
+
**cancel_offset** | **Integer** | The offset to use for the service category. | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SwaggerClient::ProspectStage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**active** | **BOOLEAN** | When `true`, indicates that the client is a prospect at the business and has not yet purchased any of the business pricing options. When `false`, indicates that the client has already purchased at least one pricing option from the business. | [optional]
|
7
|
+
**description** | **String** | A description of the prospect stage. | [optional]
|
8
|
+
**id** | **Integer** | The ID of the prospect stage assigned to the client. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# SwaggerClient::PurchaseContractRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**test** | **BOOLEAN** | When `true`, the Public API validates input information, but does not commit it, so no client data is affected.<br /> When `false` or omitted, the transaction is committed, and client data is affected.<br /> Default: **false** | [optional]
|
7
|
+
**location_id** | **Integer** | The ID of the location where the client is purchasing the contract; used for AutoPays. | [optional]
|
8
|
+
**client_id** | **String** | The ID of the client. Note that this is not the same as the client’s unique ID. |
|
9
|
+
**contract_id** | **Integer** | The ID of the contract being purchased. |
|
10
|
+
**start_date** | **DateTime** | The date that the contract starts.<br /> Default: **today’s date** | [optional]
|
11
|
+
**first_payment_occurs** | **String** | The date on which the first payment is to occur. Possible values: * Instant * `StartDate` | [optional]
|
12
|
+
**client_signature** | **String** | A representation of the client’s signature. This value can take the form of Base64-encoded byte array. The file type should be PNG. The picture of the client’s signature is uploaded and viewable from the Client Documents page in the Core Business Mode software. The title of the document is:<br /> clientContractSignature-{uniquePurchasedClientContractID}-{contractName}-{contractStartDate}.{fileType} | [optional]
|
13
|
+
**promotion_code** | **String** | A promotion code, if one applies. Promotion codes are applied to items that are both marked as pay now in a contract and are discounted by the promotion code. If a pay now item is an autopay item, its autopay price is the price at the time of checkout, so, if a promotion code was applied, all autopays are scheduled using that discounted price. | [optional]
|
14
|
+
**credit_card_info** | [**CreditCardInfo**](CreditCardInfo.md) | Contains credit card payment information.<br /> Either `StoredCardInfo` or `CreditCardInfo` is required; the other becomes optional. | [optional]
|
15
|
+
**stored_card_info** | [**StoredCardInfo**](StoredCardInfo.md) | Contains information about the stored credit card payment.<br /> Either `CreditCardInfo` or `StoredCardInfo` is required; the other becomes optional. | [optional]
|
16
|
+
**send_notifications** | **BOOLEAN** | When `true`, indicates that email and SMS notifications should be sent to the client after purchase.<br /> Default: **true** | [optional]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# SwaggerClient::PurchaseContractResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**client_id** | **String** | The ID of the client who is purchasing the contract. | [optional]
|
7
|
+
**location_id** | **Integer** | The ID of the location where the contract is being purchased. | [optional]
|
8
|
+
**contract_id** | **Integer** | The ID of the general contract being purchased. | [optional]
|
9
|
+
**client_contract_id** | **Integer** | The ID of the specific contract being purchased by this specific client, not to be confused with the `ContractId`, which refers to a general contract that the business offers. | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# SwaggerClient::PurchaseGiftCardRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**test** | **BOOLEAN** | When `true`, allows you to test the request without affecting the database.<br /> When `false`, the request is carried out and the database is affected. | [optional]
|
7
|
+
**location_id** | **Integer** | The ID of the location where the gift card is being sold. |
|
8
|
+
**layout_id** | **Integer** | The ID of the layout used for the gift card’s image. | [optional]
|
9
|
+
**purchaser_client_id** | **String** | The RSSID of the client who is purchasing the gift card. |
|
10
|
+
**gift_card_id** | **Integer** | The product ID of the gift card being purchased. |
|
11
|
+
**send_email_receipt** | **BOOLEAN** | When `true`, indicates that a purchase receipt email should be sent to the purchasing client, if all settings are correctly configured.<br /> When `false`, no email is sent to the purchaser. | [optional]
|
12
|
+
**recipient_email** | **String** | The email address to send the gift card image to. This parameter is required if the `LayoutId` is not 0.<br /> Maximum length: **100** | [optional]
|
13
|
+
**recipient_name** | **String** | The name of the person who is to receive the gift card. This parameter is required if the `LayoutId` is not 0.<br /> Maximum length: **20** | [optional]
|
14
|
+
**title** | **String** | The text to use as the title of the gift card, for example: Happy Birthday, Maria! This parameter is required if the `LayoutId` is not 0.<br /> Maximum length: **20** | [optional]
|
15
|
+
**gift_message** | **String** | A personal message to include in the gift card.<br /> Maximum length: **300** | [optional]
|
16
|
+
**delivery_date** | **DateTime** | The date that the gift card’s image is to be delivered to the recipient. This parameter cannot be set to a date in the past. This parameter is required if the `LayoutId` is not 0. Default: **today** Minimum: **today** | [optional]
|
17
|
+
**payment_info** | [**CheckoutPaymentInfo**](CheckoutPaymentInfo.md) | Contains information about the payment. | [optional]
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# SwaggerClient::PurchaseGiftCardResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**barcode_id** | **String** | The barcode ID assigned to the purchased gift card. | [optional]
|
7
|
+
**value** | **Float** | The monetary value of the gift card. | [optional]
|
8
|
+
**amount_paid** | **Float** | The amount paid for the gift card by the purchaser. | [optional]
|
9
|
+
**from_name** | **String** | The name of the purchaser. | [optional]
|
10
|
+
**layout_id** | **Integer** | The ID of the layout used for this gift card. | [optional]
|
11
|
+
**email_receipt** | **BOOLEAN** | Whether or not an email receipt was sent to the purchaser. If true, a receipt was sent. | [optional]
|
12
|
+
**purchaser_client_id** | **String** | The client ID of the purchaser. | [optional]
|
13
|
+
**purchaser_email** | **String** | The purchaser’s email address. | [optional]
|
14
|
+
**recipient_email** | **String** | The recipient’s email address. | [optional]
|
15
|
+
**sale_id** | **Integer** | The sale ID of the gift card. | [optional]
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# SwaggerClient::PurchasedItem
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ProductID of the item. | [optional]
|
7
|
+
**is_service** | **BOOLEAN** | When `true`, indicates that the purchased item was a pricing option for a service. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SwaggerClient::Relationship
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of the relationship. | [optional]
|
7
|
+
**relationship_name1** | **String** | The name of the first relationship. | [optional]
|
8
|
+
**relationship_name2** | **String** | The name of the second relationship. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggerClient::RemoveClientFromClassRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**client_id** | **String** | The RSSID of the client to remove from the specified class. |
|
7
|
+
**class_id** | **Integer** | The ID of the class that you want to remove the client from. |
|
8
|
+
**test** | **BOOLEAN** | When `true`, the request ensures that its parameters are valid without affecting real data.<br /> When `false`, the request performs as intended and may affect live client data.<br /> Default: **false** | [optional]
|
9
|
+
**send_email** | **BOOLEAN** | When `true`, indicates that the client should be sent an email. Depending on the site and client settings, an email may or may not be sent.<br /> Default: **false** | [optional]
|
10
|
+
**late_cancel** | **BOOLEAN** | When `true`, indicates that the client is to be late cancelled from the class.<br /> When `false`, indicates that the client is to be early cancelled from the class.<br /> Default: **false** | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# SwaggerClient::RemoveClientFromClassResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**_class** | [**ModelClass**](ModelClass.md) | Contains information about the class from which the client was removed. | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# SwaggerClient::RemoveFromWaitlistRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**waitlist_entry_ids** | **Array<Integer>** | A list of waiting list IDs to remove from waiting lists. |
|
7
|
+
|
8
|
+
|
data/docs/Resource.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# SwaggerClient::Resource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of the resource. | [optional]
|
7
|
+
**name** | **String** | The name of the resource. | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Sale.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# SwaggerClient::Sale
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The sale ID. | [optional]
|
7
|
+
**sale_date** | **DateTime** | The date the item was sold. | [optional]
|
8
|
+
**sale_time** | **String** | The time the item was sold. | [optional]
|
9
|
+
**sale_date_time** | **DateTime** | The date and time the item was sold. | [optional]
|
10
|
+
**client_id** | **String** | The ID of the client who made the purchase. | [optional]
|
11
|
+
**purchased_items** | [**Array<PurchasedItem>**](PurchasedItem.md) | Contains information that describes the purchased items. | [optional]
|
12
|
+
**location_id** | **Integer** | The ID of the location where the sale takes place. | [optional]
|
13
|
+
**payments** | [**Array<SalePayment>**](SalePayment.md) | Contains information that describes the payments that contributed to this sale. | [optional]
|
14
|
+
|
15
|
+
|
data/docs/SaleApi.md
ADDED
@@ -0,0 +1,683 @@
|
|
1
|
+
# SwaggerClient::SaleApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mindbodyonline.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**sale_checkout_shopping_cart**](SaleApi.md#sale_checkout_shopping_cart) | **POST** /public/v{version}/sale/checkoutshoppingcart | Purchase pricing options, packages, retail products, or tips for a client.
|
8
|
+
[**sale_get_accepted_card_types**](SaleApi.md#sale_get_accepted_card_types) | **GET** /public/v{version}/sale/acceptedcardtypes | Get credit cards types that a site accepts.
|
9
|
+
[**sale_get_contracts**](SaleApi.md#sale_get_contracts) | **GET** /public/v{version}/sale/contracts | Get contracts available for purchase at a site.
|
10
|
+
[**sale_get_custom_payment_methods**](SaleApi.md#sale_get_custom_payment_methods) | **GET** /public/v{version}/sale/custompaymentmethods | Get payment methods that can be used to pay for sales at a site.
|
11
|
+
[**sale_get_gift_cards**](SaleApi.md#sale_get_gift_cards) | **GET** /public/v{version}/sale/giftcards | Get gift cards available for purchase at a site.
|
12
|
+
[**sale_get_packages**](SaleApi.md#sale_get_packages) | **GET** /public/v{version}/sale/packages | Get packages available for purchase at a site.
|
13
|
+
[**sale_get_products**](SaleApi.md#sale_get_products) | **GET** /public/v{version}/sale/products | Get retail products available for purchase at a site.
|
14
|
+
[**sale_get_sales**](SaleApi.md#sale_get_sales) | **GET** /public/v{version}/sale/sales | Get sales completed at a site.
|
15
|
+
[**sale_get_services**](SaleApi.md#sale_get_services) | **GET** /public/v{version}/sale/services | Get pricing options available for purchase at a site
|
16
|
+
[**sale_purchase_contract**](SaleApi.md#sale_purchase_contract) | **POST** /public/v{version}/sale/purchasecontract | Purchase a contract for a client.
|
17
|
+
[**sale_purchase_gift_card**](SaleApi.md#sale_purchase_gift_card) | **POST** /public/v{version}/sale/purchasegiftcard | Purchase a gift card for a client.
|
18
|
+
|
19
|
+
|
20
|
+
# **sale_checkout_shopping_cart**
|
21
|
+
> Object sale_checkout_shopping_cart(request, site_id, version, opts)
|
22
|
+
|
23
|
+
Purchase pricing options, packages, retail products, or tips for a client.
|
24
|
+
|
25
|
+
This endpoint provides a wide range of functionality. For example, you can use it when a client purchases new pricing options, retail products, packages, and tips. You can also combine purchasing a new pricing option and many other functions, such as booking a client into a class, booking a new appointment for a client, enrolling a client into an enrollment or course, or reconciling an unpaid, already booked appointment or class. Use this call when a client purchases: * a pricing option, after calling `GET Services` and choosing a specific pricing option’s ID * a retail product, after calling `GET Products` and choosing a specific retail product’s ID * a package, after calling `GET Packages` and choosing a specific package’s ID * a tip to give to a staff member, after calling `GET Staff` and choosing a specific staff member ID, and the amount that the client wants to tip The documentation provides explanations of the request body and response, as well as the cart item metadata, payment item metadata, and purchased cart items.
|
26
|
+
|
27
|
+
### Example
|
28
|
+
```ruby
|
29
|
+
# load the gem
|
30
|
+
require 'swagger_client'
|
31
|
+
|
32
|
+
api_instance = SwaggerClient::SaleApi.new
|
33
|
+
|
34
|
+
request = SwaggerClient::CheckoutShoppingCartRequest.new # CheckoutShoppingCartRequest |
|
35
|
+
|
36
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
37
|
+
|
38
|
+
version = 'version_example' # String |
|
39
|
+
|
40
|
+
opts = {
|
41
|
+
authorization: '' # String | A staff user authorization token.
|
42
|
+
}
|
43
|
+
|
44
|
+
begin
|
45
|
+
#Purchase pricing options, packages, retail products, or tips for a client.
|
46
|
+
result = api_instance.sale_checkout_shopping_cart(request, site_id, version, opts)
|
47
|
+
p result
|
48
|
+
rescue SwaggerClient::ApiError => e
|
49
|
+
puts "Exception when calling SaleApi->sale_checkout_shopping_cart: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**request** | [**CheckoutShoppingCartRequest**](CheckoutShoppingCartRequest.md)| |
|
58
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
59
|
+
**version** | **String**| |
|
60
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
**Object**
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
No authorization required
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, multipart/form-data
|
73
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# **sale_get_accepted_card_types**
|
78
|
+
> Array<String> sale_get_accepted_card_types(site_id, version, opts)
|
79
|
+
|
80
|
+
Get credit cards types that a site accepts.
|
81
|
+
|
82
|
+
Gets a list of card types that the site accepts. You can also use `GET Sites` to return the Site object, which contains individual accepted card types for requested sites. This endpoint has no query parameters.The response returns a list of strings. Possible values are: * Visa * MasterCard * Discover * AMEX
|
83
|
+
|
84
|
+
### Example
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'swagger_client'
|
88
|
+
|
89
|
+
api_instance = SwaggerClient::SaleApi.new
|
90
|
+
|
91
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
92
|
+
|
93
|
+
version = 'version_example' # String |
|
94
|
+
|
95
|
+
opts = {
|
96
|
+
authorization: '' # String | A staff user authorization token.
|
97
|
+
}
|
98
|
+
|
99
|
+
begin
|
100
|
+
#Get credit cards types that a site accepts.
|
101
|
+
result = api_instance.sale_get_accepted_card_types(site_id, version, opts)
|
102
|
+
p result
|
103
|
+
rescue SwaggerClient::ApiError => e
|
104
|
+
puts "Exception when calling SaleApi->sale_get_accepted_card_types: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
### Parameters
|
109
|
+
|
110
|
+
Name | Type | Description | Notes
|
111
|
+
------------- | ------------- | ------------- | -------------
|
112
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
113
|
+
**version** | **String**| |
|
114
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
115
|
+
|
116
|
+
### Return type
|
117
|
+
|
118
|
+
**Array<String>**
|
119
|
+
|
120
|
+
### Authorization
|
121
|
+
|
122
|
+
No authorization required
|
123
|
+
|
124
|
+
### HTTP request headers
|
125
|
+
|
126
|
+
- **Content-Type**: Not defined
|
127
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
# **sale_get_contracts**
|
132
|
+
> GetContractsResponse sale_get_contracts(request_location_id, site_id, version, opts)
|
133
|
+
|
134
|
+
Get contracts available for purchase at a site.
|
135
|
+
|
136
|
+
### Example
|
137
|
+
```ruby
|
138
|
+
# load the gem
|
139
|
+
require 'swagger_client'
|
140
|
+
|
141
|
+
api_instance = SwaggerClient::SaleApi.new
|
142
|
+
|
143
|
+
request_location_id = 56 # Integer | The ID of the location that has the requested contracts and AutoPay options.
|
144
|
+
|
145
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
146
|
+
|
147
|
+
version = 'version_example' # String |
|
148
|
+
|
149
|
+
opts = {
|
150
|
+
authorization: '', # String | A staff user authorization token.
|
151
|
+
request_consumer_id: 789, # Integer | The ID of the client.
|
152
|
+
request_contract_ids: [56], # Array<Integer> | When included, the response only contains details about the specified contract IDs.
|
153
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
154
|
+
request_offset: 56, # Integer | Page offset, defaults to 0.
|
155
|
+
request_sold_online: true # BOOLEAN | When `true`, the response only contains details about contracts and AutoPay options that can be sold online.<br /> When `false`, only contracts that are not intended to be sold online are returned.<br /> Default: **all contracts**
|
156
|
+
}
|
157
|
+
|
158
|
+
begin
|
159
|
+
#Get contracts available for purchase at a site.
|
160
|
+
result = api_instance.sale_get_contracts(request_location_id, site_id, version, opts)
|
161
|
+
p result
|
162
|
+
rescue SwaggerClient::ApiError => e
|
163
|
+
puts "Exception when calling SaleApi->sale_get_contracts: #{e}"
|
164
|
+
end
|
165
|
+
```
|
166
|
+
|
167
|
+
### Parameters
|
168
|
+
|
169
|
+
Name | Type | Description | Notes
|
170
|
+
------------- | ------------- | ------------- | -------------
|
171
|
+
**request_location_id** | **Integer**| The ID of the location that has the requested contracts and AutoPay options. |
|
172
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
173
|
+
**version** | **String**| |
|
174
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
175
|
+
**request_consumer_id** | **Integer**| The ID of the client. | [optional]
|
176
|
+
**request_contract_ids** | [**Array<Integer>**](Integer.md)| When included, the response only contains details about the specified contract IDs. | [optional]
|
177
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
178
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
179
|
+
**request_sold_online** | **BOOLEAN**| When `true`, the response only contains details about contracts and AutoPay options that can be sold online.<br /> When `false`, only contracts that are not intended to be sold online are returned.<br /> Default: **all contracts** | [optional]
|
180
|
+
|
181
|
+
### Return type
|
182
|
+
|
183
|
+
[**GetContractsResponse**](GetContractsResponse.md)
|
184
|
+
|
185
|
+
### Authorization
|
186
|
+
|
187
|
+
No authorization required
|
188
|
+
|
189
|
+
### HTTP request headers
|
190
|
+
|
191
|
+
- **Content-Type**: Not defined
|
192
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
# **sale_get_custom_payment_methods**
|
197
|
+
> GetCustomPaymentMethodsResponse sale_get_custom_payment_methods(site_id, version, opts)
|
198
|
+
|
199
|
+
Get payment methods that can be used to pay for sales at a site.
|
200
|
+
|
201
|
+
### Example
|
202
|
+
```ruby
|
203
|
+
# load the gem
|
204
|
+
require 'swagger_client'
|
205
|
+
|
206
|
+
api_instance = SwaggerClient::SaleApi.new
|
207
|
+
|
208
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
209
|
+
|
210
|
+
version = 'version_example' # String |
|
211
|
+
|
212
|
+
opts = {
|
213
|
+
authorization: '', # String | A staff user authorization token.
|
214
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
215
|
+
request_offset: 56 # Integer | Page offset, defaults to 0.
|
216
|
+
}
|
217
|
+
|
218
|
+
begin
|
219
|
+
#Get payment methods that can be used to pay for sales at a site.
|
220
|
+
result = api_instance.sale_get_custom_payment_methods(site_id, version, opts)
|
221
|
+
p result
|
222
|
+
rescue SwaggerClient::ApiError => e
|
223
|
+
puts "Exception when calling SaleApi->sale_get_custom_payment_methods: #{e}"
|
224
|
+
end
|
225
|
+
```
|
226
|
+
|
227
|
+
### Parameters
|
228
|
+
|
229
|
+
Name | Type | Description | Notes
|
230
|
+
------------- | ------------- | ------------- | -------------
|
231
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
232
|
+
**version** | **String**| |
|
233
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
234
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
235
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
236
|
+
|
237
|
+
### Return type
|
238
|
+
|
239
|
+
[**GetCustomPaymentMethodsResponse**](GetCustomPaymentMethodsResponse.md)
|
240
|
+
|
241
|
+
### Authorization
|
242
|
+
|
243
|
+
No authorization required
|
244
|
+
|
245
|
+
### HTTP request headers
|
246
|
+
|
247
|
+
- **Content-Type**: Not defined
|
248
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
# **sale_get_gift_cards**
|
253
|
+
> GetGiftCardResponse sale_get_gift_cards(site_id, version, opts)
|
254
|
+
|
255
|
+
Get gift cards available for purchase at a site.
|
256
|
+
|
257
|
+
### Example
|
258
|
+
```ruby
|
259
|
+
# load the gem
|
260
|
+
require 'swagger_client'
|
261
|
+
|
262
|
+
api_instance = SwaggerClient::SaleApi.new
|
263
|
+
|
264
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
265
|
+
|
266
|
+
version = 'version_example' # String |
|
267
|
+
|
268
|
+
opts = {
|
269
|
+
authorization: '', # String | A staff user authorization token.
|
270
|
+
request_ids: [56], # Array<Integer> | Filters the results to the requested gift card IDs.<br /> Default: **all** gift cards.
|
271
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
272
|
+
request_location_id: 56, # Integer | When included, returns gift cards that are sold at the provided location ID.
|
273
|
+
request_offset: 56, # Integer | Page offset, defaults to 0.
|
274
|
+
request_sold_online: true # BOOLEAN | When `true`, only returns gift cards that are sold online.<br /> Default: **false**
|
275
|
+
}
|
276
|
+
|
277
|
+
begin
|
278
|
+
#Get gift cards available for purchase at a site.
|
279
|
+
result = api_instance.sale_get_gift_cards(site_id, version, opts)
|
280
|
+
p result
|
281
|
+
rescue SwaggerClient::ApiError => e
|
282
|
+
puts "Exception when calling SaleApi->sale_get_gift_cards: #{e}"
|
283
|
+
end
|
284
|
+
```
|
285
|
+
|
286
|
+
### Parameters
|
287
|
+
|
288
|
+
Name | Type | Description | Notes
|
289
|
+
------------- | ------------- | ------------- | -------------
|
290
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
291
|
+
**version** | **String**| |
|
292
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
293
|
+
**request_ids** | [**Array<Integer>**](Integer.md)| Filters the results to the requested gift card IDs.<br /> Default: **all** gift cards. | [optional]
|
294
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
295
|
+
**request_location_id** | **Integer**| When included, returns gift cards that are sold at the provided location ID. | [optional]
|
296
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
297
|
+
**request_sold_online** | **BOOLEAN**| When `true`, only returns gift cards that are sold online.<br /> Default: **false** | [optional]
|
298
|
+
|
299
|
+
### Return type
|
300
|
+
|
301
|
+
[**GetGiftCardResponse**](GetGiftCardResponse.md)
|
302
|
+
|
303
|
+
### Authorization
|
304
|
+
|
305
|
+
No authorization required
|
306
|
+
|
307
|
+
### HTTP request headers
|
308
|
+
|
309
|
+
- **Content-Type**: Not defined
|
310
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
# **sale_get_packages**
|
315
|
+
> GetPackagesResponse sale_get_packages(site_id, version, opts)
|
316
|
+
|
317
|
+
Get packages available for purchase at a site.
|
318
|
+
|
319
|
+
A package is typically used to combine multiple services and/or products into a single offering. Staff members can check out multiple appointments while selling the package, and can discount the items included. For example, a spa might bundle a massage, a pedicure, a manicure, a facial, and a few selected beauty products into a package.
|
320
|
+
|
321
|
+
### Example
|
322
|
+
```ruby
|
323
|
+
# load the gem
|
324
|
+
require 'swagger_client'
|
325
|
+
|
326
|
+
api_instance = SwaggerClient::SaleApi.new
|
327
|
+
|
328
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
329
|
+
|
330
|
+
version = 'version_example' # String |
|
331
|
+
|
332
|
+
opts = {
|
333
|
+
authorization: '', # String | A staff user authorization token.
|
334
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
335
|
+
request_offset: 56, # Integer | Page offset, defaults to 0.
|
336
|
+
request_package_ids: [56], # Array<Integer> | A list of the packages IDs to filter by.
|
337
|
+
request_sell_online: true # BOOLEAN | When `true`, only returns products that can be sold online.<br /> When `false`, all products are returned.<br /> Default: **false**
|
338
|
+
}
|
339
|
+
|
340
|
+
begin
|
341
|
+
#Get packages available for purchase at a site.
|
342
|
+
result = api_instance.sale_get_packages(site_id, version, opts)
|
343
|
+
p result
|
344
|
+
rescue SwaggerClient::ApiError => e
|
345
|
+
puts "Exception when calling SaleApi->sale_get_packages: #{e}"
|
346
|
+
end
|
347
|
+
```
|
348
|
+
|
349
|
+
### Parameters
|
350
|
+
|
351
|
+
Name | Type | Description | Notes
|
352
|
+
------------- | ------------- | ------------- | -------------
|
353
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
354
|
+
**version** | **String**| |
|
355
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
356
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
357
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
358
|
+
**request_package_ids** | [**Array<Integer>**](Integer.md)| A list of the packages IDs to filter by. | [optional]
|
359
|
+
**request_sell_online** | **BOOLEAN**| When `true`, only returns products that can be sold online.<br /> When `false`, all products are returned.<br /> Default: **false** | [optional]
|
360
|
+
|
361
|
+
### Return type
|
362
|
+
|
363
|
+
[**GetPackagesResponse**](GetPackagesResponse.md)
|
364
|
+
|
365
|
+
### Authorization
|
366
|
+
|
367
|
+
No authorization required
|
368
|
+
|
369
|
+
### HTTP request headers
|
370
|
+
|
371
|
+
- **Content-Type**: Not defined
|
372
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
# **sale_get_products**
|
377
|
+
> GetProductsResponse sale_get_products(site_id, version, opts)
|
378
|
+
|
379
|
+
Get retail products available for purchase at a site.
|
380
|
+
|
381
|
+
### Example
|
382
|
+
```ruby
|
383
|
+
# load the gem
|
384
|
+
require 'swagger_client'
|
385
|
+
|
386
|
+
api_instance = SwaggerClient::SaleApi.new
|
387
|
+
|
388
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
389
|
+
|
390
|
+
version = 'version_example' # String |
|
391
|
+
|
392
|
+
opts = {
|
393
|
+
authorization: '', # String | A staff user authorization token.
|
394
|
+
request_category_ids: [56], # Array<Integer> | A list of category IDs to filter by.
|
395
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
396
|
+
request_location_id: 56, # Integer | The location ID to use to determine the tax for the products that this request returns.<br /> Default: **online store**
|
397
|
+
request_offset: 56, # Integer | Page offset, defaults to 0.
|
398
|
+
request_product_ids: ['request_product_ids_example'], # Array<String> | An ID filter for products.
|
399
|
+
request_search_text: 'request_search_text_example', # String | A search filter, used for searching by term.
|
400
|
+
request_sell_online: true, # BOOLEAN | When `true`, only products that can be sold online are returned.<br /> When `false`, all products are returned.<br /> Default: **false**
|
401
|
+
request_sub_category_ids: [56] # Array<Integer> | A list of subcategory IDs to filter by.
|
402
|
+
}
|
403
|
+
|
404
|
+
begin
|
405
|
+
#Get retail products available for purchase at a site.
|
406
|
+
result = api_instance.sale_get_products(site_id, version, opts)
|
407
|
+
p result
|
408
|
+
rescue SwaggerClient::ApiError => e
|
409
|
+
puts "Exception when calling SaleApi->sale_get_products: #{e}"
|
410
|
+
end
|
411
|
+
```
|
412
|
+
|
413
|
+
### Parameters
|
414
|
+
|
415
|
+
Name | Type | Description | Notes
|
416
|
+
------------- | ------------- | ------------- | -------------
|
417
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
418
|
+
**version** | **String**| |
|
419
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
420
|
+
**request_category_ids** | [**Array<Integer>**](Integer.md)| A list of category IDs to filter by. | [optional]
|
421
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
422
|
+
**request_location_id** | **Integer**| The location ID to use to determine the tax for the products that this request returns.<br /> Default: **online store** | [optional]
|
423
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
424
|
+
**request_product_ids** | [**Array<String>**](String.md)| An ID filter for products. | [optional]
|
425
|
+
**request_search_text** | **String**| A search filter, used for searching by term. | [optional]
|
426
|
+
**request_sell_online** | **BOOLEAN**| When `true`, only products that can be sold online are returned.<br /> When `false`, all products are returned.<br /> Default: **false** | [optional]
|
427
|
+
**request_sub_category_ids** | [**Array<Integer>**](Integer.md)| A list of subcategory IDs to filter by. | [optional]
|
428
|
+
|
429
|
+
### Return type
|
430
|
+
|
431
|
+
[**GetProductsResponse**](GetProductsResponse.md)
|
432
|
+
|
433
|
+
### Authorization
|
434
|
+
|
435
|
+
No authorization required
|
436
|
+
|
437
|
+
### HTTP request headers
|
438
|
+
|
439
|
+
- **Content-Type**: Not defined
|
440
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
# **sale_get_sales**
|
445
|
+
> GetSalesResponse sale_get_sales(site_id, version, opts)
|
446
|
+
|
447
|
+
Get sales completed at a site.
|
448
|
+
|
449
|
+
### Example
|
450
|
+
```ruby
|
451
|
+
# load the gem
|
452
|
+
require 'swagger_client'
|
453
|
+
|
454
|
+
api_instance = SwaggerClient::SaleApi.new
|
455
|
+
|
456
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
457
|
+
|
458
|
+
version = 'version_example' # String |
|
459
|
+
|
460
|
+
opts = {
|
461
|
+
authorization: '' # String | A staff user authorization token.
|
462
|
+
}
|
463
|
+
|
464
|
+
begin
|
465
|
+
#Get sales completed at a site.
|
466
|
+
result = api_instance.sale_get_sales(site_id, version, opts)
|
467
|
+
p result
|
468
|
+
rescue SwaggerClient::ApiError => e
|
469
|
+
puts "Exception when calling SaleApi->sale_get_sales: #{e}"
|
470
|
+
end
|
471
|
+
```
|
472
|
+
|
473
|
+
### Parameters
|
474
|
+
|
475
|
+
Name | Type | Description | Notes
|
476
|
+
------------- | ------------- | ------------- | -------------
|
477
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
478
|
+
**version** | **String**| |
|
479
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
480
|
+
|
481
|
+
### Return type
|
482
|
+
|
483
|
+
[**GetSalesResponse**](GetSalesResponse.md)
|
484
|
+
|
485
|
+
### Authorization
|
486
|
+
|
487
|
+
No authorization required
|
488
|
+
|
489
|
+
### HTTP request headers
|
490
|
+
|
491
|
+
- **Content-Type**: Not defined
|
492
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
# **sale_get_services**
|
497
|
+
> GetServicesResponse sale_get_services(site_id, version, opts)
|
498
|
+
|
499
|
+
Get pricing options available for purchase at a site
|
500
|
+
|
501
|
+
### Example
|
502
|
+
```ruby
|
503
|
+
# load the gem
|
504
|
+
require 'swagger_client'
|
505
|
+
|
506
|
+
api_instance = SwaggerClient::SaleApi.new
|
507
|
+
|
508
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
509
|
+
|
510
|
+
version = 'version_example' # String |
|
511
|
+
|
512
|
+
opts = {
|
513
|
+
authorization: '', # String | A staff user authorization token.
|
514
|
+
request_class_id: 56, # Integer | Filters to the pricing options for the specified class ID.
|
515
|
+
request_class_schedule_id: 56, # Integer | Filters to the pricing options for the specified class schedule ID.
|
516
|
+
request_hide_related_programs: true, # BOOLEAN | When `true`, indicates that pricing options of related programs are omitted from the response.<br /> Default: **false**
|
517
|
+
request_limit: 56, # Integer | Number of results to include, defaults to 100
|
518
|
+
request_location_id: 56, # Integer | When specified, for each returned pricing option, `TaxRate` and `TaxIncluded` are calculated according to the specified location. Note that this does not filter results to only services provided at the given location, and for locations where Value-Added Tax (VAT) rules apply, the `TaxRate` is set to zero.
|
519
|
+
request_offset: 56, # Integer | Page offset, defaults to 0.
|
520
|
+
request_program_ids: [56], # Array<Integer> | Filters to pricing options with the specified program IDs.
|
521
|
+
request_sell_online: true, # BOOLEAN | When `true`, filters to the pricing options that can be sold online.<br /> Default: **false**
|
522
|
+
request_service_ids: ['request_service_ids_example'], # Array<String> | Filters to the pricing options with the specified IDs. In this context, service and pricing option are used interchangeably.
|
523
|
+
request_session_type_ids: [56], # Array<Integer> | Filters to the pricing options with the specified session types IDs.
|
524
|
+
request_staff_id: 789 # Integer | Sets `Price` and `OnlinePrice` to the particular pricing of a specific staff member, if allowed by the business.
|
525
|
+
}
|
526
|
+
|
527
|
+
begin
|
528
|
+
#Get pricing options available for purchase at a site
|
529
|
+
result = api_instance.sale_get_services(site_id, version, opts)
|
530
|
+
p result
|
531
|
+
rescue SwaggerClient::ApiError => e
|
532
|
+
puts "Exception when calling SaleApi->sale_get_services: #{e}"
|
533
|
+
end
|
534
|
+
```
|
535
|
+
|
536
|
+
### Parameters
|
537
|
+
|
538
|
+
Name | Type | Description | Notes
|
539
|
+
------------- | ------------- | ------------- | -------------
|
540
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
541
|
+
**version** | **String**| |
|
542
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
543
|
+
**request_class_id** | **Integer**| Filters to the pricing options for the specified class ID. | [optional]
|
544
|
+
**request_class_schedule_id** | **Integer**| Filters to the pricing options for the specified class schedule ID. | [optional]
|
545
|
+
**request_hide_related_programs** | **BOOLEAN**| When `true`, indicates that pricing options of related programs are omitted from the response.<br /> Default: **false** | [optional]
|
546
|
+
**request_limit** | **Integer**| Number of results to include, defaults to 100 | [optional]
|
547
|
+
**request_location_id** | **Integer**| When specified, for each returned pricing option, `TaxRate` and `TaxIncluded` are calculated according to the specified location. Note that this does not filter results to only services provided at the given location, and for locations where Value-Added Tax (VAT) rules apply, the `TaxRate` is set to zero. | [optional]
|
548
|
+
**request_offset** | **Integer**| Page offset, defaults to 0. | [optional]
|
549
|
+
**request_program_ids** | [**Array<Integer>**](Integer.md)| Filters to pricing options with the specified program IDs. | [optional]
|
550
|
+
**request_sell_online** | **BOOLEAN**| When `true`, filters to the pricing options that can be sold online.<br /> Default: **false** | [optional]
|
551
|
+
**request_service_ids** | [**Array<String>**](String.md)| Filters to the pricing options with the specified IDs. In this context, service and pricing option are used interchangeably. | [optional]
|
552
|
+
**request_session_type_ids** | [**Array<Integer>**](Integer.md)| Filters to the pricing options with the specified session types IDs. | [optional]
|
553
|
+
**request_staff_id** | **Integer**| Sets `Price` and `OnlinePrice` to the particular pricing of a specific staff member, if allowed by the business. | [optional]
|
554
|
+
|
555
|
+
### Return type
|
556
|
+
|
557
|
+
[**GetServicesResponse**](GetServicesResponse.md)
|
558
|
+
|
559
|
+
### Authorization
|
560
|
+
|
561
|
+
No authorization required
|
562
|
+
|
563
|
+
### HTTP request headers
|
564
|
+
|
565
|
+
- **Content-Type**: Not defined
|
566
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
# **sale_purchase_contract**
|
571
|
+
> PurchaseContractResponse sale_purchase_contract(request, site_id, version, opts)
|
572
|
+
|
573
|
+
Purchase a contract for a client.
|
574
|
+
|
575
|
+
Allows a client to sign up for a contract or autopay using the information returned from the `GET Contracts` endpoint. The client can pay with a new credit card or with a stored credit card. The client must exist at the site specified before this call is made. This endpoint allows a developer to specify whether a client pays now or pays on the `StartDate`.If you are building a client-facing experience, you should talk with the business owner to understand the owner’s policies before you give clients a choice of the two payment types.
|
576
|
+
|
577
|
+
### Example
|
578
|
+
```ruby
|
579
|
+
# load the gem
|
580
|
+
require 'swagger_client'
|
581
|
+
|
582
|
+
api_instance = SwaggerClient::SaleApi.new
|
583
|
+
|
584
|
+
request = SwaggerClient::PurchaseContractRequest.new # PurchaseContractRequest |
|
585
|
+
|
586
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
587
|
+
|
588
|
+
version = 'version_example' # String |
|
589
|
+
|
590
|
+
opts = {
|
591
|
+
authorization: '' # String | A staff user authorization token.
|
592
|
+
}
|
593
|
+
|
594
|
+
begin
|
595
|
+
#Purchase a contract for a client.
|
596
|
+
result = api_instance.sale_purchase_contract(request, site_id, version, opts)
|
597
|
+
p result
|
598
|
+
rescue SwaggerClient::ApiError => e
|
599
|
+
puts "Exception when calling SaleApi->sale_purchase_contract: #{e}"
|
600
|
+
end
|
601
|
+
```
|
602
|
+
|
603
|
+
### Parameters
|
604
|
+
|
605
|
+
Name | Type | Description | Notes
|
606
|
+
------------- | ------------- | ------------- | -------------
|
607
|
+
**request** | [**PurchaseContractRequest**](PurchaseContractRequest.md)| |
|
608
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
609
|
+
**version** | **String**| |
|
610
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
611
|
+
|
612
|
+
### Return type
|
613
|
+
|
614
|
+
[**PurchaseContractResponse**](PurchaseContractResponse.md)
|
615
|
+
|
616
|
+
### Authorization
|
617
|
+
|
618
|
+
No authorization required
|
619
|
+
|
620
|
+
### HTTP request headers
|
621
|
+
|
622
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, multipart/form-data
|
623
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
# **sale_purchase_gift_card**
|
628
|
+
> PurchaseGiftCardResponse sale_purchase_gift_card(request, site_id, version, opts)
|
629
|
+
|
630
|
+
Purchase a gift card for a client.
|
631
|
+
|
632
|
+
Allows a client to purchase a gift card from a business in a variety of designs. The card can be emailed to the recipient on a specific day, and a card title and a personal message can be added.
|
633
|
+
|
634
|
+
### Example
|
635
|
+
```ruby
|
636
|
+
# load the gem
|
637
|
+
require 'swagger_client'
|
638
|
+
|
639
|
+
api_instance = SwaggerClient::SaleApi.new
|
640
|
+
|
641
|
+
request = SwaggerClient::PurchaseGiftCardRequest.new # PurchaseGiftCardRequest |
|
642
|
+
|
643
|
+
site_id = 'site_id_example' # String | ID of the site from which to pull data.
|
644
|
+
|
645
|
+
version = 'version_example' # String |
|
646
|
+
|
647
|
+
opts = {
|
648
|
+
authorization: '' # String | A staff user authorization token.
|
649
|
+
}
|
650
|
+
|
651
|
+
begin
|
652
|
+
#Purchase a gift card for a client.
|
653
|
+
result = api_instance.sale_purchase_gift_card(request, site_id, version, opts)
|
654
|
+
p result
|
655
|
+
rescue SwaggerClient::ApiError => e
|
656
|
+
puts "Exception when calling SaleApi->sale_purchase_gift_card: #{e}"
|
657
|
+
end
|
658
|
+
```
|
659
|
+
|
660
|
+
### Parameters
|
661
|
+
|
662
|
+
Name | Type | Description | Notes
|
663
|
+
------------- | ------------- | ------------- | -------------
|
664
|
+
**request** | [**PurchaseGiftCardRequest**](PurchaseGiftCardRequest.md)| |
|
665
|
+
**site_id** | **String**| ID of the site from which to pull data. |
|
666
|
+
**version** | **String**| |
|
667
|
+
**authorization** | **String**| A staff user authorization token. | [optional] [default to ]
|
668
|
+
|
669
|
+
### Return type
|
670
|
+
|
671
|
+
[**PurchaseGiftCardResponse**](PurchaseGiftCardResponse.md)
|
672
|
+
|
673
|
+
### Authorization
|
674
|
+
|
675
|
+
No authorization required
|
676
|
+
|
677
|
+
### HTTP request headers
|
678
|
+
|
679
|
+
- **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, multipart/form-data
|
680
|
+
- **Accept**: application/json, text/json, application/xml, text/xml, multipart/form-data
|
681
|
+
|
682
|
+
|
683
|
+
|