#!/usr/bin/env sh

backend_service_modules() {
  service="${1:-}"
  case "${service}" in
    bff)
      cat <<'EOF'
api/pkg
api/edge/bff
EOF
      ;;
    callbacks)
      cat <<'EOF'
api/pkg
api/edge/callbacks
EOF
      ;;
    billing_documents)
      cat <<'EOF'
api/pkg
api/billing/documents
EOF
      ;;
    billing_fees)
      cat <<'EOF'
api/pkg
api/billing/fees
EOF
      ;;
    discovery)
      cat <<'EOF'
api/pkg
api/discovery
EOF
      ;;
    fx_ingestor)
      cat <<'EOF'
api/pkg
api/fx/storage
api/fx/ingestor
EOF
      ;;
    fx_oracle)
      cat <<'EOF'
api/pkg
api/fx/storage
api/fx/oracle
EOF
      ;;
    gateway_chain)
      cat <<'EOF'
api/pkg
api/gateway/chain
EOF
      ;;
    gateway_mntx)
      cat <<'EOF'
api/pkg
api/gateway/mntx
EOF
      ;;
    gateway_aurora)
      cat <<'EOF'
api/pkg
api/gateway/aurora
EOF
      ;;
    gateway_chsettle)
      cat <<'EOF'
api/pkg
api/gateway/chsettle
EOF
      ;;
    gateway_tgsettle)
      cat <<'EOF'
api/pkg
api/gateway/tgsettle
EOF
      ;;
    gateway_tron)
      cat <<'EOF'
api/pkg
api/gateway/tron
EOF
      ;;
    ledger)
      cat <<'EOF'
api/pkg
api/ledger
EOF
      ;;
    notification)
      cat <<'EOF'
api/pkg
api/notification
EOF
      ;;
    payments_methods)
      cat <<'EOF'
api/pkg
api/payments/storage
api/payments/methods
EOF
      ;;
    payments_orchestrator)
      cat <<'EOF'
api/pkg
api/payments/storage
api/payments/orchestrator
EOF
      ;;
    payments_quotation)
      cat <<'EOF'
api/pkg
api/payments/storage
api/payments/quotation
EOF
      ;;
    *)
      return 1
      ;;
  esac
}
