Skip to content

Commit b22df92

Browse files
committed
Updated on 2025-02-26 20:25:57. Version: 3.0.1
1 parent 0832629 commit b22df92

14 files changed

+58
-24
lines changed

.!4652!nuget.exe

Whitespace-only changes.

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 3.0.1 [February 26, 2025]
2+
3+
- Fixed User-Agent header: docspring-csharp-x.x.x
4+
15
### 3.0.0 [February 23, 2025]
26

37
- **BREAKING CHANGE**: Updated default host to our new synchronous API subdomain: sync.api.docspring.com. (EU customers should use sync.api-eu.docspring.com). Removed all custom polling code from library since this logic is now handled by the API service running on our sync subdomain

DocSpring.Client.sln

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{A6AE9ACF-B218-49CE-9D79-9CAE9A58B04D}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{A7EB6260-4D9D-40AB-A3ED-D71303CB3017}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client.Test", "src\DocSpring.Client.Test\DocSpring.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{A6AE9ACF-B218-49CE-9D79-9CAE9A58B04D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{A6AE9ACF-B218-49CE-9D79-9CAE9A58B04D}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{A6AE9ACF-B218-49CE-9D79-9CAE9A58B04D}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{A6AE9ACF-B218-49CE-9D79-9CAE9A58B04D}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{A7EB6260-4D9D-40AB-A3ED-D71303CB3017}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{A7EB6260-4D9D-40AB-A3ED-D71303CB3017}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{A7EB6260-4D9D-40AB-A3ED-D71303CB3017}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{A7EB6260-4D9D-40AB-A3ED-D71303CB3017}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DocSpring provides an API that helps you fill out and sign PDF templates.
55
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: v1
8-
- SDK version: 3.0.0
8+
- SDK version: 3.0.1
99
- Generator version: 7.11.0
1010
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
1111

api/openapi.yaml

+4-11
Original file line numberDiff line numberDiff line change
@@ -1621,17 +1621,6 @@ paths:
16211621
schema:
16221622
$ref: '#/components/schemas/error_response'
16231623
description: authentication failed
1624-
"400":
1625-
content:
1626-
application/json:
1627-
example:
1628-
status: error
1629-
error: "There was a problem with the JSON you submitted: unexpected\
1630-
\ character at line 1, column 25 in '{ \"first_name\": \"John\"\
1631-
, last_name: \"Smith\" }"
1632-
schema:
1633-
$ref: '#/components/schemas/error_response'
1634-
description: invalid JSON
16351624
security:
16361625
- api_token_basic: []
16371626
summary: Generates a new PDF
@@ -5658,6 +5647,8 @@ components:
56585647
items:
56595648
$ref: '#/components/schemas/create_submission_data_request_data'
56605649
type: array
5650+
editable:
5651+
type: boolean
56615652
expires_in:
56625653
type: integer
56635654
field_overrides:
@@ -5799,6 +5790,8 @@ components:
57995790
properties: {}
58005791
title: submission_data
58015792
type: object
5793+
editable:
5794+
type: boolean
58025795
expires_in:
58035796
type: integer
58045797
field_overrides:

docs/CreateHtmlSubmissionData.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Css** | **string** | | [optional]
88
**Data** | **Object** | | [optional]
9+
**Editable** | **bool** | | [optional]
910
**ExpiresIn** | **int** | | [optional]
1011
**FieldOverrides** | **Object** | | [optional]
1112
**Html** | **string** | | [optional]

docs/CreatePdfSubmissionData.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Data** | **Object** | |
88
**DataRequests** | [**List<CreateSubmissionDataRequestData>**](CreateSubmissionDataRequestData.md) | | [optional]
9+
**Editable** | **bool** | | [optional]
910
**ExpiresIn** | **int** | | [optional]
1011
**FieldOverrides** | **Object** | | [optional]
1112
**Metadata** | **Object** | | [optional]

docs/PDFApi.md

-1
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,6 @@ catch (ApiException e)
16811681
| **201** | submission created | - |
16821682
| **422** | invalid request | - |
16831683
| **401** | authentication failed | - |
1684-
| **400** | invalid JSON | - |
16851684

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

src/DocSpring.Client.Test/Model/CreateHtmlSubmissionDataTests.cs

+9
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ public void DataTest()
7272
// TODO unit test for the property 'Data'
7373
}
7474

75+
/// <summary>
76+
/// Test the property 'Editable'
77+
/// </summary>
78+
[Fact]
79+
public void EditableTest()
80+
{
81+
// TODO unit test for the property 'Editable'
82+
}
83+
7584
/// <summary>
7685
/// Test the property 'ExpiresIn'
7786
/// </summary>

src/DocSpring.Client.Test/Model/CreatePdfSubmissionDataTests.cs

+9
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ public void DataRequestsTest()
7272
// TODO unit test for the property 'DataRequests'
7373
}
7474

75+
/// <summary>
76+
/// Test the property 'Editable'
77+
/// </summary>
78+
[Fact]
79+
public void EditableTest()
80+
{
81+
// TODO unit test for the property 'Editable'
82+
}
83+
7584
/// <summary>
7685
/// Test the property 'ExpiresIn'
7786
/// </summary>

src/DocSpring.Client/Client/Configuration.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Configuration : IReadableConfiguration
3333
/// Version of the package.
3434
/// </summary>
3535
/// <value>Version of the package.</value>
36-
public const string Version = "3.0.0";
36+
public const string Version = "3.0.1";
3737

3838
/// <summary>
3939
/// Identifier for ISO 8601 DateTime Format
@@ -112,7 +112,7 @@ public class Configuration : IReadableConfiguration
112112
public Configuration()
113113
{
114114
Proxy = null;
115-
UserAgent = WebUtility.UrlEncode("docspring-csharp-#{VERSION}");
115+
UserAgent = WebUtility.UrlEncode("docspring-csharp-3.0.1");
116116
BasePath = "https://sync.api.docspring.com/api/v1";
117117
DefaultHeaders = new ConcurrentDictionary<string, string>();
118118
ApiKey = new ConcurrentDictionary<string, string>();
@@ -535,7 +535,7 @@ public static string ToDebugReport()
535535
report += " OS: " + System.Environment.OSVersion + "\n";
536536
report += " .NET Framework Version: " + System.Environment.Version + "\n";
537537
report += " Version of the API: v1\n";
538-
report += " SDK Package Version: 3.0.0\n";
538+
report += " SDK Package Version: 3.0.1\n";
539539

540540
return report;
541541
}

src/DocSpring.Client/DocSpring.Client.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Description>A library generated from a OpenAPI doc</Description>
1313
<Copyright>No Copyright</Copyright>
1414
<RootNamespace>DocSpring.Client</RootNamespace>
15-
<Version>3.0.0</Version>
15+
<Version>3.0.1</Version>
1616
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\DocSpring.Client.xml</DocumentationFile>
1717
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>

src/DocSpring.Client/Model/CreateHtmlSubmissionData.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ public partial class CreateHtmlSubmissionData : IValidatableObject
3636
/// </summary>
3737
/// <param name="css">css.</param>
3838
/// <param name="data">data.</param>
39+
/// <param name="editable">editable.</param>
3940
/// <param name="expiresIn">expiresIn.</param>
4041
/// <param name="fieldOverrides">fieldOverrides.</param>
4142
/// <param name="html">html.</param>
4243
/// <param name="metadata">metadata.</param>
4344
/// <param name="password">password.</param>
4445
/// <param name="test">test.</param>
45-
public CreateHtmlSubmissionData(string css = default(string), Object data = default(Object), int expiresIn = default(int), Object fieldOverrides = default(Object), string html = default(string), Object metadata = default(Object), string password = default(string), bool test = default(bool))
46+
public CreateHtmlSubmissionData(string css = default(string), Object data = default(Object), bool editable = default(bool), int expiresIn = default(int), Object fieldOverrides = default(Object), string html = default(string), Object metadata = default(Object), string password = default(string), bool test = default(bool))
4647
{
4748
this.Css = css;
4849
this.Data = data;
50+
this.Editable = editable;
4951
this.ExpiresIn = expiresIn;
5052
this.FieldOverrides = fieldOverrides;
5153
this.Html = html;
@@ -66,6 +68,12 @@ public partial class CreateHtmlSubmissionData : IValidatableObject
6668
[DataMember(Name = "data", EmitDefaultValue = false)]
6769
public Object Data { get; set; }
6870

71+
/// <summary>
72+
/// Gets or Sets Editable
73+
/// </summary>
74+
[DataMember(Name = "editable", EmitDefaultValue = true)]
75+
public bool Editable { get; set; }
76+
6977
/// <summary>
7078
/// Gets or Sets ExpiresIn
7179
/// </summary>
@@ -112,6 +120,7 @@ public override string ToString()
112120
sb.Append("class CreateHtmlSubmissionData {\n");
113121
sb.Append(" Css: ").Append(Css).Append("\n");
114122
sb.Append(" Data: ").Append(Data).Append("\n");
123+
sb.Append(" Editable: ").Append(Editable).Append("\n");
115124
sb.Append(" ExpiresIn: ").Append(ExpiresIn).Append("\n");
116125
sb.Append(" FieldOverrides: ").Append(FieldOverrides).Append("\n");
117126
sb.Append(" Html: ").Append(Html).Append("\n");

src/DocSpring.Client/Model/CreatePdfSubmissionData.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ protected CreatePdfSubmissionData() { }
4141
/// </summary>
4242
/// <param name="data">data (required).</param>
4343
/// <param name="dataRequests">dataRequests.</param>
44+
/// <param name="editable">editable.</param>
4445
/// <param name="expiresIn">expiresIn.</param>
4546
/// <param name="fieldOverrides">fieldOverrides.</param>
4647
/// <param name="metadata">metadata.</param>
4748
/// <param name="password">password.</param>
4849
/// <param name="test">test.</param>
49-
public CreatePdfSubmissionData(Object data = default(Object), List<CreateSubmissionDataRequestData> dataRequests = default(List<CreateSubmissionDataRequestData>), int expiresIn = default(int), Object fieldOverrides = default(Object), Object metadata = default(Object), string password = default(string), bool test = default(bool))
50+
public CreatePdfSubmissionData(Object data = default(Object), List<CreateSubmissionDataRequestData> dataRequests = default(List<CreateSubmissionDataRequestData>), bool editable = default(bool), int expiresIn = default(int), Object fieldOverrides = default(Object), Object metadata = default(Object), string password = default(string), bool test = default(bool))
5051
{
5152
// to ensure "data" is required (not null)
5253
if (data == null)
@@ -55,6 +56,7 @@ protected CreatePdfSubmissionData() { }
5556
}
5657
this.Data = data;
5758
this.DataRequests = dataRequests;
59+
this.Editable = editable;
5860
this.ExpiresIn = expiresIn;
5961
this.FieldOverrides = fieldOverrides;
6062
this.Metadata = metadata;
@@ -74,6 +76,12 @@ protected CreatePdfSubmissionData() { }
7476
[DataMember(Name = "data_requests", EmitDefaultValue = false)]
7577
public List<CreateSubmissionDataRequestData> DataRequests { get; set; }
7678

79+
/// <summary>
80+
/// Gets or Sets Editable
81+
/// </summary>
82+
[DataMember(Name = "editable", EmitDefaultValue = true)]
83+
public bool Editable { get; set; }
84+
7785
/// <summary>
7886
/// Gets or Sets ExpiresIn
7987
/// </summary>
@@ -114,6 +122,7 @@ public override string ToString()
114122
sb.Append("class CreatePdfSubmissionData {\n");
115123
sb.Append(" Data: ").Append(Data).Append("\n");
116124
sb.Append(" DataRequests: ").Append(DataRequests).Append("\n");
125+
sb.Append(" Editable: ").Append(Editable).Append("\n");
117126
sb.Append(" ExpiresIn: ").Append(ExpiresIn).Append("\n");
118127
sb.Append(" FieldOverrides: ").Append(FieldOverrides).Append("\n");
119128
sb.Append(" Metadata: ").Append(Metadata).Append("\n");

0 commit comments

Comments
 (0)