Exemplo n.º 1
0
        private static void TestGSTR2Get(string gstin, string fp)
        {
            GSTNAuthClient client = GetAuth(gstin);

            GSTR2.GSTR2Total model   = new GSTR2.GSTR2Total();
            GSTR2ApiClient   client2 = new GSTR2ApiClient(client, gstin, fp);

            model.b2b = client2.GetB2B("").Data;
            var model2 = client2.GetSummary(fp).Data;
        }
Exemplo n.º 2
0
        private static void TestGSTR2Get(IGSTNAuthProvider auth, string gstin, string userid, string fp)
        {
            GSTR2.GSTR2Total model   = new GSTR2.GSTR2Total();
            GSTR2ApiClient   client2 = new GSTR2ApiClient(auth, gstin, userid, fp);

            System.Console.Write("Action Required? Y/N/Enter");
            string action = System.Console.ReadLine();

            model = client2.GetSection("B2B", "", action, "").Data;
            var model2 = client2.GetSummary().Data;
        }
Exemplo n.º 3
0
        private static void TestGSTR2(string gstin, string fp)
        {
            GSTNAuthClient client = GetAuth(gstin);

            GSTR2.GSTR2Total model   = new GSTR2.GSTR2Total();
            GSTR2ApiClient   client2 = new GSTR2ApiClient(client, gstin, fp);

            model.b2b   = client2.GetB2B("Y").Data;
            model.imp_g = client2.GetImpG(fp).Data;
            var result3 = client2.Save(model);

            var model2 = client2.GetSummary(fp).Data;
        }