Skip to content

Commit

Permalink
v2.1-20.3.0 (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
RajRele authored Sep 25, 2020
1 parent 71cc840 commit 2bcf041
Show file tree
Hide file tree
Showing 32 changed files with 10,415 additions and 1,763 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# DocuSign C# Client Changelog

## [v5.1.0-rc] - eSignature API v2.1-20.3.00 - 09/24/2020
### Changed
* Added support for version v2.1-20.3.00 of the DocuSign eSignature API.
* Updated the SDK release version
### Fixed
* A bug with ApiClient SetBasePath which did not update basePath for RestClient (DCM-4276).

## [v5.0.0] - eSignature API v2.1-20.2.02.02 - 08/24/2020
### BREAKING
* Major design changes, resolved an issue with ApiClient and Configuration circular reference (DCM-3979). The initialization of any api object now requires ApiClient passed as a parameter as a parameter.
Expand Down
2 changes: 1 addition & 1 deletion sdk/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ mono_nunit_test.sh

# Specific src and test files
src/DocuSign.eSign/packages.config
#src/DocuSign.eSign/Api/EnvelopesApi.cs
# src/DocuSign.eSign/Api/EnvelopesApi.cs
5,694 changes: 3,955 additions & 1,739 deletions sdk/src/DocuSign.eSign/Api/AccountsApi.cs

Large diffs are not rendered by default.

254 changes: 246 additions & 8 deletions sdk/src/DocuSign.eSign/Api/EnvelopesApi.cs

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions sdk/src/DocuSign.eSign/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,19 @@ public void SetBasePath(string basePath)
if(Configuration != null)
{
Configuration.BasePath = this.basePath;
}
else
{
Configuration = new Configuration(this.basePath);
}

if(RestClient != null)
{
RestClient.BaseUrl = new Uri(this.basePath);
}
else
{
RestClient = new RestClient(this.basePath);
}
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/src/DocuSign.eSign/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Configuration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "5.0.0";
public const string Version = "5.1.0-rc";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/DocuSign.eSign/DocuSign.eSign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Contact: [email protected]
<RootNamespace>DocuSign.eSign</RootNamespace>
<AssemblyName>DocuSign.eSign</AssemblyName>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionPrefix>5.1.0-rc</VersionPrefix>
<VersionSuffix></VersionSuffix>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -34,7 +34,7 @@ Contact: [email protected]
<PackageLicenseUrl>https://github.com/docusign/docusign-csharp-client/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/docusign/docusign-csharp-client</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>[5.0.0] - eSignature API v2.1-20.2.02.02 - 08/24/2020</PackageReleaseNotes>
<PackageReleaseNotes>[5.1.0-rc] - eSignature API v2.1-20.3.00 - 09/24/2020</PackageReleaseNotes>
</PropertyGroup>

<!-- .NET Framework 4.5.2 compilation flags and build options -->
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/DocuSign.eSign/DocuSign.eSign.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>DocuSign.eSign.dll</id>
<version>5.0.0</version>
<version>5.1.0-rc</version>
<title>DocuSign.eSign</title>
<authors>DocuSign</authors>
<owners>DocuSign</owners>
Expand Down
32 changes: 31 additions & 1 deletion sdk/src/DocuSign.eSign/Model/AccountSettingsInformation.cs

Large diffs are not rendered by default.

598 changes: 598 additions & 0 deletions sdk/src/DocuSign.eSign/Model/AccountSignature.cs

Large diffs are not rendered by default.

353 changes: 353 additions & 0 deletions sdk/src/DocuSign.eSign/Model/AccountSignatureDefinition.cs

Large diffs are not rendered by default.

126 changes: 126 additions & 0 deletions sdk/src/DocuSign.eSign/Model/AccountSignaturesInformation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
/*
* DocuSign REST API
*
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: [email protected]
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/

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 = DocuSign.eSign.Client.SwaggerDateConverter;

namespace DocuSign.eSign.Model
{
/// <summary>
/// AccountSignaturesInformation
/// </summary>
[DataContract]
public partial class AccountSignaturesInformation : IEquatable<AccountSignaturesInformation>, IValidatableObject
{
public AccountSignaturesInformation()
{
// Empty Constructor
}

/// <summary>
/// Initializes a new instance of the <see cref="AccountSignaturesInformation" /> class.
/// </summary>
/// <param name="AccountSignatures">AccountSignatures.</param>
public AccountSignaturesInformation(List<AccountSignature> AccountSignatures = default(List<AccountSignature>))
{
this.AccountSignatures = AccountSignatures;
}

/// <summary>
/// Gets or Sets AccountSignatures
/// </summary>
[DataMember(Name="accountSignatures", EmitDefaultValue=false)]
public List<AccountSignature> AccountSignatures { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AccountSignaturesInformation {\n");
sb.Append(" AccountSignatures: ").Append(AccountSignatures).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
// credit: http://stackoverflow.com/a/10454552/677735
return this.Equals(obj as AccountSignaturesInformation);
}

/// <summary>
/// Returns true if AccountSignaturesInformation instances are equal
/// </summary>
/// <param name="other">Instance of AccountSignaturesInformation to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(AccountSignaturesInformation other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;

return
(
this.AccountSignatures == other.AccountSignatures ||
this.AccountSignatures != null &&
this.AccountSignatures.SequenceEqual(other.AccountSignatures)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.AccountSignatures != null)
hash = hash * 59 + this.AccountSignatures.GetHashCode();
return hash;
}
}

public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
}
}
17 changes: 16 additions & 1 deletion sdk/src/DocuSign.eSign/Model/CorrectViewRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ public CorrectViewRequest()
/// </summary>
/// <param name="ReturnUrl">The url used after correct/send view session has ended. DocuSign redirects to the url and includes an event parameter that can be used by your app. The event parameters returned are: * send (user corrected and sent the envelope) * save (user saved the envelope) * cancel (user canceled the transaction.) * error (there was an error when performing the correct or send) * sessionEnd (the session ended before the user completed a different action) ###### Note: Include https:// in the URL or the redirect might not succeed on some browsers. .</param>
/// <param name="SuppressNavigation">Specifies whether the window is displayed with or without dressing..</param>
public CorrectViewRequest(string ReturnUrl = default(string), string SuppressNavigation = default(string))
/// <param name="ViewUrl">ViewUrl.</param>
public CorrectViewRequest(string ReturnUrl = default(string), string SuppressNavigation = default(string), string ViewUrl = default(string))
{
this.ReturnUrl = ReturnUrl;
this.SuppressNavigation = SuppressNavigation;
this.ViewUrl = ViewUrl;
}

/// <summary>
Expand All @@ -59,6 +61,11 @@ public CorrectViewRequest()
[DataMember(Name="suppressNavigation", EmitDefaultValue=false)]
public string SuppressNavigation { get; set; }
/// <summary>
/// Gets or Sets ViewUrl
/// </summary>
[DataMember(Name="viewUrl", EmitDefaultValue=false)]
public string ViewUrl { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
Expand All @@ -68,6 +75,7 @@ public override string ToString()
sb.Append("class CorrectViewRequest {\n");
sb.Append(" ReturnUrl: ").Append(ReturnUrl).Append("\n");
sb.Append(" SuppressNavigation: ").Append(SuppressNavigation).Append("\n");
sb.Append(" ViewUrl: ").Append(ViewUrl).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -113,6 +121,11 @@ public bool Equals(CorrectViewRequest other)
this.SuppressNavigation == other.SuppressNavigation ||
this.SuppressNavigation != null &&
this.SuppressNavigation.Equals(other.SuppressNavigation)
) &&
(
this.ViewUrl == other.ViewUrl ||
this.ViewUrl != null &&
this.ViewUrl.Equals(other.ViewUrl)
);
}

Expand All @@ -131,6 +144,8 @@ public override int GetHashCode()
hash = hash * 59 + this.ReturnUrl.GetHashCode();
if (this.SuppressNavigation != null)
hash = hash * 59 + this.SuppressNavigation.GetHashCode();
if (this.ViewUrl != null)
hash = hash * 59 + this.ViewUrl.GetHashCode();
return hash;
}
}
Expand Down
Loading

0 comments on commit 2bcf041

Please sign in to comment.