import env from "$env/index.js";

export default {
  sejamConfig: {
    url: env.SEJAM_API_URL,
    username: env.SEJAM_USERNAME,
    password: env.SEJAM_PASSWORD,
    testMode: env.SEJAM_TEST_MODE === "true",
  },
  smsConfig: {
    url: env.SMS_API_URL,
    key: env.SMS_API_KEY,
    otpTemplateId: env.SMS_OTP_TEMPLATE_ID,
    loginNotifTemplateId: env.SMS_LOGIN_NOTIF_TEMPLATE_ID,
  },
  tadbirConfig: {
    url: env.TADBIR_API_URL,
    key: env.TADBIR_API_KEY,
    username: env.TADBIR_API_USERNAME,
    password: env.TADBIR_API_PASSWORD,
  },
  sepahBrokerConfig: {
    rootUrl: env.SEPAH_BROKER_ROOT_URL,
    otpUrl: env.SEPAH_BROKER_OTP_URL,
    gatewayUrl: env.SEPAH_BROKER_GATEWAY_URL,
    callbackUrl: `${env.FRONT_BASE_URL}/payment-result`,
    registerUrl: env.SEPAH_BROKER_REGISTER_URL || "",
    username: env.SEPAH_BROKER_USERNAME,
    password: env.SEPAH_BROKER_PASSWORD,
    tokenId: env.SEPAH_BROKER_TOKEN_ID,
    defaultMarket: Number(env.SEPAH_BROKER_DEFAULT_MARKET || 1),
  },
};
