Ejemplo n.º 1
0
        internal Transaction(string raw, string amount, string wasTest, string succeeded, string token, string obfuscatedNumber, TransactionErrors errors)
        {
            if (!string.IsNullOrEmpty(amount))
                Amount = decimal.Parse(amount, CultureInfo.InvariantCulture);

            WasTest = string.Equals(wasTest, "true", StringComparison.InvariantCultureIgnoreCase);

            Succeeded = string.Equals(succeeded, "true", StringComparison.InvariantCultureIgnoreCase);
            Token = token;
            ObfuscatedNumber = obfuscatedNumber;
            Errors = errors;

            Raw = raw;
        }
Ejemplo n.º 2
0
        internal Transaction(string raw, string amount, string wasTest, string succeeded, string token, string obfuscatedNumber, string avs_code, TransactionErrors errors)
        {
            if (!string.IsNullOrEmpty(amount))
            {
                Amount = decimal.Parse(amount, CultureInfo.InvariantCulture) / 100;
            }

            WasTest = string.Equals(wasTest, "true", StringComparison.InvariantCultureIgnoreCase);

            Succeeded        = string.Equals(succeeded, "true", StringComparison.InvariantCultureIgnoreCase);
            Token            = token;
            ObfuscatedNumber = obfuscatedNumber;
            Errors           = errors;

            AvsCode = avs_code;
            Raw     = raw;
        }
Ejemplo n.º 3
0
 public Transaction(bool wasTest, TransactionErrors errors)
 {
     Succeeded = false;
     WasTest = wasTest;
     Errors = errors;
 }
Ejemplo n.º 4
0
 public Transaction(bool wasTest, TransactionErrors errors)
 {
     Succeeded = false;
     WasTest   = wasTest;
     Errors    = errors;
 }