mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
Moves all payment-related logic (manual payments, Stripe sync, webhook handling) from the booking service into a dedicated payment service (`internal/service/payment`). Updates server, cron, and handler wiring to inject and use the new payment service. Adjusts tests, routes, and documentation to reflect the new separation of concerns. This improves cohesion, clarifies responsibilities, and prepares for future payment features. No database schema changes are introduced.
9 lines
394 B
Go
9 lines
394 B
Go
package payment
|
|
|
|
import "errors"
|
|
|
|
// ErrStripeClientNotConfigured indicates the service was asked to run a Stripe operation without a configured client.
|
|
var ErrStripeClientNotConfigured = errors.New("stripe client not configured")
|
|
|
|
// ErrNoOutstandingBalance indicates that the booking has already been fully paid.
|
|
var ErrNoOutstandingBalance = errors.New("booking has no outstanding balance")
|