Skip to content

Commit

Permalink
Release 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-vo committed Nov 15, 2022
1 parent 3522b91 commit d40e3bf
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 18 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The wallee C# library wraps around the wallee API. This library facilitates your
<a name="dependencies"></a>
## Dependencies
- [RestSharp](https://www.nuget.org/packages/RestSharp) - [106.2.1, 107)
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 12.0.2
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.6.0

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 @@ -32,13 +32,13 @@ NOTE: RestSharp versions greater than [106.2.1, 107) have a bug which causes fil
## Installation
```
# Package Manager
Install-Package Wallee -Version 4.2.0
Install-Package Wallee -Version 4.3.0
# .NET CLI
dotnet add package Wallee --version 4.2.0
dotnet add package Wallee --version 4.3.0
# Paket CLI
paket add Wallee --version 4.2.0
paket add Wallee --version 4.3.0
# PackageReference
<PackageReference Include="Wallee" Version="4.2.0" />
<PackageReference Include="Wallee" Version="4.3.0" />
```

Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
Expand Down
2 changes: 1 addition & 1 deletion src/Wallee.Test/Wallee.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ItemGroup>
<PackageReference Include="NUnit" Version="3.9.0"/>
<PackageReference Include="RestSharp" Version="[106.2.1, 107)"/>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
<PackageReference Include="JsonSubTypes" Version="1.6.0"/>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Wallee/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public Object CallApi(
{

Dictionary<String, String> defaultHeaderParams = new Dictionary<String, String>() {
{"x-meta-sdk-version", "4.2.0"},
{"x-meta-sdk-version", "4.3.0"},
{"x-meta-sdk-language", "csharp"},
{"x-meta-sdk-provider", "wallee"},
{"x-meta-sdk-language-version", Environment.Version.ToString()}
Expand Down
8 changes: 4 additions & 4 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 = "4.2.0";
public const string Version = "4.3.0";

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

return report;
}
Expand Down
14 changes: 14 additions & 0 deletions src/Wallee/Model/ChargeAttempt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ public ChargeAttempt()
[DataMember(Name="version", EmitDefaultValue=false)]
public int? Version { get; private set; }

/// <summary>
/// Gets or Sets WalletType
/// </summary>
[DataMember(Name="walletType", EmitDefaultValue=false)]
public WalletType WalletType { get; private set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand Down Expand Up @@ -223,6 +229,7 @@ public override string ToString()
sb.Append(" TokenVersion: ").Append(TokenVersion).Append("\n");
sb.Append(" UserFailureMessage: ").Append(UserFailureMessage).Append("\n");
sb.Append(" Version: ").Append(Version).Append("\n");
sb.Append(" WalletType: ").Append(WalletType).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -397,6 +404,11 @@ public bool Equals(ChargeAttempt input)
this.Version == input.Version ||
(this.Version != null &&
this.Version.Equals(input.Version))
) && base.Equals(input) &&
(
this.WalletType == input.WalletType ||
(this.WalletType != null &&
this.WalletType.Equals(input.WalletType))
);
}

Expand Down Expand Up @@ -465,6 +477,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.UserFailureMessage.GetHashCode();
if (this.Version != null)
hashCode = hashCode * 59 + this.Version.GetHashCode();
if (this.WalletType != null)
hashCode = hashCode * 59 + this.WalletType.GetHashCode();
return hashCode;
}
}
Expand Down
14 changes: 14 additions & 0 deletions src/Wallee/Model/PaymentInitiationAdviceFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public PaymentInitiationAdviceFile()
[DataMember(Name="processedOn", EmitDefaultValue=false)]
public DateTime? ProcessedOn { get; private set; }

/// <summary>
/// Gets or Sets Processor
/// </summary>
[DataMember(Name="processor", EmitDefaultValue=false)]
public PaymentProcessor Processor { get; private set; }


/// <summary>
/// Returns the string presentation of the object
Expand All @@ -87,6 +93,7 @@ public override string ToString()
sb.Append(" LinkedSpaceId: ").Append(LinkedSpaceId).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" ProcessedOn: ").Append(ProcessedOn).Append("\n");
sb.Append(" Processor: ").Append(Processor).Append("\n");
sb.Append(" State: ").Append(State).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -152,6 +159,11 @@ public bool Equals(PaymentInitiationAdviceFile input)
(this.ProcessedOn != null &&
this.ProcessedOn.Equals(input.ProcessedOn))
) &&
(
this.Processor == input.Processor ||
(this.Processor != null &&
this.Processor.Equals(input.Processor))
) &&
(
this.State == input.State ||
(this.State != null &&
Expand Down Expand Up @@ -180,6 +192,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.ProcessedOn != null)
hashCode = hashCode * 59 + this.ProcessedOn.GetHashCode();
if (this.Processor != null)
hashCode = hashCode * 59 + this.Processor.GetHashCode();
if (this.State != null)
hashCode = hashCode * 59 + this.State.GetHashCode();
return hashCode;
Expand Down
18 changes: 15 additions & 3 deletions src/Wallee/Model/PaymentInitiationAdviceFileState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@ public enum PaymentInitiationAdviceFileState
{

/// <summary>
/// Enum PENDING for value: PENDING
/// Enum CREATED for value: CREATED
/// </summary>
[EnumMember(Value = "PENDING")]
PENDING,
[EnumMember(Value = "CREATED")]
CREATED,

/// <summary>
/// Enum UPLOADED for value: UPLOADED
/// </summary>
[EnumMember(Value = "UPLOADED")]
UPLOADED,

/// <summary>
/// Enum DOWNLOADED for value: DOWNLOADED
/// </summary>
[EnumMember(Value = "DOWNLOADED")]
DOWNLOADED,

/// <summary>
/// Enum PROCESSED for value: PROCESSED
Expand Down
15 changes: 15 additions & 0 deletions src/Wallee/Model/TransactionCompletion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ public TransactionCompletion()
[DataMember(Name="state", EmitDefaultValue=false)]
public TransactionCompletionState State { get; private set; }

/// <summary>
/// The statement descriptor explain charges or payments on bank statements.
/// </summary>
/// <value>The statement descriptor explain charges or payments on bank statements.</value>
[DataMember(Name="statementDescriptor", EmitDefaultValue=false)]
public string StatementDescriptor { get; private set; }

/// <summary>
/// Gets or Sets SucceededOn
/// </summary>
Expand Down Expand Up @@ -236,6 +243,7 @@ public override string ToString()
sb.Append(" RemainingLineItems: ").Append(RemainingLineItems).Append("\n");
sb.Append(" SpaceViewId: ").Append(SpaceViewId).Append("\n");
sb.Append(" State: ").Append(State).Append("\n");
sb.Append(" StatementDescriptor: ").Append(StatementDescriptor).Append("\n");
sb.Append(" SucceededOn: ").Append(SucceededOn).Append("\n");
sb.Append(" TaxAmount: ").Append(TaxAmount).Append("\n");
sb.Append(" TimeZone: ").Append(TimeZone).Append("\n");
Expand Down Expand Up @@ -404,6 +412,11 @@ public bool Equals(TransactionCompletion input)
(this.State != null &&
this.State.Equals(input.State))
) && base.Equals(input) &&
(
this.StatementDescriptor == input.StatementDescriptor ||
(this.StatementDescriptor != null &&
this.StatementDescriptor.Equals(input.StatementDescriptor))
) && base.Equals(input) &&
(
this.SucceededOn == input.SucceededOn ||
(this.SucceededOn != null &&
Expand Down Expand Up @@ -490,6 +503,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.SpaceViewId.GetHashCode();
if (this.State != null)
hashCode = hashCode * 59 + this.State.GetHashCode();
if (this.StatementDescriptor != null)
hashCode = hashCode * 59 + this.StatementDescriptor.GetHashCode();
if (this.SucceededOn != null)
hashCode = hashCode * 59 + this.SucceededOn.GetHashCode();
if (this.TaxAmount != null)
Expand Down
15 changes: 15 additions & 0 deletions src/Wallee/Model/TransactionCompletionRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public TransactionCompletionRequest(string externalId, bool? lastCompletion, lon
[DataMember(Name="lineItems", EmitDefaultValue=false)]
public List<CompletionLineItemCreate> LineItems { get; set; }

/// <summary>
/// The statement descriptor explain charges or payments on bank statements.
/// </summary>
/// <value>The statement descriptor explain charges or payments on bank statements.</value>
[DataMember(Name="statementDescriptor", EmitDefaultValue=false)]
public string StatementDescriptor { get; set; }

/// <summary>
/// The ID of the transaction which should be completed.
/// </summary>
Expand All @@ -99,6 +106,7 @@ public override string ToString()
sb.Append(" InvoiceMerchantReference: ").Append(InvoiceMerchantReference).Append("\n");
sb.Append(" LastCompletion: ").Append(LastCompletion).Append("\n");
sb.Append(" LineItems: ").Append(LineItems).Append("\n");
sb.Append(" StatementDescriptor: ").Append(StatementDescriptor).Append("\n");
sb.Append(" TransactionId: ").Append(TransactionId).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down Expand Up @@ -155,6 +163,11 @@ public bool Equals(TransactionCompletionRequest input)
input.LineItems != null &&
this.LineItems.SequenceEqual(input.LineItems)
) &&
(
this.StatementDescriptor == input.StatementDescriptor ||
(this.StatementDescriptor != null &&
this.StatementDescriptor.Equals(input.StatementDescriptor))
) &&
(
this.TransactionId == input.TransactionId ||
(this.TransactionId != null &&
Expand All @@ -179,6 +192,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.LastCompletion.GetHashCode();
if (this.LineItems != null)
hashCode = hashCode * 59 + this.LineItems.GetHashCode();
if (this.StatementDescriptor != null)
hashCode = hashCode * 59 + this.StatementDescriptor.GetHashCode();
if (this.TransactionId != null)
hashCode = hashCode * 59 + this.TransactionId.GetHashCode();
return hashCode;
Expand Down
33 changes: 33 additions & 0 deletions src/Wallee/Model/WalletType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = Wallee.Client.SwaggerDateConverter;

namespace Wallee.Model
{
/// <summary>
/// Defines WalletType
/// </summary>

[JsonConverter(typeof(StringEnumConverter))]

public enum WalletType
{

/// <summary>
/// Enum APPLE_PAY for value: APPLE_PAY
/// </summary>
[EnumMember(Value = "APPLE_PAY")]
APPLE_PAY
}

}
8 changes: 4 additions & 4 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:/wallee-payment/csharp-sdk</PackageProjectUrl>
<PackageVersion>4.2.0</PackageVersion>
<Version>4.2.0</Version>
<PackageVersion>4.3.0</PackageVersion>
<Version>4.3.0</Version>
<PackageTags>Wallee;payment;sdk;Payment Integration</PackageTags>
<OutputType>Library</OutputType>
<Owners>customweb</Owners>
<ReleaseVersion>4.2.0</ReleaseVersion>
<ReleaseVersion>4.3.0</ReleaseVersion>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https:/wallee-payment/csharp-sdk.git</RepositoryUrl>
<RootNamespace>Wallee</RootNamespace>
Expand All @@ -35,7 +35,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="RestSharp" Version="[106.2.1, 107)"/>
<PackageReference Include="Newtonsoft.Json" Version="12.0.2"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
<PackageReference Include="JsonSubTypes" Version="1.6.0"/>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
Expand Down

0 comments on commit d40e3bf

Please sign in to comment.