Commit graph

44 commits

Author SHA1 Message Date
23f3ceec21
Feat/stripe integration (#50)
Some checks are pending
CI / checks (push) Waiting to run
* feat(stripe): add Stripe payment sync and webhook support

Introduce Stripe integration for automatic payment ingestion and refund
tracking. Adds new fields to the payment model for Stripe IDs and
status,
Stripe client driver, sync service, cron job, manual API endpoint, and
public webhook handler for real-time updates. Includes tests and
documentation. Manual cash entry remains supported.

* chore(stripe): upgrade to stripe-go v83

Upgrade Stripe SDK from v79 to v83 across the codebase. Update all
imports to use github.com/stripe/stripe-go/v83 and refactor client usage
to match the new API, including changes to PaymentIntents listing.
Update documentation and plans to reference the new version. Remove
references to the old version from go.mod and go.sum.

* refactor(payment): extract payment logic to new service

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.

* chore(ci): add Go and templ setup to CI workflow

This update enhances the CI workflow by adding steps to set up Go using
the version specified in go.mod, add the Go bin directory to the PATH,
and install the templ code generation tool. These additions ensure that
Go-based tooling is available for subsequent CI steps.
2025-11-21 15:47:01 +01:00
4bd47dc6e9
feat(deps): migrate from Echo to Chi, update Stripe/Sentry (#49)
Some checks failed
CI / checks (push) Has been cancelled
2025-11-02 21:45:37 +01:00
1c5e3ecb6e
chore(deps): update Go version and dependencies
- Bump Go version from 1.25.2 to 1.25.3 in go.mod.
- Update several dependencies to newer versions in go.sum.
- Remove old checksums for outdated dependency versions.
- Ensures project uses latest compatible libraries and Go version.
2025-10-19 16:06:54 +02:00
aa9f46a222
feat/stripe integration (#48) 2025-10-19 15:48:59 +02:00
ac94faedb0
refactor: unify ID and API key naming conventions
This commit standardizes the naming of identifier and API key fields
across the codebase to use consistent camel case (e.g., `ID`, `APIKey`,
`DatabaseURL`). This includes updates to struct fields, method names,
function parameters, and environment variable references. The changes
improve code clarity and maintainability by reducing ambiguity and
aligning with Go naming conventions. No functional behavior is changed.
2025-10-03 19:47:41 +02:00
2aadb421ef
chore(go): bump Go to 1.25 (Dockerfiles + go.mod); respect .gitignore 2025-09-12 11:24:06 -04:00
fc0daf6a14
chore(build,ci,docs): switch to Makefile, consolidate CI, add caching + AGENTS (#47) 2025-08-30 22:36:11 -04:00
9c5123968a
payment form 2025-06-27 13:28:46 +02:00
e72ad67c98
update deps 2025-06-23 19:02:48 +02:00
2ef9db274e
feat(invoice): add additional charge for extra guests in invoice template
Include a note stating that an additional fee of 15€ per day per extra person will be applied. This change clarifies billing details for users.
2025-05-25 19:31:45 +02:00
f836822ff0
upgrade dependencies and remove dead code 2025-05-04 23:48:12 +02:00
e298efabb4
fix(config): correct env variable prefix in documentation
Update the documentation for the Config struct to clarify that environment variables must be prefixed, e.g., with "APP_", to be recognized. This change improves clarity for users configuring the application.
2025-05-04 22:06:46 +02:00
db1fa2cbd9
feat: update Go version and dependencies
Updated Go version to 1.24 and upgraded dependencies to their latest
compatible versions. This includes updates to Dockerfiles, go.mod,
and go.sum. Regenerated templated files with templ v0.3.857.
2025-04-23 17:31:46 +02:00
9e9cd8acc4
update dependencies 2025-03-23 23:06:19 +01:00
75eb3b8502
use COnfig struct to parse env variables 2025-03-23 22:57:22 +01:00
7d909f34e3
remove payment status field on item (#41) 2025-02-22 02:34:13 +01:00
bfde4eb601
fix bugs (#37)
### TL;DR
Reorganized booking service code and removed unused BookingRequest model

### What changed?
- Moved Payment model from payment.go to models.go
- Relocated payment-related service methods from service.go to payment.go
- Removed unused BookingRequest struct
- Updated dependencies to their latest versions

### How to test?
1. Run database migrations to verify removal of BookingRequest model
2. Test all payment-related endpoints to ensure functionality remains intact:
   - GET /payments/{id}
   - POST /payments
   - PUT /payments/{id}

### Why make this change?
- Improves code organization by grouping payment-related code together
- Removes unused BookingRequest model to reduce technical debt
- Keeps dependencies up to date for security and performance improvements
2025-01-25 00:41:32 +01:00
a2ce003299
parsing (#28)
* test: add test for booking parsing

* improve error handling

* fix: booking parsing

fix: guest number

fix: item name

fix: parsing

* refactor tests

* test: more
2025-01-05 16:04:44 +01:00
04d9e8c284
chore: upgrade dependencies 2025-01-04 13:19:01 +01:00
c6ec3a3a97
fix: dependencies 2024-12-08 17:45:47 +01:00
7b0d63855f
test: add test for All 2024-12-08 12:08:54 +01:00
025f31f79d
update dependencies 2024-12-07 12:31:51 +01:00
620465f206
RE20 github link footer (#21)
* add a github logo link to the repository in the footer

* update deps

* remove useless css loading
2024-11-14 22:14:20 +01:00
280470c385
up deps and add database package 2024-09-08 21:16:04 +02:00
54c772a265
update deps 2024-09-04 16:12:12 +02:00
f4250fb275
cleanup 2024-08-23 08:21:22 +02:00
75832d251d
use colorful logger 2024-08-21 16:56:11 +02:00
47ee4f2168
upgrade to Go 1.23 2024-08-21 07:41:54 +02:00
622adafef6
debug calendar secrets (#15)
* debug secret parsing

* better logging

* update deps
2024-08-09 14:36:14 +02:00
509afddf92
install G Calendar client 2024-08-03 22:33:50 +02:00
efc8c90d63
add dockerfile 2024-07-14 23:47:23 +02:00
0dc9bee3f7
add api_key to config 2024-06-16 16:20:55 +02:00
7d4e7816cd
update readme 2024-06-14 22:26:00 +02:00
5a5c31fba6
update golang version 2024-06-02 11:12:03 +02:00
e1766812c4
session login 2024-05-25 16:38:25 +02:00
8f4f1638a4
add google login 2024-05-19 21:04:05 +02:00
fee3f660ed
add login page 2024-05-10 12:45:08 +02:00
bb8ea5fe07
require all fields to create item 2024-04-20 21:53:33 +02:00
f89ee4f33d
update deps 2024-04-19 15:06:50 +02:00
f764e1007c
add transport 2024-04-06 13:34:33 +02:00
dependabot[bot]
68500cbdb2
Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.3 to 5.5.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-14 22:24:03 +00:00
f4870cbb4c
sentry 2024-03-11 20:41:45 +01:00
a971aab58c
view model 2024-02-09 23:04:02 +01:00
a1b7c5921b
initial project structure 2024-02-04 12:48:43 +01:00