rentease/internal/view/booking_viewmodel.go
Ruidy 8384d85e3e
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.
2025-10-03 21:39:59 +02:00

36 lines
747 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
CancelUrl string
Total string
}
type PaymentViewModel struct {
Amount string
PaymentMethod string
PaymentUrl string
StripeStatus string
}