Commit graph

26 commits

Author SHA1 Message Date
9b2510460a
feat: store invoice PDFs in minio
Some checks are pending
CI / checks (push) Waiting to run
2026-03-20 23:58:57 +01:00
df1cd66cf1
chore: wire APP_OPENAI_MODEL and upgrade Go/deps 2026-02-18 18:32:01 +01:00
d75533d431
docs: update README
Some checks failed
CI / checks (push) Has been cancelled
2025-11-22 09:36:53 +01:00
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
a0b7672e9e
feat(payments): add Stripe dashboard links for card payments
Some checks are pending
CI / checks (push) Waiting to run
- Add `APP_STRIPE_ACCOUNT_ID` to config and README.
- Pass Stripe account ID to payment view models.
- Show "View in Stripe" badge linking to the payment in Stripe dashboard
  for card payments when account ID and payment ID are present.
- Update Makefile to run format/lint locally instead of in container.
- Update templates and generated code to support new dashboard link.
2025-11-16 18:04:35 +01:00
5cfe9b4169
refactor(stripe): remove support for Stripe Connect account
Eliminated all references to the Stripe Connect account configuration
and
option handling. This includes removing the related environment
variable,
config struct field, client option, and usage in Stripe client setup.
Stripe integration now only uses the main secret key and webhook secret.
2025-10-30 17:03:55 +01:00
aa9f46a222
feat/stripe integration (#48) 2025-10-19 15:48:59 +02:00
fc0daf6a14
chore(build,ci,docs): switch to Makefile, consolidate CI, add caching + AGENTS (#47) 2025-08-30 22:36:11 -04:00
7d909f34e3
remove payment status field on item (#41) 2025-02-22 02:34:13 +01:00
106aa475d6
fix: the card total reporting 2024-12-24 18:13:19 +01:00
c8490bd803
improve readme 2024-11-15 10:20:07 +01:00
e02de4daa5
split repo 2024-09-08 23:16:50 +02:00
6bff5ccc18
use left join for bookings and items 2024-06-28 17:03:23 +02:00
7d4e7816cd
update readme 2024-06-14 22:26:00 +02:00
9b882f2068
change readme 2024-03-20 16:47:37 +01:00
da38546c3d
use booking.com logic for reports 2024-02-29 15:27:21 +01:00
3cf56095b7
add whatsapp button to report page 2024-02-28 22:50:12 +01:00
d5654f808c
invoice number in place of db id 2024-02-26 17:17:29 +01:00
6a25589751
embed assets in binry 2024-02-25 00:08:11 +01:00
9bcd8e611f
fix line item object 2024-02-23 09:34:35 +01:00
804d08caba
update readme 2024-02-21 22:38:08 +01:00
ec853f6b66
send data to render pdf 2024-02-18 14:01:33 +01:00
032df19805
refactor server config 2024-02-16 20:36:46 +01:00
72d0212316
refactor 2024-02-16 12:13:33 +01:00
3f6c5b6c99
can create booking invoice 2024-02-16 11:31:17 +01:00
a1b7c5921b
initial project structure 2024-02-04 12:48:43 +01:00