pike13 0.1.0.beta → 0.1.0
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 +67 -116
- data/README.md +1222 -315
- data/lib/pike13/api/v2/account.rb +19 -0
- data/lib/pike13/api/v2/desk/booking.rb +10 -0
- data/lib/pike13/api/v2/desk/business.rb +2 -1
- data/lib/pike13/api/v2/desk/event_occurrence.rb +2 -2
- data/lib/pike13/api/v2/desk/person.rb +5 -3
- data/lib/pike13/api/v2/desk/plan.rb +2 -2
- data/lib/pike13/api/v2/desk/plan_product.rb +2 -2
- data/lib/pike13/api/v2/desk/service.rb +2 -2
- data/lib/pike13/api/v2/desk/visit.rb +2 -2
- data/lib/pike13/api/v2/front/branding.rb +2 -1
- data/lib/pike13/api/v2/front/business.rb +2 -1
- data/lib/pike13/api/v2/front/event_occurrence.rb +2 -2
- data/lib/pike13/api/v2/front/plan_product.rb +2 -2
- data/lib/pike13/api/v2/front/service.rb +2 -2
- data/lib/pike13/api/v2/front/visit.rb +2 -2
- data/lib/pike13/api/v3/desk/base.rb +46 -0
- data/lib/pike13/api/v3/desk/clients.rb +180 -0
- data/lib/pike13/api/v3/desk/enrollments.rb +203 -0
- data/lib/pike13/api/v3/desk/event_occurrence_staff_members.rb +170 -0
- data/lib/pike13/api/v3/desk/event_occurrences.rb +154 -0
- data/lib/pike13/api/v3/desk/invoice_item_transactions.rb +189 -0
- data/lib/pike13/api/v3/desk/invoice_items.rb +193 -0
- data/lib/pike13/api/v3/desk/invoices.rb +167 -0
- data/lib/pike13/api/v3/desk/monthly_business_metrics.rb +151 -0
- data/lib/pike13/api/v3/desk/pays.rb +128 -0
- data/lib/pike13/api/v3/desk/person_plans.rb +265 -0
- data/lib/pike13/api/v3/desk/staff_members.rb +127 -0
- data/lib/pike13/api/v3/desk/transactions.rb +169 -0
- data/lib/pike13/http_client.rb +4 -1
- data/lib/pike13/http_client_v3.rb +101 -0
- data/lib/pike13/validators.rb +136 -0
- data/lib/pike13/version.rb +1 -1
- data/lib/pike13.rb +26 -7
- metadata +17 -2
- data/lib/pike13/api/v2/account/me.rb +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9952a78d601be88d6a496a250fd0a303ca3fcd1121eaefb4e3ade80fedf6182a
|
|
4
|
+
data.tar.gz: 9da1000c8ad902aea5b507b4b8a3c2f06fd7b27549e55eeb58140e8ca45810d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d24f8ea42f18ff20c724cff011d2fea91c9261dd25690b93d97eae869b7561bebfd7acdada6584f7679a166d353d6b0c3064769bce892756937d2ec97e78da3
|
|
7
|
+
data.tar.gz: 46ea0e8d878b3843ea0e016caea97ed0ae3fa34463a683abafa9e7d460496e77849b66be9910fbf3c1f5aa0c14af8be2b3d4707f43015430222ccee3776a06fc
|
data/CHANGELOG.md
CHANGED
|
@@ -7,128 +7,79 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [0.1.0] - 2025-
|
|
10
|
+
## [0.1.0] - 2025-10-31
|
|
11
|
+
|
|
12
|
+
Initial release with complete Pike13 API support.
|
|
11
13
|
|
|
12
14
|
### Added
|
|
13
15
|
|
|
14
16
|
#### Core Infrastructure
|
|
15
|
-
- HTTP client with
|
|
16
|
-
- Bearer token authentication
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- **Desk::Invoice** - List and find invoices
|
|
75
|
-
- **Desk::Payment** - Find payments, void payments, get payment configuration
|
|
76
|
-
- **Desk::Refund** - Find refunds, void refunds
|
|
77
|
-
- **Desk::RevenueCategory** - List and find revenue categories
|
|
78
|
-
- **Desk::SalesTax** - List and find sales taxes
|
|
79
|
-
|
|
80
|
-
**Notes & Communication:**
|
|
81
|
-
- **Desk::Note** - Full CRUD operations for person notes
|
|
82
|
-
- List notes for a person
|
|
83
|
-
- Create, update, and delete notes
|
|
84
|
-
|
|
85
|
-
**Other Resources:**
|
|
86
|
-
- **Desk::MakeUp** - Find make-ups, list reasons, generate make-up credits
|
|
87
|
-
- **Desk::WaitlistEntry** - List and find waitlist entries
|
|
88
|
-
- **Desk::CustomField** - List and find custom fields
|
|
89
|
-
|
|
90
|
-
#### Front Scope Resources (Client Interface)
|
|
91
|
-
Base URL: `https://[base_url]/api/v2`
|
|
92
|
-
|
|
93
|
-
**Business & Branding:**
|
|
94
|
-
- **Front::Business** - Get business information
|
|
95
|
-
- **Front::Branding** - Get branding information
|
|
96
|
-
|
|
97
|
-
**People:**
|
|
98
|
-
- **Front::Person** - Get authenticated client user only
|
|
99
|
-
|
|
100
|
-
**Events & Scheduling:**
|
|
101
|
-
- **Front::Event** - List and find events
|
|
102
|
-
- **Front::EventOccurrence** - List and find occurrences, summaries, enrollment eligibility
|
|
103
|
-
- **Front::Appointment** - Find available slots and availability summaries
|
|
104
|
-
|
|
105
|
-
**Bookings & Visits:**
|
|
106
|
-
- **Front::Booking** - Full CRUD operations, find leases
|
|
107
|
-
- **Front::Visit** - List and find visits
|
|
108
|
-
|
|
109
|
-
**Services & Staff:**
|
|
110
|
-
- **Front::Service** - List and find services, enrollment eligibility
|
|
111
|
-
- **Front::StaffMember** - List and find staff members
|
|
112
|
-
- **Front::Location** - List and find locations
|
|
113
|
-
|
|
114
|
-
**Plans & Products:**
|
|
115
|
-
- **Front::Plan** - List and find plans
|
|
116
|
-
- **Front::PlanProduct** - List and find plan products
|
|
117
|
-
|
|
118
|
-
**Financial:**
|
|
119
|
-
- **Front::Invoice** - Find invoices by ID
|
|
120
|
-
- **Front::Payment** - Find payments, get payment configuration
|
|
121
|
-
|
|
122
|
-
**Other Resources:**
|
|
123
|
-
- **Front::Note** - List and find person notes (read-only)
|
|
124
|
-
- **Front::WaitlistEntry** - List and find waitlist entries
|
|
17
|
+
- HTTP client with HTTParty and automatic error handling
|
|
18
|
+
- Bearer token authentication with configurable base URLs
|
|
19
|
+
- Global configuration management with URL normalization
|
|
20
|
+
- Comprehensive error handling with specific HTTP status mappings
|
|
21
|
+
- Support for both production and development environments
|
|
22
|
+
|
|
23
|
+
#### API v2 - Core API
|
|
24
|
+
**Account Resources:**
|
|
25
|
+
- Account management and business listing
|
|
26
|
+
- Person management across businesses
|
|
27
|
+
- Password reset functionality
|
|
28
|
+
- Email confirmation system
|
|
29
|
+
|
|
30
|
+
**Desk Resources (Staff Interface):**
|
|
31
|
+
- Person CRUD operations with search functionality
|
|
32
|
+
- Business and location management
|
|
33
|
+
- Event and event occurrence scheduling
|
|
34
|
+
- Appointment availability and slot management
|
|
35
|
+
- Booking system with lease support
|
|
36
|
+
- Visit tracking and summaries
|
|
37
|
+
- Service management with enrollment eligibility
|
|
38
|
+
- Staff member management
|
|
39
|
+
- Plan, pack, and product management
|
|
40
|
+
- Invoice and payment processing
|
|
41
|
+
- Revenue category and sales tax management
|
|
42
|
+
- Note system for person records
|
|
43
|
+
- Make-up credit management
|
|
44
|
+
- Waitlist entry management
|
|
45
|
+
- Custom field support
|
|
46
|
+
|
|
47
|
+
**Front Resources (Client Interface):**
|
|
48
|
+
- Business and branding information
|
|
49
|
+
- Authenticated user access
|
|
50
|
+
- Event browsing and enrollment eligibility
|
|
51
|
+
- Appointment booking with lease support
|
|
52
|
+
- Payment method management
|
|
53
|
+
- Read-only access to appropriate resources
|
|
54
|
+
|
|
55
|
+
#### API v3 - Reporting API
|
|
56
|
+
Complete reporting analytics with 12 endpoints:
|
|
57
|
+
- Monthly business metrics
|
|
58
|
+
- Client demographics and engagement analysis
|
|
59
|
+
- Transaction records with payment breakdowns
|
|
60
|
+
- Invoice tracking and revenue analysis
|
|
61
|
+
- Enrollment and attendance patterns
|
|
62
|
+
- Event occurrence analytics
|
|
63
|
+
- Staff workload and assignment tracking
|
|
64
|
+
- Invoice item details
|
|
65
|
+
- Transaction-level payment/refund tracking
|
|
66
|
+
- Staff compensation data
|
|
67
|
+
- Client plan ownership metrics
|
|
68
|
+
- Complete staff roster management
|
|
69
|
+
|
|
70
|
+
#### Technical Features
|
|
71
|
+
- Ruby >= 3.0.0 compatibility
|
|
72
|
+
- Faraday HTTP client with retry middleware
|
|
73
|
+
- Comprehensive test coverage (93% line coverage)
|
|
74
|
+
- RuboCop code quality enforcement
|
|
75
|
+
- SimpleCov coverage reporting
|
|
125
76
|
|
|
126
77
|
### Dependencies
|
|
127
|
-
- `
|
|
128
|
-
- `faraday-retry` (~> 2.0) - Automatic retry middleware
|
|
78
|
+
- `httparty` (~> 0.21) - HTTP client library
|
|
129
79
|
- Ruby >= 3.0.0 required
|
|
130
80
|
|
|
131
81
|
### Development
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
82
|
+
- Minitest test suite with 300+ test methods
|
|
83
|
+
- SimpleCov for coverage reporting
|
|
84
|
+
- RuboCop for code quality
|
|
85
|
+
- GitHub Actions CI/CD ready
|