From 2270d572142043040ca0262b582b28f04525abe1 Mon Sep 17 00:00:00 2001 From: Juan Treminio <50673996+jtreminio-dropbox@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:06:43 -0600 Subject: [PATCH] Release 1.8.0 (#17) --- README.md | 2 +- VERSION | 2 +- ...BulkSendJobGetResponseSignatureRequests.md | 2 +- docs/FaxResponse.md | 2 +- docs/FaxResponseTransmission.md | 2 +- docs/SignatureRequestResponse.md | 2 +- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- docs/TemplateResponse.md | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 48 +++-- .../Model/SignatureRequestGetTests.cs | 69 +++++++ src/Dropbox.Sign/Client/Configuration.cs | 6 +- src/Dropbox.Sign/Dropbox.Sign.csproj | 2 +- ...BulkSendJobGetResponseSignatureRequests.cs | 38 ++-- src/Dropbox.Sign/Model/FaxResponse.cs | 182 ++++++++++-------- .../Model/FaxResponseTransmission.cs | 33 +--- .../Model/SignatureRequestResponse.cs | 38 ++-- ...gnatureRequestResponseDataValueInitials.cs | 28 ++- ...natureRequestResponseDataValueSignature.cs | 28 ++- src/Dropbox.Sign/Model/TemplateResponse.cs | 11 +- test_fixtures/BulkSendJobGetResponse.json | 9 + test_fixtures/FaxGetResponse.json | 10 +- test_fixtures/FaxListResponse.json | 10 +- ...BulkCreateEmbeddedWithTemplateRequest.json | 8 +- ...ureRequestBulkSendWithTemplateRequest.json | 8 +- ...SignatureRequestCreateEmbeddedRequest.json | 8 +- ...uestCreateEmbeddedWithTemplateRequest.json | 8 +- .../SignatureRequestGetResponse.json | 12 +- .../SignatureRequestListResponse.json | 10 +- .../SignatureRequestSendRequest.json | 6 +- ...gnatureRequestSendWithTemplateRequest.json | 8 +- .../TemplateCreateEmbeddedDraftRequest.json | 5 + test_fixtures/TemplateCreateRequest.json | 5 + test_fixtures/TemplateGetResponse.json | 10 +- test_fixtures/TemplateListResponse.json | 10 +- .../UnclaimedDraftCreateEmbeddedRequest.json | 5 + ...raftCreateEmbeddedWithTemplateRequest.json | 5 + .../UnclaimedDraftCreateRequest.json | 5 + 39 files changed, 442 insertions(+), 203 deletions(-) create mode 100644 src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs diff --git a/README.md b/README.md index 4991dc4..f792b19 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ directory that corresponds to the file you want updated. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- SDK version: 1.7.0 +- SDK version: 1.8.0 - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen diff --git a/VERSION b/VERSION index bd8bf88..27f9cd3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.0 +1.8.0 diff --git a/docs/BulkSendJobGetResponseSignatureRequests.md b/docs/BulkSendJobGetResponseSignatureRequests.md index 779fdaf..5ba8961 100644 --- a/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/docs/BulkSendJobGetResponseSignatureRequests.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Object** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The id of the BulkSendJob. | [optional] +**TestMode** | **bool** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int?** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The id of the BulkSendJob. | [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) diff --git a/docs/FaxResponse.md b/docs/FaxResponse.md index 27a0614..0416057 100644 --- a/docs/FaxResponse.md +++ b/docs/FaxResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**FaxId** | **string** | Fax ID | **Title** | **string** | Fax Title | **OriginalTitle** | **string** | Fax Original Title | **Subject** | **string** | Fax Subject | **Message** | **string** | Fax Message | **Metadata** | **Dictionary<string, Object>** | Fax Metadata | **CreatedAt** | **int** | Fax Created At Timestamp | **Sender** | **string** | Fax Sender Email | **Transmissions** | [**List<FaxResponseTransmission>**](FaxResponseTransmission.md) | Fax Transmissions List | **FilesUrl** | **string** | Fax Files URL | +**FaxId** | **string** | Fax ID | **Title** | **string** | Fax Title | **OriginalTitle** | **string** | Fax Original Title | **Metadata** | **Dictionary<string, Object>** | Fax Metadata | **CreatedAt** | **int** | Fax Created At Timestamp | **Sender** | **string** | Fax Sender Email | **FilesUrl** | **string** | Fax Files URL | **Transmissions** | [**List<FaxResponseTransmission>**](FaxResponseTransmission.md) | Fax Transmissions List | **Subject** | **string** | Fax Subject | [optional] **Message** | **string** | Fax Message | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [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) diff --git a/docs/FaxResponseTransmission.md b/docs/FaxResponseTransmission.md index c306b85..623d150 100644 --- a/docs/FaxResponseTransmission.md +++ b/docs/FaxResponseTransmission.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Recipient** | **string** | Fax Transmission Recipient | **Sender** | **string** | Fax Transmission Sender | **StatusCode** | **string** | Fax Transmission Status Code | **SentAt** | **int** | Fax Transmission Sent Timestamp | [optional] +**Recipient** | **string** | Fax Transmission Recipient | **StatusCode** | **string** | Fax Transmission Status Code | **SentAt** | **int** | Fax Transmission Sent Timestamp | [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) diff --git a/docs/SignatureRequestResponse.md b/docs/SignatureRequestResponse.md index a21e1fd..e2b6d0a 100644 --- a/docs/SignatureRequestResponse.md +++ b/docs/SignatureRequestResponse.md @@ -5,7 +5,7 @@ Contains information about a signature request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestMode** | **bool?** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Object** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The ID of the Bulk Send job which sent the signature request, if applicable. | [optional] +**TestMode** | **bool** | Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. | [optional] [default to false]**SignatureRequestId** | **string** | The id of the SignatureRequest. | [optional] **RequesterEmailAddress** | **string** | The email address of the initiator of the SignatureRequest. | [optional] **Title** | **string** | The title the specified Account uses for the SignatureRequest. | [optional] **OriginalTitle** | **string** | Default Label for account. | [optional] **Subject** | **string** | The subject in the email that was initially sent to the signers. | [optional] **Message** | **string** | The custom message in the email that was initially sent to the signers. | [optional] **Metadata** | **Dictionary<string, Object>** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int?** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The ID of the Bulk Send job which sent the signature request, if applicable. | [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) diff --git a/docs/SignatureRequestResponseDataValueInitials.md b/docs/SignatureRequestResponseDataValueInitials.md index fcd9ab1..74ef6e0 100644 --- a/docs/SignatureRequestResponseDataValueInitials.md +++ b/docs/SignatureRequestResponseDataValueInitials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [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) diff --git a/docs/SignatureRequestResponseDataValueSignature.md b/docs/SignatureRequestResponseDataValueSignature.md index 2ee12dc..8e921bf 100644 --- a/docs/SignatureRequestResponseDataValueSignature.md +++ b/docs/SignatureRequestResponseDataValueSignature.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [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) diff --git a/docs/TemplateResponse.md b/docs/TemplateResponse.md index ded2dee..e801ef1 100644 --- a/docs/TemplateResponse.md +++ b/docs/TemplateResponse.md @@ -5,7 +5,7 @@ Contains information about the templates you and your team have created. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TemplateId** | **string** | The id of the Template. | [optional] **Title** | **string** | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **Message** | **string** | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **UpdatedAt** | **int** | Time the template was last updated. | [optional] **IsEmbedded** | **bool?** | `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template. | [optional] **IsCreator** | **bool** | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | [optional] **CanEdit** | **bool** | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | [optional] **IsLocked** | **bool** | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | [optional] **Metadata** | **Object** | The metadata attached to the template. | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] +**TemplateId** | **string** | The id of the Template. | [optional] **Title** | **string** | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **Message** | **string** | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **UpdatedAt** | **int** | Time the template was last updated. | [optional] **IsEmbedded** | **bool?** | `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template. | [optional] **IsCreator** | **bool** | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | [optional] **CanEdit** | **bool** | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | [optional] **IsLocked** | **bool** | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | [optional] **Metadata** | **Dictionary<string, Object>** | The metadata attached to the template. | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [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) diff --git a/openapi-config.yaml b/openapi-config.yaml index b3dd5d6..2cdc7d0 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -6,7 +6,7 @@ additionalProperties: packageCompany: Dropbox Sign API Team packageCopyright: Dropbox 2024 packageDescription: Client library for using the Dropbox Sign API - packageVersion: 1.7.0 + packageVersion: 1.8.0 packageTitle: Dropbox Sign .Net SDK sortModelPropertiesByRequiredFlag: true optionalEmitDefaultValues: true diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index fe81aca..608b57d 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11173,6 +11173,10 @@ components: bulk_send_job_id: description: 'The id of the BulkSendJob.' type: string + metadata: + description: 'The metadata attached to the signature request.' + type: object + additionalProperties: {} x-internal-class: true EmbeddedEditUrlResponseEmbedded: description: 'An embedded template object.' @@ -11217,13 +11221,11 @@ components: - fax_id - title - original_title - - subject - - message - metadata - created_at - sender - - transmissions - files_url + - transmissions properties: fax_id: description: 'Fax ID' @@ -11237,9 +11239,11 @@ components: subject: description: 'Fax Subject' type: string + nullable: true message: description: 'Fax Message' type: string + nullable: true metadata: description: 'Fax Metadata' type: object @@ -11250,14 +11254,18 @@ components: sender: description: 'Fax Sender Email' type: string + files_url: + description: 'Fax Files URL' + type: string + final_copy_uri: + description: 'The path where the completed document can be downloaded' + type: string + nullable: true transmissions: description: 'Fax Transmissions List' type: array items: $ref: '#/components/schemas/FaxResponseTransmission' - files_url: - description: 'Fax Files URL' - type: string type: object x-internal-class: true FaxLineResponseFaxLine: @@ -11280,15 +11288,11 @@ components: FaxResponseTransmission: required: - recipient - - sender - status_code properties: recipient: description: 'Fax Transmission Recipient' type: string - sender: - description: 'Fax Transmission Sender' - type: string status_code: description: 'Fax Transmission Status Code' type: string @@ -11352,13 +11356,13 @@ components: description: 'Whether this is a test signature request. Test requests have no legal value. Defaults to `false`.' type: boolean default: false - nullable: true signature_request_id: description: 'The id of the SignatureRequest.' type: string requester_email_address: description: 'The email address of the initiator of the SignatureRequest.' type: string + nullable: true title: description: 'The title the specified Account uses for the SignatureRequest.' type: string @@ -11376,12 +11380,14 @@ components: metadata: description: 'The metadata attached to the signature request.' type: object + additionalProperties: {} created_at: description: 'Time the signature request was created.' type: integer expires_at: description: 'The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer + nullable: true is_complete: description: 'Whether or not the SignatureRequest has been fully executed by all signers.' type: boolean @@ -11509,6 +11515,7 @@ components: editor: description: 'The name of the Role that is able to edit this field.' type: string + nullable: true type: object discriminator: propertyName: type @@ -11519,13 +11526,12 @@ components: x-base-class: true SignatureRequestResponseCustomFieldCheckbox: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11537,13 +11543,12 @@ components: type: object SignatureRequestResponseCustomFieldText: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11671,6 +11676,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11699,6 +11708,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: @@ -11936,6 +11949,7 @@ components: metadata: description: 'The metadata attached to the template.' type: object + additionalProperties: {} signer_roles: description: 'An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template.' type: array diff --git a/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs b/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs new file mode 100644 index 0000000..70dc098 --- /dev/null +++ b/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using Xunit; + +using Dropbox.Sign.Model; + +namespace Dropbox.Sign.Test.Model +{ + public class SignatureRequestGetTests + { + [Fact] + public void MetadataAsObjectTest() + { + var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); + var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); + + var metadata = responseObj.SignatureRequest.Metadata; + + var metadataStringLegacyValue = getMetadataValueStringLegacy( + metadata, + "metadata_name_1" + ); + + dynamic metadataObjectLegacyValue = getMetadataValueObjectLegacy( + metadata, + "metadata_name_2" + ); + + var metadataStringNewValue = getMetadataValueStringNew( + metadata, + "metadata_name_1" + ); + + dynamic metadataObjectNewValue = getMetadataValueObjectNew( + metadata, + "metadata_name_2" + ); + + string expectedValue1 = "metadata_value_1"; + string expectedValue2 = "metadata_value_2_a"; + + Assert.Equal(expectedValue1, metadataStringLegacyValue); + Assert.Equal(expectedValue2, metadataObjectLegacyValue["metadata_name_2_a"].ToString()); + + Assert.Equal(expectedValue1, metadataStringNewValue); + Assert.Equal(expectedValue2, metadataObjectNewValue["metadata_name_2_a"].ToString()); + } + + private Object getMetadataValueStringLegacy(dynamic metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueObjectLegacy(dynamic metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueStringNew(Dictionary metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueObjectNew(Dictionary metadata, string key) + { + return metadata[key]; + } + } +} diff --git a/src/Dropbox.Sign/Client/Configuration.cs b/src/Dropbox.Sign/Client/Configuration.cs index 1efe46e..60d825f 100644 --- a/src/Dropbox.Sign/Client/Configuration.cs +++ b/src/Dropbox.Sign/Client/Configuration.cs @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.7.0"; + public const string Version = "1.8.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.7.0/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.8.0/csharp"); BasePath = "https://api.hellosign.com/v3"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -567,7 +567,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 3.0.0\n"; - report += " SDK Package Version: 1.7.0\n"; + report += " SDK Package Version: 1.8.0\n"; return report; } diff --git a/src/Dropbox.Sign/Dropbox.Sign.csproj b/src/Dropbox.Sign/Dropbox.Sign.csproj index ac874fa..d3128aa 100644 --- a/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -12,7 +12,7 @@ Client library for using the Dropbox Sign API Dropbox 2024 Dropbox.Sign - 1.7.0 + 1.8.0 bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml https://github.com/hellosign/dropbox-sign-dotnet.git git diff --git a/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index caf9011..5d8db63 100644 --- a/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -66,11 +66,10 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The id of the BulkSendJob.. - public BulkSendJobGetResponseSignatureRequests(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public BulkSendJobGetResponseSignatureRequests(bool testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), int? expiresAt = default(int?), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { - // use default value if no "testMode" provided - this.TestMode = testMode ?? false; + this.TestMode = testMode; this.SignatureRequestId = signatureRequestId; this.RequesterEmailAddress = requesterEmailAddress; this.Title = title; @@ -118,7 +117,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] - public bool? TestMode { get; set; } + public bool TestMode { get; set; } /// /// The id of the SignatureRequest. @@ -167,7 +166,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// Time the signature request was created. @@ -181,7 +180,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] - public int ExpiresAt { get; set; } + public int? ExpiresAt { get; set; } /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -358,8 +357,7 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) return ( this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) + this.TestMode.Equals(input.TestMode) ) && ( this.SignatureRequestId == input.SignatureRequestId || @@ -393,8 +391,9 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.CreatedAt == input.CreatedAt || @@ -402,7 +401,8 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) ) && ( this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ) && ( this.IsComplete == input.IsComplete || @@ -493,10 +493,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.TestMode != null) - { - hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); - } + hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); if (this.SignatureRequestId != null) { hashCode = (hashCode * 59) + this.SignatureRequestId.GetHashCode(); @@ -526,7 +523,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); } hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsComplete.GetHashCode(); hashCode = (hashCode * 59) + this.IsDeclined.GetHashCode(); hashCode = (hashCode * 59) + this.HasError.GetHashCode(); @@ -598,7 +598,7 @@ public List GetOpenApiTypes() { Name = "test_mode", Property = "TestMode", - Type = "bool?", + Type = "bool", Value = TestMode, }); types.Add(new OpenApiType() @@ -647,7 +647,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() @@ -661,7 +661,7 @@ public List GetOpenApiTypes() { Name = "expires_at", Property = "ExpiresAt", - Type = "int", + Type = "int?", Value = ExpiresAt, }); types.Add(new OpenApiType() diff --git a/src/Dropbox.Sign/Model/FaxResponse.cs b/src/Dropbox.Sign/Model/FaxResponse.cs index 60125d8..f0aa5e1 100644 --- a/src/Dropbox.Sign/Model/FaxResponse.cs +++ b/src/Dropbox.Sign/Model/FaxResponse.cs @@ -44,14 +44,15 @@ protected FaxResponse() { } /// Fax ID (required). /// Fax Title (required). /// Fax Original Title (required). - /// Fax Subject (required). - /// Fax Message (required). + /// Fax Subject. + /// Fax Message. /// Fax Metadata (required). /// Fax Created At Timestamp (required). /// Fax Sender Email (required). - /// Fax Transmissions List (required). /// Fax Files URL (required). - public FaxResponse(string faxId = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), string sender = default(string), List transmissions = default(List), string filesUrl = default(string)) + /// The path where the completed document can be downloaded. + /// Fax Transmissions List (required). + public FaxResponse(string faxId = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), string sender = default(string), string filesUrl = default(string), string finalCopyUri = default(string), List transmissions = default(List)) { // to ensure "faxId" is required (not null) @@ -72,18 +73,6 @@ protected FaxResponse() { } throw new ArgumentNullException("originalTitle is a required property for FaxResponse and cannot be null"); } this.OriginalTitle = originalTitle; - // to ensure "subject" is required (not null) - if (subject == null) - { - throw new ArgumentNullException("subject is a required property for FaxResponse and cannot be null"); - } - this.Subject = subject; - // to ensure "message" is required (not null) - if (message == null) - { - throw new ArgumentNullException("message is a required property for FaxResponse and cannot be null"); - } - this.Message = message; // to ensure "metadata" is required (not null) if (metadata == null) { @@ -97,18 +86,21 @@ protected FaxResponse() { } throw new ArgumentNullException("sender is a required property for FaxResponse and cannot be null"); } this.Sender = sender; - // to ensure "transmissions" is required (not null) - if (transmissions == null) - { - throw new ArgumentNullException("transmissions is a required property for FaxResponse and cannot be null"); - } - this.Transmissions = transmissions; // to ensure "filesUrl" is required (not null) if (filesUrl == null) { throw new ArgumentNullException("filesUrl is a required property for FaxResponse and cannot be null"); } this.FilesUrl = filesUrl; + // to ensure "transmissions" is required (not null) + if (transmissions == null) + { + throw new ArgumentNullException("transmissions is a required property for FaxResponse and cannot be null"); + } + this.Transmissions = transmissions; + this.Subject = subject; + this.Message = message; + this.FinalCopyUri = finalCopyUri; } /// @@ -148,20 +140,6 @@ public static FaxResponse Init(string jsonData) [DataMember(Name = "original_title", IsRequired = true, EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// - /// Fax Subject - /// - /// Fax Subject - [DataMember(Name = "subject", IsRequired = true, EmitDefaultValue = true)] - public string Subject { get; set; } - - /// - /// Fax Message - /// - /// Fax Message - [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] - public string Message { get; set; } - /// /// Fax Metadata /// @@ -183,6 +161,13 @@ public static FaxResponse Init(string jsonData) [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] public string Sender { get; set; } + /// + /// Fax Files URL + /// + /// Fax Files URL + [DataMember(Name = "files_url", IsRequired = true, EmitDefaultValue = true)] + public string FilesUrl { get; set; } + /// /// Fax Transmissions List /// @@ -191,11 +176,25 @@ public static FaxResponse Init(string jsonData) public List Transmissions { get; set; } /// - /// Fax Files URL + /// Fax Subject /// - /// Fax Files URL - [DataMember(Name = "files_url", IsRequired = true, EmitDefaultValue = true)] - public string FilesUrl { get; set; } + /// Fax Subject + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Fax Message + /// + /// Fax Message + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// The path where the completed document can be downloaded + /// + /// The path where the completed document can be downloaded + [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] + public string FinalCopyUri { get; set; } /// /// Returns the string presentation of the object @@ -208,13 +207,14 @@ public override string ToString() sb.Append(" FaxId: ").Append(FaxId).Append("\n"); sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" OriginalTitle: ").Append(OriginalTitle).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Metadata: ").Append(Metadata).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Sender: ").Append(Sender).Append("\n"); - sb.Append(" Transmissions: ").Append(Transmissions).Append("\n"); sb.Append(" FilesUrl: ").Append(FilesUrl).Append("\n"); + sb.Append(" Transmissions: ").Append(Transmissions).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" FinalCopyUri: ").Append(FinalCopyUri).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -265,16 +265,6 @@ public bool Equals(FaxResponse input) (this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle)) ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && ( this.Metadata == input.Metadata || this.Metadata != null && @@ -290,6 +280,11 @@ public bool Equals(FaxResponse input) (this.Sender != null && this.Sender.Equals(input.Sender)) ) && + ( + this.FilesUrl == input.FilesUrl || + (this.FilesUrl != null && + this.FilesUrl.Equals(input.FilesUrl)) + ) && ( this.Transmissions == input.Transmissions || this.Transmissions != null && @@ -297,9 +292,19 @@ public bool Equals(FaxResponse input) this.Transmissions.SequenceEqual(input.Transmissions) ) && ( - this.FilesUrl == input.FilesUrl || - (this.FilesUrl != null && - this.FilesUrl.Equals(input.FilesUrl)) + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.FinalCopyUri == input.FinalCopyUri || + (this.FinalCopyUri != null && + this.FinalCopyUri.Equals(input.FinalCopyUri)) ); } @@ -324,14 +329,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.OriginalTitle.GetHashCode(); } - if (this.Subject != null) - { - hashCode = (hashCode * 59) + this.Subject.GetHashCode(); - } - if (this.Message != null) - { - hashCode = (hashCode * 59) + this.Message.GetHashCode(); - } if (this.Metadata != null) { hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); @@ -341,13 +338,25 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Sender.GetHashCode(); } + if (this.FilesUrl != null) + { + hashCode = (hashCode * 59) + this.FilesUrl.GetHashCode(); + } if (this.Transmissions != null) { hashCode = (hashCode * 59) + this.Transmissions.GetHashCode(); } - if (this.FilesUrl != null) + if (this.Subject != null) { - hashCode = (hashCode * 59) + this.FilesUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.FinalCopyUri != null) + { + hashCode = (hashCode * 59) + this.FinalCopyUri.GetHashCode(); } return hashCode; } @@ -387,20 +396,6 @@ public List GetOpenApiTypes() Value = OriginalTitle, }); types.Add(new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType() { Name = "metadata", Property = "Metadata", @@ -422,6 +417,13 @@ public List GetOpenApiTypes() Value = Sender, }); types.Add(new OpenApiType() + { + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + }); + types.Add(new OpenApiType() { Name = "transmissions", Property = "Transmissions", @@ -430,10 +432,24 @@ public List GetOpenApiTypes() }); types.Add(new OpenApiType() { - Name = "files_url", - Property = "FilesUrl", + Name = "subject", + Property = "Subject", Type = "string", - Value = FilesUrl, + Value = Subject, + }); + types.Add(new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType() + { + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, }); return types; diff --git a/src/Dropbox.Sign/Model/FaxResponseTransmission.cs b/src/Dropbox.Sign/Model/FaxResponseTransmission.cs index 0e37071..917704a 100644 --- a/src/Dropbox.Sign/Model/FaxResponseTransmission.cs +++ b/src/Dropbox.Sign/Model/FaxResponseTransmission.cs @@ -105,10 +105,9 @@ protected FaxResponseTransmission() { } /// Initializes a new instance of the class. /// /// Fax Transmission Recipient (required). - /// Fax Transmission Sender (required). /// Fax Transmission Status Code (required). /// Fax Transmission Sent Timestamp. - public FaxResponseTransmission(string recipient = default(string), string sender = default(string), StatusCodeEnum statusCode = default(StatusCodeEnum), int sentAt = default(int)) + public FaxResponseTransmission(string recipient = default(string), StatusCodeEnum statusCode = default(StatusCodeEnum), int sentAt = default(int)) { // to ensure "recipient" is required (not null) @@ -117,12 +116,6 @@ protected FaxResponseTransmission() { } throw new ArgumentNullException("recipient is a required property for FaxResponseTransmission and cannot be null"); } this.Recipient = recipient; - // to ensure "sender" is required (not null) - if (sender == null) - { - throw new ArgumentNullException("sender is a required property for FaxResponseTransmission and cannot be null"); - } - this.Sender = sender; this.StatusCode = statusCode; this.SentAt = sentAt; } @@ -150,13 +143,6 @@ public static FaxResponseTransmission Init(string jsonData) [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] public string Recipient { get; set; } - /// - /// Fax Transmission Sender - /// - /// Fax Transmission Sender - [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] - public string Sender { get; set; } - /// /// Fax Transmission Sent Timestamp /// @@ -173,7 +159,6 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class FaxResponseTransmission {\n"); sb.Append(" Recipient: ").Append(Recipient).Append("\n"); - sb.Append(" Sender: ").Append(Sender).Append("\n"); sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); sb.Append(" SentAt: ").Append(SentAt).Append("\n"); sb.Append("}\n"); @@ -216,11 +201,6 @@ public bool Equals(FaxResponseTransmission input) (this.Recipient != null && this.Recipient.Equals(input.Recipient)) ) && - ( - this.Sender == input.Sender || - (this.Sender != null && - this.Sender.Equals(input.Sender)) - ) && ( this.StatusCode == input.StatusCode || this.StatusCode.Equals(input.StatusCode) @@ -244,10 +224,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); } - if (this.Sender != null) - { - hashCode = (hashCode * 59) + this.Sender.GetHashCode(); - } hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); hashCode = (hashCode * 59) + this.SentAt.GetHashCode(); return hashCode; @@ -274,13 +250,6 @@ public List GetOpenApiTypes() Value = Recipient, }); types.Add(new OpenApiType() - { - Name = "sender", - Property = "Sender", - Type = "string", - Value = Sender, - }); - types.Add(new OpenApiType() { Name = "status_code", Property = "StatusCode", diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index 273a23e..514181b 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -66,11 +66,10 @@ protected SignatureRequestResponse() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The ID of the Bulk Send job which sent the signature request, if applicable.. - public SignatureRequestResponse(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public SignatureRequestResponse(bool testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), int? expiresAt = default(int?), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { - // use default value if no "testMode" provided - this.TestMode = testMode ?? false; + this.TestMode = testMode; this.SignatureRequestId = signatureRequestId; this.RequesterEmailAddress = requesterEmailAddress; this.Title = title; @@ -118,7 +117,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] - public bool? TestMode { get; set; } + public bool TestMode { get; set; } /// /// The id of the SignatureRequest. @@ -167,7 +166,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// Time the signature request was created. @@ -181,7 +180,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] - public int ExpiresAt { get; set; } + public int? ExpiresAt { get; set; } /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -358,8 +357,7 @@ public bool Equals(SignatureRequestResponse input) return ( this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) + this.TestMode.Equals(input.TestMode) ) && ( this.SignatureRequestId == input.SignatureRequestId || @@ -393,8 +391,9 @@ public bool Equals(SignatureRequestResponse input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.CreatedAt == input.CreatedAt || @@ -402,7 +401,8 @@ public bool Equals(SignatureRequestResponse input) ) && ( this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ) && ( this.IsComplete == input.IsComplete || @@ -493,10 +493,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.TestMode != null) - { - hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); - } + hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); if (this.SignatureRequestId != null) { hashCode = (hashCode * 59) + this.SignatureRequestId.GetHashCode(); @@ -526,7 +523,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); } hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsComplete.GetHashCode(); hashCode = (hashCode * 59) + this.IsDeclined.GetHashCode(); hashCode = (hashCode * 59) + this.HasError.GetHashCode(); @@ -598,7 +598,7 @@ public List GetOpenApiTypes() { Name = "test_mode", Property = "TestMode", - Type = "bool?", + Type = "bool", Value = TestMode, }); types.Add(new OpenApiType() @@ -647,7 +647,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() @@ -661,7 +661,7 @@ public List GetOpenApiTypes() { Name = "expires_at", Property = "ExpiresAt", - Type = "int", + Type = "int?", Value = ExpiresAt, }); types.Add(new OpenApiType() diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 28c5973..023ee3d 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueInitials() { } /// /// An input field for initials (default to "initials"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueInitials() { } // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index c5c2d53..efe2bb2 100644 --- a/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueSignature() { } /// /// A signature input field (default to "signature"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueSignature() { } // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/src/Dropbox.Sign/Model/TemplateResponse.cs b/src/Dropbox.Sign/Model/TemplateResponse.cs index f0124cc..a298922 100644 --- a/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -57,7 +57,7 @@ protected TemplateResponse() { } /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// An array of the Accounts that can use this Template.. /// Signer attachments.. - public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool isCreator = default(bool), bool canEdit = default(bool), bool isLocked = default(bool), Object metadata = default(Object), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List), List attachments = default(List)) + public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool isCreator = default(bool), bool canEdit = default(bool), bool isLocked = default(bool), Dictionary metadata = default(Dictionary), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List), List attachments = default(List)) { this.TemplateId = templateId; @@ -155,7 +155,7 @@ public static TemplateResponse Init(string jsonData) /// /// The metadata attached to the template. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -305,8 +305,9 @@ public bool Equals(TemplateResponse input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.SignerRoles == input.SignerRoles || @@ -489,7 +490,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() diff --git a/test_fixtures/BulkSendJobGetResponse.json b/test_fixtures/BulkSendJobGetResponse.json index e3e3bb2..e428a30 100644 --- a/test_fixtures/BulkSendJobGetResponse.json +++ b/test_fixtures/BulkSendJobGetResponse.json @@ -24,6 +24,15 @@ "custom_fields": [], "created_at": 0, "expires_at": 0, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "response_data": [ { "api_id": "80c678_1", diff --git a/test_fixtures/FaxGetResponse.json b/test_fixtures/FaxGetResponse.json index 5892719..2eda936 100644 --- a/test_fixtures/FaxGetResponse.json +++ b/test_fixtures/FaxGetResponse.json @@ -6,7 +6,15 @@ "original_title": "example original title", "subject": "example subject", "message": "example message", - "metadata": [], + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1726774555, "sender": "me@dropboxsign.com", "transmissions": [ diff --git a/test_fixtures/FaxListResponse.json b/test_fixtures/FaxListResponse.json index bfa69cd..a9ebf63 100644 --- a/test_fixtures/FaxListResponse.json +++ b/test_fixtures/FaxListResponse.json @@ -13,7 +13,15 @@ "original_title": "example original title", "subject": "example subject", "message": "example message", - "metadata": [], + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1726774555, "sender": "me@dropboxsign.com", "transmissions": [ diff --git a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json index 01b4d40..c155d43 100644 --- a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json @@ -18,7 +18,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signer_list": [ { diff --git a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json index 68fe824..e08221f 100644 --- a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json @@ -17,7 +17,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signer_list": [ { diff --git a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json index cb5d374..16e8037 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json @@ -90,7 +90,13 @@ "hide_text_tags": false, "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "populate_auto_fill_fields": false, "signers": [ diff --git a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json index 3f0047e..a9597ea 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json @@ -21,7 +21,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "populate_auto_fill_fields": false, "signers": [ diff --git a/test_fixtures/SignatureRequestGetResponse.json b/test_fixtures/SignatureRequestGetResponse.json index e9d9a37..f0fda3c 100644 --- a/test_fixtures/SignatureRequestGetResponse.json +++ b/test_fixtures/SignatureRequestGetResponse.json @@ -6,7 +6,15 @@ "original_title": "The NDA we talked about", "subject": "The NDA we talked about", "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1570471067, "is_complete": false, "is_declined": false, @@ -91,6 +99,7 @@ "required": true, "api_id": "initial__1", "value": "YM", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" }, { @@ -107,6 +116,7 @@ "required": true, "api_id": "signature__1", "value": "John Doe", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" } ], diff --git a/test_fixtures/SignatureRequestListResponse.json b/test_fixtures/SignatureRequestListResponse.json index f6560be..fd70a82 100644 --- a/test_fixtures/SignatureRequestListResponse.json +++ b/test_fixtures/SignatureRequestListResponse.json @@ -13,7 +13,15 @@ "original_title": "FHA", "subject": "FHA", "message": "Let me know if you two have any questions.", - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1570471067, "expires_at": 0, "is_complete": false, diff --git a/test_fixtures/SignatureRequestSendRequest.json b/test_fixtures/SignatureRequestSendRequest.json index 6a33979..98d12db 100644 --- a/test_fixtures/SignatureRequestSendRequest.json +++ b/test_fixtures/SignatureRequestSendRequest.json @@ -192,6 +192,11 @@ "is_eid": false, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, @@ -472,4 +477,3 @@ "use_text_tags": true } } - diff --git a/test_fixtures/SignatureRequestSendWithTemplateRequest.json b/test_fixtures/SignatureRequestSendWithTemplateRequest.json index 7b8ce3d..4d1cc86 100644 --- a/test_fixtures/SignatureRequestSendWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestSendWithTemplateRequest.json @@ -20,7 +20,13 @@ "is_eid": false, "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signers": [ { diff --git a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json index e31c5da..b293945 100644 --- a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +++ b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json @@ -96,6 +96,11 @@ ], "message": "For your approval", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/TemplateCreateRequest.json b/test_fixtures/TemplateCreateRequest.json index e31c5da..b293945 100644 --- a/test_fixtures/TemplateCreateRequest.json +++ b/test_fixtures/TemplateCreateRequest.json @@ -96,6 +96,11 @@ ], "message": "For your approval", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/TemplateGetResponse.json b/test_fixtures/TemplateGetResponse.json index b025913..0961c0e 100644 --- a/test_fixtures/TemplateGetResponse.json +++ b/test_fixtures/TemplateGetResponse.json @@ -9,7 +9,15 @@ "is_creator": true, "is_embedded": false, "is_locked": false, - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "signer_roles": [ { "name": "Outside Vendor", diff --git a/test_fixtures/TemplateListResponse.json b/test_fixtures/TemplateListResponse.json index caa5e6d..a4a144c 100644 --- a/test_fixtures/TemplateListResponse.json +++ b/test_fixtures/TemplateListResponse.json @@ -16,7 +16,15 @@ "is_creator": true, "is_embedded": false, "is_locked": false, - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "signer_roles": [ { "name": "Client", diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json index d72f562..e18890b 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json @@ -99,6 +99,11 @@ "is_for_embedded_signing": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json index 4a1aafb..7c72649 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json @@ -33,6 +33,11 @@ "is_for_embedded_signing": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/UnclaimedDraftCreateRequest.json b/test_fixtures/UnclaimedDraftCreateRequest.json index 817ded5..b74d377 100644 --- a/test_fixtures/UnclaimedDraftCreateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateRequest.json @@ -88,6 +88,11 @@ "hide_text_tags": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" },