Prices for {{ .ProductName }}

{{ if .Error }} {{ end }} {{ with index .FieldErrors "" }} {{ end }}

Create Price

{{ $err := index .FieldErrors "amount" }} {{ with $err }}
{{ . }}
{{ end }}
{{ $err := index .FieldErrors "currency" }} {{ with $err }}
{{ . }}
{{ end }}
{{ if not .Error }} {{ if eq (len .Prices) 0 }}

No prices found for this product.

{{ else }}
{{ range .Prices }} {{ end }}
Amount Default Type Interval Trial Period Active Stripe Sync Stripe Price ID Created Actions
{{ .UnitAmount }} {{ if .IsDefault }} Default {{ else }} {{ end }} {{ if .IsRecurring }} Recurring {{ else }} One-time {{ end }} {{ if .RecurringInterval }} {{ .RecurringInterval }} {{ else }} {{ end }} {{ if .TrialPeriodDays }} {{ .TrialPeriodDays }} days not yet honored {{ else }} {{ end }} {{ if .IsActive }} Yes {{ else }} No {{ end }} {{ if eq .StripeSyncStatus "synced" }} Synced {{ else if eq .StripeSyncStatus "pending" }} Pending {{ else if eq .StripeSyncStatus "not_mapped" }} Not Mapped {{ else }} {{ .StripeSyncStatus }} {{ end }} {{ if .StripePriceID }} {{ $url := stripeEntityURL "prices" .StripePriceID }} {{ if $url }} {{ .StripePriceID }} {{ else }} {{ .StripePriceID }} {{ end }} {{ else }} {{ end }} {{ .CreatedAt }} {{ if and $.StripeConfigured (eq .StripeSyncStatus "not_mapped") }} {{ end }} {{ if not .IsDefault }} {{ end }}

Total: {{ len .Prices }} prices

{{ end }} {{ end }}