export const DEFAULT_RECURRING_COLLECTION_RETRY_AFTER_MINUTES = 30;

export function parsePositiveIntegerConfig(value: string | undefined, fallback: number): number {
  if (value === undefined || value.trim() === "") {
    return fallback;
  }
  const parsed = Number.parseInt(value, 10);
  return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
}
