import { registerAs } from '@nestjs/config';

export default registerAs('telebirr', () => ({
  baseUrl: process.env.TELEBIRR_BASE_URL ?? '',
  webBaseUrl: process.env.TELEBIRR_WEB_BASE_URL ?? '',
  fabricAppId: process.env.TELEBIRR_FABRIC_APP_ID ?? '',
  appSecret: process.env.TELEBIRR_APP_SECRET ?? '',
  merchantAppId: process.env.TELEBIRR_MERCHANT_APP_ID ?? '',
  merchantCode: process.env.TELEBIRR_MERCHANT_CODE ?? '',
  notifyUrl: process.env.TELEBIRR_NOTIFY_URL ?? '',
  returnUrl: process.env.TELEBIRR_RETURN_URL ?? '',
  timeoutExpress: process.env.TELEBIRR_TIMEOUT_EXPRESS ?? '15m',
  privateKey: process.env.TELEBIRR_PRIVATE_KEY ?? '',
  publicKey: process.env.TELEBIRR_PUBLIC_KEY ?? '',
  insecureTls: process.env.TELEBIRR_INSECURE_TLS === 'true',
}));
