Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ directory that corresponds to the file you want updated.
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- SDK version: 2.0.0
- SDK version: 2.1.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.1.0
2 changes: 1 addition & 1 deletion docs/TemplateResponseDocumentFormFieldText.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**Width** | **int** | The width in pixels of this form field. | [optional]
**Height** | **int** | The height in pixels of this form field. | [optional]
**Required** | **bool** | Boolean showing whether or not this field is required. | [optional]
**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field&#39;s text. | [optional] **FontFamily** | **string** | Font family used in this form field&#39;s text. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [optional] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [optional]
**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "text"]**AvgTextLength** | [**TemplateResponseFieldAvgTextLength**](TemplateResponseFieldAvgTextLength.md) | | [optional] **IsMultiline** | **bool** | Whether this form field is multiline text. | [optional] **OriginalFontSize** | **int** | Original font size used in this form field&#39;s text. | [optional] **FontFamily** | **string** | Font family used in this form field&#39;s text. | [optional] **ValidationType** | **string** | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | [optional] **ValidationCustomRegex** | **string** | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | [optional] **ValidationCustomRegexFormatLabel** | **string** | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | [optional] **Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [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 openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ additionalProperties:
packageCompany: Dropbox Sign API Team
packageCopyright: Dropbox 2024
packageDescription: Client library for using the Dropbox Sign API
packageVersion: 2.0.0
packageVersion: 2.1.0
packageTitle: Dropbox Sign .Net SDK
sortModelPropertiesByRequiredFlag: true
optionalEmitDefaultValues: true
Expand Down
14 changes: 12 additions & 2 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7797,7 +7797,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
minItems: 1
name:
description: 'The name you want to assign to the ApiApp.'
Expand All @@ -7823,7 +7823,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
name:
description: 'The name you want to assign to the ApiApp.'
type: string
Expand Down Expand Up @@ -8135,6 +8135,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
maxItems: 2
minItems: 1
start_date:
Expand Down Expand Up @@ -11964,6 +11965,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -13130,6 +13132,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
validation_custom_regex:
description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.'
type: string
nullable: true
validation_custom_regex_format_label:
description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.'
type: string
nullable: true
group:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
Expand Down
65 changes: 65 additions & 0 deletions src/Dropbox.Sign.Test/Api/FaxApiTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
using System;
using System.Collections.Generic;
using System.IO;
using Xunit;
using System.Text.Json;

using Dropbox.Sign.Api;
using Dropbox.Sign.Model;

namespace Dropbox.Sign.Test.Api
{
public class FaxApiTests
{
[Fact]
public void SendFaxTest()
{
var requestData = TestHelper.GetJsonContents(nameof(FaxSendRequest));
var responseData = TestHelper.GetJsonContents(nameof(FaxGetResponse));

var obj = FaxSendRequest.Init(
requestData.ToString()
);

obj.Files = new List<Stream> {
new FileStream(
TestHelper.RootPath + "/pdf-sample.pdf",
FileMode.Open,
FileAccess.Read,
FileShare.Read
)
};

var responseObj = FaxGetResponse.Init(responseData.ToString());

var api = MockRestClientHelper.CreateApiExpectMultiFormRequest<FaxGetResponse, FaxApi>(responseObj);
var response = api.FaxSend(obj);

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}

[Fact]
public void FaxListTest()
{
var responseData = TestHelper.GetJsonContents(nameof(FaxListResponse));

var api = MockRestClientHelper.CreateApi<FaxApi>(responseData);
var response = api.FaxList();

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}

[Fact]
public void FaxGetTest()
{
var faxId = "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d";

var responseData = TestHelper.GetJsonContents(nameof(FaxGetResponse));

var api = MockRestClientHelper.CreateApi<FaxApi>(responseData);
var response = api.FaxGet(faxId);

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}
}
}
54 changes: 54 additions & 0 deletions src/Dropbox.Sign.Test/Api/FaxLineApiTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.IO;
using Xunit;
using System.Text.Json;

using Dropbox.Sign.Api;
using Dropbox.Sign.Model;

namespace Dropbox.Sign.Test.Api
{
public class FaxLineApiTests
{
[Fact]
public void FaxLineCreateTest()
{
var requestData = TestHelper.GetJsonContents(nameof(FaxLineCreateRequest));
var responseData = TestHelper.GetJsonContents(nameof(FaxLineResponse));

var obj = FaxLineCreateRequest.Init(
requestData.ToString()
);

var api = MockRestClientHelper.CreateApi<FaxLineApi>(responseData);
var response = api.FaxLineCreate(obj);

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}

[Fact]
public void FaxLineListTest()
{
var responseData = TestHelper.GetJsonContents(nameof(FaxLineListResponse));

var api = MockRestClientHelper.CreateApi<FaxLineApi>(responseData);
var response = api.FaxLineList();

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}

[Fact]
public void FaxLineGetTest()
{
var faxLineNumber = "14155557897";

var responseData = TestHelper.GetJsonContents(nameof(FaxLineResponse));

var api = MockRestClientHelper.CreateApi<FaxLineApi>(responseData);
var response = api.FaxLineGet(faxLineNumber);

TestHelper.AssertJsonSame(responseData.ToString(), response.ToJson());
}
}
}
6 changes: 3 additions & 3 deletions src/Dropbox.Sign/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "2.0.0";
public const string Version = "2.1.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/2.0.0/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/2.1.0/csharp");
BasePath = "https://api.hellosign.com/v3";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -567,7 +567,7 @@ public static string ToDebugReport()
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: 2.0.0\n";
report += " SDK Package Version: 2.1.0\n";

return report;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Dropbox.Sign/Dropbox.Sign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Client library for using the Dropbox Sign API</Description>
<Copyright>Dropbox 2024</Copyright>
<RootNamespace>Dropbox.Sign</RootNamespace>
<Version>2.0.0</Version>
<Version>2.1.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml</DocumentationFile>
<RepositoryUrl>https://github.com/hellosign/dropbox-sign-dotnet.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
8 changes: 7 additions & 1 deletion src/Dropbox.Sign/Model/ReportCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public enum ReportTypeEnum
/// Enum DocumentStatus for value: document_status
/// </summary>
[EnumMember(Value = "document_status")]
DocumentStatus = 2
DocumentStatus = 2,

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

/// <summary>
Expand Down
8 changes: 7 additions & 1 deletion src/Dropbox.Sign/Model/ReportResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public enum ReportTypeEnum
/// Enum DocumentStatus for value: document_status
/// </summary>
[EnumMember(Value = "document_status")]
DocumentStatus = 2
DocumentStatus = 2,

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

/// <summary>
Expand Down
Loading
Loading