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
14 changes: 12 additions & 2 deletions openapi-raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7697,7 +7697,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
minItems: 1
name:
description: '_t__ApiAppCreate::NAME'
Expand All @@ -7723,7 +7723,7 @@ components:
type: array
items:
type: string
maxItems: 2
maxItems: 10
name:
description: '_t__ApiAppUpdate::NAME'
type: string
Expand Down Expand Up @@ -8021,6 +8021,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
maxItems: 2
minItems: 1
start_date:
Expand Down Expand Up @@ -11224,6 +11225,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -12286,6 +12288,14 @@ components:
- employer_identification_number
- custom_regex
nullable: true
validation_custom_regex:
description: '_t__TemplateResponseDocumentFormField::CUSTOM_REGEX'
type: string
nullable: true
validation_custom_regex_format_label:
description: '_t__TemplateResponseDocumentFormField::CUSTOM_REGEX_LABEL'
type: string
nullable: true
group:
description: '_t__TemplateResponseDocumentFormField::GROUP'
type: string
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
14 changes: 12 additions & 2 deletions openapi.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 @@ -11942,6 +11943,7 @@ components:
enum:
- user_activity
- document_status
- sms_activity
type: object
x-internal-class: true
SignatureRequestResponse:
Expand Down Expand Up @@ -13108,6 +13110,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
2 changes: 1 addition & 1 deletion sdks/dotnet/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)

65 changes: 65 additions & 0 deletions sdks/dotnet/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 sdks/dotnet/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());
}
}
}
8 changes: 7 additions & 1 deletion sdks/dotnet/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 sdks/dotnet/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