Skip to content

Commit

Permalink
Release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wallee-deployment-user committed Jun 6, 2023
1 parent 5e15031 commit 9f0e91b
Show file tree
Hide file tree
Showing 128 changed files with 1,117 additions and 1,312 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publishing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.408
dotnet-version: 6.0.408

- name: Install dependencies
run: dotnet restore
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.408
dotnet-version: 6.0.408

- name: Install dependencies
run: dotnet restore
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ The wallee C# library wraps around the wallee API. This library facilitates your

<a name="frameworks-supported"></a>
## Frameworks supported
- .NET 4.6.1 or later
- .NET 6.0 or later
- Windows Phone 7.1 (Mango)

<a name="dependencies"></a>
## Dependencies
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 108.0.1
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.6.0
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 110.2.0
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.3
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 2.0.1

The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
```
Expand All @@ -31,13 +31,13 @@ Install-Package JsonSubTypes
## Installation
```
# Package Manager
Install-Package Wallee -Version 5.2.0
Install-Package Wallee -Version 6.0.0
# .NET CLI
dotnet add package Wallee --version 5.2.0
dotnet add package Wallee --version 6.0.0
# Paket CLI
paket add Wallee --version 5.2.0
paket add Wallee --version 6.0.0
# PackageReference
<PackageReference Include="Wallee" Version="5.2.0" />
<PackageReference Include="Wallee" Version="6.0.0" />
```

Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
Expand Down
12 changes: 6 additions & 6 deletions src/Wallee.Test/Wallee.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>Wallee.Test</AssemblyName>
Expand All @@ -19,11 +19,11 @@

<ItemGroup>
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="RestSharp" Version="108.0.1"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
<PackageReference Include="JsonSubTypes" Version="1.6.0"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="RestSharp" Version="110.2.0"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="JsonSubTypes" Version="2.0.1"/>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>

Expand Down
5 changes: 1 addition & 4 deletions src/Wallee/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public Object CallApi(
{

Dictionary<String, String> defaultHeaderParams = new Dictionary<String, String>() {
{"x-meta-sdk-version", "5.2.0"},
{"x-meta-sdk-version", "6.0.0"},
{"x-meta-sdk-language", "csharp"},
{"x-meta-sdk-provider", "wallee"},
{"x-meta-sdk-language-version", Environment.Version.ToString()}
Expand All @@ -161,9 +161,6 @@ public Object CallApi(
//set timeout for request
request.Timeout = timeout;

// set user agent
RestClient.Options.UserAgent = Configuration.UserAgent;

InterceptRequest(request);
var response = RestClient.Execute(request);
InterceptResponse(request, response);
Expand Down
13 changes: 5 additions & 8 deletions src/Wallee/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "5.2.0";
public const string Version = "6.0.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -94,7 +94,7 @@ public Configuration(string applicationUserID, string authenticationKey, RestCli
_authenticationKey = authenticationKey;
_applicationUserID = applicationUserID;
_restClientOptions = restClientOptions;
UserAgent = "Wallee/5.2.0/csharp";
UserAgent = "Wallee/6.0.0/csharp";
BasePath = "https://app-wallee.com:443/api";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -139,10 +139,7 @@ public virtual string BasePath {
get { return _basePath; }
set {
_basePath = value;
// pass-through to ApiClient if it's set.
if(_apiClient != null) {
_apiClient.RestClient.Options.BaseUrl = new Uri(_basePath);
}
new Uri(_basePath);
}
}

Expand Down Expand Up @@ -358,8 +355,8 @@ public static String ToDebugReport()
String report = "C# SDK (Wallee) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 5.2.0\n";
report += " SDK Package Version: 5.2.0\n";
report += " Version of the API: 6.0.0\n";
report += " SDK Package Version: 6.0.0\n";

return report;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Wallee/Model/AbstractAccountUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ public AbstractAccountUpdate()
public DateTime? LastModifiedDate { get; set; }

/// <summary>
/// The name of the account identifies the account within the administrative interface.
/// The name used to identify the account.
/// </summary>
/// <value>The name of the account identifies the account within the administrative interface.</value>
/// <value>The name used to identify the account.</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }

/// <summary>
/// This property restricts the number of subaccounts which can be created within this account.
/// The number of sub-accounts that can be created within this account.
/// </summary>
/// <value>This property restricts the number of subaccounts which can be created within this account.</value>
/// <value>The number of sub-accounts that can be created within this account.</value>
[DataMember(Name="subaccountLimit", EmitDefaultValue=false)]
public long? SubaccountLimit { get; set; }

Expand Down
8 changes: 4 additions & 4 deletions src/Wallee/Model/AbstractApplicationUserUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ public AbstractApplicationUserUpdate()
}

/// <summary>
/// The user name is used to identify the application user in administrative interfaces.
/// The name used to identify the application user.
/// </summary>
/// <value>The user name is used to identify the application user in administrative interfaces.</value>
/// <value>The name used to identify the application user.</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }

/// <summary>
/// The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.
/// The maximum number of API requests that are accepted every 2 minutes.
/// </summary>
/// <value>The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.</value>
/// <value>The maximum number of API requests that are accepted every 2 minutes.</value>
[DataMember(Name="requestLimit", EmitDefaultValue=false)]
public long? RequestLimit { get; set; }

Expand Down
19 changes: 12 additions & 7 deletions src/Wallee/Model/AbstractCustomerActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,30 @@ public AbstractCustomerActive()
}

/// <summary>
/// Gets or Sets CustomerId
/// The customer&#39;s ID in the merchant&#39;s system.
/// </summary>
/// <value>The customer&#39;s ID in the merchant&#39;s system.</value>
[DataMember(Name="customerId", EmitDefaultValue=false)]
public string CustomerId { get; set; }

/// <summary>
/// Gets or Sets EmailAddress
/// The customer&#39;s email address.
/// </summary>
/// <value>The customer&#39;s email address.</value>
[DataMember(Name="emailAddress", EmitDefaultValue=false)]
public string EmailAddress { get; set; }

/// <summary>
/// Gets or Sets FamilyName
/// The customer&#39;s family or last name.
/// </summary>
/// <value>The customer&#39;s family or last name.</value>
[DataMember(Name="familyName", EmitDefaultValue=false)]
public string FamilyName { get; set; }

/// <summary>
/// Gets or Sets GivenName
/// The customer&#39;s given or first name.
/// </summary>
/// <value>The customer&#39;s given or first name.</value>
[DataMember(Name="givenName", EmitDefaultValue=false)]
public string GivenName { get; set; }

Expand All @@ -59,15 +63,16 @@ public AbstractCustomerActive()
public string Language { get; set; }

/// <summary>
/// Meta data allow to store additional data along the object.
/// Allow to store additional information about the object.
/// </summary>
/// <value>Meta data allow to store additional data along the object.</value>
/// <value>Allow to store additional information about the object.</value>
[DataMember(Name="metaData", EmitDefaultValue=false)]
public Dictionary<string, string> MetaData { get; set; }

/// <summary>
/// Gets or Sets PreferredCurrency
/// The customer&#39;s preferred currency.
/// </summary>
/// <value>The customer&#39;s preferred currency.</value>
[DataMember(Name="preferredCurrency", EmitDefaultValue=false)]
public string PreferredCurrency { get; set; }

Expand Down
6 changes: 4 additions & 2 deletions src/Wallee/Model/AbstractCustomerAddressActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ namespace Wallee.Model
public partial class AbstractCustomerAddressActive : IEquatable<AbstractCustomerAddressActive>
{
/// <summary>
/// Gets or Sets AddressType
/// Whether the address is for billing or shipping or both.
/// </summary>
/// <value>Whether the address is for billing or shipping or both.</value>
[DataMember(Name="addressType", EmitDefaultValue=false)]
public CustomerAddressType? AddressType { get; set; }
/// <summary>
Expand All @@ -33,8 +34,9 @@ public AbstractCustomerAddressActive()
}

/// <summary>
/// Gets or Sets Address
/// The actual postal address.
/// </summary>
/// <value>The actual postal address.</value>
[DataMember(Name="address", EmitDefaultValue=false)]
public CustomerPostalAddressCreate Address { get; set; }

Expand Down
3 changes: 2 additions & 1 deletion src/Wallee/Model/AbstractCustomerCommentActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public AbstractCustomerCommentActive()
}

/// <summary>
/// Gets or Sets Content
/// The comment&#39;s actual content.
/// </summary>
/// <value>The comment&#39;s actual content.</value>
[DataMember(Name="content", EmitDefaultValue=false)]
public string Content { get; set; }

Expand Down
27 changes: 14 additions & 13 deletions src/Wallee/Model/AbstractHumanUserUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,52 @@ public AbstractHumanUserUpdate()
}

/// <summary>
/// The email address of the user.
/// The user&#39;s email address.
/// </summary>
/// <value>The email address of the user.</value>
/// <value>The user&#39;s email address.</value>
[DataMember(Name="emailAddress", EmitDefaultValue=false)]
public string EmailAddress { get; set; }

/// <summary>
/// The first name of the user.
/// The user&#39;s first name.
/// </summary>
/// <value>The first name of the user.</value>
/// <value>The user&#39;s first name.</value>
[DataMember(Name="firstname", EmitDefaultValue=false)]
public string Firstname { get; set; }

/// <summary>
/// The preferred language of the user.
/// The user&#39;s preferred language.
/// </summary>
/// <value>The preferred language of the user.</value>
/// <value>The user&#39;s preferred language.</value>
[DataMember(Name="language", EmitDefaultValue=false)]
public string Language { get; set; }

/// <summary>
/// The last name of the user.
/// The user&#39;s last name.
/// </summary>
/// <value>The last name of the user.</value>
/// <value>The user&#39;s last name.</value>
[DataMember(Name="lastname", EmitDefaultValue=false)]
public string Lastname { get; set; }

/// <summary>
/// Gets or Sets MobilePhoneNumber
/// The user&#39;s mobile phone number.
/// </summary>
/// <value>The user&#39;s mobile phone number.</value>
[DataMember(Name="mobilePhoneNumber", EmitDefaultValue=false)]
public string MobilePhoneNumber { get; set; }


/// <summary>
/// The time zone which is applied for the user. If no timezone is specified the browser is used to determine an appropriate time zone.
/// The user&#39;s time zone. If none is specified, the one provided by the browser will be used.
/// </summary>
/// <value>The time zone which is applied for the user. If no timezone is specified the browser is used to determine an appropriate time zone.</value>
/// <value>The user&#39;s time zone. If none is specified, the one provided by the browser will be used.</value>
[DataMember(Name="timeZone", EmitDefaultValue=false)]
public string TimeZone { get; set; }

/// <summary>
/// Defines whether two-factor authentication is enabled for this user.
/// Whether two-factor authentication is enabled for this user.
/// </summary>
/// <value>Defines whether two-factor authentication is enabled for this user.</value>
/// <value>Whether two-factor authentication is enabled for this user.</value>
[DataMember(Name="twoFactorEnabled", EmitDefaultValue=false)]
public bool? TwoFactorEnabled { get; set; }

Expand Down
3 changes: 2 additions & 1 deletion src/Wallee/Model/AbstractRefundCommentActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public AbstractRefundCommentActive()
}

/// <summary>
/// Gets or Sets Content
/// The comment&#39;s actual content.
/// </summary>
/// <value>The comment&#39;s actual content.</value>
[DataMember(Name="content", EmitDefaultValue=false)]
public string Content { get; set; }

Expand Down
Loading

0 comments on commit 9f0e91b

Please sign in to comment.