Skip to content

Commit 8ce22e6

Browse files
Add new certification_types parameter, for nom 151 support
1 parent bbd0bf7 commit 8ce22e6

File tree

56 files changed

+1791
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1791
-18
lines changed

openapi-raw.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7248,6 +7248,8 @@ components:
72487248
description: '_t__SignatureRequestSend::EXPIRES_AT'
72497249
type: integer
72507250
nullable: true
7251+
certification_types:
7252+
$ref: '#/components/schemas/SubCertificationTypes'
72517253
type: object
72527254
SignatureRequestSendWithTemplateRequest:
72537255
description: ''
@@ -7329,6 +7331,8 @@ components:
73297331
description: '_t__SignatureRequestSendWithTemplate::TITLE'
73307332
type: string
73317333
maxLength: 255
7334+
certification_types:
7335+
$ref: '#/components/schemas/SubCertificationTypes'
73327336
type: object
73337337
SignatureRequestUpdateRequest:
73347338
required:
@@ -7406,6 +7410,14 @@ components:
74067410
type: string
74077411
format: email
74087412
type: object
7413+
SubCertificationTypes:
7414+
description: '_t__Sub::CertificationTypes::DESCRIPTION'
7415+
properties:
7416+
nom_151:
7417+
description: '_t__Sub::CertificationTypes::NOM_151'
7418+
type: boolean
7419+
default: false
7420+
type: object
74097421
SubCustomField:
74107422
description: '_t__Sub::CustomField::DESCRIPTION'
74117423
required:

openapi-sdk.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7571,6 +7571,8 @@ components:
75717571
description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.'
75727572
type: integer
75737573
nullable: true
7574+
certification_types:
7575+
$ref: '#/components/schemas/SubCertificationTypes'
75747576
type: object
75757577
SignatureRequestSendWithTemplateRequest:
75767578
description: ''
@@ -7670,6 +7672,8 @@ components:
76707672
description: 'The title you want to assign to the SignatureRequest.'
76717673
type: string
76727674
maxLength: 255
7675+
certification_types:
7676+
$ref: '#/components/schemas/SubCertificationTypes'
76737677
type: object
76747678
SignatureRequestUpdateRequest:
76757679
required:
@@ -7761,6 +7765,19 @@ components:
77617765
type: string
77627766
format: email
77637767
type: object
7768+
SubCertificationTypes:
7769+
description: |-
7770+
Optional certification types to be applied to your Signature Request after completion.
7771+
7772+
After all parties have signed and completed identity verification (if `is_eid` is `true`), your document's hash will be sent to the specified certificate authority for archiving and integrity verification.
7773+
7774+
At this time only a single certification type can be selected per Signature Request.
7775+
properties:
7776+
nom_151:
7777+
description: 'NOM 151, or Normativa 151, is a certificate which verifies the integrity of an electronically signed document in compliance with Mexican regulations.'
7778+
type: boolean
7779+
default: false
7780+
type: object
77647781
SubCustomField:
77657782
description: |-
77667783
When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7292,6 +7292,8 @@ components:
72927292
description: 'When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.'
72937293
type: integer
72947294
nullable: true
7295+
certification_types:
7296+
$ref: '#/components/schemas/SubCertificationTypes'
72957297
type: object
72967298
SignatureRequestSendWithTemplateRequest:
72977299
description: ''
@@ -7380,6 +7382,8 @@ components:
73807382
description: 'The title you want to assign to the SignatureRequest.'
73817383
type: string
73827384
maxLength: 255
7385+
certification_types:
7386+
$ref: '#/components/schemas/SubCertificationTypes'
73837387
type: object
73847388
SignatureRequestUpdateRequest:
73857389
required:
@@ -7471,6 +7475,19 @@ components:
74717475
type: string
74727476
format: email
74737477
type: object
7478+
SubCertificationTypes:
7479+
description: |-
7480+
Optional certification types to be applied to your Signature Request after completion.
7481+
7482+
After all parties have signed and completed identity verification (if `is_eid` is `true`), your document's hash will be sent to the specified certificate authority for archiving and integrity verification.
7483+
7484+
At this time only a single certification type can be selected per Signature Request.
7485+
properties:
7486+
nom_151:
7487+
description: 'NOM 151, or Normativa 151, is a certificate which verifies the integrity of an electronically signed document in compliance with Mexican regulations.'
7488+
type: boolean
7489+
default: false
7490+
type: object
74747491
SubCustomField:
74757492
description: |-
74767493
When used together with merge fields, `custom_fields` allows users to add pre-filled data to their signature requests.

sdks/dotnet/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Class | Method | HTTP request | Description
264264
- [Model.SubBulkSignerList](docs/SubBulkSignerList.md)
265265
- [Model.SubBulkSignerListCustomField](docs/SubBulkSignerListCustomField.md)
266266
- [Model.SubCC](docs/SubCC.md)
267+
- [Model.SubCertificationTypes](docs/SubCertificationTypes.md)
267268
- [Model.SubCustomField](docs/SubCustomField.md)
268269
- [Model.SubEditorOptions](docs/SubEditorOptions.md)
269270
- [Model.SubFieldOptions](docs/SubFieldOptions.md)

sdks/dotnet/docs/SignatureRequestSendRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Name | Type | Description | Notes
3030
**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional]
3131
**UseTextTags** | **bool** | Send with a value of `true` if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or `false`. | [optional] [default to false]
3232
**ExpiresAt** | **int?** | When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional]
33+
**CertificationTypes** | [**SubCertificationTypes**](SubCertificationTypes.md) | | [optional]
3334

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

sdks/dotnet/docs/SignatureRequestSendWithTemplateRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
2121
**Subject** | **string** | The subject in the email that will be sent to the signers. | [optional]
2222
**TestMode** | **bool** | Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. | [optional] [default to false]
2323
**Title** | **string** | The title you want to assign to the SignatureRequest. | [optional]
24+
**CertificationTypes** | [**SubCertificationTypes**](SubCertificationTypes.md) | | [optional]
2425

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Dropbox.Sign.Model.SubCertificationTypes
2+
Optional certification types to be applied to your Signature Request after completion. After all parties have signed and completed identity verification (if `is_eid` is `true`), your document's hash will be sent to the specified certificate authority for archiving and integrity verification. At this time only a single certification type can be selected per Signature Request.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Nom151** | **bool** | NOM 151, or Normativa 151, is a certificate which verifies the integrity of an electronically signed document in compliance with Mexican regulations. | [optional] [default to false]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendRequest.cs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ protected SignatureRequestSendRequest() { }
6767
/// <param name="title">The title you want to assign to the SignatureRequest..</param>
6868
/// <param name="useTextTags">Send with a value of &#x60;true&#x60; if you wish to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document. Defaults to disabled, or &#x60;false&#x60;. (default to false).</param>
6969
/// <param name="expiresAt">When the signature request will expire. Unsigned signatures will be moved to the expired status, and no longer signable. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details..</param>
70-
public SignatureRequestSendRequest(List<System.IO.Stream> files = default(List<System.IO.Stream>), List<string> fileUrls = default(List<string>), List<SubSignatureRequestSigner> signers = default(List<SubSignatureRequestSigner>), List<SubSignatureRequestGroupedSigners> groupedSigners = default(List<SubSignatureRequestGroupedSigners>), bool allowDecline = false, bool allowReassign = false, List<SubAttachment> attachments = default(List<SubAttachment>), List<string> ccEmailAddresses = default(List<string>), string clientId = default(string), List<SubCustomField> customFields = default(List<SubCustomField>), SubFieldOptions fieldOptions = default(SubFieldOptions), List<SubFormFieldGroup> formFieldGroups = default(List<SubFormFieldGroup>), List<SubFormFieldRule> formFieldRules = default(List<SubFormFieldRule>), List<SubFormFieldsPerDocumentBase> formFieldsPerDocument = default(List<SubFormFieldsPerDocumentBase>), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary<string, Object> metadata = default(Dictionary<string, Object>), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?))
70+
/// <param name="certificationTypes">certificationTypes.</param>
71+
public SignatureRequestSendRequest(List<System.IO.Stream> files = default(List<System.IO.Stream>), List<string> fileUrls = default(List<string>), List<SubSignatureRequestSigner> signers = default(List<SubSignatureRequestSigner>), List<SubSignatureRequestGroupedSigners> groupedSigners = default(List<SubSignatureRequestGroupedSigners>), bool allowDecline = false, bool allowReassign = false, List<SubAttachment> attachments = default(List<SubAttachment>), List<string> ccEmailAddresses = default(List<string>), string clientId = default(string), List<SubCustomField> customFields = default(List<SubCustomField>), SubFieldOptions fieldOptions = default(SubFieldOptions), List<SubFormFieldGroup> formFieldGroups = default(List<SubFormFieldGroup>), List<SubFormFieldRule> formFieldRules = default(List<SubFormFieldRule>), List<SubFormFieldsPerDocumentBase> formFieldsPerDocument = default(List<SubFormFieldsPerDocumentBase>), bool hideTextTags = false, bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary<string, Object> metadata = default(Dictionary<string, Object>), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), bool useTextTags = false, int? expiresAt = default(int?), SubCertificationTypes certificationTypes = default(SubCertificationTypes))
7172
{
7273

7374
this.Files = files;
@@ -96,6 +97,7 @@ protected SignatureRequestSendRequest() { }
9697
this.Title = title;
9798
this.UseTextTags = useTextTags;
9899
this.ExpiresAt = expiresAt;
100+
this.CertificationTypes = certificationTypes;
99101
}
100102

101103
/// <summary>
@@ -295,6 +297,12 @@ public static SignatureRequestSendRequest Init(string jsonData)
295297
[DataMember(Name = "expires_at", EmitDefaultValue = true)]
296298
public int? ExpiresAt { get; set; }
297299

300+
/// <summary>
301+
/// Gets or Sets CertificationTypes
302+
/// </summary>
303+
[DataMember(Name = "certification_types", EmitDefaultValue = true)]
304+
public SubCertificationTypes CertificationTypes { get; set; }
305+
298306
/// <summary>
299307
/// Returns the string presentation of the object
300308
/// </summary>
@@ -329,6 +337,7 @@ public override string ToString()
329337
sb.Append(" Title: ").Append(Title).Append("\n");
330338
sb.Append(" UseTextTags: ").Append(UseTextTags).Append("\n");
331339
sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n");
340+
sb.Append(" CertificationTypes: ").Append(CertificationTypes).Append("\n");
332341
sb.Append("}\n");
333342
return sb.ToString();
334343
}
@@ -497,6 +506,11 @@ public bool Equals(SignatureRequestSendRequest input)
497506
this.ExpiresAt == input.ExpiresAt ||
498507
(this.ExpiresAt != null &&
499508
this.ExpiresAt.Equals(input.ExpiresAt))
509+
) &&
510+
(
511+
this.CertificationTypes == input.CertificationTypes ||
512+
(this.CertificationTypes != null &&
513+
this.CertificationTypes.Equals(input.CertificationTypes))
500514
);
501515
}
502516

@@ -592,6 +606,10 @@ public override int GetHashCode()
592606
{
593607
hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode();
594608
}
609+
if (this.CertificationTypes != null)
610+
{
611+
hashCode = (hashCode * 59) + this.CertificationTypes.GetHashCode();
612+
}
595613
return hashCode;
596614
}
597615
}
@@ -755,6 +773,12 @@ public List<OpenApiType> GetOpenApiTypes()
755773
Type = "int?",
756774
Value = ExpiresAt,
757775
});
776+
types.Add(new OpenApiType(){
777+
Name = "certification_types",
778+
Property = "CertificationTypes",
779+
Type = "SubCertificationTypes",
780+
Value = CertificationTypes,
781+
});
758782

759783
return types;
760784
}

sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSendWithTemplateRequest.cs

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ protected SignatureRequestSendWithTemplateRequest() { }
5858
/// <param name="subject">The subject in the email that will be sent to the signers..</param>
5959
/// <param name="testMode">Whether this is a test, the signature request will not be legally binding if set to &#x60;true&#x60;. Defaults to &#x60;false&#x60;. (default to false).</param>
6060
/// <param name="title">The title you want to assign to the SignatureRequest..</param>
61-
public SignatureRequestSendWithTemplateRequest(List<string> templateIds = default(List<string>), bool allowDecline = false, List<SubCC> ccs = default(List<SubCC>), string clientId = default(string), List<SubCustomField> customFields = default(List<SubCustomField>), List<System.IO.Stream> files = default(List<System.IO.Stream>), List<string> fileUrls = default(List<string>), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary<string, Object> metadata = default(Dictionary<string, Object>), List<SubSignatureRequestTemplateSigner> signers = default(List<SubSignatureRequestTemplateSigner>), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string))
61+
/// <param name="certificationTypes">certificationTypes.</param>
62+
public SignatureRequestSendWithTemplateRequest(List<string> templateIds = default(List<string>), bool allowDecline = false, List<SubCC> ccs = default(List<SubCC>), string clientId = default(string), List<SubCustomField> customFields = default(List<SubCustomField>), List<System.IO.Stream> files = default(List<System.IO.Stream>), List<string> fileUrls = default(List<string>), bool isQualifiedSignature = false, bool isEid = false, string message = default(string), Dictionary<string, Object> metadata = default(Dictionary<string, Object>), List<SubSignatureRequestTemplateSigner> signers = default(List<SubSignatureRequestTemplateSigner>), SubSigningOptions signingOptions = default(SubSigningOptions), string signingRedirectUrl = default(string), string subject = default(string), bool testMode = false, string title = default(string), SubCertificationTypes certificationTypes = default(SubCertificationTypes))
6263
{
6364

6465
// to ensure "templateIds" is required (not null)
@@ -88,6 +89,7 @@ protected SignatureRequestSendWithTemplateRequest() { }
8889
this.Subject = subject;
8990
this.TestMode = testMode;
9091
this.Title = title;
92+
this.CertificationTypes = certificationTypes;
9193
}
9294

9395
/// <summary>
@@ -225,6 +227,12 @@ public static SignatureRequestSendWithTemplateRequest Init(string jsonData)
225227
[DataMember(Name = "title", EmitDefaultValue = true)]
226228
public string Title { get; set; }
227229

230+
/// <summary>
231+
/// Gets or Sets CertificationTypes
232+
/// </summary>
233+
[DataMember(Name = "certification_types", EmitDefaultValue = true)]
234+
public SubCertificationTypes CertificationTypes { get; set; }
235+
228236
/// <summary>
229237
/// Returns the string presentation of the object
230238
/// </summary>
@@ -250,6 +258,7 @@ public override string ToString()
250258
sb.Append(" Subject: ").Append(Subject).Append("\n");
251259
sb.Append(" TestMode: ").Append(TestMode).Append("\n");
252260
sb.Append(" Title: ").Append(Title).Append("\n");
261+
sb.Append(" CertificationTypes: ").Append(CertificationTypes).Append("\n");
253262
sb.Append("}\n");
254263
return sb.ToString();
255264
}
@@ -372,6 +381,11 @@ public bool Equals(SignatureRequestSendWithTemplateRequest input)
372381
this.Title == input.Title ||
373382
(this.Title != null &&
374383
this.Title.Equals(input.Title))
384+
) &&
385+
(
386+
this.CertificationTypes == input.CertificationTypes ||
387+
(this.CertificationTypes != null &&
388+
this.CertificationTypes.Equals(input.CertificationTypes))
375389
);
376390
}
377391

@@ -440,6 +454,10 @@ public override int GetHashCode()
440454
{
441455
hashCode = (hashCode * 59) + this.Title.GetHashCode();
442456
}
457+
if (this.CertificationTypes != null)
458+
{
459+
hashCode = (hashCode * 59) + this.CertificationTypes.GetHashCode();
460+
}
443461
return hashCode;
444462
}
445463
}
@@ -549,6 +567,12 @@ public List<OpenApiType> GetOpenApiTypes()
549567
Type = "string",
550568
Value = Title,
551569
});
570+
types.Add(new OpenApiType(){
571+
Name = "certification_types",
572+
Property = "CertificationTypes",
573+
Type = "SubCertificationTypes",
574+
Value = CertificationTypes,
575+
});
552576

553577
return types;
554578
}

0 commit comments

Comments
 (0)