import { parseDecryptedFieldValue } from "@open-mercato/shared/lib/encryption/tenantDataEncryptionService";
function normalizeDecryptedValue(value) {
  return typeof value === "string" ? parseDecryptedFieldValue(value) : value;
}
function readGatewayMetadata(value) {
  const parsed = normalizeDecryptedValue(value);
  return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
}
function readWebhookLog(value) {
  const parsed = normalizeDecryptedValue(value);
  return Array.isArray(parsed) ? parsed : [];
}
export {
  readGatewayMetadata,
  readWebhookLog
};
//# sourceMappingURL=transaction-fields.js.map
