diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 5efeee60d..cfbb7f51d 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -9986,6 +9986,7 @@ components: - enabled - enabled_by_default - forced + x-hideOn: sdk type: object x-hideOn: sdk SubTemplateRole: @@ -11682,7 +11683,11 @@ components: type: string nullable: true signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' + description: '_t__SignatureRequestSignerExperience::DESCRIPTION' + allOf: + - + $ref: '#/components/schemas/SignatureRequestSignerExperience' + x-hideOn: sdk type: object x-internal-class: true SignatureRequestResponseAttachment: @@ -12053,8 +12058,10 @@ components: - enabled - enabled_by_default - forced + x-hideOn: sdk type: object x-internal-class: true + x-hideOn: sdk TeamResponse: description: '_t__TeamResponse::DESCRIPTION' properties: @@ -12224,7 +12231,11 @@ components: items: $ref: '#/components/schemas/SignatureRequestResponseAttachment' signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' + description: '_t__SignatureRequestSignerExperience::DESCRIPTION' + allOf: + - + $ref: '#/components/schemas/SignatureRequestSignerExperience' + x-hideOn: sdk type: object x-internal-class: true TemplateResponseAccount: diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index af5928716..b614c06c4 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -12341,8 +12341,6 @@ components: description: 'The ID of the Bulk Send job which sent the signature request, if applicable.' type: string nullable: true - signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' type: object x-internal-class: true SignatureRequestResponseAttachment: @@ -12704,26 +12702,6 @@ components: nullable: true type: object x-internal-class: true - SignatureRequestSignerExperience: - description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' - required: - - form_view - properties: - form_view: - description: |- - Changes the form view setting experienced by the signer. Supported versions are: - - `disabled` - Form view is disabled, and the signer cannot change it - - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - type: string - enum: - - disabled - - enabled - - enabled_by_default - - forced - type: object - x-internal-class: true TeamResponse: description: 'Contains information about your team and its members' properties: @@ -12895,8 +12873,6 @@ components: type: array items: $ref: '#/components/schemas/SignatureRequestResponseAttachment' - signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' type: object x-internal-class: true TemplateResponseAccount: diff --git a/openapi.yaml b/openapi.yaml index b4812b372..17d567386 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -7974,7 +7974,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -8567,7 +8567,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -8661,7 +8661,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -8821,7 +8821,7 @@ components: type: integer nullable: true signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -8979,7 +8979,7 @@ components: type: integer nullable: true signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -9069,7 +9069,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -9163,7 +9163,7 @@ components: type: string maxLength: 255 signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -9335,7 +9335,7 @@ components: type: integer nullable: true signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -9429,7 +9429,7 @@ components: type: string maxLength: 255 signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -10405,6 +10405,7 @@ components: - enabled - enabled_by_default - forced + x-hideOn: sdk type: object x-hideOn: sdk SubTemplateRole: @@ -10719,7 +10720,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -10867,7 +10868,7 @@ components: type: boolean default: false signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -10907,7 +10908,7 @@ components: items: $ref: '#/components/schemas/SubUpdateFormField' signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -11089,7 +11090,7 @@ components: type: integer nullable: true signer_experience: - description: 'TBD Form View' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' allOf: - $ref: '#/components/schemas/SubSignerExperience' @@ -12301,7 +12302,11 @@ components: type: string nullable: true signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' + allOf: + - + $ref: '#/components/schemas/SignatureRequestSignerExperience' + x-hideOn: sdk type: object x-internal-class: true SignatureRequestResponseAttachment: @@ -12681,8 +12686,10 @@ components: - enabled - enabled_by_default - forced + x-hideOn: sdk type: object x-internal-class: true + x-hideOn: sdk TeamResponse: description: 'Contains information about your team and its members' properties: @@ -12855,7 +12862,11 @@ components: items: $ref: '#/components/schemas/SignatureRequestResponseAttachment' signer_experience: - $ref: '#/components/schemas/SignatureRequestSignerExperience' + description: 'Configuration options for modifying the settings of the signer application. Supports changing the form view behavior.' + allOf: + - + $ref: '#/components/schemas/SignatureRequestSignerExperience' + x-hideOn: sdk type: object x-internal-class: true TemplateResponseAccount: diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index e28d59357..c287fe1c8 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -301,7 +301,6 @@ Class | Method | HTTP request | Description - [Model.SignatureRequestResponseSignatures](docs/SignatureRequestResponseSignatures.md) - [Model.SignatureRequestSendRequest](docs/SignatureRequestSendRequest.md) - [Model.SignatureRequestSendWithTemplateRequest](docs/SignatureRequestSendWithTemplateRequest.md) - - [Model.SignatureRequestSignerExperience](docs/SignatureRequestSignerExperience.md) - [Model.SignatureRequestUpdateRequest](docs/SignatureRequestUpdateRequest.md) - [Model.SubAttachment](docs/SubAttachment.md) - [Model.SubBulkSignerList](docs/SubBulkSignerList.md) diff --git a/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md index 4480dcba8..5ba89617f 100644 --- a/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/dotnet/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** | **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] **SignerExperience** | [**SignatureRequestSignerExperience**](SignatureRequestSignerExperience.md) | | [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/sdks/dotnet/docs/SignatureRequestResponse.md b/sdks/dotnet/docs/SignatureRequestResponse.md index 8ed53023d..e2b6d0a31 100644 --- a/sdks/dotnet/docs/SignatureRequestResponse.md +++ b/sdks/dotnet/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** | **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] **SignerExperience** | [**SignatureRequestSignerExperience**](SignatureRequestSignerExperience.md) | | [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/sdks/dotnet/docs/SignatureRequestSignerExperience.md b/sdks/dotnet/docs/SignatureRequestSignerExperience.md deleted file mode 100644 index 9c0e6d76d..000000000 --- a/sdks/dotnet/docs/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,11 +0,0 @@ -# Dropbox.Sign.Model.SignatureRequestSignerExperience -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FormView** | **string** | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | - -[[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/sdks/dotnet/docs/TemplateResponse.md b/sdks/dotnet/docs/TemplateResponse.md index e0897746a..e801ef14b 100644 --- a/sdks/dotnet/docs/TemplateResponse.md +++ b/sdks/dotnet/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** | **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] **SignerExperience** | [**SignatureRequestSignerExperience**](SignatureRequestSignerExperience.md) | | [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/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index 49affd92a..5d8db6306 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -66,8 +66,7 @@ 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.. - /// signerExperience. - 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), SignatureRequestSignerExperience signerExperience = default(SignatureRequestSignerExperience)) + 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)) { this.TestMode = testMode; @@ -95,7 +94,6 @@ protected BulkSendJobGetResponseSignatureRequests() { } this.ResponseData = responseData; this.Signatures = signatures; this.BulkSendJobId = bulkSendJobId; - this.SignerExperience = signerExperience; } /// @@ -289,12 +287,6 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// - /// Gets or Sets SignerExperience - /// - [DataMember(Name = "signer_experience", EmitDefaultValue = true)] - public SignatureRequestSignerExperience SignerExperience { get; set; } - /// /// Returns the string presentation of the object /// @@ -328,7 +320,6 @@ public override string ToString() sb.Append(" ResponseData: ").Append(ResponseData).Append("\n"); sb.Append(" Signatures: ").Append(Signatures).Append("\n"); sb.Append(" BulkSendJobId: ").Append(BulkSendJobId).Append("\n"); - sb.Append(" SignerExperience: ").Append(SignerExperience).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -490,11 +481,6 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) this.BulkSendJobId == input.BulkSendJobId || (this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId)) - ) && - ( - this.SignerExperience == input.SignerExperience || - (this.SignerExperience != null && - this.SignerExperience.Equals(input.SignerExperience)) ); } @@ -592,10 +578,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.BulkSendJobId.GetHashCode(); } - if (this.SignerExperience != null) - { - hashCode = (hashCode * 59) + this.SignerExperience.GetHashCode(); - } return hashCode; } } @@ -787,13 +769,6 @@ public List GetOpenApiTypes() Type = "string", Value = BulkSendJobId, }); - types.Add(new OpenApiType() - { - Name = "signer_experience", - Property = "SignerExperience", - Type = "SignatureRequestSignerExperience", - Value = SignerExperience, - }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index 9550c6f5a..514181b2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -66,8 +66,7 @@ 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.. - /// signerExperience. - 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), SignatureRequestSignerExperience signerExperience = default(SignatureRequestSignerExperience)) + 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)) { this.TestMode = testMode; @@ -95,7 +94,6 @@ protected SignatureRequestResponse() { } this.ResponseData = responseData; this.Signatures = signatures; this.BulkSendJobId = bulkSendJobId; - this.SignerExperience = signerExperience; } /// @@ -289,12 +287,6 @@ public static SignatureRequestResponse Init(string jsonData) [DataMember(Name = "bulk_send_job_id", EmitDefaultValue = true)] public string BulkSendJobId { get; set; } - /// - /// Gets or Sets SignerExperience - /// - [DataMember(Name = "signer_experience", EmitDefaultValue = true)] - public SignatureRequestSignerExperience SignerExperience { get; set; } - /// /// Returns the string presentation of the object /// @@ -328,7 +320,6 @@ public override string ToString() sb.Append(" ResponseData: ").Append(ResponseData).Append("\n"); sb.Append(" Signatures: ").Append(Signatures).Append("\n"); sb.Append(" BulkSendJobId: ").Append(BulkSendJobId).Append("\n"); - sb.Append(" SignerExperience: ").Append(SignerExperience).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -490,11 +481,6 @@ public bool Equals(SignatureRequestResponse input) this.BulkSendJobId == input.BulkSendJobId || (this.BulkSendJobId != null && this.BulkSendJobId.Equals(input.BulkSendJobId)) - ) && - ( - this.SignerExperience == input.SignerExperience || - (this.SignerExperience != null && - this.SignerExperience.Equals(input.SignerExperience)) ); } @@ -592,10 +578,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.BulkSendJobId.GetHashCode(); } - if (this.SignerExperience != null) - { - hashCode = (hashCode * 59) + this.SignerExperience.GetHashCode(); - } return hashCode; } } @@ -787,13 +769,6 @@ public List GetOpenApiTypes() Type = "string", Value = BulkSendJobId, }); - types.Add(new OpenApiType() - { - Name = "signer_experience", - Property = "SignerExperience", - Type = "SignatureRequestSignerExperience", - Value = SignerExperience, - }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSignerExperience.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSignerExperience.cs deleted file mode 100644 index 01ad02278..000000000 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestSignerExperience.cs +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Dropbox Sign API - * - * Dropbox Sign v3 API - * - * The version of the OpenAPI document: 3.0.0 - * Contact: apisupport@hellosign.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter; - -namespace Dropbox.Sign.Model -{ - /// - /// Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - /// - [DataContract(Name = "SignatureRequestSignerExperience")] - [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] - public partial class SignatureRequestSignerExperience : IEquatable, IValidatableObject - { - /// - /// Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - /// - /// Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - [JsonConverter(typeof(StringEnumConverter))] - public enum FormViewEnum - { - /// - /// Enum Disabled for value: disabled - /// - [EnumMember(Value = "disabled")] - Disabled = 1, - - /// - /// Enum Enabled for value: enabled - /// - [EnumMember(Value = "enabled")] - Enabled = 2, - - /// - /// Enum EnabledByDefault for value: enabled_by_default - /// - [EnumMember(Value = "enabled_by_default")] - EnabledByDefault = 3, - - /// - /// Enum Forced for value: forced - /// - [EnumMember(Value = "forced")] - Forced = 4 - } - - - /// - /// Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - /// - /// Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - [DataMember(Name = "form_view", IsRequired = true, EmitDefaultValue = true)] - public FormViewEnum FormView { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected SignatureRequestSignerExperience() { } - /// - /// Initializes a new instance of the class. - /// - /// Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. (required). - public SignatureRequestSignerExperience(FormViewEnum formView = default(FormViewEnum)) - { - - this.FormView = formView; - } - - /// - /// Attempt to instantiate and hydrate a new instance of this class - /// - /// String of JSON data representing target object - public static SignatureRequestSignerExperience Init(string jsonData) - { - var obj = JsonConvert.DeserializeObject(jsonData); - - if (obj == null) - { - throw new Exception("Unable to deserialize JSON to instance of SignatureRequestSignerExperience"); - } - - return obj; - } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class SignatureRequestSignerExperience {\n"); - sb.Append(" FormView: ").Append(FormView).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as SignatureRequestSignerExperience); - } - - /// - /// Returns true if SignatureRequestSignerExperience instances are equal - /// - /// Instance of SignatureRequestSignerExperience to be compared - /// Boolean - public bool Equals(SignatureRequestSignerExperience input) - { - if (input == null) - { - return false; - } - return - ( - this.FormView == input.FormView || - this.FormView.Equals(input.FormView) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - hashCode = (hashCode * 59) + this.FormView.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - public List GetOpenApiTypes() - { - var types = new List(); - types.Add(new OpenApiType() - { - Name = "form_view", - Property = "FormView", - Type = "string", - Value = FormView, - }); - - return types; - } - } - -} diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index 49eca4075..a298922d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -57,8 +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.. - /// signerExperience. - 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), SignatureRequestSignerExperience signerExperience = default(SignatureRequestSignerExperience)) + 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; @@ -77,7 +76,6 @@ protected TemplateResponse() { } this.NamedFormFields = namedFormFields; this.Accounts = accounts; this.Attachments = attachments; - this.SignerExperience = signerExperience; } /// @@ -210,12 +208,6 @@ public static TemplateResponse Init(string jsonData) [DataMember(Name = "attachments", EmitDefaultValue = true)] public List Attachments { get; set; } - /// - /// Gets or Sets SignerExperience - /// - [DataMember(Name = "signer_experience", EmitDefaultValue = true)] - public SignatureRequestSignerExperience SignerExperience { get; set; } - /// /// Returns the string presentation of the object /// @@ -240,7 +232,6 @@ public override string ToString() sb.Append(" NamedFormFields: ").Append(NamedFormFields).Append("\n"); sb.Append(" Accounts: ").Append(Accounts).Append("\n"); sb.Append(" Attachments: ").Append(Attachments).Append("\n"); - sb.Append(" SignerExperience: ").Append(SignerExperience).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -359,11 +350,6 @@ public bool Equals(TemplateResponse input) this.Attachments != null && input.Attachments != null && this.Attachments.SequenceEqual(input.Attachments) - ) && - ( - this.SignerExperience == input.SignerExperience || - (this.SignerExperience != null && - this.SignerExperience.Equals(input.SignerExperience)) ); } @@ -428,10 +414,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); } - if (this.SignerExperience != null) - { - hashCode = (hashCode * 59) + this.SignerExperience.GetHashCode(); - } return hashCode; } } @@ -560,13 +542,6 @@ public List GetOpenApiTypes() Type = "List", Value = Attachments, }); - types.Add(new OpenApiType() - { - Name = "signer_experience", - Property = "SignerExperience", - Type = "SignatureRequestSignerExperience", - Value = SignerExperience, - }); return types; } diff --git a/sdks/java-v1/README.md b/sdks/java-v1/README.md index 51ea0e9e8..a0e36fb0f 100644 --- a/sdks/java-v1/README.md +++ b/sdks/java-v1/README.md @@ -343,7 +343,6 @@ Class | Method | HTTP request | Description - [SignatureRequestResponseSignatures](docs/SignatureRequestResponseSignatures.md) - [SignatureRequestSendRequest](docs/SignatureRequestSendRequest.md) - [SignatureRequestSendWithTemplateRequest](docs/SignatureRequestSendWithTemplateRequest.md) - - [SignatureRequestSignerExperience](docs/SignatureRequestSignerExperience.md) - [SignatureRequestUpdateRequest](docs/SignatureRequestUpdateRequest.md) - [SubAttachment](docs/SubAttachment.md) - [SubBulkSignerList](docs/SubBulkSignerList.md) diff --git a/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md index 3fb02e144..09809ea86 100644 --- a/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md @@ -33,7 +33,6 @@ | `responseData` | [```List```](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. | | | `signatures` | [```List```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```String``` | The id of the BulkSendJob. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v1/docs/SignatureRequestResponse.md b/sdks/java-v1/docs/SignatureRequestResponse.md index dac0e2d70..6e8d9645c 100644 --- a/sdks/java-v1/docs/SignatureRequestResponse.md +++ b/sdks/java-v1/docs/SignatureRequestResponse.md @@ -33,7 +33,6 @@ Contains information about a signature request. | `responseData` | [```List```](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. | | | `signatures` | [```List```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```String``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v1/docs/SignatureRequestSignerExperience.md b/sdks/java-v1/docs/SignatureRequestSignerExperience.md deleted file mode 100644 index c9beb1d18..000000000 --- a/sdks/java-v1/docs/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| `formView`*_required_ | [```FormViewEnum```](#FormViewEnum) | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - - - -## Enum: FormViewEnum - -| Name | Value | ----- | ----- -| DISABLED | "disabled" | -| ENABLED | "enabled" | -| ENABLED_BY_DEFAULT | "enabled_by_default" | -| FORCED | "forced" | - - - diff --git a/sdks/java-v1/docs/TemplateResponse.md b/sdks/java-v1/docs/TemplateResponse.md index 32858edee..40de0fdc8 100644 --- a/sdks/java-v1/docs/TemplateResponse.md +++ b/sdks/java-v1/docs/TemplateResponse.md @@ -24,7 +24,6 @@ Contains information about the templates you and your team have created. | `namedFormFields` | [```List```](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. | | | `accounts` | [```List```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```List```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java index 7c62222da..dc04b97e4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java @@ -51,8 +51,7 @@ BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_ATTACHMENTS, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_RESPONSE_DATA, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNATURES, - BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID, - BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNER_EXPERIENCE + BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -135,9 +134,6 @@ public class BulkSendJobGetResponseSignatureRequests { public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; @javax.annotation.Nullable private String bulkSendJobId; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @javax.annotation.Nullable private SignatureRequestSignerExperience signerExperience; - public BulkSendJobGetResponseSignatureRequests() {} /** @@ -808,30 +804,6 @@ public void setBulkSendJobId(@javax.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; } - public BulkSendJobGetResponseSignatureRequests signerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - return this; - } - - /** - * Get signerExperience - * - * @return signerExperience - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignatureRequestSignerExperience getSignerExperience() { - return signerExperience; - } - - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - } - /** Return true if this BulkSendJobGetResponseSignatureRequests object is equal to o. */ @Override public boolean equals(Object o) { @@ -887,10 +859,7 @@ public boolean equals(Object o) { && Objects.equals( this.signatures, bulkSendJobGetResponseSignatureRequests.signatures) && Objects.equals( - this.bulkSendJobId, bulkSendJobGetResponseSignatureRequests.bulkSendJobId) - && Objects.equals( - this.signerExperience, - bulkSendJobGetResponseSignatureRequests.signerExperience); + this.bulkSendJobId, bulkSendJobGetResponseSignatureRequests.bulkSendJobId); } @Override @@ -920,8 +889,7 @@ public int hashCode() { attachments, responseData, signatures, - bulkSendJobId, - signerExperience); + bulkSendJobId); } @Override @@ -959,7 +927,6 @@ public String toString() { sb.append(" responseData: ").append(toIndentedString(responseData)).append("\n"); sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" bulkSendJobId: ").append(toIndentedString(bulkSendJobId)).append("\n"); - sb.append(" signerExperience: ").append(toIndentedString(signerExperience)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1468,26 +1435,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(bulkSendJobId)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) - || signerExperience.getClass().equals(Integer.class) - || signerExperience.getClass().equals(String.class) - || signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for (int i = 0; i < getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } else { - map.put( - "signer_experience", - JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java index 4740401be..85da7fb61 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java @@ -51,8 +51,7 @@ SignatureRequestResponse.JSON_PROPERTY_ATTACHMENTS, SignatureRequestResponse.JSON_PROPERTY_RESPONSE_DATA, SignatureRequestResponse.JSON_PROPERTY_SIGNATURES, - SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID, - SignatureRequestResponse.JSON_PROPERTY_SIGNER_EXPERIENCE + SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -135,9 +134,6 @@ public class SignatureRequestResponse { public static final String JSON_PROPERTY_BULK_SEND_JOB_ID = "bulk_send_job_id"; @javax.annotation.Nullable private String bulkSendJobId; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @javax.annotation.Nullable private SignatureRequestSignerExperience signerExperience; - public SignatureRequestResponse() {} /** @@ -791,30 +787,6 @@ public void setBulkSendJobId(@javax.annotation.Nullable String bulkSendJobId) { this.bulkSendJobId = bulkSendJobId; } - public SignatureRequestResponse signerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - return this; - } - - /** - * Get signerExperience - * - * @return signerExperience - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignatureRequestSignerExperience getSignerExperience() { - return signerExperience; - } - - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - } - /** Return true if this SignatureRequestResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -852,8 +824,7 @@ public boolean equals(Object o) { && Objects.equals(this.attachments, signatureRequestResponse.attachments) && Objects.equals(this.responseData, signatureRequestResponse.responseData) && Objects.equals(this.signatures, signatureRequestResponse.signatures) - && Objects.equals(this.bulkSendJobId, signatureRequestResponse.bulkSendJobId) - && Objects.equals(this.signerExperience, signatureRequestResponse.signerExperience); + && Objects.equals(this.bulkSendJobId, signatureRequestResponse.bulkSendJobId); } @Override @@ -883,8 +854,7 @@ public int hashCode() { attachments, responseData, signatures, - bulkSendJobId, - signerExperience); + bulkSendJobId); } @Override @@ -922,7 +892,6 @@ public String toString() { sb.append(" responseData: ").append(toIndentedString(responseData)).append("\n"); sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" bulkSendJobId: ").append(toIndentedString(bulkSendJobId)).append("\n"); - sb.append(" signerExperience: ").append(toIndentedString(signerExperience)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1431,26 +1400,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(bulkSendJobId)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) - || signerExperience.getClass().equals(Integer.class) - || signerExperience.getClass().equals(String.class) - || signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for (int i = 0; i < getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } else { - map.put( - "signer_experience", - JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java deleted file mode 100644 index f6ec097cc..000000000 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Dropbox Sign API - * Dropbox Sign v3 API - * - * The version of the OpenAPI document: 3.0.0 - * Contact: apisupport@hellosign.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.dropbox.sign.model; - -import com.dropbox.sign.ApiException; -import com.dropbox.sign.JSON; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.ObjectMapper; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * Configuration options for modifying the settings of the signer application. Supports changing the - * form view behavior. - */ -@JsonPropertyOrder({SignatureRequestSignerExperience.JSON_PROPERTY_FORM_VIEW}) -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.12.0") -@JsonIgnoreProperties(ignoreUnknown = true) -public class SignatureRequestSignerExperience { - /** - * Changes the form view setting experienced by the signer. Supported versions are: - - * `disabled` - Form view is disabled, and the signer cannot change it - - * `enabled` - Form view is disabled initially, the signer can turn it on using a - * toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn - * it off using a toggle - `forced` - Form view is enabled initially. The signer - * cannot change it, the toggle is hidden. - */ - public enum FormViewEnum { - DISABLED(String.valueOf("disabled")), - - ENABLED(String.valueOf("enabled")), - - ENABLED_BY_DEFAULT(String.valueOf("enabled_by_default")), - - FORCED(String.valueOf("forced")); - - private String value; - - FormViewEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FormViewEnum fromValue(String value) { - for (FormViewEnum b : FormViewEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FORM_VIEW = "form_view"; - @javax.annotation.Nonnull private FormViewEnum formView; - - public SignatureRequestSignerExperience() {} - - /** - * Attempt to instantiate and hydrate a new instance of this class - * - * @param jsonData String of JSON data representing target object - */ - public static SignatureRequestSignerExperience init(String jsonData) throws Exception { - return new ObjectMapper().readValue(jsonData, SignatureRequestSignerExperience.class); - } - - public static SignatureRequestSignerExperience init(HashMap data) throws Exception { - return new ObjectMapper() - .readValue( - new ObjectMapper().writeValueAsString(data), - SignatureRequestSignerExperience.class); - } - - public SignatureRequestSignerExperience formView( - @javax.annotation.Nonnull FormViewEnum formView) { - this.formView = formView; - return this; - } - - /** - * Changes the form view setting experienced by the signer. Supported versions are: - - * `disabled` - Form view is disabled, and the signer cannot change it - - * `enabled` - Form view is disabled initially, the signer can turn it on using a - * toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn - * it off using a toggle - `forced` - Form view is enabled initially. The signer - * cannot change it, the toggle is hidden. - * - * @return formView - */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FORM_VIEW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FormViewEnum getFormView() { - return formView; - } - - @JsonProperty(JSON_PROPERTY_FORM_VIEW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFormView(@javax.annotation.Nonnull FormViewEnum formView) { - this.formView = formView; - } - - /** Return true if this SignatureRequestSignerExperience object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignatureRequestSignerExperience signatureRequestSignerExperience = - (SignatureRequestSignerExperience) o; - return Objects.equals(this.formView, signatureRequestSignerExperience.formView); - } - - @Override - public int hashCode() { - return Objects.hash(formView); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignatureRequestSignerExperience {\n"); - sb.append(" formView: ").append(toIndentedString(formView)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - public Map createFormData() throws ApiException { - Map map = new HashMap<>(); - boolean fileTypeFound = false; - try { - if (formView != null) { - if (isFileTypeOrListOfFiles(formView)) { - fileTypeFound = true; - } - - if (formView.getClass().equals(java.io.File.class) - || formView.getClass().equals(Integer.class) - || formView.getClass().equals(String.class) - || formView.getClass().isEnum()) { - map.put("form_view", formView); - } else if (isListOfFile(formView)) { - for (int i = 0; i < getListSize(formView); i++) { - map.put("form_view[" + i + "]", getFromList(formView, i)); - } - } else { - map.put( - "form_view", - JSON.getDefault().getMapper().writeValueAsString(formView)); - } - } - } catch (Exception e) { - throw new ApiException(e); - } - - return fileTypeFound ? map : new HashMap<>(); - } - - private boolean isFileTypeOrListOfFiles(Object obj) throws Exception { - return obj.getClass().equals(java.io.File.class) || isListOfFile(obj); - } - - private boolean isListOfFile(Object obj) throws Exception { - return obj instanceof java.util.List - && !isListEmpty(obj) - && getFromList(obj, 0) instanceof java.io.File; - } - - private boolean isListEmpty(Object obj) throws Exception { - return (boolean) - Class.forName(java.util.List.class.getName()).getMethod("isEmpty").invoke(obj); - } - - private Object getFromList(Object obj, int index) throws Exception { - return Class.forName(java.util.List.class.getName()) - .getMethod("get", int.class) - .invoke(obj, index); - } - - private int getListSize(Object obj) throws Exception { - return (int) Class.forName(java.util.List.class.getName()).getMethod("size").invoke(obj); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first - * line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java index 6b31c072d..794722520 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponse.java @@ -42,8 +42,7 @@ TemplateResponse.JSON_PROPERTY_CUSTOM_FIELDS, TemplateResponse.JSON_PROPERTY_NAMED_FORM_FIELDS, TemplateResponse.JSON_PROPERTY_ACCOUNTS, - TemplateResponse.JSON_PROPERTY_ATTACHMENTS, - TemplateResponse.JSON_PROPERTY_SIGNER_EXPERIENCE + TemplateResponse.JSON_PROPERTY_ATTACHMENTS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -100,9 +99,6 @@ public class TemplateResponse { public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; @javax.annotation.Nullable private List attachments = null; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @javax.annotation.Nullable private SignatureRequestSignerExperience signerExperience; - public TemplateResponse() {} /** @@ -572,30 +568,6 @@ public void setAttachments( this.attachments = attachments; } - public TemplateResponse signerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - return this; - } - - /** - * Get signerExperience - * - * @return signerExperience - */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignatureRequestSignerExperience getSignerExperience() { - return signerExperience; - } - - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerExperience( - @javax.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - } - /** Return true if this TemplateResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -621,8 +593,7 @@ public boolean equals(Object o) { && Objects.equals(this.customFields, templateResponse.customFields) && Objects.equals(this.namedFormFields, templateResponse.namedFormFields) && Objects.equals(this.accounts, templateResponse.accounts) - && Objects.equals(this.attachments, templateResponse.attachments) - && Objects.equals(this.signerExperience, templateResponse.signerExperience); + && Objects.equals(this.attachments, templateResponse.attachments); } @Override @@ -643,8 +614,7 @@ public int hashCode() { customFields, namedFormFields, accounts, - attachments, - signerExperience); + attachments); } @Override @@ -667,7 +637,6 @@ public String toString() { sb.append(" namedFormFields: ").append(toIndentedString(namedFormFields)).append("\n"); sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n"); - sb.append(" signerExperience: ").append(toIndentedString(signerExperience)).append("\n"); sb.append("}"); return sb.toString(); } @@ -984,26 +953,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(attachments)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) - || signerExperience.getClass().equals(Integer.class) - || signerExperience.getClass().equals(String.class) - || signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for (int i = 0; i < getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } else { - map.put( - "signer_experience", - JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/README.md b/sdks/java-v2/README.md index 4b0cd6c6a..50f768ee5 100644 --- a/sdks/java-v2/README.md +++ b/sdks/java-v2/README.md @@ -319,7 +319,6 @@ Class | Method | HTTP request | Description - [SignatureRequestResponseSignatures](docs/SignatureRequestResponseSignatures.md) - [SignatureRequestSendRequest](docs/SignatureRequestSendRequest.md) - [SignatureRequestSendWithTemplateRequest](docs/SignatureRequestSendWithTemplateRequest.md) - - [SignatureRequestSignerExperience](docs/SignatureRequestSignerExperience.md) - [SignatureRequestUpdateRequest](docs/SignatureRequestUpdateRequest.md) - [SubAttachment](docs/SubAttachment.md) - [SubBulkSignerList](docs/SubBulkSignerList.md) diff --git a/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md index 3fb02e144..09809ea86 100644 --- a/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md @@ -33,7 +33,6 @@ | `responseData` | [```List```](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. | | | `signatures` | [```List```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```String``` | The id of the BulkSendJob. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v2/docs/SignatureRequestResponse.md b/sdks/java-v2/docs/SignatureRequestResponse.md index dac0e2d70..6e8d9645c 100644 --- a/sdks/java-v2/docs/SignatureRequestResponse.md +++ b/sdks/java-v2/docs/SignatureRequestResponse.md @@ -33,7 +33,6 @@ Contains information about a signature request. | `responseData` | [```List```](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. | | | `signatures` | [```List```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```String``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v2/docs/SignatureRequestSignerExperience.md b/sdks/java-v2/docs/SignatureRequestSignerExperience.md deleted file mode 100644 index c9beb1d18..000000000 --- a/sdks/java-v2/docs/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| `formView`*_required_ | [```FormViewEnum```](#FormViewEnum) | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - - - -## Enum: FormViewEnum - -| Name | Value | ----- | ----- -| DISABLED | "disabled" | -| ENABLED | "enabled" | -| ENABLED_BY_DEFAULT | "enabled_by_default" | -| FORCED | "forced" | - - - diff --git a/sdks/java-v2/docs/TemplateResponse.md b/sdks/java-v2/docs/TemplateResponse.md index 32858edee..40de0fdc8 100644 --- a/sdks/java-v2/docs/TemplateResponse.md +++ b/sdks/java-v2/docs/TemplateResponse.md @@ -24,7 +24,6 @@ Contains information about the templates you and your team have created. | `namedFormFields` | [```List```](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. | | | `accounts` | [```List```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```List```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java index de0520124..2e360bc7f 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/BulkSendJobGetResponseSignatureRequests.java @@ -20,7 +20,6 @@ import com.dropbox.sign.model.SignatureRequestResponseCustomFieldBase; import com.dropbox.sign.model.SignatureRequestResponseDataBase; import com.dropbox.sign.model.SignatureRequestResponseSignatures; -import com.dropbox.sign.model.SignatureRequestSignerExperience; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -66,8 +65,7 @@ BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_ATTACHMENTS, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_RESPONSE_DATA, BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNATURES, - BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID, - BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_SIGNER_EXPERIENCE + BulkSendJobGetResponseSignatureRequests.JSON_PROPERTY_BULK_SEND_JOB_ID }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -172,10 +170,6 @@ public class BulkSendJobGetResponseSignatureRequests { @jakarta.annotation.Nullable private String bulkSendJobId; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @jakarta.annotation.Nullable - private SignatureRequestSignerExperience signerExperience; - public BulkSendJobGetResponseSignatureRequests() { } @@ -875,31 +869,6 @@ public void setBulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) } - public BulkSendJobGetResponseSignatureRequests signerExperience(@jakarta.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - return this; - } - - /** - * Get signerExperience - * @return signerExperience - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SignatureRequestSignerExperience getSignerExperience() { - return signerExperience; - } - - - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerExperience(@jakarta.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - } - - /** * Return true if this BulkSendJobGetResponseSignatureRequests object is equal to o. */ @@ -936,13 +905,12 @@ public boolean equals(Object o) { Objects.equals(this.attachments, bulkSendJobGetResponseSignatureRequests.attachments) && Objects.equals(this.responseData, bulkSendJobGetResponseSignatureRequests.responseData) && Objects.equals(this.signatures, bulkSendJobGetResponseSignatureRequests.signatures) && - Objects.equals(this.bulkSendJobId, bulkSendJobGetResponseSignatureRequests.bulkSendJobId) && - Objects.equals(this.signerExperience, bulkSendJobGetResponseSignatureRequests.signerExperience); + Objects.equals(this.bulkSendJobId, bulkSendJobGetResponseSignatureRequests.bulkSendJobId); } @Override public int hashCode() { - return Objects.hash(testMode, signatureRequestId, requesterEmailAddress, title, originalTitle, subject, message, metadata, createdAt, expiresAt, isComplete, isDeclined, hasError, filesUrl, signingUrl, detailsUrl, ccEmailAddresses, signingRedirectUrl, finalCopyUri, templateIds, customFields, attachments, responseData, signatures, bulkSendJobId, signerExperience); + return Objects.hash(testMode, signatureRequestId, requesterEmailAddress, title, originalTitle, subject, message, metadata, createdAt, expiresAt, isComplete, isDeclined, hasError, filesUrl, signingUrl, detailsUrl, ccEmailAddresses, signingRedirectUrl, finalCopyUri, templateIds, customFields, attachments, responseData, signatures, bulkSendJobId); } @Override @@ -974,7 +942,6 @@ public String toString() { sb.append(" responseData: ").append(toIndentedString(responseData)).append("\n"); sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" bulkSendJobId: ").append(toIndentedString(bulkSendJobId)).append("\n"); - sb.append(" signerExperience: ").append(toIndentedString(signerExperience)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1458,25 +1425,6 @@ public Map createFormData() throws ApiException { map.put("bulk_send_job_id", JSON.getDefault().getMapper().writeValueAsString(bulkSendJobId)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) || - signerExperience.getClass().equals(Integer.class) || - signerExperience.getClass().equals(String.class) || - signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for(int i = 0; i< getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } - else { - map.put("signer_experience", JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java index dd7a6c960..481b8bd6b 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponse.java @@ -20,7 +20,6 @@ import com.dropbox.sign.model.SignatureRequestResponseCustomFieldBase; import com.dropbox.sign.model.SignatureRequestResponseDataBase; import com.dropbox.sign.model.SignatureRequestResponseSignatures; -import com.dropbox.sign.model.SignatureRequestSignerExperience; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -66,8 +65,7 @@ SignatureRequestResponse.JSON_PROPERTY_ATTACHMENTS, SignatureRequestResponse.JSON_PROPERTY_RESPONSE_DATA, SignatureRequestResponse.JSON_PROPERTY_SIGNATURES, - SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID, - SignatureRequestResponse.JSON_PROPERTY_SIGNER_EXPERIENCE + SignatureRequestResponse.JSON_PROPERTY_BULK_SEND_JOB_ID }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -172,10 +170,6 @@ public class SignatureRequestResponse { @jakarta.annotation.Nullable private String bulkSendJobId; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @jakarta.annotation.Nullable - private SignatureRequestSignerExperience signerExperience; - public SignatureRequestResponse() { } @@ -875,31 +869,6 @@ public void setBulkSendJobId(@jakarta.annotation.Nullable String bulkSendJobId) } - public SignatureRequestResponse signerExperience(@jakarta.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - return this; - } - - /** - * Get signerExperience - * @return signerExperience - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SignatureRequestSignerExperience getSignerExperience() { - return signerExperience; - } - - - @JsonProperty(JSON_PROPERTY_SIGNER_EXPERIENCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignerExperience(@jakarta.annotation.Nullable SignatureRequestSignerExperience signerExperience) { - this.signerExperience = signerExperience; - } - - /** * Return true if this SignatureRequestResponse object is equal to o. */ @@ -936,13 +905,12 @@ public boolean equals(Object o) { Objects.equals(this.attachments, signatureRequestResponse.attachments) && Objects.equals(this.responseData, signatureRequestResponse.responseData) && Objects.equals(this.signatures, signatureRequestResponse.signatures) && - Objects.equals(this.bulkSendJobId, signatureRequestResponse.bulkSendJobId) && - Objects.equals(this.signerExperience, signatureRequestResponse.signerExperience); + Objects.equals(this.bulkSendJobId, signatureRequestResponse.bulkSendJobId); } @Override public int hashCode() { - return Objects.hash(testMode, signatureRequestId, requesterEmailAddress, title, originalTitle, subject, message, metadata, createdAt, expiresAt, isComplete, isDeclined, hasError, filesUrl, signingUrl, detailsUrl, ccEmailAddresses, signingRedirectUrl, finalCopyUri, templateIds, customFields, attachments, responseData, signatures, bulkSendJobId, signerExperience); + return Objects.hash(testMode, signatureRequestId, requesterEmailAddress, title, originalTitle, subject, message, metadata, createdAt, expiresAt, isComplete, isDeclined, hasError, filesUrl, signingUrl, detailsUrl, ccEmailAddresses, signingRedirectUrl, finalCopyUri, templateIds, customFields, attachments, responseData, signatures, bulkSendJobId); } @Override @@ -974,7 +942,6 @@ public String toString() { sb.append(" responseData: ").append(toIndentedString(responseData)).append("\n"); sb.append(" signatures: ").append(toIndentedString(signatures)).append("\n"); sb.append(" bulkSendJobId: ").append(toIndentedString(bulkSendJobId)).append("\n"); - sb.append(" signerExperience: ").append(toIndentedString(signerExperience)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1458,25 +1425,6 @@ public Map createFormData() throws ApiException { map.put("bulk_send_job_id", JSON.getDefault().getMapper().writeValueAsString(bulkSendJobId)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) || - signerExperience.getClass().equals(Integer.class) || - signerExperience.getClass().equals(String.class) || - signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for(int i = 0; i< getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } - else { - map.put("signer_experience", JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java deleted file mode 100644 index dd25537cf..000000000 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestSignerExperience.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Dropbox Sign API - * Dropbox Sign v3 API - * - * The version of the OpenAPI document: 3.0.0 - * Contact: apisupport@hellosign.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.dropbox.sign.model; - -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.dropbox.sign.JSON; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.databind.ObjectMapper; - - -import com.dropbox.sign.ApiException; -/** - * Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - */ -@JsonPropertyOrder({ - SignatureRequestSignerExperience.JSON_PROPERTY_FORM_VIEW -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") -@JsonIgnoreProperties(ignoreUnknown=true) -public class SignatureRequestSignerExperience { - /** - * Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - */ - public enum FormViewEnum { - DISABLED(String.valueOf("disabled")), - - ENABLED(String.valueOf("enabled")), - - ENABLED_BY_DEFAULT(String.valueOf("enabled_by_default")), - - FORCED(String.valueOf("forced")); - - private String value; - - FormViewEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static FormViewEnum fromValue(String value) { - for (FormViewEnum b : FormViewEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_FORM_VIEW = "form_view"; - @jakarta.annotation.Nonnull - private FormViewEnum formView; - - public SignatureRequestSignerExperience() { - } - - /** - * Attempt to instantiate and hydrate a new instance of this class - * @param jsonData String of JSON data representing target object - */ - static public SignatureRequestSignerExperience init(String jsonData) throws Exception { - return new ObjectMapper().readValue(jsonData, SignatureRequestSignerExperience.class); - } - - static public SignatureRequestSignerExperience init(HashMap data) throws Exception { - return new ObjectMapper().readValue( - new ObjectMapper().writeValueAsString(data), - SignatureRequestSignerExperience.class - ); - } - - public SignatureRequestSignerExperience formView(@jakarta.annotation.Nonnull FormViewEnum formView) { - this.formView = formView; - return this; - } - - /** - * Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - * @return formView - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FORM_VIEW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public FormViewEnum getFormView() { - return formView; - } - - - @JsonProperty(JSON_PROPERTY_FORM_VIEW) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFormView(@jakarta.annotation.Nonnull FormViewEnum formView) { - this.formView = formView; - } - - - /** - * Return true if this SignatureRequestSignerExperience object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignatureRequestSignerExperience signatureRequestSignerExperience = (SignatureRequestSignerExperience) o; - return Objects.equals(this.formView, signatureRequestSignerExperience.formView); - } - - @Override - public int hashCode() { - return Objects.hash(formView); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignatureRequestSignerExperience {\n"); - sb.append(" formView: ").append(toIndentedString(formView)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - public Map createFormData() throws ApiException { - Map map = new HashMap<>(); - boolean fileTypeFound = false; - try { - if (formView != null) { - if (isFileTypeOrListOfFiles(formView)) { - fileTypeFound = true; - } - - if (formView.getClass().equals(java.io.File.class) || - formView.getClass().equals(Integer.class) || - formView.getClass().equals(String.class) || - formView.getClass().isEnum()) { - map.put("form_view", formView); - } else if (isListOfFile(formView)) { - for(int i = 0; i< getListSize(formView); i++) { - map.put("form_view[" + i + "]", getFromList(formView, i)); - } - } - else { - map.put("form_view", JSON.getDefault().getMapper().writeValueAsString(formView)); - } - } - } catch (Exception e) { - throw new ApiException(e); - } - - return fileTypeFound ? map : new HashMap<>(); - } - - private boolean isFileTypeOrListOfFiles(Object obj) throws Exception { - return obj.getClass().equals(java.io.File.class) || isListOfFile(obj); - } - - private boolean isListOfFile(Object obj) throws Exception { - return obj instanceof java.util.List && !isListEmpty(obj) && getFromList(obj, 0) instanceof java.io.File; - } - - private boolean isListEmpty(Object obj) throws Exception { - return (boolean) Class.forName(java.util.List.class.getName()).getMethod("isEmpty").invoke(obj); - } - - private Object getFromList(Object obj, int index) throws Exception { - return Class.forName(java.util.List.class.getName()).getMethod("get", int.class).invoke(obj, index); - } - - private int getListSize(Object obj) throws Exception { - return (int) Class.forName(java.util.List.class.getName()).getMethod("size").invoke(obj); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java index 462bc57ac..1796c999a 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponse.java @@ -17,7 +17,6 @@ import java.util.Map; import java.util.HashMap; import com.dropbox.sign.model.SignatureRequestResponseAttachment; -import com.dropbox.sign.model.SignatureRequestSignerExperience; import com.dropbox.sign.model.TemplateResponseAccount; import com.dropbox.sign.model.TemplateResponseCCRole; import com.dropbox.sign.model.TemplateResponseDocument; @@ -60,8 +59,7 @@ TemplateResponse.JSON_PROPERTY_CUSTOM_FIELDS, TemplateResponse.JSON_PROPERTY_NAMED_FORM_FIELDS, TemplateResponse.JSON_PROPERTY_ACCOUNTS, - TemplateResponse.JSON_PROPERTY_ATTACHMENTS, - TemplateResponse.JSON_PROPERTY_SIGNER_EXPERIENCE + TemplateResponse.JSON_PROPERTY_ATTACHMENTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -132,10 +130,6 @@ public class TemplateResponse { @jakarta.annotation.Nullable private List attachments = null; - public static final String JSON_PROPERTY_SIGNER_EXPERIENCE = "signer_experience"; - @jakarta.annotation.Nullable - private SignatureRequestSignerExperience signerExperience; - public TemplateResponse() { } @@ -626,31 +620,6 @@ public void setAttachments(@jakarta.annotation.Nullable List createFormData() throws ApiException { map.put("attachments", JSON.getDefault().getMapper().writeValueAsString(attachments)); } } - if (signerExperience != null) { - if (isFileTypeOrListOfFiles(signerExperience)) { - fileTypeFound = true; - } - - if (signerExperience.getClass().equals(java.io.File.class) || - signerExperience.getClass().equals(Integer.class) || - signerExperience.getClass().equals(String.class) || - signerExperience.getClass().isEnum()) { - map.put("signer_experience", signerExperience); - } else if (isListOfFile(signerExperience)) { - for(int i = 0; i< getListSize(signerExperience); i++) { - map.put("signer_experience[" + i + "]", getFromList(signerExperience, i)); - } - } - else { - map.put("signer_experience", JSON.getDefault().getMapper().writeValueAsString(signerExperience)); - } - } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/node/README.md b/sdks/node/README.md index bb3e259c6..19d311d6c 100644 --- a/sdks/node/README.md +++ b/sdks/node/README.md @@ -247,7 +247,6 @@ All URIs are relative to *https://api.hellosign.com/v3* - [SignatureRequestResponseSignatures](./docs/model/SignatureRequestResponseSignatures.md) - [SignatureRequestSendRequest](./docs/model/SignatureRequestSendRequest.md) - [SignatureRequestSendWithTemplateRequest](./docs/model/SignatureRequestSendWithTemplateRequest.md) -- [SignatureRequestSignerExperience](./docs/model/SignatureRequestSignerExperience.md) - [SignatureRequestUpdateRequest](./docs/model/SignatureRequestUpdateRequest.md) - [SubAttachment](./docs/model/SubAttachment.md) - [SubBulkSignerList](./docs/model/SubBulkSignerList.md) diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index 17d962cb5..2a0fc8d68 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -13251,7 +13251,6 @@ __export(api_exports, { SignatureRequestResponseSignatures: () => SignatureRequestResponseSignatures, SignatureRequestSendRequest: () => SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest: () => SignatureRequestSendWithTemplateRequest, - SignatureRequestSignerExperience: () => SignatureRequestSignerExperience, SignatureRequestUpdateRequest: () => SignatureRequestUpdateRequest, SubAttachment: () => SubAttachment, SubBulkSignerList: () => SubBulkSignerList, @@ -17644,11 +17643,6 @@ var BulkSendJobGetResponseSignatureRequests = class _BulkSendJobGetResponseSigna name: "bulkSendJobId", baseName: "bulk_send_job_id", type: "string" - }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience" } ]; } @@ -20621,11 +20615,6 @@ var SignatureRequestResponse = class _SignatureRequestResponse { name: "bulkSendJobId", baseName: "bulk_send_job_id", type: "string" - }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience" } ]; } @@ -21683,41 +21672,6 @@ var SignatureRequestSendWithTemplateRequest = class _SignatureRequestSendWithTem } }; -// model/signatureRequestSignerExperience.ts -var SignatureRequestSignerExperience = class _SignatureRequestSignerExperience { - static { - this.discriminator = void 0; - } - static { - this.attributeTypeMap = [ - { - name: "formView", - baseName: "form_view", - type: "SignatureRequestSignerExperience.FormViewEnum" - } - ]; - } - static getAttributeTypeMap() { - return _SignatureRequestSignerExperience.attributeTypeMap; - } - /** Attempt to instantiate and hydrate a new instance of this class */ - static init(data) { - return ObjectSerializer.deserialize( - data, - "SignatureRequestSignerExperience" - ); - } -}; -((SignatureRequestSignerExperience2) => { - let FormViewEnum; - ((FormViewEnum2) => { - FormViewEnum2["Disabled"] = "disabled"; - FormViewEnum2["Enabled"] = "enabled"; - FormViewEnum2["EnabledByDefault"] = "enabled_by_default"; - FormViewEnum2["Forced"] = "forced"; - })(FormViewEnum = SignatureRequestSignerExperience2.FormViewEnum || (SignatureRequestSignerExperience2.FormViewEnum = {})); -})(SignatureRequestSignerExperience || (SignatureRequestSignerExperience = {})); - // model/signatureRequestUpdateRequest.ts var SignatureRequestUpdateRequest = class _SignatureRequestUpdateRequest { static { @@ -24636,11 +24590,6 @@ var TemplateResponse = class _TemplateResponse { name: "attachments", baseName: "attachments", type: "Array" - }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience" } ]; } @@ -26924,7 +26873,6 @@ var enumsMap = { "ReportResponse.ReportTypeEnum": ReportResponse.ReportTypeEnum, SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataTypeEnum, - "SignatureRequestSignerExperience.FormViewEnum": SignatureRequestSignerExperience.FormViewEnum, "SubFieldOptions.DateFormatEnum": SubFieldOptions.DateFormatEnum, "SubFormFieldRuleAction.TypeEnum": SubFormFieldRuleAction.TypeEnum, "SubFormFieldRuleTrigger.OperatorEnum": SubFormFieldRuleTrigger.OperatorEnum, @@ -27035,7 +26983,6 @@ var typeMap = { SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, - SignatureRequestSignerExperience, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, @@ -36702,7 +36649,6 @@ var APIS = [ SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, - SignatureRequestSignerExperience, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, diff --git a/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md b/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md index 86da2106e..fe84b808e 100644 --- a/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md @@ -31,6 +31,5 @@ Name | Type | Description | Notes | `responseData` | [```Array```](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. | | | `signatures` | [```Array```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```string``` | The id of the BulkSendJob. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/node/docs/model/SignatureRequestResponse.md b/sdks/node/docs/model/SignatureRequestResponse.md index 96b27eb07..8bf5449d0 100644 --- a/sdks/node/docs/model/SignatureRequestResponse.md +++ b/sdks/node/docs/model/SignatureRequestResponse.md @@ -31,6 +31,5 @@ Name | Type | Description | Notes | `responseData` | [```Array```](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. | | | `signatures` | [```Array```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulkSendJobId` | ```string``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/node/docs/model/SignatureRequestSignerExperience.md b/sdks/node/docs/model/SignatureRequestSignerExperience.md deleted file mode 100644 index 104ae72b5..000000000 --- a/sdks/node/docs/model/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,11 +0,0 @@ -# # SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -| `formView`*_required_ | ```string``` | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/node/docs/model/TemplateResponse.md b/sdks/node/docs/model/TemplateResponse.md index 1ba483280..05e6532d2 100644 --- a/sdks/node/docs/model/TemplateResponse.md +++ b/sdks/node/docs/model/TemplateResponse.md @@ -22,6 +22,5 @@ Name | Type | Description | Notes | `namedFormFields` | [```Array```](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. | | | `accounts` | [```Array```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```Array```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signerExperience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts b/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts index 70bb561e7..9ff1456f6 100644 --- a/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts +++ b/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts @@ -27,7 +27,6 @@ import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAt import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestResponseCustomFieldBase"; import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; export class BulkSendJobGetResponseSignatureRequests { /** @@ -130,7 +129,6 @@ export class BulkSendJobGetResponseSignatureRequests { * The id of the BulkSendJob. */ "bulkSendJobId"?: string; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined = undefined; @@ -260,11 +258,6 @@ export class BulkSendJobGetResponseSignatureRequests { baseName: "bulk_send_job_id", type: "string", }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience", - }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/index.ts b/sdks/node/model/index.ts index 888f258da..7b5badacb 100644 --- a/sdks/node/model/index.ts +++ b/sdks/node/model/index.ts @@ -103,7 +103,6 @@ import { SignatureRequestResponseDataValueTextMerge } from "./signatureRequestRe import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; import { SignatureRequestSendRequest } from "./signatureRequestSendRequest"; import { SignatureRequestSendWithTemplateRequest } from "./signatureRequestSendWithTemplateRequest"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; import { SignatureRequestUpdateRequest } from "./signatureRequestUpdateRequest"; import { SubAttachment } from "./subAttachment"; import { SubBulkSignerList } from "./subBulkSignerList"; @@ -222,8 +221,6 @@ export let enumsMap: { [index: string]: any } = { SignatureRequestResponseCustomFieldTypeEnum: SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataTypeEnum: SignatureRequestResponseDataTypeEnum, - "SignatureRequestSignerExperience.FormViewEnum": - SignatureRequestSignerExperience.FormViewEnum, "SubFieldOptions.DateFormatEnum": SubFieldOptions.DateFormatEnum, "SubFormFieldRuleAction.TypeEnum": SubFormFieldRuleAction.TypeEnum, "SubFormFieldRuleTrigger.OperatorEnum": SubFormFieldRuleTrigger.OperatorEnum, @@ -364,7 +361,6 @@ export let typeMap: { [index: string]: any } = { SignatureRequestSendRequest: SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest: SignatureRequestSendWithTemplateRequest, - SignatureRequestSignerExperience: SignatureRequestSignerExperience, SignatureRequestUpdateRequest: SignatureRequestUpdateRequest, SubAttachment: SubAttachment, SubBulkSignerList: SubBulkSignerList, @@ -593,7 +589,6 @@ export { SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, - SignatureRequestSignerExperience, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, diff --git a/sdks/node/model/signatureRequestResponse.ts b/sdks/node/model/signatureRequestResponse.ts index 295c64266..014da962b 100644 --- a/sdks/node/model/signatureRequestResponse.ts +++ b/sdks/node/model/signatureRequestResponse.ts @@ -27,7 +27,6 @@ import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAt import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestResponseCustomFieldBase"; import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; /** * Contains information about a signature request. @@ -133,7 +132,6 @@ export class SignatureRequestResponse { * The ID of the Bulk Send job which sent the signature request, if applicable. */ "bulkSendJobId"?: string | null; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined = undefined; @@ -263,11 +261,6 @@ export class SignatureRequestResponse { baseName: "bulk_send_job_id", type: "string", }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience", - }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/signatureRequestSignerExperience.ts b/sdks/node/model/signatureRequestSignerExperience.ts deleted file mode 100644 index 3b38d7984..000000000 --- a/sdks/node/model/signatureRequestSignerExperience.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * The MIT License (MIT) - * - * Copyright (C) 2023 dropbox.com - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -import { AttributeTypeMap, ObjectSerializer } from "./"; - -/** - * Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - */ -export class SignatureRequestSignerExperience { - /** - * Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - */ - "formView": SignatureRequestSignerExperience.FormViewEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: AttributeTypeMap = [ - { - name: "formView", - baseName: "form_view", - type: "SignatureRequestSignerExperience.FormViewEnum", - }, - ]; - - static getAttributeTypeMap(): AttributeTypeMap { - return SignatureRequestSignerExperience.attributeTypeMap; - } - - /** Attempt to instantiate and hydrate a new instance of this class */ - static init(data: any): SignatureRequestSignerExperience { - return ObjectSerializer.deserialize( - data, - "SignatureRequestSignerExperience" - ); - } -} - -export namespace SignatureRequestSignerExperience { - export enum FormViewEnum { - Disabled = "disabled", - Enabled = "enabled", - EnabledByDefault = "enabled_by_default", - Forced = "forced", - } -} diff --git a/sdks/node/model/templateResponse.ts b/sdks/node/model/templateResponse.ts index df46b2167..298db4670 100644 --- a/sdks/node/model/templateResponse.ts +++ b/sdks/node/model/templateResponse.ts @@ -24,7 +24,6 @@ import { AttributeTypeMap, ObjectSerializer } from "./"; import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAttachment"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; import { TemplateResponseAccount } from "./templateResponseAccount"; import { TemplateResponseCCRole } from "./templateResponseCCRole"; import { TemplateResponseDocument } from "./templateResponseDocument"; @@ -104,7 +103,6 @@ export class TemplateResponse { * Signer attachments. */ "attachments"?: Array; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined = undefined; @@ -189,11 +187,6 @@ export class TemplateResponse { baseName: "attachments", type: "Array", }, - { - name: "signerExperience", - baseName: "signer_experience", - type: "SignatureRequestSignerExperience", - }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts b/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts index fd640f966..8f20a3fec 100644 --- a/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts +++ b/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts @@ -3,7 +3,6 @@ import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAt import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestResponseCustomFieldBase"; import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; export declare class BulkSendJobGetResponseSignatureRequests { "testMode"?: boolean; "signatureRequestId"?: string; @@ -32,7 +31,6 @@ export declare class BulkSendJobGetResponseSignatureRequests { "responseData"?: Array | null; "signatures"?: Array; "bulkSendJobId"?: string; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/index.d.ts b/sdks/node/types/model/index.d.ts index df70f0803..e34120091 100644 --- a/sdks/node/types/model/index.d.ts +++ b/sdks/node/types/model/index.d.ts @@ -91,7 +91,6 @@ import { SignatureRequestResponseDataValueTextMerge } from "./signatureRequestRe import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; import { SignatureRequestSendRequest } from "./signatureRequestSendRequest"; import { SignatureRequestSendWithTemplateRequest } from "./signatureRequestSendWithTemplateRequest"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; import { SignatureRequestUpdateRequest } from "./signatureRequestUpdateRequest"; import { SubAttachment } from "./subAttachment"; import { SubBulkSignerList } from "./subBulkSignerList"; @@ -201,4 +200,4 @@ export declare let enumsMap: { export declare let typeMap: { [index: string]: any; }; -export { AccountCreateRequest, AccountCreateResponse, AccountGetResponse, AccountResponse, AccountResponseQuotas, AccountResponseSettings, AccountResponseUsage, AccountUpdateRequest, AccountVerifyRequest, AccountVerifyResponse, AccountVerifyResponseAccount, ApiAppCreateRequest, ApiAppGetResponse, ApiAppListResponse, ApiAppResponse, ApiAppResponseOAuth, ApiAppResponseOptions, ApiAppResponseOwnerAccount, ApiAppResponseWhiteLabelingOptions, ApiAppUpdateRequest, ApiKeyAuth, AttributeTypeMap, Authentication, BulkSendJobGetResponse, BulkSendJobGetResponseSignatureRequests, BulkSendJobListResponse, BulkSendJobResponse, BulkSendJobSendResponse, EmbeddedEditUrlRequest, EmbeddedEditUrlResponse, EmbeddedEditUrlResponseEmbedded, EmbeddedSignUrlResponse, EmbeddedSignUrlResponseEmbedded, ErrorResponse, ErrorResponseError, EventCallbackHelper, EventCallbackRequest, EventCallbackRequestEvent, EventCallbackRequestEventMetadata, FaxGetResponse, FaxLineAddUserRequest, FaxLineAreaCodeGetCountryEnum, FaxLineAreaCodeGetProvinceEnum, FaxLineAreaCodeGetResponse, FaxLineAreaCodeGetStateEnum, FaxLineCreateRequest, FaxLineDeleteRequest, FaxLineListResponse, FaxLineRemoveUserRequest, FaxLineResponse, FaxLineResponseFaxLine, FaxListResponse, FaxResponse, FaxResponseTransmission, FaxSendRequest, FileResponse, FileResponseDataUri, HttpBasicAuth, HttpBearerAuth, Interceptor, ListInfoResponse, OAuth, OAuthTokenGenerateRequest, OAuthTokenRefreshRequest, OAuthTokenResponse, ObjectSerializer, ReportCreateRequest, ReportCreateResponse, ReportResponse, RequestDetailedFile, RequestFile, SignatureRequestBulkCreateEmbeddedWithTemplateRequest, SignatureRequestBulkSendWithTemplateRequest, SignatureRequestCreateEmbeddedRequest, SignatureRequestCreateEmbeddedWithTemplateRequest, SignatureRequestEditEmbeddedRequest, SignatureRequestEditEmbeddedWithTemplateRequest, SignatureRequestEditRequest, SignatureRequestEditWithTemplateRequest, SignatureRequestGetResponse, SignatureRequestListResponse, SignatureRequestRemindRequest, SignatureRequestResponse, SignatureRequestResponseAttachment, SignatureRequestResponseCustomFieldBase, SignatureRequestResponseCustomFieldCheckbox, SignatureRequestResponseCustomFieldText, SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataBase, SignatureRequestResponseDataTypeEnum, SignatureRequestResponseDataValueCheckbox, SignatureRequestResponseDataValueCheckboxMerge, SignatureRequestResponseDataValueDateSigned, SignatureRequestResponseDataValueDropdown, SignatureRequestResponseDataValueInitials, SignatureRequestResponseDataValueRadio, SignatureRequestResponseDataValueSignature, SignatureRequestResponseDataValueText, SignatureRequestResponseDataValueTextMerge, SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, SignatureRequestSignerExperience, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, SubBulkSignerListCustomField, SubCC, SubCustomField, SubEditorOptions, SubFieldOptions, SubFormFieldGroup, SubFormFieldRule, SubFormFieldRuleAction, SubFormFieldRuleTrigger, SubFormFieldsPerDocumentBase, SubFormFieldsPerDocumentCheckbox, SubFormFieldsPerDocumentCheckboxMerge, SubFormFieldsPerDocumentDateSigned, SubFormFieldsPerDocumentDropdown, SubFormFieldsPerDocumentFontEnum, SubFormFieldsPerDocumentHyperlink, SubFormFieldsPerDocumentInitials, SubFormFieldsPerDocumentRadio, SubFormFieldsPerDocumentSignature, SubFormFieldsPerDocumentText, SubFormFieldsPerDocumentTextMerge, SubFormFieldsPerDocumentTypeEnum, SubMergeField, SubOAuth, SubOptions, SubSignatureRequestGroupedSigners, SubSignatureRequestSigner, SubSignatureRequestTemplateSigner, SubSigningOptions, SubTeamResponse, SubTemplateRole, SubUnclaimedDraftSigner, SubUnclaimedDraftTemplateSigner, SubUpdateFormField, SubWhiteLabelingOptions, TeamAddMemberRequest, TeamCreateRequest, TeamGetInfoResponse, TeamGetResponse, TeamInfoResponse, TeamInviteResponse, TeamInvitesResponse, TeamMemberResponse, TeamMembersResponse, TeamParentResponse, TeamRemoveMemberRequest, TeamResponse, TeamSubTeamsResponse, TeamUpdateRequest, TemplateAddUserRequest, TemplateCreateEmbeddedDraftRequest, TemplateCreateEmbeddedDraftResponse, TemplateCreateEmbeddedDraftResponseTemplate, TemplateCreateRequest, TemplateCreateResponse, TemplateCreateResponseTemplate, TemplateGetResponse, TemplateListResponse, TemplateRemoveUserRequest, TemplateResponse, TemplateResponseAccount, TemplateResponseAccountQuota, TemplateResponseCCRole, TemplateResponseDocument, TemplateResponseDocumentCustomFieldBase, TemplateResponseDocumentCustomFieldCheckbox, TemplateResponseDocumentCustomFieldText, TemplateResponseDocumentFieldGroup, TemplateResponseDocumentFieldGroupRule, TemplateResponseDocumentFormFieldBase, TemplateResponseDocumentFormFieldCheckbox, TemplateResponseDocumentFormFieldDateSigned, TemplateResponseDocumentFormFieldDropdown, TemplateResponseDocumentFormFieldHyperlink, TemplateResponseDocumentFormFieldInitials, TemplateResponseDocumentFormFieldRadio, TemplateResponseDocumentFormFieldSignature, TemplateResponseDocumentFormFieldText, TemplateResponseDocumentStaticFieldBase, TemplateResponseDocumentStaticFieldCheckbox, TemplateResponseDocumentStaticFieldDateSigned, TemplateResponseDocumentStaticFieldDropdown, TemplateResponseDocumentStaticFieldHyperlink, TemplateResponseDocumentStaticFieldInitials, TemplateResponseDocumentStaticFieldRadio, TemplateResponseDocumentStaticFieldSignature, TemplateResponseDocumentStaticFieldText, TemplateResponseFieldAvgTextLength, TemplateResponseSignerRole, TemplateUpdateFilesRequest, TemplateUpdateFilesResponse, TemplateUpdateFilesResponseTemplate, TemplateUpdateRequest, UnclaimedDraftCreateEmbeddedRequest, UnclaimedDraftCreateEmbeddedWithTemplateRequest, UnclaimedDraftCreateRequest, UnclaimedDraftCreateResponse, UnclaimedDraftEditAndResendRequest, UnclaimedDraftResponse, VoidAuth, WarningResponse, }; +export { AccountCreateRequest, AccountCreateResponse, AccountGetResponse, AccountResponse, AccountResponseQuotas, AccountResponseSettings, AccountResponseUsage, AccountUpdateRequest, AccountVerifyRequest, AccountVerifyResponse, AccountVerifyResponseAccount, ApiAppCreateRequest, ApiAppGetResponse, ApiAppListResponse, ApiAppResponse, ApiAppResponseOAuth, ApiAppResponseOptions, ApiAppResponseOwnerAccount, ApiAppResponseWhiteLabelingOptions, ApiAppUpdateRequest, ApiKeyAuth, AttributeTypeMap, Authentication, BulkSendJobGetResponse, BulkSendJobGetResponseSignatureRequests, BulkSendJobListResponse, BulkSendJobResponse, BulkSendJobSendResponse, EmbeddedEditUrlRequest, EmbeddedEditUrlResponse, EmbeddedEditUrlResponseEmbedded, EmbeddedSignUrlResponse, EmbeddedSignUrlResponseEmbedded, ErrorResponse, ErrorResponseError, EventCallbackHelper, EventCallbackRequest, EventCallbackRequestEvent, EventCallbackRequestEventMetadata, FaxGetResponse, FaxLineAddUserRequest, FaxLineAreaCodeGetCountryEnum, FaxLineAreaCodeGetProvinceEnum, FaxLineAreaCodeGetResponse, FaxLineAreaCodeGetStateEnum, FaxLineCreateRequest, FaxLineDeleteRequest, FaxLineListResponse, FaxLineRemoveUserRequest, FaxLineResponse, FaxLineResponseFaxLine, FaxListResponse, FaxResponse, FaxResponseTransmission, FaxSendRequest, FileResponse, FileResponseDataUri, HttpBasicAuth, HttpBearerAuth, Interceptor, ListInfoResponse, OAuth, OAuthTokenGenerateRequest, OAuthTokenRefreshRequest, OAuthTokenResponse, ObjectSerializer, ReportCreateRequest, ReportCreateResponse, ReportResponse, RequestDetailedFile, RequestFile, SignatureRequestBulkCreateEmbeddedWithTemplateRequest, SignatureRequestBulkSendWithTemplateRequest, SignatureRequestCreateEmbeddedRequest, SignatureRequestCreateEmbeddedWithTemplateRequest, SignatureRequestEditEmbeddedRequest, SignatureRequestEditEmbeddedWithTemplateRequest, SignatureRequestEditRequest, SignatureRequestEditWithTemplateRequest, SignatureRequestGetResponse, SignatureRequestListResponse, SignatureRequestRemindRequest, SignatureRequestResponse, SignatureRequestResponseAttachment, SignatureRequestResponseCustomFieldBase, SignatureRequestResponseCustomFieldCheckbox, SignatureRequestResponseCustomFieldText, SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataBase, SignatureRequestResponseDataTypeEnum, SignatureRequestResponseDataValueCheckbox, SignatureRequestResponseDataValueCheckboxMerge, SignatureRequestResponseDataValueDateSigned, SignatureRequestResponseDataValueDropdown, SignatureRequestResponseDataValueInitials, SignatureRequestResponseDataValueRadio, SignatureRequestResponseDataValueSignature, SignatureRequestResponseDataValueText, SignatureRequestResponseDataValueTextMerge, SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, SubBulkSignerListCustomField, SubCC, SubCustomField, SubEditorOptions, SubFieldOptions, SubFormFieldGroup, SubFormFieldRule, SubFormFieldRuleAction, SubFormFieldRuleTrigger, SubFormFieldsPerDocumentBase, SubFormFieldsPerDocumentCheckbox, SubFormFieldsPerDocumentCheckboxMerge, SubFormFieldsPerDocumentDateSigned, SubFormFieldsPerDocumentDropdown, SubFormFieldsPerDocumentFontEnum, SubFormFieldsPerDocumentHyperlink, SubFormFieldsPerDocumentInitials, SubFormFieldsPerDocumentRadio, SubFormFieldsPerDocumentSignature, SubFormFieldsPerDocumentText, SubFormFieldsPerDocumentTextMerge, SubFormFieldsPerDocumentTypeEnum, SubMergeField, SubOAuth, SubOptions, SubSignatureRequestGroupedSigners, SubSignatureRequestSigner, SubSignatureRequestTemplateSigner, SubSigningOptions, SubTeamResponse, SubTemplateRole, SubUnclaimedDraftSigner, SubUnclaimedDraftTemplateSigner, SubUpdateFormField, SubWhiteLabelingOptions, TeamAddMemberRequest, TeamCreateRequest, TeamGetInfoResponse, TeamGetResponse, TeamInfoResponse, TeamInviteResponse, TeamInvitesResponse, TeamMemberResponse, TeamMembersResponse, TeamParentResponse, TeamRemoveMemberRequest, TeamResponse, TeamSubTeamsResponse, TeamUpdateRequest, TemplateAddUserRequest, TemplateCreateEmbeddedDraftRequest, TemplateCreateEmbeddedDraftResponse, TemplateCreateEmbeddedDraftResponseTemplate, TemplateCreateRequest, TemplateCreateResponse, TemplateCreateResponseTemplate, TemplateGetResponse, TemplateListResponse, TemplateRemoveUserRequest, TemplateResponse, TemplateResponseAccount, TemplateResponseAccountQuota, TemplateResponseCCRole, TemplateResponseDocument, TemplateResponseDocumentCustomFieldBase, TemplateResponseDocumentCustomFieldCheckbox, TemplateResponseDocumentCustomFieldText, TemplateResponseDocumentFieldGroup, TemplateResponseDocumentFieldGroupRule, TemplateResponseDocumentFormFieldBase, TemplateResponseDocumentFormFieldCheckbox, TemplateResponseDocumentFormFieldDateSigned, TemplateResponseDocumentFormFieldDropdown, TemplateResponseDocumentFormFieldHyperlink, TemplateResponseDocumentFormFieldInitials, TemplateResponseDocumentFormFieldRadio, TemplateResponseDocumentFormFieldSignature, TemplateResponseDocumentFormFieldText, TemplateResponseDocumentStaticFieldBase, TemplateResponseDocumentStaticFieldCheckbox, TemplateResponseDocumentStaticFieldDateSigned, TemplateResponseDocumentStaticFieldDropdown, TemplateResponseDocumentStaticFieldHyperlink, TemplateResponseDocumentStaticFieldInitials, TemplateResponseDocumentStaticFieldRadio, TemplateResponseDocumentStaticFieldSignature, TemplateResponseDocumentStaticFieldText, TemplateResponseFieldAvgTextLength, TemplateResponseSignerRole, TemplateUpdateFilesRequest, TemplateUpdateFilesResponse, TemplateUpdateFilesResponseTemplate, TemplateUpdateRequest, UnclaimedDraftCreateEmbeddedRequest, UnclaimedDraftCreateEmbeddedWithTemplateRequest, UnclaimedDraftCreateRequest, UnclaimedDraftCreateResponse, UnclaimedDraftEditAndResendRequest, UnclaimedDraftResponse, VoidAuth, WarningResponse, }; diff --git a/sdks/node/types/model/signatureRequestResponse.d.ts b/sdks/node/types/model/signatureRequestResponse.d.ts index 20b9788e1..a7420b6e9 100644 --- a/sdks/node/types/model/signatureRequestResponse.d.ts +++ b/sdks/node/types/model/signatureRequestResponse.d.ts @@ -3,7 +3,6 @@ import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAt import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestResponseCustomFieldBase"; import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; export declare class SignatureRequestResponse { "testMode"?: boolean; "signatureRequestId"?: string; @@ -32,7 +31,6 @@ export declare class SignatureRequestResponse { "responseData"?: Array | null; "signatures"?: Array; "bulkSendJobId"?: string | null; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/signatureRequestSignerExperience.d.ts b/sdks/node/types/model/signatureRequestSignerExperience.d.ts deleted file mode 100644 index 46f81da2b..000000000 --- a/sdks/node/types/model/signatureRequestSignerExperience.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { AttributeTypeMap } from "./"; -export declare class SignatureRequestSignerExperience { - "formView": SignatureRequestSignerExperience.FormViewEnum; - static discriminator: string | undefined; - static attributeTypeMap: AttributeTypeMap; - static getAttributeTypeMap(): AttributeTypeMap; - static init(data: any): SignatureRequestSignerExperience; -} -export declare namespace SignatureRequestSignerExperience { - enum FormViewEnum { - Disabled = "disabled", - Enabled = "enabled", - EnabledByDefault = "enabled_by_default", - Forced = "forced" - } -} diff --git a/sdks/node/types/model/templateResponse.d.ts b/sdks/node/types/model/templateResponse.d.ts index 1b465f6ad..53eb191ec 100644 --- a/sdks/node/types/model/templateResponse.d.ts +++ b/sdks/node/types/model/templateResponse.d.ts @@ -1,6 +1,5 @@ import { AttributeTypeMap } from "./"; import { SignatureRequestResponseAttachment } from "./signatureRequestResponseAttachment"; -import { SignatureRequestSignerExperience } from "./signatureRequestSignerExperience"; import { TemplateResponseAccount } from "./templateResponseAccount"; import { TemplateResponseCCRole } from "./templateResponseCCRole"; import { TemplateResponseDocument } from "./templateResponseDocument"; @@ -26,7 +25,6 @@ export declare class TemplateResponse { "namedFormFields"?: Array | null; "accounts"?: Array; "attachments"?: Array; - "signerExperience"?: SignatureRequestSignerExperience; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/php/README.md b/sdks/php/README.md index f1efbf504..30c3cc8f7 100644 --- a/sdks/php/README.md +++ b/sdks/php/README.md @@ -316,7 +316,6 @@ All URIs are relative to *https://api.hellosign.com/v3* - [SignatureRequestResponseSignatures](docs/Model/SignatureRequestResponseSignatures.md) - [SignatureRequestSendRequest](docs/Model/SignatureRequestSendRequest.md) - [SignatureRequestSendWithTemplateRequest](docs/Model/SignatureRequestSendWithTemplateRequest.md) -- [SignatureRequestSignerExperience](docs/Model/SignatureRequestSignerExperience.md) - [SignatureRequestUpdateRequest](docs/Model/SignatureRequestUpdateRequest.md) - [SubAttachment](docs/Model/SubAttachment.md) - [SubBulkSignerList](docs/Model/SubBulkSignerList.md) diff --git a/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md b/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md index 9ae85f6df..247951d28 100644 --- a/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md @@ -31,6 +31,5 @@ Name | Type | Description | Notes | `response_data` | [```\Dropbox\Sign\Model\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. | | | `signatures` | [```\Dropbox\Sign\Model\SignatureRequestResponseSignatures[]```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```string``` | The id of the BulkSendJob. | | -| `signer_experience` | [```\Dropbox\Sign\Model\SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SignatureRequestResponse.md b/sdks/php/docs/Model/SignatureRequestResponse.md index 0b9701537..bb04b5d30 100644 --- a/sdks/php/docs/Model/SignatureRequestResponse.md +++ b/sdks/php/docs/Model/SignatureRequestResponse.md @@ -31,6 +31,5 @@ Name | Type | Description | Notes | `response_data` | [```\Dropbox\Sign\Model\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. | | | `signatures` | [```\Dropbox\Sign\Model\SignatureRequestResponseSignatures[]```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```string``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signer_experience` | [```\Dropbox\Sign\Model\SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SignatureRequestSignerExperience.md b/sdks/php/docs/Model/SignatureRequestSignerExperience.md deleted file mode 100644 index 7ac28f108..000000000 --- a/sdks/php/docs/Model/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,11 +0,0 @@ -# # SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -| `form_view`*_required_ | ```string``` | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/TemplateResponse.md b/sdks/php/docs/Model/TemplateResponse.md index 1bd632c45..3a7dc2f03 100644 --- a/sdks/php/docs/Model/TemplateResponse.md +++ b/sdks/php/docs/Model/TemplateResponse.md @@ -22,6 +22,5 @@ Name | Type | Description | Notes | `named_form_fields` | [```\Dropbox\Sign\Model\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. | | | `accounts` | [```\Dropbox\Sign\Model\TemplateResponseAccount[]```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```\Dropbox\Sign\Model\SignatureRequestResponseAttachment[]```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signer_experience` | [```\Dropbox\Sign\Model\SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php b/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php index 886511a80..f40d42b60 100644 --- a/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php +++ b/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php @@ -82,7 +82,6 @@ class BulkSendJobGetResponseSignatureRequests implements ModelInterface, ArrayAc 'response_data' => '\Dropbox\Sign\Model\SignatureRequestResponseDataBase[]', 'signatures' => '\Dropbox\Sign\Model\SignatureRequestResponseSignatures[]', 'bulk_send_job_id' => 'string', - 'signer_experience' => '\Dropbox\Sign\Model\SignatureRequestSignerExperience', ]; /** @@ -118,7 +117,6 @@ class BulkSendJobGetResponseSignatureRequests implements ModelInterface, ArrayAc 'response_data' => null, 'signatures' => null, 'bulk_send_job_id' => null, - 'signer_experience' => null, ]; /** @@ -152,7 +150,6 @@ class BulkSendJobGetResponseSignatureRequests implements ModelInterface, ArrayAc 'response_data' => true, 'signatures' => false, 'bulk_send_job_id' => false, - 'signer_experience' => false, ]; /** @@ -258,7 +255,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'response_data', 'signatures' => 'signatures', 'bulk_send_job_id' => 'bulk_send_job_id', - 'signer_experience' => 'signer_experience', ]; /** @@ -292,7 +288,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'setResponseData', 'signatures' => 'setSignatures', 'bulk_send_job_id' => 'setBulkSendJobId', - 'signer_experience' => 'setSignerExperience', ]; /** @@ -326,7 +321,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'getResponseData', 'signatures' => 'getSignatures', 'bulk_send_job_id' => 'getBulkSendJobId', - 'signer_experience' => 'getSignerExperience', ]; /** @@ -410,7 +404,6 @@ public function __construct(?array $data = null) $this->setIfExists('response_data', $data ?? [], null); $this->setIfExists('signatures', $data ?? [], null); $this->setIfExists('bulk_send_job_id', $data ?? [], null); - $this->setIfExists('signer_experience', $data ?? [], null); } /** @@ -1222,33 +1215,6 @@ public function setBulkSendJobId(?string $bulk_send_job_id) return $this; } - /** - * Gets signer_experience - * - * @return SignatureRequestSignerExperience|null - */ - public function getSignerExperience() - { - return $this->container['signer_experience']; - } - - /** - * Sets signer_experience - * - * @param SignatureRequestSignerExperience|null $signer_experience signer_experience - * - * @return self - */ - public function setSignerExperience(?SignatureRequestSignerExperience $signer_experience) - { - if (is_null($signer_experience)) { - throw new InvalidArgumentException('non-nullable signer_experience cannot be null'); - } - $this->container['signer_experience'] = $signer_experience; - - return $this; - } - /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/php/src/Model/SignatureRequestResponse.php b/sdks/php/src/Model/SignatureRequestResponse.php index 47544570b..6993121e8 100644 --- a/sdks/php/src/Model/SignatureRequestResponse.php +++ b/sdks/php/src/Model/SignatureRequestResponse.php @@ -83,7 +83,6 @@ class SignatureRequestResponse implements ModelInterface, ArrayAccess, JsonSeria 'response_data' => '\Dropbox\Sign\Model\SignatureRequestResponseDataBase[]', 'signatures' => '\Dropbox\Sign\Model\SignatureRequestResponseSignatures[]', 'bulk_send_job_id' => 'string', - 'signer_experience' => '\Dropbox\Sign\Model\SignatureRequestSignerExperience', ]; /** @@ -119,7 +118,6 @@ class SignatureRequestResponse implements ModelInterface, ArrayAccess, JsonSeria 'response_data' => null, 'signatures' => null, 'bulk_send_job_id' => null, - 'signer_experience' => null, ]; /** @@ -153,7 +151,6 @@ class SignatureRequestResponse implements ModelInterface, ArrayAccess, JsonSeria 'response_data' => true, 'signatures' => false, 'bulk_send_job_id' => true, - 'signer_experience' => false, ]; /** @@ -259,7 +256,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'response_data', 'signatures' => 'signatures', 'bulk_send_job_id' => 'bulk_send_job_id', - 'signer_experience' => 'signer_experience', ]; /** @@ -293,7 +289,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'setResponseData', 'signatures' => 'setSignatures', 'bulk_send_job_id' => 'setBulkSendJobId', - 'signer_experience' => 'setSignerExperience', ]; /** @@ -327,7 +322,6 @@ public function isNullableSetToNull(string $property): bool 'response_data' => 'getResponseData', 'signatures' => 'getSignatures', 'bulk_send_job_id' => 'getBulkSendJobId', - 'signer_experience' => 'getSignerExperience', ]; /** @@ -411,7 +405,6 @@ public function __construct(?array $data = null) $this->setIfExists('response_data', $data ?? [], null); $this->setIfExists('signatures', $data ?? [], null); $this->setIfExists('bulk_send_job_id', $data ?? [], null); - $this->setIfExists('signer_experience', $data ?? [], null); } /** @@ -1230,33 +1223,6 @@ public function setBulkSendJobId(?string $bulk_send_job_id) return $this; } - /** - * Gets signer_experience - * - * @return SignatureRequestSignerExperience|null - */ - public function getSignerExperience() - { - return $this->container['signer_experience']; - } - - /** - * Sets signer_experience - * - * @param SignatureRequestSignerExperience|null $signer_experience signer_experience - * - * @return self - */ - public function setSignerExperience(?SignatureRequestSignerExperience $signer_experience) - { - if (is_null($signer_experience)) { - throw new InvalidArgumentException('non-nullable signer_experience cannot be null'); - } - $this->container['signer_experience'] = $signer_experience; - - return $this; - } - /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/php/src/Model/SignatureRequestSignerExperience.php b/sdks/php/src/Model/SignatureRequestSignerExperience.php deleted file mode 100644 index a6d40e6a4..000000000 --- a/sdks/php/src/Model/SignatureRequestSignerExperience.php +++ /dev/null @@ -1,456 +0,0 @@ - - */ -class SignatureRequestSignerExperience implements ModelInterface, ArrayAccess, JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'SignatureRequestSignerExperience'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'form_view' => 'string', - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'form_view' => null, - ]; - - /** - * Array of nullable properties. Used for (de)serialization - * - * @var bool[] - */ - protected static array $openAPINullables = [ - 'form_view' => false, - ]; - - /** - * If a nullable field gets set to null, insert it here - * - * @var bool[] - */ - protected array $openAPINullablesSetToNull = []; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of nullable properties - */ - protected static function openAPINullables(): array - { - return self::$openAPINullables; - } - - /** - * Array of nullable field names deliberately set to null - * - * @return bool[] - */ - private function getOpenAPINullablesSetToNull(): array - { - return $this->openAPINullablesSetToNull; - } - - /** - * Setter - Array of nullable field names deliberately set to null - * - * @param bool[] $openAPINullablesSetToNull - */ - private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void - { - $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; - } - - /** - * Checks if a property is nullable - */ - public static function isNullable(string $property): bool - { - return self::openAPINullables()[$property] ?? false; - } - - /** - * Checks if a nullable property is set to null. - */ - public function isNullableSetToNull(string $property): bool - { - return in_array($property, $this->getOpenAPINullablesSetToNull(), true); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'form_view' => 'form_view', - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'form_view' => 'setFormView', - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'form_view' => 'getFormView', - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - public const FORM_VIEW_DISABLED = 'disabled'; - public const FORM_VIEW_ENABLED = 'enabled'; - public const FORM_VIEW_ENABLED_BY_DEFAULT = 'enabled_by_default'; - public const FORM_VIEW_FORCED = 'forced'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormViewAllowableValues() - { - return [ - self::FORM_VIEW_DISABLED, - self::FORM_VIEW_ENABLED, - self::FORM_VIEW_ENABLED_BY_DEFAULT, - self::FORM_VIEW_FORCED, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[]|null $data Associated array of property values - * initializing the model - */ - public function __construct(?array $data = null) - { - $this->setIfExists('form_view', $data ?? [], null); - } - - /** - * @deprecated use ::init() - */ - public static function fromArray(array $data): SignatureRequestSignerExperience - { - return self::init($data); - } - - /** - * Attempt to instantiate and hydrate a new instance of this class - */ - public static function init(array $data): SignatureRequestSignerExperience - { - /** @var SignatureRequestSignerExperience */ - return ObjectSerializer::deserialize( - $data, - SignatureRequestSignerExperience::class, - ); - } - - /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string|int|object|array|mixed $defaultValue - */ - private function setIfExists(string $variableName, array $fields, $defaultValue): void - { - if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { - $this->openAPINullablesSetToNull[] = $variableName; - } - - $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['form_view'] === null) { - $invalidProperties[] = "'form_view' can't be null"; - } - $allowedValues = $this->getFormViewAllowableValues(); - if (!is_null($this->container['form_view']) && !in_array($this->container['form_view'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'form_view', must be one of '%s'", - $this->container['form_view'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - /** - * Gets form_view - * - * @return string - */ - public function getFormView() - { - return $this->container['form_view']; - } - - /** - * Sets form_view - * - * @param string $form_view Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - * - * @return self - */ - public function setFormView(string $form_view) - { - if (is_null($form_view)) { - throw new InvalidArgumentException('non-nullable form_view cannot be null'); - } - $allowedValues = $this->getFormViewAllowableValues(); - if (!in_array($form_view, $allowedValues, true)) { - throw new InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'form_view', must be one of '%s'", - $form_view, - implode("', '", $allowedValues) - ) - ); - } - $this->container['form_view'] = $form_view; - - return $this; - } - - /** - * Returns true if offset exists. False otherwise. - * - * @param int $offset Offset - */ - #[ReturnTypeWillChange] - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param int $offset Offset - * - * @return mixed|null - */ - #[ReturnTypeWillChange] - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - */ - #[ReturnTypeWillChange] - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param int $offset Offset - */ - #[ReturnTypeWillChange] - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @see https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource - */ - #[ReturnTypeWillChange] - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_UNESCAPED_SLASHES - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} diff --git a/sdks/php/src/Model/TemplateResponse.php b/sdks/php/src/Model/TemplateResponse.php index a987f6671..3eac21041 100644 --- a/sdks/php/src/Model/TemplateResponse.php +++ b/sdks/php/src/Model/TemplateResponse.php @@ -74,7 +74,6 @@ class TemplateResponse implements ModelInterface, ArrayAccess, JsonSerializable 'named_form_fields' => '\Dropbox\Sign\Model\TemplateResponseDocumentFormFieldBase[]', 'accounts' => '\Dropbox\Sign\Model\TemplateResponseAccount[]', 'attachments' => '\Dropbox\Sign\Model\SignatureRequestResponseAttachment[]', - 'signer_experience' => '\Dropbox\Sign\Model\SignatureRequestSignerExperience', ]; /** @@ -101,7 +100,6 @@ class TemplateResponse implements ModelInterface, ArrayAccess, JsonSerializable 'named_form_fields' => null, 'accounts' => null, 'attachments' => null, - 'signer_experience' => null, ]; /** @@ -126,7 +124,6 @@ class TemplateResponse implements ModelInterface, ArrayAccess, JsonSerializable 'named_form_fields' => true, 'accounts' => false, 'attachments' => false, - 'signer_experience' => false, ]; /** @@ -223,7 +220,6 @@ public function isNullableSetToNull(string $property): bool 'named_form_fields' => 'named_form_fields', 'accounts' => 'accounts', 'attachments' => 'attachments', - 'signer_experience' => 'signer_experience', ]; /** @@ -248,7 +244,6 @@ public function isNullableSetToNull(string $property): bool 'named_form_fields' => 'setNamedFormFields', 'accounts' => 'setAccounts', 'attachments' => 'setAttachments', - 'signer_experience' => 'setSignerExperience', ]; /** @@ -273,7 +268,6 @@ public function isNullableSetToNull(string $property): bool 'named_form_fields' => 'getNamedFormFields', 'accounts' => 'getAccounts', 'attachments' => 'getAttachments', - 'signer_experience' => 'getSignerExperience', ]; /** @@ -348,7 +342,6 @@ public function __construct(?array $data = null) $this->setIfExists('named_form_fields', $data ?? [], null); $this->setIfExists('accounts', $data ?? [], null); $this->setIfExists('attachments', $data ?? [], null); - $this->setIfExists('signer_experience', $data ?? [], null); } /** @@ -865,33 +858,6 @@ public function setAttachments(?array $attachments) return $this; } - /** - * Gets signer_experience - * - * @return SignatureRequestSignerExperience|null - */ - public function getSignerExperience() - { - return $this->container['signer_experience']; - } - - /** - * Sets signer_experience - * - * @param SignatureRequestSignerExperience|null $signer_experience signer_experience - * - * @return self - */ - public function setSignerExperience(?SignatureRequestSignerExperience $signer_experience) - { - if (is_null($signer_experience)) { - throw new InvalidArgumentException('non-nullable signer_experience cannot be null'); - } - $this->container['signer_experience'] = $signer_experience; - - return $this; - } - /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/python/README.md b/sdks/python/README.md index a87febcf4..d9a3c0faf 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -272,7 +272,6 @@ Class | Method | HTTP request | Description - [SignatureRequestResponseSignatures](docs/SignatureRequestResponseSignatures.md) - [SignatureRequestSendRequest](docs/SignatureRequestSendRequest.md) - [SignatureRequestSendWithTemplateRequest](docs/SignatureRequestSendWithTemplateRequest.md) - - [SignatureRequestSignerExperience](docs/SignatureRequestSignerExperience.md) - [SignatureRequestUpdateRequest](docs/SignatureRequestUpdateRequest.md) - [SubAttachment](docs/SubAttachment.md) - [SubBulkSignerList](docs/SubBulkSignerList.md) diff --git a/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md index 1735800ca..b697653fd 100644 --- a/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md @@ -30,7 +30,6 @@ Name | Type | Description | Notes | `response_data` | [```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. | | | `signatures` | [```List[SignatureRequestResponseSignatures]```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```str``` | The id of the BulkSendJob. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[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/sdks/python/docs/SignatureRequestResponse.md b/sdks/python/docs/SignatureRequestResponse.md index 57d863bc1..92a517b3f 100644 --- a/sdks/python/docs/SignatureRequestResponse.md +++ b/sdks/python/docs/SignatureRequestResponse.md @@ -30,7 +30,6 @@ Name | Type | Description | Notes | `response_data` | [```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. | | | `signatures` | [```List[SignatureRequestResponseSignatures]```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```str``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[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/sdks/python/docs/SignatureRequestSignerExperience.md b/sdks/python/docs/SignatureRequestSignerExperience.md deleted file mode 100644 index f9a09d17c..000000000 --- a/sdks/python/docs/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,12 +0,0 @@ -# SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -| `form_view`*_required_ | ```str``` | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - -[[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/sdks/python/docs/TemplateResponse.md b/sdks/python/docs/TemplateResponse.md index ca48138fa..0eb88aa1b 100644 --- a/sdks/python/docs/TemplateResponse.md +++ b/sdks/python/docs/TemplateResponse.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes | `named_form_fields` | [```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. | | | `accounts` | [```List[TemplateResponseAccount]```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```List[SignatureRequestResponseAttachment]```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | [[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/sdks/python/dropbox_sign/__init__.py b/sdks/python/dropbox_sign/__init__.py index 7e44bb7a9..7331d409c 100644 --- a/sdks/python/dropbox_sign/__init__.py +++ b/sdks/python/dropbox_sign/__init__.py @@ -204,9 +204,6 @@ from dropbox_sign.models.signature_request_send_with_template_request import ( SignatureRequestSendWithTemplateRequest, ) -from dropbox_sign.models.signature_request_signer_experience import ( - SignatureRequestSignerExperience, -) from dropbox_sign.models.signature_request_update_request import ( SignatureRequestUpdateRequest, ) diff --git a/sdks/python/dropbox_sign/models/__init__.py b/sdks/python/dropbox_sign/models/__init__.py index 2ca557712..e7fdb2e48 100644 --- a/sdks/python/dropbox_sign/models/__init__.py +++ b/sdks/python/dropbox_sign/models/__init__.py @@ -187,9 +187,6 @@ from dropbox_sign.models.signature_request_send_with_template_request import ( SignatureRequestSendWithTemplateRequest, ) -from dropbox_sign.models.signature_request_signer_experience import ( - SignatureRequestSignerExperience, -) from dropbox_sign.models.signature_request_update_request import ( SignatureRequestUpdateRequest, ) diff --git a/sdks/python/dropbox_sign/models/bulk_send_job_get_response_signature_requests.py b/sdks/python/dropbox_sign/models/bulk_send_job_get_response_signature_requests.py index ca6b919bd..ded85043d 100644 --- a/sdks/python/dropbox_sign/models/bulk_send_job_get_response_signature_requests.py +++ b/sdks/python/dropbox_sign/models/bulk_send_job_get_response_signature_requests.py @@ -31,9 +31,6 @@ from dropbox_sign.models.signature_request_response_signatures import ( SignatureRequestResponseSignatures, ) -from dropbox_sign.models.signature_request_signer_experience import ( - SignatureRequestSignerExperience, -) from typing import Optional, Set from typing_extensions import Self from typing import Tuple, Union @@ -139,7 +136,6 @@ class BulkSendJobGetResponseSignatureRequests(BaseModel): bulk_send_job_id: Optional[StrictStr] = Field( default=None, description="The id of the BulkSendJob." ) - signer_experience: Optional[SignatureRequestSignerExperience] = None __properties: ClassVar[List[str]] = [ "test_mode", "signature_request_id", @@ -166,7 +162,6 @@ class BulkSendJobGetResponseSignatureRequests(BaseModel): "response_data", "signatures", "bulk_send_job_id", - "signer_experience", ] model_config = ConfigDict( @@ -247,9 +242,6 @@ def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]: if _item_signatures: _items.append(_item_signatures.to_dict()) _dict["signatures"] = _items - # override the default output from pydantic by calling `to_dict()` of signer_experience - if self.signer_experience: - _dict["signer_experience"] = self.signer_experience.to_dict() return _dict @classmethod @@ -318,11 +310,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "bulk_send_job_id": obj.get("bulk_send_job_id"), - "signer_experience": ( - SignatureRequestSignerExperience.from_dict(obj["signer_experience"]) - if obj.get("signer_experience") is not None - else None - ), } ) return _obj @@ -365,7 +352,6 @@ def openapi_types(cls) -> Dict[str, str]: "response_data": "(List[SignatureRequestResponseDataBase],)", "signatures": "(List[SignatureRequestResponseSignatures],)", "bulk_send_job_id": "(str,)", - "signer_experience": "(SignatureRequestSignerExperience,)", } @classmethod diff --git a/sdks/python/dropbox_sign/models/signature_request_response.py b/sdks/python/dropbox_sign/models/signature_request_response.py index adf0743ee..4be2db472 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response.py +++ b/sdks/python/dropbox_sign/models/signature_request_response.py @@ -31,9 +31,6 @@ from dropbox_sign.models.signature_request_response_signatures import ( SignatureRequestResponseSignatures, ) -from dropbox_sign.models.signature_request_signer_experience import ( - SignatureRequestSignerExperience, -) from typing import Optional, Set from typing_extensions import Self from typing import Tuple, Union @@ -140,7 +137,6 @@ class SignatureRequestResponse(BaseModel): default=None, description="The ID of the Bulk Send job which sent the signature request, if applicable.", ) - signer_experience: Optional[SignatureRequestSignerExperience] = None __properties: ClassVar[List[str]] = [ "test_mode", "signature_request_id", @@ -167,7 +163,6 @@ class SignatureRequestResponse(BaseModel): "response_data", "signatures", "bulk_send_job_id", - "signer_experience", ] model_config = ConfigDict( @@ -248,9 +243,6 @@ def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]: if _item_signatures: _items.append(_item_signatures.to_dict()) _dict["signatures"] = _items - # override the default output from pydantic by calling `to_dict()` of signer_experience - if self.signer_experience: - _dict["signer_experience"] = self.signer_experience.to_dict() return _dict @classmethod @@ -319,11 +311,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: else None ), "bulk_send_job_id": obj.get("bulk_send_job_id"), - "signer_experience": ( - SignatureRequestSignerExperience.from_dict(obj["signer_experience"]) - if obj.get("signer_experience") is not None - else None - ), } ) return _obj @@ -366,7 +353,6 @@ def openapi_types(cls) -> Dict[str, str]: "response_data": "(List[SignatureRequestResponseDataBase],)", "signatures": "(List[SignatureRequestResponseSignatures],)", "bulk_send_job_id": "(str,)", - "signer_experience": "(SignatureRequestSignerExperience,)", } @classmethod diff --git a/sdks/python/dropbox_sign/models/signature_request_signer_experience.py b/sdks/python/dropbox_sign/models/signature_request_signer_experience.py deleted file mode 100644 index a865f98df..000000000 --- a/sdks/python/dropbox_sign/models/signature_request_signer_experience.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding: utf-8 - -""" -Dropbox Sign API - -Dropbox Sign v3 API - -The version of the OpenAPI document: 3.0.0 -Contact: apisupport@hellosign.com -Generated by OpenAPI Generator (https://openapi-generator.tech) - -Do not edit the class manually. -""" # noqa: E501 - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self -from typing import Tuple, Union -import io -from pydantic import StrictBool - - -class SignatureRequestSignerExperience(BaseModel): - """ - Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - """ # noqa: E501 - - form_view: StrictStr = Field( - description="Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden." - ) - __properties: ClassVar[List[str]] = ["form_view"] - - @field_validator("form_view") - def form_view_validate_enum(cls, value): - """Validates the enum""" - if value not in set(["disabled", "enabled", "enabled_by_default", "forced"]): - raise ValueError( - "must be one of enum values ('disabled', 'enabled', 'enabled_by_default', 'forced')" - ) - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - arbitrary_types_allowed=True, - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - def to_json_form_params( - self, excluded_fields: Set[str] = None - ) -> List[Tuple[str, str]]: - data: List[Tuple[str, str]] = [] - - for key, value in self.to_dict(excluded_fields).items(): - if isinstance(value, (int, str, bool)): - data.append((key, value)) - else: - data.append((key, json.dumps(value, ensure_ascii=False))) - - return data - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SignatureRequestSignerExperience from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SignatureRequestSignerExperience from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({"form_view": obj.get("form_view")}) - return _obj - - @classmethod - def init(cls, data: Any) -> Self: - """ - Attempt to instantiate and hydrate a new instance of this class - """ - if isinstance(data, str): - data = json.loads(data) - - return cls.from_dict(data) - - @classmethod - def openapi_types(cls) -> Dict[str, str]: - return { - "form_view": "(str,)", - } - - @classmethod - def openapi_type_is_array(cls, property_name: str) -> bool: - return property_name in [] diff --git a/sdks/python/dropbox_sign/models/template_response.py b/sdks/python/dropbox_sign/models/template_response.py index 2e53b955d..66d732ef5 100644 --- a/sdks/python/dropbox_sign/models/template_response.py +++ b/sdks/python/dropbox_sign/models/template_response.py @@ -22,9 +22,6 @@ from dropbox_sign.models.signature_request_response_attachment import ( SignatureRequestResponseAttachment, ) -from dropbox_sign.models.signature_request_signer_experience import ( - SignatureRequestSignerExperience, -) from dropbox_sign.models.template_response_account import TemplateResponseAccount from dropbox_sign.models.template_response_cc_role import TemplateResponseCCRole from dropbox_sign.models.template_response_document import TemplateResponseDocument @@ -106,7 +103,6 @@ class TemplateResponse(BaseModel): attachments: Optional[List[SignatureRequestResponseAttachment]] = Field( default=None, description="Signer attachments." ) - signer_experience: Optional[SignatureRequestSignerExperience] = None __properties: ClassVar[List[str]] = [ "template_id", "title", @@ -124,7 +120,6 @@ class TemplateResponse(BaseModel): "named_form_fields", "accounts", "attachments", - "signer_experience", ] model_config = ConfigDict( @@ -226,9 +221,6 @@ def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]: if _item_attachments: _items.append(_item_attachments.to_dict()) _dict["attachments"] = _items - # override the default output from pydantic by calling `to_dict()` of signer_experience - if self.signer_experience: - _dict["signer_experience"] = self.signer_experience.to_dict() return _dict @classmethod @@ -307,11 +299,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("attachments") is not None else None ), - "signer_experience": ( - SignatureRequestSignerExperience.from_dict(obj["signer_experience"]) - if obj.get("signer_experience") is not None - else None - ), } ) return _obj @@ -345,7 +332,6 @@ def openapi_types(cls) -> Dict[str, str]: "named_form_fields": "(List[TemplateResponseDocumentFormFieldBase],)", "accounts": "(List[TemplateResponseAccount],)", "attachments": "(List[SignatureRequestResponseAttachment],)", - "signer_experience": "(SignatureRequestSignerExperience,)", } @classmethod diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index dd26389bd..e925ed63a 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -276,7 +276,6 @@ All URIs are relative to *https://api.hellosign.com/v3* - [Dropbox::Sign::SignatureRequestResponseSignatures](docs/SignatureRequestResponseSignatures.md) - [Dropbox::Sign::SignatureRequestSendRequest](docs/SignatureRequestSendRequest.md) - [Dropbox::Sign::SignatureRequestSendWithTemplateRequest](docs/SignatureRequestSendWithTemplateRequest.md) - - [Dropbox::Sign::SignatureRequestSignerExperience](docs/SignatureRequestSignerExperience.md) - [Dropbox::Sign::SignatureRequestUpdateRequest](docs/SignatureRequestUpdateRequest.md) - [Dropbox::Sign::SubAttachment](docs/SubAttachment.md) - [Dropbox::Sign::SubBulkSignerList](docs/SubBulkSignerList.md) diff --git a/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md index bde57dc0c..8491cfeeb 100644 --- a/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md @@ -31,5 +31,4 @@ | `response_data` | [```Array```](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. | | | `signatures` | [```Array```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```String``` | The id of the BulkSendJob. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/ruby/docs/SignatureRequestResponse.md b/sdks/ruby/docs/SignatureRequestResponse.md index f04726ff6..f3655a0a2 100644 --- a/sdks/ruby/docs/SignatureRequestResponse.md +++ b/sdks/ruby/docs/SignatureRequestResponse.md @@ -31,5 +31,4 @@ Contains information about a signature request. | `response_data` | [```Array```](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. | | | `signatures` | [```Array```](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | | | `bulk_send_job_id` | ```String``` | The ID of the Bulk Send job which sent the signature request, if applicable. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/ruby/docs/SignatureRequestSignerExperience.md b/sdks/ruby/docs/SignatureRequestSignerExperience.md deleted file mode 100644 index 9a38226ed..000000000 --- a/sdks/ruby/docs/SignatureRequestSignerExperience.md +++ /dev/null @@ -1,10 +0,0 @@ -# Dropbox::Sign::SignatureRequestSignerExperience - -Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| `form_view`*_required_ | ```String``` | Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. | | - diff --git a/sdks/ruby/docs/TemplateResponse.md b/sdks/ruby/docs/TemplateResponse.md index 24e48f696..f5a661e9c 100644 --- a/sdks/ruby/docs/TemplateResponse.md +++ b/sdks/ruby/docs/TemplateResponse.md @@ -22,5 +22,4 @@ Contains information about the templates you and your team have created. | `named_form_fields` | [```Array```](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. | | | `accounts` | [```Array```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | | | `attachments` | [```Array```](SignatureRequestResponseAttachment.md) | Signer attachments. | | -| `signer_experience` | [```SignatureRequestSignerExperience```](SignatureRequestSignerExperience.md) | | | diff --git a/sdks/ruby/lib/dropbox-sign.rb b/sdks/ruby/lib/dropbox-sign.rb index 7c25ec0cc..729ebf6c1 100644 --- a/sdks/ruby/lib/dropbox-sign.rb +++ b/sdks/ruby/lib/dropbox-sign.rb @@ -97,7 +97,6 @@ require 'dropbox-sign/models/signature_request_response_signatures' require 'dropbox-sign/models/signature_request_send_request' require 'dropbox-sign/models/signature_request_send_with_template_request' -require 'dropbox-sign/models/signature_request_signer_experience' require 'dropbox-sign/models/signature_request_update_request' require 'dropbox-sign/models/sub_attachment' require 'dropbox-sign/models/sub_bulk_signer_list' diff --git a/sdks/ruby/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb b/sdks/ruby/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb index 5c3b2367b..603f9e568 100644 --- a/sdks/ruby/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +++ b/sdks/ruby/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb @@ -118,9 +118,6 @@ class BulkSendJobGetResponseSignatureRequests # @return [String] attr_accessor :bulk_send_job_id - # @return [SignatureRequestSignerExperience] - attr_accessor :signer_experience - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -148,8 +145,7 @@ def self.attribute_map :'attachments' => :'attachments', :'response_data' => :'response_data', :'signatures' => :'signatures', - :'bulk_send_job_id' => :'bulk_send_job_id', - :'signer_experience' => :'signer_experience' + :'bulk_send_job_id' => :'bulk_send_job_id' } end @@ -190,8 +186,7 @@ def self.openapi_types :'attachments' => :'Array', :'response_data' => :'Array', :'signatures' => :'Array', - :'bulk_send_job_id' => :'String', - :'signer_experience' => :'SignatureRequestSignerExperience' + :'bulk_send_job_id' => :'String' } end @@ -368,10 +363,6 @@ def initialize(attributes = {}) if attributes.key?(:'bulk_send_job_id') self.bulk_send_job_id = attributes[:'bulk_send_job_id'] end - - if attributes.key?(:'signer_experience') - self.signer_experience = attributes[:'signer_experience'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -416,8 +407,7 @@ def ==(o) attachments == o.attachments && response_data == o.response_data && signatures == o.signatures && - bulk_send_job_id == o.bulk_send_job_id && - signer_experience == o.signer_experience + bulk_send_job_id == o.bulk_send_job_id end # @see the `==` method @@ -429,7 +419,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [test_mode, signature_request_id, requester_email_address, title, original_title, subject, message, metadata, created_at, expires_at, is_complete, is_declined, has_error, files_url, signing_url, details_url, cc_email_addresses, signing_redirect_url, final_copy_uri, template_ids, custom_fields, attachments, response_data, signatures, bulk_send_job_id, signer_experience].hash + [test_mode, signature_request_id, requester_email_address, title, original_title, subject, message, metadata, created_at, expires_at, is_complete, is_declined, has_error, files_url, signing_url, details_url, cc_email_addresses, signing_redirect_url, final_copy_uri, template_ids, custom_fields, attachments, response_data, signatures, bulk_send_job_id].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb index 83d8bea36..e8bd41887 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb @@ -119,9 +119,6 @@ class SignatureRequestResponse # @return [String, nil] attr_accessor :bulk_send_job_id - # @return [SignatureRequestSignerExperience] - attr_accessor :signer_experience - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -149,8 +146,7 @@ def self.attribute_map :'attachments' => :'attachments', :'response_data' => :'response_data', :'signatures' => :'signatures', - :'bulk_send_job_id' => :'bulk_send_job_id', - :'signer_experience' => :'signer_experience' + :'bulk_send_job_id' => :'bulk_send_job_id' } end @@ -191,8 +187,7 @@ def self.openapi_types :'attachments' => :'Array', :'response_data' => :'Array', :'signatures' => :'Array', - :'bulk_send_job_id' => :'String', - :'signer_experience' => :'SignatureRequestSignerExperience' + :'bulk_send_job_id' => :'String' } end @@ -210,7 +205,7 @@ def self.openapi_nullable :'custom_fields', :'attachments', :'response_data', - :'bulk_send_job_id', + :'bulk_send_job_id' ]) end @@ -370,10 +365,6 @@ def initialize(attributes = {}) if attributes.key?(:'bulk_send_job_id') self.bulk_send_job_id = attributes[:'bulk_send_job_id'] end - - if attributes.key?(:'signer_experience') - self.signer_experience = attributes[:'signer_experience'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -418,8 +409,7 @@ def ==(o) attachments == o.attachments && response_data == o.response_data && signatures == o.signatures && - bulk_send_job_id == o.bulk_send_job_id && - signer_experience == o.signer_experience + bulk_send_job_id == o.bulk_send_job_id end # @see the `==` method @@ -431,7 +421,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [test_mode, signature_request_id, requester_email_address, title, original_title, subject, message, metadata, created_at, expires_at, is_complete, is_declined, has_error, files_url, signing_url, details_url, cc_email_addresses, signing_redirect_url, final_copy_uri, template_ids, custom_fields, attachments, response_data, signatures, bulk_send_job_id, signer_experience].hash + [test_mode, signature_request_id, requester_email_address, title, original_title, subject, message, metadata, created_at, expires_at, is_complete, is_declined, has_error, files_url, signing_url, details_url, cc_email_addresses, signing_redirect_url, final_copy_uri, template_ids, custom_fields, attachments, response_data, signatures, bulk_send_job_id].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_signer_experience.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_signer_experience.rb deleted file mode 100644 index 9f8e11a88..000000000 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_signer_experience.rb +++ /dev/null @@ -1,292 +0,0 @@ -=begin -#Dropbox Sign API - -#Dropbox Sign v3 API - -The version of the OpenAPI document: 3.0.0 -Contact: apisupport@hellosign.com -Generated by: https://openapi-generator.tech -Generator version: 7.12.0 - -=end - -require 'date' -require 'time' - -module Dropbox -end - -module Dropbox::Sign - # Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. - class SignatureRequestSignerExperience - # Changes the form view setting experienced by the signer. Supported versions are: - `disabled` - Form view is disabled, and the signer cannot change it - `enabled` - Form view is disabled initially, the signer can turn it on using a toggle - `enabled_by_default` - Form view is enabled initially. The signer car turn it off using a toggle - `forced` - Form view is enabled initially. The signer cannot change it, the toggle is hidden. - # @return [String] - attr_accessor :form_view - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'form_view' => :'form_view' - } - end - - # Returns attribute mapping this model knows about - def self.acceptable_attribute_map - attribute_map - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - acceptable_attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'form_view' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Returns attribute map of this model + parent - def self.merged_attributes - self.attribute_map - end - - # Attribute type mapping of this model + parent - def self.merged_types - self.openapi_types - end - - # Returns list of attributes with nullable: true of this model + parent - def self.merged_nullable - self.openapi_nullable - end - - # Attempt to instantiate and hydrate a new instance of this class - # @param [Object] data Data to be converted - # @return [SignatureRequestSignerExperience] - def self.init(data) - ApiClient.default.convert_to_type( - data, - "SignatureRequestSignerExperience" - ) || SignatureRequestSignerExperience.new - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::SignatureRequestSignerExperience` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - acceptable_attribute_map = self.class.acceptable_attribute_map - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.merged_attributes.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::SignatureRequestSignerExperience`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'form_view') - self.form_view = attributes[:'form_view'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @form_view.nil? - invalid_properties.push('invalid value for "form_view", form_view cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @form_view.nil? - form_view_validator = EnumAttributeValidator.new('String', ["disabled", "enabled", "enabled_by_default", "forced"]) - return false unless form_view_validator.valid?(@form_view) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] form_view Object to be assigned - def form_view=(form_view) - validator = EnumAttributeValidator.new('String', ["disabled", "enabled", "enabled_by_default", "forced"]) - unless validator.valid?(form_view) - fail ArgumentError, "invalid value for \"form_view\", must be one of #{validator.allowable_values}." - end - @form_view = form_view - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - form_view == o.form_view - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [form_view].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - attribute_map = self.class.merged_attributes - - self.class.merged_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - klass = Dropbox::Sign.const_get(type) - klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash(include_nil = true) - hash = {} - self.class.merged_attributes.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - next unless include_nil - is_nullable = self.class.merged_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value, include_nil) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value, include_nil = true) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v, include_nil) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v, include_nil) } - end - elsif value.respond_to? :to_hash - value.to_hash(include_nil) - else - value - end - end - end -end diff --git a/sdks/ruby/lib/dropbox-sign/models/template_response.rb b/sdks/ruby/lib/dropbox-sign/models/template_response.rb index 82bddb143..fdf944631 100644 --- a/sdks/ruby/lib/dropbox-sign/models/template_response.rb +++ b/sdks/ruby/lib/dropbox-sign/models/template_response.rb @@ -83,9 +83,6 @@ class TemplateResponse # @return [Array] attr_accessor :attachments - # @return [SignatureRequestSignerExperience] - attr_accessor :signer_experience - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -104,8 +101,7 @@ def self.attribute_map :'custom_fields' => :'custom_fields', :'named_form_fields' => :'named_form_fields', :'accounts' => :'accounts', - :'attachments' => :'attachments', - :'signer_experience' => :'signer_experience' + :'attachments' => :'attachments' } end @@ -137,8 +133,7 @@ def self.openapi_types :'custom_fields' => :'Array', :'named_form_fields' => :'Array', :'accounts' => :'Array', - :'attachments' => :'Array', - :'signer_experience' => :'SignatureRequestSignerExperience' + :'attachments' => :'Array' } end @@ -271,10 +266,6 @@ def initialize(attributes = {}) self.attachments = value end end - - if attributes.key?(:'signer_experience') - self.signer_experience = attributes[:'signer_experience'] - end end # Show invalid properties with the reasons. Usually used together with valid? @@ -310,8 +301,7 @@ def ==(o) custom_fields == o.custom_fields && named_form_fields == o.named_form_fields && accounts == o.accounts && - attachments == o.attachments && - signer_experience == o.signer_experience + attachments == o.attachments end # @see the `==` method @@ -323,7 +313,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts, attachments, signer_experience].hash + [template_id, title, message, updated_at, is_embedded, is_creator, can_edit, is_locked, metadata, signer_roles, cc_roles, documents, custom_fields, named_form_fields, accounts, attachments].hash end # Builds the object from hash diff --git a/translations/en.yaml b/translations/en.yaml index 91fb03c64..f32507e4f 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -126,7 +126,7 @@ "EmbeddedEditUrl::TEMPLATE_ID": The id of the template to edit. "EmbeddedEditUrl::TEST_MODE": Whether this is a test, locked templates will only be available for editing if this is set to `true`. Defaults to `false`. "EmbeddedEditUrl::ALLOW_FORM_VIEW": Allows signers to view the form fields before signing if set to `true`. Defaults to `false`. -"EmbeddedEditUrl::SIGNER_EXPERIENCE": TBD Form View +"EmbeddedEditUrl::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "EmbeddedSignUrl::SUMMARY": Get Embedded Sign URL "EmbeddedSignUrl::DESCRIPTION": Retrieves an embedded object containing a signature url that can be opened in an iFrame. Note that templates created via the embedded template process will only be accessible through the API. @@ -363,7 +363,7 @@ "SignatureRequestCreateEmbedded::TITLE": The title you want to assign to the SignatureRequest. "SignatureRequestCreateEmbedded::USE_TEXT_TAGS": 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`. "SignatureRequestCreateEmbedded::ALLOW_FORM_VIEW": Allows signers to view the form fields before signing if set to `true`. Defaults to `false`. -"SignatureRequestCreateEmbedded::SIGNER_EXPERIENCE": TBD Form View +"SignatureRequestCreateEmbedded::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "SignatureRequestEditEmbedded::SUMMARY": Edit Embedded Signature Request "SignatureRequestEditEmbedded::DESCRIPTION": |- @@ -390,7 +390,7 @@ "SignatureRequestCreateEmbeddedWithTemplate::TEMPLATE_IDS": Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. "SignatureRequestCreateEmbeddedWithTemplate::TEST_MODE": Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. "SignatureRequestCreateEmbeddedWithTemplate::TITLE": The title you want to assign to the SignatureRequest. -"SignatureRequestCreateEmbeddedWithTemplate::SIGNER_EXPERIENCE": TBD Form View +"SignatureRequestCreateEmbeddedWithTemplate::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "SignatureRequestCreateEmbeddedWithTemplate::POPULATE_AUTO_FILL_FIELDS": |- Controls whether [auto fill fields](https://faq.hellosign.com/hc/en-us/articles/360051467511-Auto-Fill-Fields) can automatically populate a signer's information during signing. @@ -502,7 +502,7 @@ "SignatureRequestSend::EXPIRES_AT": 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. "SignatureRequestSend::USE_PREEXISTING_FIELDS": 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`. "SignatureRequestSend::ALLOW_FORM_VIEW": Allows signers to view the form fields before signing if set to `true`. Defaults to `false`. -"SignatureRequestSend::SIGNER_EXPERIENCE": TBD Form View +"SignatureRequestSend::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "SignatureRequestEdit::SUMMARY": Edit Signature Request "SignatureRequestEdit::DESCRIPTION": |- @@ -541,7 +541,7 @@ "SignatureRequestSendWithTemplate::TEMPLATE_IDS": Use `template_ids` to create a SignatureRequest from one or more templates, in the order in which the template will be used. "SignatureRequestSendWithTemplate::TEST_MODE": Whether this is a test, the signature request will not be legally binding if set to `true`. Defaults to `false`. "SignatureRequestSendWithTemplate::TITLE": The title you want to assign to the SignatureRequest. -"SignatureRequestSendWithTemplate::SIGNER_EXPERIENCE": TBD Form View +"SignatureRequestSendWithTemplate::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "SignatureRequestEditWithTemplate::SUMMARY": Edit Signature Request With Template "SignatureRequestEditWithTemplate::DESCRIPTION": |- @@ -706,7 +706,7 @@ "TemplateCreateEmbeddedDraft::TITLE": The title you want to assign to the SignatureRequest. "TemplateCreateEmbeddedDraft::USE_PREEXISTING_FIELDS": Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). "TemplateCreateEmbeddedDraft::ALLOW_FORM_VIEW": Allows signers to view the form fields before signing if set to `true`. Defaults to `false`. -"TemplateCreateEmbeddedDraft::SIGNER_EXPERIENCE": TBD Form View +"TemplateCreateEmbeddedDraft::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "TemplateCreate::SUMMARY": Create Template "TemplateCreate::DESCRIPTION": |- @@ -741,7 +741,7 @@ "TemplateCreate::TITLE": The title you want to assign to the SignatureRequest. "TemplateCreate::USE_PREEXISTING_FIELDS": Enable the detection of predefined PDF fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). "TemplateCreate::ALLOW_FORM_VIEW": Allows signers to view the form fields before signing if set to `true`. Defaults to `false`. -"TemplateCreate::SIGNER_EXPERIENCE": TBD Form View +"TemplateCreate::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "TemplateDelete::SUMMARY": Delete Template "TemplateDelete::DESCRIPTION": Completely deletes the template specified from the account. @@ -849,7 +849,7 @@ "UnclaimedDraftCreate::TYPE": The type of unclaimed draft to create. Use `send_document` to create a claimable file, and `request_signature` for a claimable signature request. If the type is `request_signature` then signers name and email_address are not optional. "UnclaimedDraftCreate::USE_PREEXISTING_FIELDS": Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. "UnclaimedDraftCreate::USE_TEXT_TAGS": Set `use_text_tags` to `true` to enable [Text Tags](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) parsing in your document (defaults to disabled, or `false`). Alternatively, if your PDF contains pre-defined fields, enable the detection of these fields by setting the `use_preexisting_fields` to `true` (defaults to disabled, or `false`). Currently we only support use of either `use_text_tags` or `use_preexisting_fields` parameter, not both. -"UnclaimedDraftCreate::SIGNER_EXPERIENCE": TBD Form View +"UnclaimedDraftCreate::SIGNER_EXPERIENCE": Configuration options for modifying the settings of the signer application. Supports changing the form view behavior. "UnclaimedDraftCreate::EXPIRES_AT": |- 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.