guibranco/MaxiPago-SDK-dotnet

View on GitHub

Showing 36 of 52 total issues

File Transaction.cs has 999 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System.Threading;
using MaxiPago.DataContract;
using MaxiPago.DataContract.Transactional;

namespace MaxiPago.Gateway
Severity: Major
Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 days to fix

    Method Auth has 37 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                string merchantId,
                string merchantKey,
                string referenceNum,
                decimal chargeTotal,
                string creditCardNumber,
    Severity: Major
    Found in Src/MaxiPago/Gateway/Transaction.cs - About 4 hrs to fix

      Method Sale has 37 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  string merchantId,
                  string merchantKey,
                  string referenceNum,
                  decimal chargeTotal,
                  string creditCardNumber,
      Severity: Major
      Found in Src/MaxiPago/Gateway/Transaction.cs - About 4 hrs to fix

        Class CommandRequest has 32 methods (exceeds 20 allowed). Consider refactoring.
        Open

            [Serializable]
            [XmlRoot(ElementName = "request")]
            public class CommandRequest
            {
                /// <summary>
        Severity: Minor
        Found in Src/MaxiPago/DataContract/NonTransactional/CommandRequest.cs - About 4 hrs to fix

          Method PaySavingCreditCardAutomatically has 32 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                      string operation,
                      string merchantId,
                      string merchantKey,
                      string referenceNum,
                      decimal chargeTotal,
          Severity: Major
          Found in Src/MaxiPago/Gateway/Transaction.cs - About 4 hrs to fix

            Method Sale has 31 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        string merchantId,
                        string merchantKey,
                        string referenceNum,
                        decimal chargeTotal,
                        string creditCardNumber,
            Severity: Major
            Found in Src/MaxiPago/Gateway/Transaction.cs - About 3 hrs to fix

              Method Auth has 31 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                          string merchantId,
                          string merchantKey,
                          string referenceNum,
                          decimal chargeTotal,
                          string creditCardNumber,
              Severity: Major
              Found in Src/MaxiPago/Gateway/Transaction.cs - About 3 hrs to fix

                Method FillRequestBase has 20 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                            string operation,
                            string merchantId,
                            string merchantKey,
                            string referenceNum,
                            decimal chargeTotal,
                Severity: Major
                Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                  Method Recurring has 20 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                              string merchantId,
                              string merchantKey,
                              string referenceNum,
                              decimal chargeTotal,
                              string creditCardNumber,
                  Severity: Major
                  Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                    Method PaySavingCreditCardAutomatically has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            private ResponseBase PaySavingCreditCardAutomatically(
                                string operation,
                                string merchantId,
                                string merchantKey,
                                string referenceNum,
                    Severity: Major
                    Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                      Method Boleto has 19 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  string merchantId,
                                  string merchantKey,
                                  string referenceNum,
                                  decimal chargeTotal,
                                  string processorId,
                      Severity: Major
                      Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                        Method Sale has 19 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                    string merchantId,
                                    string merchantKey,
                                    string referenceNum,
                                    decimal chargeTotal,
                                    string creditCardNumber,
                        Severity: Major
                        Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                          Method AddCardOnFile has 19 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                      string merchantId,
                                      string merchantKey,
                                      string customerId,
                                      string creditCardNumber,
                                      string expirationMonth,
                          Severity: Major
                          Found in Src/MaxiPago/Gateway/Api.cs - About 2 hrs to fix

                            Method Auth has 19 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                        string merchantId,
                                        string merchantKey,
                                        string referenceNum,
                                        decimal chargeTotal,
                                        string creditCardNumber,
                            Severity: Major
                            Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                              Method Recurring has 17 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                          string merchantId,
                                          string merchantKey,
                                          string referenceNum,
                                          decimal chargeTotal,
                                          string customerId,
                              Severity: Major
                              Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                                Method UpdateConsumer has 16 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                            string merchantId,
                                            string merchantKey,
                                            string customerId,
                                            string customerIdExt,
                                            string firstName,
                                Severity: Major
                                Found in Src/MaxiPago/Gateway/Api.cs - About 2 hrs to fix

                                  Method Sale has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public ResponseBase Sale(
                                              string merchantId,
                                              string merchantKey,
                                              string referenceNum,
                                              decimal chargeTotal,
                                  Severity: Minor
                                  Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                                    Method Auth has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public ResponseBase Auth(
                                                string merchantId,
                                                string merchantKey,
                                                string referenceNum,
                                                decimal chargeTotal,
                                    Severity: Minor
                                    Found in Src/MaxiPago/Gateway/Transaction.cs - About 2 hrs to fix

                                      Method PayWithToken has 15 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                                  string operation,
                                                  string merchantId,
                                                  string merchantKey,
                                                  string referenceNum,
                                                  decimal chargeTotal,
                                      Severity: Major
                                      Found in Src/MaxiPago/Gateway/Transaction.cs - About 1 hr to fix

                                        Method AddConsumer has 15 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                    string merchantId,
                                                    string merchantKey,
                                                    string customerIdExt,
                                                    string firstName,
                                                    string lastName,
                                        Severity: Major
                                        Found in Src/MaxiPago/Gateway/Api.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language