Skip to content

Commit

Permalink
Release 4.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect committed Apr 18, 2024
1 parent d281d64 commit 9a106f7
Show file tree
Hide file tree
Showing 454 changed files with 1,920 additions and 1,989 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: code
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1'
- name: Install docfx
Expand All @@ -27,7 +27,7 @@ jobs:
run: docfx docfx.json
working-directory: code/documentation
- name: Checkout pages
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages
path: pages
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1
Expand All @@ -30,7 +30,7 @@ jobs:
dotnet restore Worldline.Connect.Sdk.StrongName
dotnet build -c Release Worldline.Connect.Sdk.StrongName
dotnet pack -c Release Worldline.Connect.Sdk.StrongName
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: packages
path: '**/*.nupkg'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ public async void Example()
}
catch (ApiException e)
{
HandleApiErrors(e.Errors);
HandleErrorResponse(e.ErrorId, e.Errors);
}
}
#pragma warning restore 0168
}

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand All @@ -56,9 +56,9 @@ private static void HandleDeclinedRefund(RefundResult refundResult)
// handle the result here
}

private static void HandleApiErrors(IList<APIError> errors)
private static void HandleErrorResponse(string errorId, IList<APIError> errors)
{
// handle the errors here
// handle the error response here
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Captures
{
public class GetCaptureExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Disputes
{
public class CancelDisputeExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Disputes
{
public class GetDisputeExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Disputes
{
public class SubmitDisputeExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
using System.IO;
using Worldline.Connect.Sdk.Domain;
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Disputes
{
Expand All @@ -28,8 +27,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ await client.V1.WithNewMerchant("merchantId").Files.GetFile("fileId", (stream, h

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Hostedcheckouts
{
public class GetHostedCheckoutExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Hostedmandatemanagements
{
public class GetHostedMandateManagementExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Mandates
{
public class BlockMandateExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Mandates
{
public class GetMandateExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Mandates
{
public class RevokeMandateExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* This class was auto-generated from the API references found at
* https://apireference.connect.worldline-solutions.com/
*/
using Worldline.Connect.Sdk.V1.Domain;

namespace Worldline.Connect.Sdk.V1.Merchant.Mandates
{
public class UnblockMandateExample
Expand All @@ -20,8 +18,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public async void Example()

private static Client GetClient()
{
var apiKeyId = "someKey";
var secretApiKey = "someSecret";
const string apiKeyId = "someKey";
const string secretApiKey = "someSecret";

var configuration = Factory.CreateConfiguration(apiKeyId, secretApiKey);
return Factory.CreateClient(configuration);
Expand Down
Loading

0 comments on commit 9a106f7

Please sign in to comment.