Skip to content

Commit

Permalink
Merge pull request #7 from SignRequest/v4.0.0
Browse files Browse the repository at this point in the history
v4.0.0
  • Loading branch information
Chris Jackson authored Nov 25, 2019
2 parents bf7b33f + b1e2894 commit f1f35f5
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.8
2.4.10
3 changes: 2 additions & 1 deletion docs/Document.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Name** | **string** | Defaults to filename, including extension | [optional]
**ExternalId** | **string** | ID used to reference document in external system | [optional]
**FrontendId** | **string** | Shared secret used in conjunction with <a href=\"#section/Frontend-API/SignRequest-js-client-(beta)\">SignRequest-js client</a> to grant user access to a document that's not a member of the document's team | [optional]
**File** | **string** | Temporary URL to original file, expires in five minutes | [optional]
**_File** | **string** | Temporary URL to original file, expires in five minutes | [optional]
**FileFromUrl** | **string** | Publicly accessible URL of document to be downloaded by SignRequest | [optional]
**EventsCallbackUrl** | **string** | URL at which to receive [event callbacks](#section/Events/Events-callback) for this document | [optional]
**FileFromContent** | **string** | Base64 encoded document content | [optional]
Expand All @@ -32,6 +32,7 @@ Name | Type | Description | Notes
**AutoDeleteAfter** | **DateTime?** | Date and time calculated using `auto_delete_days` after which a finished document (signed/cancelled/declined) will be automatically deleted | [optional]
**Sandbox** | **bool?** | Indicates whether document was created as part of a sandbox team | [optional]
**AutoExpireAfter** | **DateTime?** | Date and time calculated using `auto_expire_days` after which a non finished document will be automatically expired | [optional]
**Processing** | **bool?** | Indicates whether a change to the document is processing and the PDF may be out of date. It is recommended to wait until processing has finished before downloading the PDF. Webhooks are not sent until processing has been completed. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/DocumentAttachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [optional]
**Uuid** | **string** | | [optional]
**Name** | **string** | Defaults to filename, including extension | [optional]
**File** | **string** | Temporary URL to document attachment, expires in five minutes | [optional]
**_File** | **string** | Temporary URL to document attachment, expires in five minutes | [optional]
**FileFromContent** | **string** | Base64 encoded document content | [optional]
**FileFromContentName** | **string** | Filename, including extension. Required when using `file_from_content`. | [optional]
**FileFromUrl** | **string** | Publicly accessible URL of document to be downloaded by SignRequest | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/InlineDocumentSignerIntegrationData.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Integration** | **string** | | [optional]
**IntegrationData** | **string** | | [optional]
**IntegrationData** | **Object** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/InlineIntegrationData.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Integration** | **string** | | [optional]
**IntegrationData** | **string** | | [optional]
**IntegrationData** | **Object** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/SignRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [optional]
**Document** | **string** | |
**Integration** | **string** | | [optional]
**IntegrationData** | **string** | | [optional]
**IntegrationData** | **Object** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

4 changes: 2 additions & 2 deletions docs/SignRequestQuickCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Name | Type | Description | Notes
**Url** | **string** | | [optional]
**Document** | **string** | | [optional]
**Integration** | **string** | | [optional]
**IntegrationData** | **string** | | [optional]
**IntegrationData** | **Object** | | [optional]
**Name** | **string** | Defaults to filename, including extension | [optional]
**ExternalId** | **string** | ID used to reference document in external system | [optional]
**FrontendId** | **string** | Shared secret used in conjunction with <a href=\"#section/Frontend-API/SignRequest-js-client-(beta)\">SignRequest-js client</a> to grant user access to a document that's not a member of the document's team | [optional]
**File** | **string** | Temporary URL to original file, expires in five minutes | [optional]
**_File** | **string** | Temporary URL to original file, expires in five minutes | [optional]
**FileFromUrl** | **string** | Publicly accessible URL of document to be downloaded by SignRequest | [optional]
**EventsCallbackUrl** | **string** | URL at which to receive [event callbacks](#section/Events/Events-callback) for this document | [optional]
**FileFromContent** | **string** | Base64 encoded document content | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/SignerAttachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Uuid** | **string** | | [optional]
**Name** | **string** | Defaults to filename | [optional]
**File** | **string** | | [optional]
**_File** | **string** | | [optional]
**ForAttachment** | [**RequiredAttachment**](RequiredAttachment.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
8 changes: 4 additions & 4 deletions src/SignRequest/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "3.1.0";
public const string Version = "4.0.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -110,7 +110,7 @@ static Configuration()
/// </summary>
public Configuration()
{
UserAgent = "Swagger-Codegen/3.1.0/csharp";
UserAgent = "Swagger-Codegen/4.0.0/csharp";
BasePath = "https://signrequest.com/api/v1";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -183,7 +183,7 @@ public Configuration(
string tempFolderPath = null,
string dateTimeFormat = null,
int timeout = 100000,
string userAgent = "Swagger-Codegen/3.1.0/csharp"
string userAgent = "Swagger-Codegen/4.0.0/csharp"
// ReSharper restore UnusedParameter.Local
)
{
Expand Down Expand Up @@ -416,7 +416,7 @@ public static String ToDebugReport()
String report = "C# SDK (SignRequest) Debug Report:\n";
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
report += " Version of the API: v1\n";
report += " SDK Package Version: 3.1.0\n";
report += " SDK Package Version: 4.0.0\n";

return report;
}
Expand Down
29 changes: 22 additions & 7 deletions src/SignRequest/Model/Document.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public enum StatusEnum
/// </summary>
/// <value>Temporary URL to original file, expires in five minutes</value>
[DataMember(Name="file", EmitDefaultValue=false)]
public string File { get; private set; }
public string _File { get; private set; }

/// <summary>
/// Publicly accessible URL of document to be downloaded by SignRequest
Expand Down Expand Up @@ -343,6 +343,13 @@ public enum StatusEnum
[DataMember(Name="auto_expire_after", EmitDefaultValue=false)]
public DateTime? AutoExpireAfter { get; private set; }

/// <summary>
/// Indicates whether a change to the document is processing and the PDF may be out of date. It is recommended to wait until processing has finished before downloading the PDF. Webhooks are not sent until processing has been completed.
/// </summary>
/// <value>Indicates whether a change to the document is processing and the PDF may be out of date. It is recommended to wait until processing has finished before downloading the PDF. Webhooks are not sent until processing has been completed.</value>
[DataMember(Name="processing", EmitDefaultValue=false)]
public bool? Processing { get; private set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -359,7 +366,7 @@ public override string ToString()
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" ExternalId: ").Append(ExternalId).Append("\n");
sb.Append(" FrontendId: ").Append(FrontendId).Append("\n");
sb.Append(" File: ").Append(File).Append("\n");
sb.Append(" _File: ").Append(_File).Append("\n");
sb.Append(" FileFromUrl: ").Append(FileFromUrl).Append("\n");
sb.Append(" EventsCallbackUrl: ").Append(EventsCallbackUrl).Append("\n");
sb.Append(" FileFromContent: ").Append(FileFromContent).Append("\n");
Expand All @@ -380,6 +387,7 @@ public override string ToString()
sb.Append(" AutoDeleteAfter: ").Append(AutoDeleteAfter).Append("\n");
sb.Append(" Sandbox: ").Append(Sandbox).Append("\n");
sb.Append(" AutoExpireAfter: ").Append(AutoExpireAfter).Append("\n");
sb.Append(" Processing: ").Append(Processing).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -455,9 +463,9 @@ public bool Equals(Document input)
this.FrontendId.Equals(input.FrontendId))
) &&
(
this.File == input.File ||
(this.File != null &&
this.File.Equals(input.File))
this._File == input._File ||
(this._File != null &&
this._File.Equals(input._File))
) &&
(
this.FileFromUrl == input.FileFromUrl ||
Expand Down Expand Up @@ -558,6 +566,11 @@ public bool Equals(Document input)
this.AutoExpireAfter == input.AutoExpireAfter ||
(this.AutoExpireAfter != null &&
this.AutoExpireAfter.Equals(input.AutoExpireAfter))
) &&
(
this.Processing == input.Processing ||
(this.Processing != null &&
this.Processing.Equals(input.Processing))
);
}

Expand Down Expand Up @@ -586,8 +599,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.ExternalId.GetHashCode();
if (this.FrontendId != null)
hashCode = hashCode * 59 + this.FrontendId.GetHashCode();
if (this.File != null)
hashCode = hashCode * 59 + this.File.GetHashCode();
if (this._File != null)
hashCode = hashCode * 59 + this._File.GetHashCode();
if (this.FileFromUrl != null)
hashCode = hashCode * 59 + this.FileFromUrl.GetHashCode();
if (this.EventsCallbackUrl != null)
Expand Down Expand Up @@ -628,6 +641,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Sandbox.GetHashCode();
if (this.AutoExpireAfter != null)
hashCode = hashCode * 59 + this.AutoExpireAfter.GetHashCode();
if (this.Processing != null)
hashCode = hashCode * 59 + this.Processing.GetHashCode();
return hashCode;
}
}
Expand Down
14 changes: 7 additions & 7 deletions src/SignRequest/Model/DocumentAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected DocumentAttachment() { }
/// </summary>
/// <value>Temporary URL to document attachment, expires in five minutes</value>
[DataMember(Name="file", EmitDefaultValue=false)]
public string File { get; private set; }
public string _File { get; private set; }

/// <summary>
/// Base64 encoded document content
Expand Down Expand Up @@ -122,7 +122,7 @@ public override string ToString()
sb.Append(" Url: ").Append(Url).Append("\n");
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" File: ").Append(File).Append("\n");
sb.Append(" _File: ").Append(_File).Append("\n");
sb.Append(" FileFromContent: ").Append(FileFromContent).Append("\n");
sb.Append(" FileFromContentName: ").Append(FileFromContentName).Append("\n");
sb.Append(" FileFromUrl: ").Append(FileFromUrl).Append("\n");
Expand Down Expand Up @@ -177,9 +177,9 @@ public bool Equals(DocumentAttachment input)
this.Name.Equals(input.Name))
) &&
(
this.File == input.File ||
(this.File != null &&
this.File.Equals(input.File))
this._File == input._File ||
(this._File != null &&
this._File.Equals(input._File))
) &&
(
this.FileFromContent == input.FileFromContent ||
Expand Down Expand Up @@ -218,8 +218,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Uuid.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.File != null)
hashCode = hashCode * 59 + this.File.GetHashCode();
if (this._File != null)
hashCode = hashCode * 59 + this._File.GetHashCode();
if (this.FileFromContent != null)
hashCode = hashCode * 59 + this.FileFromContent.GetHashCode();
if (this.FileFromContentName != null)
Expand Down
12 changes: 3 additions & 9 deletions src/SignRequest/Model/InlineDocumentSignerIntegrationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ public enum IntegrationEnum
/// Enum Zapier for value: zapier
/// </summary>
[EnumMember(Value = "zapier")]
Zapier = 4,

/// <summary>
/// Enum Txhash for value: txhash
/// </summary>
[EnumMember(Value = "txhash")]
Txhash = 5
Zapier = 4
}

/// <summary>
Expand All @@ -76,7 +70,7 @@ public enum IntegrationEnum
/// </summary>
/// <param name="integration">integration.</param>
/// <param name="integrationData">integrationData.</param>
public InlineDocumentSignerIntegrationData(IntegrationEnum? integration = default(IntegrationEnum?), string integrationData = default(string))
public InlineDocumentSignerIntegrationData(IntegrationEnum? integration = default(IntegrationEnum?), Object integrationData = default(Object))
{
this.Integration = integration;
this.IntegrationData = integrationData;
Expand All @@ -87,7 +81,7 @@ public enum IntegrationEnum
/// Gets or Sets IntegrationData
/// </summary>
[DataMember(Name="integration_data", EmitDefaultValue=false)]
public string IntegrationData { get; set; }
public Object IntegrationData { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
12 changes: 3 additions & 9 deletions src/SignRequest/Model/InlineIntegrationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ public enum IntegrationEnum
/// Enum Zapier for value: zapier
/// </summary>
[EnumMember(Value = "zapier")]
Zapier = 4,

/// <summary>
/// Enum Txhash for value: txhash
/// </summary>
[EnumMember(Value = "txhash")]
Txhash = 5
Zapier = 4
}

/// <summary>
Expand All @@ -76,7 +70,7 @@ public enum IntegrationEnum
/// </summary>
/// <param name="integration">integration.</param>
/// <param name="integrationData">integrationData.</param>
public InlineIntegrationData(IntegrationEnum? integration = default(IntegrationEnum?), string integrationData = default(string))
public InlineIntegrationData(IntegrationEnum? integration = default(IntegrationEnum?), Object integrationData = default(Object))
{
this.Integration = integration;
this.IntegrationData = integrationData;
Expand All @@ -87,7 +81,7 @@ public enum IntegrationEnum
/// Gets or Sets IntegrationData
/// </summary>
[DataMember(Name="integration_data", EmitDefaultValue=false)]
public string IntegrationData { get; set; }
public Object IntegrationData { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
12 changes: 3 additions & 9 deletions src/SignRequest/Model/SignRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,7 @@ public enum IntegrationEnum
/// Enum Zapier for value: zapier
/// </summary>
[EnumMember(Value = "zapier")]
Zapier = 4,

/// <summary>
/// Enum Txhash for value: txhash
/// </summary>
[EnumMember(Value = "txhash")]
Txhash = 5
Zapier = 4
}

/// <summary>
Expand Down Expand Up @@ -134,7 +128,7 @@ protected SignRequest() { }
/// <param name="document">document (required).</param>
/// <param name="integration">integration.</param>
/// <param name="integrationData">integrationData.</param>
public SignRequest(string fromEmail = default(string), string fromEmailName = default(string), bool? isBeingPrepared = default(bool?), string redirectUrl = default(string), string redirectUrlDeclined = default(string), List<RequiredAttachment> requiredAttachments = default(List<RequiredAttachment>), bool? disableAttachments = default(bool?), bool? disableTextSignatures = default(bool?), bool? disableText = default(bool?), bool? disableDate = default(bool?), bool? disableEmails = default(bool?), bool? disableUploadSignatures = default(bool?), bool? disableBlockchainProof = default(bool?), bool? textMessageVerificationLocked = default(bool?), string subject = default(string), string message = default(string), WhoEnum? who = WhoEnum.O, bool? sendReminders = default(bool?), List<Signer> signers = default(List<Signer>), string document = default(string), IntegrationEnum? integration = default(IntegrationEnum?), string integrationData = default(string))
public SignRequest(string fromEmail = default(string), string fromEmailName = default(string), bool? isBeingPrepared = default(bool?), string redirectUrl = default(string), string redirectUrlDeclined = default(string), List<RequiredAttachment> requiredAttachments = default(List<RequiredAttachment>), bool? disableAttachments = default(bool?), bool? disableTextSignatures = default(bool?), bool? disableText = default(bool?), bool? disableDate = default(bool?), bool? disableEmails = default(bool?), bool? disableUploadSignatures = default(bool?), bool? disableBlockchainProof = default(bool?), bool? textMessageVerificationLocked = default(bool?), string subject = default(string), string message = default(string), WhoEnum? who = WhoEnum.O, bool? sendReminders = default(bool?), List<Signer> signers = default(List<Signer>), string document = default(string), IntegrationEnum? integration = default(IntegrationEnum?), Object integrationData = default(Object))
{
// to ensure "signers" is required (not null)
if (signers == null)
Expand Down Expand Up @@ -339,7 +333,7 @@ protected SignRequest() { }
/// Gets or Sets IntegrationData
/// </summary>
[DataMember(Name="integration_data", EmitDefaultValue=false)]
public string IntegrationData { get; set; }
public Object IntegrationData { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Loading

0 comments on commit f1f35f5

Please sign in to comment.