Skip to content

Commit

Permalink
Release 7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wallee-deployment-user committed Dec 22, 2023
1 parent f950dd5 commit 5302b40
Show file tree
Hide file tree
Showing 119 changed files with 2,332 additions and 67 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,28 @@ The wallee C# library wraps around the wallee API. This library facilitates your
- [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
- [BouncyCastle.Cryptography](https://www.nuget.org/packages/BouncyCastle.Cryptography/) - 2.0.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:
```
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package BouncyCastle.Cryptography
```


<a name="installation"></a>
## Installation
```
# Package Manager
Install-Package Wallee -Version 7.0.1
Install-Package Wallee -Version 7.0.2
# .NET CLI
dotnet add package Wallee --version 7.0.1
dotnet add package Wallee --version 7.0.2
# Paket CLI
paket add Wallee --version 7.0.1
paket add Wallee --version 7.0.2
# PackageReference
<PackageReference Include="Wallee" Version="7.0.1" />
<PackageReference Include="Wallee" Version="7.0.2" />
```

Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
Expand Down
4 changes: 2 additions & 2 deletions src/Wallee/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private RestRequest PrepareRequest(
request.AddBody(postBody, contentType);
}

if (contentType != null)
if (contentType != null && postBody != null)
{
request.AddHeader("Content-Type", contentType);
}
Expand Down Expand Up @@ -153,7 +153,7 @@ public Object CallApi(
{

Dictionary<String, String> defaultHeaderParams = new Dictionary<String, String>() {
{"x-meta-sdk-version", "7.0.1"},
{"x-meta-sdk-version", "7.0.2"},
{"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 @@ -21,7 +21,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "7.0.1";
public const string Version = "7.0.2";

/// <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/7.0.1/csharp";
UserAgent = "Wallee/7.0.2/csharp";
BasePath = "https://app-wallee.com:443/api";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -355,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: 7.0.1\n";
report += " SDK Package Version: 7.0.1\n";
report += " Version of the API: 7.0.2\n";
report += " SDK Package Version: 7.0.2\n";

return report;
}
Expand Down
22 changes: 11 additions & 11 deletions src/Wallee/Model/ChargeAttempt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ public partial class ChargeAttempt : TransactionAwareEntity, IEquatable<ChargeA
[DataMember(Name="state", EmitDefaultValue=false)]
public ChargeAttemptState? State { get; private set; }
/// <summary>
/// Gets or Sets WalletType
/// </summary>
[DataMember(Name="walletType", EmitDefaultValue=false)]
public WalletType? WalletType { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ChargeAttempt" /> class.
/// </summary>
[JsonConstructorAttribute]
Expand Down Expand Up @@ -193,6 +188,11 @@ public ChargeAttempt()
[DataMember(Name="version", EmitDefaultValue=false)]
public int? Version { get; private set; }

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

/// <summary>
/// Returns the string presentation of the object
Expand Down Expand Up @@ -231,7 +231,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(" Wallet: ").Append(Wallet).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -408,9 +408,9 @@ public bool Equals(ChargeAttempt input)
this.Version.Equals(input.Version))
) && base.Equals(input) &&
(
this.WalletType == input.WalletType ||
(this.WalletType != null &&
this.WalletType.Equals(input.WalletType))
this.Wallet == input.Wallet ||
(this.Wallet != null &&
this.Wallet.Equals(input.Wallet))
);
}

Expand Down Expand Up @@ -479,8 +479,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();
if (this.Wallet != null)
hashCode = hashCode * 59 + this.Wallet.GetHashCode();
return hashCode;
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/Wallee/Model/PaymentConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ public PaymentConnector()
[DataMember(Name="processor", EmitDefaultValue=false)]
public long? Processor { get; private set; }

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

/// <summary>
/// Gets or Sets SupportedCustomersPresences
/// </summary>
Expand Down Expand Up @@ -128,6 +134,7 @@ public override string ToString()
sb.Append(" PaymentMethodBrand: ").Append(PaymentMethodBrand).Append("\n");
sb.Append(" PrimaryRiskTaker: ").Append(PrimaryRiskTaker).Append("\n");
sb.Append(" Processor: ").Append(Processor).Append("\n");
sb.Append(" SupportedCurrencies: ").Append(SupportedCurrencies).Append("\n");
sb.Append(" SupportedCustomersPresences: ").Append(SupportedCustomersPresences).Append("\n");
sb.Append(" SupportedFeatures: ").Append(SupportedFeatures).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -222,6 +229,12 @@ public bool Equals(PaymentConnector input)
(this.Processor != null &&
this.Processor.Equals(input.Processor))
) &&
(
this.SupportedCurrencies == input.SupportedCurrencies ||
this.SupportedCurrencies != null &&
input.SupportedCurrencies != null &&
this.SupportedCurrencies.SequenceEqual(input.SupportedCurrencies)
) &&
(
this.SupportedCustomersPresences == input.SupportedCustomersPresences ||
this.SupportedCustomersPresences != null &&
Expand Down Expand Up @@ -267,6 +280,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.PrimaryRiskTaker.GetHashCode();
if (this.Processor != null)
hashCode = hashCode * 59 + this.Processor.GetHashCode();
if (this.SupportedCurrencies != null)
hashCode = hashCode * 59 + this.SupportedCurrencies.GetHashCode();
if (this.SupportedCustomersPresences != null)
hashCode = hashCode * 59 + this.SupportedCustomersPresences.GetHashCode();
if (this.SupportedFeatures != null)
Expand Down
52 changes: 26 additions & 26 deletions src/Wallee/Model/RestCountry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ public RestCountry()
{
}

/// <summary>
/// Specifies the country&#39;s way of formatting addresses.
/// </summary>
/// <value>Specifies the country&#39;s way of formatting addresses.</value>
[DataMember(Name="addressFormat", EmitDefaultValue=false)]
public RestAddressFormat AddressFormat { get; private set; }

/// <summary>
/// The country&#39;s two-letter code (ISO 3166-1 alpha-2 format).
/// </summary>
/// <value>The country&#39;s two-letter code (ISO 3166-1 alpha-2 format).</value>
[DataMember(Name="ISOCode2Letter", EmitDefaultValue=false)]
public string ISOCode2Letter { get; private set; }
[DataMember(Name="isoCode2", EmitDefaultValue=false)]
public string IsoCode2 { get; private set; }

/// <summary>
/// The country&#39;s three-letter code (ISO 3166-1 alpha-3 format).
/// </summary>
/// <value>The country&#39;s three-letter code (ISO 3166-1 alpha-3 format).</value>
[DataMember(Name="ISOCode3Letter", EmitDefaultValue=false)]
public string ISOCode3Letter { get; private set; }

/// <summary>
/// Specifies the country&#39;s way of formatting addresses.
/// </summary>
/// <value>Specifies the country&#39;s way of formatting addresses.</value>
[DataMember(Name="addressFormat", EmitDefaultValue=false)]
public RestAddressFormat AddressFormat { get; private set; }
[DataMember(Name="isoCode3", EmitDefaultValue=false)]
public string IsoCode3 { get; private set; }

/// <summary>
/// The name of the country.
Expand Down Expand Up @@ -78,9 +78,9 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class RestCountry {\n");
sb.Append(" ISOCode2Letter: ").Append(ISOCode2Letter).Append("\n");
sb.Append(" ISOCode3Letter: ").Append(ISOCode3Letter).Append("\n");
sb.Append(" AddressFormat: ").Append(AddressFormat).Append("\n");
sb.Append(" IsoCode2: ").Append(IsoCode2).Append("\n");
sb.Append(" IsoCode3: ").Append(IsoCode3).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" NumericCode: ").Append(NumericCode).Append("\n");
sb.Append(" StateCodes: ").Append(StateCodes).Append("\n");
Expand Down Expand Up @@ -119,19 +119,19 @@ public bool Equals(RestCountry input)

return
(
this.ISOCode2Letter == input.ISOCode2Letter ||
(this.ISOCode2Letter != null &&
this.ISOCode2Letter.Equals(input.ISOCode2Letter))
this.AddressFormat == input.AddressFormat ||
(this.AddressFormat != null &&
this.AddressFormat.Equals(input.AddressFormat))
) &&
(
this.ISOCode3Letter == input.ISOCode3Letter ||
(this.ISOCode3Letter != null &&
this.ISOCode3Letter.Equals(input.ISOCode3Letter))
this.IsoCode2 == input.IsoCode2 ||
(this.IsoCode2 != null &&
this.IsoCode2.Equals(input.IsoCode2))
) &&
(
this.AddressFormat == input.AddressFormat ||
(this.AddressFormat != null &&
this.AddressFormat.Equals(input.AddressFormat))
this.IsoCode3 == input.IsoCode3 ||
(this.IsoCode3 != null &&
this.IsoCode3.Equals(input.IsoCode3))
) &&
(
this.Name == input.Name ||
Expand Down Expand Up @@ -160,12 +160,12 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ISOCode2Letter != null)
hashCode = hashCode * 59 + this.ISOCode2Letter.GetHashCode();
if (this.ISOCode3Letter != null)
hashCode = hashCode * 59 + this.ISOCode3Letter.GetHashCode();
if (this.AddressFormat != null)
hashCode = hashCode * 59 + this.AddressFormat.GetHashCode();
if (this.IsoCode2 != null)
hashCode = hashCode * 59 + this.IsoCode2.GetHashCode();
if (this.IsoCode3 != null)
hashCode = hashCode * 59 + this.IsoCode3.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.NumericCode != null)
Expand Down
45 changes: 45 additions & 0 deletions src/Wallee/Model/SubscriptionComponentConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,33 @@ public SubscriptionComponentConfiguration()
[DataMember(Name="component", EmitDefaultValue=false)]
public long? Component { get; private set; }

/// <summary>
/// A unique identifier for the object.
/// </summary>
/// <value>A unique identifier for the object.</value>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; private set; }

/// <summary>
/// The ID of the space this object belongs to.
/// </summary>
/// <value>The ID of the space this object belongs to.</value>
[DataMember(Name="linkedSpaceId", EmitDefaultValue=false)]
public long? LinkedSpaceId { get; private set; }

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

/// <summary>
/// The version is used for optimistic locking and incremented whenever the object is updated.
/// </summary>
/// <value>The version is used for optimistic locking and incremented whenever the object is updated.</value>
[DataMember(Name="version", EmitDefaultValue=false)]
public int? Version { get; private set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -49,7 +70,10 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class SubscriptionComponentConfiguration {\n");
sb.Append(" Component: ").Append(Component).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" LinkedSpaceId: ").Append(LinkedSpaceId).Append("\n");
sb.Append(" Quantity: ").Append(Quantity).Append("\n");
sb.Append(" Version: ").Append(Version).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -89,10 +113,25 @@ public bool Equals(SubscriptionComponentConfiguration input)
(this.Component != null &&
this.Component.Equals(input.Component))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.LinkedSpaceId == input.LinkedSpaceId ||
(this.LinkedSpaceId != null &&
this.LinkedSpaceId.Equals(input.LinkedSpaceId))
) &&
(
this.Quantity == input.Quantity ||
(this.Quantity != null &&
this.Quantity.Equals(input.Quantity))
) &&
(
this.Version == input.Version ||
(this.Version != null &&
this.Version.Equals(input.Version))
);
}

Expand All @@ -107,8 +146,14 @@ public override int GetHashCode()
int hashCode = 41;
if (this.Component != null)
hashCode = hashCode * 59 + this.Component.GetHashCode();
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.LinkedSpaceId != null)
hashCode = hashCode * 59 + this.LinkedSpaceId.GetHashCode();
if (this.Quantity != null)
hashCode = hashCode * 59 + this.Quantity.GetHashCode();
if (this.Version != null)
hashCode = hashCode * 59 + this.Version.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 5302b40

Please sign in to comment.