Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 2.26.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingenico ePayments committed Oct 9, 2018
1 parent 6a98634 commit ce6fcde
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 58 deletions.
2 changes: 1 addition & 1 deletion connect-sdk-dotnet-examples/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("2.25.0.*")]
[assembly: AssemblyVersion("2.26.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>Ingenico.Connect.Sdk</RootNamespace>
<AssemblyName>connect-sdk-dotnet-examples</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<ReleaseVersion>2.25.0</ReleaseVersion>
<ReleaseVersion>2.26.0</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet-it/connect-sdk-dotnet-it.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>Ingenico.Connect.Sdk</RootNamespace>
<AssemblyName>connect-sdk-dotnet-it</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<ReleaseVersion>2.25.0</ReleaseVersion>
<ReleaseVersion>2.26.0</ReleaseVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void TestTotalMinimalExample()
IList<RequestHeader> httpHeaders = new List<RequestHeader>();
httpHeaders.Add(new RequestHeader("User-Agent", "Apache-HttpClient/4.3.4 (java 1.5)"));
httpHeaders.Add(new RequestHeader("Date", "Fri, 06 Jun 2014 13:39:43 GMT"));
string signature = authenticator.CreateSimpleAuthenticationSignature(HttpMethod.Get, new Uri("http://api.globalcollect.com:8080/v1/9991/tokens/123456789"), httpHeaders);
string signature = authenticator.CreateSimpleAuthenticationSignature(HttpMethod.Get, new Uri("http://world.api-ingenico.com:8080/v1/9991/tokens/123456789"), httpHeaders);
Assert.AreEqual("GCS v1HMAC:5e45c937b9db33ae:J5LjfSBvrQNhu7gG0gvifZt+IWNDReGCmHmBmth6ueI=", signature);
}

Expand All @@ -94,7 +94,7 @@ public void TestTotalFullExample()
httpHeaders.Add(new RequestHeader("Content-Type", "application/json"));
httpHeaders.Add(new RequestHeader("X-GCS-CustomerHeader", "processed header value"));
httpHeaders.Add(new RequestHeader("Date", "Fri, 06 Jun 2014 13:39:43 GMT"));
string signature = authenticator.CreateSimpleAuthenticationSignature(HttpMethod.Delete, new Uri("http://api.globalcollect.com:8080/v1/9991/tokens/123456789"), httpHeaders);
string signature = authenticator.CreateSimpleAuthenticationSignature(HttpMethod.Delete, new Uri("http://world.api-ingenico.com:8080/v1/9991/tokens/123456789"), httpHeaders);
Assert.AreEqual("GCS v1HMAC:5e45c937b9db33ae:jGWLz3ouN4klE+SkqO5gO+KkbQNM06Rric7E3dcfmqw=", signature);
}
}
Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet-tests/connect-sdk-dotnet-tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<ReleaseVersion>2.25.0</ReleaseVersion>
<ReleaseVersion>2.26.0</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ Global
$31.IncludeStaticEntities = True
$0.VersionControlPolicy = $33
$33.inheritsSet = Mono
version = 2.25.0
version = 2.26.0
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ public class PaymentStatusOutput : OrderStatusOutput
public bool? IsAuthorized { get; set; } = null;

public bool? IsRefundable { get; set; } = null;

public string ThreeDSecureStatus { get; set; } = null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Ingenico.Connect.Sdk.Domain.Refund;
using Ingenico.Connect.Sdk.Domain.Token;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;

namespace Ingenico.Connect.Sdk.Merchant.Payments
Expand Down Expand Up @@ -55,28 +54,7 @@ public async Task<CreatePaymentResponse> Create(CreatePaymentRequest body, CallC
}
catch (ResponseException e)
{
object errorObject;
switch (e.StatusCode)
{
case HttpStatusCode.BadRequest:
errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
break;
case HttpStatusCode.PaymentRequired:
errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
break;
case HttpStatusCode.Forbidden:
errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
break;
case HttpStatusCode.BadGateway:
errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
break;
case HttpStatusCode.ServiceUnavailable:
errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
break;
default:
errorObject = _communicator.Marshaller.Unmarshal<ErrorResponse>(e.Body);
break;
}
object errorObject = _communicator.Marshaller.Unmarshal<PaymentErrorResponse>(e.Body);
throw CreateException(e.StatusCode, e.Body, errorObject, context);
}
}
Expand Down Expand Up @@ -483,19 +461,7 @@ public async Task<RefundResponse> Refund(string paymentId, RefundRequest body, C
}
catch (ResponseException e)
{
object errorObject;
switch (e.StatusCode)
{
case HttpStatusCode.BadRequest:
errorObject = _communicator.Marshaller.Unmarshal<RefundErrorResponse>(e.Body);
break;
case HttpStatusCode.NotFound:
errorObject = _communicator.Marshaller.Unmarshal<RefundErrorResponse>(e.Body);
break;
default:
errorObject = _communicator.Marshaller.Unmarshal<ErrorResponse>(e.Body);
break;
}
object errorObject = _communicator.Marshaller.Unmarshal<RefundErrorResponse>(e.Body);
throw CreateException(e.StatusCode, e.Body, errorObject, context);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Ingenico.Connect.Sdk.Domain.Errors;
using Ingenico.Connect.Sdk.Domain.Payout;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;

namespace Ingenico.Connect.Sdk.Merchant.Payouts
Expand Down Expand Up @@ -52,16 +51,7 @@ public async Task<PayoutResponse> Create(CreatePayoutRequest body, CallContext c
}
catch (ResponseException e)
{
object errorObject;
switch (e.StatusCode)
{
case HttpStatusCode.BadRequest:
errorObject = _communicator.Marshaller.Unmarshal<PayoutErrorResponse>(e.Body);
break;
default:
errorObject = _communicator.Marshaller.Unmarshal<ErrorResponse>(e.Body);
break;
}
object errorObject = _communicator.Marshaller.Unmarshal<PayoutErrorResponse>(e.Body);
throw CreateException(e.StatusCode, e.Body, errorObject, context);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal string PlatformIdentifier
}
}

const string SDK_VERSION = "2.25.0";
const string SDK_VERSION = "2.26.0";

const string SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo";

Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("2.25.0.*")]
[assembly: AssemblyVersion("2.26.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet/connect-sdk-dotnet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>Ingenico.Connect.Sdk</RootNamespace>
<AssemblyName>connect-sdk-dotnet</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<ReleaseVersion>2.25.0</ReleaseVersion>
<ReleaseVersion>2.26.0</ReleaseVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion connect-sdk-dotnet/connect-sdk-dotnet.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>connect-sdk-dotnet</id>
<version>2.25.0</version>
<version>2.26.0</version>
<authors>Ingenico ePayments</authors>
<owners>Ingenico ePayments</owners>
<description>SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API</description>
Expand Down

0 comments on commit ce6fcde

Please sign in to comment.