Skip to content

Commit

Permalink
2.45.0
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Jul 21, 2015
1 parent b09166d commit 7aa57b9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Braintree.Tests/WebhookNotificationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ public void SampleNotification_ReturnsANotificationForDisputeOpenedWebhook()

Assert.AreEqual(WebhookKind.DISPUTE_OPENED, notification.Kind);
Assert.AreEqual("my_id", notification.Dispute.Id);
Assert.AreEqual("my_id", notification.Dispute.TransactionDetails.Id);
Assert.AreEqual("250.00", notification.Dispute.TransactionDetails.Amount);
}

[Test]
Expand Down
7 changes: 4 additions & 3 deletions Braintree/Braintree.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Braintree</RootNamespace>
<AssemblyName>Braintree-2.44.0</AssemblyName>
<AssemblyName>Braintree-2.45.0</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkSubset>
Expand All @@ -23,7 +23,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Braintree-2.44.0.xml</DocumentationFile>
<DocumentationFile>bin\Debug\Braintree-2.45.0.xml</DocumentationFile>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand All @@ -33,7 +33,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\Braintree-2.44.0.xml</DocumentationFile>
<DocumentationFile>bin\Debug\Braintree-2.45.0.xml</DocumentationFile>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down Expand Up @@ -173,6 +173,7 @@
<Compile Include="ThreeDSecureInfo.cs" />
<Compile Include="TrUtil.cs" />
<Compile Include="Transaction.cs" />
<Compile Include="TransactionDetails.cs" />
<Compile Include="TransactionGateway.cs" />
<Compile Include="TransactionOptionsRequest.cs" />
<Compile Include="TransactionOptionsPayPalRequest.cs" />
Expand Down
2 changes: 2 additions & 0 deletions Braintree/Dispute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class Dispute
public DisputeStatus Status { get; protected set; }
public string CurrencyIsoCode { get; protected set; }
public string Id { get; protected set; }
public TransactionDetails TransactionDetails { get; protected set; }

public Dispute(NodeWrapper node)
{
Expand All @@ -59,6 +60,7 @@ public Dispute(NodeWrapper node)
Status = (DisputeStatus)CollectionUtil.Find(DisputeStatus.ALL, node.GetString("status"), DisputeStatus.UNRECOGNIZED);
CurrencyIsoCode = node.GetString("currency-iso-code");
Id = node.GetString("id");
TransactionDetails = new TransactionDetails(node.GetNode("transaction"));
}
}
}
4 changes: 2 additions & 2 deletions Braintree/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.44.0.0")]
[assembly: AssemblyFileVersion("2.44.0.0")]
[assembly: AssemblyVersion("2.45.0.0")]
[assembly: AssemblyFileVersion("2.45.0.0")]
17 changes: 17 additions & 0 deletions Braintree/TransactionDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;

namespace Braintree
{
public class TransactionDetails
{
public string Id { get; protected set; }
public string Amount { get; protected set; }

protected internal TransactionDetails(NodeWrapper node)
{
Id = node.GetString("id");
Amount = node.GetString("amount");
}
}
}

3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.45.0
* Add Transaction Details to Dispute webhook notifications

## 2.44.0
* Add support for OAuth based authentication

Expand Down

0 comments on commit 7aa57b9

Please sign in to comment.