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

export default registerAs("dmoney", () => ({
  baseUrl: process.env.DMONEY_BASE_URL ?? "",
  webBaseUrl: process.env.DMONEY_WEB_BASE_URL ?? "",
  fabricAppId: process.env.DMONEY_FABRIC_APP_ID ?? "",
  appSecret: process.env.DMONEY_APP_SECRET ?? "",
  merchantAppId: process.env.DMONEY_MERCHANT_APP_ID ?? "",
  merchantCode: process.env.DMONEY_MERCHANT_CODE ?? "",
  notifyUrl: process.env.DMONEY_NOTIFY_URL ?? "",
  returnUrl: process.env.DMONEY_RETURN_URL ?? "",
  timeoutExpress: process.env.DMONEY_TIMEOUT_EXPRESS ?? "120m",
  language: process.env.DMONEY_LANGUAGE ?? "en",
  currency: process.env.DMONEY_CURRENCY ?? "FDJ",
  privateKey: process.env.DMONEY_PRIVATE_KEY ?? "",
  publicKey: process.env.DMONEY_PUBLIC_KEY ?? "",
  insecureTls: process.env.DMONEY_INSECURE_TLS === "true",
}));
