kra-new/internal/data/payment/payment_helpers.go

18 lines
541 B
Go

package payment
import "kra/internal/paymentkit"
func text(values map[string]any, key string) string {
return paymentkit.Text(values, key)
}
func firstAny(values map[string]any, keys ...string) string {
return paymentkit.FirstText(values, keys...)
}
// configuredInt64 keeps repository-side validation independent from the
// provider adapter package while sharing the canonical payment parser.
func configuredInt64(values map[string]any, key string, fallback int64) int64 {
return paymentkit.ConfiguredInt64(values, key, fallback)
}