package app

import (
	"strings"

	"hyapp/services/wallet-service/internal/config"
)

func mifapayConfigReady(cfg config.MifaPayConfig) bool {
	return strings.TrimSpace(cfg.MerAccount) != "" &&
		strings.TrimSpace(cfg.MerNo) != "" &&
		strings.TrimSpace(cfg.PrivateKey) != "" &&
		strings.TrimSpace(cfg.PlatformPublicKey) != ""
}

func v5payConfigReady(cfg config.V5PayConfig) bool {
	return strings.TrimSpace(cfg.MerchantNo) != "" &&
		strings.TrimSpace(cfg.AppKey) != "" &&
		strings.TrimSpace(cfg.SecretKey) != ""
}
