booker_ruby 1.14.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/lib/booker/client.rb +154 -49
  3. data/lib/booker/errors.rb +6 -2
  4. data/lib/booker/model.rb +84 -0
  5. data/lib/booker/v4.1/availability.rb +21 -0
  6. data/lib/booker/v4.1/booking.rb +87 -0
  7. data/lib/booker/v4.1/merchant.rb +55 -0
  8. data/lib/booker/v4/business_client.rb +9 -0
  9. data/lib/booker/v4/business_rest.rb +88 -0
  10. data/lib/booker/v4/common_rest.rb +21 -0
  11. data/lib/booker/v4/customer_client.rb +15 -0
  12. data/lib/booker/v4/customer_rest.rb +15 -0
  13. data/lib/booker/v4/models/address.rb +14 -0
  14. data/lib/booker/v4/models/appointment.rb +79 -0
  15. data/lib/booker/v4/models/appointment_treatment.rb +53 -0
  16. data/lib/booker/v4/models/available_time.rb +15 -0
  17. data/lib/booker/v4/models/business_type.rb +7 -0
  18. data/lib/booker/v4/models/category.rb +7 -0
  19. data/lib/booker/v4/models/class_instance.rb +27 -0
  20. data/lib/booker/v4/models/country.rb +21 -0
  21. data/lib/booker/v4/models/current_price.rb +7 -0
  22. data/lib/booker/v4/models/customer.rb +54 -0
  23. data/lib/booker/v4/models/customer_2.rb +7 -0
  24. data/lib/booker/v4/models/customer_record_type.rb +7 -0
  25. data/lib/booker/v4/models/discount.rb +7 -0
  26. data/lib/booker/v4/models/dynamic_price.rb +13 -0
  27. data/lib/booker/v4/models/employee.rb +12 -0
  28. data/lib/booker/v4/models/feature_settings.rb +9 -0
  29. data/lib/booker/v4/models/final_total.rb +7 -0
  30. data/lib/booker/v4/models/gender.rb +7 -0
  31. data/lib/booker/v4/models/itinerary_time_slot.rb +9 -0
  32. data/lib/booker/v4/models/itinerary_time_slots_list.rb +9 -0
  33. data/lib/booker/v4/models/location.rb +40 -0
  34. data/lib/booker/v4/models/location_day_schedule.rb +20 -0
  35. data/lib/booker/v4/models/model.rb +78 -0
  36. data/lib/booker/v4/models/multi_service_availability_result.rb +9 -0
  37. data/lib/booker/v4/models/notification_settings.rb +14 -0
  38. data/lib/booker/v4/models/online_booking_settings.rb +25 -0
  39. data/lib/booker/v4/models/original_price.rb +7 -0
  40. data/lib/booker/v4/models/payment_method.rb +7 -0
  41. data/lib/booker/v4/models/preferred_staff_gender.rb +7 -0
  42. data/lib/booker/v4/models/price.rb +10 -0
  43. data/lib/booker/v4/models/receipt_display_price.rb +7 -0
  44. data/lib/booker/v4/models/room.rb +14 -0
  45. data/lib/booker/v4/models/shipping_address.rb +7 -0
  46. data/lib/booker/v4/models/source.rb +7 -0
  47. data/lib/booker/v4/models/spa.rb +7 -0
  48. data/lib/booker/v4/models/spa_employee_availability_search_item.rb +13 -0
  49. data/lib/booker/v4/models/status.rb +7 -0
  50. data/lib/booker/v4/models/sub_category.rb +7 -0
  51. data/lib/booker/v4/models/tag_price.rb +7 -0
  52. data/lib/booker/v4/models/teacher.rb +7 -0
  53. data/lib/booker/v4/models/teacher_2.rb +7 -0
  54. data/lib/booker/v4/models/time_zone.rb +10 -0
  55. data/lib/booker/v4/models/treatment.rb +21 -0
  56. data/lib/booker/v4/models/treatment_time_slot.rb +7 -0
  57. data/lib/booker/v4/models/type.rb +10 -0
  58. data/lib/booker/v4/models/user.rb +75 -0
  59. data/lib/booker/v4/request_helper.rb +33 -0
  60. data/lib/booker/v5/availability.rb +45 -0
  61. data/lib/booker/v5/models/availability.rb +18 -0
  62. data/lib/booker/v5/models/availability_result.rb +12 -0
  63. data/lib/booker/v5/models/location_hour.rb +16 -0
  64. data/lib/booker/v5/models/model.rb +9 -0
  65. data/lib/booker/v5/models/service.rb +13 -0
  66. data/lib/booker/v5/models/service_category.rb +11 -0
  67. data/lib/booker/version.rb +1 -1
  68. data/lib/booker_ruby.rb +70 -52
  69. metadata +80 -54
  70. data/lib/booker/business_client.rb +0 -22
  71. data/lib/booker/business_rest.rb +0 -112
  72. data/lib/booker/common_rest.rb +0 -43
  73. data/lib/booker/customer_client.rb +0 -17
  74. data/lib/booker/customer_rest.rb +0 -53
  75. data/lib/booker/models/address.rb +0 -12
  76. data/lib/booker/models/appointment.rb +0 -77
  77. data/lib/booker/models/appointment_treatment.rb +0 -51
  78. data/lib/booker/models/available_time.rb +0 -13
  79. data/lib/booker/models/business_type.rb +0 -5
  80. data/lib/booker/models/category.rb +0 -5
  81. data/lib/booker/models/class_instance.rb +0 -25
  82. data/lib/booker/models/country.rb +0 -19
  83. data/lib/booker/models/current_price.rb +0 -5
  84. data/lib/booker/models/customer.rb +0 -52
  85. data/lib/booker/models/customer_2.rb +0 -5
  86. data/lib/booker/models/customer_record_type.rb +0 -5
  87. data/lib/booker/models/discount.rb +0 -5
  88. data/lib/booker/models/dynamic_price.rb +0 -11
  89. data/lib/booker/models/employee.rb +0 -10
  90. data/lib/booker/models/feature_settings.rb +0 -7
  91. data/lib/booker/models/final_total.rb +0 -5
  92. data/lib/booker/models/gender.rb +0 -5
  93. data/lib/booker/models/itinerary_time_slot.rb +0 -7
  94. data/lib/booker/models/itinerary_time_slots_list.rb +0 -7
  95. data/lib/booker/models/location.rb +0 -38
  96. data/lib/booker/models/location_day_schedule.rb +0 -18
  97. data/lib/booker/models/model.rb +0 -150
  98. data/lib/booker/models/multi_service_availability_result.rb +0 -7
  99. data/lib/booker/models/notification_settings.rb +0 -12
  100. data/lib/booker/models/online_booking_settings.rb +0 -23
  101. data/lib/booker/models/original_price.rb +0 -5
  102. data/lib/booker/models/payment_method.rb +0 -5
  103. data/lib/booker/models/preferred_staff_gender.rb +0 -5
  104. data/lib/booker/models/price.rb +0 -8
  105. data/lib/booker/models/receipt_display_price.rb +0 -5
  106. data/lib/booker/models/room.rb +0 -12
  107. data/lib/booker/models/shipping_address.rb +0 -5
  108. data/lib/booker/models/source.rb +0 -5
  109. data/lib/booker/models/spa.rb +0 -5
  110. data/lib/booker/models/spa_employee_availability_search_item.rb +0 -11
  111. data/lib/booker/models/status.rb +0 -5
  112. data/lib/booker/models/sub_category.rb +0 -5
  113. data/lib/booker/models/tag_price.rb +0 -5
  114. data/lib/booker/models/teacher.rb +0 -5
  115. data/lib/booker/models/teacher_2.rb +0 -5
  116. data/lib/booker/models/time_zone.rb +0 -8
  117. data/lib/booker/models/treatment.rb +0 -19
  118. data/lib/booker/models/treatment_time_slot.rb +0 -5
  119. data/lib/booker/models/type.rb +0 -8
  120. data/lib/booker/models/user.rb +0 -73
@@ -1,7 +0,0 @@
1
- module Booker
2
- module Models
3
- class MultiServiceAvailabilityResult < Model
4
- attr_accessor 'ItineraryTimeSlotsLists'
5
- end
6
- end
7
- end
@@ -1,12 +0,0 @@
1
- module Booker
2
- module Models
3
- class NotificationSettings < Model
4
- attr_accessor 'NotificationsEmail',
5
- 'NotifyAdminOnAppointmentOtherEvent',
6
- 'SendAppointmentReminders',
7
- 'SendConfirmationAfterBooking',
8
- 'SendNoticeHoursBeforeAppointment',
9
- 'NotifyServiceProviderOnAppointmentOtherEvent'
10
- end
11
- end
12
- end
@@ -1,23 +0,0 @@
1
- module Booker
2
- module Models
3
- class OnlineBookingSettings < Model
4
- attr_accessor 'NewAppointmentCutOffInterval',
5
- 'PaymentMethods',
6
- 'PreAuthorizeCreditCard',
7
- 'PreferredAppointmentTimes',
8
- 'RequirePaymentInformation',
9
- 'AppointmentStartTimeInterval',
10
- 'SelectTechnician',
11
- 'SelectTechnicianGender',
12
- 'AllowCancelAppointments',
13
- 'MaximumResultsPerDay',
14
- 'UsePreferredAppointmentTimes',
15
- 'RequireCustomerGender',
16
- 'RequireStreetAddress',
17
- 'GoogleAnalyticsCode',
18
- 'BillingAddressRequired',
19
- 'BackgroundImageUrl',
20
- 'BusinessLogoUrl'
21
- end
22
- end
23
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class OriginalPrice < Price; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class PaymentMethod < Type; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class PreferredStaffGender < Gender; end
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- module Booker
2
- module Models
3
- class Price < Model
4
- attr_accessor 'Amount',
5
- 'CurrencyCode'
6
- end
7
- end
8
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class ReceiptDisplayPrice < Price; end
4
- end
5
- end
@@ -1,12 +0,0 @@
1
- module Booker
2
- module Models
3
- class Room < Model
4
- attr_accessor 'Capacity',
5
- 'Description',
6
- 'ID',
7
- 'LocationID',
8
- 'Name',
9
- 'Treatments'
10
- end
11
- end
12
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class ShippingAddress < Address; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class Source < Type; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class Spa < Location; end
4
- end
5
- end
@@ -1,11 +0,0 @@
1
- module Booker
2
- module Models
3
- class SpaEmployeeAvailabilitySearchItem < Model
4
- attr_accessor 'AvailableTimes',
5
- 'Treatment',
6
- 'FirstAvailableTime',
7
- 'CurrentPrice',
8
- 'Spa'
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class Status < Type; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class SubCategory < Type; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class TagPrice < Price; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class Teacher < Employee; end
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class Teacher2 < Employee; end
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- module Booker
2
- module Models
3
- class TimeZone < Model
4
- attr_accessor 'ID', 'Name', 'StandardName'
5
- end
6
- end
7
- end
8
-
@@ -1,19 +0,0 @@
1
- module Booker
2
- module Models
3
- class Treatment < Model
4
- attr_accessor 'ID',
5
- 'AllowCustomersToBookOnline',
6
- 'Category',
7
- 'Description',
8
- 'Name',
9
- 'Price',
10
- 'SubCategory',
11
- 'TotalDuration',
12
- 'TreatmentDuration',
13
- 'IsClass',
14
- 'IsForCouples',
15
- 'EmployeeIDs',
16
- 'IsActive'
17
- end
18
- end
19
- end
@@ -1,5 +0,0 @@
1
- module Booker
2
- module Models
3
- class TreatmentTimeSlot < AvailableTime; end
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- module Booker
2
- module Models
3
- class Type < Model
4
- attr_accessor 'ID',
5
- 'Name'
6
- end
7
- end
8
- end
@@ -1,73 +0,0 @@
1
- module Booker
2
- module Models
3
- class User < Model
4
- attr_accessor 'AllowCreateAppointment',
5
- 'AllowCreateAppointmentsInPast',
6
- 'AllowEditAppointment',
7
- 'AllowEditBusyTimeBlock',
8
- 'AllowEditClass',
9
- 'AllowViewAllSchedules',
10
- 'AllowViewAppointments',
11
- 'AllowViewCreditCardNumber',
12
- 'AllowViewCustomerInfo',
13
- 'AllowViewDashBoard',
14
- 'AllowViewOrders',
15
- 'Email',
16
- 'EmployeeID',
17
- 'FirstName',
18
- 'ID',
19
- 'IsAccountManager',
20
- 'IsAdministrator',
21
- 'IsAdministratorAdmin',
22
- 'IsAnyAdmin',
23
- 'IsBrandReservationist',
24
- 'IsImplementator',
25
- 'IsReservationist',
26
- 'IsReservationistOrTechnician',
27
- 'IsSuperAdministrator',
28
- 'IsTechnician',
29
- 'IsTranslator',
30
- 'LastName',
31
- 'RoleNames',
32
- 'Username',
33
- 'DateCreated',
34
- 'AllowOverrideOrderItemPrice',
35
- 'AllowCancelAppointment',
36
- 'AllowEditSchedule',
37
- 'AllowOverrideTax',
38
- 'AllowOverrideGCSeriesBalance',
39
- 'AllowCreateEmailCampaigns',
40
- 'AllowTweetFacebookAsBusiness',
41
- 'AllowCustomizeColors',
42
- 'AllowEditGCTemplates',
43
- 'AllowEditEmailTemplates',
44
- 'AllowSpecials',
45
- 'AllowSpecialsShowView',
46
- 'AllowSpecialsCreate',
47
- 'AllowSpecialsEdit',
48
- 'AllowSpecialsDelete',
49
- 'AllowLoyaltyRewards',
50
- 'AllowLoyaltyRewardsEdit',
51
- 'AllowOverrideInventory',
52
- 'AllowAddProducts',
53
- 'IsReservationistAndAllowModifyTimeClocks',
54
- 'AllowOrderRefund',
55
- 'AllowOrderVoid',
56
- 'AllowModifySchedule',
57
- 'AllowCreateEmployeeProfile',
58
- 'AllowEditEmployeeProfile',
59
- 'AllowDeleteEmployeeProfile',
60
- 'AllowCreateUserLogin',
61
- 'AllowEditUserLogin',
62
- 'AllowDeleteUserLogin',
63
- 'AllowEditEmployeeGroupAssignment',
64
- 'AllowEditEmployeeContractorInfo',
65
- 'AllowEditEmployeeCompensationBenefits',
66
- 'AllowEditEmployeeServices',
67
- 'AllowEditEmployeeRegularSchedule',
68
- 'AllowEditUserLoginOnly',
69
- 'LocationID',
70
- 'BrandID'
71
- end
72
- end
73
- end