mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
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.
38 lines
943 B
Go
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
|
|
}
|