Skip to content

Commit 5e328ae

Browse files
committed
Updated on 2020-09-24 00:43:25. Version: 1.3.1
1 parent b3a175f commit 5e328ae

11 files changed

Lines changed: 93 additions & 14 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.3.1 [September 24, 2020]
2+
3+
- Fixed the "include_data=true" option for the "Get Submission" API endpoint. Added the "data" property to the Submission model so that this is parsed and returned correctly when requested
4+
15
### 1.3.0 [September 21, 2020]
26

37
- Renamed some internal models for template creation API endpoints. (CreateTemplateData / CreateTemplateData1 renamed to CreateHtmlTemplateData and CreateTemplateFromUploadData)

‎DocSpring.Client.sln‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2012
33
VisualStudioVersion = 12.0.0.0
44
MinimumVisualStudioVersion = 10.0.0.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocSpring.Client", "src\DocSpring.Client\DocSpring.Client.csproj", "{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}"
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-
{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}.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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DocSpring is a service 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: 1.3.0
8+
- SDK version: 1.3.1
99
- Build package: com.docspring.codegen.DocSpringCSharpClientCodegen
1010

1111
<a name="frameworks-supported"></a>

‎docs/PDFApi.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ namespace Example
12021202

12031203
var apiInstance = new PDFApi();
12041204
var submissionId = sub_000000000000000001; // string |
1205-
var includeData = false; // bool? | (optional)
1205+
var includeData = true; // bool? | (optional)
12061206
12071207
try
12081208
{

‎docs/Submission.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**ExpiresAt** | **string** | | [optional]
1212
**ProcessedAt** | **string** | | [optional]
1313
**State** | **string** | |
14+
**Data** | **Object** | | [optional]
1415
**Metadata** | **Object** | | [optional]
1516
**TruncatedText** | **Object** | | [optional]
1617
**PdfHash** | **string** | | [optional]
@@ -19,6 +20,8 @@ Name | Type | Description | Notes
1920
**BatchId** | **string** | | [optional]
2021
**DataRequests** | [**List&lt;SubmissionDataRequest&gt;**](SubmissionDataRequest.md) | | [optional]
2122
**Actions** | [**List&lt;SubmissionAction&gt;**](SubmissionAction.md) | | [optional]
23+
**Source** | **string** | | [optional]
24+
**Referrer** | **string** | | [optional]
2225

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

‎src/DocSpring.Client.Test/DocSpring.Client.Test.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ OpenAPI spec version: v1
8181
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
8282
<ItemGroup>
8383
<ProjectReference Include="..\DocSpring.Client\DocSpring.Client.csproj">
84-
<Project>{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}</Project>
84+
<Project>{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}</Project>
8585
<Name>DocSpring.Client</Name>
8686
</ProjectReference>
8787
</ItemGroup>

‎src/DocSpring.Client.Test/Model/SubmissionTests.cs‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ public void StateTest()
131131
// TODO unit test for the property 'State'
132132
}
133133
/// <summary>
134+
/// Test the property 'Data'
135+
/// </summary>
136+
[Test]
137+
public void DataTest()
138+
{
139+
// TODO unit test for the property 'Data'
140+
}
141+
/// <summary>
134142
/// Test the property 'Metadata'
135143
/// </summary>
136144
[Test]
@@ -194,6 +202,22 @@ public void ActionsTest()
194202
{
195203
// TODO unit test for the property 'Actions'
196204
}
205+
/// <summary>
206+
/// Test the property 'Source'
207+
/// </summary>
208+
[Test]
209+
public void SourceTest()
210+
{
211+
// TODO unit test for the property 'Source'
212+
}
213+
/// <summary>
214+
/// Test the property 'Referrer'
215+
/// </summary>
216+
[Test]
217+
public void ReferrerTest()
218+
{
219+
// TODO unit test for the property 'Referrer'
220+
}
197221

198222
}
199223

‎src/DocSpring.Client/Client/Configuration.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class Configuration : IReadableConfiguration
2929
/// Version of the package.
3030
/// </summary>
3131
/// <value>Version of the package.</value>
32-
public const string Version = "1.3.0";
32+
public const string Version = "1.3.1";
3333

3434
/// <summary>
3535
/// Identifier for ISO 8601 DateTime Format
@@ -421,7 +421,7 @@ public static String ToDebugReport()
421421
report += " OS: " + System.Environment.OSVersion + "\n";
422422
report += " .NET Framework Version: " + System.Environment.Version + "\n";
423423
report += " Version of the API: v1\n";
424-
report += " SDK Package Version: 1.3.0\n";
424+
report += " SDK Package Version: 1.3.1\n";
425425

426426
return report;
427427
}

‎src/DocSpring.Client/DocSpring.Client.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OpenAPI spec version: v1
1212

1313
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1414
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
15-
<ProjectGuid>{E1B8A8A6-EFB3-469C-85BC-C6DE61CBB591}</ProjectGuid>
15+
<ProjectGuid>{CE1ED5B0-0808-4A89-BC7B-8FFE378BFE68}</ProjectGuid>
1616
<OutputType>Library</OutputType>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
1818
<RootNamespace>DocSpring.Client</RootNamespace>

‎src/DocSpring.Client/Model/Submission.cs‎

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ protected Submission() { }
125125
/// <param name="expiresAt">expiresAt.</param>
126126
/// <param name="processedAt">processedAt.</param>
127127
/// <param name="state">state (required).</param>
128+
/// <param name="data">data.</param>
128129
/// <param name="metadata">metadata.</param>
129130
/// <param name="truncatedText">truncatedText.</param>
130131
/// <param name="pdfHash">pdfHash.</param>
@@ -133,7 +134,9 @@ protected Submission() { }
133134
/// <param name="batchId">batchId.</param>
134135
/// <param name="dataRequests">dataRequests.</param>
135136
/// <param name="actions">actions.</param>
136-
public Submission(string id = default(string), string templateId = default(string), bool? test = default(bool?), bool? editable = default(bool?), bool? expired = default(bool?), string expiresAt = default(string), string processedAt = default(string), StateEnum state = default(StateEnum), Object metadata = default(Object), Object truncatedText = default(Object), string pdfHash = default(string), string downloadUrl = default(string), string permanentDownloadUrl = default(string), string batchId = default(string), List<SubmissionDataRequest> dataRequests = default(List<SubmissionDataRequest>), List<SubmissionAction> actions = default(List<SubmissionAction>))
137+
/// <param name="source">source.</param>
138+
/// <param name="referrer">referrer.</param>
139+
public Submission(string id = default(string), string templateId = default(string), bool? test = default(bool?), bool? editable = default(bool?), bool? expired = default(bool?), string expiresAt = default(string), string processedAt = default(string), StateEnum state = default(StateEnum), Object data = default(Object), Object metadata = default(Object), Object truncatedText = default(Object), string pdfHash = default(string), string downloadUrl = default(string), string permanentDownloadUrl = default(string), string batchId = default(string), List<SubmissionDataRequest> dataRequests = default(List<SubmissionDataRequest>), List<SubmissionAction> actions = default(List<SubmissionAction>), string source = default(string), string referrer = default(string))
137140
{
138141
// to ensure "id" is required (not null)
139142
if (id == null)
@@ -175,6 +178,7 @@ protected Submission() { }
175178
this.Editable = editable;
176179
this.ExpiresAt = expiresAt;
177180
this.ProcessedAt = processedAt;
181+
this.Data = data;
178182
this.Metadata = metadata;
179183
this.TruncatedText = truncatedText;
180184
this.PdfHash = pdfHash;
@@ -183,6 +187,8 @@ protected Submission() { }
183187
this.BatchId = batchId;
184188
this.DataRequests = dataRequests;
185189
this.Actions = actions;
190+
this.Source = source;
191+
this.Referrer = referrer;
186192
}
187193

188194
/// <summary>
@@ -228,6 +234,12 @@ protected Submission() { }
228234
public string ProcessedAt { get; set; }
229235

230236

237+
/// <summary>
238+
/// Gets or Sets Data
239+
/// </summary>
240+
[DataMember(Name="data", EmitDefaultValue=false)]
241+
public Object Data { get; set; }
242+
231243
/// <summary>
232244
/// Gets or Sets Metadata
233245
/// </summary>
@@ -276,6 +288,18 @@ protected Submission() { }
276288
[DataMember(Name="actions", EmitDefaultValue=false)]
277289
public List<SubmissionAction> Actions { get; set; }
278290

291+
/// <summary>
292+
/// Gets or Sets Source
293+
/// </summary>
294+
[DataMember(Name="source", EmitDefaultValue=false)]
295+
public string Source { get; set; }
296+
297+
/// <summary>
298+
/// Gets or Sets Referrer
299+
/// </summary>
300+
[DataMember(Name="referrer", EmitDefaultValue=false)]
301+
public string Referrer { get; set; }
302+
279303
/// <summary>
280304
/// Returns the string presentation of the object
281305
/// </summary>
@@ -292,6 +316,7 @@ public override string ToString()
292316
sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n");
293317
sb.Append(" ProcessedAt: ").Append(ProcessedAt).Append("\n");
294318
sb.Append(" State: ").Append(State).Append("\n");
319+
sb.Append(" Data: ").Append(Data).Append("\n");
295320
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
296321
sb.Append(" TruncatedText: ").Append(TruncatedText).Append("\n");
297322
sb.Append(" PdfHash: ").Append(PdfHash).Append("\n");
@@ -300,6 +325,8 @@ public override string ToString()
300325
sb.Append(" BatchId: ").Append(BatchId).Append("\n");
301326
sb.Append(" DataRequests: ").Append(DataRequests).Append("\n");
302327
sb.Append(" Actions: ").Append(Actions).Append("\n");
328+
sb.Append(" Source: ").Append(Source).Append("\n");
329+
sb.Append(" Referrer: ").Append(Referrer).Append("\n");
303330
sb.Append("}\n");
304331
return sb.ToString();
305332
}
@@ -374,6 +401,11 @@ public bool Equals(Submission input)
374401
(this.State != null &&
375402
this.State.Equals(input.State))
376403
) &&
404+
(
405+
this.Data == input.Data ||
406+
(this.Data != null &&
407+
this.Data.Equals(input.Data))
408+
) &&
377409
(
378410
this.Metadata == input.Metadata ||
379411
(this.Metadata != null &&
@@ -413,6 +445,16 @@ public bool Equals(Submission input)
413445
this.Actions == input.Actions ||
414446
this.Actions != null &&
415447
this.Actions.SequenceEqual(input.Actions)
448+
) &&
449+
(
450+
this.Source == input.Source ||
451+
(this.Source != null &&
452+
this.Source.Equals(input.Source))
453+
) &&
454+
(
455+
this.Referrer == input.Referrer ||
456+
(this.Referrer != null &&
457+
this.Referrer.Equals(input.Referrer))
416458
);
417459
}
418460

@@ -441,6 +483,8 @@ public override int GetHashCode()
441483
hashCode = hashCode * 59 + this.ProcessedAt.GetHashCode();
442484
if (this.State != null)
443485
hashCode = hashCode * 59 + this.State.GetHashCode();
486+
if (this.Data != null)
487+
hashCode = hashCode * 59 + this.Data.GetHashCode();
444488
if (this.Metadata != null)
445489
hashCode = hashCode * 59 + this.Metadata.GetHashCode();
446490
if (this.TruncatedText != null)
@@ -457,6 +501,10 @@ public override int GetHashCode()
457501
hashCode = hashCode * 59 + this.DataRequests.GetHashCode();
458502
if (this.Actions != null)
459503
hashCode = hashCode * 59 + this.Actions.GetHashCode();
504+
if (this.Source != null)
505+
hashCode = hashCode * 59 + this.Source.GetHashCode();
506+
if (this.Referrer != null)
507+
hashCode = hashCode * 59 + this.Referrer.GetHashCode();
460508
return hashCode;
461509
}
462510
}

0 commit comments

Comments
 (0)