package dto_astrologer

// WithdrawRequest is the body of POST /astrologer/wallet/withdraw and of
// POST /astrologer/wallet/withdraw/preview.
//
// Payout details are deliberately not part of it. They are read server-side
// from the astrologer's saved astrologer_bank_accounts row, selected by
// PaymentMethod, so a modified client cannot direct a payout to an account
// that was never verified. The withdraw screen matches this: it only lets the
// astrologer pick between the saved UPI and the saved bank account.
type WithdrawRequest struct {

	// Gross amount the astrologer asked for. TDS and the instant charge come
	// out of this, they are not added on top.
	Amount float64 `json:"amount" binding:"required"`

	// GENERAL or INSTANT. Empty is treated as GENERAL.
	WithdrawType string `json:"withdrawType"`

	// UPI or BANK.
	PaymentMethod string `json:"paymentMethod" binding:"required"`
}
