diff --git a/examples/FaxFiles.rb b/examples/FaxFiles.rb index d867387ad..8f4955da8 100644 --- a/examples/FaxFiles.rb +++ b/examples/FaxFiles.rb @@ -7,11 +7,11 @@ fax_api = Dropbox::Sign::FaxApi.new -faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; +faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967" begin - file_bin = fax_api.fax_files(data) - FileUtils.cp(file_bin.path, "path/to/file.pdf") + file_bin = fax_api.fax_files(data) + FileUtils.cp(file_bin.path, "path/to/file.pdf") rescue Dropbox::Sign::ApiError => e puts "Exception when calling Dropbox Sign API: #{e}" end diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 4920f55a7..3523daada 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -10565,6 +10565,10 @@ components: bulk_send_job_id: description: '_t__BulkSendJobGetResponseSignatureRequests::BULK_SEND_JOB_ID' type: string + metadata: + description: '_t__SignatureRequestResponse::METADATA' + type: object + additionalProperties: { } x-internal-class: true EmbeddedEditUrlResponseEmbedded: description: '_t__EmbeddedEditUrlResponseEmbedded::DESCRIPTION' @@ -10609,13 +10613,11 @@ components: - fax_id - title - original_title - - subject - - message - metadata - created_at - sender - - transmissions - files_url + - transmissions properties: fax_id: description: '_t__FaxResponse::FAX_ID' @@ -10629,9 +10631,11 @@ components: subject: description: '_t__FaxResponse::SUBJECT' type: string + nullable: true message: description: '_t__FaxResponse::MESSAGE' type: string + nullable: true metadata: description: '_t__FaxResponse::METADATA' type: object @@ -10642,14 +10646,18 @@ components: sender: description: '_t__FaxResponse::SENDER' type: string + files_url: + description: '_t__FaxResponse::FILES_URL' + type: string + final_copy_uri: + description: '_t__FaxResponse::FINAL_COPY_URI' + type: string + nullable: true transmissions: description: '_t__FaxResponse::TRANSMISSIONS' type: array items: $ref: '#/components/schemas/FaxResponseTransmission' - files_url: - description: '_t__FaxResponse::FILES_URL' - type: string type: object x-internal-class: true FaxLineResponseFaxLine: @@ -10672,15 +10680,11 @@ components: FaxResponseTransmission: required: - recipient - - sender - status_code properties: recipient: description: '_t__Sub::FaxResponseTransmission::RECIPIENT' type: string - sender: - description: '_t__Sub::FaxResponseTransmission::SENDER' - type: string status_code: description: '_t__Sub::FaxResponseTransmission::STATUS_CODE' type: string @@ -10744,13 +10748,13 @@ components: description: '_t__SignatureRequestResponse::TEST_MODE' type: boolean default: false - nullable: true signature_request_id: description: '_t__SignatureRequestResponse::SIGNATURE_REQUEST_ID' type: string requester_email_address: description: '_t__SignatureRequestResponse::REQUESTER_EMAIL_ADDRESS' type: string + nullable: true title: description: '_t__SignatureRequestResponse::TITLE' type: string @@ -10768,12 +10772,14 @@ components: metadata: description: '_t__SignatureRequestResponse::METADATA' type: object + additionalProperties: { } created_at: description: '_t__SignatureRequestResponse::CREATED_AT' type: integer expires_at: description: '_t__SignatureRequestResponse::EXPIRES_AT' type: integer + nullable: true is_complete: description: '_t__SignatureRequestResponse::IS_COMPLETE' type: boolean @@ -10893,6 +10899,7 @@ components: editor: description: '_t__SignatureRequestResponseCustomField::EDITOR' type: string + nullable: true type: object discriminator: propertyName: type @@ -10903,13 +10910,12 @@ components: x-base-class: true SignatureRequestResponseCustomFieldCheckbox: description: '_t__SignatureRequestResponseCustomField::DESCRIPTION_EXTENDS' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: '_t__SignatureRequestResponseCustomField::TYPE' @@ -10921,13 +10927,12 @@ components: type: object SignatureRequestResponseCustomFieldText: description: '_t__SignatureRequestResponseCustomField::DESCRIPTION_EXTENDS' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: '_t__SignatureRequestResponseCustomField::TYPE' @@ -11055,6 +11060,10 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11083,6 +11092,10 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: @@ -11317,6 +11330,7 @@ components: metadata: description: '_t__TemplateResponse::METADATA' type: object + additionalProperties: { } signer_roles: description: '_t__TemplateResponse::SIGNER_ROLES' type: array diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index fe81aca41..608b57dd4 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11173,6 +11173,10 @@ components: bulk_send_job_id: description: 'The id of the BulkSendJob.' type: string + metadata: + description: 'The metadata attached to the signature request.' + type: object + additionalProperties: {} x-internal-class: true EmbeddedEditUrlResponseEmbedded: description: 'An embedded template object.' @@ -11217,13 +11221,11 @@ components: - fax_id - title - original_title - - subject - - message - metadata - created_at - sender - - transmissions - files_url + - transmissions properties: fax_id: description: 'Fax ID' @@ -11237,9 +11239,11 @@ components: subject: description: 'Fax Subject' type: string + nullable: true message: description: 'Fax Message' type: string + nullable: true metadata: description: 'Fax Metadata' type: object @@ -11250,14 +11254,18 @@ components: sender: description: 'Fax Sender Email' type: string + files_url: + description: 'Fax Files URL' + type: string + final_copy_uri: + description: 'The path where the completed document can be downloaded' + type: string + nullable: true transmissions: description: 'Fax Transmissions List' type: array items: $ref: '#/components/schemas/FaxResponseTransmission' - files_url: - description: 'Fax Files URL' - type: string type: object x-internal-class: true FaxLineResponseFaxLine: @@ -11280,15 +11288,11 @@ components: FaxResponseTransmission: required: - recipient - - sender - status_code properties: recipient: description: 'Fax Transmission Recipient' type: string - sender: - description: 'Fax Transmission Sender' - type: string status_code: description: 'Fax Transmission Status Code' type: string @@ -11352,13 +11356,13 @@ components: description: 'Whether this is a test signature request. Test requests have no legal value. Defaults to `false`.' type: boolean default: false - nullable: true signature_request_id: description: 'The id of the SignatureRequest.' type: string requester_email_address: description: 'The email address of the initiator of the SignatureRequest.' type: string + nullable: true title: description: 'The title the specified Account uses for the SignatureRequest.' type: string @@ -11376,12 +11380,14 @@ components: metadata: description: 'The metadata attached to the signature request.' type: object + additionalProperties: {} created_at: description: 'Time the signature request was created.' type: integer expires_at: description: 'The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer + nullable: true is_complete: description: 'Whether or not the SignatureRequest has been fully executed by all signers.' type: boolean @@ -11509,6 +11515,7 @@ components: editor: description: 'The name of the Role that is able to edit this field.' type: string + nullable: true type: object discriminator: propertyName: type @@ -11519,13 +11526,12 @@ components: x-base-class: true SignatureRequestResponseCustomFieldCheckbox: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11537,13 +11543,12 @@ components: type: object SignatureRequestResponseCustomFieldText: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11671,6 +11676,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11699,6 +11708,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: @@ -11936,6 +11949,7 @@ components: metadata: description: 'The metadata attached to the template.' type: object + additionalProperties: {} signer_roles: description: 'An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template.' type: array diff --git a/openapi.yaml b/openapi.yaml index e49cd747a..faa843be3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11151,6 +11151,10 @@ components: bulk_send_job_id: description: 'The id of the BulkSendJob.' type: string + metadata: + description: 'The metadata attached to the signature request.' + type: object + additionalProperties: {} x-internal-class: true EmbeddedEditUrlResponseEmbedded: description: 'An embedded template object.' @@ -11195,13 +11199,11 @@ components: - fax_id - title - original_title - - subject - - message - metadata - created_at - sender - - transmissions - files_url + - transmissions properties: fax_id: description: 'Fax ID' @@ -11215,9 +11217,11 @@ components: subject: description: 'Fax Subject' type: string + nullable: true message: description: 'Fax Message' type: string + nullable: true metadata: description: 'Fax Metadata' type: object @@ -11228,14 +11232,18 @@ components: sender: description: 'Fax Sender Email' type: string + files_url: + description: 'Fax Files URL' + type: string + final_copy_uri: + description: 'The path where the completed document can be downloaded' + type: string + nullable: true transmissions: description: 'Fax Transmissions List' type: array items: $ref: '#/components/schemas/FaxResponseTransmission' - files_url: - description: 'Fax Files URL' - type: string type: object x-internal-class: true FaxLineResponseFaxLine: @@ -11258,15 +11266,11 @@ components: FaxResponseTransmission: required: - recipient - - sender - status_code properties: recipient: description: 'Fax Transmission Recipient' type: string - sender: - description: 'Fax Transmission Sender' - type: string status_code: description: 'Fax Transmission Status Code' type: string @@ -11330,13 +11334,13 @@ components: description: 'Whether this is a test signature request. Test requests have no legal value. Defaults to `false`.' type: boolean default: false - nullable: true signature_request_id: description: 'The id of the SignatureRequest.' type: string requester_email_address: description: 'The email address of the initiator of the SignatureRequest.' type: string + nullable: true title: description: 'The title the specified Account uses for the SignatureRequest.' type: string @@ -11354,12 +11358,14 @@ components: metadata: description: 'The metadata attached to the signature request.' type: object + additionalProperties: {} created_at: description: 'Time the signature request was created.' type: integer expires_at: description: 'The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details.' type: integer + nullable: true is_complete: description: 'Whether or not the SignatureRequest has been fully executed by all signers.' type: boolean @@ -11487,6 +11493,7 @@ components: editor: description: 'The name of the Role that is able to edit this field.' type: string + nullable: true type: object discriminator: propertyName: type @@ -11497,13 +11504,12 @@ components: x-base-class: true SignatureRequestResponseCustomFieldCheckbox: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11515,13 +11521,12 @@ components: type: object SignatureRequestResponseCustomFieldText: description: 'This class extends `SignatureRequestResponseCustomFieldBase`.' + required: + - type allOf: - $ref: '#/components/schemas/SignatureRequestResponseCustomFieldBase' - - required: - - name - - type properties: type: description: 'The type of this Custom Field. Only ''text'' and ''checkbox'' are currently supported.' @@ -11649,6 +11654,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11677,6 +11686,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: @@ -11914,6 +11927,7 @@ components: metadata: description: 'The metadata attached to the template.' type: object + additionalProperties: {} signer_roles: description: 'An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template.' type: array diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md index 176cb9fa5..df751f711 100644 --- a/sdks/dotnet/README.md +++ b/sdks/dotnet/README.md @@ -23,7 +23,7 @@ directory that corresponds to the file you want updated. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- SDK version: 1.6-dev +- SDK version: 1.8-dev - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.CSharpClientCodegen diff --git a/sdks/dotnet/VERSION b/sdks/dotnet/VERSION index 78ca9a102..d82db9132 100644 --- a/sdks/dotnet/VERSION +++ b/sdks/dotnet/VERSION @@ -1 +1 @@ -1.6-dev +1.8-dev diff --git a/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/dotnet/docs/BulkSendJobGetResponseSignatureRequests.md index 779fdaf8c..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** | **Object** | The metadata attached to the signature request. | [optional] **CreatedAt** | **int** | Time the signature request was created. | [optional] **ExpiresAt** | **int** | The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. | [optional] **IsComplete** | **bool** | Whether or not the SignatureRequest has been fully executed by all signers. | [optional] **IsDeclined** | **bool** | Whether or not the SignatureRequest has been declined by a signer. | [optional] **HasError** | **bool** | Whether or not an error occurred (either during the creation of the SignatureRequest or during one of the signings). | [optional] **FilesUrl** | **string** | The URL where a copy of the request's documents can be downloaded. | [optional] **SigningUrl** | **string** | The URL where a signer, after authenticating, can sign the documents. This should only be used by users with existing Dropbox Sign accounts as they will be required to log in before signing. | [optional] **DetailsUrl** | **string** | The URL where the requester and the signers can view the current status of the SignatureRequest. | [optional] **CcEmailAddresses** | **List<string>** | A list of email addresses that were CCed on the SignatureRequest. They will receive a copy of the final PDF once all the signers have signed. | [optional] **SigningRedirectUrl** | **string** | The URL you want the signer redirected to after they successfully sign. | [optional] **FinalCopyUri** | **string** | The path where the completed document can be downloaded | [optional] **TemplateIds** | **List<string>** | Templates IDs used in this SignatureRequest (if any). | [optional] **CustomFields** | [**List<SignatureRequestResponseCustomFieldBase>**](SignatureRequestResponseCustomFieldBase.md) | An array of Custom Field objects containing the name and type of each custom field.

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

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

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

* Text Field uses `SignatureRequestResponseCustomFieldText`
* Checkbox Field uses `SignatureRequestResponseCustomFieldCheckbox` | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] **ResponseData** | [**List<SignatureRequestResponseDataBase>**](SignatureRequestResponseDataBase.md) | An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers. | [optional] **Signatures** | [**List<SignatureRequestResponseSignatures>**](SignatureRequestResponseSignatures.md) | An array of signature objects, 1 for each signer. | [optional] **BulkSendJobId** | **string** | The ID of the Bulk Send job which sent the signature request, if applicable. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index fcd9ab1f8..74ef6e094 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md index 2ee12dce2..8e921bf9b 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/dotnet/docs/TemplateResponse.md b/sdks/dotnet/docs/TemplateResponse.md index ded2dee38..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** | **Object** | The metadata attached to the template. | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] +**TemplateId** | **string** | The id of the Template. | [optional] **Title** | **string** | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **Message** | **string** | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | [optional] **UpdatedAt** | **int** | Time the template was last updated. | [optional] **IsEmbedded** | **bool?** | `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template. | [optional] **IsCreator** | **bool** | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | [optional] **CanEdit** | **bool** | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | [optional] **IsLocked** | **bool** | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | [optional] **Metadata** | **Dictionary<string, Object>** | The metadata attached to the template. | [optional] **SignerRoles** | [**List<TemplateResponseSignerRole>**](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | [optional] **CcRoles** | [**List<TemplateResponseCCRole>**](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | [optional] **Documents** | [**List<TemplateResponseDocument>**](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | [optional] **CustomFields** | [**List<TemplateResponseDocumentCustomFieldBase>**](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **NamedFormFields** | [**List<TemplateResponseDocumentFormFieldBase>**](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | [optional] **Accounts** | [**List<TemplateResponseAccount>**](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | [optional] **Attachments** | [**List<SignatureRequestResponseAttachment>**](SignatureRequestResponseAttachment.md) | Signer attachments. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/dotnet/openapi-config.yaml b/sdks/dotnet/openapi-config.yaml index da18083d7..ce2c64827 100644 --- a/sdks/dotnet/openapi-config.yaml +++ b/sdks/dotnet/openapi-config.yaml @@ -6,7 +6,7 @@ additionalProperties: packageCompany: Dropbox Sign API Team packageCopyright: Dropbox 2024 packageDescription: Client library for using the Dropbox Sign API - packageVersion: 1.6-dev + packageVersion: 1.8-dev packageTitle: Dropbox Sign .Net SDK sortModelPropertiesByRequiredFlag: true optionalEmitDefaultValues: true diff --git a/sdks/dotnet/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs new file mode 100644 index 000000000..70dc09843 --- /dev/null +++ b/sdks/dotnet/src/Dropbox.Sign.Test/Model/SignatureRequestGetTests.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using Xunit; + +using Dropbox.Sign.Model; + +namespace Dropbox.Sign.Test.Model +{ + public class SignatureRequestGetTests + { + [Fact] + public void MetadataAsObjectTest() + { + var responseData = TestHelper.GetJsonContents(nameof(SignatureRequestGetResponse)); + var responseObj = SignatureRequestGetResponse.Init(responseData.ToString()); + + var metadata = responseObj.SignatureRequest.Metadata; + + var metadataStringLegacyValue = getMetadataValueStringLegacy( + metadata, + "metadata_name_1" + ); + + dynamic metadataObjectLegacyValue = getMetadataValueObjectLegacy( + metadata, + "metadata_name_2" + ); + + var metadataStringNewValue = getMetadataValueStringNew( + metadata, + "metadata_name_1" + ); + + dynamic metadataObjectNewValue = getMetadataValueObjectNew( + metadata, + "metadata_name_2" + ); + + string expectedValue1 = "metadata_value_1"; + string expectedValue2 = "metadata_value_2_a"; + + Assert.Equal(expectedValue1, metadataStringLegacyValue); + Assert.Equal(expectedValue2, metadataObjectLegacyValue["metadata_name_2_a"].ToString()); + + Assert.Equal(expectedValue1, metadataStringNewValue); + Assert.Equal(expectedValue2, metadataObjectNewValue["metadata_name_2_a"].ToString()); + } + + private Object getMetadataValueStringLegacy(dynamic metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueObjectLegacy(dynamic metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueStringNew(Dictionary metadata, string key) + { + return metadata[key]; + } + + private Object getMetadataValueObjectNew(Dictionary metadata, string key) + { + return metadata[key]; + } + } +} diff --git a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs index a7ba2bf8f..127056ed0 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Client/Configuration.cs @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.6-dev"; + public const string Version = "1.8-dev"; /// /// Identifier for ISO 8601 DateTime Format @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.6-dev/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/1.8-dev/csharp"); BasePath = "https://api.hellosign.com/v3"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -567,7 +567,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 3.0.0\n"; - report += " SDK Package Version: 1.6-dev\n"; + report += " SDK Package Version: 1.8-dev\n"; return report; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj index 3ed07d49e..db65ddba1 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/sdks/dotnet/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -12,7 +12,7 @@ Client library for using the Dropbox Sign API Dropbox 2024 Dropbox.Sign - 1.6-dev + 1.8-dev bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml https://github.com/hellosign/dropbox-sign-dotnet.git git diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs index caf9011de..5d8db6306 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/BulkSendJobGetResponseSignatureRequests.cs @@ -66,11 +66,10 @@ protected BulkSendJobGetResponseSignatureRequests() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The id of the BulkSendJob.. - public BulkSendJobGetResponseSignatureRequests(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public BulkSendJobGetResponseSignatureRequests(bool testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), int? expiresAt = default(int?), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { - // use default value if no "testMode" provided - this.TestMode = testMode ?? false; + this.TestMode = testMode; this.SignatureRequestId = signatureRequestId; this.RequesterEmailAddress = requesterEmailAddress; this.Title = title; @@ -118,7 +117,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] - public bool? TestMode { get; set; } + public bool TestMode { get; set; } /// /// The id of the SignatureRequest. @@ -167,7 +166,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// Time the signature request was created. @@ -181,7 +180,7 @@ public static BulkSendJobGetResponseSignatureRequests Init(string jsonData) /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] - public int ExpiresAt { get; set; } + public int? ExpiresAt { get; set; } /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -358,8 +357,7 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) return ( this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) + this.TestMode.Equals(input.TestMode) ) && ( this.SignatureRequestId == input.SignatureRequestId || @@ -393,8 +391,9 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.CreatedAt == input.CreatedAt || @@ -402,7 +401,8 @@ public bool Equals(BulkSendJobGetResponseSignatureRequests input) ) && ( this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ) && ( this.IsComplete == input.IsComplete || @@ -493,10 +493,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.TestMode != null) - { - hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); - } + hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); if (this.SignatureRequestId != null) { hashCode = (hashCode * 59) + this.SignatureRequestId.GetHashCode(); @@ -526,7 +523,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); } hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsComplete.GetHashCode(); hashCode = (hashCode * 59) + this.IsDeclined.GetHashCode(); hashCode = (hashCode * 59) + this.HasError.GetHashCode(); @@ -598,7 +598,7 @@ public List GetOpenApiTypes() { Name = "test_mode", Property = "TestMode", - Type = "bool?", + Type = "bool", Value = TestMode, }); types.Add(new OpenApiType() @@ -647,7 +647,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() @@ -661,7 +661,7 @@ public List GetOpenApiTypes() { Name = "expires_at", Property = "ExpiresAt", - Type = "int", + Type = "int?", Value = ExpiresAt, }); types.Add(new OpenApiType() diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponse.cs index 60125d8e1..f0aa5e10d 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponse.cs @@ -44,14 +44,15 @@ protected FaxResponse() { } /// Fax ID (required). /// Fax Title (required). /// Fax Original Title (required). - /// Fax Subject (required). - /// Fax Message (required). + /// Fax Subject. + /// Fax Message. /// Fax Metadata (required). /// Fax Created At Timestamp (required). /// Fax Sender Email (required). - /// Fax Transmissions List (required). /// Fax Files URL (required). - public FaxResponse(string faxId = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), string sender = default(string), List transmissions = default(List), string filesUrl = default(string)) + /// The path where the completed document can be downloaded. + /// Fax Transmissions List (required). + public FaxResponse(string faxId = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), string sender = default(string), string filesUrl = default(string), string finalCopyUri = default(string), List transmissions = default(List)) { // to ensure "faxId" is required (not null) @@ -72,18 +73,6 @@ protected FaxResponse() { } throw new ArgumentNullException("originalTitle is a required property for FaxResponse and cannot be null"); } this.OriginalTitle = originalTitle; - // to ensure "subject" is required (not null) - if (subject == null) - { - throw new ArgumentNullException("subject is a required property for FaxResponse and cannot be null"); - } - this.Subject = subject; - // to ensure "message" is required (not null) - if (message == null) - { - throw new ArgumentNullException("message is a required property for FaxResponse and cannot be null"); - } - this.Message = message; // to ensure "metadata" is required (not null) if (metadata == null) { @@ -97,18 +86,21 @@ protected FaxResponse() { } throw new ArgumentNullException("sender is a required property for FaxResponse and cannot be null"); } this.Sender = sender; - // to ensure "transmissions" is required (not null) - if (transmissions == null) - { - throw new ArgumentNullException("transmissions is a required property for FaxResponse and cannot be null"); - } - this.Transmissions = transmissions; // to ensure "filesUrl" is required (not null) if (filesUrl == null) { throw new ArgumentNullException("filesUrl is a required property for FaxResponse and cannot be null"); } this.FilesUrl = filesUrl; + // to ensure "transmissions" is required (not null) + if (transmissions == null) + { + throw new ArgumentNullException("transmissions is a required property for FaxResponse and cannot be null"); + } + this.Transmissions = transmissions; + this.Subject = subject; + this.Message = message; + this.FinalCopyUri = finalCopyUri; } /// @@ -148,20 +140,6 @@ public static FaxResponse Init(string jsonData) [DataMember(Name = "original_title", IsRequired = true, EmitDefaultValue = true)] public string OriginalTitle { get; set; } - /// - /// Fax Subject - /// - /// Fax Subject - [DataMember(Name = "subject", IsRequired = true, EmitDefaultValue = true)] - public string Subject { get; set; } - - /// - /// Fax Message - /// - /// Fax Message - [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] - public string Message { get; set; } - /// /// Fax Metadata /// @@ -183,6 +161,13 @@ public static FaxResponse Init(string jsonData) [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] public string Sender { get; set; } + /// + /// Fax Files URL + /// + /// Fax Files URL + [DataMember(Name = "files_url", IsRequired = true, EmitDefaultValue = true)] + public string FilesUrl { get; set; } + /// /// Fax Transmissions List /// @@ -191,11 +176,25 @@ public static FaxResponse Init(string jsonData) public List Transmissions { get; set; } /// - /// Fax Files URL + /// Fax Subject /// - /// Fax Files URL - [DataMember(Name = "files_url", IsRequired = true, EmitDefaultValue = true)] - public string FilesUrl { get; set; } + /// Fax Subject + [DataMember(Name = "subject", EmitDefaultValue = true)] + public string Subject { get; set; } + + /// + /// Fax Message + /// + /// Fax Message + [DataMember(Name = "message", EmitDefaultValue = true)] + public string Message { get; set; } + + /// + /// The path where the completed document can be downloaded + /// + /// The path where the completed document can be downloaded + [DataMember(Name = "final_copy_uri", EmitDefaultValue = true)] + public string FinalCopyUri { get; set; } /// /// Returns the string presentation of the object @@ -208,13 +207,14 @@ public override string ToString() sb.Append(" FaxId: ").Append(FaxId).Append("\n"); sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" OriginalTitle: ").Append(OriginalTitle).Append("\n"); - sb.Append(" Subject: ").Append(Subject).Append("\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Metadata: ").Append(Metadata).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Sender: ").Append(Sender).Append("\n"); - sb.Append(" Transmissions: ").Append(Transmissions).Append("\n"); sb.Append(" FilesUrl: ").Append(FilesUrl).Append("\n"); + sb.Append(" Transmissions: ").Append(Transmissions).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" FinalCopyUri: ").Append(FinalCopyUri).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -265,16 +265,6 @@ public bool Equals(FaxResponse input) (this.OriginalTitle != null && this.OriginalTitle.Equals(input.OriginalTitle)) ) && - ( - this.Subject == input.Subject || - (this.Subject != null && - this.Subject.Equals(input.Subject)) - ) && - ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) - ) && ( this.Metadata == input.Metadata || this.Metadata != null && @@ -290,6 +280,11 @@ public bool Equals(FaxResponse input) (this.Sender != null && this.Sender.Equals(input.Sender)) ) && + ( + this.FilesUrl == input.FilesUrl || + (this.FilesUrl != null && + this.FilesUrl.Equals(input.FilesUrl)) + ) && ( this.Transmissions == input.Transmissions || this.Transmissions != null && @@ -297,9 +292,19 @@ public bool Equals(FaxResponse input) this.Transmissions.SequenceEqual(input.Transmissions) ) && ( - this.FilesUrl == input.FilesUrl || - (this.FilesUrl != null && - this.FilesUrl.Equals(input.FilesUrl)) + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.FinalCopyUri == input.FinalCopyUri || + (this.FinalCopyUri != null && + this.FinalCopyUri.Equals(input.FinalCopyUri)) ); } @@ -324,14 +329,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.OriginalTitle.GetHashCode(); } - if (this.Subject != null) - { - hashCode = (hashCode * 59) + this.Subject.GetHashCode(); - } - if (this.Message != null) - { - hashCode = (hashCode * 59) + this.Message.GetHashCode(); - } if (this.Metadata != null) { hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); @@ -341,13 +338,25 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Sender.GetHashCode(); } + if (this.FilesUrl != null) + { + hashCode = (hashCode * 59) + this.FilesUrl.GetHashCode(); + } if (this.Transmissions != null) { hashCode = (hashCode * 59) + this.Transmissions.GetHashCode(); } - if (this.FilesUrl != null) + if (this.Subject != null) { - hashCode = (hashCode * 59) + this.FilesUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Subject.GetHashCode(); + } + if (this.Message != null) + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } + if (this.FinalCopyUri != null) + { + hashCode = (hashCode * 59) + this.FinalCopyUri.GetHashCode(); } return hashCode; } @@ -387,20 +396,6 @@ public List GetOpenApiTypes() Value = OriginalTitle, }); types.Add(new OpenApiType() - { - Name = "subject", - Property = "Subject", - Type = "string", - Value = Subject, - }); - types.Add(new OpenApiType() - { - Name = "message", - Property = "Message", - Type = "string", - Value = Message, - }); - types.Add(new OpenApiType() { Name = "metadata", Property = "Metadata", @@ -422,6 +417,13 @@ public List GetOpenApiTypes() Value = Sender, }); types.Add(new OpenApiType() + { + Name = "files_url", + Property = "FilesUrl", + Type = "string", + Value = FilesUrl, + }); + types.Add(new OpenApiType() { Name = "transmissions", Property = "Transmissions", @@ -430,10 +432,24 @@ public List GetOpenApiTypes() }); types.Add(new OpenApiType() { - Name = "files_url", - Property = "FilesUrl", + Name = "subject", + Property = "Subject", Type = "string", - Value = FilesUrl, + Value = Subject, + }); + types.Add(new OpenApiType() + { + Name = "message", + Property = "Message", + Type = "string", + Value = Message, + }); + types.Add(new OpenApiType() + { + Name = "final_copy_uri", + Property = "FinalCopyUri", + Type = "string", + Value = FinalCopyUri, }); return types; diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponseTransmission.cs b/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponseTransmission.cs index 0e370714e..917704a7c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponseTransmission.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/FaxResponseTransmission.cs @@ -105,10 +105,9 @@ protected FaxResponseTransmission() { } /// Initializes a new instance of the class. /// /// Fax Transmission Recipient (required). - /// Fax Transmission Sender (required). /// Fax Transmission Status Code (required). /// Fax Transmission Sent Timestamp. - public FaxResponseTransmission(string recipient = default(string), string sender = default(string), StatusCodeEnum statusCode = default(StatusCodeEnum), int sentAt = default(int)) + public FaxResponseTransmission(string recipient = default(string), StatusCodeEnum statusCode = default(StatusCodeEnum), int sentAt = default(int)) { // to ensure "recipient" is required (not null) @@ -117,12 +116,6 @@ protected FaxResponseTransmission() { } throw new ArgumentNullException("recipient is a required property for FaxResponseTransmission and cannot be null"); } this.Recipient = recipient; - // to ensure "sender" is required (not null) - if (sender == null) - { - throw new ArgumentNullException("sender is a required property for FaxResponseTransmission and cannot be null"); - } - this.Sender = sender; this.StatusCode = statusCode; this.SentAt = sentAt; } @@ -150,13 +143,6 @@ public static FaxResponseTransmission Init(string jsonData) [DataMember(Name = "recipient", IsRequired = true, EmitDefaultValue = true)] public string Recipient { get; set; } - /// - /// Fax Transmission Sender - /// - /// Fax Transmission Sender - [DataMember(Name = "sender", IsRequired = true, EmitDefaultValue = true)] - public string Sender { get; set; } - /// /// Fax Transmission Sent Timestamp /// @@ -173,7 +159,6 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class FaxResponseTransmission {\n"); sb.Append(" Recipient: ").Append(Recipient).Append("\n"); - sb.Append(" Sender: ").Append(Sender).Append("\n"); sb.Append(" StatusCode: ").Append(StatusCode).Append("\n"); sb.Append(" SentAt: ").Append(SentAt).Append("\n"); sb.Append("}\n"); @@ -216,11 +201,6 @@ public bool Equals(FaxResponseTransmission input) (this.Recipient != null && this.Recipient.Equals(input.Recipient)) ) && - ( - this.Sender == input.Sender || - (this.Sender != null && - this.Sender.Equals(input.Sender)) - ) && ( this.StatusCode == input.StatusCode || this.StatusCode.Equals(input.StatusCode) @@ -244,10 +224,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Recipient.GetHashCode(); } - if (this.Sender != null) - { - hashCode = (hashCode * 59) + this.Sender.GetHashCode(); - } hashCode = (hashCode * 59) + this.StatusCode.GetHashCode(); hashCode = (hashCode * 59) + this.SentAt.GetHashCode(); return hashCode; @@ -274,13 +250,6 @@ public List GetOpenApiTypes() Value = Recipient, }); types.Add(new OpenApiType() - { - Name = "sender", - Property = "Sender", - Type = "string", - Value = Sender, - }); - types.Add(new OpenApiType() { Name = "status_code", Property = "StatusCode", diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs index 273a23e5f..514181b2f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponse.cs @@ -66,11 +66,10 @@ protected SignatureRequestResponse() { } /// An array of form field objects containing the name, value, and type of each textbox or checkmark field filled in by the signers.. /// An array of signature objects, 1 for each signer.. /// The ID of the Bulk Send job which sent the signature request, if applicable.. - public SignatureRequestResponse(bool? testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Object metadata = default(Object), int createdAt = default(int), int expiresAt = default(int), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) + public SignatureRequestResponse(bool testMode = false, string signatureRequestId = default(string), string requesterEmailAddress = default(string), string title = default(string), string originalTitle = default(string), string subject = default(string), string message = default(string), Dictionary metadata = default(Dictionary), int createdAt = default(int), int? expiresAt = default(int?), bool isComplete = default(bool), bool isDeclined = default(bool), bool hasError = default(bool), string filesUrl = default(string), string signingUrl = default(string), string detailsUrl = default(string), List ccEmailAddresses = default(List), string signingRedirectUrl = default(string), string finalCopyUri = default(string), List templateIds = default(List), List customFields = default(List), List attachments = default(List), List responseData = default(List), List signatures = default(List), string bulkSendJobId = default(string)) { - // use default value if no "testMode" provided - this.TestMode = testMode ?? false; + this.TestMode = testMode; this.SignatureRequestId = signatureRequestId; this.RequesterEmailAddress = requesterEmailAddress; this.Title = title; @@ -118,7 +117,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. [DataMember(Name = "test_mode", EmitDefaultValue = true)] - public bool? TestMode { get; set; } + public bool TestMode { get; set; } /// /// The id of the SignatureRequest. @@ -167,7 +166,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// The metadata attached to the signature request. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// Time the signature request was created. @@ -181,7 +180,7 @@ public static SignatureRequestResponse Init(string jsonData) /// /// The time when the signature request will expire unsigned signatures. See [Signature Request Expiration Date](https://developers.hellosign.com/docs/signature-request/expiration/) for details. [DataMember(Name = "expires_at", EmitDefaultValue = true)] - public int ExpiresAt { get; set; } + public int? ExpiresAt { get; set; } /// /// Whether or not the SignatureRequest has been fully executed by all signers. @@ -358,8 +357,7 @@ public bool Equals(SignatureRequestResponse input) return ( this.TestMode == input.TestMode || - (this.TestMode != null && - this.TestMode.Equals(input.TestMode)) + this.TestMode.Equals(input.TestMode) ) && ( this.SignatureRequestId == input.SignatureRequestId || @@ -393,8 +391,9 @@ public bool Equals(SignatureRequestResponse input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.CreatedAt == input.CreatedAt || @@ -402,7 +401,8 @@ public bool Equals(SignatureRequestResponse input) ) && ( this.ExpiresAt == input.ExpiresAt || - this.ExpiresAt.Equals(input.ExpiresAt) + (this.ExpiresAt != null && + this.ExpiresAt.Equals(input.ExpiresAt)) ) && ( this.IsComplete == input.IsComplete || @@ -493,10 +493,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.TestMode != null) - { - hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); - } + hashCode = (hashCode * 59) + this.TestMode.GetHashCode(); if (this.SignatureRequestId != null) { hashCode = (hashCode * 59) + this.SignatureRequestId.GetHashCode(); @@ -526,7 +523,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Metadata.GetHashCode(); } hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + if (this.ExpiresAt != null) + { + hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsComplete.GetHashCode(); hashCode = (hashCode * 59) + this.IsDeclined.GetHashCode(); hashCode = (hashCode * 59) + this.HasError.GetHashCode(); @@ -598,7 +598,7 @@ public List GetOpenApiTypes() { Name = "test_mode", Property = "TestMode", - Type = "bool?", + Type = "bool", Value = TestMode, }); types.Add(new OpenApiType() @@ -647,7 +647,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() @@ -661,7 +661,7 @@ public List GetOpenApiTypes() { Name = "expires_at", Property = "ExpiresAt", - Type = "int", + Type = "int?", Value = ExpiresAt, }); types.Add(new OpenApiType() diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 28c5973db..023ee3d63 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueInitials() { } /// /// An input field for initials (default to "initials"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueInitials() { } // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index c5c2d5392..efe2bb26c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueSignature() { } /// /// A signature input field (default to "signature"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueSignature() { } // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs index f0124cc90..a298922d8 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponse.cs @@ -57,7 +57,7 @@ protected TemplateResponse() { } /// Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead.. /// An array of the Accounts that can use this Template.. /// Signer attachments.. - public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool isCreator = default(bool), bool canEdit = default(bool), bool isLocked = default(bool), Object metadata = default(Object), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List), List attachments = default(List)) + public TemplateResponse(string templateId = default(string), string title = default(string), string message = default(string), int updatedAt = default(int), bool? isEmbedded = default(bool?), bool isCreator = default(bool), bool canEdit = default(bool), bool isLocked = default(bool), Dictionary metadata = default(Dictionary), List signerRoles = default(List), List ccRoles = default(List), List documents = default(List), List customFields = default(List), List namedFormFields = default(List), List accounts = default(List), List attachments = default(List)) { this.TemplateId = templateId; @@ -155,7 +155,7 @@ public static TemplateResponse Init(string jsonData) /// /// The metadata attached to the template. [DataMember(Name = "metadata", EmitDefaultValue = true)] - public Object Metadata { get; set; } + public Dictionary Metadata { get; set; } /// /// An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -305,8 +305,9 @@ public bool Equals(TemplateResponse input) ) && ( this.Metadata == input.Metadata || - (this.Metadata != null && - this.Metadata.Equals(input.Metadata)) + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ) && ( this.SignerRoles == input.SignerRoles || @@ -489,7 +490,7 @@ public List GetOpenApiTypes() { Name = "metadata", Property = "Metadata", - Type = "Object", + Type = "Dictionary", Value = Metadata, }); types.Add(new OpenApiType() diff --git a/sdks/java-v1/README.md b/sdks/java-v1/README.md index 84f76aaad..9d6eaa6cb 100644 --- a/sdks/java-v1/README.md +++ b/sdks/java-v1/README.md @@ -55,7 +55,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 1.7-dev + 1.8-dev compile ``` @@ -71,7 +71,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.dropbox.sign:dropbox-sign:1.7-dev" + implementation "com.dropbox.sign:dropbox-sign:1.8-dev" } ``` @@ -85,7 +85,7 @@ mvn clean package Then manually install the following JARs: -- `target/dropbox-sign-1.7-dev.jar` +- `target/dropbox-sign-1.8-dev.jar` - `target/lib/*.jar` ## Getting Started @@ -459,7 +459,7 @@ apisupport@hellosign.com This Java package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `3.0.0` - - Package version: `1.7-dev` + - Package version: `1.8-dev` - Build package: `org.openapitools.codegen.languages.JavaClientCodegen` diff --git a/sdks/java-v1/VERSION b/sdks/java-v1/VERSION index b19f5be06..d82db9132 100644 --- a/sdks/java-v1/VERSION +++ b/sdks/java-v1/VERSION @@ -1 +1 @@ -1.7-dev +1.8-dev diff --git a/sdks/java-v1/build.gradle b/sdks/java-v1/build.gradle index 5220fbaa8..e09981d03 100644 --- a/sdks/java-v1/build.gradle +++ b/sdks/java-v1/build.gradle @@ -21,7 +21,7 @@ apply plugin: 'signing' group = 'com.dropbox.sign' archivesBaseName = 'dropbox-sign' -version = '1.7-dev' +version = '1.8-dev' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 diff --git a/sdks/java-v1/build.sbt b/sdks/java-v1/build.sbt index e942aadd8..b949b2013 100644 --- a/sdks/java-v1/build.sbt +++ b/sdks/java-v1/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.dropbox.sign", name := "dropbox-sign", - version := "1.7-dev", + version := "1.8-dev", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md index ba283afd8..09809ea86 100644 --- a/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/java-v1/docs/BulkSendJobGetResponseSignatureRequests.md @@ -15,7 +15,7 @@ | `originalTitle` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Map``` | The metadata attached to the signature request. | | | `createdAt` | ```Integer``` | Time the signature request was created. | | | `expiresAt` | ```Integer``` | 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. | | | `isComplete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/java-v1/docs/FaxResponse.md b/sdks/java-v1/docs/FaxResponse.md index 77ec7eb10..a1c857b48 100644 --- a/sdks/java-v1/docs/FaxResponse.md +++ b/sdks/java-v1/docs/FaxResponse.md @@ -11,13 +11,14 @@ | `faxId`*_required_ | ```String``` | Fax ID | | | `title`*_required_ | ```String``` | Fax Title | | | `originalTitle`*_required_ | ```String``` | Fax Original Title | | -| `subject`*_required_ | ```String``` | Fax Subject | | -| `message`*_required_ | ```String``` | Fax Message | | | `metadata`*_required_ | ```Map``` | Fax Metadata | | | `createdAt`*_required_ | ```Integer``` | Fax Created At Timestamp | | | `sender`*_required_ | ```String``` | Fax Sender Email | | -| `transmissions`*_required_ | [```List```](FaxResponseTransmission.md) | Fax Transmissions List | | | `filesUrl`*_required_ | ```String``` | Fax Files URL | | +| `transmissions`*_required_ | [```List```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```String``` | Fax Subject | | +| `message` | ```String``` | Fax Message | | +| `finalCopyUri` | ```String``` | The path where the completed document can be downloaded | | diff --git a/sdks/java-v1/docs/FaxResponseTransmission.md b/sdks/java-v1/docs/FaxResponseTransmission.md index 09db223e9..535750b13 100644 --- a/sdks/java-v1/docs/FaxResponseTransmission.md +++ b/sdks/java-v1/docs/FaxResponseTransmission.md @@ -9,7 +9,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | `recipient`*_required_ | ```String``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```String``` | Fax Transmission Sender | | | `statusCode`*_required_ | [```StatusCodeEnum```](#StatusCodeEnum) | Fax Transmission Status Code | | | `sentAt` | ```Integer``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/java-v1/docs/SignatureRequestResponse.md b/sdks/java-v1/docs/SignatureRequestResponse.md index 2c9efa532..6e8d9645c 100644 --- a/sdks/java-v1/docs/SignatureRequestResponse.md +++ b/sdks/java-v1/docs/SignatureRequestResponse.md @@ -15,7 +15,7 @@ Contains information about a signature request. | `originalTitle` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Map``` | The metadata attached to the signature request. | | | `createdAt` | ```Integer``` | Time the signature request was created. | | | `expiresAt` | ```Integer``` | 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. | | | `isComplete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md index 7f82d742c..760618b49 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..8cea5ac2e 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v1/docs/TemplateResponse.md b/sdks/java-v1/docs/TemplateResponse.md index 27673e39b..40de0fdc8 100644 --- a/sdks/java-v1/docs/TemplateResponse.md +++ b/sdks/java-v1/docs/TemplateResponse.md @@ -16,7 +16,7 @@ Contains information about the templates you and your team have created. | `isCreator` | ```Boolean``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `canEdit` | ```Boolean``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `isLocked` | ```Boolean``` | 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. | | -| `metadata` | ```Object``` | The metadata attached to the template. | | +| `metadata` | ```Map``` | The metadata attached to the template. | | | `signerRoles` | [```List```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `ccRoles` | [```List```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```List```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | diff --git a/sdks/java-v1/gradle.properties b/sdks/java-v1/gradle.properties index 41513d223..a3f97a126 100644 --- a/sdks/java-v1/gradle.properties +++ b/sdks/java-v1/gradle.properties @@ -6,7 +6,7 @@ #target = android GROUP=com.dropbox.sign POM_ARTIFACT_ID=dropbox-sign -VERSION_NAME=1.7-dev +VERSION_NAME=1.8-dev POM_NAME=Dropbox Sign Java SDK POM_DESCRIPTION=Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/sdks/java-v1/openapi-config.yaml b/sdks/java-v1/openapi-config.yaml index a141d49ac..398867abf 100644 --- a/sdks/java-v1/openapi-config.yaml +++ b/sdks/java-v1/openapi-config.yaml @@ -16,7 +16,7 @@ additionalProperties: groupId: com.dropbox.sign artifactId: dropbox-sign artifactName: Dropbox Sign Java SDK - artifactVersion: "1.7-dev" + artifactVersion: "1.8-dev" artifactUrl: https://github.com/hellosign/dropbox-sign-java artifactDescription: Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! scmConnection: scm:git:git://github.com/hellosign/dropbox-sign-java.git diff --git a/sdks/java-v1/pom.xml b/sdks/java-v1/pom.xml index 09af462cf..1c7bc968e 100644 --- a/sdks/java-v1/pom.xml +++ b/sdks/java-v1/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 1.7-dev + 1.8-dev https://github.com/hellosign/dropbox-sign-java Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java index 4496fac07..9a82b95d3 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/ApiClient.java @@ -147,7 +147,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.7-dev/java"); + setUserAgent("OpenAPI-Generator/1.8-dev/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>(); diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java b/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java index db1ad9bfc..e2ebcc458 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/Configuration.java @@ -16,7 +16,7 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Configuration { - public static final String VERSION = "1.7-dev"; + public static final String VERSION = "1.8-dev"; private static ApiClient defaultApiClient = new ApiClient(); 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 d0b87b0c7..d96001b5c 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 @@ -80,7 +80,7 @@ public class BulkSendJobGetResponseSignatureRequests { private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private Integer createdAt; @@ -308,25 +308,34 @@ public void setMessage(String message) { this.message = message; } - public BulkSendJobGetResponseSignatureRequests metadata(Object metadata) { + public BulkSendJobGetResponseSignatureRequests metadata(Map metadata) { this.metadata = metadata; return this; } + public BulkSendJobGetResponseSignatureRequests putMetadataItem( + String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the signature request. * * @return metadata */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java index bbe2dcde4..ebe69e4dc 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponse.java @@ -30,13 +30,14 @@ FaxResponse.JSON_PROPERTY_FAX_ID, FaxResponse.JSON_PROPERTY_TITLE, FaxResponse.JSON_PROPERTY_ORIGINAL_TITLE, - FaxResponse.JSON_PROPERTY_SUBJECT, - FaxResponse.JSON_PROPERTY_MESSAGE, FaxResponse.JSON_PROPERTY_METADATA, FaxResponse.JSON_PROPERTY_CREATED_AT, FaxResponse.JSON_PROPERTY_SENDER, + FaxResponse.JSON_PROPERTY_FILES_URL, FaxResponse.JSON_PROPERTY_TRANSMISSIONS, - FaxResponse.JSON_PROPERTY_FILES_URL + FaxResponse.JSON_PROPERTY_SUBJECT, + FaxResponse.JSON_PROPERTY_MESSAGE, + FaxResponse.JSON_PROPERTY_FINAL_COPY_URI }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -52,12 +53,6 @@ public class FaxResponse { public static final String JSON_PROPERTY_ORIGINAL_TITLE = "original_title"; private String originalTitle; - public static final String JSON_PROPERTY_SUBJECT = "subject"; - private String subject; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata = new HashMap<>(); @@ -67,11 +62,20 @@ public class FaxResponse { public static final String JSON_PROPERTY_SENDER = "sender"; private String sender; + public static final String JSON_PROPERTY_FILES_URL = "files_url"; + private String filesUrl; + public static final String JSON_PROPERTY_TRANSMISSIONS = "transmissions"; private List transmissions = new ArrayList<>(); - public static final String JSON_PROPERTY_FILES_URL = "files_url"; - private String filesUrl; + public static final String JSON_PROPERTY_SUBJECT = "subject"; + private String subject; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_FINAL_COPY_URI = "final_copy_uri"; + private String finalCopyUri; public FaxResponse() {} @@ -158,52 +162,6 @@ public void setOriginalTitle(String originalTitle) { this.originalTitle = originalTitle; } - public FaxResponse subject(String subject) { - this.subject = subject; - return this; - } - - /** - * Fax Subject - * - * @return subject - */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUBJECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSubject() { - return subject; - } - - @JsonProperty(JSON_PROPERTY_SUBJECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSubject(String subject) { - this.subject = subject; - } - - public FaxResponse message(String message) { - this.message = message; - return this; - } - - /** - * Fax Message - * - * @return message - */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getMessage() { - return message; - } - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - public FaxResponse metadata(Map metadata) { this.metadata = metadata; return this; @@ -281,6 +239,29 @@ public void setSender(String sender) { this.sender = sender; } + public FaxResponse filesUrl(String filesUrl) { + this.filesUrl = filesUrl; + return this; + } + + /** + * Fax Files URL + * + * @return filesUrl + */ + @javax.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getFilesUrl() { + return filesUrl; + } + + @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFilesUrl(String filesUrl) { + this.filesUrl = filesUrl; + } + public FaxResponse transmissions(List transmissions) { this.transmissions = transmissions; return this; @@ -312,27 +293,70 @@ public void setTransmissions(List transmissions) { this.transmissions = transmissions; } - public FaxResponse filesUrl(String filesUrl) { - this.filesUrl = filesUrl; + public FaxResponse subject(String subject) { + this.subject = subject; return this; } /** - * Fax Files URL + * Fax Subject * - * @return filesUrl + * @return subject */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILES_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFilesUrl() { - return filesUrl; + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSubject() { + return subject; } - @JsonProperty(JSON_PROPERTY_FILES_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFilesUrl(String filesUrl) { - this.filesUrl = filesUrl; + @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubject(String subject) { + this.subject = subject; + } + + public FaxResponse message(String message) { + this.message = message; + return this; + } + + /** + * Fax Message + * + * @return message + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + public FaxResponse finalCopyUri(String finalCopyUri) { + this.finalCopyUri = finalCopyUri; + return this; + } + + /** + * The path where the completed document can be downloaded + * + * @return finalCopyUri + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFinalCopyUri() { + return finalCopyUri; + } + + @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFinalCopyUri(String finalCopyUri) { + this.finalCopyUri = finalCopyUri; } /** Return true if this FaxResponse object is equal to o. */ @@ -348,13 +372,14 @@ public boolean equals(Object o) { return Objects.equals(this.faxId, faxResponse.faxId) && Objects.equals(this.title, faxResponse.title) && Objects.equals(this.originalTitle, faxResponse.originalTitle) - && Objects.equals(this.subject, faxResponse.subject) - && Objects.equals(this.message, faxResponse.message) && Objects.equals(this.metadata, faxResponse.metadata) && Objects.equals(this.createdAt, faxResponse.createdAt) && Objects.equals(this.sender, faxResponse.sender) + && Objects.equals(this.filesUrl, faxResponse.filesUrl) && Objects.equals(this.transmissions, faxResponse.transmissions) - && Objects.equals(this.filesUrl, faxResponse.filesUrl); + && Objects.equals(this.subject, faxResponse.subject) + && Objects.equals(this.message, faxResponse.message) + && Objects.equals(this.finalCopyUri, faxResponse.finalCopyUri); } @Override @@ -363,13 +388,14 @@ public int hashCode() { faxId, title, originalTitle, - subject, - message, metadata, createdAt, sender, + filesUrl, transmissions, - filesUrl); + subject, + message, + finalCopyUri); } @Override @@ -379,13 +405,14 @@ public String toString() { sb.append(" faxId: ").append(toIndentedString(faxId)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" originalTitle: ").append(toIndentedString(originalTitle)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" sender: ").append(toIndentedString(sender)).append("\n"); - sb.append(" transmissions: ").append(toIndentedString(transmissions)).append("\n"); sb.append(" filesUrl: ").append(toIndentedString(filesUrl)).append("\n"); + sb.append(" transmissions: ").append(toIndentedString(transmissions)).append("\n"); + sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" finalCopyUri: ").append(toIndentedString(finalCopyUri)).append("\n"); sb.append("}"); return sb.toString(); } @@ -450,42 +477,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(originalTitle)); } } - if (subject != null) { - if (isFileTypeOrListOfFiles(subject)) { - fileTypeFound = true; - } - - if (subject.getClass().equals(java.io.File.class) - || subject.getClass().equals(Integer.class) - || subject.getClass().equals(String.class) - || subject.getClass().isEnum()) { - map.put("subject", subject); - } else if (isListOfFile(subject)) { - for (int i = 0; i < getListSize(subject); i++) { - map.put("subject[" + i + "]", getFromList(subject, i)); - } - } else { - map.put("subject", JSON.getDefault().getMapper().writeValueAsString(subject)); - } - } - if (message != null) { - if (isFileTypeOrListOfFiles(message)) { - fileTypeFound = true; - } - - if (message.getClass().equals(java.io.File.class) - || message.getClass().equals(Integer.class) - || message.getClass().equals(String.class) - || message.getClass().isEnum()) { - map.put("message", message); - } else if (isListOfFile(message)) { - for (int i = 0; i < getListSize(message); i++) { - map.put("message[" + i + "]", getFromList(message, i)); - } - } else { - map.put("message", JSON.getDefault().getMapper().writeValueAsString(message)); - } - } if (metadata != null) { if (isFileTypeOrListOfFiles(metadata)) { fileTypeFound = true; @@ -542,6 +533,26 @@ public Map createFormData() throws ApiException { map.put("sender", JSON.getDefault().getMapper().writeValueAsString(sender)); } } + if (filesUrl != null) { + if (isFileTypeOrListOfFiles(filesUrl)) { + fileTypeFound = true; + } + + if (filesUrl.getClass().equals(java.io.File.class) + || filesUrl.getClass().equals(Integer.class) + || filesUrl.getClass().equals(String.class) + || filesUrl.getClass().isEnum()) { + map.put("files_url", filesUrl); + } else if (isListOfFile(filesUrl)) { + for (int i = 0; i < getListSize(filesUrl); i++) { + map.put("files_url[" + i + "]", getFromList(filesUrl, i)); + } + } else { + map.put( + "files_url", + JSON.getDefault().getMapper().writeValueAsString(filesUrl)); + } + } if (transmissions != null) { if (isFileTypeOrListOfFiles(transmissions)) { fileTypeFound = true; @@ -562,24 +573,60 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(transmissions)); } } - if (filesUrl != null) { - if (isFileTypeOrListOfFiles(filesUrl)) { + if (subject != null) { + if (isFileTypeOrListOfFiles(subject)) { fileTypeFound = true; } - if (filesUrl.getClass().equals(java.io.File.class) - || filesUrl.getClass().equals(Integer.class) - || filesUrl.getClass().equals(String.class) - || filesUrl.getClass().isEnum()) { - map.put("files_url", filesUrl); - } else if (isListOfFile(filesUrl)) { - for (int i = 0; i < getListSize(filesUrl); i++) { - map.put("files_url[" + i + "]", getFromList(filesUrl, i)); + if (subject.getClass().equals(java.io.File.class) + || subject.getClass().equals(Integer.class) + || subject.getClass().equals(String.class) + || subject.getClass().isEnum()) { + map.put("subject", subject); + } else if (isListOfFile(subject)) { + for (int i = 0; i < getListSize(subject); i++) { + map.put("subject[" + i + "]", getFromList(subject, i)); + } + } else { + map.put("subject", JSON.getDefault().getMapper().writeValueAsString(subject)); + } + } + if (message != null) { + if (isFileTypeOrListOfFiles(message)) { + fileTypeFound = true; + } + + if (message.getClass().equals(java.io.File.class) + || message.getClass().equals(Integer.class) + || message.getClass().equals(String.class) + || message.getClass().isEnum()) { + map.put("message", message); + } else if (isListOfFile(message)) { + for (int i = 0; i < getListSize(message); i++) { + map.put("message[" + i + "]", getFromList(message, i)); + } + } else { + map.put("message", JSON.getDefault().getMapper().writeValueAsString(message)); + } + } + if (finalCopyUri != null) { + if (isFileTypeOrListOfFiles(finalCopyUri)) { + fileTypeFound = true; + } + + if (finalCopyUri.getClass().equals(java.io.File.class) + || finalCopyUri.getClass().equals(Integer.class) + || finalCopyUri.getClass().equals(String.class) + || finalCopyUri.getClass().isEnum()) { + map.put("final_copy_uri", finalCopyUri); + } else if (isListOfFile(finalCopyUri)) { + for (int i = 0; i < getListSize(finalCopyUri); i++) { + map.put("final_copy_uri[" + i + "]", getFromList(finalCopyUri, i)); } } else { map.put( - "files_url", - JSON.getDefault().getMapper().writeValueAsString(filesUrl)); + "final_copy_uri", + JSON.getDefault().getMapper().writeValueAsString(finalCopyUri)); } } } catch (Exception e) { diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java index 8ab92887f..684e2ba86 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java @@ -28,7 +28,6 @@ /** FaxResponseTransmission */ @JsonPropertyOrder({ FaxResponseTransmission.JSON_PROPERTY_RECIPIENT, - FaxResponseTransmission.JSON_PROPERTY_SENDER, FaxResponseTransmission.JSON_PROPERTY_STATUS_CODE, FaxResponseTransmission.JSON_PROPERTY_SENT_AT }) @@ -40,9 +39,6 @@ public class FaxResponseTransmission { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; private String recipient; - public static final String JSON_PROPERTY_SENDER = "sender"; - private String sender; - /** Fax Transmission Status Code */ public enum StatusCodeEnum { SUCCESS("success"), @@ -134,29 +130,6 @@ public void setRecipient(String recipient) { this.recipient = recipient; } - public FaxResponseTransmission sender(String sender) { - this.sender = sender; - return this; - } - - /** - * Fax Transmission Sender - * - * @return sender - */ - @javax.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SENDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSender() { - return sender; - } - - @JsonProperty(JSON_PROPERTY_SENDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSender(String sender) { - this.sender = sender; - } - public FaxResponseTransmission statusCode(StatusCodeEnum statusCode) { this.statusCode = statusCode; return this; @@ -213,14 +186,13 @@ public boolean equals(Object o) { } FaxResponseTransmission faxResponseTransmission = (FaxResponseTransmission) o; return Objects.equals(this.recipient, faxResponseTransmission.recipient) - && Objects.equals(this.sender, faxResponseTransmission.sender) && Objects.equals(this.statusCode, faxResponseTransmission.statusCode) && Objects.equals(this.sentAt, faxResponseTransmission.sentAt); } @Override public int hashCode() { - return Objects.hash(recipient, sender, statusCode, sentAt); + return Objects.hash(recipient, statusCode, sentAt); } @Override @@ -228,7 +200,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FaxResponseTransmission {\n"); sb.append(" recipient: ").append(toIndentedString(recipient)).append("\n"); - sb.append(" sender: ").append(toIndentedString(sender)).append("\n"); sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); sb.append(" sentAt: ").append(toIndentedString(sentAt)).append("\n"); sb.append("}"); @@ -259,24 +230,6 @@ public Map createFormData() throws ApiException { JSON.getDefault().getMapper().writeValueAsString(recipient)); } } - if (sender != null) { - if (isFileTypeOrListOfFiles(sender)) { - fileTypeFound = true; - } - - if (sender.getClass().equals(java.io.File.class) - || sender.getClass().equals(Integer.class) - || sender.getClass().equals(String.class) - || sender.getClass().isEnum()) { - map.put("sender", sender); - } else if (isListOfFile(sender)) { - for (int i = 0; i < getListSize(sender); i++) { - map.put("sender[" + i + "]", getFromList(sender, i)); - } - } else { - map.put("sender", JSON.getDefault().getMapper().writeValueAsString(sender)); - } - } if (statusCode != null) { if (isFileTypeOrListOfFiles(statusCode)) { fileTypeFound = true; 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 ac3cf8883..ed78327dc 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 @@ -80,7 +80,7 @@ public class SignatureRequestResponse { private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private Integer createdAt; @@ -306,25 +306,33 @@ public void setMessage(String message) { this.message = message; } - public SignatureRequestResponse metadata(Object metadata) { + public SignatureRequestResponse metadata(Map metadata) { this.metadata = metadata; return this; } + public SignatureRequestResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the signature request. * * @return metadata */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index 976036e02..28262ccf4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -27,7 +27,8 @@ /** SignatureRequestResponseDataValueInitials */ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueInitials() {} /** @@ -110,6 +114,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * + * @return isSigned + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsSigned() { + return isSigned; + } + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + /** Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +149,13 @@ public boolean equals(Object o) { (SignatureRequestResponseDataValueInitials) o; return Objects.equals(this.type, signatureRequestResponseDataValueInitials.type) && Objects.equals(this.value, signatureRequestResponseDataValueInitials.value) + && Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -138,6 +165,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -183,6 +211,26 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) + || isSigned.getClass().equals(Integer.class) + || isSigned.getClass().equals(String.class) + || isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for (int i = 0; i < getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } else { + map.put( + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 8fc3e438d..657bc4864 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -27,7 +27,8 @@ /** SignatureRequestResponseDataValueSignature */ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueSignature() {} /** @@ -111,6 +115,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * + * @return isSigned + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsSigned() { + return isSigned; + } + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + /** Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +150,14 @@ public boolean equals(Object o) { (SignatureRequestResponseDataValueSignature) o; return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type) && Objects.equals(this.value, signatureRequestResponseDataValueSignature.value) + && Objects.equals( + this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -139,6 +167,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -184,6 +213,26 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) + || isSigned.getClass().equals(Integer.class) + || isSigned.getClass().equals(String.class) + || isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for (int i = 0; i < getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } else { + map.put( + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } 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 6e50048e4..fde4151d3 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 @@ -74,7 +74,7 @@ public class TemplateResponse { private Boolean isLocked; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_SIGNER_ROLES = "signer_roles"; private List signerRoles = null; @@ -298,25 +298,33 @@ public void setIsLocked(Boolean isLocked) { this.isLocked = isLocked; } - public TemplateResponse metadata(Object metadata) { + public TemplateResponse metadata(Map metadata) { this.metadata = metadata; return this; } + public TemplateResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the template. * * @return metadata */ @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/java-v2/README.md b/sdks/java-v2/README.md index 3b2e2a381..d9afebf2b 100644 --- a/sdks/java-v2/README.md +++ b/sdks/java-v2/README.md @@ -56,7 +56,7 @@ Add this dependency to your project's POM: com.dropbox.sign dropbox-sign - 2.3-dev + 2.4-dev compile ``` @@ -72,7 +72,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.dropbox.sign:dropbox-sign:2.3-dev" + implementation "com.dropbox.sign:dropbox-sign:2.4-dev" } ``` @@ -86,7 +86,7 @@ mvn clean package Then manually install the following JARs: -- `target/dropbox-sign-2.3-dev.jar` +- `target/dropbox-sign-2.4-dev.jar` - `target/lib/*.jar` ## Getting Started @@ -435,7 +435,7 @@ apisupport@hellosign.com This Java package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `3.0.0` - - Package version: `2.3-dev` + - Package version: `2.4-dev` - Build package: `org.openapitools.codegen.languages.JavaClientCodegen` diff --git a/sdks/java-v2/VERSION b/sdks/java-v2/VERSION index 69c49c721..12144f5cf 100644 --- a/sdks/java-v2/VERSION +++ b/sdks/java-v2/VERSION @@ -1 +1 @@ -2.3-dev +2.4-dev diff --git a/sdks/java-v2/build.gradle b/sdks/java-v2/build.gradle index bc7251f00..dadf69fc9 100644 --- a/sdks/java-v2/build.gradle +++ b/sdks/java-v2/build.gradle @@ -21,7 +21,7 @@ apply plugin: 'signing' group = 'com.dropbox.sign' archivesBaseName = 'dropbox-sign' -version = '2.3-dev' +version = '2.4-dev' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 diff --git a/sdks/java-v2/build.sbt b/sdks/java-v2/build.sbt index cd67930d6..6ca675690 100644 --- a/sdks/java-v2/build.sbt +++ b/sdks/java-v2/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.dropbox.sign", name := "dropbox-sign", - version := "2.3-dev", + version := "2.4-dev", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), Compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md index ba283afd8..09809ea86 100644 --- a/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/java-v2/docs/BulkSendJobGetResponseSignatureRequests.md @@ -15,7 +15,7 @@ | `originalTitle` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Map``` | The metadata attached to the signature request. | | | `createdAt` | ```Integer``` | Time the signature request was created. | | | `expiresAt` | ```Integer``` | 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. | | | `isComplete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/java-v2/docs/FaxResponse.md b/sdks/java-v2/docs/FaxResponse.md index 77ec7eb10..a1c857b48 100644 --- a/sdks/java-v2/docs/FaxResponse.md +++ b/sdks/java-v2/docs/FaxResponse.md @@ -11,13 +11,14 @@ | `faxId`*_required_ | ```String``` | Fax ID | | | `title`*_required_ | ```String``` | Fax Title | | | `originalTitle`*_required_ | ```String``` | Fax Original Title | | -| `subject`*_required_ | ```String``` | Fax Subject | | -| `message`*_required_ | ```String``` | Fax Message | | | `metadata`*_required_ | ```Map``` | Fax Metadata | | | `createdAt`*_required_ | ```Integer``` | Fax Created At Timestamp | | | `sender`*_required_ | ```String``` | Fax Sender Email | | -| `transmissions`*_required_ | [```List```](FaxResponseTransmission.md) | Fax Transmissions List | | | `filesUrl`*_required_ | ```String``` | Fax Files URL | | +| `transmissions`*_required_ | [```List```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```String``` | Fax Subject | | +| `message` | ```String``` | Fax Message | | +| `finalCopyUri` | ```String``` | The path where the completed document can be downloaded | | diff --git a/sdks/java-v2/docs/FaxResponseTransmission.md b/sdks/java-v2/docs/FaxResponseTransmission.md index 09db223e9..535750b13 100644 --- a/sdks/java-v2/docs/FaxResponseTransmission.md +++ b/sdks/java-v2/docs/FaxResponseTransmission.md @@ -9,7 +9,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | `recipient`*_required_ | ```String``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```String``` | Fax Transmission Sender | | | `statusCode`*_required_ | [```StatusCodeEnum```](#StatusCodeEnum) | Fax Transmission Status Code | | | `sentAt` | ```Integer``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/java-v2/docs/SignatureRequestResponse.md b/sdks/java-v2/docs/SignatureRequestResponse.md index 2c9efa532..6e8d9645c 100644 --- a/sdks/java-v2/docs/SignatureRequestResponse.md +++ b/sdks/java-v2/docs/SignatureRequestResponse.md @@ -15,7 +15,7 @@ Contains information about a signature request. | `originalTitle` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Map``` | The metadata attached to the signature request. | | | `createdAt` | ```Integer``` | Time the signature request was created. | | | `expiresAt` | ```Integer``` | 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. | | | `isComplete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md index 7f82d742c..760618b49 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..8cea5ac2e 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v2/docs/TemplateResponse.md b/sdks/java-v2/docs/TemplateResponse.md index 27673e39b..40de0fdc8 100644 --- a/sdks/java-v2/docs/TemplateResponse.md +++ b/sdks/java-v2/docs/TemplateResponse.md @@ -16,7 +16,7 @@ Contains information about the templates you and your team have created. | `isCreator` | ```Boolean``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `canEdit` | ```Boolean``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `isLocked` | ```Boolean``` | 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. | | -| `metadata` | ```Object``` | The metadata attached to the template. | | +| `metadata` | ```Map``` | The metadata attached to the template. | | | `signerRoles` | [```List```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `ccRoles` | [```List```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```List```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | diff --git a/sdks/java-v2/gradle.properties b/sdks/java-v2/gradle.properties index d0446faf1..1f08bfd5f 100644 --- a/sdks/java-v2/gradle.properties +++ b/sdks/java-v2/gradle.properties @@ -6,7 +6,7 @@ #target = android GROUP=com.dropbox.sign POM_ARTIFACT_ID=dropbox-sign -VERSION_NAME=2.3-dev +VERSION_NAME=2.4-dev POM_NAME=Dropbox Sign Java SDK POM_DESCRIPTION=Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/sdks/java-v2/openapi-config.yaml b/sdks/java-v2/openapi-config.yaml index a48d05cd1..44bc2c133 100644 --- a/sdks/java-v2/openapi-config.yaml +++ b/sdks/java-v2/openapi-config.yaml @@ -18,7 +18,7 @@ additionalProperties: groupId: com.dropbox.sign artifactId: dropbox-sign artifactName: Dropbox Sign Java SDK - artifactVersion: "2.3-dev" + artifactVersion: "2.4-dev" artifactUrl: https://github.com/hellosign/dropbox-sign-java artifactDescription: Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! scmConnection: scm:git:git://github.com/hellosign/dropbox-sign-java.git diff --git a/sdks/java-v2/pom.xml b/sdks/java-v2/pom.xml index 9979d4d6e..f5ef2ad0e 100644 --- a/sdks/java-v2/pom.xml +++ b/sdks/java-v2/pom.xml @@ -5,7 +5,7 @@ dropbox-sign jar dropbox-sign - 2.3-dev + 2.4-dev https://github.com/hellosign/dropbox-sign-java Use the Dropbox Sign Java SDK to connect your Java app to the service of Dropbox Sign in microseconds! diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java index 43e0fb0d3..6e98226ae 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/ApiClient.java @@ -159,7 +159,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.3-dev/java"); + setUserAgent("OpenAPI-Generator/2.4-dev/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>(); diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java b/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java index 520358e53..69b20c70d 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/Configuration.java @@ -15,7 +15,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") public class Configuration { - public static final String VERSION = "2.3-dev"; + public static final String VERSION = "2.4-dev"; private static ApiClient defaultApiClient = new ApiClient(); 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 76c5b3120..3901db15f 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 @@ -27,7 +27,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.dropbox.sign.JSON; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -90,7 +92,7 @@ public class BulkSendJobGetResponseSignatureRequests { private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private Integer createdAt; @@ -336,27 +338,35 @@ public void setMessage(String message) { } - public BulkSendJobGetResponseSignatureRequests metadata(Object metadata) { + public BulkSendJobGetResponseSignatureRequests metadata(Map metadata) { this.metadata = metadata; return this; } + public BulkSendJobGetResponseSignatureRequests putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the signature request. * @return metadata */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java index 35f4ffc6a..9d64e25b8 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponse.java @@ -41,13 +41,14 @@ FaxResponse.JSON_PROPERTY_FAX_ID, FaxResponse.JSON_PROPERTY_TITLE, FaxResponse.JSON_PROPERTY_ORIGINAL_TITLE, - FaxResponse.JSON_PROPERTY_SUBJECT, - FaxResponse.JSON_PROPERTY_MESSAGE, FaxResponse.JSON_PROPERTY_METADATA, FaxResponse.JSON_PROPERTY_CREATED_AT, FaxResponse.JSON_PROPERTY_SENDER, + FaxResponse.JSON_PROPERTY_FILES_URL, FaxResponse.JSON_PROPERTY_TRANSMISSIONS, - FaxResponse.JSON_PROPERTY_FILES_URL + FaxResponse.JSON_PROPERTY_SUBJECT, + FaxResponse.JSON_PROPERTY_MESSAGE, + FaxResponse.JSON_PROPERTY_FINAL_COPY_URI }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties(ignoreUnknown=true) @@ -61,12 +62,6 @@ public class FaxResponse { public static final String JSON_PROPERTY_ORIGINAL_TITLE = "original_title"; private String originalTitle; - public static final String JSON_PROPERTY_SUBJECT = "subject"; - private String subject; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - public static final String JSON_PROPERTY_METADATA = "metadata"; private Map metadata = new HashMap<>(); @@ -76,11 +71,20 @@ public class FaxResponse { public static final String JSON_PROPERTY_SENDER = "sender"; private String sender; + public static final String JSON_PROPERTY_FILES_URL = "files_url"; + private String filesUrl; + public static final String JSON_PROPERTY_TRANSMISSIONS = "transmissions"; private List transmissions = new ArrayList<>(); - public static final String JSON_PROPERTY_FILES_URL = "files_url"; - private String filesUrl; + public static final String JSON_PROPERTY_SUBJECT = "subject"; + private String subject; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_FINAL_COPY_URI = "final_copy_uri"; + private String finalCopyUri; public FaxResponse() { } @@ -175,56 +179,6 @@ public void setOriginalTitle(String originalTitle) { } - public FaxResponse subject(String subject) { - this.subject = subject; - return this; - } - - /** - * Fax Subject - * @return subject - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SUBJECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getSubject() { - return subject; - } - - - @JsonProperty(JSON_PROPERTY_SUBJECT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSubject(String subject) { - this.subject = subject; - } - - - public FaxResponse message(String message) { - this.message = message; - return this; - } - - /** - * Fax Message - * @return message - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - public FaxResponse metadata(Map metadata) { this.metadata = metadata; return this; @@ -308,6 +262,31 @@ public void setSender(String sender) { } + public FaxResponse filesUrl(String filesUrl) { + this.filesUrl = filesUrl; + return this; + } + + /** + * Fax Files URL + * @return filesUrl + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getFilesUrl() { + return filesUrl; + } + + + @JsonProperty(JSON_PROPERTY_FILES_URL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFilesUrl(String filesUrl) { + this.filesUrl = filesUrl; + } + + public FaxResponse transmissions(List transmissions) { this.transmissions = transmissions; return this; @@ -341,28 +320,78 @@ public void setTransmissions(List transmissions) { } - public FaxResponse filesUrl(String filesUrl) { - this.filesUrl = filesUrl; + public FaxResponse subject(String subject) { + this.subject = subject; return this; } /** - * Fax Files URL - * @return filesUrl + * Fax Subject + * @return subject */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_FILES_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFilesUrl() { - return filesUrl; + public String getSubject() { + return subject; } - @JsonProperty(JSON_PROPERTY_FILES_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFilesUrl(String filesUrl) { - this.filesUrl = filesUrl; + @JsonProperty(JSON_PROPERTY_SUBJECT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSubject(String subject) { + this.subject = subject; + } + + + public FaxResponse message(String message) { + this.message = message; + return this; + } + + /** + * Fax Message + * @return message + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + + public FaxResponse finalCopyUri(String finalCopyUri) { + this.finalCopyUri = finalCopyUri; + return this; + } + + /** + * The path where the completed document can be downloaded + * @return finalCopyUri + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFinalCopyUri() { + return finalCopyUri; + } + + + @JsonProperty(JSON_PROPERTY_FINAL_COPY_URI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFinalCopyUri(String finalCopyUri) { + this.finalCopyUri = finalCopyUri; } @@ -381,18 +410,19 @@ public boolean equals(Object o) { return Objects.equals(this.faxId, faxResponse.faxId) && Objects.equals(this.title, faxResponse.title) && Objects.equals(this.originalTitle, faxResponse.originalTitle) && - Objects.equals(this.subject, faxResponse.subject) && - Objects.equals(this.message, faxResponse.message) && Objects.equals(this.metadata, faxResponse.metadata) && Objects.equals(this.createdAt, faxResponse.createdAt) && Objects.equals(this.sender, faxResponse.sender) && + Objects.equals(this.filesUrl, faxResponse.filesUrl) && Objects.equals(this.transmissions, faxResponse.transmissions) && - Objects.equals(this.filesUrl, faxResponse.filesUrl); + Objects.equals(this.subject, faxResponse.subject) && + Objects.equals(this.message, faxResponse.message) && + Objects.equals(this.finalCopyUri, faxResponse.finalCopyUri); } @Override public int hashCode() { - return Objects.hash(faxId, title, originalTitle, subject, message, metadata, createdAt, sender, transmissions, filesUrl); + return Objects.hash(faxId, title, originalTitle, metadata, createdAt, sender, filesUrl, transmissions, subject, message, finalCopyUri); } @Override @@ -402,13 +432,14 @@ public String toString() { sb.append(" faxId: ").append(toIndentedString(faxId)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" originalTitle: ").append(toIndentedString(originalTitle)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" sender: ").append(toIndentedString(sender)).append("\n"); - sb.append(" transmissions: ").append(toIndentedString(transmissions)).append("\n"); sb.append(" filesUrl: ").append(toIndentedString(filesUrl)).append("\n"); + sb.append(" transmissions: ").append(toIndentedString(transmissions)).append("\n"); + sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" finalCopyUri: ").append(toIndentedString(finalCopyUri)).append("\n"); sb.append("}"); return sb.toString(); } @@ -474,44 +505,6 @@ public Map createFormData() throws ApiException { map.put("original_title", JSON.getDefault().getMapper().writeValueAsString(originalTitle)); } } - if (subject != null) { - if (isFileTypeOrListOfFiles(subject)) { - fileTypeFound = true; - } - - if (subject.getClass().equals(java.io.File.class) || - subject.getClass().equals(Integer.class) || - subject.getClass().equals(String.class) || - subject.getClass().isEnum()) { - map.put("subject", subject); - } else if (isListOfFile(subject)) { - for(int i = 0; i< getListSize(subject); i++) { - map.put("subject[" + i + "]", getFromList(subject, i)); - } - } - else { - map.put("subject", JSON.getDefault().getMapper().writeValueAsString(subject)); - } - } - if (message != null) { - if (isFileTypeOrListOfFiles(message)) { - fileTypeFound = true; - } - - if (message.getClass().equals(java.io.File.class) || - message.getClass().equals(Integer.class) || - message.getClass().equals(String.class) || - message.getClass().isEnum()) { - map.put("message", message); - } else if (isListOfFile(message)) { - for(int i = 0; i< getListSize(message); i++) { - map.put("message[" + i + "]", getFromList(message, i)); - } - } - else { - map.put("message", JSON.getDefault().getMapper().writeValueAsString(message)); - } - } if (metadata != null) { if (isFileTypeOrListOfFiles(metadata)) { fileTypeFound = true; @@ -569,6 +562,25 @@ public Map createFormData() throws ApiException { map.put("sender", JSON.getDefault().getMapper().writeValueAsString(sender)); } } + if (filesUrl != null) { + if (isFileTypeOrListOfFiles(filesUrl)) { + fileTypeFound = true; + } + + if (filesUrl.getClass().equals(java.io.File.class) || + filesUrl.getClass().equals(Integer.class) || + filesUrl.getClass().equals(String.class) || + filesUrl.getClass().isEnum()) { + map.put("files_url", filesUrl); + } else if (isListOfFile(filesUrl)) { + for(int i = 0; i< getListSize(filesUrl); i++) { + map.put("files_url[" + i + "]", getFromList(filesUrl, i)); + } + } + else { + map.put("files_url", JSON.getDefault().getMapper().writeValueAsString(filesUrl)); + } + } if (transmissions != null) { if (isFileTypeOrListOfFiles(transmissions)) { fileTypeFound = true; @@ -588,23 +600,61 @@ public Map createFormData() throws ApiException { map.put("transmissions", JSON.getDefault().getMapper().writeValueAsString(transmissions)); } } - if (filesUrl != null) { - if (isFileTypeOrListOfFiles(filesUrl)) { + if (subject != null) { + if (isFileTypeOrListOfFiles(subject)) { fileTypeFound = true; } - if (filesUrl.getClass().equals(java.io.File.class) || - filesUrl.getClass().equals(Integer.class) || - filesUrl.getClass().equals(String.class) || - filesUrl.getClass().isEnum()) { - map.put("files_url", filesUrl); - } else if (isListOfFile(filesUrl)) { - for(int i = 0; i< getListSize(filesUrl); i++) { - map.put("files_url[" + i + "]", getFromList(filesUrl, i)); + if (subject.getClass().equals(java.io.File.class) || + subject.getClass().equals(Integer.class) || + subject.getClass().equals(String.class) || + subject.getClass().isEnum()) { + map.put("subject", subject); + } else if (isListOfFile(subject)) { + for(int i = 0; i< getListSize(subject); i++) { + map.put("subject[" + i + "]", getFromList(subject, i)); } } else { - map.put("files_url", JSON.getDefault().getMapper().writeValueAsString(filesUrl)); + map.put("subject", JSON.getDefault().getMapper().writeValueAsString(subject)); + } + } + if (message != null) { + if (isFileTypeOrListOfFiles(message)) { + fileTypeFound = true; + } + + if (message.getClass().equals(java.io.File.class) || + message.getClass().equals(Integer.class) || + message.getClass().equals(String.class) || + message.getClass().isEnum()) { + map.put("message", message); + } else if (isListOfFile(message)) { + for(int i = 0; i< getListSize(message); i++) { + map.put("message[" + i + "]", getFromList(message, i)); + } + } + else { + map.put("message", JSON.getDefault().getMapper().writeValueAsString(message)); + } + } + if (finalCopyUri != null) { + if (isFileTypeOrListOfFiles(finalCopyUri)) { + fileTypeFound = true; + } + + if (finalCopyUri.getClass().equals(java.io.File.class) || + finalCopyUri.getClass().equals(Integer.class) || + finalCopyUri.getClass().equals(String.class) || + finalCopyUri.getClass().isEnum()) { + map.put("final_copy_uri", finalCopyUri); + } else if (isListOfFile(finalCopyUri)) { + for(int i = 0; i< getListSize(finalCopyUri); i++) { + map.put("final_copy_uri[" + i + "]", getFromList(finalCopyUri, i)); + } + } + else { + map.put("final_copy_uri", JSON.getDefault().getMapper().writeValueAsString(finalCopyUri)); } } } catch (Exception e) { diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java index dc7bb06a4..d53176bb7 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/FaxResponseTransmission.java @@ -34,7 +34,6 @@ */ @JsonPropertyOrder({ FaxResponseTransmission.JSON_PROPERTY_RECIPIENT, - FaxResponseTransmission.JSON_PROPERTY_SENDER, FaxResponseTransmission.JSON_PROPERTY_STATUS_CODE, FaxResponseTransmission.JSON_PROPERTY_SENT_AT }) @@ -44,9 +43,6 @@ public class FaxResponseTransmission { public static final String JSON_PROPERTY_RECIPIENT = "recipient"; private String recipient; - public static final String JSON_PROPERTY_SENDER = "sender"; - private String sender; - /** * Fax Transmission Status Code */ @@ -143,31 +139,6 @@ public void setRecipient(String recipient) { } - public FaxResponseTransmission sender(String sender) { - this.sender = sender; - return this; - } - - /** - * Fax Transmission Sender - * @return sender - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_SENDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getSender() { - return sender; - } - - - @JsonProperty(JSON_PROPERTY_SENDER) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSender(String sender) { - this.sender = sender; - } - - public FaxResponseTransmission statusCode(StatusCodeEnum statusCode) { this.statusCode = statusCode; return this; @@ -231,14 +202,13 @@ public boolean equals(Object o) { } FaxResponseTransmission faxResponseTransmission = (FaxResponseTransmission) o; return Objects.equals(this.recipient, faxResponseTransmission.recipient) && - Objects.equals(this.sender, faxResponseTransmission.sender) && Objects.equals(this.statusCode, faxResponseTransmission.statusCode) && Objects.equals(this.sentAt, faxResponseTransmission.sentAt); } @Override public int hashCode() { - return Objects.hash(recipient, sender, statusCode, sentAt); + return Objects.hash(recipient, statusCode, sentAt); } @Override @@ -246,7 +216,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FaxResponseTransmission {\n"); sb.append(" recipient: ").append(toIndentedString(recipient)).append("\n"); - sb.append(" sender: ").append(toIndentedString(sender)).append("\n"); sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); sb.append(" sentAt: ").append(toIndentedString(sentAt)).append("\n"); sb.append("}"); @@ -276,25 +245,6 @@ public Map createFormData() throws ApiException { map.put("recipient", JSON.getDefault().getMapper().writeValueAsString(recipient)); } } - if (sender != null) { - if (isFileTypeOrListOfFiles(sender)) { - fileTypeFound = true; - } - - if (sender.getClass().equals(java.io.File.class) || - sender.getClass().equals(Integer.class) || - sender.getClass().equals(String.class) || - sender.getClass().isEnum()) { - map.put("sender", sender); - } else if (isListOfFile(sender)) { - for(int i = 0; i< getListSize(sender); i++) { - map.put("sender[" + i + "]", getFromList(sender, i)); - } - } - else { - map.put("sender", JSON.getDefault().getMapper().writeValueAsString(sender)); - } - } if (statusCode != null) { if (isFileTypeOrListOfFiles(statusCode)) { fileTypeFound = true; 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 c041d42a9..44fdde922 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 @@ -27,7 +27,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.dropbox.sign.JSON; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -90,7 +92,7 @@ public class SignatureRequestResponse { private String message; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private Integer createdAt; @@ -336,27 +338,35 @@ public void setMessage(String message) { } - public SignatureRequestResponse metadata(Object metadata) { + public SignatureRequestResponse metadata(Map metadata) { this.metadata = metadata; return this; } + public SignatureRequestResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the signature request. * @return metadata */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index cab08d907..3724d3e55 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -38,7 +38,8 @@ */ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -54,6 +55,9 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueInitials() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * @return isSigned + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsSigned() { + return isSigned; + } + + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + + /** * Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */ @@ -136,12 +165,13 @@ public boolean equals(Object o) { SignatureRequestResponseDataValueInitials signatureRequestResponseDataValueInitials = (SignatureRequestResponseDataValueInitials) o; return Objects.equals(this.type, signatureRequestResponseDataValueInitials.type) && Objects.equals(this.value, signatureRequestResponseDataValueInitials.value) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -151,6 +181,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,6 +229,25 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) || + isSigned.getClass().equals(Integer.class) || + isSigned.getClass().equals(String.class) || + isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for(int i = 0; i< getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } + else { + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 79eb3b4a9..1a789fb30 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -38,7 +38,8 @@ */ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -54,6 +55,9 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueSignature() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * @return isSigned + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsSigned() { + return isSigned; + } + + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + + /** * Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */ @@ -136,12 +165,13 @@ public boolean equals(Object o) { SignatureRequestResponseDataValueSignature signatureRequestResponseDataValueSignature = (SignatureRequestResponseDataValueSignature) o; return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type) && Objects.equals(this.value, signatureRequestResponseDataValueSignature.value) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -151,6 +181,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,6 +229,25 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) || + isSigned.getClass().equals(Integer.class) || + isSigned.getClass().equals(String.class) || + isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for(int i = 0; i< getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } + else { + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } 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 5924befa8..f031a0363 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 @@ -30,7 +30,9 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.dropbox.sign.JSON; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -87,7 +89,7 @@ public class TemplateResponse { private Boolean isLocked; public static final String JSON_PROPERTY_METADATA = "metadata"; - private Object metadata; + private Map metadata = null; public static final String JSON_PROPERTY_SIGNER_ROLES = "signer_roles"; private List signerRoles = null; @@ -330,27 +332,35 @@ public void setIsLocked(Boolean isLocked) { } - public TemplateResponse metadata(Object metadata) { + public TemplateResponse metadata(Map metadata) { this.metadata = metadata; return this; } + public TemplateResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * The metadata attached to the template. * @return metadata */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Object getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(Object metadata) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(Map metadata) { this.metadata = metadata; } diff --git a/sdks/node/VERSION b/sdks/node/VERSION index b19f5be06..d82db9132 100644 --- a/sdks/node/VERSION +++ b/sdks/node/VERSION @@ -1 +1 @@ -1.7-dev +1.8-dev diff --git a/sdks/node/api/apis.ts b/sdks/node/api/apis.ts index 9cbae1aed..771aa5c8e 100644 --- a/sdks/node/api/apis.ts +++ b/sdks/node/api/apis.ts @@ -38,7 +38,7 @@ export const queryParamsSerializer = (params) => { return Qs.stringify(params, { arrayFormat: "brackets" }); }; -export const USER_AGENT = "OpenAPI-Generator/1.7-dev/node"; +export const USER_AGENT = "OpenAPI-Generator/1.8-dev/node"; /** * Generates an object containing form data. diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index e92bff233..3b8851064 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -17145,7 +17145,7 @@ BulkSendJobGetResponseSignatureRequests.attributeTypeMap = [ { name: "metadata", baseName: "metadata", - type: "object" + type: "{ [key: string]: any; }" }, { name: "createdAt", @@ -18080,16 +18080,6 @@ FaxResponse.attributeTypeMap = [ baseName: "original_title", type: "string" }, - { - name: "subject", - baseName: "subject", - type: "string" - }, - { - name: "message", - baseName: "message", - type: "string" - }, { name: "metadata", baseName: "metadata", @@ -18105,14 +18095,29 @@ FaxResponse.attributeTypeMap = [ baseName: "sender", type: "string" }, + { + name: "filesUrl", + baseName: "files_url", + type: "string" + }, { name: "transmissions", baseName: "transmissions", type: "Array" }, { - name: "filesUrl", - baseName: "files_url", + name: "subject", + baseName: "subject", + type: "string" + }, + { + name: "message", + baseName: "message", + type: "string" + }, + { + name: "finalCopyUri", + baseName: "final_copy_uri", type: "string" } ]; @@ -18134,11 +18139,6 @@ FaxResponseTransmission.attributeTypeMap = [ baseName: "recipient", type: "string" }, - { - name: "sender", - baseName: "sender", - type: "string" - }, { name: "statusCode", baseName: "status_code", @@ -19255,7 +19255,7 @@ SignatureRequestResponse.attributeTypeMap = [ { name: "metadata", baseName: "metadata", - type: "object" + type: "{ [key: string]: any; }" }, { name: "createdAt", @@ -19743,6 +19743,11 @@ SignatureRequestResponseDataValueInitials.attributeTypeMap = [ name: "value", baseName: "value", type: "string" + }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; @@ -19805,6 +19810,11 @@ SignatureRequestResponseDataValueSignature.attributeTypeMap = [ name: "value", baseName: "value", type: "string" + }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; @@ -22758,7 +22768,7 @@ TemplateResponse.attributeTypeMap = [ { name: "metadata", baseName: "metadata", - type: "object" + type: "{ [key: string]: any; }" }, { name: "signerRoles", @@ -33213,7 +33223,7 @@ var HttpError = class extends Error { var queryParamsSerializer = (params) => { return import_qs.default.stringify(params, { arrayFormat: "brackets" }); }; -var USER_AGENT = "OpenAPI-Generator/1.7-dev/node"; +var USER_AGENT = "OpenAPI-Generator/1.8-dev/node"; var generateFormData = (obj, typemap) => { const data = {}; let localVarUseFormData = false; diff --git a/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md b/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md index 4e210abcb..fe84b808e 100644 --- a/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/node/docs/model/BulkSendJobGetResponseSignatureRequests.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes | `originalTitle` | ```string``` | Default Label for account. | | | `subject` | ```string``` | The subject in the email that was initially sent to the signers. | | | `message` | ```string``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```object``` | The metadata attached to the signature request. | | +| `metadata` | ```{ [key: string]: any; }``` | The metadata attached to the signature request. | | | `createdAt` | ```number``` | Time the signature request was created. | | | `expiresAt` | ```number``` | 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. | | | `isComplete` | ```boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/node/docs/model/FaxResponse.md b/sdks/node/docs/model/FaxResponse.md index 413a36b71..349cb6bc6 100644 --- a/sdks/node/docs/model/FaxResponse.md +++ b/sdks/node/docs/model/FaxResponse.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes | `faxId`*_required_ | ```string``` | Fax ID | | | `title`*_required_ | ```string``` | Fax Title | | | `originalTitle`*_required_ | ```string``` | Fax Original Title | | -| `subject`*_required_ | ```string``` | Fax Subject | | -| `message`*_required_ | ```string``` | Fax Message | | | `metadata`*_required_ | ```{ [key: string]: any; }``` | Fax Metadata | | | `createdAt`*_required_ | ```number``` | Fax Created At Timestamp | | | `sender`*_required_ | ```string``` | Fax Sender Email | | -| `transmissions`*_required_ | [```Array```](FaxResponseTransmission.md) | Fax Transmissions List | | | `filesUrl`*_required_ | ```string``` | Fax Files URL | | +| `transmissions`*_required_ | [```Array```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```string``` | Fax Subject | | +| `message` | ```string``` | Fax Message | | +| `finalCopyUri` | ```string``` | The path where the completed document can be downloaded | | [[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/FaxResponseTransmission.md b/sdks/node/docs/model/FaxResponseTransmission.md index c0d8491c0..2b554cb20 100644 --- a/sdks/node/docs/model/FaxResponseTransmission.md +++ b/sdks/node/docs/model/FaxResponseTransmission.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `recipient`*_required_ | ```string``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```string``` | Fax Transmission Sender | | | `statusCode`*_required_ | ```string``` | Fax Transmission Status Code | | | `sentAt` | ```number``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/node/docs/model/SignatureRequestResponse.md b/sdks/node/docs/model/SignatureRequestResponse.md index 4a3228a17..8bf5449d0 100644 --- a/sdks/node/docs/model/SignatureRequestResponse.md +++ b/sdks/node/docs/model/SignatureRequestResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes | `originalTitle` | ```string``` | Default Label for account. | | | `subject` | ```string``` | The subject in the email that was initially sent to the signers. | | | `message` | ```string``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```object``` | The metadata attached to the signature request. | | +| `metadata` | ```{ [key: string]: any; }``` | The metadata attached to the signature request. | | | `createdAt` | ```number``` | Time the signature request was created. | | | `expiresAt` | ```number``` | 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. | | | `isComplete` | ```boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md index 7e294a6a0..2a80d7347 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | +| `isSigned` | ```boolean``` | This field contains the boolean true if the field is signed. | | [[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/SignatureRequestResponseDataValueSignature.md b/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md index eac84c81e..1b76c43b5 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | +| `isSigned` | ```boolean``` | This field contains the boolean true if the field is signed. | | [[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 90ed7af2e..05e6532d2 100644 --- a/sdks/node/docs/model/TemplateResponse.md +++ b/sdks/node/docs/model/TemplateResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes | `isCreator` | ```boolean``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `canEdit` | ```boolean``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `isLocked` | ```boolean``` | 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. | | -| `metadata` | ```object``` | The metadata attached to the template. | | +| `metadata` | ```{ [key: string]: any; }``` | The metadata attached to the template. | | | `signerRoles` | [```Array```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `ccRoles` | [```Array```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```Array```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | diff --git a/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts b/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts index e271790d1..9ff1456f6 100644 --- a/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts +++ b/sdks/node/model/bulkSendJobGetResponseSignatureRequests.ts @@ -32,7 +32,7 @@ export class BulkSendJobGetResponseSignatureRequests { /** * Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. */ - "testMode"?: boolean | null = false; + "testMode"?: boolean = false; /** * The id of the SignatureRequest. */ @@ -40,7 +40,7 @@ export class BulkSendJobGetResponseSignatureRequests { /** * The email address of the initiator of the SignatureRequest. */ - "requesterEmailAddress"?: string; + "requesterEmailAddress"?: string | null; /** * The title the specified Account uses for the SignatureRequest. */ @@ -60,7 +60,7 @@ export class BulkSendJobGetResponseSignatureRequests { /** * The metadata attached to the signature request. */ - "metadata"?: object; + "metadata"?: { [key: string]: any }; /** * Time the signature request was created. */ @@ -68,7 +68,7 @@ export class BulkSendJobGetResponseSignatureRequests { /** * 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. */ - "expiresAt"?: number; + "expiresAt"?: number | null; /** * Whether or not the SignatureRequest has been fully executed by all signers. */ @@ -171,7 +171,7 @@ export class BulkSendJobGetResponseSignatureRequests { { name: "metadata", baseName: "metadata", - type: "object", + type: "{ [key: string]: any; }", }, { name: "createdAt", diff --git a/sdks/node/model/faxResponse.ts b/sdks/node/model/faxResponse.ts index 1697d212a..2a615a4bd 100644 --- a/sdks/node/model/faxResponse.ts +++ b/sdks/node/model/faxResponse.ts @@ -38,14 +38,6 @@ export class FaxResponse { * Fax Original Title */ "originalTitle": string; - /** - * Fax Subject - */ - "subject": string; - /** - * Fax Message - */ - "message": string; /** * Fax Metadata */ @@ -58,14 +50,26 @@ export class FaxResponse { * Fax Sender Email */ "sender": string; + /** + * Fax Files URL + */ + "filesUrl": string; /** * Fax Transmissions List */ "transmissions": Array; /** - * Fax Files URL + * Fax Subject */ - "filesUrl": string; + "subject"?: string | null; + /** + * Fax Message + */ + "message"?: string | null; + /** + * The path where the completed document can be downloaded + */ + "finalCopyUri"?: string | null; static discriminator: string | undefined = undefined; @@ -85,16 +89,6 @@ export class FaxResponse { baseName: "original_title", type: "string", }, - { - name: "subject", - baseName: "subject", - type: "string", - }, - { - name: "message", - baseName: "message", - type: "string", - }, { name: "metadata", baseName: "metadata", @@ -110,14 +104,29 @@ export class FaxResponse { baseName: "sender", type: "string", }, + { + name: "filesUrl", + baseName: "files_url", + type: "string", + }, { name: "transmissions", baseName: "transmissions", type: "Array", }, { - name: "filesUrl", - baseName: "files_url", + name: "subject", + baseName: "subject", + type: "string", + }, + { + name: "message", + baseName: "message", + type: "string", + }, + { + name: "finalCopyUri", + baseName: "final_copy_uri", type: "string", }, ]; diff --git a/sdks/node/model/faxResponseTransmission.ts b/sdks/node/model/faxResponseTransmission.ts index f43034a9d..1cd43b2ce 100644 --- a/sdks/node/model/faxResponseTransmission.ts +++ b/sdks/node/model/faxResponseTransmission.ts @@ -29,10 +29,6 @@ export class FaxResponseTransmission { * Fax Transmission Recipient */ "recipient": string; - /** - * Fax Transmission Sender - */ - "sender": string; /** * Fax Transmission Status Code */ @@ -50,11 +46,6 @@ export class FaxResponseTransmission { baseName: "recipient", type: "string", }, - { - name: "sender", - baseName: "sender", - type: "string", - }, { name: "statusCode", baseName: "status_code", diff --git a/sdks/node/model/signatureRequestResponse.ts b/sdks/node/model/signatureRequestResponse.ts index 65ce7f128..014da962b 100644 --- a/sdks/node/model/signatureRequestResponse.ts +++ b/sdks/node/model/signatureRequestResponse.ts @@ -35,7 +35,7 @@ export class SignatureRequestResponse { /** * Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. */ - "testMode"?: boolean | null = false; + "testMode"?: boolean = false; /** * The id of the SignatureRequest. */ @@ -43,7 +43,7 @@ export class SignatureRequestResponse { /** * The email address of the initiator of the SignatureRequest. */ - "requesterEmailAddress"?: string; + "requesterEmailAddress"?: string | null; /** * The title the specified Account uses for the SignatureRequest. */ @@ -63,7 +63,7 @@ export class SignatureRequestResponse { /** * The metadata attached to the signature request. */ - "metadata"?: object; + "metadata"?: { [key: string]: any }; /** * Time the signature request was created. */ @@ -71,7 +71,7 @@ export class SignatureRequestResponse { /** * 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. */ - "expiresAt"?: number; + "expiresAt"?: number | null; /** * Whether or not the SignatureRequest has been fully executed by all signers. */ @@ -174,7 +174,7 @@ export class SignatureRequestResponse { { name: "metadata", baseName: "metadata", - type: "object", + type: "{ [key: string]: any; }", }, { name: "createdAt", diff --git a/sdks/node/model/signatureRequestResponseCustomFieldBase.ts b/sdks/node/model/signatureRequestResponseCustomFieldBase.ts index ffd75d1c4..ce0ace207 100644 --- a/sdks/node/model/signatureRequestResponseCustomFieldBase.ts +++ b/sdks/node/model/signatureRequestResponseCustomFieldBase.ts @@ -47,7 +47,7 @@ export abstract class SignatureRequestResponseCustomFieldBase { /** * The name of the Role that is able to edit this field. */ - "editor"?: string; + "editor"?: string | null; static discriminator: string | undefined = "type"; diff --git a/sdks/node/model/signatureRequestResponseDataValueInitials.ts b/sdks/node/model/signatureRequestResponseDataValueInitials.ts index 59e854f77..9d3975eb1 100644 --- a/sdks/node/model/signatureRequestResponseDataValueInitials.ts +++ b/sdks/node/model/signatureRequestResponseDataValueInitials.ts @@ -34,6 +34,10 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR * The value of the form field. */ "value"?: string; + /** + * This field contains the boolean true if the field is signed. + */ + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR baseName: "value", type: "string", }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/signatureRequestResponseDataValueSignature.ts b/sdks/node/model/signatureRequestResponseDataValueSignature.ts index 99da64fac..dae941876 100644 --- a/sdks/node/model/signatureRequestResponseDataValueSignature.ts +++ b/sdks/node/model/signatureRequestResponseDataValueSignature.ts @@ -34,6 +34,10 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest * The value of the form field. */ "value"?: string; + /** + * This field contains the boolean true if the field is signed. + */ + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest baseName: "value", type: "string", }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/templateResponse.ts b/sdks/node/model/templateResponse.ts index 81dc1a4a3..4c4b99226 100644 --- a/sdks/node/model/templateResponse.ts +++ b/sdks/node/model/templateResponse.ts @@ -70,7 +70,7 @@ export class TemplateResponse { /** * The metadata attached to the template. */ - "metadata"?: object; + "metadata"?: { [key: string]: any }; /** * An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. */ @@ -146,7 +146,7 @@ export class TemplateResponse { { name: "metadata", baseName: "metadata", - type: "object", + type: "{ [key: string]: any; }", }, { name: "signerRoles", diff --git a/sdks/node/openapi-config.yaml b/sdks/node/openapi-config.yaml index 96b59f548..130c3ace0 100644 --- a/sdks/node/openapi-config.yaml +++ b/sdks/node/openapi-config.yaml @@ -2,7 +2,7 @@ generatorName: typescript-node typeMappings: {} additionalProperties: npmName: "@dropbox/sign" - npmVersion: 1.7-dev + npmVersion: 1.8-dev supportsES6: true apiDocPath: ./docs/api modelDocPath: ./docs/model diff --git a/sdks/node/package-lock.json b/sdks/node/package-lock.json index b39abe1d3..45782de4c 100644 --- a/sdks/node/package-lock.json +++ b/sdks/node/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dropbox/sign", - "version": "1.7-dev", + "version": "1.8-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@dropbox/sign", - "version": "1.7-dev", + "version": "1.8-dev", "dependencies": { "axios": "^1.7.0", "bluebird": "^3.7.2", diff --git a/sdks/node/package.json b/sdks/node/package.json index 36bde1ba6..8800697af 100644 --- a/sdks/node/package.json +++ b/sdks/node/package.json @@ -1,6 +1,6 @@ { "name": "@dropbox/sign", - "version": "1.7-dev", + "version": "1.8-dev", "description": "Official Node client for Dropbox Sign", "repository": { "type": "git", diff --git a/sdks/node/types/api/apis.d.ts b/sdks/node/types/api/apis.d.ts index 032a26ad8..abe56f276 100644 --- a/sdks/node/types/api/apis.d.ts +++ b/sdks/node/types/api/apis.d.ts @@ -23,7 +23,7 @@ export interface returnTypeI { body?: any; } export declare const queryParamsSerializer: (params: any) => string; -export declare const USER_AGENT = "OpenAPI-Generator/1.7-dev/node"; +export declare const USER_AGENT = "OpenAPI-Generator/1.8-dev/node"; export declare const generateFormData: (obj: any, typemap: AttributeTypeMap) => { localVarUseFormData: boolean; data: object; diff --git a/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts b/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts index 03004f2dd..8f20a3fec 100644 --- a/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts +++ b/sdks/node/types/model/bulkSendJobGetResponseSignatureRequests.d.ts @@ -4,16 +4,18 @@ import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestRespo import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; export declare class BulkSendJobGetResponseSignatureRequests { - "testMode"?: boolean | null; + "testMode"?: boolean; "signatureRequestId"?: string; - "requesterEmailAddress"?: string; + "requesterEmailAddress"?: string | null; "title"?: string; "originalTitle"?: string; "subject"?: string | null; "message"?: string | null; - "metadata"?: object; + "metadata"?: { + [key: string]: any; + }; "createdAt"?: number; - "expiresAt"?: number; + "expiresAt"?: number | null; "isComplete"?: boolean; "isDeclined"?: boolean; "hasError"?: boolean; diff --git a/sdks/node/types/model/faxResponse.d.ts b/sdks/node/types/model/faxResponse.d.ts index 6aa5f2d0a..89c96f004 100644 --- a/sdks/node/types/model/faxResponse.d.ts +++ b/sdks/node/types/model/faxResponse.d.ts @@ -4,15 +4,16 @@ export declare class FaxResponse { "faxId": string; "title": string; "originalTitle": string; - "subject": string; - "message": string; "metadata": { [key: string]: any; }; "createdAt": number; "sender": string; - "transmissions": Array; "filesUrl": string; + "transmissions": Array; + "subject"?: string | null; + "message"?: string | null; + "finalCopyUri"?: string | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/faxResponseTransmission.d.ts b/sdks/node/types/model/faxResponseTransmission.d.ts index f1d587fc4..250f341e6 100644 --- a/sdks/node/types/model/faxResponseTransmission.d.ts +++ b/sdks/node/types/model/faxResponseTransmission.d.ts @@ -1,7 +1,6 @@ import { AttributeTypeMap } from "./"; export declare class FaxResponseTransmission { "recipient": string; - "sender": string; "statusCode": FaxResponseTransmission.StatusCodeEnum; "sentAt"?: number; static discriminator: string | undefined; diff --git a/sdks/node/types/model/signatureRequestResponse.d.ts b/sdks/node/types/model/signatureRequestResponse.d.ts index e215f2c81..a7420b6e9 100644 --- a/sdks/node/types/model/signatureRequestResponse.d.ts +++ b/sdks/node/types/model/signatureRequestResponse.d.ts @@ -4,16 +4,18 @@ import { SignatureRequestResponseCustomFieldBase } from "./signatureRequestRespo import { SignatureRequestResponseDataBase } from "./signatureRequestResponseDataBase"; import { SignatureRequestResponseSignatures } from "./signatureRequestResponseSignatures"; export declare class SignatureRequestResponse { - "testMode"?: boolean | null; + "testMode"?: boolean; "signatureRequestId"?: string; - "requesterEmailAddress"?: string; + "requesterEmailAddress"?: string | null; "title"?: string; "originalTitle"?: string; "subject"?: string | null; "message"?: string | null; - "metadata"?: object; + "metadata"?: { + [key: string]: any; + }; "createdAt"?: number; - "expiresAt"?: number; + "expiresAt"?: number | null; "isComplete"?: boolean; "isDeclined"?: boolean; "hasError"?: boolean; diff --git a/sdks/node/types/model/signatureRequestResponseCustomFieldBase.d.ts b/sdks/node/types/model/signatureRequestResponseCustomFieldBase.d.ts index c222af703..a304664b2 100644 --- a/sdks/node/types/model/signatureRequestResponseCustomFieldBase.d.ts +++ b/sdks/node/types/model/signatureRequestResponseCustomFieldBase.d.ts @@ -4,7 +4,7 @@ export declare abstract class SignatureRequestResponseCustomFieldBase { "name": string; "required"?: boolean; "apiId"?: string; - "editor"?: string; + "editor"?: string | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts index f6939bafb..060954deb 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts @@ -3,6 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueInitials extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; + "isSigned"?: boolean | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts index 8017a799b..281a6943f 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts @@ -3,6 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueSignature extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; + "isSigned"?: boolean | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/templateResponse.d.ts b/sdks/node/types/model/templateResponse.d.ts index b063aef16..53eb191ec 100644 --- a/sdks/node/types/model/templateResponse.d.ts +++ b/sdks/node/types/model/templateResponse.d.ts @@ -15,7 +15,9 @@ export declare class TemplateResponse { "isCreator"?: boolean; "canEdit"?: boolean; "isLocked"?: boolean; - "metadata"?: object; + "metadata"?: { + [key: string]: any; + }; "signerRoles"?: Array; "ccRoles"?: Array; "documents"?: Array; diff --git a/sdks/php/README.md b/sdks/php/README.md index a37c54fe5..ef4b2677f 100644 --- a/sdks/php/README.md +++ b/sdks/php/README.md @@ -53,7 +53,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow ```json { "require": { - "dropbox/sign": "^1.7.0" + "dropbox/sign": "^1.8.0" }, "minimum-stability": "dev" } @@ -64,7 +64,7 @@ Then run `composer install` Alternatively, install directly with ``` -composer require dropbox/sign:^1.7.0 +composer require dropbox/sign:^1.8.0 ``` ## Getting Started @@ -439,6 +439,6 @@ apisupport@hellosign.com This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `3.0.0` - - Package version: `1.7-dev` + - Package version: `1.8-dev` - Generator version: `7.8.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/sdks/php/VERSION b/sdks/php/VERSION index b19f5be06..d82db9132 100644 --- a/sdks/php/VERSION +++ b/sdks/php/VERSION @@ -1 +1 @@ -1.7-dev +1.8-dev diff --git a/sdks/php/bin/php b/sdks/php/bin/php index 22f0b151c..70dc0364e 100755 --- a/sdks/php/bin/php +++ b/sdks/php/bin/php @@ -8,7 +8,7 @@ DIR=$(cd `dirname $0` && pwd) ROOT_DIR="${DIR}/.." WORKING_DIR="/app/php" -if [[ -z "$PHP_USE_NATIVE" ]]; then +if [[ "$PHP_USE_NATIVE" -ne 1 ]]; then docker run --rm \ -v "${ROOT_DIR}:${WORKING_DIR}" \ -v "dropbox-sign-sdk-composer-cache:/.composer" \ diff --git a/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md b/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md index 1a565f1ae..247951d28 100644 --- a/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/php/docs/Model/BulkSendJobGetResponseSignatureRequests.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes | `original_title` | ```string``` | Default Label for account. | | | `subject` | ```string``` | The subject in the email that was initially sent to the signers. | | | `message` | ```string``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```array``` | The metadata attached to the signature request. | | +| `metadata` | ```array``` | The metadata attached to the signature request. | | | `created_at` | ```int``` | Time the signature request was created. | | | `expires_at` | ```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. | | | `is_complete` | ```bool``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/php/docs/Model/FaxResponse.md b/sdks/php/docs/Model/FaxResponse.md index 5ee5930ca..130845b57 100644 --- a/sdks/php/docs/Model/FaxResponse.md +++ b/sdks/php/docs/Model/FaxResponse.md @@ -9,12 +9,13 @@ Name | Type | Description | Notes | `fax_id`*_required_ | ```string``` | Fax ID | | | `title`*_required_ | ```string``` | Fax Title | | | `original_title`*_required_ | ```string``` | Fax Original Title | | -| `subject`*_required_ | ```string``` | Fax Subject | | -| `message`*_required_ | ```string``` | Fax Message | | | `metadata`*_required_ | ```array``` | Fax Metadata | | | `created_at`*_required_ | ```int``` | Fax Created At Timestamp | | | `sender`*_required_ | ```string``` | Fax Sender Email | | -| `transmissions`*_required_ | [```\Dropbox\Sign\Model\FaxResponseTransmission[]```](FaxResponseTransmission.md) | Fax Transmissions List | | | `files_url`*_required_ | ```string``` | Fax Files URL | | +| `transmissions`*_required_ | [```\Dropbox\Sign\Model\FaxResponseTransmission[]```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```string``` | Fax Subject | | +| `message` | ```string``` | Fax Message | | +| `final_copy_uri` | ```string``` | The path where the completed document can be downloaded | | [[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/FaxResponseTransmission.md b/sdks/php/docs/Model/FaxResponseTransmission.md index 421181a32..353e745f0 100644 --- a/sdks/php/docs/Model/FaxResponseTransmission.md +++ b/sdks/php/docs/Model/FaxResponseTransmission.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `recipient`*_required_ | ```string``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```string``` | Fax Transmission Sender | | | `status_code`*_required_ | ```string``` | Fax Transmission Status Code | | | `sent_at` | ```int``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/php/docs/Model/SignatureRequestResponse.md b/sdks/php/docs/Model/SignatureRequestResponse.md index f5d59e8b3..bb04b5d30 100644 --- a/sdks/php/docs/Model/SignatureRequestResponse.md +++ b/sdks/php/docs/Model/SignatureRequestResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes | `original_title` | ```string``` | Default Label for account. | | | `subject` | ```string``` | The subject in the email that was initially sent to the signers. | | | `message` | ```string``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```array``` | The metadata attached to the signature request. | | +| `metadata` | ```array``` | The metadata attached to the signature request. | | | `created_at` | ```int``` | Time the signature request was created. | | | `expires_at` | ```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. | | | `is_complete` | ```bool``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md b/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md index 7e294a6a0..f4bf660f6 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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/SignatureRequestResponseDataValueSignature.md b/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md index eac84c81e..877febbcd 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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 39a8ed303..3a7dc2f03 100644 --- a/sdks/php/docs/Model/TemplateResponse.md +++ b/sdks/php/docs/Model/TemplateResponse.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes | `is_creator` | ```bool``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `can_edit` | ```bool``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `is_locked` | ```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. | | -| `metadata` | ```array``` | The metadata attached to the template. | | +| `metadata` | ```array``` | The metadata attached to the template. | | | `signer_roles` | [```\Dropbox\Sign\Model\TemplateResponseSignerRole[]```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `cc_roles` | [```\Dropbox\Sign\Model\TemplateResponseCCRole[]```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```\Dropbox\Sign\Model\TemplateResponseDocument[]```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | diff --git a/sdks/php/openapi-config.yaml b/sdks/php/openapi-config.yaml index a86f11b5b..75c7f3f57 100644 --- a/sdks/php/openapi-config.yaml +++ b/sdks/php/openapi-config.yaml @@ -1,10 +1,8 @@ generatorName: php -typeMappings: - "object": "array" additionalProperties: packageName: dropbox/sign - packageVersion: "^1.7.0" - artifactVersion: 1.7-dev + packageVersion: "^1.8.0" + artifactVersion: 1.8-dev invokerPackage: "Dropbox\\Sign" sortModelPropertiesByRequiredFlag: true srcBasePath: src diff --git a/sdks/php/run-build b/sdks/php/run-build index 8723998b1..ec27ffff1 100755 --- a/sdks/php/run-build +++ b/sdks/php/run-build @@ -58,7 +58,7 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then fi printf "Running unit tests ...\n" -bash "${DIR}/bin/php" ./vendor/bin/phpunit +PHP_USE_NATIVE=0 bash "${DIR}/bin/php" ./vendor/bin/phpunit printf "\n\n" printf "Success!\n" diff --git a/sdks/php/src/Configuration.php b/sdks/php/src/Configuration.php index 50242d164..204b66994 100644 --- a/sdks/php/src/Configuration.php +++ b/sdks/php/src/Configuration.php @@ -97,7 +97,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.7-dev/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.8-dev/PHP'; /** * Debug switch (default set to false) @@ -438,7 +438,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 3.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 1.7-dev' . PHP_EOL; + $report .= ' SDK Package Version: 1.8-dev' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php b/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php index 3d30a8984..0781348c0 100644 --- a/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php +++ b/sdks/php/src/Model/BulkSendJobGetResponseSignatureRequests.php @@ -64,7 +64,7 @@ class BulkSendJobGetResponseSignatureRequests implements ModelInterface, ArrayAc 'original_title' => 'string', 'subject' => 'string', 'message' => 'string', - 'metadata' => 'array', + 'metadata' => 'array', 'created_at' => 'int', 'expires_at' => 'int', 'is_complete' => 'bool', @@ -125,16 +125,16 @@ class BulkSendJobGetResponseSignatureRequests implements ModelInterface, ArrayAc * @var bool[] */ protected static array $openAPINullables = [ - 'test_mode' => true, + 'test_mode' => false, 'signature_request_id' => false, - 'requester_email_address' => false, + 'requester_email_address' => true, 'title' => false, 'original_title' => false, 'subject' => true, 'message' => true, 'metadata' => false, 'created_at' => false, - 'expires_at' => false, + 'expires_at' => true, 'is_complete' => false, 'is_declined' => false, 'has_error' => false, @@ -483,14 +483,7 @@ public function getTestMode() public function setTestMode(?bool $test_mode) { if (is_null($test_mode)) { - array_push($this->openAPINullablesSetToNull, 'test_mode'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('test_mode', $nullablesSetToNull); - if ($index !== false) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } + throw new InvalidArgumentException('non-nullable test_mode cannot be null'); } $this->container['test_mode'] = $test_mode; @@ -544,7 +537,14 @@ public function getRequesterEmailAddress() public function setRequesterEmailAddress(?string $requester_email_address) { if (is_null($requester_email_address)) { - throw new InvalidArgumentException('non-nullable requester_email_address cannot be null'); + array_push($this->openAPINullablesSetToNull, 'requester_email_address'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('requester_email_address', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['requester_email_address'] = $requester_email_address; @@ -676,7 +676,7 @@ public function setMessage(?string $message) /** * Gets metadata * - * @return array|null + * @return array|null */ public function getMetadata() { @@ -686,7 +686,7 @@ public function getMetadata() /** * Sets metadata * - * @param array|null $metadata the metadata attached to the signature request + * @param array|null $metadata the metadata attached to the signature request * * @return self */ @@ -747,7 +747,14 @@ public function getExpiresAt() public function setExpiresAt(?int $expires_at) { if (is_null($expires_at)) { - throw new InvalidArgumentException('non-nullable expires_at cannot be null'); + array_push($this->openAPINullablesSetToNull, 'expires_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expires_at', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['expires_at'] = $expires_at; diff --git a/sdks/php/src/Model/FaxResponse.php b/sdks/php/src/Model/FaxResponse.php index b60d54baa..9471ccc8a 100644 --- a/sdks/php/src/Model/FaxResponse.php +++ b/sdks/php/src/Model/FaxResponse.php @@ -60,13 +60,14 @@ class FaxResponse implements ModelInterface, ArrayAccess, JsonSerializable 'fax_id' => 'string', 'title' => 'string', 'original_title' => 'string', - 'subject' => 'string', - 'message' => 'string', 'metadata' => 'array', 'created_at' => 'int', 'sender' => 'string', - 'transmissions' => '\Dropbox\Sign\Model\FaxResponseTransmission[]', 'files_url' => 'string', + 'transmissions' => '\Dropbox\Sign\Model\FaxResponseTransmission[]', + 'subject' => 'string', + 'message' => 'string', + 'final_copy_uri' => 'string', ]; /** @@ -80,13 +81,14 @@ class FaxResponse implements ModelInterface, ArrayAccess, JsonSerializable 'fax_id' => null, 'title' => null, 'original_title' => null, - 'subject' => null, - 'message' => null, 'metadata' => null, 'created_at' => null, 'sender' => null, - 'transmissions' => null, 'files_url' => null, + 'transmissions' => null, + 'subject' => null, + 'message' => null, + 'final_copy_uri' => null, ]; /** @@ -98,13 +100,14 @@ class FaxResponse implements ModelInterface, ArrayAccess, JsonSerializable 'fax_id' => false, 'title' => false, 'original_title' => false, - 'subject' => false, - 'message' => false, 'metadata' => false, 'created_at' => false, 'sender' => false, - 'transmissions' => false, 'files_url' => false, + 'transmissions' => false, + 'subject' => true, + 'message' => true, + 'final_copy_uri' => true, ]; /** @@ -188,13 +191,14 @@ public function isNullableSetToNull(string $property): bool 'fax_id' => 'fax_id', 'title' => 'title', 'original_title' => 'original_title', - 'subject' => 'subject', - 'message' => 'message', 'metadata' => 'metadata', 'created_at' => 'created_at', 'sender' => 'sender', - 'transmissions' => 'transmissions', 'files_url' => 'files_url', + 'transmissions' => 'transmissions', + 'subject' => 'subject', + 'message' => 'message', + 'final_copy_uri' => 'final_copy_uri', ]; /** @@ -206,13 +210,14 @@ public function isNullableSetToNull(string $property): bool 'fax_id' => 'setFaxId', 'title' => 'setTitle', 'original_title' => 'setOriginalTitle', - 'subject' => 'setSubject', - 'message' => 'setMessage', 'metadata' => 'setMetadata', 'created_at' => 'setCreatedAt', 'sender' => 'setSender', - 'transmissions' => 'setTransmissions', 'files_url' => 'setFilesUrl', + 'transmissions' => 'setTransmissions', + 'subject' => 'setSubject', + 'message' => 'setMessage', + 'final_copy_uri' => 'setFinalCopyUri', ]; /** @@ -224,13 +229,14 @@ public function isNullableSetToNull(string $property): bool 'fax_id' => 'getFaxId', 'title' => 'getTitle', 'original_title' => 'getOriginalTitle', - 'subject' => 'getSubject', - 'message' => 'getMessage', 'metadata' => 'getMetadata', 'created_at' => 'getCreatedAt', 'sender' => 'getSender', - 'transmissions' => 'getTransmissions', 'files_url' => 'getFilesUrl', + 'transmissions' => 'getTransmissions', + 'subject' => 'getSubject', + 'message' => 'getMessage', + 'final_copy_uri' => 'getFinalCopyUri', ]; /** @@ -292,13 +298,14 @@ public function __construct(array $data = null) $this->setIfExists('fax_id', $data ?? [], null); $this->setIfExists('title', $data ?? [], null); $this->setIfExists('original_title', $data ?? [], null); - $this->setIfExists('subject', $data ?? [], null); - $this->setIfExists('message', $data ?? [], null); $this->setIfExists('metadata', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('sender', $data ?? [], null); - $this->setIfExists('transmissions', $data ?? [], null); $this->setIfExists('files_url', $data ?? [], null); + $this->setIfExists('transmissions', $data ?? [], null); + $this->setIfExists('subject', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('final_copy_uri', $data ?? [], null); } /** @@ -355,12 +362,6 @@ public function listInvalidProperties() if ($this->container['original_title'] === null) { $invalidProperties[] = "'original_title' can't be null"; } - if ($this->container['subject'] === null) { - $invalidProperties[] = "'subject' can't be null"; - } - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } if ($this->container['metadata'] === null) { $invalidProperties[] = "'metadata' can't be null"; } @@ -370,12 +371,12 @@ public function listInvalidProperties() if ($this->container['sender'] === null) { $invalidProperties[] = "'sender' can't be null"; } - if ($this->container['transmissions'] === null) { - $invalidProperties[] = "'transmissions' can't be null"; - } if ($this->container['files_url'] === null) { $invalidProperties[] = "'files_url' can't be null"; } + if ($this->container['transmissions'] === null) { + $invalidProperties[] = "'transmissions' can't be null"; + } return $invalidProperties; } @@ -471,60 +472,6 @@ public function setOriginalTitle(string $original_title) return $this; } - /** - * Gets subject - * - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * - * @param string $subject Fax Subject - * - * @return self - */ - public function setSubject(string $subject) - { - if (is_null($subject)) { - throw new InvalidArgumentException('non-nullable subject cannot be null'); - } - $this->container['subject'] = $subject; - - return $this; - } - - /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message Fax Message - * - * @return self - */ - public function setMessage(string $message) - { - if (is_null($message)) { - throw new InvalidArgumentException('non-nullable message cannot be null'); - } - $this->container['message'] = $message; - - return $this; - } - /** * Gets metadata * @@ -606,6 +553,33 @@ public function setSender(string $sender) return $this; } + /** + * Gets files_url + * + * @return string + */ + public function getFilesUrl() + { + return $this->container['files_url']; + } + + /** + * Sets files_url + * + * @param string $files_url Fax Files URL + * + * @return self + */ + public function setFilesUrl(string $files_url) + { + if (is_null($files_url)) { + throw new InvalidArgumentException('non-nullable files_url cannot be null'); + } + $this->container['files_url'] = $files_url; + + return $this; + } + /** * Gets transmissions * @@ -634,28 +608,103 @@ public function setTransmissions(array $transmissions) } /** - * Gets files_url + * Gets subject * - * @return string + * @return string|null */ - public function getFilesUrl() + public function getSubject() { - return $this->container['files_url']; + return $this->container['subject']; } /** - * Sets files_url + * Sets subject * - * @param string $files_url Fax Files URL + * @param string|null $subject Fax Subject * * @return self */ - public function setFilesUrl(string $files_url) + public function setSubject(?string $subject) { - if (is_null($files_url)) { - throw new InvalidArgumentException('non-nullable files_url cannot be null'); + if (is_null($subject)) { + array_push($this->openAPINullablesSetToNull, 'subject'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('subject', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } - $this->container['files_url'] = $files_url; + $this->container['subject'] = $subject; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message Fax Message + * + * @return self + */ + public function setMessage(?string $message) + { + if (is_null($message)) { + array_push($this->openAPINullablesSetToNull, 'message'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('message', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets final_copy_uri + * + * @return string|null + */ + public function getFinalCopyUri() + { + return $this->container['final_copy_uri']; + } + + /** + * Sets final_copy_uri + * + * @param string|null $final_copy_uri The path where the completed document can be downloaded + * + * @return self + */ + public function setFinalCopyUri(?string $final_copy_uri) + { + if (is_null($final_copy_uri)) { + array_push($this->openAPINullablesSetToNull, 'final_copy_uri'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('final_copy_uri', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['final_copy_uri'] = $final_copy_uri; return $this; } diff --git a/sdks/php/src/Model/FaxResponseTransmission.php b/sdks/php/src/Model/FaxResponseTransmission.php index 049c5b407..8c30b8ad5 100644 --- a/sdks/php/src/Model/FaxResponseTransmission.php +++ b/sdks/php/src/Model/FaxResponseTransmission.php @@ -58,7 +58,6 @@ class FaxResponseTransmission implements ModelInterface, ArrayAccess, JsonSerial */ protected static $openAPITypes = [ 'recipient' => 'string', - 'sender' => 'string', 'status_code' => 'string', 'sent_at' => 'int', ]; @@ -72,7 +71,6 @@ class FaxResponseTransmission implements ModelInterface, ArrayAccess, JsonSerial */ protected static $openAPIFormats = [ 'recipient' => null, - 'sender' => null, 'status_code' => null, 'sent_at' => null, ]; @@ -84,7 +82,6 @@ class FaxResponseTransmission implements ModelInterface, ArrayAccess, JsonSerial */ protected static array $openAPINullables = [ 'recipient' => false, - 'sender' => false, 'status_code' => false, 'sent_at' => false, ]; @@ -168,7 +165,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'recipient' => 'recipient', - 'sender' => 'sender', 'status_code' => 'status_code', 'sent_at' => 'sent_at', ]; @@ -180,7 +176,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'recipient' => 'setRecipient', - 'sender' => 'setSender', 'status_code' => 'setStatusCode', 'sent_at' => 'setSentAt', ]; @@ -192,7 +187,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'recipient' => 'getRecipient', - 'sender' => 'getSender', 'status_code' => 'getStatusCode', 'sent_at' => 'getSentAt', ]; @@ -282,7 +276,6 @@ public function getStatusCodeAllowableValues() public function __construct(array $data = null) { $this->setIfExists('recipient', $data ?? [], null); - $this->setIfExists('sender', $data ?? [], null); $this->setIfExists('status_code', $data ?? [], null); $this->setIfExists('sent_at', $data ?? [], null); } @@ -335,9 +328,6 @@ public function listInvalidProperties() if ($this->container['recipient'] === null) { $invalidProperties[] = "'recipient' can't be null"; } - if ($this->container['sender'] === null) { - $invalidProperties[] = "'sender' can't be null"; - } if ($this->container['status_code'] === null) { $invalidProperties[] = "'status_code' can't be null"; } @@ -391,33 +381,6 @@ public function setRecipient(string $recipient) return $this; } - /** - * Gets sender - * - * @return string - */ - public function getSender() - { - return $this->container['sender']; - } - - /** - * Sets sender - * - * @param string $sender Fax Transmission Sender - * - * @return self - */ - public function setSender(string $sender) - { - if (is_null($sender)) { - throw new InvalidArgumentException('non-nullable sender cannot be null'); - } - $this->container['sender'] = $sender; - - return $this; - } - /** * Gets status_code * diff --git a/sdks/php/src/Model/SignatureRequestResponse.php b/sdks/php/src/Model/SignatureRequestResponse.php index 14386d427..08442f436 100644 --- a/sdks/php/src/Model/SignatureRequestResponse.php +++ b/sdks/php/src/Model/SignatureRequestResponse.php @@ -65,7 +65,7 @@ class SignatureRequestResponse implements ModelInterface, ArrayAccess, JsonSeria 'original_title' => 'string', 'subject' => 'string', 'message' => 'string', - 'metadata' => 'array', + 'metadata' => 'array', 'created_at' => 'int', 'expires_at' => 'int', 'is_complete' => 'bool', @@ -126,16 +126,16 @@ class SignatureRequestResponse implements ModelInterface, ArrayAccess, JsonSeria * @var bool[] */ protected static array $openAPINullables = [ - 'test_mode' => true, + 'test_mode' => false, 'signature_request_id' => false, - 'requester_email_address' => false, + 'requester_email_address' => true, 'title' => false, 'original_title' => false, 'subject' => true, 'message' => true, 'metadata' => false, 'created_at' => false, - 'expires_at' => false, + 'expires_at' => true, 'is_complete' => false, 'is_declined' => false, 'has_error' => false, @@ -484,14 +484,7 @@ public function getTestMode() public function setTestMode(?bool $test_mode) { if (is_null($test_mode)) { - array_push($this->openAPINullablesSetToNull, 'test_mode'); - } else { - $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('test_mode', $nullablesSetToNull); - if ($index !== false) { - unset($nullablesSetToNull[$index]); - $this->setOpenAPINullablesSetToNull($nullablesSetToNull); - } + throw new InvalidArgumentException('non-nullable test_mode cannot be null'); } $this->container['test_mode'] = $test_mode; @@ -545,7 +538,14 @@ public function getRequesterEmailAddress() public function setRequesterEmailAddress(?string $requester_email_address) { if (is_null($requester_email_address)) { - throw new InvalidArgumentException('non-nullable requester_email_address cannot be null'); + array_push($this->openAPINullablesSetToNull, 'requester_email_address'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('requester_email_address', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['requester_email_address'] = $requester_email_address; @@ -677,7 +677,7 @@ public function setMessage(?string $message) /** * Gets metadata * - * @return array|null + * @return array|null */ public function getMetadata() { @@ -687,7 +687,7 @@ public function getMetadata() /** * Sets metadata * - * @param array|null $metadata the metadata attached to the signature request + * @param array|null $metadata the metadata attached to the signature request * * @return self */ @@ -748,7 +748,14 @@ public function getExpiresAt() public function setExpiresAt(?int $expires_at) { if (is_null($expires_at)) { - throw new InvalidArgumentException('non-nullable expires_at cannot be null'); + array_push($this->openAPINullablesSetToNull, 'expires_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expires_at', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['expires_at'] = $expires_at; diff --git a/sdks/php/src/Model/SignatureRequestResponseCustomFieldBase.php b/sdks/php/src/Model/SignatureRequestResponseCustomFieldBase.php index 7c1d3a815..bfa753e11 100644 --- a/sdks/php/src/Model/SignatureRequestResponseCustomFieldBase.php +++ b/sdks/php/src/Model/SignatureRequestResponseCustomFieldBase.php @@ -90,7 +90,7 @@ class SignatureRequestResponseCustomFieldBase implements ModelInterface, ArrayAc 'name' => false, 'required' => false, 'api_id' => false, - 'editor' => false, + 'editor' => true, ]; /** @@ -459,7 +459,14 @@ public function getEditor() public function setEditor(?string $editor) { if (is_null($editor)) { - throw new InvalidArgumentException('non-nullable editor cannot be null'); + array_push($this->openAPINullablesSetToNull, 'editor'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('editor', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['editor'] = $editor; diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php index 30ab1f375..25ed14574 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php @@ -57,6 +57,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', + 'is_signed' => 'bool', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'is_signed' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'is_signed' => true, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'is_signed' => 'is_signed', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'is_signed' => 'setIsSigned', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'is_signed' => 'getIsSigned', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'initials'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -349,6 +356,40 @@ public function setValue(?string $value) return $this; } + /** + * Gets is_signed + * + * @return bool|null + */ + public function getIsSigned() + { + return $this->container['is_signed']; + } + + /** + * Sets is_signed + * + * @param bool|null $is_signed this field contains the boolean true if the field is signed + * + * @return self + */ + public function setIsSigned(?bool $is_signed) + { + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_signed', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_signed'] = $is_signed; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php index 458a052a7..b72a8c1fc 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php @@ -57,6 +57,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', + 'is_signed' => 'bool', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'is_signed' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'is_signed' => true, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'is_signed' => 'is_signed', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'is_signed' => 'setIsSigned', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'is_signed' => 'getIsSigned', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'signature'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -349,6 +356,40 @@ public function setValue(?string $value) return $this; } + /** + * Gets is_signed + * + * @return bool|null + */ + public function getIsSigned() + { + return $this->container['is_signed']; + } + + /** + * Sets is_signed + * + * @param bool|null $is_signed this field contains the boolean true if the field is signed + * + * @return self + */ + public function setIsSigned(?bool $is_signed) + { + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_signed', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_signed'] = $is_signed; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/php/src/Model/TemplateResponse.php b/sdks/php/src/Model/TemplateResponse.php index fb8417b98..6bc51cfb9 100644 --- a/sdks/php/src/Model/TemplateResponse.php +++ b/sdks/php/src/Model/TemplateResponse.php @@ -66,7 +66,7 @@ class TemplateResponse implements ModelInterface, ArrayAccess, JsonSerializable 'is_creator' => 'bool', 'can_edit' => 'bool', 'is_locked' => 'bool', - 'metadata' => 'array', + 'metadata' => 'array', 'signer_roles' => '\Dropbox\Sign\Model\TemplateResponseSignerRole[]', 'cc_roles' => '\Dropbox\Sign\Model\TemplateResponseCCRole[]', 'documents' => '\Dropbox\Sign\Model\TemplateResponseDocument[]', @@ -627,7 +627,7 @@ public function setIsLocked(?bool $is_locked) /** * Gets metadata * - * @return array|null + * @return array|null */ public function getMetadata() { @@ -637,7 +637,7 @@ public function getMetadata() /** * Sets metadata * - * @param array|null $metadata the metadata attached to the template + * @param array|null $metadata the metadata attached to the template * * @return self */ diff --git a/sdks/python/README.md b/sdks/python/README.md index 796399702..77ebb1aa4 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -49,7 +49,7 @@ Python 3.7+ Install using `pip`: ```shell -python3 -m pip install dropbox-sign==1.7-dev +python3 -m pip install dropbox-sign==1.8-dev ``` Alternatively: @@ -391,6 +391,6 @@ apisupport@hellosign.com This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- Package version: 1.7-dev +- Package version: 1.8-dev - Build package: org.openapitools.codegen.languages.PythonClientCodegen diff --git a/sdks/python/VERSION b/sdks/python/VERSION index b19f5be06..d82db9132 100644 --- a/sdks/python/VERSION +++ b/sdks/python/VERSION @@ -1 +1 @@ -1.7-dev +1.8-dev diff --git a/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md index d213ed914..9314ae4a6 100644 --- a/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/python/docs/BulkSendJobGetResponseSignatureRequests.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes | `original_title` | ```str``` | Default Label for account. | | | `subject` | ```str``` | The subject in the email that was initially sent to the signers. | | | `message` | ```str``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```object``` | The metadata attached to the signature request. | | +| `metadata` | ```Dict[str, object]``` | The metadata attached to the signature request. | | | `created_at` | ```int``` | Time the signature request was created. | | | `expires_at` | ```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. | | | `is_complete` | ```bool``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/python/docs/FaxResponse.md b/sdks/python/docs/FaxResponse.md index d531f5d0a..f8bc78c95 100644 --- a/sdks/python/docs/FaxResponse.md +++ b/sdks/python/docs/FaxResponse.md @@ -8,13 +8,14 @@ Name | Type | Description | Notes | `fax_id`*_required_ | ```str``` | Fax ID | | | `title`*_required_ | ```str``` | Fax Title | | | `original_title`*_required_ | ```str``` | Fax Original Title | | -| `subject`*_required_ | ```str``` | Fax Subject | | -| `message`*_required_ | ```str``` | Fax Message | | | `metadata`*_required_ | ```Dict[str, object]``` | Fax Metadata | | | `created_at`*_required_ | ```int``` | Fax Created At Timestamp | | | `sender`*_required_ | ```str``` | Fax Sender Email | | -| `transmissions`*_required_ | [```List[FaxResponseTransmission]```](FaxResponseTransmission.md) | Fax Transmissions List | | | `files_url`*_required_ | ```str``` | Fax Files URL | | +| `transmissions`*_required_ | [```List[FaxResponseTransmission]```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```str``` | Fax Subject | | +| `message` | ```str``` | Fax Message | | +| `final_copy_uri` | ```str``` | The path where the completed document can be downloaded | | [[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/FaxResponseTransmission.md b/sdks/python/docs/FaxResponseTransmission.md index 9ba09c130..fb60d8b5e 100644 --- a/sdks/python/docs/FaxResponseTransmission.md +++ b/sdks/python/docs/FaxResponseTransmission.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `recipient`*_required_ | ```str``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```str``` | Fax Transmission Sender | | | `status_code`*_required_ | ```str``` | Fax Transmission Status Code | | | `sent_at` | ```int``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/python/docs/SignatureRequestResponse.md b/sdks/python/docs/SignatureRequestResponse.md index a8af74ce5..552f80e02 100644 --- a/sdks/python/docs/SignatureRequestResponse.md +++ b/sdks/python/docs/SignatureRequestResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes | `original_title` | ```str``` | Default Label for account. | | | `subject` | ```str``` | The subject in the email that was initially sent to the signers. | | | `message` | ```str``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```object``` | The metadata attached to the signature request. | | +| `metadata` | ```Dict[str, object]``` | The metadata attached to the signature request. | | | `created_at` | ```int``` | Time the signature request was created. | | | `expires_at` | ```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. | | | `is_complete` | ```bool``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md index 33a601325..425498be7 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | An input field for initials | [default to 'initials'] | | `value` | ```str``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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/SignatureRequestResponseDataValueSignature.md b/sdks/python/docs/SignatureRequestResponseDataValueSignature.md index cd1512857..a50bcc538 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueSignature.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | A signature input field | [default to 'signature'] | | `value` | ```str``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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 315cf7176..01220c998 100644 --- a/sdks/python/docs/TemplateResponse.md +++ b/sdks/python/docs/TemplateResponse.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes | `is_creator` | ```bool``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `can_edit` | ```bool``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `is_locked` | ```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. | | -| `metadata` | ```object``` | The metadata attached to the template. | | +| `metadata` | ```Dict[str, object]``` | The metadata attached to the template. | | | `signer_roles` | [```List[TemplateResponseSignerRole]```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `cc_roles` | [```List[TemplateResponseCCRole]```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```List[TemplateResponseDocument]```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | diff --git a/sdks/python/dropbox_sign/__init__.py b/sdks/python/dropbox_sign/__init__.py index a8df7f94f..2192ae233 100644 --- a/sdks/python/dropbox_sign/__init__.py +++ b/sdks/python/dropbox_sign/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "1.7-dev" +__version__ = "1.8-dev" # import apis into sdk package from dropbox_sign.apis import * diff --git a/sdks/python/dropbox_sign/api_client.py b/sdks/python/dropbox_sign/api_client.py index 386ef4d5b..16e766078 100644 --- a/sdks/python/dropbox_sign/api_client.py +++ b/sdks/python/dropbox_sign/api_client.py @@ -89,7 +89,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.7-dev/python" + self.user_agent = "OpenAPI-Generator/1.8-dev/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/sdks/python/dropbox_sign/configuration.py b/sdks/python/dropbox_sign/configuration.py index b939da41d..016c4e591 100644 --- a/sdks/python/dropbox_sign/configuration.py +++ b/sdks/python/dropbox_sign/configuration.py @@ -432,7 +432,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: 3.0.0\n" - "SDK Version: 1.7-dev".format(env=sys.platform, pyversion=sys.version) + "SDK Version: 1.8-dev".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): 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 748c75c1d..de4b9a20a 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 @@ -335,7 +335,7 @@ def openapi_types(cls) -> Dict[str, str]: "original_title": "(str,)", "subject": "(str,)", "message": "(str,)", - "metadata": "(object,)", + "metadata": "(Dict[str, object],)", "created_at": "(int,)", "expires_at": "(int,)", "is_complete": "(bool,)", diff --git a/sdks/python/dropbox_sign/models/fax_response.py b/sdks/python/dropbox_sign/models/fax_response.py index 035993f12..976606e37 100644 --- a/sdks/python/dropbox_sign/models/fax_response.py +++ b/sdks/python/dropbox_sign/models/fax_response.py @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from dropbox_sign.models.fax_response_transmission import FaxResponseTransmission from typing import Optional, Set, Tuple from typing_extensions import Self @@ -36,26 +36,31 @@ class FaxResponse(BaseModel): fax_id: StrictStr = Field(description="Fax ID") title: StrictStr = Field(description="Fax Title") original_title: StrictStr = Field(description="Fax Original Title") - subject: StrictStr = Field(description="Fax Subject") - message: StrictStr = Field(description="Fax Message") metadata: Dict[str, Any] = Field(description="Fax Metadata") created_at: StrictInt = Field(description="Fax Created At Timestamp") sender: StrictStr = Field(description="Fax Sender Email") + files_url: StrictStr = Field(description="Fax Files URL") transmissions: List[FaxResponseTransmission] = Field( description="Fax Transmissions List" ) - files_url: StrictStr = Field(description="Fax Files URL") + subject: Optional[StrictStr] = Field(default=None, description="Fax Subject") + message: Optional[StrictStr] = Field(default=None, description="Fax Message") + final_copy_uri: Optional[StrictStr] = Field( + default=None, + description="The path where the completed document can be downloaded", + ) __properties: ClassVar[List[str]] = [ "fax_id", "title", "original_title", - "subject", - "message", "metadata", "created_at", "sender", - "transmissions", "files_url", + "transmissions", + "subject", + "message", + "final_copy_uri", ] model_config = ConfigDict( @@ -131,11 +136,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "fax_id": obj.get("fax_id"), "title": obj.get("title"), "original_title": obj.get("original_title"), - "subject": obj.get("subject"), - "message": obj.get("message"), "metadata": obj.get("metadata"), "created_at": obj.get("created_at"), "sender": obj.get("sender"), + "files_url": obj.get("files_url"), "transmissions": ( [ FaxResponseTransmission.from_dict(_item) @@ -144,7 +148,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("transmissions") is not None else None ), - "files_url": obj.get("files_url"), + "subject": obj.get("subject"), + "message": obj.get("message"), + "final_copy_uri": obj.get("final_copy_uri"), } ) return _obj @@ -165,13 +171,14 @@ def openapi_types(cls) -> Dict[str, str]: "fax_id": "(str,)", "title": "(str,)", "original_title": "(str,)", - "subject": "(str,)", - "message": "(str,)", "metadata": "(Dict[str, object],)", "created_at": "(int,)", "sender": "(str,)", - "transmissions": "(List[FaxResponseTransmission],)", "files_url": "(str,)", + "transmissions": "(List[FaxResponseTransmission],)", + "subject": "(str,)", + "message": "(str,)", + "final_copy_uri": "(str,)", } @classmethod diff --git a/sdks/python/dropbox_sign/models/fax_response_transmission.py b/sdks/python/dropbox_sign/models/fax_response_transmission.py index c34d2e9ae..28cf397a0 100644 --- a/sdks/python/dropbox_sign/models/fax_response_transmission.py +++ b/sdks/python/dropbox_sign/models/fax_response_transmission.py @@ -33,17 +33,11 @@ class FaxResponseTransmission(BaseModel): """ # noqa: E501 recipient: StrictStr = Field(description="Fax Transmission Recipient") - sender: StrictStr = Field(description="Fax Transmission Sender") status_code: StrictStr = Field(description="Fax Transmission Status Code") sent_at: Optional[StrictInt] = Field( default=None, description="Fax Transmission Sent Timestamp" ) - __properties: ClassVar[List[str]] = [ - "recipient", - "sender", - "status_code", - "sent_at", - ] + __properties: ClassVar[List[str]] = ["recipient", "status_code", "sent_at"] @field_validator("status_code") def status_code_validate_enum(cls, value): @@ -129,7 +123,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "recipient": obj.get("recipient"), - "sender": obj.get("sender"), "status_code": obj.get("status_code"), "sent_at": obj.get("sent_at"), } @@ -150,7 +143,6 @@ def init(cls, data: Any) -> Self: def openapi_types(cls) -> Dict[str, str]: return { "recipient": "(str,)", - "sender": "(str,)", "status_code": "(str,)", "sent_at": "(int,)", } diff --git a/sdks/python/dropbox_sign/models/signature_request_response.py b/sdks/python/dropbox_sign/models/signature_request_response.py index 5c8efc067..e367012a3 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response.py +++ b/sdks/python/dropbox_sign/models/signature_request_response.py @@ -336,7 +336,7 @@ def openapi_types(cls) -> Dict[str, str]: "original_title": "(str,)", "subject": "(str,)", "message": "(str,)", - "metadata": "(object,)", + "metadata": "(Dict[str, object],)", "created_at": "(int,)", "expires_at": "(int,)", "is_complete": "(bool,)", diff --git a/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py b/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py index db4e0281f..f5a493c75 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py +++ b/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from dropbox_sign.models.signature_request_response_data_base import ( SignatureRequestResponseDataBase, @@ -41,6 +41,10 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) + is_signed: Optional[StrictBool] = Field( + default=None, + description="This field contains the boolean true if the field is signed.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase "required", "type", "value", + "is_signed", ] model_config = ConfigDict( @@ -119,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "required": obj.get("required"), "type": obj.get("type") if obj.get("type") is not None else "initials", "value": obj.get("value"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "is_signed": "(bool,)", "api_id": "(str,)", "signature_id": "(str,)", "name": "(str,)", diff --git a/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py b/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py index 795ab9b3f..86461b32a 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py +++ b/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from dropbox_sign.models.signature_request_response_data_base import ( SignatureRequestResponseDataBase, @@ -41,6 +41,10 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) + is_signed: Optional[StrictBool] = Field( + default=None, + description="This field contains the boolean true if the field is signed.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas "required", "type", "value", + "is_signed", ] model_config = ConfigDict( @@ -119,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "required": obj.get("required"), "type": obj.get("type") if obj.get("type") is not None else "signature", "value": obj.get("value"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "is_signed": "(bool,)", "api_id": "(str,)", "signature_id": "(str,)", "name": "(str,)", diff --git a/sdks/python/dropbox_sign/models/template_response.py b/sdks/python/dropbox_sign/models/template_response.py index da7729424..01f36b353 100644 --- a/sdks/python/dropbox_sign/models/template_response.py +++ b/sdks/python/dropbox_sign/models/template_response.py @@ -325,7 +325,7 @@ def openapi_types(cls) -> Dict[str, str]: "is_creator": "(bool,)", "can_edit": "(bool,)", "is_locked": "(bool,)", - "metadata": "(object,)", + "metadata": "(Dict[str, object],)", "signer_roles": "(List[TemplateResponseSignerRole],)", "cc_roles": "(List[TemplateResponseCCRole],)", "documents": "(List[TemplateResponseDocument],)", diff --git a/sdks/python/openapi-config.yaml b/sdks/python/openapi-config.yaml index ca79487c8..6f67258bc 100644 --- a/sdks/python/openapi-config.yaml +++ b/sdks/python/openapi-config.yaml @@ -5,7 +5,7 @@ additionalProperties: generatorLanguageVersion: ">=3.7" packageName: dropbox_sign projectName: dropbox-sign - packageVersion: 1.7-dev + packageVersion: 1.8-dev sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true packageAuthor: Dropbox Sign API Team diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 3a3145a89..4821351a9 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dropbox_sign" -version = "1.7-dev" +version = "1.8-dev" description = "Dropbox Sign API" authors = ["Official Python SDK for the Dropbox Sign API "] license = "MIT" diff --git a/sdks/python/setup.py b/sdks/python/setup.py index 7c18a50dd..2018e9639 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -23,7 +23,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "dropbox-sign" -VERSION = "1.7-dev" +VERSION = "1.8-dev" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/sdks/ruby/.travis.yml b/sdks/ruby/.travis.yml index f37177039..9c71665a9 100644 --- a/sdks/ruby/.travis.yml +++ b/sdks/ruby/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build dropbox-sign.gemspec - - gem install ./dropbox-sign-1.7-dev.gem + - gem install ./dropbox-sign-1.8-dev.gem diff --git a/sdks/ruby/Gemfile.lock b/sdks/ruby/Gemfile.lock index 72b58ee60..46f2f4262 100644 --- a/sdks/ruby/Gemfile.lock +++ b/sdks/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dropbox-sign (1.7.pre.dev) + dropbox-sign (1.8.pre.dev) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md index e93c857b9..a30ca97c0 100644 --- a/sdks/ruby/README.md +++ b/sdks/ruby/README.md @@ -25,7 +25,7 @@ directory that corresponds to the file you want updated. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- Package version: 1.7-dev +- Package version: 1.8-dev - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec Then install the gem locally: ```shell -gem install ./dropbox-sign-1.7-dev.gem +gem install ./dropbox-sign-1.8-dev.gem ``` -(for development, run `gem install --dev ./dropbox-sign-1.7-dev.gem` to install the development dependencies) +(for development, run `gem install --dev ./dropbox-sign-1.8-dev.gem` to install the development dependencies) Finally add this to the Gemfile: - gem 'dropbox-sign', '~> 1.7-dev' + gem 'dropbox-sign', '~> 1.8-dev' ### Install from Git diff --git a/sdks/ruby/VERSION b/sdks/ruby/VERSION index b19f5be06..d82db9132 100644 --- a/sdks/ruby/VERSION +++ b/sdks/ruby/VERSION @@ -1 +1 @@ -1.7-dev +1.8-dev diff --git a/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md b/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md index 5542ba3ac..8491cfeeb 100644 --- a/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md +++ b/sdks/ruby/docs/BulkSendJobGetResponseSignatureRequests.md @@ -13,7 +13,7 @@ | `original_title` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Hash``` | The metadata attached to the signature request. | | | `created_at` | ```Integer``` | Time the signature request was created. | | | `expires_at` | ```Integer``` | 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. | | | `is_complete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/ruby/docs/FaxResponse.md b/sdks/ruby/docs/FaxResponse.md index 68c864bf3..9f0feb844 100644 --- a/sdks/ruby/docs/FaxResponse.md +++ b/sdks/ruby/docs/FaxResponse.md @@ -9,11 +9,12 @@ | `fax_id`*_required_ | ```String``` | Fax ID | | | `title`*_required_ | ```String``` | Fax Title | | | `original_title`*_required_ | ```String``` | Fax Original Title | | -| `subject`*_required_ | ```String``` | Fax Subject | | -| `message`*_required_ | ```String``` | Fax Message | | | `metadata`*_required_ | ```Hash``` | Fax Metadata | | | `created_at`*_required_ | ```Integer``` | Fax Created At Timestamp | | | `sender`*_required_ | ```String``` | Fax Sender Email | | -| `transmissions`*_required_ | [```Array```](FaxResponseTransmission.md) | Fax Transmissions List | | | `files_url`*_required_ | ```String``` | Fax Files URL | | +| `transmissions`*_required_ | [```Array```](FaxResponseTransmission.md) | Fax Transmissions List | | +| `subject` | ```String``` | Fax Subject | | +| `message` | ```String``` | Fax Message | | +| `final_copy_uri` | ```String``` | The path where the completed document can be downloaded | | diff --git a/sdks/ruby/docs/FaxResponseTransmission.md b/sdks/ruby/docs/FaxResponseTransmission.md index 5ec394694..3027d851e 100644 --- a/sdks/ruby/docs/FaxResponseTransmission.md +++ b/sdks/ruby/docs/FaxResponseTransmission.md @@ -7,7 +7,6 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | `recipient`*_required_ | ```String``` | Fax Transmission Recipient | | -| `sender`*_required_ | ```String``` | Fax Transmission Sender | | | `status_code`*_required_ | ```String``` | Fax Transmission Status Code | | | `sent_at` | ```Integer``` | Fax Transmission Sent Timestamp | | diff --git a/sdks/ruby/docs/SignatureRequestResponse.md b/sdks/ruby/docs/SignatureRequestResponse.md index 30bdff652..f3655a0a2 100644 --- a/sdks/ruby/docs/SignatureRequestResponse.md +++ b/sdks/ruby/docs/SignatureRequestResponse.md @@ -13,7 +13,7 @@ Contains information about a signature request. | `original_title` | ```String``` | Default Label for account. | | | `subject` | ```String``` | The subject in the email that was initially sent to the signers. | | | `message` | ```String``` | The custom message in the email that was initially sent to the signers. | | -| `metadata` | ```Object``` | The metadata attached to the signature request. | | +| `metadata` | ```Hash``` | The metadata attached to the signature request. | | | `created_at` | ```Integer``` | Time the signature request was created. | | | `expires_at` | ```Integer``` | 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. | | | `is_complete` | ```Boolean``` | Whether or not the SignatureRequest has been fully executed by all signers. | | diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md index b941e57e0..348042eed 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md @@ -8,4 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | An input field for initials | [default to 'initials'] | | `value` | ```String``` | The value of the form field. | | +| `is_signed` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md index 83e106c4a..78eb1d732 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md @@ -8,4 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | A signature input field | [default to 'signature'] | | `value` | ```String``` | The value of the form field. | | +| `is_signed` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/ruby/docs/TemplateResponse.md b/sdks/ruby/docs/TemplateResponse.md index 792e16a36..f5a661e9c 100644 --- a/sdks/ruby/docs/TemplateResponse.md +++ b/sdks/ruby/docs/TemplateResponse.md @@ -14,7 +14,7 @@ Contains information about the templates you and your team have created. | `is_creator` | ```Boolean``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | | | `can_edit` | ```Boolean``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | | | `is_locked` | ```Boolean``` | 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. | | -| `metadata` | ```Object``` | The metadata attached to the template. | | +| `metadata` | ```Hash``` | The metadata attached to the template. | | | `signer_roles` | [```Array```](TemplateResponseSignerRole.md) | An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. | | | `cc_roles` | [```Array```](TemplateResponseCCRole.md) | An array of the designated CC roles that must be specified when sending a SignatureRequest using this Template. | | | `documents` | [```Array```](TemplateResponseDocument.md) | An array describing each document associated with this Template. Includes form field data for each document. | | 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 8c201762d..39e5e3c9e 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 @@ -19,7 +19,7 @@ module Dropbox module Dropbox::Sign class BulkSendJobGetResponseSignatureRequests # Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. - # @return [Boolean, nil] + # @return [Boolean] attr_accessor :test_mode # The id of the SignatureRequest. @@ -27,7 +27,7 @@ class BulkSendJobGetResponseSignatureRequests attr_accessor :signature_request_id # The email address of the initiator of the SignatureRequest. - # @return [String] + # @return [String, nil] attr_accessor :requester_email_address # The title the specified Account uses for the SignatureRequest. @@ -47,7 +47,7 @@ class BulkSendJobGetResponseSignatureRequests attr_accessor :message # The metadata attached to the signature request. - # @return [Object] + # @return [Hash] attr_accessor :metadata # Time the signature request was created. @@ -55,7 +55,7 @@ class BulkSendJobGetResponseSignatureRequests attr_accessor :created_at # 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. - # @return [Integer] + # @return [Integer, nil] attr_accessor :expires_at # Whether or not the SignatureRequest has been fully executed by all signers. @@ -164,7 +164,7 @@ def self.openapi_types :'original_title' => :'String', :'subject' => :'String', :'message' => :'String', - :'metadata' => :'Object', + :'metadata' => :'Hash', :'created_at' => :'Integer', :'expires_at' => :'Integer', :'is_complete' => :'Boolean', @@ -188,9 +188,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'test_mode', + :'requester_email_address', :'subject', :'message', + :'expires_at', :'signing_url', :'signing_redirect_url', :'final_copy_uri', @@ -272,7 +273,9 @@ def initialize(attributes = {}) end if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] + if (value = attributes[:'metadata']).is_a?(Hash) + self.metadata = value + end end if attributes.key?(:'created_at') diff --git a/sdks/ruby/lib/dropbox-sign/models/fax_response.rb b/sdks/ruby/lib/dropbox-sign/models/fax_response.rb index a7c8847bf..b6b53501d 100644 --- a/sdks/ruby/lib/dropbox-sign/models/fax_response.rb +++ b/sdks/ruby/lib/dropbox-sign/models/fax_response.rb @@ -30,14 +30,6 @@ class FaxResponse # @return [String] attr_accessor :original_title - # Fax Subject - # @return [String] - attr_accessor :subject - - # Fax Message - # @return [String] - attr_accessor :message - # Fax Metadata # @return [Hash] attr_accessor :metadata @@ -50,13 +42,25 @@ class FaxResponse # @return [String] attr_accessor :sender + # Fax Files URL + # @return [String] + attr_accessor :files_url + # Fax Transmissions List # @return [Array] attr_accessor :transmissions - # Fax Files URL - # @return [String] - attr_accessor :files_url + # Fax Subject + # @return [String, nil] + attr_accessor :subject + + # Fax Message + # @return [String, nil] + attr_accessor :message + + # The path where the completed document can be downloaded + # @return [String, nil] + attr_accessor :final_copy_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -64,13 +68,14 @@ def self.attribute_map :'fax_id' => :'fax_id', :'title' => :'title', :'original_title' => :'original_title', - :'subject' => :'subject', - :'message' => :'message', :'metadata' => :'metadata', :'created_at' => :'created_at', :'sender' => :'sender', + :'files_url' => :'files_url', :'transmissions' => :'transmissions', - :'files_url' => :'files_url' + :'subject' => :'subject', + :'message' => :'message', + :'final_copy_uri' => :'final_copy_uri' } end @@ -85,19 +90,23 @@ def self.openapi_types :'fax_id' => :'String', :'title' => :'String', :'original_title' => :'String', - :'subject' => :'String', - :'message' => :'String', :'metadata' => :'Hash', :'created_at' => :'Integer', :'sender' => :'String', + :'files_url' => :'String', :'transmissions' => :'Array', - :'files_url' => :'String' + :'subject' => :'String', + :'message' => :'String', + :'final_copy_uri' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'subject', + :'message', + :'final_copy_uri' ]) end @@ -153,14 +162,6 @@ def initialize(attributes = {}) self.original_title = attributes[:'original_title'] end - if attributes.key?(:'subject') - self.subject = attributes[:'subject'] - end - - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - if attributes.key?(:'metadata') if (value = attributes[:'metadata']).is_a?(Hash) self.metadata = value @@ -175,14 +176,26 @@ def initialize(attributes = {}) self.sender = attributes[:'sender'] end + if attributes.key?(:'files_url') + self.files_url = attributes[:'files_url'] + end + if attributes.key?(:'transmissions') if (value = attributes[:'transmissions']).is_a?(Array) self.transmissions = value end end - if attributes.key?(:'files_url') - self.files_url = attributes[:'files_url'] + if attributes.key?(:'subject') + self.subject = attributes[:'subject'] + end + + if attributes.key?(:'message') + self.message = attributes[:'message'] + end + + if attributes.key?(:'final_copy_uri') + self.final_copy_uri = attributes[:'final_copy_uri'] end end @@ -202,14 +215,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "original_title", original_title cannot be nil.') end - if @subject.nil? - invalid_properties.push('invalid value for "subject", subject cannot be nil.') - end - - if @message.nil? - invalid_properties.push('invalid value for "message", message cannot be nil.') - end - if @metadata.nil? invalid_properties.push('invalid value for "metadata", metadata cannot be nil.') end @@ -222,14 +227,14 @@ def list_invalid_properties invalid_properties.push('invalid value for "sender", sender cannot be nil.') end - if @transmissions.nil? - invalid_properties.push('invalid value for "transmissions", transmissions cannot be nil.') - end - if @files_url.nil? invalid_properties.push('invalid value for "files_url", files_url cannot be nil.') end + if @transmissions.nil? + invalid_properties.push('invalid value for "transmissions", transmissions cannot be nil.') + end + invalid_properties end @@ -239,13 +244,11 @@ def valid? return false if @fax_id.nil? return false if @title.nil? return false if @original_title.nil? - return false if @subject.nil? - return false if @message.nil? return false if @metadata.nil? return false if @created_at.nil? return false if @sender.nil? - return false if @transmissions.nil? return false if @files_url.nil? + return false if @transmissions.nil? true end @@ -257,13 +260,14 @@ def ==(o) fax_id == o.fax_id && title == o.title && original_title == o.original_title && - subject == o.subject && - message == o.message && metadata == o.metadata && created_at == o.created_at && sender == o.sender && + files_url == o.files_url && transmissions == o.transmissions && - files_url == o.files_url + subject == o.subject && + message == o.message && + final_copy_uri == o.final_copy_uri end # @see the `==` method @@ -275,7 +279,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [fax_id, title, original_title, subject, message, metadata, created_at, sender, transmissions, files_url].hash + [fax_id, title, original_title, metadata, created_at, sender, files_url, transmissions, subject, message, final_copy_uri].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/fax_response_transmission.rb b/sdks/ruby/lib/dropbox-sign/models/fax_response_transmission.rb index a6c49bb3a..cd402cc73 100644 --- a/sdks/ruby/lib/dropbox-sign/models/fax_response_transmission.rb +++ b/sdks/ruby/lib/dropbox-sign/models/fax_response_transmission.rb @@ -22,10 +22,6 @@ class FaxResponseTransmission # @return [String] attr_accessor :recipient - # Fax Transmission Sender - # @return [String] - attr_accessor :sender - # Fax Transmission Status Code # @return [String] attr_accessor :status_code @@ -60,7 +56,6 @@ def valid?(value) def self.attribute_map { :'recipient' => :'recipient', - :'sender' => :'sender', :'status_code' => :'status_code', :'sent_at' => :'sent_at' } @@ -75,7 +70,6 @@ def self.acceptable_attributes def self.openapi_types { :'recipient' => :'String', - :'sender' => :'String', :'status_code' => :'String', :'sent_at' => :'Integer' } @@ -131,10 +125,6 @@ def initialize(attributes = {}) self.recipient = attributes[:'recipient'] end - if attributes.key?(:'sender') - self.sender = attributes[:'sender'] - end - if attributes.key?(:'status_code') self.status_code = attributes[:'status_code'] end @@ -152,10 +142,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "recipient", recipient cannot be nil.') end - if @sender.nil? - invalid_properties.push('invalid value for "sender", sender cannot be nil.') - end - if @status_code.nil? invalid_properties.push('invalid value for "status_code", status_code cannot be nil.') end @@ -167,7 +153,6 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @recipient.nil? - return false if @sender.nil? return false if @status_code.nil? status_code_validator = EnumAttributeValidator.new('String', ["success", "transmitting", "error_could_not_fax", "error_unknown", "error_busy", "error_no_answer", "error_disconnected", "error_bad_destination"]) return false unless status_code_validator.valid?(@status_code) @@ -190,7 +175,6 @@ def ==(o) return true if self.equal?(o) self.class == o.class && recipient == o.recipient && - sender == o.sender && status_code == o.status_code && sent_at == o.sent_at end @@ -204,7 +188,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [recipient, sender, status_code, sent_at].hash + [recipient, status_code, sent_at].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 4419ad27c..3981f79fe 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response.rb @@ -20,7 +20,7 @@ module Dropbox::Sign # Contains information about a signature request. class SignatureRequestResponse # Whether this is a test signature request. Test requests have no legal value. Defaults to `false`. - # @return [Boolean, nil] + # @return [Boolean] attr_accessor :test_mode # The id of the SignatureRequest. @@ -28,7 +28,7 @@ class SignatureRequestResponse attr_accessor :signature_request_id # The email address of the initiator of the SignatureRequest. - # @return [String] + # @return [String, nil] attr_accessor :requester_email_address # The title the specified Account uses for the SignatureRequest. @@ -48,7 +48,7 @@ class SignatureRequestResponse attr_accessor :message # The metadata attached to the signature request. - # @return [Object] + # @return [Hash] attr_accessor :metadata # Time the signature request was created. @@ -56,7 +56,7 @@ class SignatureRequestResponse attr_accessor :created_at # 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. - # @return [Integer] + # @return [Integer, nil] attr_accessor :expires_at # Whether or not the SignatureRequest has been fully executed by all signers. @@ -165,7 +165,7 @@ def self.openapi_types :'original_title' => :'String', :'subject' => :'String', :'message' => :'String', - :'metadata' => :'Object', + :'metadata' => :'Hash', :'created_at' => :'Integer', :'expires_at' => :'Integer', :'is_complete' => :'Boolean', @@ -189,9 +189,10 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'test_mode', + :'requester_email_address', :'subject', :'message', + :'expires_at', :'signing_url', :'signing_redirect_url', :'final_copy_uri', @@ -274,7 +275,9 @@ def initialize(attributes = {}) end if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] + if (value = attributes[:'metadata']).is_a?(Hash) + self.metadata = value + end end if attributes.key?(:'created_at') diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb index d041f5561..584028574 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb @@ -36,7 +36,7 @@ class SignatureRequestResponseCustomFieldBase attr_accessor :api_id # The name of the Role that is able to edit this field. - # @return [String] + # @return [String, nil] attr_accessor :editor # Attribute mapping from ruby-style variable name to JSON key. @@ -69,6 +69,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'editor' ]) end diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb index 01932416c..e5c4df0d4 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb @@ -26,11 +26,16 @@ class SignatureRequestResponseDataValueInitials < SignatureRequestResponseDataBa # @return [String] attr_accessor :value + # This field contains the boolean true if the field is signed. + # @return [Boolean, nil] + attr_accessor :is_signed + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'is_signed' => :'is_signed' } end @@ -43,13 +48,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_signed' ]) end @@ -105,6 +112,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +137,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -138,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, is_signed].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb index 253aa8549..ecbc9b588 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb @@ -26,11 +26,16 @@ class SignatureRequestResponseDataValueSignature < SignatureRequestResponseDataB # @return [String] attr_accessor :value + # This field contains the boolean true if the field is signed. + # @return [Boolean, nil] + attr_accessor :is_signed + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'is_signed' => :'is_signed' } end @@ -43,13 +48,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_signed' ]) end @@ -105,6 +112,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +137,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -138,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, is_signed].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/template_response.rb b/sdks/ruby/lib/dropbox-sign/models/template_response.rb index 51450dde3..1d59bdf57 100644 --- a/sdks/ruby/lib/dropbox-sign/models/template_response.rb +++ b/sdks/ruby/lib/dropbox-sign/models/template_response.rb @@ -52,7 +52,7 @@ class TemplateResponse attr_accessor :is_locked # The metadata attached to the template. - # @return [Object] + # @return [Hash] attr_accessor :metadata # An array of the designated signer roles that must be specified when sending a SignatureRequest using this Template. @@ -121,7 +121,7 @@ def self.openapi_types :'is_creator' => :'Boolean', :'can_edit' => :'Boolean', :'is_locked' => :'Boolean', - :'metadata' => :'Object', + :'metadata' => :'Hash', :'signer_roles' => :'Array', :'cc_roles' => :'Array', :'documents' => :'Array', @@ -214,7 +214,9 @@ def initialize(attributes = {}) end if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] + if (value = attributes[:'metadata']).is_a?(Hash) + self.metadata = value + end end if attributes.key?(:'signer_roles') diff --git a/sdks/ruby/lib/dropbox-sign/version.rb b/sdks/ruby/lib/dropbox-sign/version.rb index 5b0f2adc3..0018310b6 100644 --- a/sdks/ruby/lib/dropbox-sign/version.rb +++ b/sdks/ruby/lib/dropbox-sign/version.rb @@ -14,5 +14,5 @@ module Dropbox end module Dropbox::Sign - VERSION = '1.7-dev' + VERSION = '1.8-dev' end diff --git a/sdks/ruby/openapi-config.yaml b/sdks/ruby/openapi-config.yaml index accddfcdb..ccbf1d9b6 100644 --- a/sdks/ruby/openapi-config.yaml +++ b/sdks/ruby/openapi-config.yaml @@ -9,7 +9,7 @@ additionalProperties: gemName: dropbox-sign gemRequiredRubyVersion: '>= 2.7' moduleName: "Dropbox::Sign" - gemVersion: 1.7-dev + gemVersion: 1.8-dev sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true gitUserId: hellosign diff --git a/test_fixtures/BulkSendJobGetResponse.json b/test_fixtures/BulkSendJobGetResponse.json index e3e3bb256..e428a303d 100644 --- a/test_fixtures/BulkSendJobGetResponse.json +++ b/test_fixtures/BulkSendJobGetResponse.json @@ -24,6 +24,15 @@ "custom_fields": [], "created_at": 0, "expires_at": 0, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "response_data": [ { "api_id": "80c678_1", diff --git a/test_fixtures/FaxGetResponse.json b/test_fixtures/FaxGetResponse.json index 589271954..2eda936be 100644 --- a/test_fixtures/FaxGetResponse.json +++ b/test_fixtures/FaxGetResponse.json @@ -6,7 +6,15 @@ "original_title": "example original title", "subject": "example subject", "message": "example message", - "metadata": [], + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1726774555, "sender": "me@dropboxsign.com", "transmissions": [ diff --git a/test_fixtures/FaxListResponse.json b/test_fixtures/FaxListResponse.json index bfa69cdee..a9ebf63cf 100644 --- a/test_fixtures/FaxListResponse.json +++ b/test_fixtures/FaxListResponse.json @@ -13,7 +13,15 @@ "original_title": "example original title", "subject": "example subject", "message": "example message", - "metadata": [], + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1726774555, "sender": "me@dropboxsign.com", "transmissions": [ diff --git a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json index 01b4d401d..c155d4369 100644 --- a/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json @@ -18,7 +18,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signer_list": [ { diff --git a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json b/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json index 68fe824d8..e08221f14 100644 --- a/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json @@ -17,7 +17,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signer_list": [ { diff --git a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json index cb5d37485..16e803706 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json @@ -90,7 +90,13 @@ "hide_text_tags": false, "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "populate_auto_fill_fields": false, "signers": [ diff --git a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json index 3f0047ee3..a9597ea64 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json @@ -21,7 +21,13 @@ ], "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "populate_auto_fill_fields": false, "signers": [ diff --git a/test_fixtures/SignatureRequestGetResponse.json b/test_fixtures/SignatureRequestGetResponse.json index e9d9a3791..f0fda3c1c 100644 --- a/test_fixtures/SignatureRequestGetResponse.json +++ b/test_fixtures/SignatureRequestGetResponse.json @@ -6,7 +6,15 @@ "original_title": "The NDA we talked about", "subject": "The NDA we talked about", "message": "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1570471067, "is_complete": false, "is_declined": false, @@ -91,6 +99,7 @@ "required": true, "api_id": "initial__1", "value": "YM", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" }, { @@ -107,6 +116,7 @@ "required": true, "api_id": "signature__1", "value": "John Doe", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" } ], diff --git a/test_fixtures/SignatureRequestListResponse.json b/test_fixtures/SignatureRequestListResponse.json index f6560be33..fd70a82c5 100644 --- a/test_fixtures/SignatureRequestListResponse.json +++ b/test_fixtures/SignatureRequestListResponse.json @@ -13,7 +13,15 @@ "original_title": "FHA", "subject": "FHA", "message": "Let me know if you two have any questions.", - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "created_at": 1570471067, "expires_at": 0, "is_complete": false, diff --git a/test_fixtures/SignatureRequestSendRequest.json b/test_fixtures/SignatureRequestSendRequest.json index 6a3397969..98d12db3b 100644 --- a/test_fixtures/SignatureRequestSendRequest.json +++ b/test_fixtures/SignatureRequestSendRequest.json @@ -192,6 +192,11 @@ "is_eid": false, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, @@ -472,4 +477,3 @@ "use_text_tags": true } } - diff --git a/test_fixtures/SignatureRequestSendWithTemplateRequest.json b/test_fixtures/SignatureRequestSendWithTemplateRequest.json index 7b8ce3d3e..4d1cc8665 100644 --- a/test_fixtures/SignatureRequestSendWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestSendWithTemplateRequest.json @@ -20,7 +20,13 @@ "is_eid": false, "message": "Glad we could come to an agreement.", "metadata": { - "field1": "value1" + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" }, "signers": [ { diff --git a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json index e31c5dae9..b293945e7 100644 --- a/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +++ b/test_fixtures/TemplateCreateEmbeddedDraftRequest.json @@ -96,6 +96,11 @@ ], "message": "For your approval", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/TemplateCreateRequest.json b/test_fixtures/TemplateCreateRequest.json index e31c5dae9..b293945e7 100644 --- a/test_fixtures/TemplateCreateRequest.json +++ b/test_fixtures/TemplateCreateRequest.json @@ -96,6 +96,11 @@ ], "message": "For your approval", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/TemplateGetResponse.json b/test_fixtures/TemplateGetResponse.json index b025913a0..0961c0eb0 100644 --- a/test_fixtures/TemplateGetResponse.json +++ b/test_fixtures/TemplateGetResponse.json @@ -9,7 +9,15 @@ "is_creator": true, "is_embedded": false, "is_locked": false, - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "signer_roles": [ { "name": "Outside Vendor", diff --git a/test_fixtures/TemplateListResponse.json b/test_fixtures/TemplateListResponse.json index caa5e6d8f..a4a144c26 100644 --- a/test_fixtures/TemplateListResponse.json +++ b/test_fixtures/TemplateListResponse.json @@ -16,7 +16,15 @@ "is_creator": true, "is_embedded": false, "is_locked": false, - "metadata": {}, + "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", + "custom_id": 1234, + "custom_text": "NDA #9" + }, "signer_roles": [ { "name": "Client", diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json index d72f562be..e18890b74 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json @@ -99,6 +99,11 @@ "is_for_embedded_signing": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json index 4a1aafb72..7c7264948 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json @@ -33,6 +33,11 @@ "is_for_embedded_signing": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/test_fixtures/UnclaimedDraftCreateRequest.json b/test_fixtures/UnclaimedDraftCreateRequest.json index 817ded5ae..b74d37713 100644 --- a/test_fixtures/UnclaimedDraftCreateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateRequest.json @@ -88,6 +88,11 @@ "hide_text_tags": true, "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.", "metadata": { + "metadata_name_1": "metadata_value_1", + "metadata_name_2": { + "metadata_name_2_a": "metadata_value_2_a" + }, + "metadata_name_3": "metadata_value_3", "custom_id": 1234, "custom_text": "NDA #9" }, diff --git a/translations/en.yaml b/translations/en.yaml index 6af9701d5..553da26d9 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -164,8 +164,8 @@ "FaxResponse::SENDER": Fax Sender Email "FaxResponse::TRANSMISSIONS": Fax Transmissions List "FaxResponse::FILES_URL": Fax Files URL +"FaxResponse::FINAL_COPY_URI": The path where the completed document can be downloaded "Sub::FaxResponseTransmission::RECIPIENT": Fax Transmission Recipient -"Sub::FaxResponseTransmission::SENDER": Fax Transmission Sender "Sub::FaxResponseTransmission::STATUS_CODE": Fax Transmission Status Code "Sub::FaxResponseTransmission::SENT_AT": Fax Transmission Sent Timestamp "FaxListResponseExample::SUMMARY": Returns the properties and settings of multiple Faxes. @@ -1433,6 +1433,7 @@ "SignatureRequestResponseDataValue::TEXTMERGE_TYPE": A text field that has default text set by the api "SignatureRequestResponseDataValue::CHECKBOXMERGE_TYPE": A checkbox field that has default value set by the api "SignatureRequestResponseDataValue::VALUE": The value of the form field. +"SignatureRequestResponseDataValue::IS_SIGNED": This field contains the boolean true if the field is signed. "SignatureRequestResponseSignatures::DESCRIPTION": An array of signature objects, 1 for each signer. "SignatureRequestResponseSignatures::DECLINE_REASON": The reason provided by the signer for declining the request.