pike13 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +18 -2
- data/lib/pike13/api/v2/desk/custom_field.rb +0 -5
- data/lib/pike13/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6987b081753d6939cce1fb2783a3a6f68f1c5f44b8ba10b9de091e2de5ca4b6a
|
|
4
|
+
data.tar.gz: 755fd58715c57734e68276d5e05e3893ba47321f871a4dde3197347db7299577
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d65e0c49d5ed5f749c55504da384f9d2b52be2e16632dadea2f1d14e932edf135842be1626863aff8e1affe4f0c714fbcaf23d1bd21924081a79289b0ac8a62f
|
|
7
|
+
data.tar.gz: 16b8ae4034dd0d6da0769f9e0d93a80c5165c0bdc5248523618a35f3442219fa2c7387960208860c682e4ba96819022a28c1d315a1a82b73ff90c830fa067c6c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.3] - 2025-11-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Desk::CustomField**: Removed unsupported `find(id)` method that was not supported by the Pike13 API v2.
|
|
12
|
+
|
|
8
13
|
## [0.1.2] - 2025-11-06
|
|
9
14
|
|
|
10
15
|
### Fixed
|
data/README.md
CHANGED
|
@@ -130,6 +130,9 @@ Pike13::Desk::Person.destroy(123)
|
|
|
130
130
|
```ruby
|
|
131
131
|
# Get business details
|
|
132
132
|
Pike13::Desk::Business.find
|
|
133
|
+
|
|
134
|
+
# Get franchisees (for franchise businesses)
|
|
135
|
+
Pike13::Desk::Business.franchisees
|
|
133
136
|
```
|
|
134
137
|
|
|
135
138
|
#### Events & Event Occurrences
|
|
@@ -179,10 +182,17 @@ Pike13::Desk::Appointment.available_slots_summary(
|
|
|
179
182
|
**Note:** Creating bookings requires an `idempotency_token` parameter to prevent duplicate bookings.
|
|
180
183
|
|
|
181
184
|
```ruby
|
|
185
|
+
# Booking operations
|
|
182
186
|
Pike13::Desk::Booking.find(123)
|
|
183
187
|
Pike13::Desk::Booking.create(event_occurrence_id: 789, person_id: 123, idempotency_token: SecureRandom.uuid)
|
|
184
188
|
Pike13::Desk::Booking.update(456, state: "completed")
|
|
185
189
|
Pike13::Desk::Booking.destroy(456)
|
|
190
|
+
|
|
191
|
+
# Lease management within bookings
|
|
192
|
+
Pike13::Desk::Booking.find_lease(booking_id: 123, id: 456)
|
|
193
|
+
Pike13::Desk::Booking.create_lease(123, event_occurrence_id: 789, person: { id: 1 })
|
|
194
|
+
Pike13::Desk::Booking.update_lease(123, 456, person: { id: 2 })
|
|
195
|
+
Pike13::Desk::Booking.destroy_lease(123, 456)
|
|
186
196
|
```
|
|
187
197
|
|
|
188
198
|
#### Visits
|
|
@@ -273,7 +283,6 @@ Pike13::Desk::WaitlistEntry.find(1200) # Find waitlist entry
|
|
|
273
283
|
|
|
274
284
|
```ruby
|
|
275
285
|
Pike13::Desk::CustomField.all # List custom fields
|
|
276
|
-
Pike13::Desk::CustomField.find(30) # Find custom field
|
|
277
286
|
```
|
|
278
287
|
|
|
279
288
|
#### Person-Related Resources
|
|
@@ -298,6 +307,7 @@ Client-facing interface with limited read-only access.
|
|
|
298
307
|
|
|
299
308
|
```ruby
|
|
300
309
|
Pike13::Front::Business.find # Get business info
|
|
310
|
+
Pike13::Front::Business.franchisees # Get franchisees (for franchise businesses)
|
|
301
311
|
Pike13::Front::Branding.find # Get branding
|
|
302
312
|
```
|
|
303
313
|
|
|
@@ -333,11 +343,17 @@ Pike13::Front::Appointment.available_slots_summary(service_id: 100, from: "2025-
|
|
|
333
343
|
**Note:** Creating bookings requires an `idempotency_token` parameter to prevent duplicate bookings.
|
|
334
344
|
|
|
335
345
|
```ruby
|
|
346
|
+
# Booking operations
|
|
336
347
|
Pike13::Front::Booking.find(123)
|
|
337
|
-
Pike13::Front::Booking.find_lease(booking_id: 123, id: 456)
|
|
338
348
|
Pike13::Front::Booking.create(event_occurrence_id: 789, person_id: 123, idempotency_token: SecureRandom.uuid)
|
|
339
349
|
Pike13::Front::Booking.update(456, state: "completed")
|
|
340
350
|
Pike13::Front::Booking.destroy(456)
|
|
351
|
+
|
|
352
|
+
# Lease management within bookings
|
|
353
|
+
Pike13::Front::Booking.find_lease(booking_id: 123, id: 456)
|
|
354
|
+
Pike13::Front::Booking.create_lease(123, event_occurrence_id: 789, person: { id: 1 })
|
|
355
|
+
Pike13::Front::Booking.update_lease(123, 456, person: { id: 2 })
|
|
356
|
+
Pike13::Front::Booking.destroy_lease(123, 456)
|
|
341
357
|
```
|
|
342
358
|
|
|
343
359
|
#### Visits
|
data/lib/pike13/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pike13
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Huttemann
|
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
- !ruby/object:Gem::Version
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|
|
143
|
-
rubygems_version: 3.
|
|
143
|
+
rubygems_version: 3.7.2
|
|
144
144
|
specification_version: 4
|
|
145
145
|
summary: Ruby client for the Pike13 API
|
|
146
146
|
test_files: []
|