Skip to content

Commit

Permalink
Release 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed May 17, 2021
1 parent f6d821e commit 0fe28f6
Show file tree
Hide file tree
Showing 32 changed files with 285 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ script:
- msbuild /t:restore Wallee.sln
- msbuild Wallee.sln /t:build /p:Configuration=Release
- mono testrunner/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe ./src/Wallee.Test/bin/Release/net452/Wallee.Test.dll --inprocess
- nuget push ./src/Wallee/bin/Release/Wallee.3.0.0.nupkg -Source nuget.org -ApiKey $NUGET_API_KEY_WALLEE -Verbosity detailed -SkipDuplicate
- nuget push ./src/Wallee/bin/Release/Wallee.3.0.1.nupkg -Source nuget.org -ApiKey $NUGET_API_KEY_WALLEE -Verbosity detailed -SkipDuplicate
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,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.0
Install-Package Wallee -Version 3.0.1
# .NET CLI
dotnet add package Wallee --version 3.0.0
dotnet add package Wallee --version 3.0.1
# Paket CLI
paket add Wallee --version 3.0.0
paket add Wallee --version 3.0.1
# PackageReference
<PackageReference Include="Wallee" Version="3.0.0" />
<PackageReference Include="Wallee" Version="3.0.1" />
```

Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
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 = "3.0.0";
public const string Version = "3.0.1";

/// <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/3.0.0/csharp";
UserAgent = "Wallee/3.0.1/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: 3.0.0\n";
report += " SDK Package Version: 3.0.0\n";
report += " Version of the API: 3.0.1\n";
report += " SDK Package Version: 3.0.1\n";

return report;
}
Expand Down
15 changes: 15 additions & 0 deletions src/Wallee/Model/AbstractSubscriptionProductActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ public AbstractSubscriptionProductActive()
[DataMember(Name="name", EmitDefaultValue=true)]
public string Name { get; set; }

/// <summary>
/// Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.
/// </summary>
/// <value>Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.</value>
[DataMember(Name="productLocked", EmitDefaultValue=true)]
public bool? ProductLocked { get; set; }

/// <summary>
/// The sort order controls in which order the product is listed. The sort order is used to order the products in ascending order.
/// </summary>
Expand All @@ -72,6 +79,7 @@ public override string ToString()
sb.Append(" AllowedPaymentMethodConfigurations: ").Append(AllowedPaymentMethodConfigurations).Append("\n");
sb.Append(" FailedPaymentSuspensionPeriod: ").Append(FailedPaymentSuspensionPeriod).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" ProductLocked: ").Append(ProductLocked).Append("\n");
sb.Append(" SortOrder: ").Append(SortOrder).Append("\n");
sb.Append(" State: ").Append(State).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -124,6 +132,11 @@ public bool Equals(AbstractSubscriptionProductActive input)
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.ProductLocked == input.ProductLocked ||
(this.ProductLocked != null &&
this.ProductLocked.Equals(input.ProductLocked))
) &&
(
this.SortOrder == input.SortOrder ||
(this.SortOrder != null &&
Expand Down Expand Up @@ -151,6 +164,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.FailedPaymentSuspensionPeriod.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.ProductLocked != null)
hashCode = hashCode * 59 + this.ProductLocked.GetHashCode();
if (this.SortOrder != null)
hashCode = hashCode * 59 + this.SortOrder.GetHashCode();
if (this.State != null)
Expand Down
4 changes: 2 additions & 2 deletions src/Wallee/Model/DebtCollectionCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public DebtCollectionCase()


/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; private set; }

Expand Down
6 changes: 3 additions & 3 deletions src/Wallee/Model/DebtCollectionCaseCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected DebtCollectionCaseCreate() { }
/// <summary>
/// Initializes a new instance of the <see cref="DebtCollectionCaseCreate" /> class.
/// </summary>
/// <param name="externalId">The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. (required).</param>
/// <param name="externalId">A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. (required).</param>
/// <param name="reference">The case reference is used in the communication with the debtor. It should be unique and it should be linkable with the source of the debt collection case. (required).</param>
public DebtCollectionCaseCreate(string externalId, string reference)
{
Expand Down Expand Up @@ -62,9 +62,9 @@ public DebtCollectionCaseCreate(string externalId, string reference)
public long? CollectorConfiguration { get; set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Wallee/Model/PaymentContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public PaymentContract()
public DateTime? CreatedOn { get; private set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; private set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Wallee/Model/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ public PaymentLink()
public string Currency { get; private set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; private set; }

Expand Down
6 changes: 3 additions & 3 deletions src/Wallee/Model/PaymentLinkCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected PaymentLinkCreate() { }
/// <summary>
/// Initializes a new instance of the <see cref="PaymentLinkCreate" /> class.
/// </summary>
/// <param name="externalId">The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. (required).</param>
/// <param name="externalId">A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. (required).</param>
public PaymentLinkCreate(string externalId)
{
// to ensure "externalId" is required (not null)
Expand Down Expand Up @@ -57,9 +57,9 @@ public PaymentLinkCreate(string externalId)
public CreationEntityState State { get; set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; set; }

Expand Down
14 changes: 0 additions & 14 deletions src/Wallee/Model/PaymentTerminalLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ public PaymentTerminalLocation()
[DataMember(Name="contactAddress", EmitDefaultValue=true)]
public PaymentTerminalAddress ContactAddress { get; private set; }

/// <summary>
/// Gets or Sets DefaultConfiguration
/// </summary>
[DataMember(Name="defaultConfiguration", EmitDefaultValue=true)]
public PaymentTerminalConfiguration DefaultConfiguration { get; private set; }

/// <summary>
/// The ID is the primary key of the entity. The ID identifies the entity uniquely.
/// </summary>
Expand Down Expand Up @@ -90,7 +84,6 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class PaymentTerminalLocation {\n");
sb.Append(" ContactAddress: ").Append(ContactAddress).Append("\n");
sb.Append(" DefaultConfiguration: ").Append(DefaultConfiguration).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" LinkedSpaceId: ").Append(LinkedSpaceId).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
Expand Down Expand Up @@ -136,11 +129,6 @@ public bool Equals(PaymentTerminalLocation input)
(this.ContactAddress != null &&
this.ContactAddress.Equals(input.ContactAddress))
) &&
(
this.DefaultConfiguration == input.DefaultConfiguration ||
(this.DefaultConfiguration != null &&
this.DefaultConfiguration.Equals(input.DefaultConfiguration))
) &&
(
this.Id == input.Id ||
(this.Id != null &&
Expand Down Expand Up @@ -184,8 +172,6 @@ public override int GetHashCode()
int hashCode = 41;
if (this.ContactAddress != null)
hashCode = hashCode * 59 + this.ContactAddress.GetHashCode();
if (this.DefaultConfiguration != null)
hashCode = hashCode * 59 + this.DefaultConfiguration.GetHashCode();
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.LinkedSpaceId != null)
Expand Down
2 changes: 1 addition & 1 deletion src/Wallee/Model/Role.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class Role : IEquatable<Role>
/// Gets or Sets State
/// </summary>
[DataMember(Name="state", EmitDefaultValue=true)]
public CreationEntityState? State { get; set; }
public RoleState? State { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Role" /> class.
/// </summary>
Expand Down
51 changes: 51 additions & 0 deletions src/Wallee/Model/RoleState.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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 RoleState
/// </summary>

[JsonConverter(typeof(StringEnumConverter))]

public enum RoleState
{

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

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

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

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

}
4 changes: 2 additions & 2 deletions src/Wallee/Model/ShopifySubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public ShopifySubscriber()
public string EmailAddress { get; private set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; private set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Wallee/Model/ShopifySubscriberActive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ public ShopifySubscriberActive(long? id, long? version)
public string EmailAddress { get; set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; set; }

Expand Down
6 changes: 3 additions & 3 deletions src/Wallee/Model/ShopifySubscriptionCreationRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected ShopifySubscriptionCreationRequest() { }
/// </summary>
/// <param name="billingAddress">billingAddress (required).</param>
/// <param name="currency">currency (required).</param>
/// <param name="externalId">The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. (required).</param>
/// <param name="externalId">A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. (required).</param>
/// <param name="integration">integration (required).</param>
/// <param name="items">items (required).</param>
/// <param name="language">language (required).</param>
Expand Down Expand Up @@ -107,9 +107,9 @@ public ShopifySubscriptionCreationRequest(ShopifySubscriptionAddressCreate billi
public string Currency { get; set; }

/// <summary>
/// The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
/// A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
/// </summary>
/// <value>The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.</value>
/// <value>A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.</value>
[DataMember(Name="externalId", EmitDefaultValue=true)]
public string ExternalId { get; set; }

Expand Down
Loading

0 comments on commit 0fe28f6

Please sign in to comment.