rentease/internal/view/booking_viewmodel.go
Ruidy a0b7672e9e
Some checks are pending
CI / checks (push) Waiting to run
feat(payments): add Stripe dashboard links for card payments
- 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

38 lines
943 B
Go

package view
import (
"github.com/a-h/templ"
"github.com/rjNemo/rentease/internal/config"
)
type BookingViewModel struct {
Id string
Name string
PhoneNumber string
CustomerNumber string
Email string
Canceled bool
From string
To string
Platform string
ExternalId string
Platforms []string
PlatformFees string
Items ItemListViewModel
ItemList []string
PaymentMethods []config.PaymentMethod
Url string
PdfUrl templ.SafeURL
PaymentUrl string
StripePaymentLinkUrl string
CancelUrl string
Total string
}
type PaymentViewModel struct {
Amount string
PaymentMethod string
PaymentUrl string
StripeStatus string
StripeDashboardURL string
}