Skip to content

Commit

Permalink
Release 3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Oct 18, 2021
1 parent 640a38b commit e4bc159
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 193 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ NOTE: RestSharp versions greater than 106.2.1 have a bug which causes file uploa
## Installation
```
# Package Manager
Install-Package Wallee -Version 3.0.7
Install-Package Wallee -Version 3.0.8
# .NET CLI
dotnet add package Wallee --version 3.0.7
dotnet add package Wallee --version 3.0.8
# Paket CLI
paket add Wallee --version 3.0.7
paket add Wallee --version 3.0.8
# PackageReference
<PackageReference Include="Wallee" Version="3.0.7" />
<PackageReference Include="Wallee" Version="3.0.8" />
```

Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
Expand Down
181 changes: 0 additions & 181 deletions src/Wallee.Test/PaymentTerminalTillServiceTests.cs

This file was deleted.

10 changes: 5 additions & 5 deletions src/Wallee/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "3.0.7";
public const string Version = "3.0.8";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -90,8 +90,8 @@ public Configuration(string applicationUserID, string authenticationKey)
}
_authenticationKey = authenticationKey;
_applicationUserID = applicationUserID;
UserAgent = "Wallee/3.0.7/csharp";
BasePath = "https://app-wallee.com:443";
UserAgent = "Wallee/3.0.8/csharp";
BasePath = "https://app-wallee.com:443/api";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
ApiKeyPrefix = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -338,8 +338,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: 3.0.7\n";
report += " SDK Package Version: 3.0.7\n";
report += " Version of the API: 3.0.8\n";
report += " SDK Package Version: 3.0.8\n";

return report;
}
Expand Down
95 changes: 95 additions & 0 deletions src/Wallee/Service/ChargeFlowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,29 @@ public interface IChargeFlowService : IApiAccessor
/// <returns>ApiResponse of Transaction</returns>
ApiResponse<Transaction> ApplyFlowWithHttpInfo (long? spaceId, long? id);
/// <summary>
/// Cancel Charge Flow
/// </summary>
/// <remarks>
/// This operation cancels the charge flow that is linked with the transaction indicated by the given ID.
/// </remarks>
/// <exception cref="Wallee.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="spaceId"></param>
/// <param name="id">The ID of the transaction for which the charge flow should be canceled.</param>
/// <returns>Transaction</returns>
Transaction CancelChargeFlow (long? spaceId, long? id);

/// <summary>
/// Cancel Charge Flow
/// </summary>
/// <remarks>
/// This operation cancels the charge flow that is linked with the transaction indicated by the given ID.
/// </remarks>
/// <exception cref="Wallee.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="spaceId"></param>
/// <param name="id">The ID of the transaction for which the charge flow should be canceled.</param>
/// <returns>ApiResponse of Transaction</returns>
ApiResponse<Transaction> CancelChargeFlowWithHttpInfo (long? spaceId, long? id);
/// <summary>
/// Count
/// </summary>
/// <remarks>
Expand Down Expand Up @@ -287,6 +310,78 @@ public ApiResponse< Transaction > ApplyFlowWithHttpInfo (long? spaceId, long? id
(Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction)));
}
/// <summary>
/// Cancel Charge Flow This operation cancels the charge flow that is linked with the transaction indicated by the given ID.
/// </summary>
/// <exception cref="Wallee.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="spaceId"></param>
/// <param name="id">The ID of the transaction for which the charge flow should be canceled.</param>
/// <returns>Transaction</returns>
public Transaction CancelChargeFlow (long? spaceId, long? id)
{
ApiResponse<Transaction> localVarResponse = CancelChargeFlowWithHttpInfo(spaceId, id);
return localVarResponse.Data;
}

/// <summary>
/// Cancel Charge Flow This operation cancels the charge flow that is linked with the transaction indicated by the given ID.
/// </summary>
/// <exception cref="Wallee.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="spaceId"></param>
/// <param name="id">The ID of the transaction for which the charge flow should be canceled.</param>
/// <returns>ApiResponse of Transaction</returns>
public ApiResponse< Transaction > CancelChargeFlowWithHttpInfo (long? spaceId, long? id)
{
// verify the required parameter 'spaceId' is set
if (spaceId == null)
throw new ApiException(400, "Missing required parameter 'spaceId' when calling ChargeFlowService->CancelChargeFlow");
// verify the required parameter 'id' is set
if (id == null)
throw new ApiException(400, "Missing required parameter 'id' when calling ChargeFlowService->CancelChargeFlow");

var localVarPath = "/charge-flow/cancel-charge-flow";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;

// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (spaceId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "spaceId", spaceId)); // query parameter
if (id != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "id", id)); // query parameter


this.Configuration.ApiClient.ResetTimeout();
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;

if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CancelChargeFlow", localVarResponse);
if (exception != null) throw exception;
}

return new ApiResponse<Transaction>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(Transaction) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Transaction)));
}
/// <summary>
/// Count Counts the number of items in the database as restricted by the given filter.
/// </summary>
/// <exception cref="Wallee.Client.ApiException">Thrown when fails to make API call</exception>
Expand Down
6 changes: 3 additions & 3 deletions src/Wallee/Wallee.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<PackageId>Wallee</PackageId>
<PackageLicense>https://www.apache.org/licenses/LICENSE-2.0.txt</PackageLicense>
<PackageProjectUrl>https://github.com/wallee-payment/csharp-sdk</PackageProjectUrl>
<PackageVersion>3.0.7</PackageVersion>
<Version>3.0.7</Version>
<PackageVersion>3.0.8</PackageVersion>
<Version>3.0.8</Version>
<PackageTags>Wallee;payment;sdk;Payment Integration</PackageTags>
<OutputType>Library</OutputType>
<Owners>customweb</Owners>
<ReleaseVersion>3.0.7</ReleaseVersion>
<ReleaseVersion>3.0.8</ReleaseVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/wallee-payment/csharp-sdk.git</RepositoryUrl>
<RootNamespace>Wallee</RootNamespace>
Expand Down

0 comments on commit e4bc159

Please sign in to comment.