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.
- checksums.yaml +4 -4
- data/{.rubocom.yml → .rubocop.yml} +12 -9
- data/CHANGELOG.md +15 -6
- data/README.md +17 -20
- data/lib/youcanbookme/client.rb +3 -5
- data/lib/youcanbookme/models/account.rb +153 -13
- data/lib/youcanbookme/models/account_allocation.rb +22 -0
- data/lib/youcanbookme/models/account_child.rb +20 -0
- data/lib/youcanbookme/models/{caligraph_safe_local_account.rb → account_parent.rb} +3 -2
- data/lib/youcanbookme/models/action.rb +5 -0
- data/lib/youcanbookme/models/answer.rb +0 -1
- data/lib/youcanbookme/models/booking.rb +8 -4
- data/lib/youcanbookme/models/booking_lobby.rb +2 -1
- data/lib/youcanbookme/models/calendar.rb +1 -1
- data/lib/youcanbookme/models/card.rb +0 -1
- data/lib/youcanbookme/models/event.rb +6 -9
- data/lib/youcanbookme/models/{participant.rb → event_participant.rb} +3 -2
- data/lib/youcanbookme/models/{reminder.rb → event_reminder.rb} +3 -3
- data/lib/youcanbookme/models/link.rb +0 -1
- data/lib/youcanbookme/models/name_and_address.rb +0 -1
- data/lib/youcanbookme/models/permission.rb +17 -5
- data/lib/youcanbookme/models/profile.rb +4 -3
- data/lib/youcanbookme/models/{profile_local_account.rb → profile_account.rb} +1 -2
- data/lib/youcanbookme/models/profile_afterwards.rb +0 -1
- data/lib/youcanbookme/models/profile_appointment_type.rb +0 -1
- data/lib/youcanbookme/models/profile_appointment_types.rb +0 -1
- data/lib/youcanbookme/models/profile_calendar.rb +6 -1
- data/lib/youcanbookme/models/profile_calendars.rb +0 -1
- data/lib/youcanbookme/models/profile_cancel_or_reschedule.rb +0 -1
- data/lib/youcanbookme/models/profile_display.rb +0 -1
- data/lib/youcanbookme/models/profile_payments.rb +1 -1
- data/lib/youcanbookme/models/profile_remote_account.rb +3 -2
- data/lib/youcanbookme/models/profile_remote_reminder.rb +0 -1
- data/lib/youcanbookme/models/profile_team_member.rb +0 -1
- data/lib/youcanbookme/models/profile_team_members.rb +1 -1
- data/lib/youcanbookme/models/profile_tentative.rb +0 -2
- data/lib/youcanbookme/models/profile_times.rb +1 -1
- data/lib/youcanbookme/models/profile_vouchers.rb +0 -1
- data/lib/youcanbookme/models/provider.rb +0 -1
- data/lib/youcanbookme/models/purchase.rb +8 -4
- data/lib/youcanbookme/models/purchases_sync_changes.rb +0 -1
- data/lib/youcanbookme/models/question.rb +1 -0
- data/lib/youcanbookme/models/remote_account.rb +8 -4
- data/lib/youcanbookme/models/template_event.rb +0 -1
- data/lib/youcanbookme/models/transaction.rb +6 -3
- data/lib/youcanbookme/models/warning.rb +0 -1
- data/lib/youcanbookme/version.rb +1 -1
- metadata +10 -19
- data/lib/youcanbookme/models/appointment_type.rb +0 -7
- data/lib/youcanbookme/models/caligraph_calendar.rb +0 -29
- data/lib/youcanbookme/models/caligraph_event.rb +0 -8
- data/lib/youcanbookme/models/caligraph_link.rb +0 -17
- data/lib/youcanbookme/models/caligraph_local_account.rb +0 -47
- data/lib/youcanbookme/models/caligraph_permission.rb +0 -32
- data/lib/youcanbookme/models/caligraph_remote_account.rb +0 -23
- data/lib/youcanbookme/models/instant.rb +0 -9
- data/lib/youcanbookme/models/local_account.rb +0 -180
- data/lib/youcanbookme/models/query.rb +0 -8
- data/lib/youcanbookme/models/team_member.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e89c0d488fea08984222ce3b14ba875165dbe57a1858792ef4d8bd4b93dbf79
|
4
|
+
data.tar.gz: 78962ca5fcb66d98132c69d6d364a65d93460162a3673495a0be30cf044ae45a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
27
|
-
|
26
|
+
AllowURI: true
|
27
|
+
Max: 120
|
28
28
|
|
29
29
|
Metrics/MethodLength:
|
30
30
|
CountComments: false
|
31
|
-
Max:
|
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:
|
43
|
-
reduce:
|
44
|
-
find:
|
45
|
-
find_all:
|
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:
|
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
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,29 @@
|
|
1
|
-
#
|
1
|
+
# CHANGELOG
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
-
|
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/{
|
54
|
-
- [ ] POST `/v1/{
|
55
|
-
- [ ] GET `/v1/{
|
56
|
-
- [ ] PUT `/v1/{
|
57
|
-
- [ ] PATCH `/v1/{
|
58
|
-
- [ ] DELETE `/v1/{
|
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/{
|
61
|
-
- [ ] GET `/v1/{
|
62
|
-
- [ ]
|
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/{
|
69
|
+
- [ ] POST `/v1/{accountId}/queries`
|
73
70
|
- Remote Account
|
74
|
-
- [ ] GET `/v1/{
|
75
|
-
- [ ] POST `/v1/{
|
76
|
-
- [ ] GET `/v1/{
|
77
|
-
- [ ] PATCH `/v1/{
|
78
|
-
- [ ] DELETE `/v1/{
|
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}`
|
data/lib/youcanbookme/client.rb
CHANGED
@@ -148,10 +148,10 @@ module YouCanBookMe
|
|
148
148
|
res.body[:free]
|
149
149
|
end
|
150
150
|
|
151
|
-
|
151
|
+
private
|
152
152
|
|
153
153
|
def check_not_empty(value, name)
|
154
|
-
raise YouCanBookMe::Error
|
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
|
-
#
|
5
|
-
class Account
|
4
|
+
class Account # rubocop:disable Metrics/ClassLength
|
6
5
|
include ModelUtils
|
7
6
|
|
8
7
|
ASSOCIATION = {
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
18
|
-
|
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 [
|
61
|
-
attr_accessor :
|
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 [
|
135
|
+
# @return [String]
|
136
|
+
attr_accessor :organizationNameHibernate
|
137
|
+
# @return [YouCanBookMe::AccountParent]
|
69
138
|
attr_accessor :parent
|
70
139
|
# @return [String]
|
71
|
-
attr_accessor :
|
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 :
|
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
|