namespace ComplianceDAL.DTO.GSTReturn; // Matches GB4's GSTHeaderDTO (Unisoft.GSTFramework.DAL.DTO.GSTHeader) — bundles the per-call context // GSTCafeServiceBLL.CallGSTService sends on every GST Returns API call (Username/GSTIN/StateCode for // headers, AuthToken/Sek from the OTP+auth-token exchange, EvcOTP for the file step). Sent by the FE // as a request header (GSTHeader), the same way LoginDTO is sent via the Login header. public class GSTHeaderDTO { public string UserName { get; set; } = string.Empty; public string GSTIN { get; set; } = string.Empty; public string StateCode { get; set; } = string.Empty; public string AuthToken { get; set; } = string.Empty; public string Sek { get; set; } = string.Empty; public string EvcOTP { get; set; } = string.Empty; // Raw (unencrypted) app-key from RequestOTPAsync's AdapterAuthResult.AppKey — must be echoed // back here on the GetAuthTokenAsync call for the same OTP session (see GSTCafeAdapter). public string AppKey { get; set; } = string.Empty; // GB4's LoginDTO.FP, sent as "ret_period" on every GST Returns call — bundled into the header // itself (rather than threaded as a separate method parameter) so it comes from the same place // as GSTIN/UserName/StateCode: the endpoint parameter, not re-derived downstream. public string ReturnPeriod { get; set; } = string.Empty; }