youcanbookme 0.0.3.alpha → 0.0.4.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/{.rubocom.yml → .rubocop.yml} +12 -9
  3. data/CHANGELOG.md +15 -6
  4. data/README.md +17 -20
  5. data/lib/youcanbookme/client.rb +3 -5
  6. data/lib/youcanbookme/models/account.rb +153 -13
  7. data/lib/youcanbookme/models/account_allocation.rb +22 -0
  8. data/lib/youcanbookme/models/account_child.rb +20 -0
  9. data/lib/youcanbookme/models/{caligraph_safe_local_account.rb → account_parent.rb} +3 -2
  10. data/lib/youcanbookme/models/action.rb +5 -0
  11. data/lib/youcanbookme/models/answer.rb +0 -1
  12. data/lib/youcanbookme/models/booking.rb +8 -4
  13. data/lib/youcanbookme/models/booking_lobby.rb +2 -1
  14. data/lib/youcanbookme/models/calendar.rb +1 -1
  15. data/lib/youcanbookme/models/card.rb +0 -1
  16. data/lib/youcanbookme/models/event.rb +6 -9
  17. data/lib/youcanbookme/models/{participant.rb → event_participant.rb} +3 -2
  18. data/lib/youcanbookme/models/{reminder.rb → event_reminder.rb} +3 -3
  19. data/lib/youcanbookme/models/link.rb +0 -1
  20. data/lib/youcanbookme/models/name_and_address.rb +0 -1
  21. data/lib/youcanbookme/models/permission.rb +17 -5
  22. data/lib/youcanbookme/models/profile.rb +4 -3
  23. data/lib/youcanbookme/models/{profile_local_account.rb → profile_account.rb} +1 -2
  24. data/lib/youcanbookme/models/profile_afterwards.rb +0 -1
  25. data/lib/youcanbookme/models/profile_appointment_type.rb +0 -1
  26. data/lib/youcanbookme/models/profile_appointment_types.rb +0 -1
  27. data/lib/youcanbookme/models/profile_calendar.rb +6 -1
  28. data/lib/youcanbookme/models/profile_calendars.rb +0 -1
  29. data/lib/youcanbookme/models/profile_cancel_or_reschedule.rb +0 -1
  30. data/lib/youcanbookme/models/profile_display.rb +0 -1
  31. data/lib/youcanbookme/models/profile_payments.rb +1 -1
  32. data/lib/youcanbookme/models/profile_remote_account.rb +3 -2
  33. data/lib/youcanbookme/models/profile_remote_reminder.rb +0 -1
  34. data/lib/youcanbookme/models/profile_team_member.rb +0 -1
  35. data/lib/youcanbookme/models/profile_team_members.rb +1 -1
  36. data/lib/youcanbookme/models/profile_tentative.rb +0 -2
  37. data/lib/youcanbookme/models/profile_times.rb +1 -1
  38. data/lib/youcanbookme/models/profile_vouchers.rb +0 -1
  39. data/lib/youcanbookme/models/provider.rb +0 -1
  40. data/lib/youcanbookme/models/purchase.rb +8 -4
  41. data/lib/youcanbookme/models/purchases_sync_changes.rb +0 -1
  42. data/lib/youcanbookme/models/question.rb +1 -0
  43. data/lib/youcanbookme/models/remote_account.rb +8 -4
  44. data/lib/youcanbookme/models/template_event.rb +0 -1
  45. data/lib/youcanbookme/models/transaction.rb +6 -3
  46. data/lib/youcanbookme/models/warning.rb +0 -1
  47. data/lib/youcanbookme/version.rb +1 -1
  48. metadata +10 -19
  49. data/lib/youcanbookme/models/appointment_type.rb +0 -7
  50. data/lib/youcanbookme/models/caligraph_calendar.rb +0 -29
  51. data/lib/youcanbookme/models/caligraph_event.rb +0 -8
  52. data/lib/youcanbookme/models/caligraph_link.rb +0 -17
  53. data/lib/youcanbookme/models/caligraph_local_account.rb +0 -47
  54. data/lib/youcanbookme/models/caligraph_permission.rb +0 -32
  55. data/lib/youcanbookme/models/caligraph_remote_account.rb +0 -23
  56. data/lib/youcanbookme/models/instant.rb +0 -9
  57. data/lib/youcanbookme/models/local_account.rb +0 -180
  58. data/lib/youcanbookme/models/query.rb +0 -8
  59. data/lib/youcanbookme/models/team_member.rb +0 -8
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's CaligraphEvent model.
5
- class CaligraphEvent
6
- include ModelUtils
7
- end
8
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's CaligraphLink model.
5
- class CaligraphLink
6
- include ModelUtils
7
-
8
- # @return [String]
9
- attr_accessor :href
10
- # @return [String]
11
- attr_accessor :id
12
- # @return [String]
13
- attr_accessor :rel
14
- # @return [String]
15
- attr_accessor :type
16
- end
17
- end
@@ -1,47 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's CaligraphLocalAccount model.
5
- class CaligraphLocalAccount
6
- include ModelUtils
7
-
8
- ASSOCIATION = {
9
- permissionsIn: CaligraphPermission,
10
- permissionsOut: CaligraphPermission,
11
- remoteAccounts: CaligraphRemoteAccount
12
- }.freeze
13
-
14
- # @return [String]
15
- attr_accessor :apiKey
16
- # @return [String]
17
- attr_accessor :email
18
- # @return [String]
19
- attr_accessor :id
20
- # @return [Boolean]
21
- attr_accessor :inDebugMode
22
- # @return [String]
23
- attr_accessor :lifecycle
24
- # @return [String]
25
- attr_accessor :parentId
26
- # @return [Array<YouCanBookMe::CaligraphPermission>]
27
- attr_accessor :permissionsIn
28
- # @return [Array<YouCanBookMe::CaligraphPermission>]
29
- attr_accessor :permissionsOut
30
- # @return [String]
31
- attr_accessor :plan
32
- # @return [Integer]
33
- attr_accessor :planMonths
34
- # @return [Integer]
35
- attr_accessor :quantityAllocated
36
- # @return [Integer]
37
- attr_accessor :quantityForFree
38
- # @return [Integer]
39
- attr_accessor :quantityFreeTrial
40
- # @return [Integer]
41
- attr_accessor :quantityPaidFor
42
- # @return [Array<YouCanBookMe::CaligraphRemoteAccount>]
43
- attr_accessor :remoteAccounts
44
- # @return [String]
45
- attr_accessor :trialEndsAt
46
- end
47
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YouCanBookMe
4
- # YouCanBookMe's CaligraphPermission model.
5
- class CaligraphPermission
6
- include ModelUtils
7
-
8
- ASSOCIATION = {
9
- fromLocalAccount: CaligraphSafeLocalAccount,
10
- toLocalAccount: CaligraphSafeLocalAccount
11
- }.freeze
12
-
13
- # @return [String]
14
- attr_accessor :createdAt
15
- # @return [String]
16
- attr_accessor :expiresAt
17
- # @return [YouCanBookMe::CaligraphSafeLocalAccount]
18
- attr_accessor :fromLocalAccount
19
- # @return [String]
20
- attr_accessor :id
21
- # @return [String]
22
- attr_accessor :resource
23
- # @return [String]
24
- attr_accessor :status
25
- # @return [YouCanBookMe::CaligraphSafeLocalAccount]
26
- attr_accessor :toLocalAccount
27
- # @return [String]
28
- attr_accessor :type
29
- # @return [String]
30
- attr_accessor :updatedAt
31
- end
32
- end
@@ -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