Skip to content

Commit 639e90d

Browse files
Add new certification_types parameter, for nom 151 support
1 parent c4554ed commit 639e90d

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
@@ -7045,6 +7045,8 @@ components:
70457045
description: '_t__SignatureRequestSend::EXPIRES_AT'
70467046
type: integer
70477047
nullable: true
7048+
certification_types:
7049+
$ref: '#/components/schemas/SubCertificationTypes'
70487050
type: object
70497051
SignatureRequestSendWithTemplateRequest:
70507052
description: ''
@@ -7126,6 +7128,8 @@ components:
71267128
description: '_t__SignatureRequestSendWithTemplate::TITLE'
71277129
type: string
71287130
maxLength: 255
7131+
certification_types:
7132+
$ref: '#/components/schemas/SubCertificationTypes'
71297133
type: object
71307134
SignatureRequestUpdateRequest:
71317135
required:
@@ -7203,6 +7207,14 @@ components:
72037207
type: string
72047208
format: email
72057209
type: object
7210+
SubCertificationTypes:
7211+
description: '_t__Sub::CertificationTypes::DESCRIPTION'
7212+
properties:
7213+
nom_151:
7214+
description: '_t__Sub::CertificationTypes::NOM_151'
7215+
type: boolean
7216+
default: false
7217+
type: object
72067218
SubCustomField:
72077219
description: '_t__Sub::CustomField::DESCRIPTION'
72087220
required:

openapi-sdk.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7346,6 +7346,8 @@ components:
73467346
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.'
73477347
type: integer
73487348
nullable: true
7349+
certification_types:
7350+
$ref: '#/components/schemas/SubCertificationTypes'
73497351
type: object
73507352
SignatureRequestSendWithTemplateRequest:
73517353
description: ''
@@ -7445,6 +7447,8 @@ components:
74457447
description: 'The title you want to assign to the SignatureRequest.'
74467448
type: string
74477449
maxLength: 255
7450+
certification_types:
7451+
$ref: '#/components/schemas/SubCertificationTypes'
74487452
type: object
74497453
SignatureRequestUpdateRequest:
74507454
required:
@@ -7536,6 +7540,19 @@ components:
75367540
type: string
75377541
format: email
75387542
type: object
7543+
SubCertificationTypes:
7544+
description: |-
7545+
Optional certification types to be applied to your Signature Request after completion.
7546+
7547+
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.
7548+
7549+
At this time only a single certification type can be selected per Signature Request.
7550+
properties:
7551+
nom_151:
7552+
description: 'NOM 151, or Normativa 151, is a certificate which verifies the integrity of an electronically signed document in compliance with Mexican regulations.'
7553+
type: boolean
7554+
default: false
7555+
type: object
75397556
SubCustomField:
75407557
description: |-
75417558
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
@@ -7200,6 +7200,8 @@ components:
72007200
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.'
72017201
type: integer
72027202
nullable: true
7203+
certification_types:
7204+
$ref: '#/components/schemas/SubCertificationTypes'
72037205
type: object
72047206
SignatureRequestSendWithTemplateRequest:
72057207
description: ''
@@ -7288,6 +7290,8 @@ components:
72887290
description: 'The title you want to assign to the SignatureRequest.'
72897291
type: string
72907292
maxLength: 255
7293+
certification_types:
7294+
$ref: '#/components/schemas/SubCertificationTypes'
72917295
type: object
72927296
SignatureRequestUpdateRequest:
72937297
required:
@@ -7379,6 +7383,19 @@ components:
73797383
type: string
73807384
format: email
73817385
type: object
7386+
SubCertificationTypes:
7387+
description: |-
7388+
Optional certification types to be applied to your Signature Request after completion.
7389+
7390+
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.
7391+
7392+
At this time only a single certification type can be selected per Signature Request.
7393+
properties:
7394+
nom_151:
7395+
description: 'NOM 151, or Normativa 151, is a certificate which verifies the integrity of an electronically signed document in compliance with Mexican regulations.'
7396+
type: boolean
7397+
default: false
7398+
type: object
73827399
SubCustomField:
73837400
description: |-
73847401
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
@@ -262,6 +262,7 @@ Class | Method | HTTP request | Description
262262
- [Model.SubBulkSignerList](docs/SubBulkSignerList.md)
263263
- [Model.SubBulkSignerListCustomField](docs/SubBulkSignerListCustomField.md)
264264
- [Model.SubCC](docs/SubCC.md)
265+
- [Model.SubCertificationTypes](docs/SubCertificationTypes.md)
265266
- [Model.SubCustomField](docs/SubCustomField.md)
266267
- [Model.SubEditorOptions](docs/SubEditorOptions.md)
267268
- [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)