Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void Main(string[] args)

if (result.Transactions.Count <= 0)
{
e("Nenhuma transação abandonada");
throw new Exception("Nenhuma transação abandonada");
}

foreach (TransactionSummary transaction in result.Transactions)
Expand Down
11 changes: 5 additions & 6 deletions source/Examples/DocExamples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ static void SenderExample()
);

paymentRequest.Sender = sender;
if (paymentRequest.Sender)
{

if (paymentRequest.Sender.Phone)
if (paymentRequest.Sender != null)
{
if (paymentRequest.Sender.Phone != null)
{

}
}

Expand Down Expand Up @@ -219,10 +218,10 @@ static void ShippingExample()

static void Shipping2Example(Transaction transaction)
{
if (transaction.Shipping)
if (transaction.Shipping != null)
{

if (transaction.Shipping.Address)
if (transaction.Shipping.Address != null)
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ static void Main(string[] args)

}
catch (PagSeguroServiceException exception)
{}

{
foreach (ServiceError element in exception.Errors)
{

}

}
}
}
Expand Down
36 changes: 18 additions & 18 deletions source/Uol.PagSeguro/Constants/BankName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,39 +28,39 @@ public static class BankName
/// </summary>
public static string Bradesco

{
get { return "bradesco"; }
}
{
get { return "bradesco"; }
}

/// <summary>
/// Itaú
/// </summary>
public const string Itau
{
get { return "itau"; }
}
public static string Itau
{
get { return "itau"; }
}
/// <summary>
/// Banco do Brasil
/// </summary>
public static string BancoDoBrasil
{
get { return "bancodobrasil"; }
}
{
get { return "bancodobrasil"; }
}

/// <summary>
/// Banrisul
/// </summary>
public static string Banrisul
{
get { return "banrisul"; }
}
/// <summary>
{
get { return "banrisul"; }
}
/// <summary>
/// HSBC
/// </summary>
public static string HSBC
{
get { return "hsbc"; }
}
{
get { return "hsbc"; }
}

}
}
8 changes: 4 additions & 4 deletions source/Uol.PagSeguro/Constants/Currency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public static class Currency
/// <summary>
/// Brazilian Real
/// </summary>
public const string Brl
{
get { return "BRL"; }
}
public static string Brl
{
get { return "BRL"; }
}
}
}
Loading