youcanbookme 0.0.1.alpha → 0.0.6.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/{.rubocom.yml → .rubocop.yml} +12 -9
  3. data/CHANGELOG.md +37 -2
  4. data/README.md +22 -25
  5. data/lib/youcanbookme/client.rb +235 -13
  6. data/lib/youcanbookme/error.rb +1 -1
  7. data/lib/youcanbookme/http_command.rb +6 -1
  8. data/lib/youcanbookme/{common_module.rb → loggable.rb} +2 -2
  9. data/lib/youcanbookme/models/account.rb +153 -13
  10. data/lib/youcanbookme/models/account_allocation.rb +22 -0
  11. data/lib/youcanbookme/models/account_child.rb +20 -0
  12. data/lib/youcanbookme/models/{caligraph_safe_local_account.rb → account_parent.rb} +3 -2
  13. data/lib/youcanbookme/models/action.rb +5 -0
  14. data/lib/youcanbookme/models/answer.rb +0 -1
  15. data/lib/youcanbookme/models/booking.rb +8 -4
  16. data/lib/youcanbookme/models/booking_lobby.rb +2 -1
  17. data/lib/youcanbookme/models/calendar.rb +1 -1
  18. data/lib/youcanbookme/models/card.rb +0 -1
  19. data/lib/youcanbookme/models/event.rb +6 -9
  20. data/lib/youcanbookme/models/{participant.rb → event_participant.rb} +3 -2
  21. data/lib/youcanbookme/models/{reminder.rb → event_reminder.rb} +3 -3
  22. data/lib/youcanbookme/models/link.rb +0 -1
  23. data/lib/youcanbookme/models/model_utils.rb +8 -6
  24. data/lib/youcanbookme/models/name_and_address.rb +0 -1
  25. data/lib/youcanbookme/models/permission.rb +17 -5
  26. data/lib/youcanbookme/models/profile.rb +4 -3
  27. data/lib/youcanbookme/models/{profile_local_account.rb → profile_account.rb} +1 -2
  28. data/lib/youcanbookme/models/profile_afterwards.rb +0 -1
  29. data/lib/youcanbookme/models/profile_appointment_type.rb +0 -1
  30. data/lib/youcanbookme/models/profile_appointment_types.rb +0 -1
  31. data/lib/youcanbookme/models/profile_calendar.rb +6 -1
  32. data/lib/youcanbookme/models/profile_calendars.rb +0 -1
  33. data/lib/youcanbookme/models/profile_cancel_or_reschedule.rb +0 -1
  34. data/lib/youcanbookme/models/profile_display.rb +0 -1
  35. data/lib/youcanbookme/models/profile_payments.rb +1 -1
  36. data/lib/youcanbookme/models/profile_remote_account.rb +3 -2
  37. data/lib/youcanbookme/models/profile_remote_reminder.rb +0 -1
  38. data/lib/youcanbookme/models/profile_team_member.rb +0 -1
  39. data/lib/youcanbookme/models/profile_team_members.rb +1 -1
  40. data/lib/youcanbookme/models/profile_tentative.rb +0 -2
  41. data/lib/youcanbookme/models/profile_times.rb +1 -1
  42. data/lib/youcanbookme/models/profile_vouchers.rb +0 -1
  43. data/lib/youcanbookme/models/provider.rb +0 -1
  44. data/lib/youcanbookme/models/purchase.rb +8 -4
  45. data/lib/youcanbookme/models/purchases_sync_changes.rb +0 -1
  46. data/lib/youcanbookme/models/question.rb +1 -0
  47. data/lib/youcanbookme/models/remote_account.rb +8 -4
  48. data/lib/youcanbookme/models/template_event.rb +0 -1
  49. data/lib/youcanbookme/models/transaction.rb +6 -3
  50. data/lib/youcanbookme/models/warning.rb +0 -1
  51. data/lib/youcanbookme/version.rb +1 -1
  52. metadata +11 -20
  53. data/lib/youcanbookme/models/appointment_type.rb +0 -7
  54. data/lib/youcanbookme/models/caligraph_calendar.rb +0 -29
  55. data/lib/youcanbookme/models/caligraph_event.rb +0 -8
  56. data/lib/youcanbookme/models/caligraph_link.rb +0 -17
  57. data/lib/youcanbookme/models/caligraph_local_account.rb +0 -47
  58. data/lib/youcanbookme/models/caligraph_permission.rb +0 -32
  59. data/lib/youcanbookme/models/caligraph_remote_account.rb +0 -23
  60. data/lib/youcanbookme/models/instant.rb +0 -9
  61. data/lib/youcanbookme/models/local_account.rb +0 -180
  62. data/lib/youcanbookme/models/query.rb +0 -8
  63. data/lib/youcanbookme/models/team_member.rb +0 -8
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's CaligraphRemoteAccount model.
5
- class CaligraphRemoteAccount
6
- include ModelUtils
7
-
8
- ASSOCIATION = {
9
- calendars: CaligraphCalendar
10
- }.freeze
11
-
12
- # @return [Array<YouCanBookMe::CaligraphCalendar>]
13
- attr_accessor :calendars
14
- # @return [String]
15
- attr_accessor :id
16
- # @return [String]
17
- attr_accessor :localAccountEmail
18
- # @return [String]
19
- attr_accessor :type
20
- # @return [String]
21
- attr_accessor :username
22
- end
23
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's Instant model.
5
- class Instant
6
- include ModelUtils
7
-
8
- end
9
- end
@@ -1,180 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's LocalAccount model.
5
- class LocalAccount
6
- include ModelUtils
7
-
8
- ASSOCIATION = {
9
- activePurchase: Purchase,
10
- allocations: LocalAccount,
11
- billingNameAndAddress: NameAndAddress,
12
- cards: Card,
13
- links: Link,
14
- loggedIn: LocalAccount,
15
- nextPurchase: Purchase,
16
- permissionsIn: Permission,
17
- permissionsInProcessGroups: Permission,
18
- permissionsOut: Permission,
19
- purchases: Purchase,
20
- remoteAccounts: RemoteAccount,
21
- syncToPurchasesChanges: PurchasesSyncChanges,
22
- warnings: Warning
23
- }.freeze
24
-
25
- # @return [String]
26
- attr_accessor :accountType
27
- # @return [YouCanBookMe::Purchase]
28
- attr_accessor :activePurchase
29
- # @return [String]
30
- attr_accessor :addressHibernate
31
- # @return [Array<YouCanBookMe::LocalAccount>]
32
- attr_accessor :allocations
33
- # @return [String]
34
- attr_accessor :apiKey
35
- # @return [integer]
36
- attr_accessor :balance
37
- # @return [YouCanBookMe::NameAndAddress]
38
- attr_accessor :billingNameAndAddress
39
- # @return [Boolean]
40
- attr_accessor :blocked
41
- # @return [Array<YouCanBookMe::Card>]
42
- attr_accessor :cards
43
- # @return [String]
44
- attr_accessor :cityHibernate
45
- # @return [String]
46
- attr_accessor :countryHibernate
47
- # @return [String]
48
- attr_accessor :covidStatus
49
- # @return [String]
50
- attr_accessor :createdAt
51
- # @return [Integer]
52
- attr_accessor :credit
53
- # @return [Integer]
54
- attr_accessor :creditEUR
55
- # @return [Integer]
56
- attr_accessor :creditGBP
57
- # @return [Integer]
58
- attr_accessor :creditUSD
59
- # @return [String]
60
- attr_accessor :currency
61
- # @return [String]
62
- attr_accessor :debugModeUntil
63
- # @return [String]
64
- attr_accessor :detectedTimeZone
65
- # @return [String]
66
- attr_accessor :email
67
- # @return [String]
68
- attr_accessor :familyNameHibernate
69
- # @return [Boolean]
70
- attr_accessor :ghost
71
- # @return [String]
72
- attr_accessor :givenNameHibernate
73
- # @return [String]
74
- attr_accessor :id
75
- # @return [Boolean]
76
- attr_accessor :inDebugMode
77
- # @return [String]
78
- attr_accessor :killBillId
79
- # @return [String]
80
- attr_accessor :lastWarningPushAt
81
- # @return [Integer]
82
- attr_accessor :lastWarningPushLevel
83
- # @return [String]
84
- attr_accessor :lifecycle
85
- # @return [Array<YouCanBookMe::Link>]
86
- attr_accessor :links
87
- # @return [YouCanBookMe::LocalAccount]
88
- attr_accessor :loggedIn
89
- # @return [Boolean]
90
- attr_accessor :needsSyncToPurchases
91
- # @return [Integer]
92
- attr_accessor :negotiatedDiscountPermyriad
93
- # @return [YouCanBookMe::Purchase]
94
- attr_accessor :nextPurchase
95
- # @return [String]
96
- attr_accessor :oneTimeToken
97
- # @return [String]
98
- attr_accessor :oneTimeTokenExpiresAt
99
- # @return [String]
100
- attr_accessor :organizationNameHibernate
101
- # @return [String]
102
- attr_accessor :parentEmail
103
- # @return [String]
104
- attr_accessor :parentId
105
- # @return [Integer]
106
- attr_accessor :parentQuantityPaidFor
107
- # @return [String]
108
- attr_accessor :password
109
- # @return [String]
110
- attr_accessor :passwordHash
111
- # @return [Boolean]
112
- attr_accessor :pastDue
113
- # @return [Integer]
114
- attr_accessor :pausePlanMonths
115
- # @return [Integer]
116
- attr_accessor :pauseQuantity
117
- # @return [Integer]
118
- attr_accessor :pauseRemainingSeconds
119
- # @return [Boolean]
120
- attr_accessor :paused
121
- # @return [Array<YouCanBookMe::Permission>]
122
- attr_accessor :permissionsIn
123
- # @return [Array<YouCanBookMe::Permission>]
124
- attr_accessor :permissionsInProcessGroups
125
- # @return [Array<YouCanBookMe::Permission>]
126
- attr_accessor :permissionsOut
127
- # @return [String]
128
- attr_accessor :plan
129
- # @return [String]
130
- attr_accessor :planExpiresAt
131
- # @return [Integer]
132
- attr_accessor :planMonths
133
- # @return [Integer]
134
- attr_accessor :planMonthsWas
135
- # @return [String]
136
- attr_accessor :postalCodeHibernate
137
- # @return [Array<YouCanBookMe::Purchase>]
138
- attr_accessor :purchases
139
- # @return [Integer]
140
- attr_accessor :quantityAllocated
141
- # @return [Integer]
142
- attr_accessor :quantityForFree
143
- # @return [Integer]
144
- attr_accessor :quantityFreeTrial
145
- # @return [Integer]
146
- attr_accessor :quantityPaidFor
147
- # @return [String]
148
- attr_accessor :realtimeTopic
149
- # @return [String]
150
- attr_accessor :regionHibernate
151
- # @return [Array<YouCanBookMe::RemoteAccount>]
152
- attr_accessor :remoteAccounts
153
- # @return [String]
154
- attr_accessor :requestedAction
155
- # @return [String]
156
- attr_accessor :reviewAt
157
- # @return [String]
158
- attr_accessor :sessionToken
159
- # @return [String]
160
- attr_accessor :sessionTokenExpiresAt
161
- # @return [String]
162
- attr_accessor :source
163
- # @return [String]
164
- attr_accessor :stripeId
165
- # @return [YouCanBookMe::PurchasesSyncChanges]
166
- attr_accessor :syncToPurchasesChanges
167
- # @return [String]
168
- attr_accessor :taxNumber
169
- # @return [String]
170
- attr_accessor :trialEndsAt
171
- # @return [String]
172
- attr_accessor :type
173
- # @return [String]
174
- attr_accessor :updatedAt
175
- # @return [Array<YouCanBookMe::Warning>]
176
- attr_accessor :warnings
177
- # @return [String]
178
- attr_accessor :xeroId
179
- end
180
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's Query model.
5
- class Query
6
- include ModelUtils
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's TeamMember model.
5
- class TeamMember
6
- include ModelUtils
7
- end
8
- end