mindbody-api-v6 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (624) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +357 -0
  4. data/Rakefile +8 -0
  5. data/docs/AddAppointmentRequest.md +23 -0
  6. data/docs/AddAppointmentResponse.md +8 -0
  7. data/docs/AddArrivalRequest.md +9 -0
  8. data/docs/AddArrivalResponse.md +9 -0
  9. data/docs/AddClientRequest.md +61 -0
  10. data/docs/AddClientResponse.md +8 -0
  11. data/docs/AddClientToClassRequest.md +17 -0
  12. data/docs/AddClientToClassResponse.md +8 -0
  13. data/docs/AddClientToClassVisit.md +28 -0
  14. data/docs/AddClientToEnrollmentRequest.md +15 -0
  15. data/docs/AddContactLogRequest.md +16 -0
  16. data/docs/AddContactLogType.md +9 -0
  17. data/docs/Amenity.md +9 -0
  18. data/docs/Appointment.md +24 -0
  19. data/docs/AppointmentApi.md +460 -0
  20. data/docs/AppointmentOption.md +11 -0
  21. data/docs/AssignedClientIndex.md +9 -0
  22. data/docs/AutopaySchedule.md +10 -0
  23. data/docs/Availability.md +15 -0
  24. data/docs/BookingWindow.md +11 -0
  25. data/docs/CheckoutAppointmentBookingRequest.md +14 -0
  26. data/docs/CheckoutItem.md +9 -0
  27. data/docs/CheckoutItemWrapper.md +17 -0
  28. data/docs/CheckoutPaymentInfo.md +9 -0
  29. data/docs/CheckoutShoppingCartRequest.md +18 -0
  30. data/docs/ClassApi.md +589 -0
  31. data/docs/ClassDescription.md +22 -0
  32. data/docs/ClassPayrollEvent.md +10 -0
  33. data/docs/ClassSchedule.md +29 -0
  34. data/docs/Client.md +61 -0
  35. data/docs/ClientApi.md +1473 -0
  36. data/docs/ClientContract.md +16 -0
  37. data/docs/ClientCreditCard.md +17 -0
  38. data/docs/ClientDocument.md +10 -0
  39. data/docs/ClientIndex.md +13 -0
  40. data/docs/ClientIndexValue.md +10 -0
  41. data/docs/ClientMembership.md +20 -0
  42. data/docs/ClientPurchaseRecord.md +16 -0
  43. data/docs/ClientRelationship.md +10 -0
  44. data/docs/ClientService.md +18 -0
  45. data/docs/Color.md +9 -0
  46. data/docs/ContactLog.md +18 -0
  47. data/docs/ContactLogComment.md +11 -0
  48. data/docs/ContactLogSubType.md +8 -0
  49. data/docs/ContactLogType.md +9 -0
  50. data/docs/Contract.md +41 -0
  51. data/docs/ContractItem.md +14 -0
  52. data/docs/Course.md +17 -0
  53. data/docs/CreditCardInfo.md +16 -0
  54. data/docs/CrossRegionalClientAssociation.md +10 -0
  55. data/docs/CustomClientField.md +10 -0
  56. data/docs/CustomClientFieldValue.md +11 -0
  57. data/docs/CustomPaymentMethod.md +9 -0
  58. data/docs/EnrollmentApi.md +137 -0
  59. data/docs/FormulaNote.md +12 -0
  60. data/docs/GetActivationCodeResponse.md +9 -0
  61. data/docs/GetActiveClientMembershipsRequest.md +11 -0
  62. data/docs/GetActiveClientMembershipsResponse.md +9 -0
  63. data/docs/GetActiveSessionTimesRequest.md +13 -0
  64. data/docs/GetActiveSessionTimesResponse.md +9 -0
  65. data/docs/GetAppointmentOptionsResponse.md +8 -0
  66. data/docs/GetBookableItemsRequest.md +16 -0
  67. data/docs/GetBookableItemsResponse.md +9 -0
  68. data/docs/GetClassDescriptionsRequest.md +15 -0
  69. data/docs/GetClassDescriptionsResponse.md +9 -0
  70. data/docs/GetClassPayrollRequest.md +13 -0
  71. data/docs/GetClassPayrollResponse.md +9 -0
  72. data/docs/GetClassSchedulesRequest.md +16 -0
  73. data/docs/GetClassSchedulesResponse.md +9 -0
  74. data/docs/GetClassVisitsRequest.md +9 -0
  75. data/docs/GetClassVisitsResponse.md +8 -0
  76. data/docs/GetClassesRequest.md +22 -0
  77. data/docs/GetClassesResponse.md +9 -0
  78. data/docs/GetClientAccountBalancesRequest.md +12 -0
  79. data/docs/GetClientAccountBalancesResponse.md +9 -0
  80. data/docs/GetClientContractsRequest.md +12 -0
  81. data/docs/GetClientContractsResponse.md +9 -0
  82. data/docs/GetClientFormulaNotesRequest.md +11 -0
  83. data/docs/GetClientFormulaNotesResponse.md +9 -0
  84. data/docs/GetClientIndexesRequest.md +8 -0
  85. data/docs/GetClientIndexesResponse.md +8 -0
  86. data/docs/GetClientPurchasesRequest.md +13 -0
  87. data/docs/GetClientPurchasesResponse.md +9 -0
  88. data/docs/GetClientReferralTypesRequest.md +8 -0
  89. data/docs/GetClientReferralTypesResponse.md +8 -0
  90. data/docs/GetClientServicesRequest.md +20 -0
  91. data/docs/GetClientServicesResponse.md +9 -0
  92. data/docs/GetClientVisitsRequest.md +15 -0
  93. data/docs/GetClientVisitsResponse.md +9 -0
  94. data/docs/GetClientsRequest.md +13 -0
  95. data/docs/GetClientsResponse.md +9 -0
  96. data/docs/GetContactLogsRequest.md +16 -0
  97. data/docs/GetContactLogsResponse.md +9 -0
  98. data/docs/GetContractsRequest.md +13 -0
  99. data/docs/GetContractsResponse.md +9 -0
  100. data/docs/GetCrossRegionalClientAssociationsRequest.md +11 -0
  101. data/docs/GetCrossRegionalClientAssociationsResponse.md +9 -0
  102. data/docs/GetCustomClientFieldsRequest.md +9 -0
  103. data/docs/GetCustomClientFieldsResponse.md +9 -0
  104. data/docs/GetCustomPaymentMethodsRequest.md +9 -0
  105. data/docs/GetCustomPaymentMethodsResponse.md +9 -0
  106. data/docs/GetEnrollmentsRequest.md +16 -0
  107. data/docs/GetEnrollmentsResponse.md +9 -0
  108. data/docs/GetGiftCardResponse.md +9 -0
  109. data/docs/GetGiftCardsRequest.md +12 -0
  110. data/docs/GetLocationsRequest.md +9 -0
  111. data/docs/GetLocationsResponse.md +9 -0
  112. data/docs/GetPackagesRequest.md +11 -0
  113. data/docs/GetPackagesResponse.md +9 -0
  114. data/docs/GetProductsRequest.md +15 -0
  115. data/docs/GetProductsResponse.md +9 -0
  116. data/docs/GetProgramsRequest.md +11 -0
  117. data/docs/GetProgramsResponse.md +9 -0
  118. data/docs/GetRequiredClientFieldsResponse.md +8 -0
  119. data/docs/GetResourcesRequest.md +13 -0
  120. data/docs/GetResourcesResponse.md +9 -0
  121. data/docs/GetSalesRequest.md +7 -0
  122. data/docs/GetSalesResponse.md +9 -0
  123. data/docs/GetScheduleItemsRequest.md +14 -0
  124. data/docs/GetScheduleItemsResponse.md +9 -0
  125. data/docs/GetServicesRequest.md +18 -0
  126. data/docs/GetServicesResponse.md +9 -0
  127. data/docs/GetSessionTypesRequest.md +11 -0
  128. data/docs/GetSessionTypesResponse.md +9 -0
  129. data/docs/GetSitesRequest.md +10 -0
  130. data/docs/GetSitesResponse.md +9 -0
  131. data/docs/GetStaffAppointmentsRequest.md +15 -0
  132. data/docs/GetStaffAppointmentsResponse.md +9 -0
  133. data/docs/GetStaffPermissionsRequest.md +8 -0
  134. data/docs/GetStaffPermissionsResponse.md +8 -0
  135. data/docs/GetStaffRequest.md +14 -0
  136. data/docs/GetStaffResponse.md +9 -0
  137. data/docs/GetTimeClockRequest.md +13 -0
  138. data/docs/GetTimeClockResponse.md +9 -0
  139. data/docs/GetWaitlistEntriesRequest.md +14 -0
  140. data/docs/GetWaitlistEntriesResponse.md +9 -0
  141. data/docs/GiftCard.md +19 -0
  142. data/docs/GiftCardLayout.md +9 -0
  143. data/docs/IssueRequest.md +9 -0
  144. data/docs/IssueResponse.md +10 -0
  145. data/docs/Level.md +10 -0
  146. data/docs/Liability.md +10 -0
  147. data/docs/Location.md +32 -0
  148. data/docs/MembershipTypeRestriction.md +9 -0
  149. data/docs/ModelClass.md +33 -0
  150. data/docs/Package.md +13 -0
  151. data/docs/PaginationResponse.md +11 -0
  152. data/docs/PayrollApi.md +140 -0
  153. data/docs/Product.md +18 -0
  154. data/docs/Program.md +11 -0
  155. data/docs/ProspectStage.md +10 -0
  156. data/docs/PurchaseContractRequest.md +18 -0
  157. data/docs/PurchaseContractResponse.md +11 -0
  158. data/docs/PurchaseGiftCardRequest.md +19 -0
  159. data/docs/PurchaseGiftCardResponse.md +17 -0
  160. data/docs/PurchasedItem.md +9 -0
  161. data/docs/Relationship.md +10 -0
  162. data/docs/RemoveClientFromClassRequest.md +12 -0
  163. data/docs/RemoveClientFromClassResponse.md +8 -0
  164. data/docs/RemoveFromWaitlistRequest.md +8 -0
  165. data/docs/RemoveFromWaitlistResponse.md +7 -0
  166. data/docs/Resource.md +9 -0
  167. data/docs/Sale.md +15 -0
  168. data/docs/SaleApi.md +683 -0
  169. data/docs/SalePayment.md +12 -0
  170. data/docs/SalesRep.md +12 -0
  171. data/docs/SendPasswordResetEmailRequest.md +10 -0
  172. data/docs/Service.md +16 -0
  173. data/docs/SessionType.md +17 -0
  174. data/docs/Site.md +27 -0
  175. data/docs/SiteApi.md +362 -0
  176. data/docs/Size.md +9 -0
  177. data/docs/Staff.md +31 -0
  178. data/docs/StaffApi.md +131 -0
  179. data/docs/StaffPermissionGroup.md +11 -0
  180. data/docs/StoredCardInfo.md +8 -0
  181. data/docs/SubstituteClassTeacherRequest.md +13 -0
  182. data/docs/SubstituteClassTeacherResponse.md +8 -0
  183. data/docs/SubstituteTeacherClass.md +27 -0
  184. data/docs/TimeCardEvent.md +10 -0
  185. data/docs/TimeClockReport.md +13 -0
  186. data/docs/Unavailability.md +11 -0
  187. data/docs/UpcomingAutopayEvent.md +11 -0
  188. data/docs/UpdateAppointmentRequest.md +19 -0
  189. data/docs/UpdateAppointmentResponse.md +8 -0
  190. data/docs/UpdateClientRequest.md +11 -0
  191. data/docs/UpdateClientResponse.md +8 -0
  192. data/docs/UpdateClientServiceRequest.md +11 -0
  193. data/docs/UpdateClientServiceResponse.md +8 -0
  194. data/docs/UpdateClientVisitRequest.md +13 -0
  195. data/docs/UpdateClientVisitResponse.md +8 -0
  196. data/docs/UpdateContactLogComment.md +9 -0
  197. data/docs/UpdateContactLogRequest.md +16 -0
  198. data/docs/UpdateContactLogType.md +9 -0
  199. data/docs/UploadClientDocumentRequest.md +9 -0
  200. data/docs/UploadClientDocumentResponse.md +9 -0
  201. data/docs/UploadClientPhotoRequest.md +9 -0
  202. data/docs/UploadClientPhotoResponse.md +9 -0
  203. data/docs/User.md +11 -0
  204. data/docs/UserTokenApi.md +115 -0
  205. data/docs/Visit.md +25 -0
  206. data/docs/WaitlistEntry.md +16 -0
  207. data/git_push.sh +55 -0
  208. data/lib/swagger_client.rb +241 -0
  209. data/lib/swagger_client/api/appointment_api.rb +570 -0
  210. data/lib/swagger_client/api/class_api.rb +727 -0
  211. data/lib/swagger_client/api/client_api.rb +1795 -0
  212. data/lib/swagger_client/api/enrollment_api.rb +180 -0
  213. data/lib/swagger_client/api/payroll_api.rb +181 -0
  214. data/lib/swagger_client/api/sale_api.rb +829 -0
  215. data/lib/swagger_client/api/site_api.rb +433 -0
  216. data/lib/swagger_client/api/staff_api.rb +171 -0
  217. data/lib/swagger_client/api/user_token_api.rb +150 -0
  218. data/lib/swagger_client/api_client.rb +389 -0
  219. data/lib/swagger_client/api_error.rb +38 -0
  220. data/lib/swagger_client/configuration.rb +209 -0
  221. data/lib/swagger_client/models/add_appointment_request.rb +395 -0
  222. data/lib/swagger_client/models/add_appointment_response.rb +184 -0
  223. data/lib/swagger_client/models/add_arrival_request.rb +204 -0
  224. data/lib/swagger_client/models/add_arrival_response.rb +194 -0
  225. data/lib/swagger_client/models/add_client_request.rb +766 -0
  226. data/lib/swagger_client/models/add_client_response.rb +184 -0
  227. data/lib/swagger_client/models/add_client_to_class_request.rb +284 -0
  228. data/lib/swagger_client/models/add_client_to_class_response.rb +184 -0
  229. data/lib/swagger_client/models/add_client_to_class_visit.rb +442 -0
  230. data/lib/swagger_client/models/add_client_to_enrollment_request.rb +266 -0
  231. data/lib/swagger_client/models/add_contact_log_request.rb +278 -0
  232. data/lib/swagger_client/models/add_contact_log_type.rb +197 -0
  233. data/lib/swagger_client/models/amenity.rb +195 -0
  234. data/lib/swagger_client/models/appointment.rb +393 -0
  235. data/lib/swagger_client/models/appointment_option.rb +215 -0
  236. data/lib/swagger_client/models/assigned_client_index.rb +195 -0
  237. data/lib/swagger_client/models/autopay_schedule.rb +204 -0
  238. data/lib/swagger_client/models/availability.rb +257 -0
  239. data/lib/swagger_client/models/booking_window.rb +215 -0
  240. data/lib/swagger_client/models/checkout_appointment_booking_request.rb +246 -0
  241. data/lib/swagger_client/models/checkout_item.rb +196 -0
  242. data/lib/swagger_client/models/checkout_item_wrapper.rb +286 -0
  243. data/lib/swagger_client/models/checkout_payment_info.rb +196 -0
  244. data/lib/swagger_client/models/checkout_shopping_cart_request.rb +318 -0
  245. data/lib/swagger_client/models/class_description.rb +325 -0
  246. data/lib/swagger_client/models/class_payroll_event.rb +204 -0
  247. data/lib/swagger_client/models/class_schedule.rb +399 -0
  248. data/lib/swagger_client/models/client.rb +769 -0
  249. data/lib/swagger_client/models/client_contract.rb +301 -0
  250. data/lib/swagger_client/models/client_credit_card.rb +275 -0
  251. data/lib/swagger_client/models/client_document.rb +238 -0
  252. data/lib/swagger_client/models/client_index.rb +271 -0
  253. data/lib/swagger_client/models/client_index_value.rb +205 -0
  254. data/lib/swagger_client/models/client_membership.rb +340 -0
  255. data/lib/swagger_client/models/client_purchase_record.rb +265 -0
  256. data/lib/swagger_client/models/client_relationship.rb +205 -0
  257. data/lib/swagger_client/models/client_service.rb +319 -0
  258. data/lib/swagger_client/models/color.rb +195 -0
  259. data/lib/swagger_client/models/contact_log.rb +289 -0
  260. data/lib/swagger_client/models/contact_log_comment.rb +215 -0
  261. data/lib/swagger_client/models/contact_log_sub_type.rb +185 -0
  262. data/lib/swagger_client/models/contact_log_type.rb +197 -0
  263. data/lib/swagger_client/models/contract.rb +522 -0
  264. data/lib/swagger_client/models/contract_item.rb +244 -0
  265. data/lib/swagger_client/models/course.rb +275 -0
  266. data/lib/swagger_client/models/credit_card_info.rb +256 -0
  267. data/lib/swagger_client/models/cross_regional_client_association.rb +205 -0
  268. data/lib/swagger_client/models/custom_client_field.rb +205 -0
  269. data/lib/swagger_client/models/custom_client_field_value.rb +215 -0
  270. data/lib/swagger_client/models/custom_payment_method.rb +194 -0
  271. data/lib/swagger_client/models/formula_note.rb +225 -0
  272. data/lib/swagger_client/models/get_activation_code_response.rb +194 -0
  273. data/lib/swagger_client/models/get_active_client_memberships_request.rb +219 -0
  274. data/lib/swagger_client/models/get_active_client_memberships_response.rb +196 -0
  275. data/lib/swagger_client/models/get_active_session_times_request.rb +270 -0
  276. data/lib/swagger_client/models/get_active_session_times_response.rb +196 -0
  277. data/lib/swagger_client/models/get_appointment_options_response.rb +186 -0
  278. data/lib/swagger_client/models/get_bookable_items_request.rb +275 -0
  279. data/lib/swagger_client/models/get_bookable_items_response.rb +196 -0
  280. data/lib/swagger_client/models/get_class_descriptions_request.rb +256 -0
  281. data/lib/swagger_client/models/get_class_descriptions_response.rb +196 -0
  282. data/lib/swagger_client/models/get_class_payroll_request.rb +234 -0
  283. data/lib/swagger_client/models/get_class_payroll_response.rb +196 -0
  284. data/lib/swagger_client/models/get_class_schedules_request.rb +274 -0
  285. data/lib/swagger_client/models/get_class_schedules_response.rb +196 -0
  286. data/lib/swagger_client/models/get_class_visits_request.rb +194 -0
  287. data/lib/swagger_client/models/get_class_visits_response.rb +184 -0
  288. data/lib/swagger_client/models/get_classes_request.rb +338 -0
  289. data/lib/swagger_client/models/get_classes_response.rb +196 -0
  290. data/lib/swagger_client/models/get_client_account_balances_request.rb +231 -0
  291. data/lib/swagger_client/models/get_client_account_balances_response.rb +196 -0
  292. data/lib/swagger_client/models/get_client_contracts_request.rb +229 -0
  293. data/lib/swagger_client/models/get_client_contracts_response.rb +196 -0
  294. data/lib/swagger_client/models/get_client_formula_notes_request.rb +214 -0
  295. data/lib/swagger_client/models/get_client_formula_notes_response.rb +196 -0
  296. data/lib/swagger_client/models/get_client_indexes_request.rb +184 -0
  297. data/lib/swagger_client/models/get_client_indexes_response.rb +186 -0
  298. data/lib/swagger_client/models/get_client_purchases_request.rb +239 -0
  299. data/lib/swagger_client/models/get_client_purchases_response.rb +196 -0
  300. data/lib/swagger_client/models/get_client_referral_types_request.rb +184 -0
  301. data/lib/swagger_client/models/get_client_referral_types_response.rb +186 -0
  302. data/lib/swagger_client/models/get_client_services_request.rb +313 -0
  303. data/lib/swagger_client/models/get_client_services_response.rb +196 -0
  304. data/lib/swagger_client/models/get_client_visits_request.rb +259 -0
  305. data/lib/swagger_client/models/get_client_visits_response.rb +196 -0
  306. data/lib/swagger_client/models/get_clients_request.rb +236 -0
  307. data/lib/swagger_client/models/get_clients_response.rb +196 -0
  308. data/lib/swagger_client/models/get_contact_logs_request.rb +275 -0
  309. data/lib/swagger_client/models/get_contact_logs_response.rb +196 -0
  310. data/lib/swagger_client/models/get_contracts_request.rb +241 -0
  311. data/lib/swagger_client/models/get_contracts_response.rb +196 -0
  312. data/lib/swagger_client/models/get_cross_regional_client_associations_request.rb +214 -0
  313. data/lib/swagger_client/models/get_cross_regional_client_associations_response.rb +196 -0
  314. data/lib/swagger_client/models/get_custom_client_fields_request.rb +194 -0
  315. data/lib/swagger_client/models/get_custom_client_fields_response.rb +196 -0
  316. data/lib/swagger_client/models/get_custom_payment_methods_request.rb +194 -0
  317. data/lib/swagger_client/models/get_custom_payment_methods_response.rb +196 -0
  318. data/lib/swagger_client/models/get_enrollments_request.rb +274 -0
  319. data/lib/swagger_client/models/get_enrollments_response.rb +196 -0
  320. data/lib/swagger_client/models/get_gift_card_response.rb +196 -0
  321. data/lib/swagger_client/models/get_gift_cards_request.rb +226 -0
  322. data/lib/swagger_client/models/get_locations_request.rb +194 -0
  323. data/lib/swagger_client/models/get_locations_response.rb +196 -0
  324. data/lib/swagger_client/models/get_packages_request.rb +216 -0
  325. data/lib/swagger_client/models/get_packages_response.rb +196 -0
  326. data/lib/swagger_client/models/get_products_request.rb +260 -0
  327. data/lib/swagger_client/models/get_products_response.rb +196 -0
  328. data/lib/swagger_client/models/get_programs_request.rb +248 -0
  329. data/lib/swagger_client/models/get_programs_response.rb +196 -0
  330. data/lib/swagger_client/models/get_required_client_fields_response.rb +186 -0
  331. data/lib/swagger_client/models/get_resources_request.rb +236 -0
  332. data/lib/swagger_client/models/get_resources_response.rb +196 -0
  333. data/lib/swagger_client/models/get_sales_request.rb +174 -0
  334. data/lib/swagger_client/models/get_sales_response.rb +196 -0
  335. data/lib/swagger_client/models/get_schedule_items_request.rb +248 -0
  336. data/lib/swagger_client/models/get_schedule_items_response.rb +196 -0
  337. data/lib/swagger_client/models/get_services_request.rb +290 -0
  338. data/lib/swagger_client/models/get_services_response.rb +196 -0
  339. data/lib/swagger_client/models/get_session_types_request.rb +216 -0
  340. data/lib/swagger_client/models/get_session_types_response.rb +196 -0
  341. data/lib/swagger_client/models/get_sites_request.rb +206 -0
  342. data/lib/swagger_client/models/get_sites_response.rb +196 -0
  343. data/lib/swagger_client/models/get_staff_appointments_request.rb +262 -0
  344. data/lib/swagger_client/models/get_staff_appointments_response.rb +196 -0
  345. data/lib/swagger_client/models/get_staff_permissions_request.rb +189 -0
  346. data/lib/swagger_client/models/get_staff_permissions_response.rb +184 -0
  347. data/lib/swagger_client/models/get_staff_request.rb +248 -0
  348. data/lib/swagger_client/models/get_staff_response.rb +195 -0
  349. data/lib/swagger_client/models/get_time_clock_request.rb +234 -0
  350. data/lib/swagger_client/models/get_time_clock_response.rb +196 -0
  351. data/lib/swagger_client/models/get_waitlist_entries_request.rb +252 -0
  352. data/lib/swagger_client/models/get_waitlist_entries_response.rb +196 -0
  353. data/lib/swagger_client/models/gift_card.rb +300 -0
  354. data/lib/swagger_client/models/gift_card_layout.rb +195 -0
  355. data/lib/swagger_client/models/issue_request.rb +195 -0
  356. data/lib/swagger_client/models/issue_response.rb +204 -0
  357. data/lib/swagger_client/models/level.rb +205 -0
  358. data/lib/swagger_client/models/liability.rb +204 -0
  359. data/lib/swagger_client/models/location.rb +428 -0
  360. data/lib/swagger_client/models/membership_type_restriction.rb +194 -0
  361. data/lib/swagger_client/models/model_class.rb +473 -0
  362. data/lib/swagger_client/models/package.rb +238 -0
  363. data/lib/swagger_client/models/pagination_response.rb +214 -0
  364. data/lib/swagger_client/models/product.rb +284 -0
  365. data/lib/swagger_client/models/program.rb +248 -0
  366. data/lib/swagger_client/models/prospect_stage.rb +204 -0
  367. data/lib/swagger_client/models/purchase_contract_request.rb +309 -0
  368. data/lib/swagger_client/models/purchase_contract_response.rb +214 -0
  369. data/lib/swagger_client/models/purchase_gift_card_request.rb +309 -0
  370. data/lib/swagger_client/models/purchase_gift_card_response.rb +274 -0
  371. data/lib/swagger_client/models/purchased_item.rb +194 -0
  372. data/lib/swagger_client/models/relationship.rb +205 -0
  373. data/lib/swagger_client/models/remove_client_from_class_request.rb +234 -0
  374. data/lib/swagger_client/models/remove_client_from_class_response.rb +184 -0
  375. data/lib/swagger_client/models/remove_from_waitlist_request.rb +191 -0
  376. data/lib/swagger_client/models/remove_from_waitlist_response.rb +174 -0
  377. data/lib/swagger_client/models/resource.rb +195 -0
  378. data/lib/swagger_client/models/sale.rb +258 -0
  379. data/lib/swagger_client/models/sale_payment.rb +224 -0
  380. data/lib/swagger_client/models/sales_rep.rb +226 -0
  381. data/lib/swagger_client/models/send_password_reset_email_request.rb +220 -0
  382. data/lib/swagger_client/models/service.rb +264 -0
  383. data/lib/swagger_client/models/session_type.rb +308 -0
  384. data/lib/swagger_client/models/site.rb +374 -0
  385. data/lib/swagger_client/models/size.rb +194 -0
  386. data/lib/swagger_client/models/staff.rb +420 -0
  387. data/lib/swagger_client/models/staff_permission_group.rb +240 -0
  388. data/lib/swagger_client/models/stored_card_info.rb +183 -0
  389. data/lib/swagger_client/models/substitute_class_teacher_request.rb +244 -0
  390. data/lib/swagger_client/models/substitute_class_teacher_response.rb +184 -0
  391. data/lib/swagger_client/models/substitute_teacher_class.rb +375 -0
  392. data/lib/swagger_client/models/time_card_event.rb +204 -0
  393. data/lib/swagger_client/models/time_clock_report.rb +236 -0
  394. data/lib/swagger_client/models/unavailability.rb +214 -0
  395. data/lib/swagger_client/models/upcoming_autopay_event.rb +248 -0
  396. data/lib/swagger_client/models/update_appointment_request.rb +301 -0
  397. data/lib/swagger_client/models/update_appointment_response.rb +184 -0
  398. data/lib/swagger_client/models/update_client_request.rb +219 -0
  399. data/lib/swagger_client/models/update_client_response.rb +184 -0
  400. data/lib/swagger_client/models/update_client_service_request.rb +219 -0
  401. data/lib/swagger_client/models/update_client_service_response.rb +184 -0
  402. data/lib/swagger_client/models/update_client_visit_request.rb +239 -0
  403. data/lib/swagger_client/models/update_client_visit_response.rb +184 -0
  404. data/lib/swagger_client/models/update_contact_log_comment.rb +194 -0
  405. data/lib/swagger_client/models/update_contact_log_request.rb +268 -0
  406. data/lib/swagger_client/models/update_contact_log_type.rb +196 -0
  407. data/lib/swagger_client/models/upload_client_document_request.rb +204 -0
  408. data/lib/swagger_client/models/upload_client_document_response.rb +194 -0
  409. data/lib/swagger_client/models/upload_client_photo_request.rb +223 -0
  410. data/lib/swagger_client/models/upload_client_photo_response.rb +194 -0
  411. data/lib/swagger_client/models/user.rb +214 -0
  412. data/lib/swagger_client/models/visit.rb +413 -0
  413. data/lib/swagger_client/models/waitlist_entry.rb +264 -0
  414. data/lib/swagger_client/version.rb +15 -0
  415. data/mindbody-api-6.0.0.gem +0 -0
  416. data/mindbody-swagger.gem +0 -0
  417. data/spec/api/appointment_api_spec.rb +165 -0
  418. data/spec/api/class_api_spec.rb +202 -0
  419. data/spec/api/client_api_spec.rb +435 -0
  420. data/spec/api/enrollment_api_spec.rb +72 -0
  421. data/spec/api/payroll_api_spec.rb +74 -0
  422. data/spec/api/sale_api_spec.rb +222 -0
  423. data/spec/api/site_api_spec.rb +132 -0
  424. data/spec/api/staff_api_spec.rb +69 -0
  425. data/spec/api/user_token_api_spec.rb +62 -0
  426. data/spec/api_client_spec.rb +226 -0
  427. data/spec/configuration_spec.rb +42 -0
  428. data/spec/models/add_appointment_request_spec.rb +135 -0
  429. data/spec/models/add_appointment_response_spec.rb +41 -0
  430. data/spec/models/add_arrival_request_spec.rb +47 -0
  431. data/spec/models/add_arrival_response_spec.rb +47 -0
  432. data/spec/models/add_client_request_spec.rb +363 -0
  433. data/spec/models/add_client_response_spec.rb +41 -0
  434. data/spec/models/add_client_to_class_request_spec.rb +95 -0
  435. data/spec/models/add_client_to_class_response_spec.rb +41 -0
  436. data/spec/models/add_client_to_class_visit_spec.rb +173 -0
  437. data/spec/models/add_client_to_enrollment_request_spec.rb +83 -0
  438. data/spec/models/add_contact_log_request_spec.rb +89 -0
  439. data/spec/models/add_contact_log_type_spec.rb +47 -0
  440. data/spec/models/amenity_spec.rb +47 -0
  441. data/spec/models/appointment_option_spec.rb +59 -0
  442. data/spec/models/appointment_spec.rb +145 -0
  443. data/spec/models/assigned_client_index_spec.rb +47 -0
  444. data/spec/models/autopay_schedule_spec.rb +53 -0
  445. data/spec/models/availability_spec.rb +83 -0
  446. data/spec/models/booking_window_spec.rb +59 -0
  447. data/spec/models/checkout_appointment_booking_request_spec.rb +77 -0
  448. data/spec/models/checkout_item_spec.rb +47 -0
  449. data/spec/models/checkout_item_wrapper_spec.rb +95 -0
  450. data/spec/models/checkout_payment_info_spec.rb +47 -0
  451. data/spec/models/checkout_shopping_cart_request_spec.rb +101 -0
  452. data/spec/models/class_description_spec.rb +125 -0
  453. data/spec/models/class_payroll_event_spec.rb +53 -0
  454. data/spec/models/class_schedule_spec.rb +167 -0
  455. data/spec/models/client_contract_spec.rb +93 -0
  456. data/spec/models/client_credit_card_spec.rb +95 -0
  457. data/spec/models/client_document_spec.rb +53 -0
  458. data/spec/models/client_index_spec.rb +75 -0
  459. data/spec/models/client_index_value_spec.rb +53 -0
  460. data/spec/models/client_membership_spec.rb +117 -0
  461. data/spec/models/client_purchase_record_spec.rb +89 -0
  462. data/spec/models/client_relationship_spec.rb +53 -0
  463. data/spec/models/client_service_spec.rb +105 -0
  464. data/spec/models/client_spec.rb +367 -0
  465. data/spec/models/color_spec.rb +47 -0
  466. data/spec/models/contact_log_comment_spec.rb +59 -0
  467. data/spec/models/contact_log_spec.rb +101 -0
  468. data/spec/models/contact_log_sub_type_spec.rb +41 -0
  469. data/spec/models/contact_log_type_spec.rb +47 -0
  470. data/spec/models/contract_item_spec.rb +77 -0
  471. data/spec/models/contract_spec.rb +239 -0
  472. data/spec/models/course_spec.rb +95 -0
  473. data/spec/models/credit_card_info_spec.rb +89 -0
  474. data/spec/models/cross_regional_client_association_spec.rb +53 -0
  475. data/spec/models/custom_client_field_spec.rb +53 -0
  476. data/spec/models/custom_client_field_value_spec.rb +59 -0
  477. data/spec/models/custom_payment_method_spec.rb +47 -0
  478. data/spec/models/formula_note_spec.rb +65 -0
  479. data/spec/models/get_activation_code_response_spec.rb +47 -0
  480. data/spec/models/get_active_client_memberships_request_spec.rb +59 -0
  481. data/spec/models/get_active_client_memberships_response_spec.rb +47 -0
  482. data/spec/models/get_active_session_times_request_spec.rb +75 -0
  483. data/spec/models/get_active_session_times_response_spec.rb +47 -0
  484. data/spec/models/get_appointment_options_response_spec.rb +41 -0
  485. data/spec/models/get_bookable_items_request_spec.rb +89 -0
  486. data/spec/models/get_bookable_items_response_spec.rb +47 -0
  487. data/spec/models/get_class_descriptions_request_spec.rb +83 -0
  488. data/spec/models/get_class_descriptions_response_spec.rb +47 -0
  489. data/spec/models/get_class_payroll_request_spec.rb +71 -0
  490. data/spec/models/get_class_payroll_response_spec.rb +47 -0
  491. data/spec/models/get_class_schedules_request_spec.rb +89 -0
  492. data/spec/models/get_class_schedules_response_spec.rb +47 -0
  493. data/spec/models/get_class_visits_request_spec.rb +47 -0
  494. data/spec/models/get_class_visits_response_spec.rb +41 -0
  495. data/spec/models/get_classes_request_spec.rb +125 -0
  496. data/spec/models/get_classes_response_spec.rb +47 -0
  497. data/spec/models/get_client_account_balances_request_spec.rb +65 -0
  498. data/spec/models/get_client_account_balances_response_spec.rb +47 -0
  499. data/spec/models/get_client_contracts_request_spec.rb +65 -0
  500. data/spec/models/get_client_contracts_response_spec.rb +47 -0
  501. data/spec/models/get_client_formula_notes_request_spec.rb +59 -0
  502. data/spec/models/get_client_formula_notes_response_spec.rb +47 -0
  503. data/spec/models/get_client_indexes_request_spec.rb +41 -0
  504. data/spec/models/get_client_indexes_response_spec.rb +41 -0
  505. data/spec/models/get_client_purchases_request_spec.rb +71 -0
  506. data/spec/models/get_client_purchases_response_spec.rb +47 -0
  507. data/spec/models/get_client_referral_types_request_spec.rb +41 -0
  508. data/spec/models/get_client_referral_types_response_spec.rb +41 -0
  509. data/spec/models/get_client_services_request_spec.rb +113 -0
  510. data/spec/models/get_client_services_response_spec.rb +47 -0
  511. data/spec/models/get_client_visits_request_spec.rb +83 -0
  512. data/spec/models/get_client_visits_response_spec.rb +47 -0
  513. data/spec/models/get_clients_request_spec.rb +71 -0
  514. data/spec/models/get_clients_response_spec.rb +47 -0
  515. data/spec/models/get_contact_logs_request_spec.rb +89 -0
  516. data/spec/models/get_contact_logs_response_spec.rb +47 -0
  517. data/spec/models/get_contracts_request_spec.rb +71 -0
  518. data/spec/models/get_contracts_response_spec.rb +47 -0
  519. data/spec/models/get_cross_regional_client_associations_request_spec.rb +59 -0
  520. data/spec/models/get_cross_regional_client_associations_response_spec.rb +47 -0
  521. data/spec/models/get_custom_client_fields_request_spec.rb +47 -0
  522. data/spec/models/get_custom_client_fields_response_spec.rb +47 -0
  523. data/spec/models/get_custom_payment_methods_request_spec.rb +47 -0
  524. data/spec/models/get_custom_payment_methods_response_spec.rb +47 -0
  525. data/spec/models/get_enrollments_request_spec.rb +89 -0
  526. data/spec/models/get_enrollments_response_spec.rb +47 -0
  527. data/spec/models/get_gift_card_response_spec.rb +47 -0
  528. data/spec/models/get_gift_cards_request_spec.rb +65 -0
  529. data/spec/models/get_locations_request_spec.rb +47 -0
  530. data/spec/models/get_locations_response_spec.rb +47 -0
  531. data/spec/models/get_packages_request_spec.rb +59 -0
  532. data/spec/models/get_packages_response_spec.rb +47 -0
  533. data/spec/models/get_products_request_spec.rb +83 -0
  534. data/spec/models/get_products_response_spec.rb +47 -0
  535. data/spec/models/get_programs_request_spec.rb +63 -0
  536. data/spec/models/get_programs_response_spec.rb +47 -0
  537. data/spec/models/get_required_client_fields_response_spec.rb +41 -0
  538. data/spec/models/get_resources_request_spec.rb +71 -0
  539. data/spec/models/get_resources_response_spec.rb +47 -0
  540. data/spec/models/get_sales_request_spec.rb +35 -0
  541. data/spec/models/get_sales_response_spec.rb +47 -0
  542. data/spec/models/get_schedule_items_request_spec.rb +77 -0
  543. data/spec/models/get_schedule_items_response_spec.rb +47 -0
  544. data/spec/models/get_services_request_spec.rb +101 -0
  545. data/spec/models/get_services_response_spec.rb +47 -0
  546. data/spec/models/get_session_types_request_spec.rb +59 -0
  547. data/spec/models/get_session_types_response_spec.rb +47 -0
  548. data/spec/models/get_sites_request_spec.rb +53 -0
  549. data/spec/models/get_sites_response_spec.rb +47 -0
  550. data/spec/models/get_staff_appointments_request_spec.rb +83 -0
  551. data/spec/models/get_staff_appointments_response_spec.rb +47 -0
  552. data/spec/models/get_staff_permissions_request_spec.rb +41 -0
  553. data/spec/models/get_staff_permissions_response_spec.rb +41 -0
  554. data/spec/models/get_staff_request_spec.rb +77 -0
  555. data/spec/models/get_staff_response_spec.rb +47 -0
  556. data/spec/models/get_time_clock_request_spec.rb +71 -0
  557. data/spec/models/get_time_clock_response_spec.rb +47 -0
  558. data/spec/models/get_waitlist_entries_request_spec.rb +77 -0
  559. data/spec/models/get_waitlist_entries_response_spec.rb +47 -0
  560. data/spec/models/gift_card_layout_spec.rb +47 -0
  561. data/spec/models/gift_card_spec.rb +107 -0
  562. data/spec/models/issue_request_spec.rb +47 -0
  563. data/spec/models/issue_response_spec.rb +53 -0
  564. data/spec/models/level_spec.rb +53 -0
  565. data/spec/models/liability_spec.rb +53 -0
  566. data/spec/models/location_spec.rb +185 -0
  567. data/spec/models/membership_type_restriction_spec.rb +47 -0
  568. data/spec/models/model_class_spec.rb +195 -0
  569. data/spec/models/package_spec.rb +71 -0
  570. data/spec/models/pagination_response_spec.rb +59 -0
  571. data/spec/models/product_spec.rb +101 -0
  572. data/spec/models/program_spec.rb +63 -0
  573. data/spec/models/prospect_stage_spec.rb +53 -0
  574. data/spec/models/purchase_contract_request_spec.rb +101 -0
  575. data/spec/models/purchase_contract_response_spec.rb +59 -0
  576. data/spec/models/purchase_gift_card_request_spec.rb +107 -0
  577. data/spec/models/purchase_gift_card_response_spec.rb +95 -0
  578. data/spec/models/purchased_item_spec.rb +47 -0
  579. data/spec/models/relationship_spec.rb +53 -0
  580. data/spec/models/remove_client_from_class_request_spec.rb +65 -0
  581. data/spec/models/remove_client_from_class_response_spec.rb +41 -0
  582. data/spec/models/remove_from_waitlist_request_spec.rb +41 -0
  583. data/spec/models/remove_from_waitlist_response_spec.rb +35 -0
  584. data/spec/models/resource_spec.rb +47 -0
  585. data/spec/models/sale_payment_spec.rb +65 -0
  586. data/spec/models/sale_spec.rb +83 -0
  587. data/spec/models/sales_rep_spec.rb +65 -0
  588. data/spec/models/send_password_reset_email_request_spec.rb +53 -0
  589. data/spec/models/service_spec.rb +89 -0
  590. data/spec/models/session_type_spec.rb +99 -0
  591. data/spec/models/site_spec.rb +155 -0
  592. data/spec/models/size_spec.rb +47 -0
  593. data/spec/models/staff_permission_group_spec.rb +67 -0
  594. data/spec/models/staff_spec.rb +179 -0
  595. data/spec/models/stored_card_info_spec.rb +41 -0
  596. data/spec/models/substitute_class_teacher_request_spec.rb +71 -0
  597. data/spec/models/substitute_class_teacher_response_spec.rb +41 -0
  598. data/spec/models/substitute_teacher_class_spec.rb +155 -0
  599. data/spec/models/time_card_event_spec.rb +53 -0
  600. data/spec/models/time_clock_report_spec.rb +71 -0
  601. data/spec/models/unavailability_spec.rb +59 -0
  602. data/spec/models/upcoming_autopay_event_spec.rb +63 -0
  603. data/spec/models/update_appointment_request_spec.rb +107 -0
  604. data/spec/models/update_appointment_response_spec.rb +41 -0
  605. data/spec/models/update_client_request_spec.rb +59 -0
  606. data/spec/models/update_client_response_spec.rb +41 -0
  607. data/spec/models/update_client_service_request_spec.rb +59 -0
  608. data/spec/models/update_client_service_response_spec.rb +41 -0
  609. data/spec/models/update_client_visit_request_spec.rb +71 -0
  610. data/spec/models/update_client_visit_response_spec.rb +41 -0
  611. data/spec/models/update_contact_log_comment_spec.rb +47 -0
  612. data/spec/models/update_contact_log_request_spec.rb +89 -0
  613. data/spec/models/update_contact_log_type_spec.rb +47 -0
  614. data/spec/models/upload_client_document_request_spec.rb +47 -0
  615. data/spec/models/upload_client_document_response_spec.rb +47 -0
  616. data/spec/models/upload_client_photo_request_spec.rb +47 -0
  617. data/spec/models/upload_client_photo_response_spec.rb +47 -0
  618. data/spec/models/user_spec.rb +59 -0
  619. data/spec/models/visit_spec.rb +155 -0
  620. data/spec/models/waitlist_entry_spec.rb +89 -0
  621. data/spec/spec_helper.rb +111 -0
  622. data/swagger_client-1.0.0.gem +0 -0
  623. data/swagger_client.gemspec +45 -0
  624. metadata +1050 -0
@@ -0,0 +1,15 @@
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
+ module SwaggerClient
14
+ VERSION = '1.0.0'
15
+ end
Binary file
Binary file
@@ -0,0 +1,165 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::AppointmentApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'AppointmentApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::AppointmentApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AppointmentApi' do
30
+ it 'should create an instance of AppointmentApi' do
31
+ expect(@instance).to be_instance_of(SwaggerClient::AppointmentApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for appointment_add_apppointment
36
+ # Book a new appointment.
37
+ # To book an appointment, you must use a location ID, staff ID, client ID, session type ID, and the `StartDateTime` of the appointment. You can get most of this information using `GET BookableItems`.
38
+ # @param request
39
+ # @param site_id ID of the site from which to pull data.
40
+ # @param version
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :authorization A staff user authorization token.
43
+ # @return [AddAppointmentResponse]
44
+ describe 'appointment_add_apppointment test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ # unit tests for appointment_get_active_session_times
51
+ # Get active session times.
52
+ # Returns a list of the times that can be booked for a given program schedule type. `ActiveSessionTimes` represent the scheduling increments that can be booked during the active business hours for services.
53
+ # @param site_id ID of the site from which to pull data.
54
+ # @param version
55
+ # @param [Hash] opts the optional parameters
56
+ # @option opts [String] :authorization A staff user authorization token.
57
+ # @option opts [DateTime] :request_end_time Filters results to times that end on or before this time on the current date. Any date provided is ignored.. <br />Default: **23:59:59**
58
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
59
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
60
+ # @option opts [String] :request_schedule_type Filters on the provided the schedule type. Either `SessionTypeIds` or `ScheduleType` must be provided.
61
+ # @option opts [Array<Integer>] :request_session_type_ids Filters on the provided session type IDs. Either &#x60;SessionTypeIds&#x60; or &#x60;ScheduleType&#x60; must be provided.
62
+ # @option opts [DateTime] :request_start_time Filters results to times that start on or after this time on the current date. Any date provided is ignored. &lt;br /&gt;Default: **00:00:00**
63
+ # @return [GetActiveSessionTimesResponse]
64
+ describe 'appointment_get_active_session_times test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for appointment_get_appointment_options
71
+ # Get appointment-related settings.
72
+ # This endpoint has no query parameters.
73
+ # @param site_id ID of the site from which to pull data.
74
+ # @param version
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :authorization A staff user authorization token.
77
+ # @return [GetAppointmentOptionsResponse]
78
+ describe 'appointment_get_appointment_options test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for appointment_get_bookable_items
85
+ # Get staff appointment availability.
86
+ # Returns a list of availabilities with the information needed to book appointments. Availabilities include information such as the location and its amenities, staff members, programs, and session types.
87
+ # @param request_session_type_ids A list of the requested session type IDs.
88
+ # @param site_id ID of the site from which to pull data.
89
+ # @param version
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :authorization A staff user authorization token.
92
+ # @option opts [Integer] :request_appointment_id If provided, filters out the appointment with this ID.
93
+ # @option opts [DateTime] :request_end_date The end date of the requested date range. &lt;br /&gt;Default: **StartDate**
94
+ # @option opts [BOOLEAN] :request_ignore_default_session_length When &#x60;true&#x60;, availabilities that are non-default return, for example, a 30-minute availability with a 60-minute default session length.&lt;br /&gt; When &#x60;false&#x60;, only availabilities that have the default session length return.
95
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
96
+ # @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
97
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
98
+ # @option opts [Array<Integer>] :request_staff_ids A list of the requested staff IDs.
99
+ # @option opts [DateTime] :request_start_date The start date of the requested date range. &lt;br /&gt;Default: **today’s date**
100
+ # @return [GetBookableItemsResponse]
101
+ describe 'appointment_get_bookable_items test' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ # unit tests for appointment_get_schedule_items
108
+ # Get appointment schedule.
109
+ # Returns a list of schedule items, including appointments, availabilities, and unavailabilities. Unavailabilities are the times at which appointments cannot be booked, for example, on holidays or after hours when the business is closed.
110
+ # @param site_id ID of the site from which to pull data.
111
+ # @param version
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [String] :authorization A staff user authorization token.
114
+ # @option opts [DateTime] :request_end_date The end date of the requested date range. &lt;br /&gt;Default: **today’s date**
115
+ # @option opts [BOOLEAN] :request_ignore_prep_finish_times When &#x60;true&#x60;, appointment preparation and finish unavailabilities are not returned. &lt;br /&gt;Default: **false**
116
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
117
+ # @option opts [Array<Integer>] :request_location_ids A list of requested location IDs.
118
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
119
+ # @option opts [Array<Integer>] :request_staff_ids A list of requested staff IDs.
120
+ # @option opts [DateTime] :request_start_date The start date of the requested date range. &lt;br /&gt;Default: **today’s date**
121
+ # @return [GetScheduleItemsResponse]
122
+ describe 'appointment_get_schedule_items test' do
123
+ it 'should work' do
124
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
125
+ end
126
+ end
127
+
128
+ # unit tests for appointment_get_staff_appointments
129
+ # Get appointments grouped by staff member.
130
+ # Returns a list of appointments by staff member.
131
+ # @param site_id ID of the site from which to pull data.
132
+ # @param version
133
+ # @param [Hash] opts the optional parameters
134
+ # @option opts [String] :authorization A staff user authorization token.
135
+ # @option opts [Array<Integer>] :request_appointment_ids A list of the requested appointment IDs.
136
+ # @option opts [Array<String>] :request_client_ids List of client IDs to be returned.
137
+ # @option opts [DateTime] :request_end_date The end date of the requested date range. &lt;br /&gt;Default: **StartDate**
138
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
139
+ # @option opts [Array<Integer>] :request_location_ids A list of the requested location IDs.
140
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
141
+ # @option opts [Array<Integer>] :request_staff_ids List of staff IDs to be returned. Use a value of zero to return all staff appointments.
142
+ # @option opts [DateTime] :request_start_date The start date of the requested date range. If omitted, the default is used. &lt;br /&gt;Default: **today’s date**
143
+ # @return [GetStaffAppointmentsResponse]
144
+ describe 'appointment_get_staff_appointments test' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ end
148
+ end
149
+
150
+ # unit tests for appointment_update_apppointment
151
+ # Update an existing appointment.
152
+ # To update the information for a specific appointment, you must have a staff user token with the proper permissions. Note that you can only update the appointment’s &#x60;StartDateTime&#x60;, &#x60;EndDateTime&#x60;, &#x60;StaffId&#x60;, &#x60;Notes&#x60;, and &#x60;SessionTypeId&#x60;.
153
+ # @param request
154
+ # @param site_id ID of the site from which to pull data.
155
+ # @param version
156
+ # @param [Hash] opts the optional parameters
157
+ # @option opts [String] :authorization A staff user authorization token.
158
+ # @return [UpdateAppointmentResponse]
159
+ describe 'appointment_update_apppointment test' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ end
@@ -0,0 +1,202 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::ClassApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ClassApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::ClassApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ClassApi' do
30
+ it 'should create an instance of ClassApi' do
31
+ expect(@instance).to be_instance_of(SwaggerClient::ClassApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for class_add_client_to_class
36
+ # Book a client into a class.
37
+ # 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 &#x60;GET Clients&#x60; and &#x60;GET Classes&#x60; 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 &#x60;GET WaitlistEntries&#x60; 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 &#x60;GET ClientServices&#x60; 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 &#x60;GET Services&#x60;, &#x60;GET Classes&#x60;, and then &#x60;POST CheckoutShoppingCart&#x60; in place of this call. This endpoint also supports cross-regional class bookings. If you want to perform a cross-regional class booking, set &#x60;CrossRegionalBooking&#x60; to &#x60;true&#x60;. 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 &#x60;ClientID&#x60; 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 &#x60;CrossRegionalBookingClientServiceSiteId&#x60; query parameter. If you perform a cross-regional booking, two additional fields are included in the &#x60;SessionType&#x60; object of the response: * &#x60;SiteID&#x60;, which specifies where the client service is coming from * &#x60;CrossRegionalBookingPerformed&#x60;, a Boolean field that is set to &#x60;true&#x60; As a prerequisite to using this endpoint, your &#x60;SourceName&#x60; must have been granted access to the organization to which the site belongs.
38
+ # @param request
39
+ # @param site_id ID of the site from which to pull data.
40
+ # @param version
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :authorization A staff user authorization token.
43
+ # @return [AddClientToClassResponse]
44
+ describe 'class_add_client_to_class test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ # unit tests for class_get_class_descriptions
51
+ # Get class descriptions.
52
+ # To find class descriptions associated with **scheduled classes**, pass &#x60;StaffId&#x60;, &#x60;StartClassDateTime&#x60;, &#x60;EndClassDateTime&#x60;, or &#x60;LocationId&#x60; in the request.
53
+ # @param site_id ID of the site from which to pull data.
54
+ # @param version
55
+ # @param [Hash] opts the optional parameters
56
+ # @option opts [String] :authorization A staff user authorization token.
57
+ # @option opts [Integer] :request_class_description_id Filters to the single result with the given ID.
58
+ # @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.
59
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
60
+ # @option opts [Integer] :request_location_id Filters results to classes descriptions for schedule classes as the given location.
61
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
62
+ # @option opts [Array<Integer>] :request_program_ids Filters results to class descriptions belonging to the given programs.
63
+ # @option opts [Integer] :request_staff_id Filters results to class descriptions for scheduled classes taught by the given staff member.
64
+ # @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.
65
+ # @return [GetClassDescriptionsResponse]
66
+ describe 'class_get_class_descriptions test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for class_get_class_schedules
73
+ # Get class schedules.
74
+ # @param site_id ID of the site from which to pull data.
75
+ # @param version
76
+ # @param [Hash] opts the optional parameters
77
+ # @option opts [String] :authorization A staff user authorization token.
78
+ # @option opts [Array<Integer>] :request_class_schedule_ids The class schedule IDs. &lt;br /&gt;Default: **all**
79
+ # @option opts [DateTime] :request_end_date The end date of the range. Return any active enrollments that occur on or before this day. &lt;br /&gt;Default: **StartDate**
80
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
81
+ # @option opts [Array<Integer>] :request_location_ids The location IDs. &lt;br /&gt;Default: **all**
82
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
83
+ # @option opts [Array<Integer>] :request_program_ids The program IDs. &lt;br /&gt;Default: **all**
84
+ # @option opts [Array<Integer>] :request_session_type_ids The session type IDs. &lt;br /&gt;Default: **all**
85
+ # @option opts [Array<Integer>] :request_staff_ids The staff IDs. &lt;br /&gt;Default: **all**
86
+ # @option opts [DateTime] :request_start_date The start date of the range. Return any active enrollments that occur on or after this day. &lt;br /&gt;Default: **today’s date**
87
+ # @return [GetClassSchedulesResponse]
88
+ describe 'class_get_class_schedules test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ # unit tests for class_get_class_visits
95
+ # Get information about clients booked in a class.
96
+ # 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.
97
+ # @param site_id ID of the site from which to pull data.
98
+ # @param version
99
+ # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :authorization A staff user authorization token.
101
+ # @option opts [Integer] :request_class_id The class ID.
102
+ # @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the &#x60;LastModifiedDate&#x60; specified are included in the response.
103
+ # @return [GetClassVisitsResponse]
104
+ describe 'class_get_class_visits test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
110
+ # unit tests for class_get_classes
111
+ # Get scheduled classes.
112
+ # @param site_id ID of the site from which to pull data.
113
+ # @param version
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [String] :authorization A staff user authorization token.
116
+ # @option opts [Array<Integer>] :request_class_description_ids The requested class description IDs.
117
+ # @option opts [Array<Integer>] :request_class_ids The requested class IDs.
118
+ # @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.
119
+ # @option opts [DateTime] :request_end_date_time The requested end date for filtering. &lt;br /&gt;Default: **today’s date**
120
+ # @option opts [BOOLEAN] :request_hide_canceled_classes When &#x60;true&#x60;, canceled classes are removed from the response.&lt;br /&gt; When &#x60;false&#x60;, canceled classes are included in the response.&lt;br /&gt; Default: **false**
121
+ # @option opts [DateTime] :request_last_modified_date When included in the request, only records modified on or after the &#x60;LastModifiedDate&#x60; specified are included in the response.
122
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
123
+ # @option opts [Array<Integer>] :request_location_ids A list of location IDs on which to base the search.
124
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
125
+ # @option opts [Array<Integer>] :request_program_ids A list of program IDs on which to base the search.
126
+ # @option opts [BOOLEAN] :request_scheduling_window When &#x60;true&#x60;, classes outside scheduling window are removed from the response.&lt;br /&gt; When &#x60;false&#x60;, classes are included in the response, regardless of the scheduling window.&lt;br /&gt; Default: **false**
127
+ # @option opts [Array<Integer>] :request_semester_ids A list of semester IDs on which to base the search.
128
+ # @option opts [Array<Integer>] :request_session_type_ids A list of session type IDs on which to base the search.
129
+ # @option opts [Array<Integer>] :request_staff_ids The requested IDs of the teaching staff members.
130
+ # @option opts [DateTime] :request_start_date_time The requested start date for filtering. &lt;br /&gt;Default: **today’s date**
131
+ # @return [GetClassesResponse]
132
+ describe 'class_get_classes test' do
133
+ it 'should work' do
134
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
135
+ end
136
+ end
137
+
138
+ # unit tests for class_get_waitlist_entries
139
+ # Get waiting list entries.
140
+ # 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.
141
+ # @param site_id ID of the site from which to pull data.
142
+ # @param version
143
+ # @param [Hash] opts the optional parameters
144
+ # @option opts [String] :authorization A staff user authorization token.
145
+ # @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. &lt;br /&gt; Either &#x60;ClassScheduleIds&#x60;, &#x60;ClientIds&#x60;, &#x60;WaitlistEntryIds&#x60;, or &#x60;ClassIds&#x60; is required; the others become optional.&lt;br /&gt; Default: **all ClassIds**
146
+ # @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.&lt;br /&gt; Either &#x60;ClassScheduleIds&#x60;, &#x60;ClientIds&#x60;, &#x60;WaitlistEntryIds&#x60;, or &#x60;ClassIds&#x60; is required; the others become optional.&lt;br /&gt; Default: **all ClassScheduleIds**
147
+ # @option opts [Array<String>] :request_client_ids The requested client IDs.&lt;br /&gt; Either &#x60;ClassScheduleIds&#x60;, &#x60;ClientIds&#x60;, &#x60;WaitlistEntryIds&#x60;, or &#x60;ClassIds&#x60; is required; the others become optional.&lt;br /&gt; Default: **all ClientIds**
148
+ # @option opts [BOOLEAN] :request_hide_past_entries When &#x60;true&#x60;, indicates that past waiting list entries are hidden from clients.&lt;br /&gt; When &#x60;false&#x60;, indicates that past entries are not hidden from clients.&lt;br /&gt; Default: **false**
149
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
150
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
151
+ # @option opts [Array<Integer>] :request_waitlist_entry_ids The requested waiting list entry IDs.&lt;br /&gt; Either &#x60;ClassScheduleIds&#x60;, &#x60;ClientIds&#x60;, &#x60;WaitlistEntryIds&#x60;, or &#x60;ClassIds&#x60; is required; the others become optional.&lt;br /&gt; Default: **all WaitlistEntryIds**
152
+ # @return [GetWaitlistEntriesResponse]
153
+ describe 'class_get_waitlist_entries test' do
154
+ it 'should work' do
155
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
+ end
157
+ end
158
+
159
+ # unit tests for class_remove_client_from_class
160
+ # Remove a client from a class.
161
+ # @param request
162
+ # @param site_id ID of the site from which to pull data.
163
+ # @param version
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :authorization A staff user authorization token.
166
+ # @return [RemoveClientFromClassResponse]
167
+ describe 'class_remove_client_from_class test' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
170
+ end
171
+ end
172
+
173
+ # unit tests for class_remove_from_waitlist
174
+ # Remove a client from a waiting list.
175
+ # 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.
176
+ # @param request_waitlist_entry_ids A list of waiting list IDs to remove from waiting lists.
177
+ # @param site_id ID of the site from which to pull data.
178
+ # @param version
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [String] :authorization A staff user authorization token.
181
+ # @return [RemoveFromWaitlistResponse]
182
+ describe 'class_remove_from_waitlist test' do
183
+ it 'should work' do
184
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
185
+ end
186
+ end
187
+
188
+ # unit tests for class_substitute_class_teacher
189
+ # Substitute a class teacher.
190
+ # @param request
191
+ # @param site_id ID of the site from which to pull data.
192
+ # @param version
193
+ # @param [Hash] opts the optional parameters
194
+ # @option opts [String] :authorization A staff user authorization token.
195
+ # @return [SubstituteClassTeacherResponse]
196
+ describe 'class_substitute_class_teacher test' do
197
+ it 'should work' do
198
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
199
+ end
200
+ end
201
+
202
+ end
@@ -0,0 +1,435 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SwaggerClient::ClientApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ClientApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SwaggerClient::ClientApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ClientApi' do
30
+ it 'should create an instance of ClientApi' do
31
+ expect(@instance).to be_instance_of(SwaggerClient::ClientApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for client_add_arrival
36
+ # Add an arrival for a client.
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 [AddArrivalResponse]
43
+ describe 'client_add_arrival test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for client_add_client
50
+ # Add a client to a site.
51
+ # The &#x60;FirstName&#x60; and &#x60;LastName&#x60; parameters are always required in this request. All other parameters are optional, but note that any of the optional parameters could be required by a particular business, depending on how the business has configured the site settings. Use after calling the &#x60;GetRequiredClientFields&#x60; endpoint to make sure you are collecting all required pieces of information.
52
+ # @param request
53
+ # @param site_id ID of the site from which to pull data.
54
+ # @param version
55
+ # @param [Hash] opts the optional parameters
56
+ # @option opts [String] :authorization A staff user authorization token.
57
+ # @return [AddClientResponse]
58
+ describe 'client_add_client test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for client_add_contact_log
65
+ # Add a contact log to a client&#39;s account.
66
+ # @param request
67
+ # @param site_id ID of the site from which to pull data.
68
+ # @param version
69
+ # @param [Hash] opts the optional parameters
70
+ # @option opts [String] :authorization A staff user authorization token.
71
+ # @return [ContactLog]
72
+ describe 'client_add_contact_log test' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
75
+ end
76
+ end
77
+
78
+ # unit tests for client_get_active_client_memberships
79
+ # Get a client&#39;s active memberships.
80
+ # @param request_client_id The ID of the client whose membership was requested.
81
+ # @param site_id ID of the site from which to pull data.
82
+ # @param version
83
+ # @param [Hash] opts the optional parameters
84
+ # @option opts [String] :authorization A staff user authorization token.
85
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
86
+ # @option opts [Integer] :request_location_id The ID of the location where the requested membership was created.
87
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
88
+ # @return [GetActiveClientMembershipsResponse]
89
+ describe 'client_get_active_client_memberships test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ # unit tests for client_get_client_account_balances
96
+ # Get account balance information for one or more client(s).
97
+ # @param request_client_ids The list of clients IDs for which you want account balances.
98
+ # @param site_id ID of the site from which to pull data.
99
+ # @param version
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :authorization A staff user authorization token.
102
+ # @option opts [DateTime] :request_balance_date The date you want a balance relative to. Default: **the current date**
103
+ # @option opts [Integer] :request_class_id The class ID of the event for which you want a balance.
104
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
105
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
106
+ # @return [GetClientAccountBalancesResponse]
107
+ describe 'client_get_client_account_balances test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ # unit tests for client_get_client_contracts
114
+ # Get contracts that a client has purchased.
115
+ # @param request_client_id The ID of the client.
116
+ # @param site_id ID of the site from which to pull data.
117
+ # @param version
118
+ # @param [Hash] opts the optional parameters
119
+ # @option opts [String] :authorization A staff user authorization token.
120
+ # @option opts [Integer] :request_client_associated_sites_offset Determines how many sites are skipped over when retrieving a client’s cross regional contracts. Used when a client ID is linked to more than ten sites in an organization. Only a maximum of ten site databases are queried when this call is made and &#x60;CrossRegionalLookup&#x60; is set to &#x60;true&#x60;. To change which sites are queried, change this offset value. Default: **0**
121
+ # @option opts [BOOLEAN] :request_cross_regional_lookup When &#x60;true&#x60;, indicates that the requesting client’s cross regional contracts are returned, if any.&lt;br /&gt; When &#x60;false&#x60;, indicates that cross regional contracts are not returned.
122
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
123
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
124
+ # @return [GetClientContractsResponse]
125
+ describe 'client_get_client_contracts test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ # unit tests for client_get_client_formula_notes
132
+ # Get a client&#39;s formula notes.
133
+ # @param site_id ID of the site from which to pull data.
134
+ # @param version
135
+ # @param [Hash] opts the optional parameters
136
+ # @option opts [String] :authorization A staff user authorization token.
137
+ # @option opts [Integer] :request_appointment_id The appointment ID of the appointment that the formula notes are related to.
138
+ # @option opts [String] :request_client_id The client ID of the client whose formula notes are being requested.
139
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
140
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
141
+ # @return [GetClientFormulaNotesResponse]
142
+ describe 'client_get_client_formula_notes test' do
143
+ it 'should work' do
144
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
145
+ end
146
+ end
147
+
148
+ # unit tests for client_get_client_indexes
149
+ # Get a site&#39;s configured client indexes and client index values.
150
+ # Client indexes are used to analyze client demographics. A business owner can set up different categories with sets of values which they can assign to each client. Client indexes are used in client searches, for tagging clients so that the owner can send mass emails to similar groups, and for many reports. For more information, see Client Indexes and [Client Index Values (video tutorial)](https://support.mindbodyonline.com/s/article/203261653-Client-indexes-and-client-index-values-video-tutorial?language&#x3D;en_USclient).
151
+ # @param site_id ID of the site from which to pull data.
152
+ # @param version
153
+ # @param [Hash] opts the optional parameters
154
+ # @option opts [String] :authorization A staff user authorization token.
155
+ # @option opts [BOOLEAN] :request_required_only When &#x60;true&#x60;, filters the results to only indexes that are required on creation.&lt;br /&gt; When &#x60;false&#x60; or omitted, returns all of the client indexes.
156
+ # @return [GetClientIndexesResponse]
157
+ describe 'client_get_client_indexes test' do
158
+ it 'should work' do
159
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
160
+ end
161
+ end
162
+
163
+ # unit tests for client_get_client_purchases
164
+ # Get a client&#39;s purchase history.
165
+ # @param request_client_id The ID of the client you are querying for purchases.
166
+ # @param site_id ID of the site from which to pull data.
167
+ # @param version
168
+ # @param [Hash] opts the optional parameters
169
+ # @option opts [String] :authorization A staff user authorization token.
170
+ # @option opts [DateTime] :request_end_date Filters results to purchases made before this timestamp.&lt;br /&gt; Default: **end of today**
171
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
172
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
173
+ # @option opts [Integer] :request_sale_id Filters results to the single record associated with this ID.
174
+ # @option opts [DateTime] :request_start_date Filters results to purchases made on or after this timestamp.&lt;br /&gt; Default: **now**
175
+ # @return [GetClientPurchasesResponse]
176
+ describe 'client_get_client_purchases test' do
177
+ it 'should work' do
178
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
179
+ end
180
+ end
181
+
182
+ # unit tests for client_get_client_referral_types
183
+ # Get a site&#39;s configured client referral types.
184
+ # Gets a list of referral types. Referral types are options that new clients can choose to identify how they learned about the business. Referral types are typically used for the sign-up process.
185
+ # @param site_id ID of the site from which to pull data.
186
+ # @param version
187
+ # @param [Hash] opts the optional parameters
188
+ # @option opts [String] :authorization A staff user authorization token.
189
+ # @option opts [BOOLEAN] :request_include_inactive When &#x60;true&#x60;, filters the results to include subtypes and inactive referral types.&lt;br /&gt; When &#x60;false&#x60;, includes no subtypes and only active types.
190
+ # @return [GetClientReferralTypesResponse]
191
+ describe 'client_get_client_referral_types test' do
192
+ it 'should work' do
193
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
194
+ end
195
+ end
196
+
197
+ # unit tests for client_get_client_services
198
+ # Get pricing options that a client has purchased.
199
+ # @param request_client_id The ID of the client to query. The results are a list of pricing options that the client has purchased. Note that “service” and “pricing option” are synonymous in this section of the documentation.
200
+ # @param site_id ID of the site from which to pull data.
201
+ # @param version
202
+ # @param [Hash] opts the optional parameters
203
+ # @option opts [String] :authorization A staff user authorization token.
204
+ # @option opts [Integer] :request_class_id Filters results to only those pricing options that can be used to pay for this class.
205
+ # @option opts [Integer] :request_client_associated_sites_offset Used to retrieve a client’s pricing options from multiple sites within an organization when the client is associated with more than ten sites. To change which ten sites are searched, change this offset value. A value of 0 means that no sites are skipped and the first ten sites are returned. You can use the &#x60;CrossRegionalClientAssociations&#x60; value from &#x60;GET CrossRegionalClientAssociations&#x60; to determine how many sites the client is associated with. Note that you must always have &#x60;CrossRegionalLookup&#x60; set to &#x60;true&#x60; to use this parameter.&lt;br /&gt; Default: **0** For example, if a client is associated with 25 sites, you need to call &#x60;GetClientServices&#x60; three times, as follows: * Use &#x60;GET CrossRegionalClientAssociations&#x60; to determine how many sites a client is associated with, which tells you how many additional calls you need to make. * Either omit &#x60;ClientAssociatedSitesOffset&#x60; or set it to 0 to return the client’s services (pricing options) from sites 1-10. * Set &#x60;ClientAssociatedSitesOffset&#x60; to 10 to return the client pricing options from sites 11-20 * Set &#x60;ClientAssociatedSitesOffset&#x60; to 20 to return the client pricing options from sites 21-25
206
+ # @option opts [BOOLEAN] :request_cross_regional_lookup Used to retrieve a client’s pricing options from multiple sites within an organization. When included and set to &#x60;true&#x60;, it searches a maximum of ten sites with which this client is associated. When a client is associated with more than ten sites, use &#x60;ClientAssociatedSitesOffset&#x60; as many times as needed to search the additional sites with which the client is associated. You can use the &#x60;CrossRegionalClientAssociations&#x60; value from &#x60;GET CrossRegionalClientAssociations&#x60; to determine how many sites the client is associated with. Note that a &#x60;SiteID&#x60; is returned and populated in the &#x60;ClientServices&#x60; response when &#x60;CrossRegionalLookup&#x60; is set to &#x60;true&#x60;. Default: **false**
207
+ # @option opts [DateTime] :request_end_date Filters results to pricing options that are valid on or before this date.
208
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
209
+ # @option opts [Array<Integer>] :request_location_ids Filters results to pricing options that can be used at the listed location IDs.
210
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
211
+ # @option opts [Array<Integer>] :request_program_ids Filters results to pricing options that belong to one of the given program IDs.
212
+ # @option opts [Integer] :request_session_type_id Filters results to pricing options that will pay for the given session type ID. Use this to find pricing options that will pay for a specific appointment type.
213
+ # @option opts [BOOLEAN] :request_show_active_only When &#x60;true&#x60;, includes active services only. Default: **false**
214
+ # @option opts [DateTime] :request_start_date Filters results to pricing options that are valid on or after this date.
215
+ # @option opts [Integer] :request_visit_count A filter on the minimum number of visits a service can pay for.
216
+ # @return [GetClientServicesResponse]
217
+ describe 'client_get_client_services test' do
218
+ it 'should work' do
219
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
220
+ end
221
+ end
222
+
223
+ # unit tests for client_get_client_visits
224
+ # Get a client&#39;s visit history.
225
+ # @param request_client_id The ID of the requested client.
226
+ # @param site_id ID of the site from which to pull data.
227
+ # @param version
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :authorization A staff user authorization token.
230
+ # @option opts [Integer] :request_client_associated_sites_offset The number of sites to skip when returning the site associated with a client.
231
+ # @option opts [BOOLEAN] :request_cross_regional_lookup When &#x60;true&#x60;, indicates that past and scheduled client visits across all sites in the region are returned.&lt;br /&gt; When &#x60;false&#x60;, indicates that only visits at the current site are returned.
232
+ # @option opts [DateTime] :request_end_date The date past which class visits are not returned. Default: **today’s date**
233
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
234
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
235
+ # @option opts [DateTime] :request_start_date The date before which class visits are not returned. Default: **the end date**
236
+ # @option opts [BOOLEAN] :request_unpaids_only When &#x60;true&#x60;, indicates that only visits that have not been paid for are returned.&lt;br /&gt; When &#x60;false&#x60;, indicates that all visits are returned, regardless of whether they have been paid for.&lt;br /&gt; Default: **false**
237
+ # @return [GetClientVisitsResponse]
238
+ describe 'client_get_client_visits test' do
239
+ it 'should work' do
240
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
241
+ end
242
+ end
243
+
244
+ # unit tests for client_get_clients
245
+ # Get clients.
246
+ # @param site_id ID of the site from which to pull data.
247
+ # @param version
248
+ # @param [Hash] opts the optional parameters
249
+ # @option opts [String] :authorization A staff user authorization token.
250
+ # @option opts [Array<String>] :request_client_i_ds The requested client IDs. Default: **all IDs** that the authenticated user’s access level allows.
251
+ # @option opts [BOOLEAN] :request_is_prospect When &#x60;true&#x60;, filters the results to include only those clients marked as prospects for the business.&lt;br /&gt; When &#x60;false&#x60;, indicates that only those clients who are not marked prospects should be returned.
252
+ # @option opts [DateTime] :request_last_modified_date Filters the results to include only the clients that have been modified on or after this date.
253
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
254
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
255
+ # @option opts [String] :request_search_text Text to use in the search. Can include FirstName, LastName, and Email. Note that user credentials must be provided.
256
+ # @return [GetClientsResponse]
257
+ describe 'client_get_clients test' do
258
+ it 'should work' do
259
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
260
+ end
261
+ end
262
+
263
+ # unit tests for client_get_contact_logs
264
+ # Get contact logs on a client&#39;s account.
265
+ # This endpoint contains a variety of filters that can return not just all contact logs, but also system-generated contact logs, contact logs assigned to specific staff members, and contact logs of specific types or subtypes.
266
+ # @param request_client_id The ID of the client whose contact logs are being requested.
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.
271
+ # @option opts [DateTime] :request_end_date Filters the results to contact logs created before this date.&lt;br /&gt; Default: **the start date**
272
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
273
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
274
+ # @option opts [BOOLEAN] :request_show_system_generated When &#x60;true&#x60;, system-generated contact logs are returned in the results.&lt;br /&gt; Default: **false**
275
+ # @option opts [Array<Integer>] :request_staff_ids Filters the results to return contact logs assigned to one or more staff IDs.
276
+ # @option opts [DateTime] :request_start_date Filters the results to contact logs created on or after this date.&lt;br /&gt; Default: **the current date**
277
+ # @option opts [Array<Integer>] :request_subtype_ids Filters the results to contact logs assigned one or more of these subtype IDs.
278
+ # @option opts [Array<Integer>] :request_type_ids Filters the results to contact logs assigned one or more of these type IDs.
279
+ # @return [GetContactLogsResponse]
280
+ describe 'client_get_contact_logs test' do
281
+ it 'should work' do
282
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
283
+ end
284
+ end
285
+
286
+ # unit tests for client_get_cross_regional_client_associations
287
+ # Get a client&#39;s cross regional site associations.
288
+ # Returns a list of sites that a particular client ID (also referred to as an RSSID) or a client email address is associated with in a cross-regional organization. Either the &#x60;ClientID&#x60; or &#x60;Email&#x60; parameter is required. If both are provided, the &#x60;ClientID&#x60; is used. Use this endpoint to retrieve information for other Public API endpoints, about the same client at multiple sites within an organization. To use this endpoint, your developer account must have been granted permission to the site’s entire organization. Note that this endpoint does not work on the Developer Sandbox site, as it is not set up for cross-regional use cases.
289
+ # @param site_id ID of the site from which to pull data.
290
+ # @param version
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [String] :authorization A staff user authorization token.
293
+ # @option opts [String] :request_client_id Looks up the cross regional associations by the client’s ID. Either &#x60;ClientId&#x60; or &#x60;Email&#x60; must be provided. If both are provided, the &#x60;ClientId&#x60; is used by default.
294
+ # @option opts [String] :request_email Looks up the cross regional associations by the client’s email address. Either &#x60;ClientId&#x60; or &#x60;Email&#x60; must be provided. If both are provided, the &#x60;ClientId&#x60; is used by default.
295
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
296
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
297
+ # @return [GetCrossRegionalClientAssociationsResponse]
298
+ describe 'client_get_cross_regional_client_associations test' do
299
+ it 'should work' do
300
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
301
+ end
302
+ end
303
+
304
+ # unit tests for client_get_custom_client_fields
305
+ # Get a site&#39;s configured custom client fields.
306
+ # @param site_id ID of the site from which to pull data.
307
+ # @param version
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [String] :authorization A staff user authorization token.
310
+ # @option opts [Integer] :request_limit Number of results to include, defaults to 100
311
+ # @option opts [Integer] :request_offset Page offset, defaults to 0.
312
+ # @return [GetCustomClientFieldsResponse]
313
+ describe 'client_get_custom_client_fields test' do
314
+ it 'should work' do
315
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
316
+ end
317
+ end
318
+
319
+ # unit tests for client_get_required_client_fields
320
+ # Get client required fields for a site.
321
+ # Gets the list of fields that a new client has to fill out in business mode, specifically for the sign-up process. &#x60;AddClient&#x60; and &#x60;UpdateClient&#x60; validate against these fields. This endpoint has no query parameters.
322
+ # @param site_id ID of the site from which to pull data.
323
+ # @param version
324
+ # @param [Hash] opts the optional parameters
325
+ # @option opts [String] :authorization A staff user authorization token.
326
+ # @return [GetRequiredClientFieldsResponse]
327
+ describe 'client_get_required_client_fields test' do
328
+ it 'should work' do
329
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
330
+ end
331
+ end
332
+
333
+ # unit tests for client_send_password_reset_email
334
+ # Send a password reset email to a client.
335
+ # @param request
336
+ # @param site_id ID of the site from which to pull data.
337
+ # @param version
338
+ # @param [Hash] opts the optional parameters
339
+ # @option opts [String] :authorization A staff user authorization token.
340
+ # @return [Object]
341
+ describe 'client_send_password_reset_email test' do
342
+ it 'should work' do
343
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
344
+ end
345
+ end
346
+
347
+ # unit tests for client_update_client
348
+ # Update a client at a site.
349
+ # Updates an existing client for a specific subscriber. Use this endpoint as follows: * If you need to update the &#x60;ReferredBy&#x60; parameter, use this endpoint after calling &#x60;GET ClientReferralTypes&#x60;. * When updating a client’s home location, use after calling &#x60;GET Locations&#x60;. * If you are updating a client’s stored credit card, use after calling &#x60;GET AcceptedCardTypes&#x60; so that you can make sure the card is a type that is accepted at the subscriber. If this endpoint is used on a cross-regional site, passing in a client’s RSSID and email address creates a cross-regional link. This means that the client is created in cross-regional sites where the client does not exist and &#x60;GET CrossRegionalClientAssociations&#x60; returns all appropriate cross-regional sites. When &#x60;CrossRegionalUpdate&#x60; is omitted or set to &#x60;true&#x60;, the client’s updated information is propagated to all of the region’s sites. If &#x60;CrossRegionalUpdate&#x60; is set to &#x60;false&#x60;, only the local client is updated. Note that the following items cannot be updated for a cross-regional client: * &#x60;ClientIndexes&#x60; * &#x60;ClientRelationships&#x60; * &#x60;CustomClientFields&#x60; * &#x60;SalesReps&#x60; * &#x60;SendAccountEmails&#x60; * &#x60;SendAccountTexts&#x60; * &#x60;SendPromotionalEmails&#x60; * &#x60;SendPromotionalTexts&#x60; * &#x60;SendScheduleEmails&#x60; * &#x60;SendScheduleTexts&#x60;
350
+ # @param request
351
+ # @param site_id ID of the site from which to pull data.
352
+ # @param version
353
+ # @param [Hash] opts the optional parameters
354
+ # @option opts [String] :authorization A staff user authorization token.
355
+ # @return [UpdateClientResponse]
356
+ describe 'client_update_client test' do
357
+ it 'should work' do
358
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
359
+ end
360
+ end
361
+
362
+ # unit tests for client_update_client_service
363
+ # Update a client&#39;s purchase pricing option.
364
+ # Updates the active date and/or expiration date of a client pricing option. This request requires staff user credentials. If the active date is modified, the expiration date is also modified accordingly. If the expiration date is modified, the active date is unchanged.
365
+ # @param request
366
+ # @param site_id ID of the site from which to pull data.
367
+ # @param version
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [String] :authorization A staff user authorization token.
370
+ # @return [UpdateClientServiceResponse]
371
+ describe 'client_update_client_service test' do
372
+ it 'should work' do
373
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
374
+ end
375
+ end
376
+
377
+ # unit tests for client_update_client_visit
378
+ # Update a client&#39;s visit.
379
+ # @param request
380
+ # @param site_id ID of the site from which to pull data.
381
+ # @param version
382
+ # @param [Hash] opts the optional parameters
383
+ # @option opts [String] :authorization A staff user authorization token.
384
+ # @return [UpdateClientVisitResponse]
385
+ describe 'client_update_client_visit test' do
386
+ it 'should work' do
387
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
388
+ end
389
+ end
390
+
391
+ # unit tests for client_update_contact_log
392
+ # Update a contact log on a client&#39;s account.
393
+ # @param request
394
+ # @param site_id ID of the site from which to pull data.
395
+ # @param version
396
+ # @param [Hash] opts the optional parameters
397
+ # @option opts [String] :authorization A staff user authorization token.
398
+ # @return [ContactLog]
399
+ describe 'client_update_contact_log test' do
400
+ it 'should work' do
401
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
402
+ end
403
+ end
404
+
405
+ # unit tests for client_upload_client_document
406
+ # Upload a document to a client&#39;s profile.
407
+ # Returns a string representation of the image byte array. The maximum document size is 1MB. The maximum size file that can be uploaded is 4 MB.
408
+ # @param request
409
+ # @param site_id ID of the site from which to pull data.
410
+ # @param version
411
+ # @param [Hash] opts the optional parameters
412
+ # @option opts [String] :authorization A staff user authorization token.
413
+ # @return [UploadClientDocumentResponse]
414
+ describe 'client_upload_client_document test' do
415
+ it 'should work' do
416
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
417
+ end
418
+ end
419
+
420
+ # unit tests for client_upload_client_photo
421
+ # Upload a profile photo to a client&#39;s profile.
422
+ # The maximum file size is 4 MB and acceptable file types are: * bmp * jpeg * gif * tiff * png
423
+ # @param request
424
+ # @param site_id ID of the site from which to pull data.
425
+ # @param version
426
+ # @param [Hash] opts the optional parameters
427
+ # @option opts [String] :authorization A staff user authorization token.
428
+ # @return [UploadClientPhotoResponse]
429
+ describe 'client_upload_client_photo test' do
430
+ it 'should work' do
431
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
432
+ end
433
+ end
434
+
435
+ end