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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a0923f47ca98e10933774dd975b854f5d14e259e0cb6113e3626bf3cf09603c
4
- data.tar.gz: 1bf5f156b9b1e11bbc145245cc8065f964f064c2e9209c3f8c1e12d298bb7fa8
3
+ metadata.gz: 7e89c0d488fea08984222ce3b14ba875165dbe57a1858792ef4d8bd4b93dbf79
4
+ data.tar.gz: 78962ca5fcb66d98132c69d6d364a65d93460162a3673495a0be30cf044ae45a
5
5
  SHA512:
6
- metadata.gz: 7b7df64ac8aafaf5f98f65a56fcae4f146071ea0f5fc7932a7495041ef01d01ec7d5b16865bde48ccfd30c785f3b2a51cdaddc6e8ee9fe9af464fdfd528ada53
7
- data.tar.gz: b73049cf3e0090a44b3137b0a467c39b3d563698e49d41bc06e81e35024d469c862a9e55f5ef38bd65fac826a7156818e7a2aa2ca39977ab5e40b81cc52b5235
6
+ metadata.gz: b945592bf72551661dac1a9094e65fbfae468a45678bc3cec0992057d2f4530ab3ec8470a5fc339317537bddfddbadda17cf26160c7935e06d7dee6bfa764a04
7
+ data.tar.gz: b52649d8eb975de6ce19e248a4590bf487e31c0319e2448baeff22397764f31aff927b556fe3098578105c002e180612dc9a7ddf40f97ef665ffd510538147e4
@@ -23,12 +23,12 @@ Metrics/BlockNesting:
23
23
  Max: 2
24
24
 
25
25
  Layout/LineLength:
26
- AllowURI: true
27
- Enabled: false
26
+ AllowURI: true
27
+ Max: 120
28
28
 
29
29
  Metrics/MethodLength:
30
30
  CountComments: false
31
- Max: 15
31
+ Max: 20
32
32
 
33
33
  Metrics/ParameterLists:
34
34
  Max: 4
@@ -39,10 +39,10 @@ Metrics/AbcSize:
39
39
 
40
40
  Style/CollectionMethods:
41
41
  PreferredMethods:
42
- map: 'collect'
43
- reduce: 'inject'
44
- find: 'detect'
45
- find_all: 'select'
42
+ map: "collect"
43
+ reduce: "inject"
44
+ find: "detect"
45
+ find_all: "select"
46
46
 
47
47
  Style/Documentation:
48
48
  Enabled: false
@@ -60,10 +60,13 @@ Style/ExpandPathArguments:
60
60
  Enabled: false
61
61
 
62
62
  Style/HashSyntax:
63
- EnforcedStyle: hash_rockets
63
+ EnforcedStyle: ruby19
64
64
 
65
65
  Style/Lambda:
66
66
  Enabled: false
67
67
 
68
68
  Style/RaiseArgs:
69
- EnforcedStyle: compact
69
+ EnforcedStyle: compact
70
+
71
+ Style/AsciiComments:
72
+ Enabled: false
@@ -1,20 +1,29 @@
1
- # 0.0.3.alpha
1
+ # CHANGELOG
2
2
 
3
- - support APIs
3
+ ## 0.0.4.alpha
4
+
5
+ redefine models in order to follow changed APIs below.
6
+
7
+ - LocalAccount was merged into Account.
8
+ - Caligraph APIs were removed.
9
+
10
+ ## 0.0.3.alpha
11
+
12
+ - support APIs below.
4
13
  - GET `/v1/{accountId}/bookings`
5
14
  - GET `/v1/{accountId}/profiles/{profileId}/bookings`
6
15
  - GET `/v1/{accountId}/profiles/{profileId}/bookings/{bookingId}`
7
16
 
8
- # 0.0.2.alpha
17
+ ## 0.0.2.alpha
9
18
 
10
- - support APIs
19
+ - support APIs below.
11
20
  - GET `/v1/{accountId}/profiles`
12
21
  - GET `/v1/{accountId}/profiles/{profileId}`
13
22
 
14
- # 0.0.1.alpha
23
+ ## 0.0.1.alpha
15
24
 
16
25
  - Initial release.
17
- - support APIs
26
+ - support APIs below.
18
27
  - GET `/v1/{accountId}`
19
28
  - GET `/v1/subdomains/{subdomain}`
20
29
  - GET `/v1/suggestedsubdomains`
data/README.md CHANGED
@@ -38,44 +38,41 @@ Or install it yourself as:
38
38
  - [ ] DELETE `/v1/{accountId}/profiles/{profileId}/appointmenttypes/items/{appointmentTypeId}`
39
39
  - Bookings:
40
40
  - [x] GET `/v1/{accountId}/bookings`
41
- - [ ] GET `/v1/{accountId}/firedactions`
42
41
  - [x] GET `/v1/{accountId}/profiles/{profileId}/bookings`
43
42
  - [ ] POST `/v1/{accountId}/profiles/{profileId}/bookings`
44
43
  - [x] GET `/v1/{accountId}/profiles/{profileId}/bookings/{bookingId}`
45
44
  - [ ] PATCH `/v1/{accountId}/profiles/{profileId}/bookings/{bookingId}`
46
45
  - [ ] DELETE `/v1/{accountId}/profiles/{profileId}/bookings/{bookingId}`
47
- - [ ] GET `/v1/{accountId}/profiles/{profileId}/firedactions`
48
46
  - [ ] GET `/v1/ics/{bookingSecret}/{bookingIdOrRef}.ics`
49
- - [ ] GET `/v1/profiles/{profileIdOrSubdomain}/bookings/{bookingIdOrRef}/lobby`
50
- - [ ] (Deprecated) GET `/v1/ics/{bookingRef}`
51
- - [ ] (Deprecated) GET `/v1/ics/{bookingRef}.ics`
52
47
  - Calendars:
53
- - [ ] GET `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars`
54
- - [ ] POST `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars`
55
- - [ ] GET `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
56
- - [ ] PUT `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
57
- - [ ] PATCH `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
58
- - [ ] DELETE `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
48
+ - [ ] GET `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars`
49
+ - [ ] POST `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars`
50
+ - [ ] GET `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
51
+ - [ ] PUT `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
52
+ - [ ] PATCH `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
53
+ - [ ] DELETE `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}`
59
54
  - Events:
60
- - [ ] POST `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events`
61
- - [ ] GET `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events/{eventId}`
62
- - [ ] DELETE `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events/{eventId}`
55
+ - [ ] POST `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events`
56
+ - [ ] GET `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events/{eventId}`
57
+ - [ ] PATCH `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events/{eventId}`
58
+ - [ ] DELETE `/v1/{accountId}/remoteaccounts/{remoteAccountId}/calendars/{calendarId}/events/{eventId}`
63
59
  - Profile
64
60
  - [x] GET `/v1/{accountId}/profiles`
65
61
  - [ ] POST `/v1/{accountId}/profiles`
66
62
  - [x] GET `/v1/{accountId}/profiles/{profileId}`
67
63
  - [ ] PATCH `/v1/{accountId}/profiles/{profileId}`
68
64
  - [ ] DELETE `/v1/{accountId}/profiles/{profileId}`
65
+ - [ ] GET `/v1/{accountId}/profiles/{profileId}/suggestedactions`
69
66
  - [x] GET `/v1/subdomains/{subdomain}`
70
67
  - [x] GET `/v1/suggestedsubdomains`
71
68
  - Query
72
- - [ ] POST `/v1/{localAccountId}/queries`
69
+ - [ ] POST `/v1/{accountId}/queries`
73
70
  - Remote Account
74
- - [ ] GET `/v1/{localAccountId}/remoteaccounts`
75
- - [ ] POST `/v1/{localAccountId}/remoteaccounts`
76
- - [ ] GET `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}`
77
- - [ ] PATCH `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}`
78
- - [ ] DELETE `/v1/{localAccountId}/remoteaccounts/{remoteAccountId}`
71
+ - [ ] GET `/v1/{accountId}/remoteaccounts`
72
+ - [ ] POST `/v1/{accountId}/remoteaccounts`
73
+ - [ ] GET `/v1/{accountId}/remoteaccounts/{remoteAccountId}`
74
+ - [ ] PATCH `/v1/{accountId}/remoteaccounts/{remoteAccountId}`
75
+ - [ ] DELETE `/v1/{accountId}/remoteaccounts/{remoteAccountId}`
79
76
  - Team Members:
80
77
  - [ ] POST `/v1/{accountId}/profiles/{profileId}/teammembers/items`
81
78
  - [ ] PATCH `/v1/{accountId}/profiles/{profileId}/teammembers/items/{teamMemberId}`
@@ -148,10 +148,10 @@ module YouCanBookMe
148
148
  res.body[:free]
149
149
  end
150
150
 
151
- private
151
+ private
152
152
 
153
153
  def check_not_empty(value, name)
154
- raise YouCanBookMe::Error, "#{name} is required." if blank? value
154
+ raise YouCanBookMe::Error.new("#{name} is required.") if blank? value
155
155
  end
156
156
 
157
157
  def blank?(value)
@@ -197,9 +197,7 @@ module YouCanBookMe
197
197
 
198
198
  def map_as_collection(response, klass)
199
199
  items = response.body
200
- unless items.is_a? Array
201
- raise YouCanBookMe::Error, 'the response data is not Array.'
202
- end
200
+ raise YouCanBookMe::Error.new('the response data is not Array.') unless items.is_a? Array
203
201
 
204
202
  items.map { |item| klass.new item, self }
205
203
  end
@@ -1,23 +1,49 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YouCanBookMe
4
- # YouCanBookMe's Account model.
5
- class Account
4
+ class Account # rubocop:disable Metrics/ClassLength
6
5
  include ModelUtils
7
6
 
8
7
  ASSOCIATION = {
9
- children: Account,
10
- localAccount: CaligraphLocalAccount,
11
- parent: Account,
8
+ allocations: AccountAllocation,
9
+ billingNameAndAddress: NameAndAddress,
10
+ cards: Card,
11
+ children: AccountChild,
12
+ loggedIn: Account,
13
+ nextPurchase: Purchase,
14
+ parent: AccountParent,
15
+ parentForBilling: AccountParent,
16
+ permissionsIn: Permission,
17
+ permissionsOut: Permission,
12
18
  profiles: Profile,
19
+ purchases: Purchase,
20
+ remoteAccounts: RemoteAccount,
21
+ syncToPurchasesChanges: PurchasesSyncChanges,
13
22
  warnings: Warning
14
23
  }.freeze
15
24
 
16
25
  # @return [String]
17
- attr_accessor :caligraphKey
18
- # @return [Array<YouCanBookMe::Account>]
26
+ # ['standard', 'master', 'administrator', 'editor', 'contributor', 'child', 'booker']
27
+ attr_accessor :accountType
28
+ # @return [String]
29
+ attr_accessor :addressHibernate
30
+ # @return [Array<YouCanBookMe::AccountAllocation>]
31
+ attr_accessor :allocations
32
+ # @return [String]
33
+ attr_accessor :apiKey
34
+ # @return [YouCanBookMe::NameAndAddress]
35
+ attr_accessor :billingNameAndAddress
36
+ # @return [boolean]
37
+ attr_accessor :blocked
38
+ # @return [String]
39
+ attr_accessor :caligraphId
40
+ # @return [Array<YouCanBookMe::Card>]
41
+ attr_accessor :cards
42
+ # @return [Array<YouCanBookMe::AccountChild>]
19
43
  attr_accessor :children
20
44
  # @return [String]
45
+ attr_accessor :cityHibernate
46
+ # @return [String]
21
47
  attr_accessor :clientState
22
48
  # @return [Boolean]
23
49
  attr_accessor :contactHigh
@@ -28,8 +54,24 @@ module YouCanBookMe
28
54
  # @return [String]
29
55
  attr_accessor :contactMobile
30
56
  # @return [String]
57
+ attr_accessor :countryHibernate
58
+ # @return [String]
59
+ attr_accessor :covidStatus
60
+ # @return [String]
31
61
  attr_accessor :createdAt
32
62
  # @return [Integer]
63
+ attr_accessor :credit
64
+ # @return [Integer]
65
+ attr_accessor :creditEUR
66
+ # @return [Integer]
67
+ attr_accessor :creditGBP
68
+ # @return [Integer]
69
+ attr_accessor :creditUSD
70
+ # @return [String]
71
+ attr_accessor :currency
72
+ # @return [String]
73
+ attr_accessor :debugModeUntil
74
+ # @return [Integer]
33
75
  attr_accessor :deleteBookingsAfterDays
34
76
  # @return [Integer]
35
77
  attr_accessor :deletedBookingsCount
@@ -37,11 +79,17 @@ module YouCanBookMe
37
79
  attr_accessor :email
38
80
  # @return [String]
39
81
  attr_accessor :familyName
82
+ # @return [String]
83
+ attr_accessor :familyNameHibernate
40
84
  # @return [Integer]
41
85
  attr_accessor :feeCredit
86
+ # @return [Boolean]
87
+ attr_accessor :ghost
42
88
  # @return [String]
43
89
  attr_accessor :givenName
44
90
  # @return [String]
91
+ attr_accessor :givenNameHibernate
92
+ # @return [String]
45
93
  attr_accessor :gmailAccessToken
46
94
  # @return [String]
47
95
  attr_accessor :gmailAccessTokenExpires
@@ -57,27 +105,99 @@ module YouCanBookMe
57
105
  attr_accessor :hasBookings
58
106
  # @return [String]
59
107
  attr_accessor :id
60
- # @return [YouCanBookMe::CaligraphLocalAccount]
61
- attr_accessor :localAccount
108
+ # @return [Boolean]
109
+ attr_accessor :inDebugMode
110
+ # @return [String]
111
+ attr_accessor :killBillId
112
+ # @return [String]
113
+ attr_accessor :lastWarningPushAt
114
+ # @return [Integer]
115
+ attr_accessor :lastWarningPushLevel
116
+ # @return [String]
117
+ # ['free', 'trial', 'subscriber', 'churning', 'paused', 'churned', 'deleted']
118
+ attr_accessor :lifecycle
62
119
  # @return [String]
63
120
  attr_accessor :locale
64
- # @return [Account]
121
+ # @return [YouCanBookMe::Account]
65
122
  attr_accessor :loggedIn
123
+ # @return [Boolean]
124
+ attr_accessor :needsSyncToPurchases
125
+ # @return [Integer]
126
+ attr_accessor :negotiatedDiscountPermyriad
127
+ # @return [YouCanBookMe::Purchase]
128
+ attr_accessor :nextPurchase
129
+ # @return [String]
130
+ attr_accessor :oneTimeToken
131
+ # @return [String]
132
+ attr_accessor :oneTimeTokenExpiresAt
66
133
  # @return [String]
67
134
  attr_accessor :organisation
68
- # @return [YouCanBookMe::Account]
135
+ # @return [String]
136
+ attr_accessor :organizationNameHibernate
137
+ # @return [YouCanBookMe::AccountParent]
69
138
  attr_accessor :parent
70
139
  # @return [String]
71
- attr_accessor :parentId
140
+ attr_accessor :parentEmail
141
+ # @return [YouCanBookMe::AccountParent]
142
+ attr_accessor :parentForBilling
143
+ # @return [Integer]
144
+ attr_accessor :parentQuantityPaidFor
145
+ # @return [String]
146
+ attr_accessor :password
147
+ # @return [String]
148
+ attr_accessor :passwordHash
149
+ # @return [Boolean]
150
+ attr_accessor :pastDue
151
+ # @return [Integer]
152
+ attr_accessor :pausePlanMonths
153
+ # @return [Integer]
154
+ attr_accessor :pauseQuantity
155
+ # @return [Integer]
156
+ attr_accessor :pauseRemainingSeconds
72
157
  # @return [Boolean]
73
- attr_accessor :privilegedLogin
158
+ attr_accessor :paused
159
+ # @return [Array<YouCanBookMe::Permission>]
160
+ attr_accessor :permissionsIn
161
+ # @return [Array<YouCanBookMe::Permission>]
162
+ attr_accessor :permissionsOut
163
+ # @return [String]
164
+ attr_accessor :plan
165
+ # @return [String]
166
+ attr_accessor :planExpiresAt
167
+ # @return [Integer]
168
+ attr_accessor :planMonths
169
+ # @return [Integer]
170
+ attr_accessor :planMonthsWas
171
+ # @return [String]
172
+ attr_accessor :postalCodeHibernate
74
173
  # @return [Array<YouCanBookMe::Profile>]
75
174
  attr_accessor :profiles
175
+ # @return [Array<YouCanBookMe::Purchase>]
176
+ attr_accessor :purchases
177
+ # @return [Integer]
178
+ attr_accessor :quantityAllocated
179
+ # @return [Integer]
180
+ attr_accessor :quantityForFree
181
+ # @return [Integer]
182
+ attr_accessor :quantityFreeTrial
183
+ # @return [Integer]
184
+ attr_accessor :quantityPaidFor
76
185
  # @return [String]
77
186
  attr_accessor :realtimeTopic
78
187
  # @return [String]
188
+ attr_accessor :regionHibernate
189
+ # @return [Array<YouCanBookMe::RemoteAccount>]
190
+ attr_accessor :remoteAccounts
191
+ # @return [String]
192
+ # ['churn', 'pause', 'resetApiKey', 'resetOneTimeToken', 'resetQuota', 'resetSessionToken',
193
+ # 'resetZapierIntegration', review', 'revokeGmailAddon', 'revokeOneTimeToken',
194
+ # 'revokeSalesforceIntegration', 'revokeSessionToken', 'revokeStripeIntegration',
195
+ # 'revokeParentPermissions', 'revokeTermsDate', 'revokeZapierIntegration', 'revokeZoomIntegration',
196
+ # 'startTrial', 'syncToPurchases']
79
197
  attr_accessor :requestedAction
80
198
  # @return [String]
199
+ attr_accessor :reviewAt
200
+ # @return [String]
81
201
  attr_accessor :salesforceAccessToken
82
202
  # @return [String]
83
203
  attr_accessor :salesforceEmailAddress
@@ -87,18 +207,30 @@ module YouCanBookMe
87
207
  attr_accessor :salesforceRefreshToken
88
208
  # @return [String]
89
209
  attr_accessor :sector
210
+ # @return [String]
211
+ attr_accessor :sessionToken
212
+ # @return [String]
213
+ attr_accessor :sessionTokenExpiresAt
90
214
  # @return [Integer]
91
215
  attr_accessor :smsCredits
92
216
  # @return [String]
217
+ attr_accessor :source
218
+ # @return [String]
93
219
  attr_accessor :stripeAccessToken
94
220
  # @return [String]
221
+ attr_accessor :stripeId
222
+ # @return [String]
95
223
  attr_accessor :stripePublishableKey
96
224
  # @return [String]
97
225
  attr_accessor :stripeRefreshToken
98
226
  # @return [String]
99
227
  attr_accessor :stripeUserId
228
+ # @return [YouCanBookMe::PurchasesSyncChanges]
229
+ attr_accessor :syncToPurchasesChanges
100
230
  # @return [String]
101
231
  attr_accessor :tags
232
+ # @return [String]
233
+ attr_accessor :taxNumber
102
234
  # @return [Boolean]
103
235
  attr_accessor :terms
104
236
  # @return [String]
@@ -106,12 +238,20 @@ module YouCanBookMe
106
238
  # @return [String]
107
239
  attr_accessor :timeZone
108
240
  # @return [String]
241
+ attr_accessor :trialEndsAt
242
+ # @return [String]
243
+ attr_accessor :type
244
+ # @return [String]
245
+ attr_accessor :updatedAt
246
+ # @return [String]
109
247
  attr_accessor :uploadCode
110
248
  # @return [Array<YouCanBookMe::Warning>]
111
249
  attr_accessor :warnings
112
250
  # @return [Boolean]
113
251
  attr_accessor :welcomed
114
252
  # @return [String]
253
+ attr_accessor :xeroId
254
+ # @return [String]
115
255
  attr_accessor :zapierKey
116
256
  # @return [String]
117
257
  attr_accessor :zoomAccessToken
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module YouCanBookMe
4
+ class AccountAllocation
5
+ include ModelUtils
6
+
7
+ # @return [String]
8
+ attr_accessor :caligraphId
9
+ # @return [String]
10
+ attr_accessor :email
11
+ # @return [Boolean]
12
+ attr_accessor :ghost
13
+ # @return [String]
14
+ attr_accessor :id
15
+ # @return [String]
16
+ attr_accessor :parentCaligraphId
17
+ # @return [String]
18
+ attr_accessor :parentId
19
+ # @return [Integer]
20
+ attr_accessor :quantityAllocated
21
+ end
22
+ end